From 83c9bd2b84bd739e60f53b306a564de7e7a2354d Mon Sep 17 00:00:00 2001 From: alexey Date: Mon, 4 Mar 2024 16:56:14 +0300 Subject: [PATCH] Codegen: CrmObjects --- hubspot/crm/imports/__init__.py | 3 +- hubspot/crm/imports/api/core_api.py | 2 +- hubspot/crm/imports/api/public_imports_api.py | 2 +- hubspot/crm/imports/api_client.py | 2 +- hubspot/crm/imports/configuration.py | 2 +- hubspot/crm/imports/exceptions.py | 2 +- hubspot/crm/imports/models/__init__.py | 3 +- hubspot/crm/imports/models/action_response.py | 94 +-- ...onse_public_import_error_forward_paging.py | 54 +- ...lection_response_public_import_response.py | 54 +- hubspot/crm/imports/models/error.py | 192 ++--- hubspot/crm/imports/models/error_detail.py | 122 +-- hubspot/crm/imports/models/forward_paging.py | 2 +- hubspot/crm/imports/models/import_row_core.py | 84 +- hubspot/crm/imports/models/import_template.py | 150 ++++ hubspot/crm/imports/models/next_page.py | 54 +- hubspot/crm/imports/models/paging.py | 2 +- hubspot/crm/imports/models/previous_page.py | 2 +- .../crm/imports/models/public_import_error.py | 306 +++---- .../imports/models/public_import_metadata.py | 62 +- .../imports/models/public_import_response.py | 234 ++++-- .../models/public_object_list_record.py | 2 +- hubspot/crm/imports/rest.py | 2 +- hubspot/crm/line_items/__init__.py | 2 + hubspot/crm/line_items/api/__init__.py | 1 + hubspot/crm/line_items/api/gdpr_api.py | 160 ++++ hubspot/crm/line_items/models/__init__.py | 1 + ...atch_read_input_simple_public_object_id.py | 56 +- .../batch_response_simple_public_object.py | 142 ++-- ...sponse_simple_public_object_with_errors.py | 202 ++--- .../collection_response_associated_id.py | 52 +- ...object_with_associations_forward_paging.py | 52 +- ...tal_simple_public_object_forward_paging.py | 52 +- hubspot/crm/line_items/models/error.py | 190 ++--- .../crm/line_items/models/error_category.py | 213 ----- hubspot/crm/line_items/models/error_detail.py | 120 +-- hubspot/crm/line_items/models/filter.py | 80 +- hubspot/crm/line_items/models/next_page.py | 52 +- .../models/public_associations_for_object.py | 56 +- .../models/public_gdpr_delete_input.py | 146 ++++ .../line_items/models/public_merge_input.py | 56 +- .../models/public_object_search_request.py | 158 ++-- .../line_items/models/simple_public_object.py | 197 +++-- .../simple_public_object_batch_input.py | 59 +- .../models/simple_public_object_input.py | 5 +- .../simple_public_object_input_for_create.py | 55 +- .../simple_public_object_with_associations.py | 228 +++--- .../crm/line_items/models/standard_error.py | 170 ++-- .../line_items/models/value_with_timestamp.py | 130 +-- hubspot/crm/lists/__init__.py | 9 +- hubspot/crm/lists/api/__init__.py | 4 +- .../api/{lists_api.py => list_app_api.py} | 32 +- ...hips_api.py => list_app_membership_api.py} | 74 +- hubspot/crm/lists/api_client.py | 2 +- hubspot/crm/lists/configuration.py | 2 +- hubspot/crm/lists/exceptions.py | 2 +- hubspot/crm/lists/models/__init__.py | 5 +- ...ction_response_join_time_and_record_id.py} | 34 +- hubspot/crm/lists/models/error.py | 2 +- hubspot/crm/lists/models/error_detail.py | 2 +- .../lists/models/join_time_and_record_id.py | 147 ++++ .../crm/lists/models/list_create_request.py | 2 +- .../crm/lists/models/list_create_response.py | 2 +- .../crm/lists/models/list_fetch_response.py | 2 +- .../models/list_filter_update_request.py | 2 +- .../crm/lists/models/list_search_request.py | 2 +- .../crm/lists/models/list_search_response.py | 2 +- .../crm/lists/models/list_update_response.py | 2 +- .../crm/lists/models/lists_by_id_response.py | 2 +- .../lists/models/membership_change_request.py | 12 +- .../models/memberships_update_response.py | 16 +- hubspot/crm/lists/models/next_page.py | 2 +- hubspot/crm/lists/models/paging.py | 2 +- hubspot/crm/lists/models/previous_page.py | 2 +- ...bsolute_comparative_timestamp_refine_by.py | 58 +- ...lic_absolute_ranged_timestamp_refine_by.py | 94 +-- .../lists/models/public_ads_search_filter.py | 122 +-- .../lists/models/public_ads_time_filter.py | 58 +- .../models/public_all_history_refine_by.py | 2 +- .../public_all_property_types_operation.py | 58 +- .../lists/models/public_and_filter_branch.py | 58 +- .../public_association_filter_branch.py | 126 +-- .../public_association_in_list_filter.py | 218 ++--- .../models/public_bool_property_operation.py | 108 +-- ...public_calendar_date_property_operation.py | 198 ++--- .../public_campaign_influenced_filter.py | 58 +- ...ublic_communication_subscription_filter.py | 98 +-- ...lic_comparative_date_property_operation.py | 126 +-- ..._comparative_property_updated_operation.py | 130 +-- .../lists/models/public_constant_filter.py | 64 +- .../models/public_cta_analytics_filter.py | 94 +-- hubspot/crm/lists/models/public_date_point.py | 234 +++--- .../models/public_date_property_operation.py | 142 ++-- .../public_date_time_property_operation.py | 110 +-- .../lists/models/public_email_event_filter.py | 178 ++-- .../public_email_subscription_filter.py | 94 +-- .../public_enumeration_property_operation.py | 108 +-- .../models/public_event_analytics_filter.py | 94 +-- ...t_analytics_filter_coalescing_refine_by.py | 408 +++++----- .../models/public_event_filter_metadata.py | 2 +- .../models/public_fiscal_quarter_reference.py | 166 ++-- .../models/public_fiscal_year_reference.py | 166 ++-- .../models/public_form_submission_filter.py | 94 +-- .../public_form_submission_on_page_filter.py | 150 ++-- .../crm/lists/models/public_in_list_filter.py | 68 +- .../models/public_in_list_filter_metadata.py | 2 +- .../crm/lists/models/public_index_offset.py | 216 ++--- .../lists/models/public_indexed_time_point.py | 122 +-- ...blic_indexed_time_point_index_reference.py | 104 +-- .../models/public_integration_event_filter.py | 64 +- .../lists/models/public_month_reference.py | 130 +-- .../public_multi_string_property_operation.py | 108 +-- .../models/public_not_all_filter_branch.py | 58 +- .../models/public_not_any_filter_branch.py | 58 +- .../crm/lists/models/public_now_reference.py | 102 +-- .../models/public_num_associations_filter.py | 74 +- .../public_num_occurrences_refine_by.py | 56 +- .../public_number_property_operation.py | 108 +-- .../crm/lists/models/public_object_list.py | 20 +- .../public_object_list_search_result.py | 8 +- .../lists/models/public_or_filter_branch.py | 58 +- .../public_page_view_analytics_filter.py | 152 ++-- .../models/public_privacy_analytics_filter.py | 58 +- ...blic_property_association_filter_branch.py | 148 ++-- ...ion_filter_branch_filter_branches_inner.py | 58 +- ...association_filter_branch_filters_inner.py | 602 +++++++------- ...lic_property_association_in_list_filter.py | 140 ++-- .../lists/models/public_property_filter.py | 58 +- .../public_property_filter_operation.py | 456 +++++------ .../models/public_property_referenced_time.py | 104 +-- .../lists/models/public_quarter_reference.py | 166 ++-- .../public_ranged_date_property_operation.py | 148 ++-- ...public_ranged_number_property_operation.py | 116 +-- .../models/public_ranged_time_operation.py | 278 +++---- ...elative_comparative_timestamp_refine_by.py | 64 +- ...lic_relative_ranged_timestamp_refine_by.py | 94 +-- .../models/public_restricted_filter_branch.py | 58 +- ...c_rolling_date_range_property_operation.py | 134 ++-- ...blic_rolling_property_updated_operation.py | 108 +-- .../public_set_occurrences_refine_by.py | 2 +- .../public_string_property_operation.py | 108 +-- .../models/public_survey_monkey_filter.py | 58 +- .../public_survey_monkey_value_filter.py | 100 +-- .../crm/lists/models/public_time_offset.py | 58 +- .../models/public_time_point_operation.py | 186 ++--- .../public_time_point_operation_time_point.py | 282 +++---- .../lists/models/public_today_reference.py | 102 +-- .../models/public_unified_events_filter.py | 114 +-- .../public_unified_events_filter_branch.py | 112 +-- .../public_unified_events_in_list_filter.py | 144 ++-- .../crm/lists/models/public_webinar_filter.py | 56 +- .../crm/lists/models/public_week_reference.py | 146 ++-- .../crm/lists/models/public_year_reference.py | 166 ++-- hubspot/crm/lists/rest.py | 2 +- hubspot/crm/owners/__init__.py | 2 +- hubspot/crm/owners/api/owners_api.py | 2 +- hubspot/crm/owners/api_client.py | 2 +- hubspot/crm/owners/configuration.py | 2 +- hubspot/crm/owners/exceptions.py | 2 +- hubspot/crm/owners/models/__init__.py | 2 +- ...on_response_public_owner_forward_paging.py | 54 +- hubspot/crm/owners/models/error.py | 192 ++--- hubspot/crm/owners/models/error_detail.py | 122 +-- hubspot/crm/owners/models/forward_paging.py | 2 +- hubspot/crm/owners/models/next_page.py | 54 +- hubspot/crm/owners/models/public_owner.py | 216 ++--- hubspot/crm/owners/models/public_team.py | 58 +- hubspot/crm/owners/rest.py | 2 +- hubspot/crm/pipelines/__init__.py | 2 +- .../crm/pipelines/api/pipeline_audits_api.py | 2 +- .../api/pipeline_stage_audits_api.py | 2 +- .../crm/pipelines/api/pipeline_stages_api.py | 2 +- hubspot/crm/pipelines/api/pipelines_api.py | 26 +- hubspot/crm/pipelines/api_client.py | 2 +- hubspot/crm/pipelines/configuration.py | 2 +- hubspot/crm/pipelines/exceptions.py | 2 +- hubspot/crm/pipelines/models/__init__.py | 2 +- .../collection_response_pipeline_no_paging.py | 2 +- ...ction_response_pipeline_stage_no_paging.py | 2 +- ...on_response_public_audit_info_no_paging.py | 2 +- hubspot/crm/pipelines/models/error.py | 192 ++--- hubspot/crm/pipelines/models/error_detail.py | 122 +-- hubspot/crm/pipelines/models/pipeline.py | 230 +++--- .../crm/pipelines/models/pipeline_input.py | 62 +- .../pipelines/models/pipeline_patch_input.py | 72 +- .../crm/pipelines/models/pipeline_stage.py | 269 ++++--- .../pipelines/models/pipeline_stage_input.py | 76 +- .../models/pipeline_stage_patch_input.py | 94 +-- .../crm/pipelines/models/public_audit_info.py | 180 ++--- hubspot/crm/pipelines/rest.py | 2 +- .../models/batch_response_property.py | 142 ++-- .../batch_response_property_with_errors.py | 202 ++--- hubspot/crm/properties/models/error.py | 190 ++--- .../crm/properties/models/error_category.py | 213 ----- hubspot/crm/properties/models/error_detail.py | 120 +-- .../crm/properties/models/model_property.py | 758 +++++++++--------- hubspot/crm/properties/models/option.py | 138 ++-- hubspot/crm/properties/models/option_input.py | 138 ++-- .../crm/properties/models/property_create.py | 370 ++++----- .../crm/properties/models/property_group.py | 90 +-- .../models/property_group_create.py | 56 +- .../models/property_group_update.py | 58 +- .../models/property_modification_metadata.py | 104 +-- .../crm/properties/models/property_update.py | 310 +++---- .../crm/properties/models/standard_error.py | 170 ++-- .../schemas/models/association_definition.py | 92 +-- .../models/association_definition_egg.py | 56 +- hubspot/crm/schemas/models/error.py | 190 ++--- hubspot/crm/schemas/models/error_detail.py | 120 +-- hubspot/crm/schemas/models/model_property.py | 729 +++++++++-------- hubspot/crm/schemas/models/object_schema.py | 454 ++++++----- .../crm/schemas/models/object_schema_egg.py | 187 +++-- .../schemas/models/object_type_definition.py | 400 ++++----- .../models/object_type_definition_labels.py | 58 +- .../models/object_type_definition_patch.py | 104 ++- .../models/object_type_property_create.py | 447 ++++++++--- hubspot/crm/schemas/models/option.py | 138 ++-- hubspot/crm/schemas/models/option_input.py | 140 ++-- .../models/property_modification_metadata.py | 112 +-- 219 files changed, 11520 insertions(+), 10807 deletions(-) create mode 100644 hubspot/crm/imports/models/import_template.py create mode 100644 hubspot/crm/line_items/api/gdpr_api.py delete mode 100644 hubspot/crm/line_items/models/error_category.py create mode 100644 hubspot/crm/line_items/models/public_gdpr_delete_input.py rename hubspot/crm/lists/api/{lists_api.py => list_app_api.py} (98%) rename hubspot/crm/lists/api/{memberships_api.py => list_app_membership_api.py} (95%) rename hubspot/crm/lists/models/{collection_response_long.py => collection_response_join_time_and_record_id.py} (72%) create mode 100644 hubspot/crm/lists/models/join_time_and_record_id.py delete mode 100644 hubspot/crm/properties/models/error_category.py diff --git a/hubspot/crm/imports/__init__.py b/hubspot/crm/imports/__init__.py index 43ed28d6..4e8672e8 100644 --- a/hubspot/crm/imports/__init__.py +++ b/hubspot/crm/imports/__init__.py @@ -3,7 +3,7 @@ # flake8: noqa """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 @@ -38,6 +38,7 @@ from hubspot.crm.imports.models.error_detail import ErrorDetail from hubspot.crm.imports.models.forward_paging import ForwardPaging from hubspot.crm.imports.models.import_row_core import ImportRowCore +from hubspot.crm.imports.models.import_template import ImportTemplate from hubspot.crm.imports.models.next_page import NextPage from hubspot.crm.imports.models.paging import Paging from hubspot.crm.imports.models.previous_page import PreviousPage diff --git a/hubspot/crm/imports/api/core_api.py b/hubspot/crm/imports/api/core_api.py index 97d73c20..2ecd4081 100644 --- a/hubspot/crm/imports/api/core_api.py +++ b/hubspot/crm/imports/api/core_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/crm/imports/api/public_imports_api.py b/hubspot/crm/imports/api/public_imports_api.py index 583b119c..3da0cede 100644 --- a/hubspot/crm/imports/api/public_imports_api.py +++ b/hubspot/crm/imports/api/public_imports_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/crm/imports/api_client.py b/hubspot/crm/imports/api_client.py index 171c6d8c..742b684c 100644 --- a/hubspot/crm/imports/api_client.py +++ b/hubspot/crm/imports/api_client.py @@ -1,6 +1,6 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/crm/imports/configuration.py b/hubspot/crm/imports/configuration.py index 5ce28b83..bb48e19b 100644 --- a/hubspot/crm/imports/configuration.py +++ b/hubspot/crm/imports/configuration.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/crm/imports/exceptions.py b/hubspot/crm/imports/exceptions.py index a61c08cc..c05cc1bf 100644 --- a/hubspot/crm/imports/exceptions.py +++ b/hubspot/crm/imports/exceptions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/crm/imports/models/__init__.py b/hubspot/crm/imports/models/__init__.py index 2a312884..a9711056 100644 --- a/hubspot/crm/imports/models/__init__.py +++ b/hubspot/crm/imports/models/__init__.py @@ -2,7 +2,7 @@ # flake8: noqa """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 @@ -21,6 +21,7 @@ from hubspot.crm.imports.models.error_detail import ErrorDetail from hubspot.crm.imports.models.forward_paging import ForwardPaging from hubspot.crm.imports.models.import_row_core import ImportRowCore +from hubspot.crm.imports.models.import_template import ImportTemplate from hubspot.crm.imports.models.next_page import NextPage from hubspot.crm.imports.models.paging import Paging from hubspot.crm.imports.models.previous_page import PreviousPage diff --git a/hubspot/crm/imports/models/action_response.py b/hubspot/crm/imports/models/action_response.py index c4f1df15..83864e2e 100644 --- a/hubspot/crm/imports/models/action_response.py +++ b/hubspot/crm/imports/models/action_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 @@ -35,56 +35,53 @@ class ActionResponse(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"status": "str", "requested_at": "datetime", "started_at": "datetime", "completed_at": "datetime", "links": "dict[str, str]"} + openapi_types = {"completed_at": "datetime", "requested_at": "datetime", "started_at": "datetime", "links": "dict[str, str]", "status": "str"} - attribute_map = {"status": "status", "requested_at": "requestedAt", "started_at": "startedAt", "completed_at": "completedAt", "links": "links"} + attribute_map = {"completed_at": "completedAt", "requested_at": "requestedAt", "started_at": "startedAt", "links": "links", "status": "status"} - def __init__(self, status=None, requested_at=None, started_at=None, completed_at=None, links=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, completed_at=None, requested_at=None, started_at=None, links=None, status=None, local_vars_configuration=None): # noqa: E501 """ActionResponse - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._status = None + self._completed_at = None self._requested_at = None self._started_at = None - self._completed_at = None self._links = None + self._status = None self.discriminator = None - self.status = status + self.completed_at = completed_at if requested_at is not None: self.requested_at = requested_at self.started_at = started_at - self.completed_at = completed_at if links is not None: self.links = links + self.status = status @property - def status(self): - """Gets the status of this ActionResponse. # noqa: E501 + def completed_at(self): + """Gets the completed_at of this ActionResponse. # noqa: E501 - :return: The status of this ActionResponse. # noqa: E501 - :rtype: str + :return: The completed_at of this ActionResponse. # noqa: E501 + :rtype: datetime """ - return self._status + return self._completed_at - @status.setter - def status(self, status): - """Sets the status of this ActionResponse. + @completed_at.setter + def completed_at(self, completed_at): + """Sets the completed_at of this ActionResponse. - :param status: The status of this ActionResponse. # noqa: E501 - :type status: str + :param completed_at: The completed_at of this ActionResponse. # noqa: E501 + :type completed_at: datetime """ - if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values)) # noqa: E501 + if self.local_vars_configuration.client_side_validation and completed_at is None: # noqa: E501 + raise ValueError("Invalid value for `completed_at`, must not be `None`") # noqa: E501 - self._status = status + self._completed_at = completed_at @property def requested_at(self): @@ -130,29 +127,6 @@ def started_at(self, started_at): self._started_at = started_at - @property - def completed_at(self): - """Gets the completed_at of this ActionResponse. # noqa: E501 - - - :return: The completed_at of this ActionResponse. # noqa: E501 - :rtype: datetime - """ - return self._completed_at - - @completed_at.setter - def completed_at(self, completed_at): - """Sets the completed_at of this ActionResponse. - - - :param completed_at: The completed_at of this ActionResponse. # noqa: E501 - :type completed_at: datetime - """ - if self.local_vars_configuration.client_side_validation and completed_at is None: # noqa: E501 - raise ValueError("Invalid value for `completed_at`, must not be `None`") # noqa: E501 - - self._completed_at = completed_at - @property def links(self): """Gets the links of this ActionResponse. # noqa: E501 @@ -174,6 +148,32 @@ def links(self, links): self._links = links + @property + def status(self): + """Gets the status of this ActionResponse. # noqa: E501 + + + :return: The status of this ActionResponse. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ActionResponse. + + + :param status: The status of this ActionResponse. # noqa: E501 + :type status: str + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + allowed_values = ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values)) # noqa: E501 + + self._status = status + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/imports/models/collection_response_public_import_error_forward_paging.py b/hubspot/crm/imports/models/collection_response_public_import_error_forward_paging.py index b222d0b5..7e2e7eda 100644 --- a/hubspot/crm/imports/models/collection_response_public_import_error_forward_paging.py +++ b/hubspot/crm/imports/models/collection_response_public_import_error_forward_paging.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 @@ -35,23 +35,44 @@ class CollectionResponsePublicImportErrorForwardPaging(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"results": "list[PublicImportError]", "paging": "ForwardPaging"} + openapi_types = {"paging": "ForwardPaging", "results": "list[PublicImportError]"} - attribute_map = {"results": "results", "paging": "paging"} + attribute_map = {"paging": "paging", "results": "results"} - def __init__(self, results=None, paging=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, paging=None, results=None, local_vars_configuration=None): # noqa: E501 """CollectionResponsePublicImportErrorForwardPaging - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._results = None self._paging = None + self._results = None self.discriminator = None - self.results = results if paging is not None: self.paging = paging + self.results = results + + @property + def paging(self): + """Gets the paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501 + + + :return: The paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501 + :rtype: ForwardPaging + """ + return self._paging + + @paging.setter + def paging(self, paging): + """Sets the paging of this CollectionResponsePublicImportErrorForwardPaging. + + + :param paging: The paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501 + :type paging: ForwardPaging + """ + + self._paging = paging @property def results(self): @@ -76,27 +97,6 @@ def results(self, results): self._results = results - @property - def paging(self): - """Gets the paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501 - - - :return: The paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501 - :rtype: ForwardPaging - """ - return self._paging - - @paging.setter - def paging(self, paging): - """Sets the paging of this CollectionResponsePublicImportErrorForwardPaging. - - - :param paging: The paging of this CollectionResponsePublicImportErrorForwardPaging. # noqa: E501 - :type paging: ForwardPaging - """ - - self._paging = paging - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/imports/models/collection_response_public_import_response.py b/hubspot/crm/imports/models/collection_response_public_import_response.py index d93a3f87..1eb07fc4 100644 --- a/hubspot/crm/imports/models/collection_response_public_import_response.py +++ b/hubspot/crm/imports/models/collection_response_public_import_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 @@ -35,23 +35,44 @@ class CollectionResponsePublicImportResponse(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"results": "list[PublicImportResponse]", "paging": "Paging"} + openapi_types = {"paging": "Paging", "results": "list[PublicImportResponse]"} - attribute_map = {"results": "results", "paging": "paging"} + attribute_map = {"paging": "paging", "results": "results"} - def __init__(self, results=None, paging=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, paging=None, results=None, local_vars_configuration=None): # noqa: E501 """CollectionResponsePublicImportResponse - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._results = None self._paging = None + self._results = None self.discriminator = None - self.results = results if paging is not None: self.paging = paging + self.results = results + + @property + def paging(self): + """Gets the paging of this CollectionResponsePublicImportResponse. # noqa: E501 + + + :return: The paging of this CollectionResponsePublicImportResponse. # noqa: E501 + :rtype: Paging + """ + return self._paging + + @paging.setter + def paging(self, paging): + """Sets the paging of this CollectionResponsePublicImportResponse. + + + :param paging: The paging of this CollectionResponsePublicImportResponse. # noqa: E501 + :type paging: Paging + """ + + self._paging = paging @property def results(self): @@ -76,27 +97,6 @@ def results(self, results): self._results = results - @property - def paging(self): - """Gets the paging of this CollectionResponsePublicImportResponse. # noqa: E501 - - - :return: The paging of this CollectionResponsePublicImportResponse. # noqa: E501 - :rtype: Paging - """ - return self._paging - - @paging.setter - def paging(self, paging): - """Sets the paging of this CollectionResponsePublicImportResponse. - - - :param paging: The paging of this CollectionResponsePublicImportResponse. # noqa: E501 - :type paging: Paging - """ - - self._paging = paging - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/imports/models/error.py b/hubspot/crm/imports/models/error.py index 71c650ec..86fee317 100644 --- a/hubspot/crm/imports/models/error.py +++ b/hubspot/crm/imports/models/error.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 @@ -35,61 +35,82 @@ class Error(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"message": "str", "correlation_id": "str", "category": "str", "sub_category": "str", "errors": "list[ErrorDetail]", "context": "dict[str, list[str]]", "links": "dict[str, str]"} + openapi_types = {"sub_category": "str", "context": "dict[str, list[str]]", "correlation_id": "str", "links": "dict[str, str]", "message": "str", "category": "str", "errors": "list[ErrorDetail]"} - attribute_map = {"message": "message", "correlation_id": "correlationId", "category": "category", "sub_category": "subCategory", "errors": "errors", "context": "context", "links": "links"} + attribute_map = {"sub_category": "subCategory", "context": "context", "correlation_id": "correlationId", "links": "links", "message": "message", "category": "category", "errors": "errors"} - def __init__(self, message=None, correlation_id=None, category=None, sub_category=None, errors=None, context=None, links=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, sub_category=None, context=None, correlation_id=None, links=None, message=None, category=None, errors=None, local_vars_configuration=None): # noqa: E501 """Error - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._message = None - self._correlation_id = None - self._category = None self._sub_category = None - self._errors = None self._context = None + self._correlation_id = None self._links = None + self._message = None + self._category = None + self._errors = None self.discriminator = None - self.message = message - self.correlation_id = correlation_id - self.category = category if sub_category is not None: self.sub_category = sub_category - if errors is not None: - self.errors = errors if context is not None: self.context = context + self.correlation_id = correlation_id if links is not None: self.links = links + self.message = message + self.category = category + if errors is not None: + self.errors = errors @property - def message(self): - """Gets the message of this Error. # noqa: E501 + def sub_category(self): + """Gets the sub_category of this Error. # noqa: E501 - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :return: The message of this Error. # noqa: E501 + :return: The sub_category of this Error. # noqa: E501 :rtype: str """ - return self._message + return self._sub_category - @message.setter - def message(self, message): - """Sets the message of this Error. + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this Error. - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :param message: The message of this Error. # noqa: E501 - :type message: str + :param sub_category: The sub_category of this Error. # noqa: E501 + :type sub_category: str """ - if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - self._message = message + self._sub_category = sub_category + + @property + def context(self): + """Gets the context of this Error. # noqa: E501 + + Context about the error condition # noqa: E501 + + :return: The context of this Error. # noqa: E501 + :rtype: dict[str, list[str]] + """ + return self._context + + @context.setter + def context(self, context): + """Sets the context of this Error. + + Context about the error condition # noqa: E501 + + :param context: The context of this Error. # noqa: E501 + :type context: dict[str, list[str]] + """ + + self._context = context @property def correlation_id(self): @@ -116,6 +137,54 @@ def correlation_id(self, correlation_id): self._correlation_id = correlation_id + @property + def links(self): + """Gets the links of this Error. # noqa: E501 + + A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 + + :return: The links of this Error. # noqa: E501 + :rtype: dict[str, str] + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this Error. + + A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 + + :param links: The links of this Error. # noqa: E501 + :type links: dict[str, str] + """ + + self._links = links + + @property + def message(self): + """Gets the message of this Error. # noqa: E501 + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :return: The message of this Error. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this Error. + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :param message: The message of this Error. # noqa: E501 + :type message: str + """ + if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 + raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 + + self._message = message + @property def category(self): """Gets the category of this Error. # noqa: E501 @@ -141,29 +210,6 @@ def category(self, category): self._category = category - @property - def sub_category(self): - """Gets the sub_category of this Error. # noqa: E501 - - A specific category that contains more specific detail about the error # noqa: E501 - - :return: The sub_category of this Error. # noqa: E501 - :rtype: str - """ - return self._sub_category - - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this Error. - - A specific category that contains more specific detail about the error # noqa: E501 - - :param sub_category: The sub_category of this Error. # noqa: E501 - :type sub_category: str - """ - - self._sub_category = sub_category - @property def errors(self): """Gets the errors of this Error. # noqa: E501 @@ -187,52 +233,6 @@ def errors(self, errors): self._errors = errors - @property - def context(self): - """Gets the context of this Error. # noqa: E501 - - Context about the error condition # noqa: E501 - - :return: The context of this Error. # noqa: E501 - :rtype: dict[str, list[str]] - """ - return self._context - - @context.setter - def context(self, context): - """Sets the context of this Error. - - Context about the error condition # noqa: E501 - - :param context: The context of this Error. # noqa: E501 - :type context: dict[str, list[str]] - """ - - self._context = context - - @property - def links(self): - """Gets the links of this Error. # noqa: E501 - - A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 - - :return: The links of this Error. # noqa: E501 - :rtype: dict[str, str] - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this Error. - - A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 - - :param links: The links of this Error. # noqa: E501 - :type links: dict[str, str] - """ - - self._links = links - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/imports/models/error_detail.py b/hubspot/crm/imports/models/error_detail.py index 1c6a9c15..4332dbcd 100644 --- a/hubspot/crm/imports/models/error_detail.py +++ b/hubspot/crm/imports/models/error_detail.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 @@ -35,80 +35,55 @@ class ErrorDetail(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"message": "str", "_in": "str", "code": "str", "sub_category": "str", "context": "dict[str, list[str]]"} + openapi_types = {"sub_category": "str", "code": "str", "_in": "str", "context": "dict[str, list[str]]", "message": "str"} - attribute_map = {"message": "message", "_in": "in", "code": "code", "sub_category": "subCategory", "context": "context"} + attribute_map = {"sub_category": "subCategory", "code": "code", "_in": "in", "context": "context", "message": "message"} - def __init__(self, message=None, _in=None, code=None, sub_category=None, context=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, sub_category=None, code=None, _in=None, context=None, message=None, local_vars_configuration=None): # noqa: E501 """ErrorDetail - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._message = None - self.__in = None - self._code = None self._sub_category = None + self._code = None + self.__in = None self._context = None + self._message = None self.discriminator = None - self.message = message - if _in is not None: - self._in = _in - if code is not None: - self.code = code if sub_category is not None: self.sub_category = sub_category + if code is not None: + self.code = code + if _in is not None: + self._in = _in if context is not None: self.context = context + self.message = message @property - def message(self): - """Gets the message of this ErrorDetail. # noqa: E501 - - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 - - :return: The message of this ErrorDetail. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this ErrorDetail. - - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 - - :param message: The message of this ErrorDetail. # noqa: E501 - :type message: str - """ - if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - - self._message = message - - @property - def _in(self): - """Gets the _in of this ErrorDetail. # noqa: E501 + def sub_category(self): + """Gets the sub_category of this ErrorDetail. # noqa: E501 - The name of the field or parameter in which the error was found. # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :return: The _in of this ErrorDetail. # noqa: E501 + :return: The sub_category of this ErrorDetail. # noqa: E501 :rtype: str """ - return self.__in + return self._sub_category - @_in.setter - def _in(self, _in): - """Sets the _in of this ErrorDetail. + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this ErrorDetail. - The name of the field or parameter in which the error was found. # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :param _in: The _in of this ErrorDetail. # noqa: E501 - :type _in: str + :param sub_category: The sub_category of this ErrorDetail. # noqa: E501 + :type sub_category: str """ - self.__in = _in + self._sub_category = sub_category @property def code(self): @@ -134,27 +109,27 @@ def code(self, code): self._code = code @property - def sub_category(self): - """Gets the sub_category of this ErrorDetail. # noqa: E501 + def _in(self): + """Gets the _in of this ErrorDetail. # noqa: E501 - A specific category that contains more specific detail about the error # noqa: E501 + The name of the field or parameter in which the error was found. # noqa: E501 - :return: The sub_category of this ErrorDetail. # noqa: E501 + :return: The _in of this ErrorDetail. # noqa: E501 :rtype: str """ - return self._sub_category + return self.__in - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this ErrorDetail. + @_in.setter + def _in(self, _in): + """Sets the _in of this ErrorDetail. - A specific category that contains more specific detail about the error # noqa: E501 + The name of the field or parameter in which the error was found. # noqa: E501 - :param sub_category: The sub_category of this ErrorDetail. # noqa: E501 - :type sub_category: str + :param _in: The _in of this ErrorDetail. # noqa: E501 + :type _in: str """ - self._sub_category = sub_category + self.__in = _in @property def context(self): @@ -179,6 +154,31 @@ def context(self, context): self._context = context + @property + def message(self): + """Gets the message of this ErrorDetail. # noqa: E501 + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :return: The message of this ErrorDetail. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ErrorDetail. + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :param message: The message of this ErrorDetail. # noqa: E501 + :type message: str + """ + if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 + raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 + + self._message = message + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/imports/models/forward_paging.py b/hubspot/crm/imports/models/forward_paging.py index a8003aa0..13acd599 100644 --- a/hubspot/crm/imports/models/forward_paging.py +++ b/hubspot/crm/imports/models/forward_paging.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/crm/imports/models/import_row_core.py b/hubspot/crm/imports/models/import_row_core.py index 176936e7..56e1bc4d 100644 --- a/hubspot/crm/imports/models/import_row_core.py +++ b/hubspot/crm/imports/models/import_row_core.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 @@ -35,27 +35,50 @@ class ImportRowCore(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"line_number": "int", "row_data": "list[str]", "file_id": "int", "page_name": "str"} + openapi_types = {"row_data": "list[str]", "line_number": "int", "page_name": "str", "file_id": "int"} - attribute_map = {"line_number": "lineNumber", "row_data": "rowData", "file_id": "fileId", "page_name": "pageName"} + attribute_map = {"row_data": "rowData", "line_number": "lineNumber", "page_name": "pageName", "file_id": "fileId"} - def __init__(self, line_number=None, row_data=None, file_id=None, page_name=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, row_data=None, line_number=None, page_name=None, file_id=None, local_vars_configuration=None): # noqa: E501 """ImportRowCore - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._line_number = None self._row_data = None - self._file_id = None + self._line_number = None self._page_name = None + self._file_id = None self.discriminator = None - self.line_number = line_number self.row_data = row_data - self.file_id = file_id + self.line_number = line_number if page_name is not None: self.page_name = page_name + self.file_id = file_id + + @property + def row_data(self): + """Gets the row_data of this ImportRowCore. # noqa: E501 + + + :return: The row_data of this ImportRowCore. # noqa: E501 + :rtype: list[str] + """ + return self._row_data + + @row_data.setter + def row_data(self, row_data): + """Sets the row_data of this ImportRowCore. + + + :param row_data: The row_data of this ImportRowCore. # noqa: E501 + :type row_data: list[str] + """ + if self.local_vars_configuration.client_side_validation and row_data is None: # noqa: E501 + raise ValueError("Invalid value for `row_data`, must not be `None`") # noqa: E501 + + self._row_data = row_data @property def line_number(self): @@ -81,27 +104,25 @@ def line_number(self, line_number): self._line_number = line_number @property - def row_data(self): - """Gets the row_data of this ImportRowCore. # noqa: E501 + def page_name(self): + """Gets the page_name of this ImportRowCore. # noqa: E501 - :return: The row_data of this ImportRowCore. # noqa: E501 - :rtype: list[str] + :return: The page_name of this ImportRowCore. # noqa: E501 + :rtype: str """ - return self._row_data + return self._page_name - @row_data.setter - def row_data(self, row_data): - """Sets the row_data of this ImportRowCore. + @page_name.setter + def page_name(self, page_name): + """Sets the page_name of this ImportRowCore. - :param row_data: The row_data of this ImportRowCore. # noqa: E501 - :type row_data: list[str] + :param page_name: The page_name of this ImportRowCore. # noqa: E501 + :type page_name: str """ - if self.local_vars_configuration.client_side_validation and row_data is None: # noqa: E501 - raise ValueError("Invalid value for `row_data`, must not be `None`") # noqa: E501 - self._row_data = row_data + self._page_name = page_name @property def file_id(self): @@ -126,27 +147,6 @@ def file_id(self, file_id): self._file_id = file_id - @property - def page_name(self): - """Gets the page_name of this ImportRowCore. # noqa: E501 - - - :return: The page_name of this ImportRowCore. # noqa: E501 - :rtype: str - """ - return self._page_name - - @page_name.setter - def page_name(self, page_name): - """Sets the page_name of this ImportRowCore. - - - :param page_name: The page_name of this ImportRowCore. # noqa: E501 - :type page_name: str - """ - - self._page_name = page_name - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/imports/models/import_template.py b/hubspot/crm/imports/models/import_template.py new file mode 100644 index 00000000..a26dcdf3 --- /dev/null +++ b/hubspot/crm/imports/models/import_template.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + Imports + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v3 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from hubspot.crm.imports.configuration import Configuration + + +class ImportTemplate(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = {"template_type": "str", "template_id": "int"} + + attribute_map = {"template_type": "templateType", "template_id": "templateId"} + + def __init__(self, template_type=None, template_id=None, local_vars_configuration=None): # noqa: E501 + """ImportTemplate - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._template_type = None + self._template_id = None + self.discriminator = None + + self.template_type = template_type + self.template_id = template_id + + @property + def template_type(self): + """Gets the template_type of this ImportTemplate. # noqa: E501 + + + :return: The template_type of this ImportTemplate. # noqa: E501 + :rtype: str + """ + return self._template_type + + @template_type.setter + def template_type(self, template_type): + """Sets the template_type of this ImportTemplate. + + + :param template_type: The template_type of this ImportTemplate. # noqa: E501 + :type template_type: str + """ + if self.local_vars_configuration.client_side_validation and template_type is None: # noqa: E501 + raise ValueError("Invalid value for `template_type`, must not be `None`") # noqa: E501 + allowed_values = ["admin_defined", "previous_import", "user_file"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and template_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `template_type` ({0}), must be one of {1}".format(template_type, allowed_values)) # noqa: E501 + + self._template_type = template_type + + @property + def template_id(self): + """Gets the template_id of this ImportTemplate. # noqa: E501 + + + :return: The template_id of this ImportTemplate. # noqa: E501 + :rtype: int + """ + return self._template_id + + @template_id.setter + def template_id(self, template_id): + """Sets the template_id of this ImportTemplate. + + + :param template_id: The template_id of this ImportTemplate. # noqa: E501 + :type template_id: int + """ + if self.local_vars_configuration.client_side_validation and template_id is None: # noqa: E501 + raise ValueError("Invalid value for `template_id`, must not be `None`") # noqa: E501 + + self._template_id = template_id + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map(lambda x: convert(x), value)) + elif isinstance(value, dict): + result[attr] = dict(map(lambda item: (item[0], convert(item[1])), value.items())) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ImportTemplate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ImportTemplate): + return True + + return self.to_dict() != other.to_dict() diff --git a/hubspot/crm/imports/models/next_page.py b/hubspot/crm/imports/models/next_page.py index 5ac85202..d3bcda95 100644 --- a/hubspot/crm/imports/models/next_page.py +++ b/hubspot/crm/imports/models/next_page.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 @@ -35,23 +35,44 @@ class NextPage(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"after": "str", "link": "str"} + openapi_types = {"link": "str", "after": "str"} - attribute_map = {"after": "after", "link": "link"} + attribute_map = {"link": "link", "after": "after"} - def __init__(self, after=None, link=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, link=None, after=None, local_vars_configuration=None): # noqa: E501 """NextPage - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._after = None self._link = None + self._after = None self.discriminator = None - self.after = after if link is not None: self.link = link + self.after = after + + @property + def link(self): + """Gets the link of this NextPage. # noqa: E501 + + + :return: The link of this NextPage. # noqa: E501 + :rtype: str + """ + return self._link + + @link.setter + def link(self, link): + """Sets the link of this NextPage. + + + :param link: The link of this NextPage. # noqa: E501 + :type link: str + """ + + self._link = link @property def after(self): @@ -76,27 +97,6 @@ def after(self, after): self._after = after - @property - def link(self): - """Gets the link of this NextPage. # noqa: E501 - - - :return: The link of this NextPage. # noqa: E501 - :rtype: str - """ - return self._link - - @link.setter - def link(self, link): - """Sets the link of this NextPage. - - - :param link: The link of this NextPage. # noqa: E501 - :type link: str - """ - - self._link = link - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/imports/models/paging.py b/hubspot/crm/imports/models/paging.py index 87309ee4..54807d67 100644 --- a/hubspot/crm/imports/models/paging.py +++ b/hubspot/crm/imports/models/paging.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/crm/imports/models/previous_page.py b/hubspot/crm/imports/models/previous_page.py index d0e909d8..cace2fed 100644 --- a/hubspot/crm/imports/models/previous_page.py +++ b/hubspot/crm/imports/models/previous_page.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/crm/imports/models/public_import_error.py b/hubspot/crm/imports/models/public_import_error.py index e518ee42..5817fb20 100644 --- a/hubspot/crm/imports/models/public_import_error.py +++ b/hubspot/crm/imports/models/public_import_error.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 @@ -36,40 +36,40 @@ class PublicImportError(object): and the value is json key in definition. """ openapi_types = { - "error_type": "str", - "source_data": "ImportRowCore", - "object_type": "str", - "invalid_value": "str", + "created_at": "int", "extra_context": "str", "object_type_id": "str", + "error_type": "str", "known_column_number": "int", - "created_at": "int", "id": "str", + "source_data": "ImportRowCore", + "object_type": "str", + "invalid_value": "str", } attribute_map = { - "error_type": "errorType", - "source_data": "sourceData", - "object_type": "objectType", - "invalid_value": "invalidValue", + "created_at": "createdAt", "extra_context": "extraContext", "object_type_id": "objectTypeId", + "error_type": "errorType", "known_column_number": "knownColumnNumber", - "created_at": "createdAt", "id": "id", + "source_data": "sourceData", + "object_type": "objectType", + "invalid_value": "invalidValue", } def __init__( self, - error_type=None, - source_data=None, - object_type=None, - invalid_value=None, + created_at=None, extra_context=None, object_type_id=None, + error_type=None, known_column_number=None, - created_at=None, id=None, + source_data=None, + object_type=None, + invalid_value=None, local_vars_configuration=None, ): # noqa: E501 """PublicImportError - a model defined in OpenAPI""" # noqa: E501 @@ -77,30 +77,96 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._error_type = None - self._source_data = None - self._object_type = None - self._invalid_value = None + self._created_at = None self._extra_context = None self._object_type_id = None + self._error_type = None self._known_column_number = None - self._created_at = None self._id = None + self._source_data = None + self._object_type = None + self._invalid_value = None self.discriminator = None + self.created_at = created_at + if extra_context is not None: + self.extra_context = extra_context + if object_type_id is not None: + self.object_type_id = object_type_id self.error_type = error_type + if known_column_number is not None: + self.known_column_number = known_column_number + self.id = id self.source_data = source_data if object_type is not None: self.object_type = object_type if invalid_value is not None: self.invalid_value = invalid_value - if extra_context is not None: - self.extra_context = extra_context - if object_type_id is not None: - self.object_type_id = object_type_id - self.known_column_number = known_column_number - self.created_at = created_at - self.id = id + + @property + def created_at(self): + """Gets the created_at of this PublicImportError. # noqa: E501 + + + :return: The created_at of this PublicImportError. # noqa: E501 + :rtype: int + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this PublicImportError. + + + :param created_at: The created_at of this PublicImportError. # noqa: E501 + :type created_at: int + """ + if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 + + self._created_at = created_at + + @property + def extra_context(self): + """Gets the extra_context of this PublicImportError. # noqa: E501 + + + :return: The extra_context of this PublicImportError. # noqa: E501 + :rtype: str + """ + return self._extra_context + + @extra_context.setter + def extra_context(self, extra_context): + """Sets the extra_context of this PublicImportError. + + + :param extra_context: The extra_context of this PublicImportError. # noqa: E501 + :type extra_context: str + """ + + self._extra_context = extra_context + + @property + def object_type_id(self): + """Gets the object_type_id of this PublicImportError. # noqa: E501 + + + :return: The object_type_id of this PublicImportError. # noqa: E501 + :rtype: str + """ + return self._object_type_id + + @object_type_id.setter + def object_type_id(self, object_type_id): + """Sets the object_type_id of this PublicImportError. + + + :param object_type_id: The object_type_id of this PublicImportError. # noqa: E501 + :type object_type_id: str + """ + + self._object_type_id = object_type_id @property def error_type(self): @@ -153,6 +219,7 @@ def error_type(self, error_type): "GDPR_BLACKLISTED_EMAIL", "DUPLICATE_ASSOCIATION_ID", "LIMIT_EXCEEDED", + "PORTAL_WIDE_CUSTOM_OBJECT_LIMIT_EXCEEDED", "INVALID_ALTERNATE_ID", "INVALID_EMAIL", "INVALID_DOMAIN", @@ -173,12 +240,61 @@ def error_type(self, error_type): "CREATE_ONLY_IMPORT", "UPDATE_ONLY_IMPORT", "COLUMN_TOO_LARGE", + "ROW_DATA_TOO_LARGE", + "INVALID_EVENT_TIMESTAMP", + "INVALID_EVENT", + "DUPLICATE_EVENT", + "MISSING_EVENT_DEFINITION", ] # noqa: E501 if self.local_vars_configuration.client_side_validation and error_type not in allowed_values: # noqa: E501 raise ValueError("Invalid value for `error_type` ({0}), must be one of {1}".format(error_type, allowed_values)) # noqa: E501 self._error_type = error_type + @property + def known_column_number(self): + """Gets the known_column_number of this PublicImportError. # noqa: E501 + + + :return: The known_column_number of this PublicImportError. # noqa: E501 + :rtype: int + """ + return self._known_column_number + + @known_column_number.setter + def known_column_number(self, known_column_number): + """Sets the known_column_number of this PublicImportError. + + + :param known_column_number: The known_column_number of this PublicImportError. # noqa: E501 + :type known_column_number: int + """ + + self._known_column_number = known_column_number + + @property + def id(self): + """Gets the id of this PublicImportError. # noqa: E501 + + + :return: The id of this PublicImportError. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PublicImportError. + + + :param id: The id of this PublicImportError. # noqa: E501 + :type id: str + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + @property def source_data(self): """Gets the source_data of this PublicImportError. # noqa: E501 @@ -343,6 +459,29 @@ def object_type(self, object_type): "PARTNER_ACCOUNT", "CAMPAIGN_TEMPLATE", "CAMPAIGN_TEMPLATE_STEP", + "PLAYLIST", + "CLIP", + "CAMPAIGN_BUDGET_ITEM", + "CAMPAIGN_SPEND_ITEM", + "MIC", + "CONTENT_AUDIT", + "CONTENT_AUDIT_PAGE", + "PLAYLIST_FOLDER", + "LEAD", + "ABANDONED_CART", + "EXTERNAL_WEB_URL", + "VIEW", + "VIEW_BLOCK", + "ROSTER", + "CART", + "AUTOMATION_PLATFORM_FLOW_ACTION", + "SOCIAL_PROFILE", + "PARTNER_CLIENT", + "ROSTER_MEMBER", + "MARKETING_EVENT_ATTENDANCE", + "ALL_PAGES", + "AI_FORECAST", + "CRM_PIPELINES_DUMMY_TYPE", "UNKNOWN", ] # noqa: E501 if self.local_vars_configuration.client_side_validation and object_type not in allowed_values: # noqa: E501 @@ -371,117 +510,6 @@ def invalid_value(self, invalid_value): self._invalid_value = invalid_value - @property - def extra_context(self): - """Gets the extra_context of this PublicImportError. # noqa: E501 - - - :return: The extra_context of this PublicImportError. # noqa: E501 - :rtype: str - """ - return self._extra_context - - @extra_context.setter - def extra_context(self, extra_context): - """Sets the extra_context of this PublicImportError. - - - :param extra_context: The extra_context of this PublicImportError. # noqa: E501 - :type extra_context: str - """ - - self._extra_context = extra_context - - @property - def object_type_id(self): - """Gets the object_type_id of this PublicImportError. # noqa: E501 - - - :return: The object_type_id of this PublicImportError. # noqa: E501 - :rtype: str - """ - return self._object_type_id - - @object_type_id.setter - def object_type_id(self, object_type_id): - """Sets the object_type_id of this PublicImportError. - - - :param object_type_id: The object_type_id of this PublicImportError. # noqa: E501 - :type object_type_id: str - """ - - self._object_type_id = object_type_id - - @property - def known_column_number(self): - """Gets the known_column_number of this PublicImportError. # noqa: E501 - - - :return: The known_column_number of this PublicImportError. # noqa: E501 - :rtype: int - """ - return self._known_column_number - - @known_column_number.setter - def known_column_number(self, known_column_number): - """Sets the known_column_number of this PublicImportError. - - - :param known_column_number: The known_column_number of this PublicImportError. # noqa: E501 - :type known_column_number: int - """ - if self.local_vars_configuration.client_side_validation and known_column_number is None: # noqa: E501 - raise ValueError("Invalid value for `known_column_number`, must not be `None`") # noqa: E501 - - self._known_column_number = known_column_number - - @property - def created_at(self): - """Gets the created_at of this PublicImportError. # noqa: E501 - - - :return: The created_at of this PublicImportError. # noqa: E501 - :rtype: int - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this PublicImportError. - - - :param created_at: The created_at of this PublicImportError. # noqa: E501 - :type created_at: int - """ - if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 - raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 - - self._created_at = created_at - - @property - def id(self): - """Gets the id of this PublicImportError. # noqa: E501 - - - :return: The id of this PublicImportError. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this PublicImportError. - - - :param id: The id of this PublicImportError. # noqa: E501 - :type id: str - """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/imports/models/public_import_metadata.py b/hubspot/crm/imports/models/public_import_metadata.py index e8c2af56..7d30773e 100644 --- a/hubspot/crm/imports/models/public_import_metadata.py +++ b/hubspot/crm/imports/models/public_import_metadata.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 @@ -35,49 +35,24 @@ class PublicImportMetadata(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"object_lists": "list[PublicObjectListRecord]", "counters": "dict[str, int]", "file_ids": "list[str]"} + openapi_types = {"counters": "dict[str, int]", "file_ids": "list[str]", "object_lists": "list[PublicObjectListRecord]"} - attribute_map = {"object_lists": "objectLists", "counters": "counters", "file_ids": "fileIds"} + attribute_map = {"counters": "counters", "file_ids": "fileIds", "object_lists": "objectLists"} - def __init__(self, object_lists=None, counters=None, file_ids=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, counters=None, file_ids=None, object_lists=None, local_vars_configuration=None): # noqa: E501 """PublicImportMetadata - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._object_lists = None self._counters = None self._file_ids = None + self._object_lists = None self.discriminator = None - self.object_lists = object_lists self.counters = counters self.file_ids = file_ids - - @property - def object_lists(self): - """Gets the object_lists of this PublicImportMetadata. # noqa: E501 - - The lists containing the imported objects. # noqa: E501 - - :return: The object_lists of this PublicImportMetadata. # noqa: E501 - :rtype: list[PublicObjectListRecord] - """ - return self._object_lists - - @object_lists.setter - def object_lists(self, object_lists): - """Sets the object_lists of this PublicImportMetadata. - - The lists containing the imported objects. # noqa: E501 - - :param object_lists: The object_lists of this PublicImportMetadata. # noqa: E501 - :type object_lists: list[PublicObjectListRecord] - """ - if self.local_vars_configuration.client_side_validation and object_lists is None: # noqa: E501 - raise ValueError("Invalid value for `object_lists`, must not be `None`") # noqa: E501 - - self._object_lists = object_lists + self.object_lists = object_lists @property def counters(self): @@ -129,6 +104,31 @@ def file_ids(self, file_ids): self._file_ids = file_ids + @property + def object_lists(self): + """Gets the object_lists of this PublicImportMetadata. # noqa: E501 + + The lists containing the imported objects. # noqa: E501 + + :return: The object_lists of this PublicImportMetadata. # noqa: E501 + :rtype: list[PublicObjectListRecord] + """ + return self._object_lists + + @object_lists.setter + def object_lists(self, object_lists): + """Sets the object_lists of this PublicImportMetadata. + + The lists containing the imported objects. # noqa: E501 + + :param object_lists: The object_lists of this PublicImportMetadata. # noqa: E501 + :type object_lists: list[PublicObjectListRecord] + """ + if self.local_vars_configuration.client_side_validation and object_lists is None: # noqa: E501 + raise ValueError("Invalid value for `object_lists`, must not be `None`") # noqa: E501 + + self._object_lists = object_lists + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/imports/models/public_import_response.py b/hubspot/crm/imports/models/public_import_response.py index 24e398e1..8e78b108 100644 --- a/hubspot/crm/imports/models/public_import_response.py +++ b/hubspot/crm/imports/models/public_import_response.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 @@ -36,104 +36,97 @@ class PublicImportResponse(object): and the value is json key in definition. """ openapi_types = { - "state": "str", - "import_request_json": "object", + "import_template": "ImportTemplate", "created_at": "datetime", "metadata": "PublicImportMetadata", + "import_request_json": "object", + "import_source": "str", "import_name": "str", - "updated_at": "datetime", - "opt_out_import": "bool", + "state": "str", "id": "str", + "opt_out_import": "bool", + "updated_at": "datetime", } attribute_map = { - "state": "state", - "import_request_json": "importRequestJson", + "import_template": "importTemplate", "created_at": "createdAt", "metadata": "metadata", + "import_request_json": "importRequestJson", + "import_source": "importSource", "import_name": "importName", - "updated_at": "updatedAt", - "opt_out_import": "optOutImport", + "state": "state", "id": "id", + "opt_out_import": "optOutImport", + "updated_at": "updatedAt", } def __init__( - self, state=None, import_request_json=None, created_at=None, metadata=None, import_name=None, updated_at=None, opt_out_import=None, id=None, local_vars_configuration=None + self, + import_template=None, + created_at=None, + metadata=None, + import_request_json=None, + import_source=None, + import_name=None, + state=None, + id=None, + opt_out_import=None, + updated_at=None, + local_vars_configuration=None, ): # noqa: E501 """PublicImportResponse - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._state = None - self._import_request_json = None + self._import_template = None self._created_at = None self._metadata = None + self._import_request_json = None + self._import_source = None self._import_name = None - self._updated_at = None - self._opt_out_import = None + self._state = None self._id = None + self._opt_out_import = None + self._updated_at = None self.discriminator = None - self.state = state - if import_request_json is not None: - self.import_request_json = import_request_json + if import_template is not None: + self.import_template = import_template self.created_at = created_at self.metadata = metadata + if import_request_json is not None: + self.import_request_json = import_request_json + if import_source is not None: + self.import_source = import_source if import_name is not None: self.import_name = import_name - self.updated_at = updated_at - self.opt_out_import = opt_out_import + self.state = state self.id = id + self.opt_out_import = opt_out_import + self.updated_at = updated_at @property - def state(self): - """Gets the state of this PublicImportResponse. # noqa: E501 - - The status of the import. # noqa: E501 - - :return: The state of this PublicImportResponse. # noqa: E501 - :rtype: str - """ - return self._state - - @state.setter - def state(self, state): - """Sets the state of this PublicImportResponse. - - The status of the import. # noqa: E501 - - :param state: The state of this PublicImportResponse. # noqa: E501 - :type state: str - """ - if self.local_vars_configuration.client_side_validation and state is None: # noqa: E501 - raise ValueError("Invalid value for `state`, must not be `None`") # noqa: E501 - allowed_values = ["STARTED", "PROCESSING", "DONE", "FAILED", "CANCELED", "DEFERRED", "REVERTED"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and state not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `state` ({0}), must be one of {1}".format(state, allowed_values)) # noqa: E501 - - self._state = state - - @property - def import_request_json(self): - """Gets the import_request_json of this PublicImportResponse. # noqa: E501 + def import_template(self): + """Gets the import_template of this PublicImportResponse. # noqa: E501 - :return: The import_request_json of this PublicImportResponse. # noqa: E501 - :rtype: object + :return: The import_template of this PublicImportResponse. # noqa: E501 + :rtype: ImportTemplate """ - return self._import_request_json + return self._import_template - @import_request_json.setter - def import_request_json(self, import_request_json): - """Sets the import_request_json of this PublicImportResponse. + @import_template.setter + def import_template(self, import_template): + """Sets the import_template of this PublicImportResponse. - :param import_request_json: The import_request_json of this PublicImportResponse. # noqa: E501 - :type import_request_json: object + :param import_template: The import_template of this PublicImportResponse. # noqa: E501 + :type import_template: ImportTemplate """ - self._import_request_json = import_request_json + self._import_template = import_template @property def created_at(self): @@ -181,6 +174,51 @@ def metadata(self, metadata): self._metadata = metadata + @property + def import_request_json(self): + """Gets the import_request_json of this PublicImportResponse. # noqa: E501 + + + :return: The import_request_json of this PublicImportResponse. # noqa: E501 + :rtype: object + """ + return self._import_request_json + + @import_request_json.setter + def import_request_json(self, import_request_json): + """Sets the import_request_json of this PublicImportResponse. + + + :param import_request_json: The import_request_json of this PublicImportResponse. # noqa: E501 + :type import_request_json: object + """ + + self._import_request_json = import_request_json + + @property + def import_source(self): + """Gets the import_source of this PublicImportResponse. # noqa: E501 + + + :return: The import_source of this PublicImportResponse. # noqa: E501 + :rtype: str + """ + return self._import_source + + @import_source.setter + def import_source(self, import_source): + """Sets the import_source of this PublicImportResponse. + + + :param import_source: The import_source of this PublicImportResponse. # noqa: E501 + :type import_source: str + """ + allowed_values = ["API", "CRM_UI", "IMPORT", "MOBILE_ANDROID", "MOBILE_IOS", "SALESFORCE"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and import_source not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `import_source` ({0}), must be one of {1}".format(import_source, allowed_values)) # noqa: E501 + + self._import_source = import_source + @property def import_name(self): """Gets the import_name of this PublicImportResponse. # noqa: E501 @@ -203,27 +241,55 @@ def import_name(self, import_name): self._import_name = import_name @property - def updated_at(self): - """Gets the updated_at of this PublicImportResponse. # noqa: E501 + def state(self): + """Gets the state of this PublicImportResponse. # noqa: E501 + The status of the import. # noqa: E501 - :return: The updated_at of this PublicImportResponse. # noqa: E501 - :rtype: datetime + :return: The state of this PublicImportResponse. # noqa: E501 + :rtype: str """ - return self._updated_at + return self._state - @updated_at.setter - def updated_at(self, updated_at): - """Sets the updated_at of this PublicImportResponse. + @state.setter + def state(self, state): + """Sets the state of this PublicImportResponse. + The status of the import. # noqa: E501 - :param updated_at: The updated_at of this PublicImportResponse. # noqa: E501 - :type updated_at: datetime + :param state: The state of this PublicImportResponse. # noqa: E501 + :type state: str """ - if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501 - raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and state is None: # noqa: E501 + raise ValueError("Invalid value for `state`, must not be `None`") # noqa: E501 + allowed_values = ["STARTED", "PROCESSING", "DONE", "FAILED", "CANCELED", "DEFERRED", "REVERTED"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and state not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `state` ({0}), must be one of {1}".format(state, allowed_values)) # noqa: E501 + + self._state = state + + @property + def id(self): + """Gets the id of this PublicImportResponse. # noqa: E501 + + + :return: The id of this PublicImportResponse. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PublicImportResponse. - self._updated_at = updated_at + + :param id: The id of this PublicImportResponse. # noqa: E501 + :type id: str + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id @property def opt_out_import(self): @@ -251,27 +317,27 @@ def opt_out_import(self, opt_out_import): self._opt_out_import = opt_out_import @property - def id(self): - """Gets the id of this PublicImportResponse. # noqa: E501 + def updated_at(self): + """Gets the updated_at of this PublicImportResponse. # noqa: E501 - :return: The id of this PublicImportResponse. # noqa: E501 - :rtype: str + :return: The updated_at of this PublicImportResponse. # noqa: E501 + :rtype: datetime """ - return self._id + return self._updated_at - @id.setter - def id(self, id): - """Sets the id of this PublicImportResponse. + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this PublicImportResponse. - :param id: The id of this PublicImportResponse. # noqa: E501 - :type id: str + :param updated_at: The updated_at of this PublicImportResponse. # noqa: E501 + :type updated_at: datetime """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501 + raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501 - self._id = id + self._updated_at = updated_at def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/imports/models/public_object_list_record.py b/hubspot/crm/imports/models/public_object_list_record.py index 5dfe6ea5..ada7280a 100644 --- a/hubspot/crm/imports/models/public_object_list_record.py +++ b/hubspot/crm/imports/models/public_object_list_record.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/crm/imports/rest.py b/hubspot/crm/imports/rest.py index 42996c4a..c9df7111 100644 --- a/hubspot/crm/imports/rest.py +++ b/hubspot/crm/imports/rest.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Imports + Imports No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 diff --git a/hubspot/crm/line_items/__init__.py b/hubspot/crm/line_items/__init__.py index 4e13f523..1dd38c50 100644 --- a/hubspot/crm/line_items/__init__.py +++ b/hubspot/crm/line_items/__init__.py @@ -19,6 +19,7 @@ # import apis into sdk package from hubspot.crm.line_items.api.basic_api import BasicApi from hubspot.crm.line_items.api.batch_api import BatchApi +from hubspot.crm.line_items.api.gdpr_api import GDPRApi from hubspot.crm.line_items.api.public_object_api import PublicObjectApi from hubspot.crm.line_items.api.search_api import SearchApi @@ -53,6 +54,7 @@ from hubspot.crm.line_items.models.paging import Paging from hubspot.crm.line_items.models.previous_page import PreviousPage from hubspot.crm.line_items.models.public_associations_for_object import PublicAssociationsForObject +from hubspot.crm.line_items.models.public_gdpr_delete_input import PublicGdprDeleteInput from hubspot.crm.line_items.models.public_merge_input import PublicMergeInput from hubspot.crm.line_items.models.public_object_id import PublicObjectId from hubspot.crm.line_items.models.public_object_search_request import PublicObjectSearchRequest diff --git a/hubspot/crm/line_items/api/__init__.py b/hubspot/crm/line_items/api/__init__.py index d23e5412..324f0950 100644 --- a/hubspot/crm/line_items/api/__init__.py +++ b/hubspot/crm/line_items/api/__init__.py @@ -5,5 +5,6 @@ # import apis into api package from hubspot.crm.line_items.api.basic_api import BasicApi from hubspot.crm.line_items.api.batch_api import BatchApi +from hubspot.crm.line_items.api.gdpr_api import GDPRApi from hubspot.crm.line_items.api.public_object_api import PublicObjectApi from hubspot.crm.line_items.api.search_api import SearchApi diff --git a/hubspot/crm/line_items/api/gdpr_api.py b/hubspot/crm/line_items/api/gdpr_api.py new file mode 100644 index 00000000..3242dec3 --- /dev/null +++ b/hubspot/crm/line_items/api/gdpr_api.py @@ -0,0 +1,160 @@ +# coding: utf-8 + +""" + Line Items + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v3 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from hubspot.crm.line_items.api_client import ApiClient +from hubspot.crm.line_items.exceptions import ApiTypeError, ApiValueError # noqa: F401 + + +class GDPRApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def purge(self, public_gdpr_delete_input, **kwargs): # noqa: E501 + """GDPR DELETE # noqa: E501 + + Permanently delete a contact and all associated content to follow GDPR. Use optional property 'idProperty' set to 'email' to identify contact by email address. If email address is not found, the email address will be added to a blocklist and prevent it from being used in the future. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.purge(public_gdpr_delete_input, async_req=True) + >>> result = thread.get() + + :param public_gdpr_delete_input: (required) + :type public_gdpr_delete_input: PublicGdprDeleteInput + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs["_return_http_data_only"] = True + return self.purge_with_http_info(public_gdpr_delete_input, **kwargs) # noqa: E501 + + def purge_with_http_info(self, public_gdpr_delete_input, **kwargs): # noqa: E501 + """GDPR DELETE # noqa: E501 + + Permanently delete a contact and all associated content to follow GDPR. Use optional property 'idProperty' set to 'email' to identify contact by email address. If email address is not found, the email address will be added to a blocklist and prevent it from being used in the future. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.purge_with_http_info(public_gdpr_delete_input, async_req=True) + >>> result = thread.get() + + :param public_gdpr_delete_input: (required) + :type public_gdpr_delete_input: PublicGdprDeleteInput + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = ["public_gdpr_delete_input"] + all_params.extend(["async_req", "_return_http_data_only", "_preload_content", "_request_timeout", "_request_auth", "_content_type", "_headers"]) + + for key, val in six.iteritems(local_var_params["kwargs"]): + if key not in all_params: + raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method purge" % key) + local_var_params[key] = val + del local_var_params["kwargs"] + # verify the required parameter 'public_gdpr_delete_input' is set + if self.api_client.client_side_validation and local_var_params.get("public_gdpr_delete_input") is None: # noqa: E501 + raise ApiValueError("Missing the required parameter `public_gdpr_delete_input` when calling `purge`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get("_headers", {})) + + form_params = [] + local_var_files = {} + + body_params = None + if "public_gdpr_delete_input" in local_var_params: + body_params = local_var_params["public_gdpr_delete_input"] + # HTTP header `Accept` + header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # noqa: E501 + + # HTTP header `Content-Type` + content_types_list = local_var_params.get("_content_type", self.api_client.select_header_content_type(["application/json"], "POST", body_params)) # noqa: E501 + if content_types_list: + header_params["Content-Type"] = content_types_list + + # Authentication setting + auth_settings = ["oauth2"] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + "/crm/v3/objects/line_items/gdpr-delete", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get("async_req"), + _return_http_data_only=local_var_params.get("_return_http_data_only"), # noqa: E501 + _preload_content=local_var_params.get("_preload_content", True), + _request_timeout=local_var_params.get("_request_timeout"), + collection_formats=collection_formats, + _request_auth=local_var_params.get("_request_auth"), + ) diff --git a/hubspot/crm/line_items/models/__init__.py b/hubspot/crm/line_items/models/__init__.py index 95924dd4..f8292258 100644 --- a/hubspot/crm/line_items/models/__init__.py +++ b/hubspot/crm/line_items/models/__init__.py @@ -34,6 +34,7 @@ from hubspot.crm.line_items.models.paging import Paging from hubspot.crm.line_items.models.previous_page import PreviousPage from hubspot.crm.line_items.models.public_associations_for_object import PublicAssociationsForObject +from hubspot.crm.line_items.models.public_gdpr_delete_input import PublicGdprDeleteInput from hubspot.crm.line_items.models.public_merge_input import PublicMergeInput from hubspot.crm.line_items.models.public_object_id import PublicObjectId from hubspot.crm.line_items.models.public_object_search_request import PublicObjectSearchRequest diff --git a/hubspot/crm/line_items/models/batch_read_input_simple_public_object_id.py b/hubspot/crm/line_items/models/batch_read_input_simple_public_object_id.py index d63a2315..5e0a1133 100644 --- a/hubspot/crm/line_items/models/batch_read_input_simple_public_object_id.py +++ b/hubspot/crm/line_items/models/batch_read_input_simple_public_object_id.py @@ -35,50 +35,27 @@ class BatchReadInputSimplePublicObjectId(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"properties": "list[str]", "properties_with_history": "list[str]", "id_property": "str", "inputs": "list[SimplePublicObjectId]"} + openapi_types = {"properties_with_history": "list[str]", "id_property": "str", "inputs": "list[SimplePublicObjectId]", "properties": "list[str]"} - attribute_map = {"properties": "properties", "properties_with_history": "propertiesWithHistory", "id_property": "idProperty", "inputs": "inputs"} + attribute_map = {"properties_with_history": "propertiesWithHistory", "id_property": "idProperty", "inputs": "inputs", "properties": "properties"} - def __init__(self, properties=None, properties_with_history=None, id_property=None, inputs=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, properties_with_history=None, id_property=None, inputs=None, properties=None, local_vars_configuration=None): # noqa: E501 """BatchReadInputSimplePublicObjectId - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._properties = None self._properties_with_history = None self._id_property = None self._inputs = None + self._properties = None self.discriminator = None - self.properties = properties self.properties_with_history = properties_with_history if id_property is not None: self.id_property = id_property self.inputs = inputs - - @property - def properties(self): - """Gets the properties of this BatchReadInputSimplePublicObjectId. # noqa: E501 - - - :return: The properties of this BatchReadInputSimplePublicObjectId. # noqa: E501 - :rtype: list[str] - """ - return self._properties - - @properties.setter - def properties(self, properties): - """Sets the properties of this BatchReadInputSimplePublicObjectId. - - - :param properties: The properties of this BatchReadInputSimplePublicObjectId. # noqa: E501 - :type properties: list[str] - """ - if self.local_vars_configuration.client_side_validation and properties is None: # noqa: E501 - raise ValueError("Invalid value for `properties`, must not be `None`") # noqa: E501 - - self._properties = properties + self.properties = properties @property def properties_with_history(self): @@ -147,6 +124,29 @@ def inputs(self, inputs): self._inputs = inputs + @property + def properties(self): + """Gets the properties of this BatchReadInputSimplePublicObjectId. # noqa: E501 + + + :return: The properties of this BatchReadInputSimplePublicObjectId. # noqa: E501 + :rtype: list[str] + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this BatchReadInputSimplePublicObjectId. + + + :param properties: The properties of this BatchReadInputSimplePublicObjectId. # noqa: E501 + :type properties: list[str] + """ + if self.local_vars_configuration.client_side_validation and properties is None: # noqa: E501 + raise ValueError("Invalid value for `properties`, must not be `None`") # noqa: E501 + + self._properties = properties + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/batch_response_simple_public_object.py b/hubspot/crm/line_items/models/batch_response_simple_public_object.py index e6c24a23..ae48badc 100644 --- a/hubspot/crm/line_items/models/batch_response_simple_public_object.py +++ b/hubspot/crm/line_items/models/batch_response_simple_public_object.py @@ -35,81 +35,55 @@ class BatchResponseSimplePublicObject(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"status": "str", "results": "list[SimplePublicObject]", "requested_at": "datetime", "started_at": "datetime", "completed_at": "datetime", "links": "dict[str, str]"} + openapi_types = {"completed_at": "datetime", "requested_at": "datetime", "started_at": "datetime", "links": "dict[str, str]", "results": "list[SimplePublicObject]", "status": "str"} - attribute_map = {"status": "status", "results": "results", "requested_at": "requestedAt", "started_at": "startedAt", "completed_at": "completedAt", "links": "links"} + attribute_map = {"completed_at": "completedAt", "requested_at": "requestedAt", "started_at": "startedAt", "links": "links", "results": "results", "status": "status"} - def __init__(self, status=None, results=None, requested_at=None, started_at=None, completed_at=None, links=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, completed_at=None, requested_at=None, started_at=None, links=None, results=None, status=None, local_vars_configuration=None): # noqa: E501 """BatchResponseSimplePublicObject - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._status = None - self._results = None + self._completed_at = None self._requested_at = None self._started_at = None - self._completed_at = None self._links = None + self._results = None + self._status = None self.discriminator = None - self.status = status - self.results = results + self.completed_at = completed_at if requested_at is not None: self.requested_at = requested_at self.started_at = started_at - self.completed_at = completed_at if links is not None: self.links = links + self.results = results + self.status = status @property - def status(self): - """Gets the status of this BatchResponseSimplePublicObject. # noqa: E501 - - - :return: The status of this BatchResponseSimplePublicObject. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this BatchResponseSimplePublicObject. - - - :param status: The status of this BatchResponseSimplePublicObject. # noqa: E501 - :type status: str - """ - if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values)) # noqa: E501 - - self._status = status - - @property - def results(self): - """Gets the results of this BatchResponseSimplePublicObject. # noqa: E501 + def completed_at(self): + """Gets the completed_at of this BatchResponseSimplePublicObject. # noqa: E501 - :return: The results of this BatchResponseSimplePublicObject. # noqa: E501 - :rtype: list[SimplePublicObject] + :return: The completed_at of this BatchResponseSimplePublicObject. # noqa: E501 + :rtype: datetime """ - return self._results + return self._completed_at - @results.setter - def results(self, results): - """Sets the results of this BatchResponseSimplePublicObject. + @completed_at.setter + def completed_at(self, completed_at): + """Sets the completed_at of this BatchResponseSimplePublicObject. - :param results: The results of this BatchResponseSimplePublicObject. # noqa: E501 - :type results: list[SimplePublicObject] + :param completed_at: The completed_at of this BatchResponseSimplePublicObject. # noqa: E501 + :type completed_at: datetime """ - if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501 - raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and completed_at is None: # noqa: E501 + raise ValueError("Invalid value for `completed_at`, must not be `None`") # noqa: E501 - self._results = results + self._completed_at = completed_at @property def requested_at(self): @@ -155,29 +129,6 @@ def started_at(self, started_at): self._started_at = started_at - @property - def completed_at(self): - """Gets the completed_at of this BatchResponseSimplePublicObject. # noqa: E501 - - - :return: The completed_at of this BatchResponseSimplePublicObject. # noqa: E501 - :rtype: datetime - """ - return self._completed_at - - @completed_at.setter - def completed_at(self, completed_at): - """Sets the completed_at of this BatchResponseSimplePublicObject. - - - :param completed_at: The completed_at of this BatchResponseSimplePublicObject. # noqa: E501 - :type completed_at: datetime - """ - if self.local_vars_configuration.client_side_validation and completed_at is None: # noqa: E501 - raise ValueError("Invalid value for `completed_at`, must not be `None`") # noqa: E501 - - self._completed_at = completed_at - @property def links(self): """Gets the links of this BatchResponseSimplePublicObject. # noqa: E501 @@ -199,6 +150,55 @@ def links(self, links): self._links = links + @property + def results(self): + """Gets the results of this BatchResponseSimplePublicObject. # noqa: E501 + + + :return: The results of this BatchResponseSimplePublicObject. # noqa: E501 + :rtype: list[SimplePublicObject] + """ + return self._results + + @results.setter + def results(self, results): + """Sets the results of this BatchResponseSimplePublicObject. + + + :param results: The results of this BatchResponseSimplePublicObject. # noqa: E501 + :type results: list[SimplePublicObject] + """ + if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501 + raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 + + self._results = results + + @property + def status(self): + """Gets the status of this BatchResponseSimplePublicObject. # noqa: E501 + + + :return: The status of this BatchResponseSimplePublicObject. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this BatchResponseSimplePublicObject. + + + :param status: The status of this BatchResponseSimplePublicObject. # noqa: E501 + :type status: str + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + allowed_values = ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values)) # noqa: E501 + + self._status = status + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/batch_response_simple_public_object_with_errors.py b/hubspot/crm/line_items/models/batch_response_simple_public_object_with_errors.py index fad729a8..bd407cd9 100644 --- a/hubspot/crm/line_items/models/batch_response_simple_public_object_with_errors.py +++ b/hubspot/crm/line_items/models/batch_response_simple_public_object_with_errors.py @@ -36,104 +36,78 @@ class BatchResponseSimplePublicObjectWithErrors(object): and the value is json key in definition. """ openapi_types = { - "status": "str", - "results": "list[SimplePublicObject]", + "completed_at": "datetime", "num_errors": "int", - "errors": "list[StandardError]", "requested_at": "datetime", "started_at": "datetime", - "completed_at": "datetime", "links": "dict[str, str]", + "results": "list[SimplePublicObject]", + "errors": "list[StandardError]", + "status": "str", } attribute_map = { - "status": "status", - "results": "results", + "completed_at": "completedAt", "num_errors": "numErrors", - "errors": "errors", "requested_at": "requestedAt", "started_at": "startedAt", - "completed_at": "completedAt", "links": "links", + "results": "results", + "errors": "errors", + "status": "status", } - def __init__(self, status=None, results=None, num_errors=None, errors=None, requested_at=None, started_at=None, completed_at=None, links=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, completed_at=None, num_errors=None, requested_at=None, started_at=None, links=None, results=None, errors=None, status=None, local_vars_configuration=None): # noqa: E501 """BatchResponseSimplePublicObjectWithErrors - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._status = None - self._results = None + self._completed_at = None self._num_errors = None - self._errors = None self._requested_at = None self._started_at = None - self._completed_at = None self._links = None + self._results = None + self._errors = None + self._status = None self.discriminator = None - self.status = status - self.results = results + self.completed_at = completed_at if num_errors is not None: self.num_errors = num_errors - if errors is not None: - self.errors = errors if requested_at is not None: self.requested_at = requested_at self.started_at = started_at - self.completed_at = completed_at if links is not None: self.links = links + self.results = results + if errors is not None: + self.errors = errors + self.status = status @property - def status(self): - """Gets the status of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - - - :return: The status of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this BatchResponseSimplePublicObjectWithErrors. - - - :param status: The status of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :type status: str - """ - if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values)) # noqa: E501 - - self._status = status - - @property - def results(self): - """Gets the results of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 + def completed_at(self): + """Gets the completed_at of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :return: The results of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :rtype: list[SimplePublicObject] + :return: The completed_at of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 + :rtype: datetime """ - return self._results + return self._completed_at - @results.setter - def results(self, results): - """Sets the results of this BatchResponseSimplePublicObjectWithErrors. + @completed_at.setter + def completed_at(self, completed_at): + """Sets the completed_at of this BatchResponseSimplePublicObjectWithErrors. - :param results: The results of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :type results: list[SimplePublicObject] + :param completed_at: The completed_at of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 + :type completed_at: datetime """ - if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501 - raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and completed_at is None: # noqa: E501 + raise ValueError("Invalid value for `completed_at`, must not be `None`") # noqa: E501 - self._results = results + self._completed_at = completed_at @property def num_errors(self): @@ -156,27 +130,6 @@ def num_errors(self, num_errors): self._num_errors = num_errors - @property - def errors(self): - """Gets the errors of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - - - :return: The errors of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :rtype: list[StandardError] - """ - return self._errors - - @errors.setter - def errors(self, errors): - """Sets the errors of this BatchResponseSimplePublicObjectWithErrors. - - - :param errors: The errors of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :type errors: list[StandardError] - """ - - self._errors = errors - @property def requested_at(self): """Gets the requested_at of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 @@ -221,29 +174,6 @@ def started_at(self, started_at): self._started_at = started_at - @property - def completed_at(self): - """Gets the completed_at of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - - - :return: The completed_at of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :rtype: datetime - """ - return self._completed_at - - @completed_at.setter - def completed_at(self, completed_at): - """Sets the completed_at of this BatchResponseSimplePublicObjectWithErrors. - - - :param completed_at: The completed_at of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 - :type completed_at: datetime - """ - if self.local_vars_configuration.client_side_validation and completed_at is None: # noqa: E501 - raise ValueError("Invalid value for `completed_at`, must not be `None`") # noqa: E501 - - self._completed_at = completed_at - @property def links(self): """Gets the links of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 @@ -265,6 +195,76 @@ def links(self, links): self._links = links + @property + def results(self): + """Gets the results of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 + + + :return: The results of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 + :rtype: list[SimplePublicObject] + """ + return self._results + + @results.setter + def results(self, results): + """Sets the results of this BatchResponseSimplePublicObjectWithErrors. + + + :param results: The results of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 + :type results: list[SimplePublicObject] + """ + if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501 + raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 + + self._results = results + + @property + def errors(self): + """Gets the errors of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 + + + :return: The errors of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 + :rtype: list[StandardError] + """ + return self._errors + + @errors.setter + def errors(self, errors): + """Sets the errors of this BatchResponseSimplePublicObjectWithErrors. + + + :param errors: The errors of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 + :type errors: list[StandardError] + """ + + self._errors = errors + + @property + def status(self): + """Gets the status of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 + + + :return: The status of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this BatchResponseSimplePublicObjectWithErrors. + + + :param status: The status of this BatchResponseSimplePublicObjectWithErrors. # noqa: E501 + :type status: str + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + allowed_values = ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values)) # noqa: E501 + + self._status = status + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/collection_response_associated_id.py b/hubspot/crm/line_items/models/collection_response_associated_id.py index 98574b4d..5b388ca2 100644 --- a/hubspot/crm/line_items/models/collection_response_associated_id.py +++ b/hubspot/crm/line_items/models/collection_response_associated_id.py @@ -35,23 +35,44 @@ class CollectionResponseAssociatedId(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"results": "list[AssociatedId]", "paging": "Paging"} + openapi_types = {"paging": "Paging", "results": "list[AssociatedId]"} - attribute_map = {"results": "results", "paging": "paging"} + attribute_map = {"paging": "paging", "results": "results"} - def __init__(self, results=None, paging=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, paging=None, results=None, local_vars_configuration=None): # noqa: E501 """CollectionResponseAssociatedId - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._results = None self._paging = None + self._results = None self.discriminator = None - self.results = results if paging is not None: self.paging = paging + self.results = results + + @property + def paging(self): + """Gets the paging of this CollectionResponseAssociatedId. # noqa: E501 + + + :return: The paging of this CollectionResponseAssociatedId. # noqa: E501 + :rtype: Paging + """ + return self._paging + + @paging.setter + def paging(self, paging): + """Sets the paging of this CollectionResponseAssociatedId. + + + :param paging: The paging of this CollectionResponseAssociatedId. # noqa: E501 + :type paging: Paging + """ + + self._paging = paging @property def results(self): @@ -76,27 +97,6 @@ def results(self, results): self._results = results - @property - def paging(self): - """Gets the paging of this CollectionResponseAssociatedId. # noqa: E501 - - - :return: The paging of this CollectionResponseAssociatedId. # noqa: E501 - :rtype: Paging - """ - return self._paging - - @paging.setter - def paging(self, paging): - """Sets the paging of this CollectionResponseAssociatedId. - - - :param paging: The paging of this CollectionResponseAssociatedId. # noqa: E501 - :type paging: Paging - """ - - self._paging = paging - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/collection_response_simple_public_object_with_associations_forward_paging.py b/hubspot/crm/line_items/models/collection_response_simple_public_object_with_associations_forward_paging.py index c47ffe80..963e9be9 100644 --- a/hubspot/crm/line_items/models/collection_response_simple_public_object_with_associations_forward_paging.py +++ b/hubspot/crm/line_items/models/collection_response_simple_public_object_with_associations_forward_paging.py @@ -35,23 +35,44 @@ class CollectionResponseSimplePublicObjectWithAssociationsForwardPaging(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"results": "list[SimplePublicObjectWithAssociations]", "paging": "ForwardPaging"} + openapi_types = {"paging": "ForwardPaging", "results": "list[SimplePublicObjectWithAssociations]"} - attribute_map = {"results": "results", "paging": "paging"} + attribute_map = {"paging": "paging", "results": "results"} - def __init__(self, results=None, paging=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, paging=None, results=None, local_vars_configuration=None): # noqa: E501 """CollectionResponseSimplePublicObjectWithAssociationsForwardPaging - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._results = None self._paging = None + self._results = None self.discriminator = None - self.results = results if paging is not None: self.paging = paging + self.results = results + + @property + def paging(self): + """Gets the paging of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. # noqa: E501 + + + :return: The paging of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. # noqa: E501 + :rtype: ForwardPaging + """ + return self._paging + + @paging.setter + def paging(self, paging): + """Sets the paging of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. + + + :param paging: The paging of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. # noqa: E501 + :type paging: ForwardPaging + """ + + self._paging = paging @property def results(self): @@ -76,27 +97,6 @@ def results(self, results): self._results = results - @property - def paging(self): - """Gets the paging of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. # noqa: E501 - - - :return: The paging of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. # noqa: E501 - :rtype: ForwardPaging - """ - return self._paging - - @paging.setter - def paging(self, paging): - """Sets the paging of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. - - - :param paging: The paging of this CollectionResponseSimplePublicObjectWithAssociationsForwardPaging. # noqa: E501 - :type paging: ForwardPaging - """ - - self._paging = paging - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/collection_response_with_total_simple_public_object_forward_paging.py b/hubspot/crm/line_items/models/collection_response_with_total_simple_public_object_forward_paging.py index 6ee1afda..b39d254e 100644 --- a/hubspot/crm/line_items/models/collection_response_with_total_simple_public_object_forward_paging.py +++ b/hubspot/crm/line_items/models/collection_response_with_total_simple_public_object_forward_paging.py @@ -35,25 +35,25 @@ class CollectionResponseWithTotalSimplePublicObjectForwardPaging(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"total": "int", "results": "list[SimplePublicObject]", "paging": "ForwardPaging"} + openapi_types = {"total": "int", "paging": "ForwardPaging", "results": "list[SimplePublicObject]"} - attribute_map = {"total": "total", "results": "results", "paging": "paging"} + attribute_map = {"total": "total", "paging": "paging", "results": "results"} - def __init__(self, total=None, results=None, paging=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, total=None, paging=None, results=None, local_vars_configuration=None): # noqa: E501 """CollectionResponseWithTotalSimplePublicObjectForwardPaging - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration self._total = None - self._results = None self._paging = None + self._results = None self.discriminator = None self.total = total - self.results = results if paging is not None: self.paging = paging + self.results = results @property def total(self): @@ -78,6 +78,27 @@ def total(self, total): self._total = total + @property + def paging(self): + """Gets the paging of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 + + + :return: The paging of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 + :rtype: ForwardPaging + """ + return self._paging + + @paging.setter + def paging(self, paging): + """Sets the paging of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. + + + :param paging: The paging of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 + :type paging: ForwardPaging + """ + + self._paging = paging + @property def results(self): """Gets the results of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 @@ -101,27 +122,6 @@ def results(self, results): self._results = results - @property - def paging(self): - """Gets the paging of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 - - - :return: The paging of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 - :rtype: ForwardPaging - """ - return self._paging - - @paging.setter - def paging(self, paging): - """Sets the paging of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. - - - :param paging: The paging of this CollectionResponseWithTotalSimplePublicObjectForwardPaging. # noqa: E501 - :type paging: ForwardPaging - """ - - self._paging = paging - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/error.py b/hubspot/crm/line_items/models/error.py index 97299f83..85f882f0 100644 --- a/hubspot/crm/line_items/models/error.py +++ b/hubspot/crm/line_items/models/error.py @@ -35,61 +35,82 @@ class Error(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"message": "str", "correlation_id": "str", "category": "str", "sub_category": "str", "errors": "list[ErrorDetail]", "context": "dict[str, list[str]]", "links": "dict[str, str]"} + openapi_types = {"sub_category": "str", "context": "dict[str, list[str]]", "correlation_id": "str", "links": "dict[str, str]", "message": "str", "category": "str", "errors": "list[ErrorDetail]"} - attribute_map = {"message": "message", "correlation_id": "correlationId", "category": "category", "sub_category": "subCategory", "errors": "errors", "context": "context", "links": "links"} + attribute_map = {"sub_category": "subCategory", "context": "context", "correlation_id": "correlationId", "links": "links", "message": "message", "category": "category", "errors": "errors"} - def __init__(self, message=None, correlation_id=None, category=None, sub_category=None, errors=None, context=None, links=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, sub_category=None, context=None, correlation_id=None, links=None, message=None, category=None, errors=None, local_vars_configuration=None): # noqa: E501 """Error - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._message = None - self._correlation_id = None - self._category = None self._sub_category = None - self._errors = None self._context = None + self._correlation_id = None self._links = None + self._message = None + self._category = None + self._errors = None self.discriminator = None - self.message = message - self.correlation_id = correlation_id - self.category = category if sub_category is not None: self.sub_category = sub_category - if errors is not None: - self.errors = errors if context is not None: self.context = context + self.correlation_id = correlation_id if links is not None: self.links = links + self.message = message + self.category = category + if errors is not None: + self.errors = errors @property - def message(self): - """Gets the message of this Error. # noqa: E501 + def sub_category(self): + """Gets the sub_category of this Error. # noqa: E501 - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :return: The message of this Error. # noqa: E501 + :return: The sub_category of this Error. # noqa: E501 :rtype: str """ - return self._message + return self._sub_category - @message.setter - def message(self, message): - """Sets the message of this Error. + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this Error. - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :param message: The message of this Error. # noqa: E501 - :type message: str + :param sub_category: The sub_category of this Error. # noqa: E501 + :type sub_category: str """ - if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - self._message = message + self._sub_category = sub_category + + @property + def context(self): + """Gets the context of this Error. # noqa: E501 + + Context about the error condition # noqa: E501 + + :return: The context of this Error. # noqa: E501 + :rtype: dict[str, list[str]] + """ + return self._context + + @context.setter + def context(self, context): + """Sets the context of this Error. + + Context about the error condition # noqa: E501 + + :param context: The context of this Error. # noqa: E501 + :type context: dict[str, list[str]] + """ + + self._context = context @property def correlation_id(self): @@ -116,6 +137,54 @@ def correlation_id(self, correlation_id): self._correlation_id = correlation_id + @property + def links(self): + """Gets the links of this Error. # noqa: E501 + + A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 + + :return: The links of this Error. # noqa: E501 + :rtype: dict[str, str] + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this Error. + + A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 + + :param links: The links of this Error. # noqa: E501 + :type links: dict[str, str] + """ + + self._links = links + + @property + def message(self): + """Gets the message of this Error. # noqa: E501 + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :return: The message of this Error. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this Error. + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :param message: The message of this Error. # noqa: E501 + :type message: str + """ + if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 + raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 + + self._message = message + @property def category(self): """Gets the category of this Error. # noqa: E501 @@ -141,29 +210,6 @@ def category(self, category): self._category = category - @property - def sub_category(self): - """Gets the sub_category of this Error. # noqa: E501 - - A specific category that contains more specific detail about the error # noqa: E501 - - :return: The sub_category of this Error. # noqa: E501 - :rtype: str - """ - return self._sub_category - - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this Error. - - A specific category that contains more specific detail about the error # noqa: E501 - - :param sub_category: The sub_category of this Error. # noqa: E501 - :type sub_category: str - """ - - self._sub_category = sub_category - @property def errors(self): """Gets the errors of this Error. # noqa: E501 @@ -187,52 +233,6 @@ def errors(self, errors): self._errors = errors - @property - def context(self): - """Gets the context of this Error. # noqa: E501 - - Context about the error condition # noqa: E501 - - :return: The context of this Error. # noqa: E501 - :rtype: dict[str, list[str]] - """ - return self._context - - @context.setter - def context(self, context): - """Sets the context of this Error. - - Context about the error condition # noqa: E501 - - :param context: The context of this Error. # noqa: E501 - :type context: dict[str, list[str]] - """ - - self._context = context - - @property - def links(self): - """Gets the links of this Error. # noqa: E501 - - A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 - - :return: The links of this Error. # noqa: E501 - :rtype: dict[str, str] - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this Error. - - A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 - - :param links: The links of this Error. # noqa: E501 - :type links: dict[str, str] - """ - - self._links = links - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/error_category.py b/hubspot/crm/line_items/models/error_category.py deleted file mode 100644 index 3e5febc6..00000000 --- a/hubspot/crm/line_items/models/error_category.py +++ /dev/null @@ -1,213 +0,0 @@ -# coding: utf-8 - -""" - Line Items - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - The version of the OpenAPI document: v3 - Generated by: https://openapi-generator.tech -""" - - -try: - from inspect import getfullargspec -except ImportError: - from inspect import getargspec as getfullargspec -import pprint -import re # noqa: F401 -import six - -from hubspot.crm.line_items.configuration import Configuration - - -class ErrorCategory(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = {"name": "str", "http_status": "str"} - - attribute_map = {"name": "name", "http_status": "httpStatus"} - - def __init__(self, name=None, http_status=None, local_vars_configuration=None): # noqa: E501 - """ErrorCategory - a model defined in OpenAPI""" # noqa: E501 - if local_vars_configuration is None: - local_vars_configuration = Configuration.get_default_copy() - self.local_vars_configuration = local_vars_configuration - - self._name = None - self._http_status = None - self.discriminator = None - - self.name = name - self.http_status = http_status - - @property - def name(self): - """Gets the name of this ErrorCategory. # noqa: E501 - - - :return: The name of this ErrorCategory. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ErrorCategory. - - - :param name: The name of this ErrorCategory. # noqa: E501 - :type name: str - """ - if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def http_status(self): - """Gets the http_status of this ErrorCategory. # noqa: E501 - - - :return: The http_status of this ErrorCategory. # noqa: E501 - :rtype: str - """ - return self._http_status - - @http_status.setter - def http_status(self, http_status): - """Sets the http_status of this ErrorCategory. - - - :param http_status: The http_status of this ErrorCategory. # noqa: E501 - :type http_status: str - """ - if self.local_vars_configuration.client_side_validation and http_status is None: # noqa: E501 - raise ValueError("Invalid value for `http_status`, must not be `None`") # noqa: E501 - allowed_values = [ - "CONTINUE", - "SWITCHING_PROTOCOLS", - "PROCESSING", - "OK", - "CREATED", - "ACCEPTED", - "NON_AUTHORITATIVE_INFORMATION", - "NO_CONTENT", - "RESET_CONTENT", - "PARTIAL_CONTENT", - "MULTI_STATUS", - "ALREADY_REPORTED", - "IM_USED", - "MULTIPLE_CHOICES", - "MOVED_PERMANENTLY", - "FOUND", - "SEE_OTHER", - "NOT_MODIFIED", - "USE_PROXY", - "TEMPORARY_REDIRECT", - "PERMANENT_REDIRECT", - "BAD_REQUEST", - "UNAUTHORIZED", - "PAYMENT_REQUIRED", - "FORBIDDEN", - "NOT_FOUND", - "METHOD_NOT_ALLOWED", - "NOT_ACCEPTABLE", - "PROXY_AUTHENTICATION_REQUIRED", - "REQUEST_TIMEOUT", - "CONFLICT", - "GONE", - "LENGTH_REQUIRED", - "PRECONDITION_FAILED", - "REQUEST_ENTITY_TOO_LARGE", - "REQUEST_URI_TOO_LONG", - "UNSUPPORTED_MEDIA_TYPE", - "REQUESTED_RANGE_NOT_SATISFIABLE", - "EXPECTATION_FAILED", - "IM_A_TEAPOT", - "MISDIRECTED_REQUEST", - "UNPROCESSABLE_ENTITY", - "LOCKED", - "FAILED_DEPENDENCY", - "UPGRADE_REQUIRED", - "PRECONDITION_REQUIRED", - "TOO_MANY_REQUESTS", - "REQUEST_HEADERS_FIELDS_TOO_LARGE", - "INTERNAL_STALE_SERVICE_DISCOVERY", - "UNAVAILABLE_FOR_LEGAL_REASONS", - "MIGRATION_IN_PROGRESS", - "INTERNAL_SERVER_ERROR", - "NOT_IMPLEMENTED", - "BAD_GATEWAY", - "SERVICE_UNAVAILABLE", - "GATEWAY_TIMEOUT", - "HTTP_VERSION_NOT_SUPPORTED", - "VARIANT_ALSO_NEGOTIATES", - "INSUFFICIENT_STORAGE", - "LOOP_DETECTED", - "NOT_EXTENDED", - "NETWORK_AUTHENTICATION_REQUIRED", - ] # noqa: E501 - if self.local_vars_configuration.client_side_validation and http_status not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `http_status` ({0}), must be one of {1}".format(http_status, allowed_values)) # noqa: E501 - - self._http_status = http_status - - def to_dict(self, serialize=False): - """Returns the model properties as a dict""" - result = {} - - def convert(x): - if hasattr(x, "to_dict"): - args = getfullargspec(x.to_dict).args - if len(args) == 1: - return x.to_dict() - else: - return x.to_dict(serialize) - else: - return x - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - attr = self.attribute_map.get(attr, attr) if serialize else attr - if isinstance(value, list): - result[attr] = list(map(lambda x: convert(x), value)) - elif isinstance(value, dict): - result[attr] = dict(map(lambda item: (item[0], convert(item[1])), value.items())) - else: - result[attr] = convert(value) - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorCategory): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorCategory): - return True - - return self.to_dict() != other.to_dict() diff --git a/hubspot/crm/line_items/models/error_detail.py b/hubspot/crm/line_items/models/error_detail.py index 18d0611f..513d1b63 100644 --- a/hubspot/crm/line_items/models/error_detail.py +++ b/hubspot/crm/line_items/models/error_detail.py @@ -35,80 +35,55 @@ class ErrorDetail(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"message": "str", "_in": "str", "code": "str", "sub_category": "str", "context": "dict[str, list[str]]"} + openapi_types = {"sub_category": "str", "code": "str", "_in": "str", "context": "dict[str, list[str]]", "message": "str"} - attribute_map = {"message": "message", "_in": "in", "code": "code", "sub_category": "subCategory", "context": "context"} + attribute_map = {"sub_category": "subCategory", "code": "code", "_in": "in", "context": "context", "message": "message"} - def __init__(self, message=None, _in=None, code=None, sub_category=None, context=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, sub_category=None, code=None, _in=None, context=None, message=None, local_vars_configuration=None): # noqa: E501 """ErrorDetail - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._message = None - self.__in = None - self._code = None self._sub_category = None + self._code = None + self.__in = None self._context = None + self._message = None self.discriminator = None - self.message = message - if _in is not None: - self._in = _in - if code is not None: - self.code = code if sub_category is not None: self.sub_category = sub_category + if code is not None: + self.code = code + if _in is not None: + self._in = _in if context is not None: self.context = context + self.message = message @property - def message(self): - """Gets the message of this ErrorDetail. # noqa: E501 - - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 - - :return: The message of this ErrorDetail. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this ErrorDetail. - - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 - - :param message: The message of this ErrorDetail. # noqa: E501 - :type message: str - """ - if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - - self._message = message - - @property - def _in(self): - """Gets the _in of this ErrorDetail. # noqa: E501 + def sub_category(self): + """Gets the sub_category of this ErrorDetail. # noqa: E501 - The name of the field or parameter in which the error was found. # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :return: The _in of this ErrorDetail. # noqa: E501 + :return: The sub_category of this ErrorDetail. # noqa: E501 :rtype: str """ - return self.__in + return self._sub_category - @_in.setter - def _in(self, _in): - """Sets the _in of this ErrorDetail. + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this ErrorDetail. - The name of the field or parameter in which the error was found. # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :param _in: The _in of this ErrorDetail. # noqa: E501 - :type _in: str + :param sub_category: The sub_category of this ErrorDetail. # noqa: E501 + :type sub_category: str """ - self.__in = _in + self._sub_category = sub_category @property def code(self): @@ -134,27 +109,27 @@ def code(self, code): self._code = code @property - def sub_category(self): - """Gets the sub_category of this ErrorDetail. # noqa: E501 + def _in(self): + """Gets the _in of this ErrorDetail. # noqa: E501 - A specific category that contains more specific detail about the error # noqa: E501 + The name of the field or parameter in which the error was found. # noqa: E501 - :return: The sub_category of this ErrorDetail. # noqa: E501 + :return: The _in of this ErrorDetail. # noqa: E501 :rtype: str """ - return self._sub_category + return self.__in - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this ErrorDetail. + @_in.setter + def _in(self, _in): + """Sets the _in of this ErrorDetail. - A specific category that contains more specific detail about the error # noqa: E501 + The name of the field or parameter in which the error was found. # noqa: E501 - :param sub_category: The sub_category of this ErrorDetail. # noqa: E501 - :type sub_category: str + :param _in: The _in of this ErrorDetail. # noqa: E501 + :type _in: str """ - self._sub_category = sub_category + self.__in = _in @property def context(self): @@ -179,6 +154,31 @@ def context(self, context): self._context = context + @property + def message(self): + """Gets the message of this ErrorDetail. # noqa: E501 + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :return: The message of this ErrorDetail. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ErrorDetail. + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :param message: The message of this ErrorDetail. # noqa: E501 + :type message: str + """ + if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 + raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 + + self._message = message + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/filter.py b/hubspot/crm/line_items/models/filter.py index ddde0063..1dd5e4ac 100644 --- a/hubspot/crm/line_items/models/filter.py +++ b/hubspot/crm/line_items/models/filter.py @@ -35,73 +35,75 @@ class Filter(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"value": "str", "high_value": "str", "values": "list[str]", "property_name": "str", "operator": "str"} + openapi_types = {"high_value": "str", "property_name": "str", "values": "list[str]", "value": "str", "operator": "str"} - attribute_map = {"value": "value", "high_value": "highValue", "values": "values", "property_name": "propertyName", "operator": "operator"} + attribute_map = {"high_value": "highValue", "property_name": "propertyName", "values": "values", "value": "value", "operator": "operator"} - def __init__(self, value=None, high_value=None, values=None, property_name=None, operator=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, high_value=None, property_name=None, values=None, value=None, operator=None, local_vars_configuration=None): # noqa: E501 """Filter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._value = None self._high_value = None - self._values = None self._property_name = None + self._values = None + self._value = None self._operator = None self.discriminator = None - if value is not None: - self.value = value if high_value is not None: self.high_value = high_value + self.property_name = property_name if values is not None: self.values = values - self.property_name = property_name + if value is not None: + self.value = value self.operator = operator @property - def value(self): - """Gets the value of this Filter. # noqa: E501 + def high_value(self): + """Gets the high_value of this Filter. # noqa: E501 - :return: The value of this Filter. # noqa: E501 + :return: The high_value of this Filter. # noqa: E501 :rtype: str """ - return self._value + return self._high_value - @value.setter - def value(self, value): - """Sets the value of this Filter. + @high_value.setter + def high_value(self, high_value): + """Sets the high_value of this Filter. - :param value: The value of this Filter. # noqa: E501 - :type value: str + :param high_value: The high_value of this Filter. # noqa: E501 + :type high_value: str """ - self._value = value + self._high_value = high_value @property - def high_value(self): - """Gets the high_value of this Filter. # noqa: E501 + def property_name(self): + """Gets the property_name of this Filter. # noqa: E501 - :return: The high_value of this Filter. # noqa: E501 + :return: The property_name of this Filter. # noqa: E501 :rtype: str """ - return self._high_value + return self._property_name - @high_value.setter - def high_value(self, high_value): - """Sets the high_value of this Filter. + @property_name.setter + def property_name(self, property_name): + """Sets the property_name of this Filter. - :param high_value: The high_value of this Filter. # noqa: E501 - :type high_value: str + :param property_name: The property_name of this Filter. # noqa: E501 + :type property_name: str """ + if self.local_vars_configuration.client_side_validation and property_name is None: # noqa: E501 + raise ValueError("Invalid value for `property_name`, must not be `None`") # noqa: E501 - self._high_value = high_value + self._property_name = property_name @property def values(self): @@ -125,27 +127,25 @@ def values(self, values): self._values = values @property - def property_name(self): - """Gets the property_name of this Filter. # noqa: E501 + def value(self): + """Gets the value of this Filter. # noqa: E501 - :return: The property_name of this Filter. # noqa: E501 + :return: The value of this Filter. # noqa: E501 :rtype: str """ - return self._property_name + return self._value - @property_name.setter - def property_name(self, property_name): - """Sets the property_name of this Filter. + @value.setter + def value(self, value): + """Sets the value of this Filter. - :param property_name: The property_name of this Filter. # noqa: E501 - :type property_name: str + :param value: The value of this Filter. # noqa: E501 + :type value: str """ - if self.local_vars_configuration.client_side_validation and property_name is None: # noqa: E501 - raise ValueError("Invalid value for `property_name`, must not be `None`") # noqa: E501 - self._property_name = property_name + self._value = value @property def operator(self): diff --git a/hubspot/crm/line_items/models/next_page.py b/hubspot/crm/line_items/models/next_page.py index 630be7c2..291d8cc7 100644 --- a/hubspot/crm/line_items/models/next_page.py +++ b/hubspot/crm/line_items/models/next_page.py @@ -35,23 +35,44 @@ class NextPage(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"after": "str", "link": "str"} + openapi_types = {"link": "str", "after": "str"} - attribute_map = {"after": "after", "link": "link"} + attribute_map = {"link": "link", "after": "after"} - def __init__(self, after=None, link=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, link=None, after=None, local_vars_configuration=None): # noqa: E501 """NextPage - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._after = None self._link = None + self._after = None self.discriminator = None - self.after = after if link is not None: self.link = link + self.after = after + + @property + def link(self): + """Gets the link of this NextPage. # noqa: E501 + + + :return: The link of this NextPage. # noqa: E501 + :rtype: str + """ + return self._link + + @link.setter + def link(self, link): + """Sets the link of this NextPage. + + + :param link: The link of this NextPage. # noqa: E501 + :type link: str + """ + + self._link = link @property def after(self): @@ -76,27 +97,6 @@ def after(self, after): self._after = after - @property - def link(self): - """Gets the link of this NextPage. # noqa: E501 - - - :return: The link of this NextPage. # noqa: E501 - :rtype: str - """ - return self._link - - @link.setter - def link(self, link): - """Sets the link of this NextPage. - - - :param link: The link of this NextPage. # noqa: E501 - :type link: str - """ - - self._link = link - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/public_associations_for_object.py b/hubspot/crm/line_items/models/public_associations_for_object.py index 554eb05c..bfda95e1 100644 --- a/hubspot/crm/line_items/models/public_associations_for_object.py +++ b/hubspot/crm/line_items/models/public_associations_for_object.py @@ -35,45 +35,22 @@ class PublicAssociationsForObject(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"to": "PublicObjectId", "types": "list[AssociationSpec]"} + openapi_types = {"types": "list[AssociationSpec]", "to": "PublicObjectId"} - attribute_map = {"to": "to", "types": "types"} + attribute_map = {"types": "types", "to": "to"} - def __init__(self, to=None, types=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, types=None, to=None, local_vars_configuration=None): # noqa: E501 """PublicAssociationsForObject - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._to = None self._types = None + self._to = None self.discriminator = None - self.to = to self.types = types - - @property - def to(self): - """Gets the to of this PublicAssociationsForObject. # noqa: E501 - - - :return: The to of this PublicAssociationsForObject. # noqa: E501 - :rtype: PublicObjectId - """ - return self._to - - @to.setter - def to(self, to): - """Sets the to of this PublicAssociationsForObject. - - - :param to: The to of this PublicAssociationsForObject. # noqa: E501 - :type to: PublicObjectId - """ - if self.local_vars_configuration.client_side_validation and to is None: # noqa: E501 - raise ValueError("Invalid value for `to`, must not be `None`") # noqa: E501 - - self._to = to + self.to = to @property def types(self): @@ -98,6 +75,29 @@ def types(self, types): self._types = types + @property + def to(self): + """Gets the to of this PublicAssociationsForObject. # noqa: E501 + + + :return: The to of this PublicAssociationsForObject. # noqa: E501 + :rtype: PublicObjectId + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this PublicAssociationsForObject. + + + :param to: The to of this PublicAssociationsForObject. # noqa: E501 + :type to: PublicObjectId + """ + if self.local_vars_configuration.client_side_validation and to is None: # noqa: E501 + raise ValueError("Invalid value for `to`, must not be `None`") # noqa: E501 + + self._to = to + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/public_gdpr_delete_input.py b/hubspot/crm/line_items/models/public_gdpr_delete_input.py new file mode 100644 index 00000000..11e5d5bd --- /dev/null +++ b/hubspot/crm/line_items/models/public_gdpr_delete_input.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + Line Items + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v3 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from hubspot.crm.line_items.configuration import Configuration + + +class PublicGdprDeleteInput(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = {"id_property": "str", "object_id": "str"} + + attribute_map = {"id_property": "idProperty", "object_id": "objectId"} + + def __init__(self, id_property=None, object_id=None, local_vars_configuration=None): # noqa: E501 + """PublicGdprDeleteInput - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._id_property = None + self._object_id = None + self.discriminator = None + + if id_property is not None: + self.id_property = id_property + self.object_id = object_id + + @property + def id_property(self): + """Gets the id_property of this PublicGdprDeleteInput. # noqa: E501 + + + :return: The id_property of this PublicGdprDeleteInput. # noqa: E501 + :rtype: str + """ + return self._id_property + + @id_property.setter + def id_property(self, id_property): + """Sets the id_property of this PublicGdprDeleteInput. + + + :param id_property: The id_property of this PublicGdprDeleteInput. # noqa: E501 + :type id_property: str + """ + + self._id_property = id_property + + @property + def object_id(self): + """Gets the object_id of this PublicGdprDeleteInput. # noqa: E501 + + + :return: The object_id of this PublicGdprDeleteInput. # noqa: E501 + :rtype: str + """ + return self._object_id + + @object_id.setter + def object_id(self, object_id): + """Sets the object_id of this PublicGdprDeleteInput. + + + :param object_id: The object_id of this PublicGdprDeleteInput. # noqa: E501 + :type object_id: str + """ + if self.local_vars_configuration.client_side_validation and object_id is None: # noqa: E501 + raise ValueError("Invalid value for `object_id`, must not be `None`") # noqa: E501 + + self._object_id = object_id + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map(lambda x: convert(x), value)) + elif isinstance(value, dict): + result[attr] = dict(map(lambda item: (item[0], convert(item[1])), value.items())) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PublicGdprDeleteInput): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PublicGdprDeleteInput): + return True + + return self.to_dict() != other.to_dict() diff --git a/hubspot/crm/line_items/models/public_merge_input.py b/hubspot/crm/line_items/models/public_merge_input.py index 1b5749cd..e3d34ba3 100644 --- a/hubspot/crm/line_items/models/public_merge_input.py +++ b/hubspot/crm/line_items/models/public_merge_input.py @@ -35,45 +35,22 @@ class PublicMergeInput(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"primary_object_id": "str", "object_id_to_merge": "str"} + openapi_types = {"object_id_to_merge": "str", "primary_object_id": "str"} - attribute_map = {"primary_object_id": "primaryObjectId", "object_id_to_merge": "objectIdToMerge"} + attribute_map = {"object_id_to_merge": "objectIdToMerge", "primary_object_id": "primaryObjectId"} - def __init__(self, primary_object_id=None, object_id_to_merge=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, object_id_to_merge=None, primary_object_id=None, local_vars_configuration=None): # noqa: E501 """PublicMergeInput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._primary_object_id = None self._object_id_to_merge = None + self._primary_object_id = None self.discriminator = None - self.primary_object_id = primary_object_id self.object_id_to_merge = object_id_to_merge - - @property - def primary_object_id(self): - """Gets the primary_object_id of this PublicMergeInput. # noqa: E501 - - - :return: The primary_object_id of this PublicMergeInput. # noqa: E501 - :rtype: str - """ - return self._primary_object_id - - @primary_object_id.setter - def primary_object_id(self, primary_object_id): - """Sets the primary_object_id of this PublicMergeInput. - - - :param primary_object_id: The primary_object_id of this PublicMergeInput. # noqa: E501 - :type primary_object_id: str - """ - if self.local_vars_configuration.client_side_validation and primary_object_id is None: # noqa: E501 - raise ValueError("Invalid value for `primary_object_id`, must not be `None`") # noqa: E501 - - self._primary_object_id = primary_object_id + self.primary_object_id = primary_object_id @property def object_id_to_merge(self): @@ -98,6 +75,29 @@ def object_id_to_merge(self, object_id_to_merge): self._object_id_to_merge = object_id_to_merge + @property + def primary_object_id(self): + """Gets the primary_object_id of this PublicMergeInput. # noqa: E501 + + + :return: The primary_object_id of this PublicMergeInput. # noqa: E501 + :rtype: str + """ + return self._primary_object_id + + @primary_object_id.setter + def primary_object_id(self, primary_object_id): + """Sets the primary_object_id of this PublicMergeInput. + + + :param primary_object_id: The primary_object_id of this PublicMergeInput. # noqa: E501 + :type primary_object_id: str + """ + if self.local_vars_configuration.client_side_validation and primary_object_id is None: # noqa: E501 + raise ValueError("Invalid value for `primary_object_id`, must not be `None`") # noqa: E501 + + self._primary_object_id = primary_object_id + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/public_object_search_request.py b/hubspot/crm/line_items/models/public_object_search_request.py index dce08b41..751f64fd 100644 --- a/hubspot/crm/line_items/models/public_object_search_request.py +++ b/hubspot/crm/line_items/models/public_object_search_request.py @@ -35,54 +35,98 @@ class PublicObjectSearchRequest(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"filter_groups": "list[FilterGroup]", "sorts": "list[str]", "query": "str", "properties": "list[str]", "limit": "int", "after": "int"} + openapi_types = {"query": "str", "limit": "int", "after": "str", "sorts": "list[str]", "properties": "list[str]", "filter_groups": "list[FilterGroup]"} - attribute_map = {"filter_groups": "filterGroups", "sorts": "sorts", "query": "query", "properties": "properties", "limit": "limit", "after": "after"} + attribute_map = {"query": "query", "limit": "limit", "after": "after", "sorts": "sorts", "properties": "properties", "filter_groups": "filterGroups"} - def __init__(self, filter_groups=None, sorts=None, query=None, properties=None, limit=None, after=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, query=None, limit=None, after=None, sorts=None, properties=None, filter_groups=None, local_vars_configuration=None): # noqa: E501 """PublicObjectSearchRequest - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_groups = None - self._sorts = None self._query = None - self._properties = None self._limit = None self._after = None + self._sorts = None + self._properties = None + self._filter_groups = None self.discriminator = None - self.filter_groups = filter_groups - self.sorts = sorts if query is not None: self.query = query - self.properties = properties self.limit = limit self.after = after + self.sorts = sorts + self.properties = properties + self.filter_groups = filter_groups @property - def filter_groups(self): - """Gets the filter_groups of this PublicObjectSearchRequest. # noqa: E501 + def query(self): + """Gets the query of this PublicObjectSearchRequest. # noqa: E501 - :return: The filter_groups of this PublicObjectSearchRequest. # noqa: E501 - :rtype: list[FilterGroup] + :return: The query of this PublicObjectSearchRequest. # noqa: E501 + :rtype: str """ - return self._filter_groups + return self._query - @filter_groups.setter - def filter_groups(self, filter_groups): - """Sets the filter_groups of this PublicObjectSearchRequest. + @query.setter + def query(self, query): + """Sets the query of this PublicObjectSearchRequest. - :param filter_groups: The filter_groups of this PublicObjectSearchRequest. # noqa: E501 - :type filter_groups: list[FilterGroup] + :param query: The query of this PublicObjectSearchRequest. # noqa: E501 + :type query: str """ - if self.local_vars_configuration.client_side_validation and filter_groups is None: # noqa: E501 - raise ValueError("Invalid value for `filter_groups`, must not be `None`") # noqa: E501 - self._filter_groups = filter_groups + self._query = query + + @property + def limit(self): + """Gets the limit of this PublicObjectSearchRequest. # noqa: E501 + + + :return: The limit of this PublicObjectSearchRequest. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this PublicObjectSearchRequest. + + + :param limit: The limit of this PublicObjectSearchRequest. # noqa: E501 + :type limit: int + """ + if self.local_vars_configuration.client_side_validation and limit is None: # noqa: E501 + raise ValueError("Invalid value for `limit`, must not be `None`") # noqa: E501 + + self._limit = limit + + @property + def after(self): + """Gets the after of this PublicObjectSearchRequest. # noqa: E501 + + + :return: The after of this PublicObjectSearchRequest. # noqa: E501 + :rtype: str + """ + return self._after + + @after.setter + def after(self, after): + """Sets the after of this PublicObjectSearchRequest. + + + :param after: The after of this PublicObjectSearchRequest. # noqa: E501 + :type after: str + """ + if self.local_vars_configuration.client_side_validation and after is None: # noqa: E501 + raise ValueError("Invalid value for `after`, must not be `None`") # noqa: E501 + + self._after = after @property def sorts(self): @@ -107,27 +151,6 @@ def sorts(self, sorts): self._sorts = sorts - @property - def query(self): - """Gets the query of this PublicObjectSearchRequest. # noqa: E501 - - - :return: The query of this PublicObjectSearchRequest. # noqa: E501 - :rtype: str - """ - return self._query - - @query.setter - def query(self, query): - """Sets the query of this PublicObjectSearchRequest. - - - :param query: The query of this PublicObjectSearchRequest. # noqa: E501 - :type query: str - """ - - self._query = query - @property def properties(self): """Gets the properties of this PublicObjectSearchRequest. # noqa: E501 @@ -152,50 +175,27 @@ def properties(self, properties): self._properties = properties @property - def limit(self): - """Gets the limit of this PublicObjectSearchRequest. # noqa: E501 - - - :return: The limit of this PublicObjectSearchRequest. # noqa: E501 - :rtype: int - """ - return self._limit - - @limit.setter - def limit(self, limit): - """Sets the limit of this PublicObjectSearchRequest. - - - :param limit: The limit of this PublicObjectSearchRequest. # noqa: E501 - :type limit: int - """ - if self.local_vars_configuration.client_side_validation and limit is None: # noqa: E501 - raise ValueError("Invalid value for `limit`, must not be `None`") # noqa: E501 - - self._limit = limit - - @property - def after(self): - """Gets the after of this PublicObjectSearchRequest. # noqa: E501 + def filter_groups(self): + """Gets the filter_groups of this PublicObjectSearchRequest. # noqa: E501 - :return: The after of this PublicObjectSearchRequest. # noqa: E501 - :rtype: int + :return: The filter_groups of this PublicObjectSearchRequest. # noqa: E501 + :rtype: list[FilterGroup] """ - return self._after + return self._filter_groups - @after.setter - def after(self, after): - """Sets the after of this PublicObjectSearchRequest. + @filter_groups.setter + def filter_groups(self, filter_groups): + """Sets the filter_groups of this PublicObjectSearchRequest. - :param after: The after of this PublicObjectSearchRequest. # noqa: E501 - :type after: int + :param filter_groups: The filter_groups of this PublicObjectSearchRequest. # noqa: E501 + :type filter_groups: list[FilterGroup] """ - if self.local_vars_configuration.client_side_validation and after is None: # noqa: E501 - raise ValueError("Invalid value for `after`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_groups is None: # noqa: E501 + raise ValueError("Invalid value for `filter_groups`, must not be `None`") # noqa: E501 - self._after = after + self._filter_groups = filter_groups def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/line_items/models/simple_public_object.py b/hubspot/crm/line_items/models/simple_public_object.py index 06984945..19b7d6e9 100644 --- a/hubspot/crm/line_items/models/simple_public_object.py +++ b/hubspot/crm/line_items/models/simple_public_object.py @@ -36,96 +36,116 @@ class SimplePublicObject(object): and the value is json key in definition. """ openapi_types = { - "id": "str", - "properties": "dict[str, str]", - "properties_with_history": "dict[str, list[ValueWithTimestamp]]", "created_at": "datetime", - "updated_at": "datetime", "archived": "bool", "archived_at": "datetime", + "properties_with_history": "dict[str, list[ValueWithTimestamp]]", + "id": "str", + "properties": "dict[str, str]", + "updated_at": "datetime", } attribute_map = { - "id": "id", - "properties": "properties", - "properties_with_history": "propertiesWithHistory", "created_at": "createdAt", - "updated_at": "updatedAt", "archived": "archived", "archived_at": "archivedAt", + "properties_with_history": "propertiesWithHistory", + "id": "id", + "properties": "properties", + "updated_at": "updatedAt", } - def __init__(self, id=None, properties=None, properties_with_history=None, created_at=None, updated_at=None, archived=None, archived_at=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, created_at=None, archived=None, archived_at=None, properties_with_history=None, id=None, properties=None, updated_at=None, local_vars_configuration=None): # noqa: E501 """SimplePublicObject - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._id = None - self._properties = None - self._properties_with_history = None self._created_at = None - self._updated_at = None self._archived = None self._archived_at = None + self._properties_with_history = None + self._id = None + self._properties = None + self._updated_at = None self.discriminator = None - self.id = id - self.properties = properties - if properties_with_history is not None: - self.properties_with_history = properties_with_history self.created_at = created_at - self.updated_at = updated_at if archived is not None: self.archived = archived if archived_at is not None: self.archived_at = archived_at + if properties_with_history is not None: + self.properties_with_history = properties_with_history + self.id = id + if properties is not None: + self.properties = properties + self.updated_at = updated_at @property - def id(self): - """Gets the id of this SimplePublicObject. # noqa: E501 + def created_at(self): + """Gets the created_at of this SimplePublicObject. # noqa: E501 - :return: The id of this SimplePublicObject. # noqa: E501 - :rtype: str + :return: The created_at of this SimplePublicObject. # noqa: E501 + :rtype: datetime """ - return self._id + return self._created_at - @id.setter - def id(self, id): - """Sets the id of this SimplePublicObject. + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this SimplePublicObject. - :param id: The id of this SimplePublicObject. # noqa: E501 - :type id: str + :param created_at: The created_at of this SimplePublicObject. # noqa: E501 + :type created_at: datetime """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 - self._id = id + self._created_at = created_at @property - def properties(self): - """Gets the properties of this SimplePublicObject. # noqa: E501 + def archived(self): + """Gets the archived of this SimplePublicObject. # noqa: E501 - :return: The properties of this SimplePublicObject. # noqa: E501 - :rtype: dict[str, str] + :return: The archived of this SimplePublicObject. # noqa: E501 + :rtype: bool """ - return self._properties + return self._archived - @properties.setter - def properties(self, properties): - """Sets the properties of this SimplePublicObject. + @archived.setter + def archived(self, archived): + """Sets the archived of this SimplePublicObject. - :param properties: The properties of this SimplePublicObject. # noqa: E501 - :type properties: dict[str, str] + :param archived: The archived of this SimplePublicObject. # noqa: E501 + :type archived: bool """ - if self.local_vars_configuration.client_side_validation and properties is None: # noqa: E501 - raise ValueError("Invalid value for `properties`, must not be `None`") # noqa: E501 - self._properties = properties + self._archived = archived + + @property + def archived_at(self): + """Gets the archived_at of this SimplePublicObject. # noqa: E501 + + + :return: The archived_at of this SimplePublicObject. # noqa: E501 + :rtype: datetime + """ + return self._archived_at + + @archived_at.setter + def archived_at(self, archived_at): + """Sets the archived_at of this SimplePublicObject. + + + :param archived_at: The archived_at of this SimplePublicObject. # noqa: E501 + :type archived_at: datetime + """ + + self._archived_at = archived_at @property def properties_with_history(self): @@ -149,27 +169,48 @@ def properties_with_history(self, properties_with_history): self._properties_with_history = properties_with_history @property - def created_at(self): - """Gets the created_at of this SimplePublicObject. # noqa: E501 + def id(self): + """Gets the id of this SimplePublicObject. # noqa: E501 - :return: The created_at of this SimplePublicObject. # noqa: E501 - :rtype: datetime + :return: The id of this SimplePublicObject. # noqa: E501 + :rtype: str """ - return self._created_at + return self._id - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this SimplePublicObject. + @id.setter + def id(self, id): + """Sets the id of this SimplePublicObject. - :param created_at: The created_at of this SimplePublicObject. # noqa: E501 - :type created_at: datetime + :param id: The id of this SimplePublicObject. # noqa: E501 + :type id: str """ - if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 - raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - self._created_at = created_at + self._id = id + + @property + def properties(self): + """Gets the properties of this SimplePublicObject. # noqa: E501 + + + :return: The properties of this SimplePublicObject. # noqa: E501 + :rtype: dict[str, str] + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SimplePublicObject. + + + :param properties: The properties of this SimplePublicObject. # noqa: E501 + :type properties: dict[str, str] + """ + + self._properties = properties @property def updated_at(self): @@ -194,48 +235,6 @@ def updated_at(self, updated_at): self._updated_at = updated_at - @property - def archived(self): - """Gets the archived of this SimplePublicObject. # noqa: E501 - - - :return: The archived of this SimplePublicObject. # noqa: E501 - :rtype: bool - """ - return self._archived - - @archived.setter - def archived(self, archived): - """Sets the archived of this SimplePublicObject. - - - :param archived: The archived of this SimplePublicObject. # noqa: E501 - :type archived: bool - """ - - self._archived = archived - - @property - def archived_at(self): - """Gets the archived_at of this SimplePublicObject. # noqa: E501 - - - :return: The archived_at of this SimplePublicObject. # noqa: E501 - :rtype: datetime - """ - return self._archived_at - - @archived_at.setter - def archived_at(self, archived_at): - """Sets the archived_at of this SimplePublicObject. - - - :param archived_at: The archived_at of this SimplePublicObject. # noqa: E501 - :type archived_at: datetime - """ - - self._archived_at = archived_at - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/simple_public_object_batch_input.py b/hubspot/crm/line_items/models/simple_public_object_batch_input.py index 177e5b5a..72a1fc40 100644 --- a/hubspot/crm/line_items/models/simple_public_object_batch_input.py +++ b/hubspot/crm/line_items/models/simple_public_object_batch_input.py @@ -35,45 +35,47 @@ class SimplePublicObjectBatchInput(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"properties": "dict[str, str]", "id": "str"} + openapi_types = {"id_property": "str", "id": "str", "properties": "dict[str, str]"} - attribute_map = {"properties": "properties", "id": "id"} + attribute_map = {"id_property": "idProperty", "id": "id", "properties": "properties"} - def __init__(self, properties=None, id=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, id_property=None, id=None, properties=None, local_vars_configuration=None): # noqa: E501 """SimplePublicObjectBatchInput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._properties = None + self._id_property = None self._id = None + self._properties = None self.discriminator = None - self.properties = properties + if id_property is not None: + self.id_property = id_property self.id = id + if properties is not None: + self.properties = properties @property - def properties(self): - """Gets the properties of this SimplePublicObjectBatchInput. # noqa: E501 + def id_property(self): + """Gets the id_property of this SimplePublicObjectBatchInput. # noqa: E501 - :return: The properties of this SimplePublicObjectBatchInput. # noqa: E501 - :rtype: dict[str, str] + :return: The id_property of this SimplePublicObjectBatchInput. # noqa: E501 + :rtype: str """ - return self._properties + return self._id_property - @properties.setter - def properties(self, properties): - """Sets the properties of this SimplePublicObjectBatchInput. + @id_property.setter + def id_property(self, id_property): + """Sets the id_property of this SimplePublicObjectBatchInput. - :param properties: The properties of this SimplePublicObjectBatchInput. # noqa: E501 - :type properties: dict[str, str] + :param id_property: The id_property of this SimplePublicObjectBatchInput. # noqa: E501 + :type id_property: str """ - if self.local_vars_configuration.client_side_validation and properties is None: # noqa: E501 - raise ValueError("Invalid value for `properties`, must not be `None`") # noqa: E501 - self._properties = properties + self._id_property = id_property @property def id(self): @@ -98,6 +100,27 @@ def id(self, id): self._id = id + @property + def properties(self): + """Gets the properties of this SimplePublicObjectBatchInput. # noqa: E501 + + + :return: The properties of this SimplePublicObjectBatchInput. # noqa: E501 + :rtype: dict[str, str] + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SimplePublicObjectBatchInput. + + + :param properties: The properties of this SimplePublicObjectBatchInput. # noqa: E501 + :type properties: dict[str, str] + """ + + self._properties = properties + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/simple_public_object_input.py b/hubspot/crm/line_items/models/simple_public_object_input.py index e7ef6273..1012bd52 100644 --- a/hubspot/crm/line_items/models/simple_public_object_input.py +++ b/hubspot/crm/line_items/models/simple_public_object_input.py @@ -48,7 +48,8 @@ def __init__(self, properties=None, local_vars_configuration=None): # noqa: E50 self._properties = None self.discriminator = None - self.properties = properties + if properties is not None: + self.properties = properties @property def properties(self): @@ -68,8 +69,6 @@ def properties(self, properties): :param properties: The properties of this SimplePublicObjectInput. # noqa: E501 :type properties: dict[str, str] """ - if self.local_vars_configuration.client_side_validation and properties is None: # noqa: E501 - raise ValueError("Invalid value for `properties`, must not be `None`") # noqa: E501 self._properties = properties diff --git a/hubspot/crm/line_items/models/simple_public_object_input_for_create.py b/hubspot/crm/line_items/models/simple_public_object_input_for_create.py index 750da43e..2e684a64 100644 --- a/hubspot/crm/line_items/models/simple_public_object_input_for_create.py +++ b/hubspot/crm/line_items/models/simple_public_object_input_for_create.py @@ -35,45 +35,23 @@ class SimplePublicObjectInputForCreate(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"properties": "dict[str, str]", "associations": "list[PublicAssociationsForObject]"} + openapi_types = {"associations": "list[PublicAssociationsForObject]", "properties": "dict[str, str]"} - attribute_map = {"properties": "properties", "associations": "associations"} + attribute_map = {"associations": "associations", "properties": "properties"} - def __init__(self, properties=None, associations=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, associations=None, properties=None, local_vars_configuration=None): # noqa: E501 """SimplePublicObjectInputForCreate - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._properties = None self._associations = None + self._properties = None self.discriminator = None - self.properties = properties self.associations = associations - - @property - def properties(self): - """Gets the properties of this SimplePublicObjectInputForCreate. # noqa: E501 - - - :return: The properties of this SimplePublicObjectInputForCreate. # noqa: E501 - :rtype: dict[str, str] - """ - return self._properties - - @properties.setter - def properties(self, properties): - """Sets the properties of this SimplePublicObjectInputForCreate. - - - :param properties: The properties of this SimplePublicObjectInputForCreate. # noqa: E501 - :type properties: dict[str, str] - """ - if self.local_vars_configuration.client_side_validation and properties is None: # noqa: E501 - raise ValueError("Invalid value for `properties`, must not be `None`") # noqa: E501 - - self._properties = properties + if properties is not None: + self.properties = properties @property def associations(self): @@ -98,6 +76,27 @@ def associations(self, associations): self._associations = associations + @property + def properties(self): + """Gets the properties of this SimplePublicObjectInputForCreate. # noqa: E501 + + + :return: The properties of this SimplePublicObjectInputForCreate. # noqa: E501 + :rtype: dict[str, str] + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SimplePublicObjectInputForCreate. + + + :param properties: The properties of this SimplePublicObjectInputForCreate. # noqa: E501 + :type properties: dict[str, str] + """ + + self._properties = properties + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/line_items/models/simple_public_object_with_associations.py b/hubspot/crm/line_items/models/simple_public_object_with_associations.py index 9712f326..74844783 100644 --- a/hubspot/crm/line_items/models/simple_public_object_with_associations.py +++ b/hubspot/crm/line_items/models/simple_public_object_with_associations.py @@ -36,124 +36,78 @@ class SimplePublicObjectWithAssociations(object): and the value is json key in definition. """ openapi_types = { - "id": "str", - "properties": "dict[str, str]", - "properties_with_history": "dict[str, list[ValueWithTimestamp]]", + "associations": "dict[str, CollectionResponseAssociatedId]", "created_at": "datetime", - "updated_at": "datetime", "archived": "bool", "archived_at": "datetime", - "associations": "dict[str, CollectionResponseAssociatedId]", + "properties_with_history": "dict[str, list[ValueWithTimestamp]]", + "id": "str", + "properties": "dict[str, str]", + "updated_at": "datetime", } attribute_map = { - "id": "id", - "properties": "properties", - "properties_with_history": "propertiesWithHistory", + "associations": "associations", "created_at": "createdAt", - "updated_at": "updatedAt", "archived": "archived", "archived_at": "archivedAt", - "associations": "associations", + "properties_with_history": "propertiesWithHistory", + "id": "id", + "properties": "properties", + "updated_at": "updatedAt", } def __init__( - self, id=None, properties=None, properties_with_history=None, created_at=None, updated_at=None, archived=None, archived_at=None, associations=None, local_vars_configuration=None + self, associations=None, created_at=None, archived=None, archived_at=None, properties_with_history=None, id=None, properties=None, updated_at=None, local_vars_configuration=None ): # noqa: E501 """SimplePublicObjectWithAssociations - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._id = None - self._properties = None - self._properties_with_history = None + self._associations = None self._created_at = None - self._updated_at = None self._archived = None self._archived_at = None - self._associations = None + self._properties_with_history = None + self._id = None + self._properties = None + self._updated_at = None self.discriminator = None - self.id = id - self.properties = properties - if properties_with_history is not None: - self.properties_with_history = properties_with_history + if associations is not None: + self.associations = associations self.created_at = created_at - self.updated_at = updated_at if archived is not None: self.archived = archived if archived_at is not None: self.archived_at = archived_at - if associations is not None: - self.associations = associations - - @property - def id(self): - """Gets the id of this SimplePublicObjectWithAssociations. # noqa: E501 - - - :return: The id of this SimplePublicObjectWithAssociations. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this SimplePublicObjectWithAssociations. - - - :param id: The id of this SimplePublicObjectWithAssociations. # noqa: E501 - :type id: str - """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def properties(self): - """Gets the properties of this SimplePublicObjectWithAssociations. # noqa: E501 - - - :return: The properties of this SimplePublicObjectWithAssociations. # noqa: E501 - :rtype: dict[str, str] - """ - return self._properties - - @properties.setter - def properties(self, properties): - """Sets the properties of this SimplePublicObjectWithAssociations. - - - :param properties: The properties of this SimplePublicObjectWithAssociations. # noqa: E501 - :type properties: dict[str, str] - """ - if self.local_vars_configuration.client_side_validation and properties is None: # noqa: E501 - raise ValueError("Invalid value for `properties`, must not be `None`") # noqa: E501 - - self._properties = properties + if properties_with_history is not None: + self.properties_with_history = properties_with_history + self.id = id + self.properties = properties + self.updated_at = updated_at @property - def properties_with_history(self): - """Gets the properties_with_history of this SimplePublicObjectWithAssociations. # noqa: E501 + def associations(self): + """Gets the associations of this SimplePublicObjectWithAssociations. # noqa: E501 - :return: The properties_with_history of this SimplePublicObjectWithAssociations. # noqa: E501 - :rtype: dict[str, list[ValueWithTimestamp]] + :return: The associations of this SimplePublicObjectWithAssociations. # noqa: E501 + :rtype: dict[str, CollectionResponseAssociatedId] """ - return self._properties_with_history + return self._associations - @properties_with_history.setter - def properties_with_history(self, properties_with_history): - """Sets the properties_with_history of this SimplePublicObjectWithAssociations. + @associations.setter + def associations(self, associations): + """Sets the associations of this SimplePublicObjectWithAssociations. - :param properties_with_history: The properties_with_history of this SimplePublicObjectWithAssociations. # noqa: E501 - :type properties_with_history: dict[str, list[ValueWithTimestamp]] + :param associations: The associations of this SimplePublicObjectWithAssociations. # noqa: E501 + :type associations: dict[str, CollectionResponseAssociatedId] """ - self._properties_with_history = properties_with_history + self._associations = associations @property def created_at(self): @@ -178,29 +132,6 @@ def created_at(self, created_at): self._created_at = created_at - @property - def updated_at(self): - """Gets the updated_at of this SimplePublicObjectWithAssociations. # noqa: E501 - - - :return: The updated_at of this SimplePublicObjectWithAssociations. # noqa: E501 - :rtype: datetime - """ - return self._updated_at - - @updated_at.setter - def updated_at(self, updated_at): - """Sets the updated_at of this SimplePublicObjectWithAssociations. - - - :param updated_at: The updated_at of this SimplePublicObjectWithAssociations. # noqa: E501 - :type updated_at: datetime - """ - if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501 - raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501 - - self._updated_at = updated_at - @property def archived(self): """Gets the archived of this SimplePublicObjectWithAssociations. # noqa: E501 @@ -244,25 +175,94 @@ def archived_at(self, archived_at): self._archived_at = archived_at @property - def associations(self): - """Gets the associations of this SimplePublicObjectWithAssociations. # noqa: E501 + def properties_with_history(self): + """Gets the properties_with_history of this SimplePublicObjectWithAssociations. # noqa: E501 - :return: The associations of this SimplePublicObjectWithAssociations. # noqa: E501 - :rtype: dict[str, CollectionResponseAssociatedId] + :return: The properties_with_history of this SimplePublicObjectWithAssociations. # noqa: E501 + :rtype: dict[str, list[ValueWithTimestamp]] """ - return self._associations + return self._properties_with_history - @associations.setter - def associations(self, associations): - """Sets the associations of this SimplePublicObjectWithAssociations. + @properties_with_history.setter + def properties_with_history(self, properties_with_history): + """Sets the properties_with_history of this SimplePublicObjectWithAssociations. - :param associations: The associations of this SimplePublicObjectWithAssociations. # noqa: E501 - :type associations: dict[str, CollectionResponseAssociatedId] + :param properties_with_history: The properties_with_history of this SimplePublicObjectWithAssociations. # noqa: E501 + :type properties_with_history: dict[str, list[ValueWithTimestamp]] """ - self._associations = associations + self._properties_with_history = properties_with_history + + @property + def id(self): + """Gets the id of this SimplePublicObjectWithAssociations. # noqa: E501 + + + :return: The id of this SimplePublicObjectWithAssociations. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SimplePublicObjectWithAssociations. + + + :param id: The id of this SimplePublicObjectWithAssociations. # noqa: E501 + :type id: str + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def properties(self): + """Gets the properties of this SimplePublicObjectWithAssociations. # noqa: E501 + + + :return: The properties of this SimplePublicObjectWithAssociations. # noqa: E501 + :rtype: dict[str, str] + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SimplePublicObjectWithAssociations. + + + :param properties: The properties of this SimplePublicObjectWithAssociations. # noqa: E501 + :type properties: dict[str, str] + """ + if self.local_vars_configuration.client_side_validation and properties is None: # noqa: E501 + raise ValueError("Invalid value for `properties`, must not be `None`") # noqa: E501 + + self._properties = properties + + @property + def updated_at(self): + """Gets the updated_at of this SimplePublicObjectWithAssociations. # noqa: E501 + + + :return: The updated_at of this SimplePublicObjectWithAssociations. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this SimplePublicObjectWithAssociations. + + + :param updated_at: The updated_at of this SimplePublicObjectWithAssociations. # noqa: E501 + :type updated_at: datetime + """ + if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501 + raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501 + + self._updated_at = updated_at def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/line_items/models/standard_error.py b/hubspot/crm/line_items/models/standard_error.py index 3c5c5cb0..3bfe77ff 100644 --- a/hubspot/crm/line_items/models/standard_error.py +++ b/hubspot/crm/line_items/models/standard_error.py @@ -36,67 +36,111 @@ class StandardError(object): and the value is json key in definition. """ openapi_types = { - "status": "str", + "sub_category": "object", + "context": "dict[str, list[str]]", + "links": "dict[str, str]", "id": "str", "category": "str", - "sub_category": "object", "message": "str", "errors": "list[ErrorDetail]", - "context": "dict[str, list[str]]", - "links": "dict[str, str]", + "status": "str", } - attribute_map = {"status": "status", "id": "id", "category": "category", "sub_category": "subCategory", "message": "message", "errors": "errors", "context": "context", "links": "links"} + attribute_map = {"sub_category": "subCategory", "context": "context", "links": "links", "id": "id", "category": "category", "message": "message", "errors": "errors", "status": "status"} - def __init__(self, status=None, id=None, category=None, sub_category=None, message=None, errors=None, context=None, links=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, sub_category=None, context=None, links=None, id=None, category=None, message=None, errors=None, status=None, local_vars_configuration=None): # noqa: E501 """StandardError - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._status = None + self._sub_category = None + self._context = None + self._links = None self._id = None self._category = None - self._sub_category = None self._message = None self._errors = None - self._context = None - self._links = None + self._status = None self.discriminator = None - self.status = status + if sub_category is not None: + self.sub_category = sub_category + self.context = context + self.links = links if id is not None: self.id = id self.category = category - if sub_category is not None: - self.sub_category = sub_category self.message = message self.errors = errors - self.context = context - self.links = links + self.status = status @property - def status(self): - """Gets the status of this StandardError. # noqa: E501 + def sub_category(self): + """Gets the sub_category of this StandardError. # noqa: E501 - :return: The status of this StandardError. # noqa: E501 - :rtype: str + :return: The sub_category of this StandardError. # noqa: E501 + :rtype: object """ - return self._status + return self._sub_category - @status.setter - def status(self, status): - """Sets the status of this StandardError. + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this StandardError. - :param status: The status of this StandardError. # noqa: E501 - :type status: str + :param sub_category: The sub_category of this StandardError. # noqa: E501 + :type sub_category: object """ - if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._sub_category = sub_category + + @property + def context(self): + """Gets the context of this StandardError. # noqa: E501 + + + :return: The context of this StandardError. # noqa: E501 + :rtype: dict[str, list[str]] + """ + return self._context + + @context.setter + def context(self, context): + """Sets the context of this StandardError. + + + :param context: The context of this StandardError. # noqa: E501 + :type context: dict[str, list[str]] + """ + if self.local_vars_configuration.client_side_validation and context is None: # noqa: E501 + raise ValueError("Invalid value for `context`, must not be `None`") # noqa: E501 + + self._context = context + + @property + def links(self): + """Gets the links of this StandardError. # noqa: E501 + + + :return: The links of this StandardError. # noqa: E501 + :rtype: dict[str, str] + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this StandardError. + + + :param links: The links of this StandardError. # noqa: E501 + :type links: dict[str, str] + """ + if self.local_vars_configuration.client_side_validation and links is None: # noqa: E501 + raise ValueError("Invalid value for `links`, must not be `None`") # noqa: E501 + + self._links = links @property def id(self): @@ -142,27 +186,6 @@ def category(self, category): self._category = category - @property - def sub_category(self): - """Gets the sub_category of this StandardError. # noqa: E501 - - - :return: The sub_category of this StandardError. # noqa: E501 - :rtype: object - """ - return self._sub_category - - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this StandardError. - - - :param sub_category: The sub_category of this StandardError. # noqa: E501 - :type sub_category: object - """ - - self._sub_category = sub_category - @property def message(self): """Gets the message of this StandardError. # noqa: E501 @@ -210,50 +233,27 @@ def errors(self, errors): self._errors = errors @property - def context(self): - """Gets the context of this StandardError. # noqa: E501 - - - :return: The context of this StandardError. # noqa: E501 - :rtype: dict[str, list[str]] - """ - return self._context - - @context.setter - def context(self, context): - """Sets the context of this StandardError. - - - :param context: The context of this StandardError. # noqa: E501 - :type context: dict[str, list[str]] - """ - if self.local_vars_configuration.client_side_validation and context is None: # noqa: E501 - raise ValueError("Invalid value for `context`, must not be `None`") # noqa: E501 - - self._context = context - - @property - def links(self): - """Gets the links of this StandardError. # noqa: E501 + def status(self): + """Gets the status of this StandardError. # noqa: E501 - :return: The links of this StandardError. # noqa: E501 - :rtype: dict[str, str] + :return: The status of this StandardError. # noqa: E501 + :rtype: str """ - return self._links + return self._status - @links.setter - def links(self, links): - """Sets the links of this StandardError. + @status.setter + def status(self, status): + """Sets the status of this StandardError. - :param links: The links of this StandardError. # noqa: E501 - :type links: dict[str, str] + :param status: The status of this StandardError. # noqa: E501 + :type status: str """ - if self.local_vars_configuration.client_side_validation and links is None: # noqa: E501 - raise ValueError("Invalid value for `links`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._links = links + self._status = status def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/line_items/models/value_with_timestamp.py b/hubspot/crm/line_items/models/value_with_timestamp.py index 1bb2684c..3d4a3818 100644 --- a/hubspot/crm/line_items/models/value_with_timestamp.py +++ b/hubspot/crm/line_items/models/value_with_timestamp.py @@ -35,79 +35,54 @@ class ValueWithTimestamp(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"value": "str", "timestamp": "datetime", "source_type": "str", "source_id": "str", "source_label": "str", "updated_by_user_id": "int"} + openapi_types = {"source_id": "str", "source_type": "str", "source_label": "str", "updated_by_user_id": "int", "value": "str", "timestamp": "datetime"} - attribute_map = {"value": "value", "timestamp": "timestamp", "source_type": "sourceType", "source_id": "sourceId", "source_label": "sourceLabel", "updated_by_user_id": "updatedByUserId"} + attribute_map = {"source_id": "sourceId", "source_type": "sourceType", "source_label": "sourceLabel", "updated_by_user_id": "updatedByUserId", "value": "value", "timestamp": "timestamp"} - def __init__(self, value=None, timestamp=None, source_type=None, source_id=None, source_label=None, updated_by_user_id=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, source_id=None, source_type=None, source_label=None, updated_by_user_id=None, value=None, timestamp=None, local_vars_configuration=None): # noqa: E501 """ValueWithTimestamp - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._value = None - self._timestamp = None - self._source_type = None self._source_id = None + self._source_type = None self._source_label = None self._updated_by_user_id = None + self._value = None + self._timestamp = None self.discriminator = None - self.value = value - self.timestamp = timestamp - self.source_type = source_type if source_id is not None: self.source_id = source_id + self.source_type = source_type if source_label is not None: self.source_label = source_label if updated_by_user_id is not None: self.updated_by_user_id = updated_by_user_id + self.value = value + self.timestamp = timestamp @property - def value(self): - """Gets the value of this ValueWithTimestamp. # noqa: E501 + def source_id(self): + """Gets the source_id of this ValueWithTimestamp. # noqa: E501 - :return: The value of this ValueWithTimestamp. # noqa: E501 + :return: The source_id of this ValueWithTimestamp. # noqa: E501 :rtype: str """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this ValueWithTimestamp. - - - :param value: The value of this ValueWithTimestamp. # noqa: E501 - :type value: str - """ - if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - - self._value = value - - @property - def timestamp(self): - """Gets the timestamp of this ValueWithTimestamp. # noqa: E501 - - - :return: The timestamp of this ValueWithTimestamp. # noqa: E501 - :rtype: datetime - """ - return self._timestamp + return self._source_id - @timestamp.setter - def timestamp(self, timestamp): - """Sets the timestamp of this ValueWithTimestamp. + @source_id.setter + def source_id(self, source_id): + """Sets the source_id of this ValueWithTimestamp. - :param timestamp: The timestamp of this ValueWithTimestamp. # noqa: E501 - :type timestamp: datetime + :param source_id: The source_id of this ValueWithTimestamp. # noqa: E501 + :type source_id: str """ - if self.local_vars_configuration.client_side_validation and timestamp is None: # noqa: E501 - raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501 - self._timestamp = timestamp + self._source_id = source_id @property def source_type(self): @@ -132,27 +107,6 @@ def source_type(self, source_type): self._source_type = source_type - @property - def source_id(self): - """Gets the source_id of this ValueWithTimestamp. # noqa: E501 - - - :return: The source_id of this ValueWithTimestamp. # noqa: E501 - :rtype: str - """ - return self._source_id - - @source_id.setter - def source_id(self, source_id): - """Sets the source_id of this ValueWithTimestamp. - - - :param source_id: The source_id of this ValueWithTimestamp. # noqa: E501 - :type source_id: str - """ - - self._source_id = source_id - @property def source_label(self): """Gets the source_label of this ValueWithTimestamp. # noqa: E501 @@ -195,6 +149,52 @@ def updated_by_user_id(self, updated_by_user_id): self._updated_by_user_id = updated_by_user_id + @property + def value(self): + """Gets the value of this ValueWithTimestamp. # noqa: E501 + + + :return: The value of this ValueWithTimestamp. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ValueWithTimestamp. + + + :param value: The value of this ValueWithTimestamp. # noqa: E501 + :type value: str + """ + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 + + self._value = value + + @property + def timestamp(self): + """Gets the timestamp of this ValueWithTimestamp. # noqa: E501 + + + :return: The timestamp of this ValueWithTimestamp. # noqa: E501 + :rtype: datetime + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this ValueWithTimestamp. + + + :param timestamp: The timestamp of this ValueWithTimestamp. # noqa: E501 + :type timestamp: datetime + """ + if self.local_vars_configuration.client_side_validation and timestamp is None: # noqa: E501 + raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501 + + self._timestamp = timestamp + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/__init__.py b/hubspot/crm/lists/__init__.py index c7ee3fdf..7a636274 100644 --- a/hubspot/crm/lists/__init__.py +++ b/hubspot/crm/lists/__init__.py @@ -5,7 +5,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -17,8 +17,8 @@ __version__ = "1.0.0" # import apis into sdk package -from hubspot.crm.lists.api.lists_api import ListsApi -from hubspot.crm.lists.api.memberships_api import MembershipsApi +from hubspot.crm.lists.api.list_app_api import ListAppApi +from hubspot.crm.lists.api.list_app_membership_api import ListAppMembershipApi # import ApiClient from hubspot.crm.lists.api_client import ApiClient @@ -31,9 +31,10 @@ from hubspot.crm.lists.exceptions import ApiException # import models into sdk package -from hubspot.crm.lists.models.collection_response_long import CollectionResponseLong +from hubspot.crm.lists.models.collection_response_join_time_and_record_id import CollectionResponseJoinTimeAndRecordId from hubspot.crm.lists.models.error import Error from hubspot.crm.lists.models.error_detail import ErrorDetail +from hubspot.crm.lists.models.join_time_and_record_id import JoinTimeAndRecordId from hubspot.crm.lists.models.list_create_request import ListCreateRequest from hubspot.crm.lists.models.list_create_response import ListCreateResponse from hubspot.crm.lists.models.list_fetch_response import ListFetchResponse diff --git a/hubspot/crm/lists/api/__init__.py b/hubspot/crm/lists/api/__init__.py index 6397adaf..6e945177 100644 --- a/hubspot/crm/lists/api/__init__.py +++ b/hubspot/crm/lists/api/__init__.py @@ -3,5 +3,5 @@ # flake8: noqa # import apis into api package -from hubspot.crm.lists.api.lists_api import ListsApi -from hubspot.crm.lists.api.memberships_api import MembershipsApi +from hubspot.crm.lists.api.list_app_api import ListAppApi +from hubspot.crm.lists.api.list_app_membership_api import ListAppMembershipApi diff --git a/hubspot/crm/lists/api/lists_api.py b/hubspot/crm/lists/api/list_app_api.py similarity index 98% rename from hubspot/crm/lists/api/lists_api.py rename to hubspot/crm/lists/api/list_app_api.py index 32eac9a4..884f2dba 100644 --- a/hubspot/crm/lists/api/lists_api.py +++ b/hubspot/crm/lists/api/list_app_api.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -21,7 +21,7 @@ from hubspot.crm.lists.exceptions import ApiTypeError, ApiValueError # noqa: F401 -class ListsApi(object): +class ListAppApi(object): """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech @@ -171,7 +171,7 @@ def do_search(self, list_search_request, **kwargs): # noqa: E501 >>> thread = api.do_search(list_search_request, async_req=True) >>> result = thread.get() - :param list_search_request: The IDs of the records to add and/or remove from the list. (required) + :param list_search_request: (required) :type list_search_request: ListSearchRequest :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -201,7 +201,7 @@ def do_search_with_http_info(self, list_search_request, **kwargs): # noqa: E501 >>> thread = api.do_search_with_http_info(list_search_request, async_req=True) >>> result = thread.get() - :param list_search_request: The IDs of the records to add and/or remove from the list. (required) + :param list_search_request: (required) :type list_search_request: ListSearchRequest :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -300,7 +300,7 @@ def get_all(self, **kwargs): # noqa: E501 >>> result = thread.get() :param list_ids: The **ILS IDs** of the lists to fetch. - :type list_ids: list[int] + :type list_ids: list[str] :param include_filters: A flag indicating whether or not the response object list definitions should include a filter branch definition. By default, object list definitions will not have their filter branch definitions included in the response. :type include_filters: bool :param async_req: Whether to execute the request asynchronously. @@ -332,7 +332,7 @@ def get_all_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param list_ids: The **ILS IDs** of the lists to fetch. - :type list_ids: list[int] + :type list_ids: list[str] :param include_filters: A flag indicating whether or not the response object list definitions should include a filter branch definition. By default, object list definitions will not have their filter branch definitions included in the response. :type include_filters: bool :param async_req: Whether to execute the request asynchronously. @@ -427,7 +427,7 @@ def get_by_id(self, list_id, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the list to fetch. (required) - :type list_id: int + :type list_id: str :param include_filters: A flag indicating whether or not the response object list definition should include a filter branch definition. By default, object list definitions will not have their filter branch definitions included in the response. :type include_filters: bool :param async_req: Whether to execute the request asynchronously. @@ -459,7 +459,7 @@ def get_by_id_with_http_info(self, list_id, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the list to fetch. (required) - :type list_id: int + :type list_id: str :param include_filters: A flag indicating whether or not the response object list definition should include a filter branch definition. By default, object list definitions will not have their filter branch definitions included in the response. :type include_filters: bool :param async_req: Whether to execute the request asynchronously. @@ -694,7 +694,7 @@ def remove(self, list_id, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the list to delete. (required) - :type list_id: int + :type list_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -724,7 +724,7 @@ def remove_with_http_info(self, list_id, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the list to delete. (required) - :type list_id: int + :type list_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -815,7 +815,7 @@ def restore(self, list_id, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the list to restore. (required) - :type list_id: int + :type list_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -845,7 +845,7 @@ def restore_with_http_info(self, list_id, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the list to restore. (required) - :type list_id: int + :type list_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -936,7 +936,7 @@ def update_list_filters(self, list_id, list_filter_update_request, **kwargs): # >>> result = thread.get() :param list_id: The **ILS ID** of the list to update. (required) - :type list_id: int + :type list_id: str :param list_filter_update_request: (required) :type list_filter_update_request: ListFilterUpdateRequest :param enroll_objects_in_workflows: A flag indicating whether or not the memberships added to the list as a result of the filter change should be enrolled in workflows that are relevant to this list. @@ -970,7 +970,7 @@ def update_list_filters_with_http_info(self, list_id, list_filter_update_request >>> result = thread.get() :param list_id: The **ILS ID** of the list to update. (required) - :type list_id: int + :type list_id: str :param list_filter_update_request: (required) :type list_filter_update_request: ListFilterUpdateRequest :param enroll_objects_in_workflows: A flag indicating whether or not the memberships added to the list as a result of the filter change should be enrolled in workflows that are relevant to this list. @@ -1079,7 +1079,7 @@ def update_name(self, list_id, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the list to update. (required) - :type list_id: int + :type list_id: str :param list_name: The name to update the list to. :type list_name: str :param include_filters: A flag indicating whether or not the response object list definition should include a filter branch definition. By default, object list definitions will not have their filter branch definitions included in the response. @@ -1113,7 +1113,7 @@ def update_name_with_http_info(self, list_id, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the list to update. (required) - :type list_id: int + :type list_id: str :param list_name: The name to update the list to. :type list_name: str :param include_filters: A flag indicating whether or not the response object list definition should include a filter branch definition. By default, object list definitions will not have their filter branch definitions included in the response. diff --git a/hubspot/crm/lists/api/memberships_api.py b/hubspot/crm/lists/api/list_app_membership_api.py similarity index 95% rename from hubspot/crm/lists/api/memberships_api.py rename to hubspot/crm/lists/api/list_app_membership_api.py index fbb6ee4c..69d9aa80 100644 --- a/hubspot/crm/lists/api/memberships_api.py +++ b/hubspot/crm/lists/api/list_app_membership_api.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -21,7 +21,7 @@ from hubspot.crm.lists.exceptions import ApiTypeError, ApiValueError # noqa: F401 -class MembershipsApi(object): +class ListAppMembershipApi(object): """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech @@ -44,9 +44,9 @@ def add(self, list_id, request_body, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the `MANUAL` or `SNAPSHOT` list. (required) - :type list_id: int - :param request_body: The IDs of the records to add to the list. (required) - :type request_body: list[int] + :type list_id: str + :param request_body: (required) + :type request_body: list[str] :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -76,9 +76,9 @@ def add_with_http_info(self, list_id, request_body, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the `MANUAL` or `SNAPSHOT` list. (required) - :type list_id: int - :param request_body: The IDs of the records to add to the list. (required) - :type request_body: list[int] + :type list_id: str + :param request_body: (required) + :type request_body: list[str] :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -181,9 +181,9 @@ def add_all_from_list(self, list_id, source_list_id, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the `MANUAL` or `SNAPSHOT` *destination list*, which the *source list* records are added to. (required) - :type list_id: int + :type list_id: str :param source_list_id: The **ILS ID** of the *source list* to grab the records from, which are then added to the *destination list*. (required) - :type source_list_id: int + :type source_list_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -213,9 +213,9 @@ def add_all_from_list_with_http_info(self, list_id, source_list_id, **kwargs): >>> result = thread.get() :param list_id: The **ILS ID** of the `MANUAL` or `SNAPSHOT` *destination list*, which the *source list* records are added to. (required) - :type list_id: int + :type list_id: str :param source_list_id: The **ILS ID** of the *source list* to grab the records from, which are then added to the *destination list*. (required) - :type source_list_id: int + :type source_list_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -300,19 +300,19 @@ def add_all_from_list_with_http_info(self, list_id, source_list_id, **kwargs): _request_auth=local_var_params.get("_request_auth"), ) - def add_remove(self, list_id, membership_change_request, **kwargs): # noqa: E501 + def add_and_remove(self, list_id, membership_change_request, **kwargs): # noqa: E501 """Add and/or Remove Records from a List # noqa: E501 Add and/or remove records that have already been created in the system to and/or from a list. This endpoint only works for lists that have a `processingType` of `MANUAL` or `SNAPSHOT`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_remove(list_id, membership_change_request, async_req=True) + >>> thread = api.add_and_remove(list_id, membership_change_request, async_req=True) >>> result = thread.get() :param list_id: The **ILS ID** of the `MANUAL` or `SNAPSHOT` list. (required) - :type list_id: int - :param membership_change_request: The IDs of the records to add and/or remove from the list. (required) + :type list_id: str + :param membership_change_request: (required) :type membership_change_request: MembershipChangeRequest :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -330,21 +330,21 @@ def add_remove(self, list_id, membership_change_request, **kwargs): # noqa: E50 :rtype: MembershipsUpdateResponse """ kwargs["_return_http_data_only"] = True - return self.add_remove_with_http_info(list_id, membership_change_request, **kwargs) # noqa: E501 + return self.add_and_remove_with_http_info(list_id, membership_change_request, **kwargs) # noqa: E501 - def add_remove_with_http_info(self, list_id, membership_change_request, **kwargs): # noqa: E501 + def add_and_remove_with_http_info(self, list_id, membership_change_request, **kwargs): # noqa: E501 """Add and/or Remove Records from a List # noqa: E501 Add and/or remove records that have already been created in the system to and/or from a list. This endpoint only works for lists that have a `processingType` of `MANUAL` or `SNAPSHOT`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_remove_with_http_info(list_id, membership_change_request, async_req=True) + >>> thread = api.add_and_remove_with_http_info(list_id, membership_change_request, async_req=True) >>> result = thread.get() :param list_id: The **ILS ID** of the `MANUAL` or `SNAPSHOT` list. (required) - :type list_id: int - :param membership_change_request: The IDs of the records to add and/or remove from the list. (required) + :type list_id: str + :param membership_change_request: (required) :type membership_change_request: MembershipChangeRequest :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -377,15 +377,15 @@ def add_remove_with_http_info(self, list_id, membership_change_request, **kwargs for key, val in six.iteritems(local_var_params["kwargs"]): if key not in all_params: - raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method add_remove" % key) + raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method add_and_remove" % key) local_var_params[key] = val del local_var_params["kwargs"] # verify the required parameter 'list_id' is set if self.api_client.client_side_validation and local_var_params.get("list_id") is None: # noqa: E501 - raise ApiValueError("Missing the required parameter `list_id` when calling `add_remove`") # noqa: E501 + raise ApiValueError("Missing the required parameter `list_id` when calling `add_and_remove`") # noqa: E501 # verify the required parameter 'membership_change_request' is set if self.api_client.client_side_validation and local_var_params.get("membership_change_request") is None: # noqa: E501 - raise ApiValueError("Missing the required parameter `membership_change_request` when calling `add_remove`") # noqa: E501 + raise ApiValueError("Missing the required parameter `membership_change_request` when calling `add_and_remove`") # noqa: E501 collection_formats = {} @@ -448,7 +448,7 @@ def get_page(self, list_id, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the list. (required) - :type list_id: int + :type list_id: str :param after: The paging offset token for the page that comes `after` the previously requested records. If provided, then the records in the response will be the records following the offset, sorted in *ascending* order. Takes precedence over the `before` offset. :type after: str :param before: The paging offset token for the page that comes `before` the previously requested records. If provided, then the records in the response will be the records preceding the offset, sorted in *descending* order. @@ -468,7 +468,7 @@ def get_page(self, list_id, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: CollectionResponseLong + :rtype: CollectionResponseJoinTimeAndRecordId """ kwargs["_return_http_data_only"] = True return self.get_page_with_http_info(list_id, **kwargs) # noqa: E501 @@ -484,7 +484,7 @@ def get_page_with_http_info(self, list_id, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the list. (required) - :type list_id: int + :type list_id: str :param after: The paging offset token for the page that comes `after` the previously requested records. If provided, then the records in the response will be the records following the offset, sorted in *ascending* order. Takes precedence over the `before` offset. :type after: str :param before: The paging offset token for the page that comes `before` the previously requested records. If provided, then the records in the response will be the records preceding the offset, sorted in *descending* order. @@ -512,7 +512,7 @@ def get_page_with_http_info(self, list_id, **kwargs): # noqa: E501 :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(CollectionResponseLong, status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(CollectionResponseJoinTimeAndRecordId, status_code(int), headers(HTTPHeaderDict)) """ local_var_params = locals() @@ -556,7 +556,7 @@ def get_page_with_http_info(self, list_id, **kwargs): # noqa: E501 auth_settings = ["oauth2"] # noqa: E501 response_types_map = { - 200: "CollectionResponseLong", + 200: "CollectionResponseJoinTimeAndRecordId", } return self.api_client.call_api( @@ -589,9 +589,9 @@ def remove(self, list_id, request_body, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the `MANUAL` or `SNAPSHOT` list. (required) - :type list_id: int - :param request_body: The IDs of the records to remove from the list. (required) - :type request_body: list[int] + :type list_id: str + :param request_body: (required) + :type request_body: list[str] :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -621,9 +621,9 @@ def remove_with_http_info(self, list_id, request_body, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the `MANUAL` or `SNAPSHOT` list. (required) - :type list_id: int - :param request_body: The IDs of the records to remove from the list. (required) - :type request_body: list[int] + :type list_id: str + :param request_body: (required) + :type request_body: list[str] :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -726,7 +726,7 @@ def remove_all(self, list_id, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the `MANUAL` or `SNAPSHOT` list. (required) - :type list_id: int + :type list_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -756,7 +756,7 @@ def remove_all_with_http_info(self, list_id, **kwargs): # noqa: E501 >>> result = thread.get() :param list_id: The **ILS ID** of the `MANUAL` or `SNAPSHOT` list. (required) - :type list_id: int + :type list_id: str :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code diff --git a/hubspot/crm/lists/api_client.py b/hubspot/crm/lists/api_client.py index 0a689791..7b52f65a 100644 --- a/hubspot/crm/lists/api_client.py +++ b/hubspot/crm/lists/api_client.py @@ -2,7 +2,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/configuration.py b/hubspot/crm/lists/configuration.py index f9a13ed8..96fc3263 100644 --- a/hubspot/crm/lists/configuration.py +++ b/hubspot/crm/lists/configuration.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/exceptions.py b/hubspot/crm/lists/exceptions.py index ade498f6..78dae3db 100644 --- a/hubspot/crm/lists/exceptions.py +++ b/hubspot/crm/lists/exceptions.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/__init__.py b/hubspot/crm/lists/models/__init__.py index d71e0f0a..51bfd682 100644 --- a/hubspot/crm/lists/models/__init__.py +++ b/hubspot/crm/lists/models/__init__.py @@ -4,7 +4,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -14,9 +14,10 @@ from __future__ import absolute_import # import models into model package -from hubspot.crm.lists.models.collection_response_long import CollectionResponseLong +from hubspot.crm.lists.models.collection_response_join_time_and_record_id import CollectionResponseJoinTimeAndRecordId from hubspot.crm.lists.models.error import Error from hubspot.crm.lists.models.error_detail import ErrorDetail +from hubspot.crm.lists.models.join_time_and_record_id import JoinTimeAndRecordId from hubspot.crm.lists.models.list_create_request import ListCreateRequest from hubspot.crm.lists.models.list_create_response import ListCreateResponse from hubspot.crm.lists.models.list_fetch_response import ListFetchResponse diff --git a/hubspot/crm/lists/models/collection_response_long.py b/hubspot/crm/lists/models/collection_response_join_time_and_record_id.py similarity index 72% rename from hubspot/crm/lists/models/collection_response_long.py rename to hubspot/crm/lists/models/collection_response_join_time_and_record_id.py index de2795d1..6db893fc 100644 --- a/hubspot/crm/lists/models/collection_response_long.py +++ b/hubspot/crm/lists/models/collection_response_join_time_and_record_id.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -21,7 +21,7 @@ from hubspot.crm.lists.configuration import Configuration -class CollectionResponseLong(object): +class CollectionResponseJoinTimeAndRecordId(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -35,12 +35,12 @@ class CollectionResponseLong(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"paging": "Paging", "results": "list[int]"} + openapi_types = {"paging": "Paging", "results": "list[JoinTimeAndRecordId]"} attribute_map = {"paging": "paging", "results": "results"} def __init__(self, paging=None, results=None, local_vars_configuration=None): # noqa: E501 - """CollectionResponseLong - a model defined in OpenAPI""" # noqa: E501 + """CollectionResponseJoinTimeAndRecordId - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration @@ -55,20 +55,20 @@ def __init__(self, paging=None, results=None, local_vars_configuration=None): # @property def paging(self): - """Gets the paging of this CollectionResponseLong. # noqa: E501 + """Gets the paging of this CollectionResponseJoinTimeAndRecordId. # noqa: E501 - :return: The paging of this CollectionResponseLong. # noqa: E501 + :return: The paging of this CollectionResponseJoinTimeAndRecordId. # noqa: E501 :rtype: Paging """ return self._paging @paging.setter def paging(self, paging): - """Sets the paging of this CollectionResponseLong. + """Sets the paging of this CollectionResponseJoinTimeAndRecordId. - :param paging: The paging of this CollectionResponseLong. # noqa: E501 + :param paging: The paging of this CollectionResponseJoinTimeAndRecordId. # noqa: E501 :type paging: Paging """ @@ -76,23 +76,21 @@ def paging(self, paging): @property def results(self): - """Gets the results of this CollectionResponseLong. # noqa: E501 + """Gets the results of this CollectionResponseJoinTimeAndRecordId. # noqa: E501 - The record IDs for the requested page of memberships. # noqa: E501 - :return: The results of this CollectionResponseLong. # noqa: E501 - :rtype: list[int] + :return: The results of this CollectionResponseJoinTimeAndRecordId. # noqa: E501 + :rtype: list[JoinTimeAndRecordId] """ return self._results @results.setter def results(self, results): - """Sets the results of this CollectionResponseLong. + """Sets the results of this CollectionResponseJoinTimeAndRecordId. - The record IDs for the requested page of memberships. # noqa: E501 - :param results: The results of this CollectionResponseLong. # noqa: E501 - :type results: list[int] + :param results: The results of this CollectionResponseJoinTimeAndRecordId. # noqa: E501 + :type results: list[JoinTimeAndRecordId] """ if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501 raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 @@ -135,14 +133,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, CollectionResponseLong): + if not isinstance(other, CollectionResponseJoinTimeAndRecordId): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, CollectionResponseLong): + if not isinstance(other, CollectionResponseJoinTimeAndRecordId): return True return self.to_dict() != other.to_dict() diff --git a/hubspot/crm/lists/models/error.py b/hubspot/crm/lists/models/error.py index 3a4a7aa6..c86931e8 100644 --- a/hubspot/crm/lists/models/error.py +++ b/hubspot/crm/lists/models/error.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/error_detail.py b/hubspot/crm/lists/models/error_detail.py index 151043be..c3e830ed 100644 --- a/hubspot/crm/lists/models/error_detail.py +++ b/hubspot/crm/lists/models/error_detail.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/join_time_and_record_id.py b/hubspot/crm/lists/models/join_time_and_record_id.py new file mode 100644 index 00000000..77ebc32f --- /dev/null +++ b/hubspot/crm/lists/models/join_time_and_record_id.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Lists + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v3 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from hubspot.crm.lists.configuration import Configuration + + +class JoinTimeAndRecordId(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = {"record_id": "str", "membership_timestamp": "datetime"} + + attribute_map = {"record_id": "recordId", "membership_timestamp": "membershipTimestamp"} + + def __init__(self, record_id=None, membership_timestamp=None, local_vars_configuration=None): # noqa: E501 + """JoinTimeAndRecordId - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._record_id = None + self._membership_timestamp = None + self.discriminator = None + + self.record_id = record_id + self.membership_timestamp = membership_timestamp + + @property + def record_id(self): + """Gets the record_id of this JoinTimeAndRecordId. # noqa: E501 + + + :return: The record_id of this JoinTimeAndRecordId. # noqa: E501 + :rtype: str + """ + return self._record_id + + @record_id.setter + def record_id(self, record_id): + """Sets the record_id of this JoinTimeAndRecordId. + + + :param record_id: The record_id of this JoinTimeAndRecordId. # noqa: E501 + :type record_id: str + """ + if self.local_vars_configuration.client_side_validation and record_id is None: # noqa: E501 + raise ValueError("Invalid value for `record_id`, must not be `None`") # noqa: E501 + + self._record_id = record_id + + @property + def membership_timestamp(self): + """Gets the membership_timestamp of this JoinTimeAndRecordId. # noqa: E501 + + + :return: The membership_timestamp of this JoinTimeAndRecordId. # noqa: E501 + :rtype: datetime + """ + return self._membership_timestamp + + @membership_timestamp.setter + def membership_timestamp(self, membership_timestamp): + """Sets the membership_timestamp of this JoinTimeAndRecordId. + + + :param membership_timestamp: The membership_timestamp of this JoinTimeAndRecordId. # noqa: E501 + :type membership_timestamp: datetime + """ + if self.local_vars_configuration.client_side_validation and membership_timestamp is None: # noqa: E501 + raise ValueError("Invalid value for `membership_timestamp`, must not be `None`") # noqa: E501 + + self._membership_timestamp = membership_timestamp + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map(lambda x: convert(x), value)) + elif isinstance(value, dict): + result[attr] = dict(map(lambda item: (item[0], convert(item[1])), value.items())) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, JoinTimeAndRecordId): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, JoinTimeAndRecordId): + return True + + return self.to_dict() != other.to_dict() diff --git a/hubspot/crm/lists/models/list_create_request.py b/hubspot/crm/lists/models/list_create_request.py index 99098727..6d4ee93a 100644 --- a/hubspot/crm/lists/models/list_create_request.py +++ b/hubspot/crm/lists/models/list_create_request.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/list_create_response.py b/hubspot/crm/lists/models/list_create_response.py index 298a3e05..573f0b31 100644 --- a/hubspot/crm/lists/models/list_create_response.py +++ b/hubspot/crm/lists/models/list_create_response.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/list_fetch_response.py b/hubspot/crm/lists/models/list_fetch_response.py index b31be8a7..18e7f9f0 100644 --- a/hubspot/crm/lists/models/list_fetch_response.py +++ b/hubspot/crm/lists/models/list_fetch_response.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/list_filter_update_request.py b/hubspot/crm/lists/models/list_filter_update_request.py index 35c235b8..150c8d99 100644 --- a/hubspot/crm/lists/models/list_filter_update_request.py +++ b/hubspot/crm/lists/models/list_filter_update_request.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/list_search_request.py b/hubspot/crm/lists/models/list_search_request.py index ce768480..69b48fe4 100644 --- a/hubspot/crm/lists/models/list_search_request.py +++ b/hubspot/crm/lists/models/list_search_request.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/list_search_response.py b/hubspot/crm/lists/models/list_search_response.py index 2daf07a3..c0de4ebb 100644 --- a/hubspot/crm/lists/models/list_search_response.py +++ b/hubspot/crm/lists/models/list_search_response.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/list_update_response.py b/hubspot/crm/lists/models/list_update_response.py index b2de1cec..dfb8137a 100644 --- a/hubspot/crm/lists/models/list_update_response.py +++ b/hubspot/crm/lists/models/list_update_response.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/lists_by_id_response.py b/hubspot/crm/lists/models/lists_by_id_response.py index 1e1c68bb..756e2c51 100644 --- a/hubspot/crm/lists/models/lists_by_id_response.py +++ b/hubspot/crm/lists/models/lists_by_id_response.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/membership_change_request.py b/hubspot/crm/lists/models/membership_change_request.py index da786edf..b1c32f76 100644 --- a/hubspot/crm/lists/models/membership_change_request.py +++ b/hubspot/crm/lists/models/membership_change_request.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,7 +35,7 @@ class MembershipChangeRequest(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"record_ids_to_remove": "list[int]", "record_ids_to_add": "list[int]"} + openapi_types = {"record_ids_to_remove": "list[str]", "record_ids_to_add": "list[str]"} attribute_map = {"record_ids_to_remove": "recordIdsToRemove", "record_ids_to_add": "recordIdsToAdd"} @@ -59,7 +59,7 @@ def record_ids_to_remove(self): # noqa: E501 :return: The record_ids_to_remove of this MembershipChangeRequest. # noqa: E501 - :rtype: list[int] + :rtype: list[str] """ return self._record_ids_to_remove @@ -70,7 +70,7 @@ def record_ids_to_remove(self, record_ids_to_remove): # noqa: E501 :param record_ids_to_remove: The record_ids_to_remove of this MembershipChangeRequest. # noqa: E501 - :type record_ids_to_remove: list[int] + :type record_ids_to_remove: list[str] """ if self.local_vars_configuration.client_side_validation and record_ids_to_remove is None: # noqa: E501 raise ValueError("Invalid value for `record_ids_to_remove`, must not be `None`") # noqa: E501 @@ -84,7 +84,7 @@ def record_ids_to_add(self): # noqa: E501 :return: The record_ids_to_add of this MembershipChangeRequest. # noqa: E501 - :rtype: list[int] + :rtype: list[str] """ return self._record_ids_to_add @@ -95,7 +95,7 @@ def record_ids_to_add(self, record_ids_to_add): # noqa: E501 :param record_ids_to_add: The record_ids_to_add of this MembershipChangeRequest. # noqa: E501 - :type record_ids_to_add: list[int] + :type record_ids_to_add: list[str] """ if self.local_vars_configuration.client_side_validation and record_ids_to_add is None: # noqa: E501 raise ValueError("Invalid value for `record_ids_to_add`, must not be `None`") # noqa: E501 diff --git a/hubspot/crm/lists/models/memberships_update_response.py b/hubspot/crm/lists/models/memberships_update_response.py index 512dce36..4ea6adb3 100644 --- a/hubspot/crm/lists/models/memberships_update_response.py +++ b/hubspot/crm/lists/models/memberships_update_response.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,7 +35,7 @@ class MembershipsUpdateResponse(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"record_ids_removed": "list[int]", "records_ids_added": "list[int]", "record_ids_missing": "list[int]"} + openapi_types = {"record_ids_removed": "list[str]", "records_ids_added": "list[str]", "record_ids_missing": "list[str]"} attribute_map = {"record_ids_removed": "recordIdsRemoved", "records_ids_added": "recordsIdsAdded", "record_ids_missing": "recordIdsMissing"} @@ -61,7 +61,7 @@ def record_ids_removed(self): The IDs of the records that were `removed` from the list. # noqa: E501 :return: The record_ids_removed of this MembershipsUpdateResponse. # noqa: E501 - :rtype: list[int] + :rtype: list[str] """ return self._record_ids_removed @@ -72,7 +72,7 @@ def record_ids_removed(self, record_ids_removed): The IDs of the records that were `removed` from the list. # noqa: E501 :param record_ids_removed: The record_ids_removed of this MembershipsUpdateResponse. # noqa: E501 - :type record_ids_removed: list[int] + :type record_ids_removed: list[str] """ if self.local_vars_configuration.client_side_validation and record_ids_removed is None: # noqa: E501 raise ValueError("Invalid value for `record_ids_removed`, must not be `None`") # noqa: E501 @@ -85,7 +85,7 @@ def records_ids_added(self): :return: The records_ids_added of this MembershipsUpdateResponse. # noqa: E501 - :rtype: list[int] + :rtype: list[str] """ return self._records_ids_added @@ -95,7 +95,7 @@ def records_ids_added(self, records_ids_added): :param records_ids_added: The records_ids_added of this MembershipsUpdateResponse. # noqa: E501 - :type records_ids_added: list[int] + :type records_ids_added: list[str] """ if self.local_vars_configuration.client_side_validation and records_ids_added is None: # noqa: E501 raise ValueError("Invalid value for `records_ids_added`, must not be `None`") # noqa: E501 @@ -109,7 +109,7 @@ def record_ids_missing(self): The IDs of the records that were `missing` (e.g. did not exist in the portal) and so were not `added` or `removed`. # noqa: E501 :return: The record_ids_missing of this MembershipsUpdateResponse. # noqa: E501 - :rtype: list[int] + :rtype: list[str] """ return self._record_ids_missing @@ -120,7 +120,7 @@ def record_ids_missing(self, record_ids_missing): The IDs of the records that were `missing` (e.g. did not exist in the portal) and so were not `added` or `removed`. # noqa: E501 :param record_ids_missing: The record_ids_missing of this MembershipsUpdateResponse. # noqa: E501 - :type record_ids_missing: list[int] + :type record_ids_missing: list[str] """ if self.local_vars_configuration.client_side_validation and record_ids_missing is None: # noqa: E501 raise ValueError("Invalid value for `record_ids_missing`, must not be `None`") # noqa: E501 diff --git a/hubspot/crm/lists/models/next_page.py b/hubspot/crm/lists/models/next_page.py index 76a9827e..d0c9cc9d 100644 --- a/hubspot/crm/lists/models/next_page.py +++ b/hubspot/crm/lists/models/next_page.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/paging.py b/hubspot/crm/lists/models/paging.py index 57d21ee6..e8e2e5b9 100644 --- a/hubspot/crm/lists/models/paging.py +++ b/hubspot/crm/lists/models/paging.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/previous_page.py b/hubspot/crm/lists/models/previous_page.py index 78c7dc6a..3f2fafd5 100644 --- a/hubspot/crm/lists/models/previous_page.py +++ b/hubspot/crm/lists/models/previous_page.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/public_absolute_comparative_timestamp_refine_by.py b/hubspot/crm/lists/models/public_absolute_comparative_timestamp_refine_by.py index 594fca9a..5e55e19a 100644 --- a/hubspot/crm/lists/models/public_absolute_comparative_timestamp_refine_by.py +++ b/hubspot/crm/lists/models/public_absolute_comparative_timestamp_refine_by.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,25 +35,48 @@ class PublicAbsoluteComparativeTimestampRefineBy(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"type": "str", "comparison": "str", "timestamp": "int"} + openapi_types = {"comparison": "str", "type": "str", "timestamp": "int"} - attribute_map = {"type": "type", "comparison": "comparison", "timestamp": "timestamp"} + attribute_map = {"comparison": "comparison", "type": "type", "timestamp": "timestamp"} - def __init__(self, type="ABSOLUTE_COMPARATIVE", comparison=None, timestamp=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, comparison=None, type="ABSOLUTE_COMPARATIVE", timestamp=None, local_vars_configuration=None): # noqa: E501 """PublicAbsoluteComparativeTimestampRefineBy - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._type = None self._comparison = None + self._type = None self._timestamp = None self.discriminator = None - self.type = type self.comparison = comparison + self.type = type self.timestamp = timestamp + @property + def comparison(self): + """Gets the comparison of this PublicAbsoluteComparativeTimestampRefineBy. # noqa: E501 + + + :return: The comparison of this PublicAbsoluteComparativeTimestampRefineBy. # noqa: E501 + :rtype: str + """ + return self._comparison + + @comparison.setter + def comparison(self, comparison): + """Sets the comparison of this PublicAbsoluteComparativeTimestampRefineBy. + + + :param comparison: The comparison of this PublicAbsoluteComparativeTimestampRefineBy. # noqa: E501 + :type comparison: str + """ + if self.local_vars_configuration.client_side_validation and comparison is None: # noqa: E501 + raise ValueError("Invalid value for `comparison`, must not be `None`") # noqa: E501 + + self._comparison = comparison + @property def type(self): """Gets the type of this PublicAbsoluteComparativeTimestampRefineBy. # noqa: E501 @@ -80,29 +103,6 @@ def type(self, type): self._type = type - @property - def comparison(self): - """Gets the comparison of this PublicAbsoluteComparativeTimestampRefineBy. # noqa: E501 - - - :return: The comparison of this PublicAbsoluteComparativeTimestampRefineBy. # noqa: E501 - :rtype: str - """ - return self._comparison - - @comparison.setter - def comparison(self, comparison): - """Sets the comparison of this PublicAbsoluteComparativeTimestampRefineBy. - - - :param comparison: The comparison of this PublicAbsoluteComparativeTimestampRefineBy. # noqa: E501 - :type comparison: str - """ - if self.local_vars_configuration.client_side_validation and comparison is None: # noqa: E501 - raise ValueError("Invalid value for `comparison`, must not be `None`") # noqa: E501 - - self._comparison = comparison - @property def timestamp(self): """Gets the timestamp of this PublicAbsoluteComparativeTimestampRefineBy. # noqa: E501 diff --git a/hubspot/crm/lists/models/public_absolute_ranged_timestamp_refine_by.py b/hubspot/crm/lists/models/public_absolute_ranged_timestamp_refine_by.py index d3cd629a..b97591d6 100644 --- a/hubspot/crm/lists/models/public_absolute_ranged_timestamp_refine_by.py +++ b/hubspot/crm/lists/models/public_absolute_ranged_timestamp_refine_by.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,52 +35,26 @@ class PublicAbsoluteRangedTimestampRefineBy(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"type": "str", "range_type": "str", "lower_timestamp": "int", "upper_timestamp": "int"} + openapi_types = {"range_type": "str", "upper_timestamp": "int", "lower_timestamp": "int", "type": "str"} - attribute_map = {"type": "type", "range_type": "rangeType", "lower_timestamp": "lowerTimestamp", "upper_timestamp": "upperTimestamp"} + attribute_map = {"range_type": "rangeType", "upper_timestamp": "upperTimestamp", "lower_timestamp": "lowerTimestamp", "type": "type"} - def __init__(self, type="ABSOLUTE_RANGED", range_type=None, lower_timestamp=None, upper_timestamp=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, range_type=None, upper_timestamp=None, lower_timestamp=None, type="ABSOLUTE_RANGED", local_vars_configuration=None): # noqa: E501 """PublicAbsoluteRangedTimestampRefineBy - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._type = None self._range_type = None - self._lower_timestamp = None self._upper_timestamp = None + self._lower_timestamp = None + self._type = None self.discriminator = None - self.type = type self.range_type = range_type - self.lower_timestamp = lower_timestamp self.upper_timestamp = upper_timestamp - - @property - def type(self): - """Gets the type of this PublicAbsoluteRangedTimestampRefineBy. # noqa: E501 - - - :return: The type of this PublicAbsoluteRangedTimestampRefineBy. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this PublicAbsoluteRangedTimestampRefineBy. - - - :param type: The type of this PublicAbsoluteRangedTimestampRefineBy. # noqa: E501 - :type type: str - """ - if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["ABSOLUTE_RANGED"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `type` ({0}), must be one of {1}".format(type, allowed_values)) # noqa: E501 - - self._type = type + self.lower_timestamp = lower_timestamp + self.type = type @property def range_type(self): @@ -105,6 +79,29 @@ def range_type(self, range_type): self._range_type = range_type + @property + def upper_timestamp(self): + """Gets the upper_timestamp of this PublicAbsoluteRangedTimestampRefineBy. # noqa: E501 + + + :return: The upper_timestamp of this PublicAbsoluteRangedTimestampRefineBy. # noqa: E501 + :rtype: int + """ + return self._upper_timestamp + + @upper_timestamp.setter + def upper_timestamp(self, upper_timestamp): + """Sets the upper_timestamp of this PublicAbsoluteRangedTimestampRefineBy. + + + :param upper_timestamp: The upper_timestamp of this PublicAbsoluteRangedTimestampRefineBy. # noqa: E501 + :type upper_timestamp: int + """ + if self.local_vars_configuration.client_side_validation and upper_timestamp is None: # noqa: E501 + raise ValueError("Invalid value for `upper_timestamp`, must not be `None`") # noqa: E501 + + self._upper_timestamp = upper_timestamp + @property def lower_timestamp(self): """Gets the lower_timestamp of this PublicAbsoluteRangedTimestampRefineBy. # noqa: E501 @@ -129,27 +126,30 @@ def lower_timestamp(self, lower_timestamp): self._lower_timestamp = lower_timestamp @property - def upper_timestamp(self): - """Gets the upper_timestamp of this PublicAbsoluteRangedTimestampRefineBy. # noqa: E501 + def type(self): + """Gets the type of this PublicAbsoluteRangedTimestampRefineBy. # noqa: E501 - :return: The upper_timestamp of this PublicAbsoluteRangedTimestampRefineBy. # noqa: E501 - :rtype: int + :return: The type of this PublicAbsoluteRangedTimestampRefineBy. # noqa: E501 + :rtype: str """ - return self._upper_timestamp + return self._type - @upper_timestamp.setter - def upper_timestamp(self, upper_timestamp): - """Sets the upper_timestamp of this PublicAbsoluteRangedTimestampRefineBy. + @type.setter + def type(self, type): + """Sets the type of this PublicAbsoluteRangedTimestampRefineBy. - :param upper_timestamp: The upper_timestamp of this PublicAbsoluteRangedTimestampRefineBy. # noqa: E501 - :type upper_timestamp: int + :param type: The type of this PublicAbsoluteRangedTimestampRefineBy. # noqa: E501 + :type type: str """ - if self.local_vars_configuration.client_side_validation and upper_timestamp is None: # noqa: E501 - raise ValueError("Invalid value for `upper_timestamp`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + allowed_values = ["ABSOLUTE_RANGED"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `type` ({0}), must be one of {1}".format(type, allowed_values)) # noqa: E501 - self._upper_timestamp = upper_timestamp + self._type = type def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_ads_search_filter.py b/hubspot/crm/lists/models/public_ads_search_filter.py index a21ac31f..32e045a1 100644 --- a/hubspot/crm/lists/models/public_ads_search_filter.py +++ b/hubspot/crm/lists/models/public_ads_search_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,56 +35,53 @@ class PublicAdsSearchFilter(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"filter_type": "str", "entity_type": "str", "search_term_type": "str", "search_terms": "list[str]", "ad_network": "str", "operator": "str"} + openapi_types = {"search_terms": "list[str]", "entity_type": "str", "ad_network": "str", "search_term_type": "str", "filter_type": "str", "operator": "str"} - attribute_map = {"filter_type": "filterType", "entity_type": "entityType", "search_term_type": "searchTermType", "search_terms": "searchTerms", "ad_network": "adNetwork", "operator": "operator"} + attribute_map = {"search_terms": "searchTerms", "entity_type": "entityType", "ad_network": "adNetwork", "search_term_type": "searchTermType", "filter_type": "filterType", "operator": "operator"} - def __init__(self, filter_type="ADS_SEARCH", entity_type=None, search_term_type=None, search_terms=None, ad_network=None, operator=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, search_terms=None, entity_type=None, ad_network=None, search_term_type=None, filter_type="ADS_SEARCH", operator=None, local_vars_configuration=None): # noqa: E501 """PublicAdsSearchFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None - self._entity_type = None - self._search_term_type = None self._search_terms = None + self._entity_type = None self._ad_network = None + self._search_term_type = None + self._filter_type = None self._operator = None self.discriminator = None - self.filter_type = filter_type - self.entity_type = entity_type - self.search_term_type = search_term_type self.search_terms = search_terms + self.entity_type = entity_type self.ad_network = ad_network + self.search_term_type = search_term_type + self.filter_type = filter_type self.operator = operator @property - def filter_type(self): - """Gets the filter_type of this PublicAdsSearchFilter. # noqa: E501 + def search_terms(self): + """Gets the search_terms of this PublicAdsSearchFilter. # noqa: E501 - :return: The filter_type of this PublicAdsSearchFilter. # noqa: E501 - :rtype: str + :return: The search_terms of this PublicAdsSearchFilter. # noqa: E501 + :rtype: list[str] """ - return self._filter_type + return self._search_terms - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicAdsSearchFilter. + @search_terms.setter + def search_terms(self, search_terms): + """Sets the search_terms of this PublicAdsSearchFilter. - :param filter_type: The filter_type of this PublicAdsSearchFilter. # noqa: E501 - :type filter_type: str + :param search_terms: The search_terms of this PublicAdsSearchFilter. # noqa: E501 + :type search_terms: list[str] """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["ADS_SEARCH"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + if self.local_vars_configuration.client_side_validation and search_terms is None: # noqa: E501 + raise ValueError("Invalid value for `search_terms`, must not be `None`") # noqa: E501 - self._filter_type = filter_type + self._search_terms = search_terms @property def entity_type(self): @@ -109,6 +106,29 @@ def entity_type(self, entity_type): self._entity_type = entity_type + @property + def ad_network(self): + """Gets the ad_network of this PublicAdsSearchFilter. # noqa: E501 + + + :return: The ad_network of this PublicAdsSearchFilter. # noqa: E501 + :rtype: str + """ + return self._ad_network + + @ad_network.setter + def ad_network(self, ad_network): + """Sets the ad_network of this PublicAdsSearchFilter. + + + :param ad_network: The ad_network of this PublicAdsSearchFilter. # noqa: E501 + :type ad_network: str + """ + if self.local_vars_configuration.client_side_validation and ad_network is None: # noqa: E501 + raise ValueError("Invalid value for `ad_network`, must not be `None`") # noqa: E501 + + self._ad_network = ad_network + @property def search_term_type(self): """Gets the search_term_type of this PublicAdsSearchFilter. # noqa: E501 @@ -133,50 +153,30 @@ def search_term_type(self, search_term_type): self._search_term_type = search_term_type @property - def search_terms(self): - """Gets the search_terms of this PublicAdsSearchFilter. # noqa: E501 - - - :return: The search_terms of this PublicAdsSearchFilter. # noqa: E501 - :rtype: list[str] - """ - return self._search_terms - - @search_terms.setter - def search_terms(self, search_terms): - """Sets the search_terms of this PublicAdsSearchFilter. - - - :param search_terms: The search_terms of this PublicAdsSearchFilter. # noqa: E501 - :type search_terms: list[str] - """ - if self.local_vars_configuration.client_side_validation and search_terms is None: # noqa: E501 - raise ValueError("Invalid value for `search_terms`, must not be `None`") # noqa: E501 - - self._search_terms = search_terms - - @property - def ad_network(self): - """Gets the ad_network of this PublicAdsSearchFilter. # noqa: E501 + def filter_type(self): + """Gets the filter_type of this PublicAdsSearchFilter. # noqa: E501 - :return: The ad_network of this PublicAdsSearchFilter. # noqa: E501 + :return: The filter_type of this PublicAdsSearchFilter. # noqa: E501 :rtype: str """ - return self._ad_network + return self._filter_type - @ad_network.setter - def ad_network(self, ad_network): - """Sets the ad_network of this PublicAdsSearchFilter. + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicAdsSearchFilter. - :param ad_network: The ad_network of this PublicAdsSearchFilter. # noqa: E501 - :type ad_network: str + :param filter_type: The filter_type of this PublicAdsSearchFilter. # noqa: E501 + :type filter_type: str """ - if self.local_vars_configuration.client_side_validation and ad_network is None: # noqa: E501 - raise ValueError("Invalid value for `ad_network`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["ADS_SEARCH"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - self._ad_network = ad_network + self._filter_type = filter_type @property def operator(self): diff --git a/hubspot/crm/lists/models/public_ads_time_filter.py b/hubspot/crm/lists/models/public_ads_time_filter.py index e4120ad9..1bdb090c 100644 --- a/hubspot/crm/lists/models/public_ads_time_filter.py +++ b/hubspot/crm/lists/models/public_ads_time_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,22 +35,45 @@ class PublicAdsTimeFilter(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"filter_type": "str", "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy"} + openapi_types = {"pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", "filter_type": "str"} - attribute_map = {"filter_type": "filterType", "pruning_refine_by": "pruningRefineBy"} + attribute_map = {"pruning_refine_by": "pruningRefineBy", "filter_type": "filterType"} - def __init__(self, filter_type="ADS_TIME", pruning_refine_by=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, pruning_refine_by=None, filter_type="ADS_TIME", local_vars_configuration=None): # noqa: E501 """PublicAdsTimeFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None self._pruning_refine_by = None + self._filter_type = None self.discriminator = None - self.filter_type = filter_type self.pruning_refine_by = pruning_refine_by + self.filter_type = filter_type + + @property + def pruning_refine_by(self): + """Gets the pruning_refine_by of this PublicAdsTimeFilter. # noqa: E501 + + + :return: The pruning_refine_by of this PublicAdsTimeFilter. # noqa: E501 + :rtype: PublicEventAnalyticsFilterCoalescingRefineBy + """ + return self._pruning_refine_by + + @pruning_refine_by.setter + def pruning_refine_by(self, pruning_refine_by): + """Sets the pruning_refine_by of this PublicAdsTimeFilter. + + + :param pruning_refine_by: The pruning_refine_by of this PublicAdsTimeFilter. # noqa: E501 + :type pruning_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy + """ + if self.local_vars_configuration.client_side_validation and pruning_refine_by is None: # noqa: E501 + raise ValueError("Invalid value for `pruning_refine_by`, must not be `None`") # noqa: E501 + + self._pruning_refine_by = pruning_refine_by @property def filter_type(self): @@ -78,29 +101,6 @@ def filter_type(self, filter_type): self._filter_type = filter_type - @property - def pruning_refine_by(self): - """Gets the pruning_refine_by of this PublicAdsTimeFilter. # noqa: E501 - - - :return: The pruning_refine_by of this PublicAdsTimeFilter. # noqa: E501 - :rtype: PublicEventAnalyticsFilterCoalescingRefineBy - """ - return self._pruning_refine_by - - @pruning_refine_by.setter - def pruning_refine_by(self, pruning_refine_by): - """Sets the pruning_refine_by of this PublicAdsTimeFilter. - - - :param pruning_refine_by: The pruning_refine_by of this PublicAdsTimeFilter. # noqa: E501 - :type pruning_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy - """ - if self.local_vars_configuration.client_side_validation and pruning_refine_by is None: # noqa: E501 - raise ValueError("Invalid value for `pruning_refine_by`, must not be `None`") # noqa: E501 - - self._pruning_refine_by = pruning_refine_by - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_all_history_refine_by.py b/hubspot/crm/lists/models/public_all_history_refine_by.py index e94a5948..f0a1041d 100644 --- a/hubspot/crm/lists/models/public_all_history_refine_by.py +++ b/hubspot/crm/lists/models/public_all_history_refine_by.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/public_all_property_types_operation.py b/hubspot/crm/lists/models/public_all_property_types_operation.py index 08e517f9..ff6a90b7 100644 --- a/hubspot/crm/lists/models/public_all_property_types_operation.py +++ b/hubspot/crm/lists/models/public_all_property_types_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,24 +35,47 @@ class PublicAllPropertyTypesOperation(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"operation_type": "str", "operator": "str", "include_objects_with_no_value_set": "bool"} + openapi_types = {"include_objects_with_no_value_set": "bool", "operation_type": "str", "operator": "str"} - attribute_map = {"operation_type": "operationType", "operator": "operator", "include_objects_with_no_value_set": "includeObjectsWithNoValueSet"} + attribute_map = {"include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "operation_type": "operationType", "operator": "operator"} - def __init__(self, operation_type="ALL_PROPERTY", operator=None, include_objects_with_no_value_set=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, include_objects_with_no_value_set=None, operation_type="ALL_PROPERTY", operator=None, local_vars_configuration=None): # noqa: E501 """PublicAllPropertyTypesOperation - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration + self._include_objects_with_no_value_set = None self._operation_type = None self._operator = None - self._include_objects_with_no_value_set = None self.discriminator = None + self.include_objects_with_no_value_set = include_objects_with_no_value_set self.operation_type = operation_type self.operator = operator - self.include_objects_with_no_value_set = include_objects_with_no_value_set + + @property + def include_objects_with_no_value_set(self): + """Gets the include_objects_with_no_value_set of this PublicAllPropertyTypesOperation. # noqa: E501 + + + :return: The include_objects_with_no_value_set of this PublicAllPropertyTypesOperation. # noqa: E501 + :rtype: bool + """ + return self._include_objects_with_no_value_set + + @include_objects_with_no_value_set.setter + def include_objects_with_no_value_set(self, include_objects_with_no_value_set): + """Sets the include_objects_with_no_value_set of this PublicAllPropertyTypesOperation. + + + :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicAllPropertyTypesOperation. # noqa: E501 + :type include_objects_with_no_value_set: bool + """ + if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 + raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 + + self._include_objects_with_no_value_set = include_objects_with_no_value_set @property def operation_type(self): @@ -103,29 +126,6 @@ def operator(self, operator): self._operator = operator - @property - def include_objects_with_no_value_set(self): - """Gets the include_objects_with_no_value_set of this PublicAllPropertyTypesOperation. # noqa: E501 - - - :return: The include_objects_with_no_value_set of this PublicAllPropertyTypesOperation. # noqa: E501 - :rtype: bool - """ - return self._include_objects_with_no_value_set - - @include_objects_with_no_value_set.setter - def include_objects_with_no_value_set(self, include_objects_with_no_value_set): - """Sets the include_objects_with_no_value_set of this PublicAllPropertyTypesOperation. - - - :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicAllPropertyTypesOperation. # noqa: E501 - :type include_objects_with_no_value_set: bool - """ - if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 - raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 - - self._include_objects_with_no_value_set = include_objects_with_no_value_set - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_and_filter_branch.py b/hubspot/crm/lists/models/public_and_filter_branch.py index bc09ae13..84563045 100644 --- a/hubspot/crm/lists/models/public_and_filter_branch.py +++ b/hubspot/crm/lists/models/public_and_filter_branch.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -38,13 +38,13 @@ class PublicAndFilterBranch(object): openapi_types = { "filter_branch_type": "str", "filter_branches": "list[PublicPropertyAssociationFilterBranchFilterBranchesInner]", - "filters": "list[PublicPropertyAssociationFilterBranchFiltersInner]", "filter_branch_operator": "str", + "filters": "list[PublicPropertyAssociationFilterBranchFiltersInner]", } - attribute_map = {"filter_branch_type": "filterBranchType", "filter_branches": "filterBranches", "filters": "filters", "filter_branch_operator": "filterBranchOperator"} + attribute_map = {"filter_branch_type": "filterBranchType", "filter_branches": "filterBranches", "filter_branch_operator": "filterBranchOperator", "filters": "filters"} - def __init__(self, filter_branch_type="AND", filter_branches=None, filters=None, filter_branch_operator=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, filter_branch_type="AND", filter_branches=None, filter_branch_operator=None, filters=None, local_vars_configuration=None): # noqa: E501 """PublicAndFilterBranch - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() @@ -52,14 +52,14 @@ def __init__(self, filter_branch_type="AND", filter_branches=None, filters=None, self._filter_branch_type = None self._filter_branches = None - self._filters = None self._filter_branch_operator = None + self._filters = None self.discriminator = None self.filter_branch_type = filter_branch_type self.filter_branches = filter_branches - self.filters = filters self.filter_branch_operator = filter_branch_operator + self.filters = filters @property def filter_branch_type(self): @@ -110,29 +110,6 @@ def filter_branches(self, filter_branches): self._filter_branches = filter_branches - @property - def filters(self): - """Gets the filters of this PublicAndFilterBranch. # noqa: E501 - - - :return: The filters of this PublicAndFilterBranch. # noqa: E501 - :rtype: list[PublicPropertyAssociationFilterBranchFiltersInner] - """ - return self._filters - - @filters.setter - def filters(self, filters): - """Sets the filters of this PublicAndFilterBranch. - - - :param filters: The filters of this PublicAndFilterBranch. # noqa: E501 - :type filters: list[PublicPropertyAssociationFilterBranchFiltersInner] - """ - if self.local_vars_configuration.client_side_validation and filters is None: # noqa: E501 - raise ValueError("Invalid value for `filters`, must not be `None`") # noqa: E501 - - self._filters = filters - @property def filter_branch_operator(self): """Gets the filter_branch_operator of this PublicAndFilterBranch. # noqa: E501 @@ -156,6 +133,29 @@ def filter_branch_operator(self, filter_branch_operator): self._filter_branch_operator = filter_branch_operator + @property + def filters(self): + """Gets the filters of this PublicAndFilterBranch. # noqa: E501 + + + :return: The filters of this PublicAndFilterBranch. # noqa: E501 + :rtype: list[PublicPropertyAssociationFilterBranchFiltersInner] + """ + return self._filters + + @filters.setter + def filters(self, filters): + """Sets the filters of this PublicAndFilterBranch. + + + :param filters: The filters of this PublicAndFilterBranch. # noqa: E501 + :type filters: list[PublicPropertyAssociationFilterBranchFiltersInner] + """ + if self.local_vars_configuration.client_side_validation and filters is None: # noqa: E501 + raise ValueError("Invalid value for `filters`, must not be `None`") # noqa: E501 + + self._filters = filters + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_association_filter_branch.py b/hubspot/crm/lists/models/public_association_filter_branch.py index 6fce3f38..3048617c 100644 --- a/hubspot/crm/lists/models/public_association_filter_branch.py +++ b/hubspot/crm/lists/models/public_association_filter_branch.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -38,35 +38,35 @@ class PublicAssociationFilterBranch(object): openapi_types = { "filter_branch_type": "str", "filter_branches": "list[PublicPropertyAssociationFilterBranchFilterBranchesInner]", - "filters": "list[PublicPropertyAssociationFilterBranchFiltersInner]", "object_type_id": "str", - "operator": "str", + "filter_branch_operator": "str", "association_type_id": "int", "association_category": "str", - "filter_branch_operator": "str", + "filters": "list[PublicPropertyAssociationFilterBranchFiltersInner]", + "operator": "str", } attribute_map = { "filter_branch_type": "filterBranchType", "filter_branches": "filterBranches", - "filters": "filters", "object_type_id": "objectTypeId", - "operator": "operator", + "filter_branch_operator": "filterBranchOperator", "association_type_id": "associationTypeId", "association_category": "associationCategory", - "filter_branch_operator": "filterBranchOperator", + "filters": "filters", + "operator": "operator", } def __init__( self, filter_branch_type="ASSOCIATION", filter_branches=None, - filters=None, object_type_id=None, - operator=None, + filter_branch_operator=None, association_type_id=None, association_category=None, - filter_branch_operator=None, + filters=None, + operator=None, local_vars_configuration=None, ): # noqa: E501 """PublicAssociationFilterBranch - a model defined in OpenAPI""" # noqa: E501 @@ -76,22 +76,22 @@ def __init__( self._filter_branch_type = None self._filter_branches = None - self._filters = None self._object_type_id = None - self._operator = None + self._filter_branch_operator = None self._association_type_id = None self._association_category = None - self._filter_branch_operator = None + self._filters = None + self._operator = None self.discriminator = None self.filter_branch_type = filter_branch_type self.filter_branches = filter_branches - self.filters = filters self.object_type_id = object_type_id - self.operator = operator + self.filter_branch_operator = filter_branch_operator self.association_type_id = association_type_id self.association_category = association_category - self.filter_branch_operator = filter_branch_operator + self.filters = filters + self.operator = operator @property def filter_branch_type(self): @@ -142,29 +142,6 @@ def filter_branches(self, filter_branches): self._filter_branches = filter_branches - @property - def filters(self): - """Gets the filters of this PublicAssociationFilterBranch. # noqa: E501 - - - :return: The filters of this PublicAssociationFilterBranch. # noqa: E501 - :rtype: list[PublicPropertyAssociationFilterBranchFiltersInner] - """ - return self._filters - - @filters.setter - def filters(self, filters): - """Sets the filters of this PublicAssociationFilterBranch. - - - :param filters: The filters of this PublicAssociationFilterBranch. # noqa: E501 - :type filters: list[PublicPropertyAssociationFilterBranchFiltersInner] - """ - if self.local_vars_configuration.client_side_validation and filters is None: # noqa: E501 - raise ValueError("Invalid value for `filters`, must not be `None`") # noqa: E501 - - self._filters = filters - @property def object_type_id(self): """Gets the object_type_id of this PublicAssociationFilterBranch. # noqa: E501 @@ -189,27 +166,27 @@ def object_type_id(self, object_type_id): self._object_type_id = object_type_id @property - def operator(self): - """Gets the operator of this PublicAssociationFilterBranch. # noqa: E501 + def filter_branch_operator(self): + """Gets the filter_branch_operator of this PublicAssociationFilterBranch. # noqa: E501 - :return: The operator of this PublicAssociationFilterBranch. # noqa: E501 + :return: The filter_branch_operator of this PublicAssociationFilterBranch. # noqa: E501 :rtype: str """ - return self._operator + return self._filter_branch_operator - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicAssociationFilterBranch. + @filter_branch_operator.setter + def filter_branch_operator(self, filter_branch_operator): + """Sets the filter_branch_operator of this PublicAssociationFilterBranch. - :param operator: The operator of this PublicAssociationFilterBranch. # noqa: E501 - :type operator: str + :param filter_branch_operator: The filter_branch_operator of this PublicAssociationFilterBranch. # noqa: E501 + :type filter_branch_operator: str """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_branch_operator is None: # noqa: E501 + raise ValueError("Invalid value for `filter_branch_operator`, must not be `None`") # noqa: E501 - self._operator = operator + self._filter_branch_operator = filter_branch_operator @property def association_type_id(self): @@ -258,27 +235,50 @@ def association_category(self, association_category): self._association_category = association_category @property - def filter_branch_operator(self): - """Gets the filter_branch_operator of this PublicAssociationFilterBranch. # noqa: E501 + def filters(self): + """Gets the filters of this PublicAssociationFilterBranch. # noqa: E501 - :return: The filter_branch_operator of this PublicAssociationFilterBranch. # noqa: E501 + :return: The filters of this PublicAssociationFilterBranch. # noqa: E501 + :rtype: list[PublicPropertyAssociationFilterBranchFiltersInner] + """ + return self._filters + + @filters.setter + def filters(self, filters): + """Sets the filters of this PublicAssociationFilterBranch. + + + :param filters: The filters of this PublicAssociationFilterBranch. # noqa: E501 + :type filters: list[PublicPropertyAssociationFilterBranchFiltersInner] + """ + if self.local_vars_configuration.client_side_validation and filters is None: # noqa: E501 + raise ValueError("Invalid value for `filters`, must not be `None`") # noqa: E501 + + self._filters = filters + + @property + def operator(self): + """Gets the operator of this PublicAssociationFilterBranch. # noqa: E501 + + + :return: The operator of this PublicAssociationFilterBranch. # noqa: E501 :rtype: str """ - return self._filter_branch_operator + return self._operator - @filter_branch_operator.setter - def filter_branch_operator(self, filter_branch_operator): - """Sets the filter_branch_operator of this PublicAssociationFilterBranch. + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicAssociationFilterBranch. - :param filter_branch_operator: The filter_branch_operator of this PublicAssociationFilterBranch. # noqa: E501 - :type filter_branch_operator: str + :param operator: The operator of this PublicAssociationFilterBranch. # noqa: E501 + :type operator: str """ - if self.local_vars_configuration.client_side_validation and filter_branch_operator is None: # noqa: E501 - raise ValueError("Invalid value for `filter_branch_operator`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._filter_branch_operator = filter_branch_operator + self._operator = operator def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_association_in_list_filter.py b/hubspot/crm/lists/models/public_association_in_list_filter.py index d7fdb210..40186835 100644 --- a/hubspot/crm/lists/models/public_association_in_list_filter.py +++ b/hubspot/crm/lists/models/public_association_in_list_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,37 +36,37 @@ class PublicAssociationInListFilter(object): and the value is json key in definition. """ openapi_types = { - "filter_type": "str", + "list_id": "str", "coalescing_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", - "operator": "str", - "list_id": "int", - "to_object_type_id": "str", + "to_object_type": "str", "association_type_id": "int", "association_category": "str", - "to_object_type": "str", + "filter_type": "str", + "to_object_type_id": "str", + "operator": "str", } attribute_map = { - "filter_type": "filterType", - "coalescing_refine_by": "coalescingRefineBy", - "operator": "operator", "list_id": "listId", - "to_object_type_id": "toObjectTypeId", + "coalescing_refine_by": "coalescingRefineBy", + "to_object_type": "toObjectType", "association_type_id": "associationTypeId", "association_category": "associationCategory", - "to_object_type": "toObjectType", + "filter_type": "filterType", + "to_object_type_id": "toObjectTypeId", + "operator": "operator", } def __init__( self, - filter_type="ASSOCIATION", - coalescing_refine_by=None, - operator=None, list_id=None, - to_object_type_id=None, + coalescing_refine_by=None, + to_object_type=None, association_type_id=None, association_category=None, - to_object_type=None, + filter_type="ASSOCIATION", + to_object_type_id=None, + operator=None, local_vars_configuration=None, ): # noqa: E501 """PublicAssociationInListFilter - a model defined in OpenAPI""" # noqa: E501 @@ -74,52 +74,49 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None - self._coalescing_refine_by = None - self._operator = None self._list_id = None - self._to_object_type_id = None + self._coalescing_refine_by = None + self._to_object_type = None self._association_type_id = None self._association_category = None - self._to_object_type = None + self._filter_type = None + self._to_object_type_id = None + self._operator = None self.discriminator = None - self.filter_type = filter_type - self.coalescing_refine_by = coalescing_refine_by - self.operator = operator self.list_id = list_id - if to_object_type_id is not None: - self.to_object_type_id = to_object_type_id - self.association_type_id = association_type_id - self.association_category = association_category + self.coalescing_refine_by = coalescing_refine_by if to_object_type is not None: self.to_object_type = to_object_type + self.association_type_id = association_type_id + self.association_category = association_category + self.filter_type = filter_type + if to_object_type_id is not None: + self.to_object_type_id = to_object_type_id + self.operator = operator @property - def filter_type(self): - """Gets the filter_type of this PublicAssociationInListFilter. # noqa: E501 + def list_id(self): + """Gets the list_id of this PublicAssociationInListFilter. # noqa: E501 - :return: The filter_type of this PublicAssociationInListFilter. # noqa: E501 + :return: The list_id of this PublicAssociationInListFilter. # noqa: E501 :rtype: str """ - return self._filter_type + return self._list_id - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicAssociationInListFilter. + @list_id.setter + def list_id(self, list_id): + """Sets the list_id of this PublicAssociationInListFilter. - :param filter_type: The filter_type of this PublicAssociationInListFilter. # noqa: E501 - :type filter_type: str + :param list_id: The list_id of this PublicAssociationInListFilter. # noqa: E501 + :type list_id: str """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["ASSOCIATION"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + if self.local_vars_configuration.client_side_validation and list_id is None: # noqa: E501 + raise ValueError("Invalid value for `list_id`, must not be `None`") # noqa: E501 - self._filter_type = filter_type + self._list_id = list_id @property def coalescing_refine_by(self): @@ -145,71 +142,25 @@ def coalescing_refine_by(self, coalescing_refine_by): self._coalescing_refine_by = coalescing_refine_by @property - def operator(self): - """Gets the operator of this PublicAssociationInListFilter. # noqa: E501 - - - :return: The operator of this PublicAssociationInListFilter. # noqa: E501 - :rtype: str - """ - return self._operator - - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicAssociationInListFilter. - - - :param operator: The operator of this PublicAssociationInListFilter. # noqa: E501 - :type operator: str - """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - - self._operator = operator - - @property - def list_id(self): - """Gets the list_id of this PublicAssociationInListFilter. # noqa: E501 - - - :return: The list_id of this PublicAssociationInListFilter. # noqa: E501 - :rtype: int - """ - return self._list_id - - @list_id.setter - def list_id(self, list_id): - """Sets the list_id of this PublicAssociationInListFilter. - - - :param list_id: The list_id of this PublicAssociationInListFilter. # noqa: E501 - :type list_id: int - """ - if self.local_vars_configuration.client_side_validation and list_id is None: # noqa: E501 - raise ValueError("Invalid value for `list_id`, must not be `None`") # noqa: E501 - - self._list_id = list_id - - @property - def to_object_type_id(self): - """Gets the to_object_type_id of this PublicAssociationInListFilter. # noqa: E501 + def to_object_type(self): + """Gets the to_object_type of this PublicAssociationInListFilter. # noqa: E501 - :return: The to_object_type_id of this PublicAssociationInListFilter. # noqa: E501 + :return: The to_object_type of this PublicAssociationInListFilter. # noqa: E501 :rtype: str """ - return self._to_object_type_id + return self._to_object_type - @to_object_type_id.setter - def to_object_type_id(self, to_object_type_id): - """Sets the to_object_type_id of this PublicAssociationInListFilter. + @to_object_type.setter + def to_object_type(self, to_object_type): + """Sets the to_object_type of this PublicAssociationInListFilter. - :param to_object_type_id: The to_object_type_id of this PublicAssociationInListFilter. # noqa: E501 - :type to_object_type_id: str + :param to_object_type: The to_object_type of this PublicAssociationInListFilter. # noqa: E501 + :type to_object_type: str """ - self._to_object_type_id = to_object_type_id + self._to_object_type = to_object_type @property def association_type_id(self): @@ -258,25 +209,74 @@ def association_category(self, association_category): self._association_category = association_category @property - def to_object_type(self): - """Gets the to_object_type of this PublicAssociationInListFilter. # noqa: E501 + def filter_type(self): + """Gets the filter_type of this PublicAssociationInListFilter. # noqa: E501 - :return: The to_object_type of this PublicAssociationInListFilter. # noqa: E501 + :return: The filter_type of this PublicAssociationInListFilter. # noqa: E501 :rtype: str """ - return self._to_object_type + return self._filter_type - @to_object_type.setter - def to_object_type(self, to_object_type): - """Sets the to_object_type of this PublicAssociationInListFilter. + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicAssociationInListFilter. - :param to_object_type: The to_object_type of this PublicAssociationInListFilter. # noqa: E501 - :type to_object_type: str + :param filter_type: The filter_type of this PublicAssociationInListFilter. # noqa: E501 + :type filter_type: str """ + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["ASSOCIATION"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - self._to_object_type = to_object_type + self._filter_type = filter_type + + @property + def to_object_type_id(self): + """Gets the to_object_type_id of this PublicAssociationInListFilter. # noqa: E501 + + + :return: The to_object_type_id of this PublicAssociationInListFilter. # noqa: E501 + :rtype: str + """ + return self._to_object_type_id + + @to_object_type_id.setter + def to_object_type_id(self, to_object_type_id): + """Sets the to_object_type_id of this PublicAssociationInListFilter. + + + :param to_object_type_id: The to_object_type_id of this PublicAssociationInListFilter. # noqa: E501 + :type to_object_type_id: str + """ + + self._to_object_type_id = to_object_type_id + + @property + def operator(self): + """Gets the operator of this PublicAssociationInListFilter. # noqa: E501 + + + :return: The operator of this PublicAssociationInListFilter. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicAssociationInListFilter. + + + :param operator: The operator of this PublicAssociationInListFilter. # noqa: E501 + :type operator: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + + self._operator = operator def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_bool_property_operation.py b/hubspot/crm/lists/models/public_bool_property_operation.py index 4f8b8f74..825ca9b1 100644 --- a/hubspot/crm/lists/models/public_bool_property_operation.py +++ b/hubspot/crm/lists/models/public_bool_property_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,26 +35,49 @@ class PublicBoolPropertyOperation(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"operation_type": "str", "operator": "str", "include_objects_with_no_value_set": "bool", "value": "bool"} + openapi_types = {"include_objects_with_no_value_set": "bool", "operation_type": "str", "value": "bool", "operator": "str"} - attribute_map = {"operation_type": "operationType", "operator": "operator", "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "value": "value"} + attribute_map = {"include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "operation_type": "operationType", "value": "value", "operator": "operator"} - def __init__(self, operation_type="BOOL", operator=None, include_objects_with_no_value_set=None, value=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, include_objects_with_no_value_set=None, operation_type="BOOL", value=None, operator=None, local_vars_configuration=None): # noqa: E501 """PublicBoolPropertyOperation - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._operation_type = None - self._operator = None self._include_objects_with_no_value_set = None + self._operation_type = None self._value = None + self._operator = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator self.include_objects_with_no_value_set = include_objects_with_no_value_set + self.operation_type = operation_type self.value = value + self.operator = operator + + @property + def include_objects_with_no_value_set(self): + """Gets the include_objects_with_no_value_set of this PublicBoolPropertyOperation. # noqa: E501 + + + :return: The include_objects_with_no_value_set of this PublicBoolPropertyOperation. # noqa: E501 + :rtype: bool + """ + return self._include_objects_with_no_value_set + + @include_objects_with_no_value_set.setter + def include_objects_with_no_value_set(self, include_objects_with_no_value_set): + """Sets the include_objects_with_no_value_set of this PublicBoolPropertyOperation. + + + :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicBoolPropertyOperation. # noqa: E501 + :type include_objects_with_no_value_set: bool + """ + if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 + raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 + + self._include_objects_with_no_value_set = include_objects_with_no_value_set @property def operation_type(self): @@ -82,52 +105,6 @@ def operation_type(self, operation_type): self._operation_type = operation_type - @property - def operator(self): - """Gets the operator of this PublicBoolPropertyOperation. # noqa: E501 - - - :return: The operator of this PublicBoolPropertyOperation. # noqa: E501 - :rtype: str - """ - return self._operator - - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicBoolPropertyOperation. - - - :param operator: The operator of this PublicBoolPropertyOperation. # noqa: E501 - :type operator: str - """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - - self._operator = operator - - @property - def include_objects_with_no_value_set(self): - """Gets the include_objects_with_no_value_set of this PublicBoolPropertyOperation. # noqa: E501 - - - :return: The include_objects_with_no_value_set of this PublicBoolPropertyOperation. # noqa: E501 - :rtype: bool - """ - return self._include_objects_with_no_value_set - - @include_objects_with_no_value_set.setter - def include_objects_with_no_value_set(self, include_objects_with_no_value_set): - """Sets the include_objects_with_no_value_set of this PublicBoolPropertyOperation. - - - :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicBoolPropertyOperation. # noqa: E501 - :type include_objects_with_no_value_set: bool - """ - if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 - raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 - - self._include_objects_with_no_value_set = include_objects_with_no_value_set - @property def value(self): """Gets the value of this PublicBoolPropertyOperation. # noqa: E501 @@ -151,6 +128,29 @@ def value(self, value): self._value = value + @property + def operator(self): + """Gets the operator of this PublicBoolPropertyOperation. # noqa: E501 + + + :return: The operator of this PublicBoolPropertyOperation. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicBoolPropertyOperation. + + + :param operator: The operator of this PublicBoolPropertyOperation. # noqa: E501 + :type operator: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + + self._operator = operator + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_calendar_date_property_operation.py b/hubspot/crm/lists/models/public_calendar_date_property_operation.py index 86b6a859..91a604ae 100644 --- a/hubspot/crm/lists/models/public_calendar_date_property_operation.py +++ b/hubspot/crm/lists/models/public_calendar_date_property_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,34 +36,34 @@ class PublicCalendarDatePropertyOperation(object): and the value is json key in definition. """ openapi_types = { + "use_fiscal_year": "bool", + "fiscal_year_start": "str", + "include_objects_with_no_value_set": "bool", "operation_type": "str", + "time_unit_count": "int", "operator": "str", - "include_objects_with_no_value_set": "bool", "time_unit": "str", - "fiscal_year_start": "str", - "use_fiscal_year": "bool", - "time_unit_count": "int", } attribute_map = { + "use_fiscal_year": "useFiscalYear", + "fiscal_year_start": "fiscalYearStart", + "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "operation_type": "operationType", + "time_unit_count": "timeUnitCount", "operator": "operator", - "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "time_unit": "timeUnit", - "fiscal_year_start": "fiscalYearStart", - "use_fiscal_year": "useFiscalYear", - "time_unit_count": "timeUnitCount", } def __init__( self, + use_fiscal_year=None, + fiscal_year_start=None, + include_objects_with_no_value_set=None, operation_type="CALENDAR_DATE", + time_unit_count=None, operator=None, - include_objects_with_no_value_set=None, time_unit=None, - fiscal_year_start=None, - use_fiscal_year=None, - time_unit_count=None, local_vars_configuration=None, ): # noqa: E501 """PublicCalendarDatePropertyOperation - a model defined in OpenAPI""" # noqa: E501 @@ -71,74 +71,70 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration + self._use_fiscal_year = None + self._fiscal_year_start = None + self._include_objects_with_no_value_set = None self._operation_type = None + self._time_unit_count = None self._operator = None - self._include_objects_with_no_value_set = None self._time_unit = None - self._fiscal_year_start = None - self._use_fiscal_year = None - self._time_unit_count = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator - self.include_objects_with_no_value_set = include_objects_with_no_value_set - self.time_unit = time_unit - if fiscal_year_start is not None: - self.fiscal_year_start = fiscal_year_start if use_fiscal_year is not None: self.use_fiscal_year = use_fiscal_year + if fiscal_year_start is not None: + self.fiscal_year_start = fiscal_year_start + self.include_objects_with_no_value_set = include_objects_with_no_value_set + self.operation_type = operation_type if time_unit_count is not None: self.time_unit_count = time_unit_count + self.operator = operator + self.time_unit = time_unit @property - def operation_type(self): - """Gets the operation_type of this PublicCalendarDatePropertyOperation. # noqa: E501 + def use_fiscal_year(self): + """Gets the use_fiscal_year of this PublicCalendarDatePropertyOperation. # noqa: E501 - :return: The operation_type of this PublicCalendarDatePropertyOperation. # noqa: E501 - :rtype: str + :return: The use_fiscal_year of this PublicCalendarDatePropertyOperation. # noqa: E501 + :rtype: bool """ - return self._operation_type + return self._use_fiscal_year - @operation_type.setter - def operation_type(self, operation_type): - """Sets the operation_type of this PublicCalendarDatePropertyOperation. + @use_fiscal_year.setter + def use_fiscal_year(self, use_fiscal_year): + """Sets the use_fiscal_year of this PublicCalendarDatePropertyOperation. - :param operation_type: The operation_type of this PublicCalendarDatePropertyOperation. # noqa: E501 - :type operation_type: str + :param use_fiscal_year: The use_fiscal_year of this PublicCalendarDatePropertyOperation. # noqa: E501 + :type use_fiscal_year: bool """ - if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 - raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 - allowed_values = ["CALENDAR_DATE"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 - self._operation_type = operation_type + self._use_fiscal_year = use_fiscal_year @property - def operator(self): - """Gets the operator of this PublicCalendarDatePropertyOperation. # noqa: E501 + def fiscal_year_start(self): + """Gets the fiscal_year_start of this PublicCalendarDatePropertyOperation. # noqa: E501 - :return: The operator of this PublicCalendarDatePropertyOperation. # noqa: E501 + :return: The fiscal_year_start of this PublicCalendarDatePropertyOperation. # noqa: E501 :rtype: str """ - return self._operator + return self._fiscal_year_start - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicCalendarDatePropertyOperation. + @fiscal_year_start.setter + def fiscal_year_start(self, fiscal_year_start): + """Sets the fiscal_year_start of this PublicCalendarDatePropertyOperation. - :param operator: The operator of this PublicCalendarDatePropertyOperation. # noqa: E501 - :type operator: str + :param fiscal_year_start: The fiscal_year_start of this PublicCalendarDatePropertyOperation. # noqa: E501 + :type fiscal_year_start: str """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + allowed_values = ["JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and fiscal_year_start not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `fiscal_year_start` ({0}), must be one of {1}".format(fiscal_year_start, allowed_values)) # noqa: E501 - self._operator = operator + self._fiscal_year_start = fiscal_year_start @property def include_objects_with_no_value_set(self): @@ -164,93 +160,97 @@ def include_objects_with_no_value_set(self, include_objects_with_no_value_set): self._include_objects_with_no_value_set = include_objects_with_no_value_set @property - def time_unit(self): - """Gets the time_unit of this PublicCalendarDatePropertyOperation. # noqa: E501 + def operation_type(self): + """Gets the operation_type of this PublicCalendarDatePropertyOperation. # noqa: E501 - :return: The time_unit of this PublicCalendarDatePropertyOperation. # noqa: E501 + :return: The operation_type of this PublicCalendarDatePropertyOperation. # noqa: E501 :rtype: str """ - return self._time_unit + return self._operation_type - @time_unit.setter - def time_unit(self, time_unit): - """Sets the time_unit of this PublicCalendarDatePropertyOperation. + @operation_type.setter + def operation_type(self, operation_type): + """Sets the operation_type of this PublicCalendarDatePropertyOperation. - :param time_unit: The time_unit of this PublicCalendarDatePropertyOperation. # noqa: E501 - :type time_unit: str + :param operation_type: The operation_type of this PublicCalendarDatePropertyOperation. # noqa: E501 + :type operation_type: str """ - if self.local_vars_configuration.client_side_validation and time_unit is None: # noqa: E501 - raise ValueError("Invalid value for `time_unit`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 + raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 + allowed_values = ["CALENDAR_DATE"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 - self._time_unit = time_unit + self._operation_type = operation_type @property - def fiscal_year_start(self): - """Gets the fiscal_year_start of this PublicCalendarDatePropertyOperation. # noqa: E501 + def time_unit_count(self): + """Gets the time_unit_count of this PublicCalendarDatePropertyOperation. # noqa: E501 - :return: The fiscal_year_start of this PublicCalendarDatePropertyOperation. # noqa: E501 - :rtype: str + :return: The time_unit_count of this PublicCalendarDatePropertyOperation. # noqa: E501 + :rtype: int """ - return self._fiscal_year_start + return self._time_unit_count - @fiscal_year_start.setter - def fiscal_year_start(self, fiscal_year_start): - """Sets the fiscal_year_start of this PublicCalendarDatePropertyOperation. + @time_unit_count.setter + def time_unit_count(self, time_unit_count): + """Sets the time_unit_count of this PublicCalendarDatePropertyOperation. - :param fiscal_year_start: The fiscal_year_start of this PublicCalendarDatePropertyOperation. # noqa: E501 - :type fiscal_year_start: str + :param time_unit_count: The time_unit_count of this PublicCalendarDatePropertyOperation. # noqa: E501 + :type time_unit_count: int """ - allowed_values = ["JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and fiscal_year_start not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `fiscal_year_start` ({0}), must be one of {1}".format(fiscal_year_start, allowed_values)) # noqa: E501 - self._fiscal_year_start = fiscal_year_start + self._time_unit_count = time_unit_count @property - def use_fiscal_year(self): - """Gets the use_fiscal_year of this PublicCalendarDatePropertyOperation. # noqa: E501 + def operator(self): + """Gets the operator of this PublicCalendarDatePropertyOperation. # noqa: E501 - :return: The use_fiscal_year of this PublicCalendarDatePropertyOperation. # noqa: E501 - :rtype: bool + :return: The operator of this PublicCalendarDatePropertyOperation. # noqa: E501 + :rtype: str """ - return self._use_fiscal_year + return self._operator - @use_fiscal_year.setter - def use_fiscal_year(self, use_fiscal_year): - """Sets the use_fiscal_year of this PublicCalendarDatePropertyOperation. + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicCalendarDatePropertyOperation. - :param use_fiscal_year: The use_fiscal_year of this PublicCalendarDatePropertyOperation. # noqa: E501 - :type use_fiscal_year: bool + :param operator: The operator of this PublicCalendarDatePropertyOperation. # noqa: E501 + :type operator: str """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._use_fiscal_year = use_fiscal_year + self._operator = operator @property - def time_unit_count(self): - """Gets the time_unit_count of this PublicCalendarDatePropertyOperation. # noqa: E501 + def time_unit(self): + """Gets the time_unit of this PublicCalendarDatePropertyOperation. # noqa: E501 - :return: The time_unit_count of this PublicCalendarDatePropertyOperation. # noqa: E501 - :rtype: int + :return: The time_unit of this PublicCalendarDatePropertyOperation. # noqa: E501 + :rtype: str """ - return self._time_unit_count + return self._time_unit - @time_unit_count.setter - def time_unit_count(self, time_unit_count): - """Sets the time_unit_count of this PublicCalendarDatePropertyOperation. + @time_unit.setter + def time_unit(self, time_unit): + """Sets the time_unit of this PublicCalendarDatePropertyOperation. - :param time_unit_count: The time_unit_count of this PublicCalendarDatePropertyOperation. # noqa: E501 - :type time_unit_count: int + :param time_unit: The time_unit of this PublicCalendarDatePropertyOperation. # noqa: E501 + :type time_unit: str """ + if self.local_vars_configuration.client_side_validation and time_unit is None: # noqa: E501 + raise ValueError("Invalid value for `time_unit`, must not be `None`") # noqa: E501 - self._time_unit_count = time_unit_count + self._time_unit = time_unit def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_campaign_influenced_filter.py b/hubspot/crm/lists/models/public_campaign_influenced_filter.py index 004c1fb3..22055a22 100644 --- a/hubspot/crm/lists/models/public_campaign_influenced_filter.py +++ b/hubspot/crm/lists/models/public_campaign_influenced_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,22 +35,45 @@ class PublicCampaignInfluencedFilter(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"filter_type": "str", "campaign_id": "str"} + openapi_types = {"campaign_id": "str", "filter_type": "str"} - attribute_map = {"filter_type": "filterType", "campaign_id": "campaignId"} + attribute_map = {"campaign_id": "campaignId", "filter_type": "filterType"} - def __init__(self, filter_type="CAMPAIGN_INFLUENCED", campaign_id=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, campaign_id=None, filter_type="CAMPAIGN_INFLUENCED", local_vars_configuration=None): # noqa: E501 """PublicCampaignInfluencedFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None self._campaign_id = None + self._filter_type = None self.discriminator = None - self.filter_type = filter_type self.campaign_id = campaign_id + self.filter_type = filter_type + + @property + def campaign_id(self): + """Gets the campaign_id of this PublicCampaignInfluencedFilter. # noqa: E501 + + + :return: The campaign_id of this PublicCampaignInfluencedFilter. # noqa: E501 + :rtype: str + """ + return self._campaign_id + + @campaign_id.setter + def campaign_id(self, campaign_id): + """Sets the campaign_id of this PublicCampaignInfluencedFilter. + + + :param campaign_id: The campaign_id of this PublicCampaignInfluencedFilter. # noqa: E501 + :type campaign_id: str + """ + if self.local_vars_configuration.client_side_validation and campaign_id is None: # noqa: E501 + raise ValueError("Invalid value for `campaign_id`, must not be `None`") # noqa: E501 + + self._campaign_id = campaign_id @property def filter_type(self): @@ -78,29 +101,6 @@ def filter_type(self, filter_type): self._filter_type = filter_type - @property - def campaign_id(self): - """Gets the campaign_id of this PublicCampaignInfluencedFilter. # noqa: E501 - - - :return: The campaign_id of this PublicCampaignInfluencedFilter. # noqa: E501 - :rtype: str - """ - return self._campaign_id - - @campaign_id.setter - def campaign_id(self, campaign_id): - """Sets the campaign_id of this PublicCampaignInfluencedFilter. - - - :param campaign_id: The campaign_id of this PublicCampaignInfluencedFilter. # noqa: E501 - :type campaign_id: str - """ - if self.local_vars_configuration.client_side_validation and campaign_id is None: # noqa: E501 - raise ValueError("Invalid value for `campaign_id`, must not be `None`") # noqa: E501 - - self._campaign_id = campaign_id - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_communication_subscription_filter.py b/hubspot/crm/lists/models/public_communication_subscription_filter.py index 03134569..47d55813 100644 --- a/hubspot/crm/lists/models/public_communication_subscription_filter.py +++ b/hubspot/crm/lists/models/public_communication_subscription_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,66 +35,63 @@ class PublicCommunicationSubscriptionFilter(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"filter_type": "str", "subscription_ids": "list[int]", "channel": "str", "accepted_opt_states": "list[str]", "business_unit_id": "int", "subscription_type": "str"} + openapi_types = {"subscription_type": "str", "subscription_ids": "list[str]", "channel": "str", "accepted_opt_states": "list[str]", "filter_type": "str", "business_unit_id": "str"} attribute_map = { - "filter_type": "filterType", + "subscription_type": "subscriptionType", "subscription_ids": "subscriptionIds", "channel": "channel", "accepted_opt_states": "acceptedOptStates", + "filter_type": "filterType", "business_unit_id": "businessUnitId", - "subscription_type": "subscriptionType", } def __init__( - self, filter_type="COMMUNICATION_SUBSCRIPTION", subscription_ids=None, channel=None, accepted_opt_states=None, business_unit_id=None, subscription_type=None, local_vars_configuration=None + self, subscription_type=None, subscription_ids=None, channel=None, accepted_opt_states=None, filter_type="COMMUNICATION_SUBSCRIPTION", business_unit_id=None, local_vars_configuration=None ): # noqa: E501 """PublicCommunicationSubscriptionFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None + self._subscription_type = None self._subscription_ids = None self._channel = None self._accepted_opt_states = None + self._filter_type = None self._business_unit_id = None - self._subscription_type = None self.discriminator = None - self.filter_type = filter_type + self.subscription_type = subscription_type self.subscription_ids = subscription_ids self.channel = channel self.accepted_opt_states = accepted_opt_states + self.filter_type = filter_type if business_unit_id is not None: self.business_unit_id = business_unit_id - self.subscription_type = subscription_type @property - def filter_type(self): - """Gets the filter_type of this PublicCommunicationSubscriptionFilter. # noqa: E501 + def subscription_type(self): + """Gets the subscription_type of this PublicCommunicationSubscriptionFilter. # noqa: E501 - :return: The filter_type of this PublicCommunicationSubscriptionFilter. # noqa: E501 + :return: The subscription_type of this PublicCommunicationSubscriptionFilter. # noqa: E501 :rtype: str """ - return self._filter_type + return self._subscription_type - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicCommunicationSubscriptionFilter. + @subscription_type.setter + def subscription_type(self, subscription_type): + """Sets the subscription_type of this PublicCommunicationSubscriptionFilter. - :param filter_type: The filter_type of this PublicCommunicationSubscriptionFilter. # noqa: E501 - :type filter_type: str + :param subscription_type: The subscription_type of this PublicCommunicationSubscriptionFilter. # noqa: E501 + :type subscription_type: str """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["COMMUNICATION_SUBSCRIPTION"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + if self.local_vars_configuration.client_side_validation and subscription_type is None: # noqa: E501 + raise ValueError("Invalid value for `subscription_type`, must not be `None`") # noqa: E501 - self._filter_type = filter_type + self._subscription_type = subscription_type @property def subscription_ids(self): @@ -102,7 +99,7 @@ def subscription_ids(self): :return: The subscription_ids of this PublicCommunicationSubscriptionFilter. # noqa: E501 - :rtype: list[int] + :rtype: list[str] """ return self._subscription_ids @@ -112,7 +109,7 @@ def subscription_ids(self, subscription_ids): :param subscription_ids: The subscription_ids of this PublicCommunicationSubscriptionFilter. # noqa: E501 - :type subscription_ids: list[int] + :type subscription_ids: list[str] """ if self.local_vars_configuration.client_side_validation and subscription_ids is None: # noqa: E501 raise ValueError("Invalid value for `subscription_ids`, must not be `None`") # noqa: E501 @@ -166,48 +163,51 @@ def accepted_opt_states(self, accepted_opt_states): self._accepted_opt_states = accepted_opt_states @property - def business_unit_id(self): - """Gets the business_unit_id of this PublicCommunicationSubscriptionFilter. # noqa: E501 + def filter_type(self): + """Gets the filter_type of this PublicCommunicationSubscriptionFilter. # noqa: E501 - :return: The business_unit_id of this PublicCommunicationSubscriptionFilter. # noqa: E501 - :rtype: int + :return: The filter_type of this PublicCommunicationSubscriptionFilter. # noqa: E501 + :rtype: str """ - return self._business_unit_id + return self._filter_type - @business_unit_id.setter - def business_unit_id(self, business_unit_id): - """Sets the business_unit_id of this PublicCommunicationSubscriptionFilter. + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicCommunicationSubscriptionFilter. - :param business_unit_id: The business_unit_id of this PublicCommunicationSubscriptionFilter. # noqa: E501 - :type business_unit_id: int + :param filter_type: The filter_type of this PublicCommunicationSubscriptionFilter. # noqa: E501 + :type filter_type: str """ + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["COMMUNICATION_SUBSCRIPTION"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - self._business_unit_id = business_unit_id + self._filter_type = filter_type @property - def subscription_type(self): - """Gets the subscription_type of this PublicCommunicationSubscriptionFilter. # noqa: E501 + def business_unit_id(self): + """Gets the business_unit_id of this PublicCommunicationSubscriptionFilter. # noqa: E501 - :return: The subscription_type of this PublicCommunicationSubscriptionFilter. # noqa: E501 + :return: The business_unit_id of this PublicCommunicationSubscriptionFilter. # noqa: E501 :rtype: str """ - return self._subscription_type + return self._business_unit_id - @subscription_type.setter - def subscription_type(self, subscription_type): - """Sets the subscription_type of this PublicCommunicationSubscriptionFilter. + @business_unit_id.setter + def business_unit_id(self, business_unit_id): + """Sets the business_unit_id of this PublicCommunicationSubscriptionFilter. - :param subscription_type: The subscription_type of this PublicCommunicationSubscriptionFilter. # noqa: E501 - :type subscription_type: str + :param business_unit_id: The business_unit_id of this PublicCommunicationSubscriptionFilter. # noqa: E501 + :type business_unit_id: str """ - if self.local_vars_configuration.client_side_validation and subscription_type is None: # noqa: E501 - raise ValueError("Invalid value for `subscription_type`, must not be `None`") # noqa: E501 - self._subscription_type = subscription_type + self._business_unit_id = business_unit_id def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_comparative_date_property_operation.py b/hubspot/crm/lists/models/public_comparative_date_property_operation.py index 212f2405..b469e6e0 100644 --- a/hubspot/crm/lists/models/public_comparative_date_property_operation.py +++ b/hubspot/crm/lists/models/public_comparative_date_property_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,109 +35,107 @@ class PublicComparativeDatePropertyOperation(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"operation_type": "str", "operator": "str", "include_objects_with_no_value_set": "bool", "comparison_property_name": "str", "default_comparison_value": "str"} + openapi_types = {"include_objects_with_no_value_set": "bool", "default_comparison_value": "str", "operation_type": "str", "comparison_property_name": "str", "operator": "str"} attribute_map = { - "operation_type": "operationType", - "operator": "operator", "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", - "comparison_property_name": "comparisonPropertyName", "default_comparison_value": "defaultComparisonValue", + "operation_type": "operationType", + "comparison_property_name": "comparisonPropertyName", + "operator": "operator", } def __init__( - self, operation_type="COMPARATIVE_DATE", operator=None, include_objects_with_no_value_set=None, comparison_property_name=None, default_comparison_value=None, local_vars_configuration=None + self, include_objects_with_no_value_set=None, default_comparison_value=None, operation_type="COMPARATIVE_DATE", comparison_property_name=None, operator=None, local_vars_configuration=None ): # noqa: E501 """PublicComparativeDatePropertyOperation - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._operation_type = None - self._operator = None self._include_objects_with_no_value_set = None - self._comparison_property_name = None self._default_comparison_value = None + self._operation_type = None + self._comparison_property_name = None + self._operator = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator self.include_objects_with_no_value_set = include_objects_with_no_value_set - self.comparison_property_name = comparison_property_name if default_comparison_value is not None: self.default_comparison_value = default_comparison_value + self.operation_type = operation_type + self.comparison_property_name = comparison_property_name + self.operator = operator @property - def operation_type(self): - """Gets the operation_type of this PublicComparativeDatePropertyOperation. # noqa: E501 + def include_objects_with_no_value_set(self): + """Gets the include_objects_with_no_value_set of this PublicComparativeDatePropertyOperation. # noqa: E501 - :return: The operation_type of this PublicComparativeDatePropertyOperation. # noqa: E501 - :rtype: str + :return: The include_objects_with_no_value_set of this PublicComparativeDatePropertyOperation. # noqa: E501 + :rtype: bool """ - return self._operation_type + return self._include_objects_with_no_value_set - @operation_type.setter - def operation_type(self, operation_type): - """Sets the operation_type of this PublicComparativeDatePropertyOperation. + @include_objects_with_no_value_set.setter + def include_objects_with_no_value_set(self, include_objects_with_no_value_set): + """Sets the include_objects_with_no_value_set of this PublicComparativeDatePropertyOperation. - :param operation_type: The operation_type of this PublicComparativeDatePropertyOperation. # noqa: E501 - :type operation_type: str + :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicComparativeDatePropertyOperation. # noqa: E501 + :type include_objects_with_no_value_set: bool """ - if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 - raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 - allowed_values = ["COMPARATIVE_DATE"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 + if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 + raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 - self._operation_type = operation_type + self._include_objects_with_no_value_set = include_objects_with_no_value_set @property - def operator(self): - """Gets the operator of this PublicComparativeDatePropertyOperation. # noqa: E501 + def default_comparison_value(self): + """Gets the default_comparison_value of this PublicComparativeDatePropertyOperation. # noqa: E501 - :return: The operator of this PublicComparativeDatePropertyOperation. # noqa: E501 + :return: The default_comparison_value of this PublicComparativeDatePropertyOperation. # noqa: E501 :rtype: str """ - return self._operator + return self._default_comparison_value - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicComparativeDatePropertyOperation. + @default_comparison_value.setter + def default_comparison_value(self, default_comparison_value): + """Sets the default_comparison_value of this PublicComparativeDatePropertyOperation. - :param operator: The operator of this PublicComparativeDatePropertyOperation. # noqa: E501 - :type operator: str + :param default_comparison_value: The default_comparison_value of this PublicComparativeDatePropertyOperation. # noqa: E501 + :type default_comparison_value: str """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._operator = operator + self._default_comparison_value = default_comparison_value @property - def include_objects_with_no_value_set(self): - """Gets the include_objects_with_no_value_set of this PublicComparativeDatePropertyOperation. # noqa: E501 + def operation_type(self): + """Gets the operation_type of this PublicComparativeDatePropertyOperation. # noqa: E501 - :return: The include_objects_with_no_value_set of this PublicComparativeDatePropertyOperation. # noqa: E501 - :rtype: bool + :return: The operation_type of this PublicComparativeDatePropertyOperation. # noqa: E501 + :rtype: str """ - return self._include_objects_with_no_value_set + return self._operation_type - @include_objects_with_no_value_set.setter - def include_objects_with_no_value_set(self, include_objects_with_no_value_set): - """Sets the include_objects_with_no_value_set of this PublicComparativeDatePropertyOperation. + @operation_type.setter + def operation_type(self, operation_type): + """Sets the operation_type of this PublicComparativeDatePropertyOperation. - :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicComparativeDatePropertyOperation. # noqa: E501 - :type include_objects_with_no_value_set: bool + :param operation_type: The operation_type of this PublicComparativeDatePropertyOperation. # noqa: E501 + :type operation_type: str """ - if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 - raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 + raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 + allowed_values = ["COMPARATIVE_DATE"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 - self._include_objects_with_no_value_set = include_objects_with_no_value_set + self._operation_type = operation_type @property def comparison_property_name(self): @@ -163,25 +161,27 @@ def comparison_property_name(self, comparison_property_name): self._comparison_property_name = comparison_property_name @property - def default_comparison_value(self): - """Gets the default_comparison_value of this PublicComparativeDatePropertyOperation. # noqa: E501 + def operator(self): + """Gets the operator of this PublicComparativeDatePropertyOperation. # noqa: E501 - :return: The default_comparison_value of this PublicComparativeDatePropertyOperation. # noqa: E501 + :return: The operator of this PublicComparativeDatePropertyOperation. # noqa: E501 :rtype: str """ - return self._default_comparison_value + return self._operator - @default_comparison_value.setter - def default_comparison_value(self, default_comparison_value): - """Sets the default_comparison_value of this PublicComparativeDatePropertyOperation. + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicComparativeDatePropertyOperation. - :param default_comparison_value: The default_comparison_value of this PublicComparativeDatePropertyOperation. # noqa: E501 - :type default_comparison_value: str + :param operator: The operator of this PublicComparativeDatePropertyOperation. # noqa: E501 + :type operator: str """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._default_comparison_value = default_comparison_value + self._operator = operator def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_comparative_property_updated_operation.py b/hubspot/crm/lists/models/public_comparative_property_updated_operation.py index ef899793..7e9a6bfd 100644 --- a/hubspot/crm/lists/models/public_comparative_property_updated_operation.py +++ b/hubspot/crm/lists/models/public_comparative_property_updated_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,23 +35,23 @@ class PublicComparativePropertyUpdatedOperation(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"operation_type": "str", "operator": "str", "include_objects_with_no_value_set": "bool", "comparison_property_name": "str", "default_comparison_value": "str"} + openapi_types = {"include_objects_with_no_value_set": "bool", "default_comparison_value": "str", "operation_type": "str", "comparison_property_name": "str", "operator": "str"} attribute_map = { - "operation_type": "operationType", - "operator": "operator", "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", - "comparison_property_name": "comparisonPropertyName", "default_comparison_value": "defaultComparisonValue", + "operation_type": "operationType", + "comparison_property_name": "comparisonPropertyName", + "operator": "operator", } def __init__( self, - operation_type="COMPARATIVE_PROPERTY_UPDATED", - operator=None, include_objects_with_no_value_set=None, - comparison_property_name=None, default_comparison_value=None, + operation_type="COMPARATIVE_PROPERTY_UPDATED", + comparison_property_name=None, + operator=None, local_vars_configuration=None, ): # noqa: E501 """PublicComparativePropertyUpdatedOperation - a model defined in OpenAPI""" # noqa: E501 @@ -59,91 +59,89 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._operation_type = None - self._operator = None self._include_objects_with_no_value_set = None - self._comparison_property_name = None self._default_comparison_value = None + self._operation_type = None + self._comparison_property_name = None + self._operator = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator self.include_objects_with_no_value_set = include_objects_with_no_value_set - self.comparison_property_name = comparison_property_name if default_comparison_value is not None: self.default_comparison_value = default_comparison_value + self.operation_type = operation_type + self.comparison_property_name = comparison_property_name + self.operator = operator @property - def operation_type(self): - """Gets the operation_type of this PublicComparativePropertyUpdatedOperation. # noqa: E501 + def include_objects_with_no_value_set(self): + """Gets the include_objects_with_no_value_set of this PublicComparativePropertyUpdatedOperation. # noqa: E501 - :return: The operation_type of this PublicComparativePropertyUpdatedOperation. # noqa: E501 - :rtype: str + :return: The include_objects_with_no_value_set of this PublicComparativePropertyUpdatedOperation. # noqa: E501 + :rtype: bool """ - return self._operation_type + return self._include_objects_with_no_value_set - @operation_type.setter - def operation_type(self, operation_type): - """Sets the operation_type of this PublicComparativePropertyUpdatedOperation. + @include_objects_with_no_value_set.setter + def include_objects_with_no_value_set(self, include_objects_with_no_value_set): + """Sets the include_objects_with_no_value_set of this PublicComparativePropertyUpdatedOperation. - :param operation_type: The operation_type of this PublicComparativePropertyUpdatedOperation. # noqa: E501 - :type operation_type: str + :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicComparativePropertyUpdatedOperation. # noqa: E501 + :type include_objects_with_no_value_set: bool """ - if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 - raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 - allowed_values = ["COMPARATIVE_PROPERTY_UPDATED"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 + if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 + raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 - self._operation_type = operation_type + self._include_objects_with_no_value_set = include_objects_with_no_value_set @property - def operator(self): - """Gets the operator of this PublicComparativePropertyUpdatedOperation. # noqa: E501 + def default_comparison_value(self): + """Gets the default_comparison_value of this PublicComparativePropertyUpdatedOperation. # noqa: E501 - :return: The operator of this PublicComparativePropertyUpdatedOperation. # noqa: E501 + :return: The default_comparison_value of this PublicComparativePropertyUpdatedOperation. # noqa: E501 :rtype: str """ - return self._operator + return self._default_comparison_value - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicComparativePropertyUpdatedOperation. + @default_comparison_value.setter + def default_comparison_value(self, default_comparison_value): + """Sets the default_comparison_value of this PublicComparativePropertyUpdatedOperation. - :param operator: The operator of this PublicComparativePropertyUpdatedOperation. # noqa: E501 - :type operator: str + :param default_comparison_value: The default_comparison_value of this PublicComparativePropertyUpdatedOperation. # noqa: E501 + :type default_comparison_value: str """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._operator = operator + self._default_comparison_value = default_comparison_value @property - def include_objects_with_no_value_set(self): - """Gets the include_objects_with_no_value_set of this PublicComparativePropertyUpdatedOperation. # noqa: E501 + def operation_type(self): + """Gets the operation_type of this PublicComparativePropertyUpdatedOperation. # noqa: E501 - :return: The include_objects_with_no_value_set of this PublicComparativePropertyUpdatedOperation. # noqa: E501 - :rtype: bool + :return: The operation_type of this PublicComparativePropertyUpdatedOperation. # noqa: E501 + :rtype: str """ - return self._include_objects_with_no_value_set + return self._operation_type - @include_objects_with_no_value_set.setter - def include_objects_with_no_value_set(self, include_objects_with_no_value_set): - """Sets the include_objects_with_no_value_set of this PublicComparativePropertyUpdatedOperation. + @operation_type.setter + def operation_type(self, operation_type): + """Sets the operation_type of this PublicComparativePropertyUpdatedOperation. - :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicComparativePropertyUpdatedOperation. # noqa: E501 - :type include_objects_with_no_value_set: bool + :param operation_type: The operation_type of this PublicComparativePropertyUpdatedOperation. # noqa: E501 + :type operation_type: str """ - if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 - raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 + raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 + allowed_values = ["COMPARATIVE_PROPERTY_UPDATED"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 - self._include_objects_with_no_value_set = include_objects_with_no_value_set + self._operation_type = operation_type @property def comparison_property_name(self): @@ -169,25 +167,27 @@ def comparison_property_name(self, comparison_property_name): self._comparison_property_name = comparison_property_name @property - def default_comparison_value(self): - """Gets the default_comparison_value of this PublicComparativePropertyUpdatedOperation. # noqa: E501 + def operator(self): + """Gets the operator of this PublicComparativePropertyUpdatedOperation. # noqa: E501 - :return: The default_comparison_value of this PublicComparativePropertyUpdatedOperation. # noqa: E501 + :return: The operator of this PublicComparativePropertyUpdatedOperation. # noqa: E501 :rtype: str """ - return self._default_comparison_value + return self._operator - @default_comparison_value.setter - def default_comparison_value(self, default_comparison_value): - """Sets the default_comparison_value of this PublicComparativePropertyUpdatedOperation. + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicComparativePropertyUpdatedOperation. - :param default_comparison_value: The default_comparison_value of this PublicComparativePropertyUpdatedOperation. # noqa: E501 - :type default_comparison_value: str + :param operator: The operator of this PublicComparativePropertyUpdatedOperation. # noqa: E501 + :type operator: str """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._default_comparison_value = default_comparison_value + self._operator = operator def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_constant_filter.py b/hubspot/crm/lists/models/public_constant_filter.py index bb81d1c4..ea46212a 100644 --- a/hubspot/crm/lists/models/public_constant_filter.py +++ b/hubspot/crm/lists/models/public_constant_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,51 +35,25 @@ class PublicConstantFilter(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"filter_type": "str", "should_accept": "bool", "source": "str"} + openapi_types = {"should_accept": "bool", "source": "str", "filter_type": "str"} - attribute_map = {"filter_type": "filterType", "should_accept": "shouldAccept", "source": "source"} + attribute_map = {"should_accept": "shouldAccept", "source": "source", "filter_type": "filterType"} - def __init__(self, filter_type="CONSTANT", should_accept=None, source=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, should_accept=None, source=None, filter_type="CONSTANT", local_vars_configuration=None): # noqa: E501 """PublicConstantFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None self._should_accept = None self._source = None + self._filter_type = None self.discriminator = None - self.filter_type = filter_type self.should_accept = should_accept if source is not None: self.source = source - - @property - def filter_type(self): - """Gets the filter_type of this PublicConstantFilter. # noqa: E501 - - - :return: The filter_type of this PublicConstantFilter. # noqa: E501 - :rtype: str - """ - return self._filter_type - - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicConstantFilter. - - - :param filter_type: The filter_type of this PublicConstantFilter. # noqa: E501 - :type filter_type: str - """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["CONSTANT"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - - self._filter_type = filter_type + self.filter_type = filter_type @property def should_accept(self): @@ -125,6 +99,32 @@ def source(self, source): self._source = source + @property + def filter_type(self): + """Gets the filter_type of this PublicConstantFilter. # noqa: E501 + + + :return: The filter_type of this PublicConstantFilter. # noqa: E501 + :rtype: str + """ + return self._filter_type + + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicConstantFilter. + + + :param filter_type: The filter_type of this PublicConstantFilter. # noqa: E501 + :type filter_type: str + """ + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["CONSTANT"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + + self._filter_type = filter_type + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_cta_analytics_filter.py b/hubspot/crm/lists/models/public_cta_analytics_filter.py index 58be36f1..d48d7aa5 100644 --- a/hubspot/crm/lists/models/public_cta_analytics_filter.py +++ b/hubspot/crm/lists/models/public_cta_analytics_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,61 +36,35 @@ class PublicCtaAnalyticsFilter(object): and the value is json key in definition. """ openapi_types = { - "filter_type": "str", "coalescing_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", - "operator": "str", + "filter_type": "str", "cta_name": "str", + "operator": "str", } - attribute_map = {"filter_type": "filterType", "coalescing_refine_by": "coalescingRefineBy", "pruning_refine_by": "pruningRefineBy", "operator": "operator", "cta_name": "ctaName"} + attribute_map = {"coalescing_refine_by": "coalescingRefineBy", "pruning_refine_by": "pruningRefineBy", "filter_type": "filterType", "cta_name": "ctaName", "operator": "operator"} - def __init__(self, filter_type="CTA", coalescing_refine_by=None, pruning_refine_by=None, operator=None, cta_name=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, coalescing_refine_by=None, pruning_refine_by=None, filter_type="CTA", cta_name=None, operator=None, local_vars_configuration=None): # noqa: E501 """PublicCtaAnalyticsFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None self._coalescing_refine_by = None self._pruning_refine_by = None - self._operator = None + self._filter_type = None self._cta_name = None + self._operator = None self.discriminator = None - self.filter_type = filter_type if coalescing_refine_by is not None: self.coalescing_refine_by = coalescing_refine_by if pruning_refine_by is not None: self.pruning_refine_by = pruning_refine_by - self.operator = operator + self.filter_type = filter_type self.cta_name = cta_name - - @property - def filter_type(self): - """Gets the filter_type of this PublicCtaAnalyticsFilter. # noqa: E501 - - - :return: The filter_type of this PublicCtaAnalyticsFilter. # noqa: E501 - :rtype: str - """ - return self._filter_type - - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicCtaAnalyticsFilter. - - - :param filter_type: The filter_type of this PublicCtaAnalyticsFilter. # noqa: E501 - :type filter_type: str - """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["CTA"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - - self._filter_type = filter_type + self.operator = operator @property def coalescing_refine_by(self): @@ -135,27 +109,30 @@ def pruning_refine_by(self, pruning_refine_by): self._pruning_refine_by = pruning_refine_by @property - def operator(self): - """Gets the operator of this PublicCtaAnalyticsFilter. # noqa: E501 + def filter_type(self): + """Gets the filter_type of this PublicCtaAnalyticsFilter. # noqa: E501 - :return: The operator of this PublicCtaAnalyticsFilter. # noqa: E501 + :return: The filter_type of this PublicCtaAnalyticsFilter. # noqa: E501 :rtype: str """ - return self._operator + return self._filter_type - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicCtaAnalyticsFilter. + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicCtaAnalyticsFilter. - :param operator: The operator of this PublicCtaAnalyticsFilter. # noqa: E501 - :type operator: str + :param filter_type: The filter_type of this PublicCtaAnalyticsFilter. # noqa: E501 + :type filter_type: str """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["CTA"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - self._operator = operator + self._filter_type = filter_type @property def cta_name(self): @@ -180,6 +157,29 @@ def cta_name(self, cta_name): self._cta_name = cta_name + @property + def operator(self): + """Gets the operator of this PublicCtaAnalyticsFilter. # noqa: E501 + + + :return: The operator of this PublicCtaAnalyticsFilter. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicCtaAnalyticsFilter. + + + :param operator: The operator of this PublicCtaAnalyticsFilter. # noqa: E501 + :type operator: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + + self._operator = operator + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_date_point.py b/hubspot/crm/lists/models/public_date_point.py index 2774c45b..e4a74f19 100644 --- a/hubspot/crm/lists/models/public_date_point.py +++ b/hubspot/crm/lists/models/public_date_point.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,82 +35,123 @@ class PublicDatePoint(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"time_type": "str", "timezone_source": "str", "zone_id": "str", "year": "int", "month": "int", "day": "int", "hour": "int", "minute": "int", "second": "int", "millisecond": "int"} + openapi_types = {"month": "int", "hour": "int", "year": "int", "timezone_source": "str", "millisecond": "int", "time_type": "str", "zone_id": "str", "day": "int", "minute": "int", "second": "int"} attribute_map = { - "time_type": "timeType", + "month": "month", + "hour": "hour", + "year": "year", "timezone_source": "timezoneSource", + "millisecond": "millisecond", + "time_type": "timeType", "zone_id": "zoneId", - "year": "year", - "month": "month", "day": "day", - "hour": "hour", "minute": "minute", "second": "second", - "millisecond": "millisecond", } def __init__( - self, time_type="DATE", timezone_source=None, zone_id=None, year=None, month=None, day=None, hour=None, minute=None, second=None, millisecond=None, local_vars_configuration=None + self, month=None, hour=None, year=None, timezone_source=None, millisecond=None, time_type="DATE", zone_id=None, day=None, minute=None, second=None, local_vars_configuration=None ): # noqa: E501 """PublicDatePoint - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._time_type = None + self._month = None + self._hour = None + self._year = None self._timezone_source = None + self._millisecond = None + self._time_type = None self._zone_id = None - self._year = None - self._month = None self._day = None - self._hour = None self._minute = None self._second = None - self._millisecond = None self.discriminator = None - self.time_type = time_type + self.month = month + if hour is not None: + self.hour = hour + self.year = year if timezone_source is not None: self.timezone_source = timezone_source + if millisecond is not None: + self.millisecond = millisecond + self.time_type = time_type self.zone_id = zone_id - self.year = year - self.month = month self.day = day - if hour is not None: - self.hour = hour if minute is not None: self.minute = minute if second is not None: self.second = second - if millisecond is not None: - self.millisecond = millisecond @property - def time_type(self): - """Gets the time_type of this PublicDatePoint. # noqa: E501 + def month(self): + """Gets the month of this PublicDatePoint. # noqa: E501 - :return: The time_type of this PublicDatePoint. # noqa: E501 - :rtype: str + :return: The month of this PublicDatePoint. # noqa: E501 + :rtype: int """ - return self._time_type + return self._month - @time_type.setter - def time_type(self, time_type): - """Sets the time_type of this PublicDatePoint. + @month.setter + def month(self, month): + """Sets the month of this PublicDatePoint. - :param time_type: The time_type of this PublicDatePoint. # noqa: E501 - :type time_type: str + :param month: The month of this PublicDatePoint. # noqa: E501 + :type month: int """ - if self.local_vars_configuration.client_side_validation and time_type is None: # noqa: E501 - raise ValueError("Invalid value for `time_type`, must not be `None`") # noqa: E501 - allowed_values = ["DATE"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and time_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `time_type` ({0}), must be one of {1}".format(time_type, allowed_values)) # noqa: E501 + if self.local_vars_configuration.client_side_validation and month is None: # noqa: E501 + raise ValueError("Invalid value for `month`, must not be `None`") # noqa: E501 - self._time_type = time_type + self._month = month + + @property + def hour(self): + """Gets the hour of this PublicDatePoint. # noqa: E501 + + + :return: The hour of this PublicDatePoint. # noqa: E501 + :rtype: int + """ + return self._hour + + @hour.setter + def hour(self, hour): + """Sets the hour of this PublicDatePoint. + + + :param hour: The hour of this PublicDatePoint. # noqa: E501 + :type hour: int + """ + + self._hour = hour + + @property + def year(self): + """Gets the year of this PublicDatePoint. # noqa: E501 + + + :return: The year of this PublicDatePoint. # noqa: E501 + :rtype: int + """ + return self._year + + @year.setter + def year(self, year): + """Sets the year of this PublicDatePoint. + + + :param year: The year of this PublicDatePoint. # noqa: E501 + :type year: int + """ + if self.local_vars_configuration.client_side_validation and year is None: # noqa: E501 + raise ValueError("Invalid value for `year`, must not be `None`") # noqa: E501 + + self._year = year @property def timezone_source(self): @@ -134,73 +175,74 @@ def timezone_source(self, timezone_source): self._timezone_source = timezone_source @property - def zone_id(self): - """Gets the zone_id of this PublicDatePoint. # noqa: E501 + def millisecond(self): + """Gets the millisecond of this PublicDatePoint. # noqa: E501 - :return: The zone_id of this PublicDatePoint. # noqa: E501 - :rtype: str + :return: The millisecond of this PublicDatePoint. # noqa: E501 + :rtype: int """ - return self._zone_id + return self._millisecond - @zone_id.setter - def zone_id(self, zone_id): - """Sets the zone_id of this PublicDatePoint. + @millisecond.setter + def millisecond(self, millisecond): + """Sets the millisecond of this PublicDatePoint. - :param zone_id: The zone_id of this PublicDatePoint. # noqa: E501 - :type zone_id: str + :param millisecond: The millisecond of this PublicDatePoint. # noqa: E501 + :type millisecond: int """ - if self.local_vars_configuration.client_side_validation and zone_id is None: # noqa: E501 - raise ValueError("Invalid value for `zone_id`, must not be `None`") # noqa: E501 - self._zone_id = zone_id + self._millisecond = millisecond @property - def year(self): - """Gets the year of this PublicDatePoint. # noqa: E501 + def time_type(self): + """Gets the time_type of this PublicDatePoint. # noqa: E501 - :return: The year of this PublicDatePoint. # noqa: E501 - :rtype: int + :return: The time_type of this PublicDatePoint. # noqa: E501 + :rtype: str """ - return self._year + return self._time_type - @year.setter - def year(self, year): - """Sets the year of this PublicDatePoint. + @time_type.setter + def time_type(self, time_type): + """Sets the time_type of this PublicDatePoint. - :param year: The year of this PublicDatePoint. # noqa: E501 - :type year: int + :param time_type: The time_type of this PublicDatePoint. # noqa: E501 + :type time_type: str """ - if self.local_vars_configuration.client_side_validation and year is None: # noqa: E501 - raise ValueError("Invalid value for `year`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and time_type is None: # noqa: E501 + raise ValueError("Invalid value for `time_type`, must not be `None`") # noqa: E501 + allowed_values = ["DATE"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and time_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `time_type` ({0}), must be one of {1}".format(time_type, allowed_values)) # noqa: E501 - self._year = year + self._time_type = time_type @property - def month(self): - """Gets the month of this PublicDatePoint. # noqa: E501 + def zone_id(self): + """Gets the zone_id of this PublicDatePoint. # noqa: E501 - :return: The month of this PublicDatePoint. # noqa: E501 - :rtype: int + :return: The zone_id of this PublicDatePoint. # noqa: E501 + :rtype: str """ - return self._month + return self._zone_id - @month.setter - def month(self, month): - """Sets the month of this PublicDatePoint. + @zone_id.setter + def zone_id(self, zone_id): + """Sets the zone_id of this PublicDatePoint. - :param month: The month of this PublicDatePoint. # noqa: E501 - :type month: int + :param zone_id: The zone_id of this PublicDatePoint. # noqa: E501 + :type zone_id: str """ - if self.local_vars_configuration.client_side_validation and month is None: # noqa: E501 - raise ValueError("Invalid value for `month`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and zone_id is None: # noqa: E501 + raise ValueError("Invalid value for `zone_id`, must not be `None`") # noqa: E501 - self._month = month + self._zone_id = zone_id @property def day(self): @@ -225,27 +267,6 @@ def day(self, day): self._day = day - @property - def hour(self): - """Gets the hour of this PublicDatePoint. # noqa: E501 - - - :return: The hour of this PublicDatePoint. # noqa: E501 - :rtype: int - """ - return self._hour - - @hour.setter - def hour(self, hour): - """Sets the hour of this PublicDatePoint. - - - :param hour: The hour of this PublicDatePoint. # noqa: E501 - :type hour: int - """ - - self._hour = hour - @property def minute(self): """Gets the minute of this PublicDatePoint. # noqa: E501 @@ -288,27 +309,6 @@ def second(self, second): self._second = second - @property - def millisecond(self): - """Gets the millisecond of this PublicDatePoint. # noqa: E501 - - - :return: The millisecond of this PublicDatePoint. # noqa: E501 - :rtype: int - """ - return self._millisecond - - @millisecond.setter - def millisecond(self, millisecond): - """Sets the millisecond of this PublicDatePoint. - - - :param millisecond: The millisecond of this PublicDatePoint. # noqa: E501 - :type millisecond: int - """ - - self._millisecond = millisecond - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_date_property_operation.py b/hubspot/crm/lists/models/public_date_property_operation.py index 2223fc72..463a05c1 100644 --- a/hubspot/crm/lists/models/public_date_property_operation.py +++ b/hubspot/crm/lists/models/public_date_property_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,79 +35,30 @@ class PublicDatePropertyOperation(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"operation_type": "str", "operator": "str", "include_objects_with_no_value_set": "bool", "year": "int", "month": "str", "day": "int"} + openapi_types = {"include_objects_with_no_value_set": "bool", "month": "str", "year": "int", "operation_type": "str", "day": "int", "operator": "str"} - attribute_map = {"operation_type": "operationType", "operator": "operator", "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "year": "year", "month": "month", "day": "day"} + attribute_map = {"include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "month": "month", "year": "year", "operation_type": "operationType", "day": "day", "operator": "operator"} - def __init__(self, operation_type="DATE", operator=None, include_objects_with_no_value_set=None, year=None, month=None, day=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, include_objects_with_no_value_set=None, month=None, year=None, operation_type="DATE", day=None, operator=None, local_vars_configuration=None): # noqa: E501 """PublicDatePropertyOperation - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._operation_type = None - self._operator = None self._include_objects_with_no_value_set = None - self._year = None self._month = None + self._year = None + self._operation_type = None self._day = None + self._operator = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator self.include_objects_with_no_value_set = include_objects_with_no_value_set - self.year = year self.month = month + self.year = year + self.operation_type = operation_type self.day = day - - @property - def operation_type(self): - """Gets the operation_type of this PublicDatePropertyOperation. # noqa: E501 - - - :return: The operation_type of this PublicDatePropertyOperation. # noqa: E501 - :rtype: str - """ - return self._operation_type - - @operation_type.setter - def operation_type(self, operation_type): - """Sets the operation_type of this PublicDatePropertyOperation. - - - :param operation_type: The operation_type of this PublicDatePropertyOperation. # noqa: E501 - :type operation_type: str - """ - if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 - raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 - allowed_values = ["DATE"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 - - self._operation_type = operation_type - - @property - def operator(self): - """Gets the operator of this PublicDatePropertyOperation. # noqa: E501 - - - :return: The operator of this PublicDatePropertyOperation. # noqa: E501 - :rtype: str - """ - return self._operator - - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicDatePropertyOperation. - - - :param operator: The operator of this PublicDatePropertyOperation. # noqa: E501 - :type operator: str - """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - - self._operator = operator + self.operator = operator @property def include_objects_with_no_value_set(self): @@ -132,6 +83,29 @@ def include_objects_with_no_value_set(self, include_objects_with_no_value_set): self._include_objects_with_no_value_set = include_objects_with_no_value_set + @property + def month(self): + """Gets the month of this PublicDatePropertyOperation. # noqa: E501 + + + :return: The month of this PublicDatePropertyOperation. # noqa: E501 + :rtype: str + """ + return self._month + + @month.setter + def month(self, month): + """Sets the month of this PublicDatePropertyOperation. + + + :param month: The month of this PublicDatePropertyOperation. # noqa: E501 + :type month: str + """ + if self.local_vars_configuration.client_side_validation and month is None: # noqa: E501 + raise ValueError("Invalid value for `month`, must not be `None`") # noqa: E501 + + self._month = month + @property def year(self): """Gets the year of this PublicDatePropertyOperation. # noqa: E501 @@ -156,27 +130,30 @@ def year(self, year): self._year = year @property - def month(self): - """Gets the month of this PublicDatePropertyOperation. # noqa: E501 + def operation_type(self): + """Gets the operation_type of this PublicDatePropertyOperation. # noqa: E501 - :return: The month of this PublicDatePropertyOperation. # noqa: E501 + :return: The operation_type of this PublicDatePropertyOperation. # noqa: E501 :rtype: str """ - return self._month + return self._operation_type - @month.setter - def month(self, month): - """Sets the month of this PublicDatePropertyOperation. + @operation_type.setter + def operation_type(self, operation_type): + """Sets the operation_type of this PublicDatePropertyOperation. - :param month: The month of this PublicDatePropertyOperation. # noqa: E501 - :type month: str + :param operation_type: The operation_type of this PublicDatePropertyOperation. # noqa: E501 + :type operation_type: str """ - if self.local_vars_configuration.client_side_validation and month is None: # noqa: E501 - raise ValueError("Invalid value for `month`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 + raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 + allowed_values = ["DATE"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 - self._month = month + self._operation_type = operation_type @property def day(self): @@ -201,6 +178,29 @@ def day(self, day): self._day = day + @property + def operator(self): + """Gets the operator of this PublicDatePropertyOperation. # noqa: E501 + + + :return: The operator of this PublicDatePropertyOperation. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicDatePropertyOperation. + + + :param operator: The operator of this PublicDatePropertyOperation. # noqa: E501 + :type operator: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + + self._operator = operator + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_date_time_property_operation.py b/hubspot/crm/lists/models/public_date_time_property_operation.py index e9b59c07..86babcc9 100644 --- a/hubspot/crm/lists/models/public_date_time_property_operation.py +++ b/hubspot/crm/lists/models/public_date_time_property_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,37 +35,83 @@ class PublicDateTimePropertyOperation(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"operation_type": "str", "operator": "str", "include_objects_with_no_value_set": "bool", "requires_time_zone_conversion": "bool", "timestamp": "int"} + openapi_types = {"include_objects_with_no_value_set": "bool", "requires_time_zone_conversion": "bool", "operation_type": "str", "operator": "str", "timestamp": "int"} attribute_map = { - "operation_type": "operationType", - "operator": "operator", "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "requires_time_zone_conversion": "requiresTimeZoneConversion", + "operation_type": "operationType", + "operator": "operator", "timestamp": "timestamp", } def __init__( - self, operation_type="DATETIME", operator=None, include_objects_with_no_value_set=None, requires_time_zone_conversion=None, timestamp=None, local_vars_configuration=None + self, include_objects_with_no_value_set=None, requires_time_zone_conversion=None, operation_type="DATETIME", operator=None, timestamp=None, local_vars_configuration=None ): # noqa: E501 """PublicDateTimePropertyOperation - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._operation_type = None - self._operator = None self._include_objects_with_no_value_set = None self._requires_time_zone_conversion = None + self._operation_type = None + self._operator = None self._timestamp = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator self.include_objects_with_no_value_set = include_objects_with_no_value_set self.requires_time_zone_conversion = requires_time_zone_conversion + self.operation_type = operation_type + self.operator = operator self.timestamp = timestamp + @property + def include_objects_with_no_value_set(self): + """Gets the include_objects_with_no_value_set of this PublicDateTimePropertyOperation. # noqa: E501 + + + :return: The include_objects_with_no_value_set of this PublicDateTimePropertyOperation. # noqa: E501 + :rtype: bool + """ + return self._include_objects_with_no_value_set + + @include_objects_with_no_value_set.setter + def include_objects_with_no_value_set(self, include_objects_with_no_value_set): + """Sets the include_objects_with_no_value_set of this PublicDateTimePropertyOperation. + + + :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicDateTimePropertyOperation. # noqa: E501 + :type include_objects_with_no_value_set: bool + """ + if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 + raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 + + self._include_objects_with_no_value_set = include_objects_with_no_value_set + + @property + def requires_time_zone_conversion(self): + """Gets the requires_time_zone_conversion of this PublicDateTimePropertyOperation. # noqa: E501 + + + :return: The requires_time_zone_conversion of this PublicDateTimePropertyOperation. # noqa: E501 + :rtype: bool + """ + return self._requires_time_zone_conversion + + @requires_time_zone_conversion.setter + def requires_time_zone_conversion(self, requires_time_zone_conversion): + """Sets the requires_time_zone_conversion of this PublicDateTimePropertyOperation. + + + :param requires_time_zone_conversion: The requires_time_zone_conversion of this PublicDateTimePropertyOperation. # noqa: E501 + :type requires_time_zone_conversion: bool + """ + if self.local_vars_configuration.client_side_validation and requires_time_zone_conversion is None: # noqa: E501 + raise ValueError("Invalid value for `requires_time_zone_conversion`, must not be `None`") # noqa: E501 + + self._requires_time_zone_conversion = requires_time_zone_conversion + @property def operation_type(self): """Gets the operation_type of this PublicDateTimePropertyOperation. # noqa: E501 @@ -115,52 +161,6 @@ def operator(self, operator): self._operator = operator - @property - def include_objects_with_no_value_set(self): - """Gets the include_objects_with_no_value_set of this PublicDateTimePropertyOperation. # noqa: E501 - - - :return: The include_objects_with_no_value_set of this PublicDateTimePropertyOperation. # noqa: E501 - :rtype: bool - """ - return self._include_objects_with_no_value_set - - @include_objects_with_no_value_set.setter - def include_objects_with_no_value_set(self, include_objects_with_no_value_set): - """Sets the include_objects_with_no_value_set of this PublicDateTimePropertyOperation. - - - :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicDateTimePropertyOperation. # noqa: E501 - :type include_objects_with_no_value_set: bool - """ - if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 - raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 - - self._include_objects_with_no_value_set = include_objects_with_no_value_set - - @property - def requires_time_zone_conversion(self): - """Gets the requires_time_zone_conversion of this PublicDateTimePropertyOperation. # noqa: E501 - - - :return: The requires_time_zone_conversion of this PublicDateTimePropertyOperation. # noqa: E501 - :rtype: bool - """ - return self._requires_time_zone_conversion - - @requires_time_zone_conversion.setter - def requires_time_zone_conversion(self, requires_time_zone_conversion): - """Sets the requires_time_zone_conversion of this PublicDateTimePropertyOperation. - - - :param requires_time_zone_conversion: The requires_time_zone_conversion of this PublicDateTimePropertyOperation. # noqa: E501 - :type requires_time_zone_conversion: bool - """ - if self.local_vars_configuration.client_side_validation and requires_time_zone_conversion is None: # noqa: E501 - raise ValueError("Invalid value for `requires_time_zone_conversion`, must not be `None`") # noqa: E501 - - self._requires_time_zone_conversion = requires_time_zone_conversion - @property def timestamp(self): """Gets the timestamp of this PublicDateTimePropertyOperation. # noqa: E501 diff --git a/hubspot/crm/lists/models/public_email_event_filter.py b/hubspot/crm/lists/models/public_email_event_filter.py index 88e2f0d5..1375ce18 100644 --- a/hubspot/crm/lists/models/public_email_event_filter.py +++ b/hubspot/crm/lists/models/public_email_event_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,67 +36,62 @@ class PublicEmailEventFilter(object): and the value is json key in definition. """ openapi_types = { - "filter_type": "str", - "level": "str", - "email_id": "int", - "app_id": "int", - "operator": "str", "click_url": "str", + "level": "str", "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", + "app_id": "str", + "email_id": "str", + "filter_type": "str", + "operator": "str", } - attribute_map = {"filter_type": "filterType", "level": "level", "email_id": "emailId", "app_id": "appId", "operator": "operator", "click_url": "clickUrl", "pruning_refine_by": "pruningRefineBy"} + attribute_map = {"click_url": "clickUrl", "level": "level", "pruning_refine_by": "pruningRefineBy", "app_id": "appId", "email_id": "emailId", "filter_type": "filterType", "operator": "operator"} - def __init__(self, filter_type="EMAIL_EVENT", level=None, email_id=None, app_id=None, operator=None, click_url=None, pruning_refine_by=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, click_url=None, level=None, pruning_refine_by=None, app_id=None, email_id=None, filter_type="EMAIL_EVENT", operator=None, local_vars_configuration=None): # noqa: E501 """PublicEmailEventFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None + self._click_url = None self._level = None - self._email_id = None + self._pruning_refine_by = None self._app_id = None + self._email_id = None + self._filter_type = None self._operator = None - self._click_url = None - self._pruning_refine_by = None self.discriminator = None - self.filter_type = filter_type - self.level = level - self.email_id = email_id - self.app_id = app_id - self.operator = operator if click_url is not None: self.click_url = click_url + self.level = level if pruning_refine_by is not None: self.pruning_refine_by = pruning_refine_by + self.app_id = app_id + self.email_id = email_id + self.filter_type = filter_type + self.operator = operator @property - def filter_type(self): - """Gets the filter_type of this PublicEmailEventFilter. # noqa: E501 + def click_url(self): + """Gets the click_url of this PublicEmailEventFilter. # noqa: E501 - :return: The filter_type of this PublicEmailEventFilter. # noqa: E501 + :return: The click_url of this PublicEmailEventFilter. # noqa: E501 :rtype: str """ - return self._filter_type + return self._click_url - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicEmailEventFilter. + @click_url.setter + def click_url(self, click_url): + """Sets the click_url of this PublicEmailEventFilter. - :param filter_type: The filter_type of this PublicEmailEventFilter. # noqa: E501 - :type filter_type: str + :param click_url: The click_url of this PublicEmailEventFilter. # noqa: E501 + :type click_url: str """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["EMAIL_EVENT"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - self._filter_type = filter_type + self._click_url = click_url @property def level(self): @@ -122,27 +117,25 @@ def level(self, level): self._level = level @property - def email_id(self): - """Gets the email_id of this PublicEmailEventFilter. # noqa: E501 + def pruning_refine_by(self): + """Gets the pruning_refine_by of this PublicEmailEventFilter. # noqa: E501 - :return: The email_id of this PublicEmailEventFilter. # noqa: E501 - :rtype: int + :return: The pruning_refine_by of this PublicEmailEventFilter. # noqa: E501 + :rtype: PublicEventAnalyticsFilterCoalescingRefineBy """ - return self._email_id + return self._pruning_refine_by - @email_id.setter - def email_id(self, email_id): - """Sets the email_id of this PublicEmailEventFilter. + @pruning_refine_by.setter + def pruning_refine_by(self, pruning_refine_by): + """Sets the pruning_refine_by of this PublicEmailEventFilter. - :param email_id: The email_id of this PublicEmailEventFilter. # noqa: E501 - :type email_id: int + :param pruning_refine_by: The pruning_refine_by of this PublicEmailEventFilter. # noqa: E501 + :type pruning_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy """ - if self.local_vars_configuration.client_side_validation and email_id is None: # noqa: E501 - raise ValueError("Invalid value for `email_id`, must not be `None`") # noqa: E501 - self._email_id = email_id + self._pruning_refine_by = pruning_refine_by @property def app_id(self): @@ -150,7 +143,7 @@ def app_id(self): :return: The app_id of this PublicEmailEventFilter. # noqa: E501 - :rtype: int + :rtype: str """ return self._app_id @@ -160,13 +153,62 @@ def app_id(self, app_id): :param app_id: The app_id of this PublicEmailEventFilter. # noqa: E501 - :type app_id: int + :type app_id: str """ if self.local_vars_configuration.client_side_validation and app_id is None: # noqa: E501 raise ValueError("Invalid value for `app_id`, must not be `None`") # noqa: E501 self._app_id = app_id + @property + def email_id(self): + """Gets the email_id of this PublicEmailEventFilter. # noqa: E501 + + + :return: The email_id of this PublicEmailEventFilter. # noqa: E501 + :rtype: str + """ + return self._email_id + + @email_id.setter + def email_id(self, email_id): + """Sets the email_id of this PublicEmailEventFilter. + + + :param email_id: The email_id of this PublicEmailEventFilter. # noqa: E501 + :type email_id: str + """ + if self.local_vars_configuration.client_side_validation and email_id is None: # noqa: E501 + raise ValueError("Invalid value for `email_id`, must not be `None`") # noqa: E501 + + self._email_id = email_id + + @property + def filter_type(self): + """Gets the filter_type of this PublicEmailEventFilter. # noqa: E501 + + + :return: The filter_type of this PublicEmailEventFilter. # noqa: E501 + :rtype: str + """ + return self._filter_type + + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicEmailEventFilter. + + + :param filter_type: The filter_type of this PublicEmailEventFilter. # noqa: E501 + :type filter_type: str + """ + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["EMAIL_EVENT"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + + self._filter_type = filter_type + @property def operator(self): """Gets the operator of this PublicEmailEventFilter. # noqa: E501 @@ -207,48 +249,6 @@ def operator(self, operator): self._operator = operator - @property - def click_url(self): - """Gets the click_url of this PublicEmailEventFilter. # noqa: E501 - - - :return: The click_url of this PublicEmailEventFilter. # noqa: E501 - :rtype: str - """ - return self._click_url - - @click_url.setter - def click_url(self, click_url): - """Sets the click_url of this PublicEmailEventFilter. - - - :param click_url: The click_url of this PublicEmailEventFilter. # noqa: E501 - :type click_url: str - """ - - self._click_url = click_url - - @property - def pruning_refine_by(self): - """Gets the pruning_refine_by of this PublicEmailEventFilter. # noqa: E501 - - - :return: The pruning_refine_by of this PublicEmailEventFilter. # noqa: E501 - :rtype: PublicEventAnalyticsFilterCoalescingRefineBy - """ - return self._pruning_refine_by - - @pruning_refine_by.setter - def pruning_refine_by(self, pruning_refine_by): - """Sets the pruning_refine_by of this PublicEmailEventFilter. - - - :param pruning_refine_by: The pruning_refine_by of this PublicEmailEventFilter. # noqa: E501 - :type pruning_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy - """ - - self._pruning_refine_by = pruning_refine_by - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_email_subscription_filter.py b/hubspot/crm/lists/models/public_email_subscription_filter.py index c83312e0..fa3cfe71 100644 --- a/hubspot/crm/lists/models/public_email_subscription_filter.py +++ b/hubspot/crm/lists/models/public_email_subscription_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,53 +35,48 @@ class PublicEmailSubscriptionFilter(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"filter_type": "str", "subscription_ids": "list[int]", "accepted_statuses": "list[str]", "subscription_type": "str"} + openapi_types = {"subscription_type": "str", "subscription_ids": "list[str]", "filter_type": "str", "accepted_statuses": "list[str]"} - attribute_map = {"filter_type": "filterType", "subscription_ids": "subscriptionIds", "accepted_statuses": "acceptedStatuses", "subscription_type": "subscriptionType"} + attribute_map = {"subscription_type": "subscriptionType", "subscription_ids": "subscriptionIds", "filter_type": "filterType", "accepted_statuses": "acceptedStatuses"} - def __init__(self, filter_type="EMAIL_SUBSCRIPTION", subscription_ids=None, accepted_statuses=None, subscription_type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, subscription_type=None, subscription_ids=None, filter_type="EMAIL_SUBSCRIPTION", accepted_statuses=None, local_vars_configuration=None): # noqa: E501 """PublicEmailSubscriptionFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None + self._subscription_type = None self._subscription_ids = None + self._filter_type = None self._accepted_statuses = None - self._subscription_type = None self.discriminator = None - self.filter_type = filter_type - self.subscription_ids = subscription_ids - self.accepted_statuses = accepted_statuses if subscription_type is not None: self.subscription_type = subscription_type + self.subscription_ids = subscription_ids + self.filter_type = filter_type + self.accepted_statuses = accepted_statuses @property - def filter_type(self): - """Gets the filter_type of this PublicEmailSubscriptionFilter. # noqa: E501 + def subscription_type(self): + """Gets the subscription_type of this PublicEmailSubscriptionFilter. # noqa: E501 - :return: The filter_type of this PublicEmailSubscriptionFilter. # noqa: E501 + :return: The subscription_type of this PublicEmailSubscriptionFilter. # noqa: E501 :rtype: str """ - return self._filter_type + return self._subscription_type - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicEmailSubscriptionFilter. + @subscription_type.setter + def subscription_type(self, subscription_type): + """Sets the subscription_type of this PublicEmailSubscriptionFilter. - :param filter_type: The filter_type of this PublicEmailSubscriptionFilter. # noqa: E501 - :type filter_type: str + :param subscription_type: The subscription_type of this PublicEmailSubscriptionFilter. # noqa: E501 + :type subscription_type: str """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["EMAIL_SUBSCRIPTION"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - self._filter_type = filter_type + self._subscription_type = subscription_type @property def subscription_ids(self): @@ -89,7 +84,7 @@ def subscription_ids(self): :return: The subscription_ids of this PublicEmailSubscriptionFilter. # noqa: E501 - :rtype: list[int] + :rtype: list[str] """ return self._subscription_ids @@ -99,13 +94,39 @@ def subscription_ids(self, subscription_ids): :param subscription_ids: The subscription_ids of this PublicEmailSubscriptionFilter. # noqa: E501 - :type subscription_ids: list[int] + :type subscription_ids: list[str] """ if self.local_vars_configuration.client_side_validation and subscription_ids is None: # noqa: E501 raise ValueError("Invalid value for `subscription_ids`, must not be `None`") # noqa: E501 self._subscription_ids = subscription_ids + @property + def filter_type(self): + """Gets the filter_type of this PublicEmailSubscriptionFilter. # noqa: E501 + + + :return: The filter_type of this PublicEmailSubscriptionFilter. # noqa: E501 + :rtype: str + """ + return self._filter_type + + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicEmailSubscriptionFilter. + + + :param filter_type: The filter_type of this PublicEmailSubscriptionFilter. # noqa: E501 + :type filter_type: str + """ + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["EMAIL_SUBSCRIPTION"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + + self._filter_type = filter_type + @property def accepted_statuses(self): """Gets the accepted_statuses of this PublicEmailSubscriptionFilter. # noqa: E501 @@ -129,27 +150,6 @@ def accepted_statuses(self, accepted_statuses): self._accepted_statuses = accepted_statuses - @property - def subscription_type(self): - """Gets the subscription_type of this PublicEmailSubscriptionFilter. # noqa: E501 - - - :return: The subscription_type of this PublicEmailSubscriptionFilter. # noqa: E501 - :rtype: str - """ - return self._subscription_type - - @subscription_type.setter - def subscription_type(self, subscription_type): - """Sets the subscription_type of this PublicEmailSubscriptionFilter. - - - :param subscription_type: The subscription_type of this PublicEmailSubscriptionFilter. # noqa: E501 - :type subscription_type: str - """ - - self._subscription_type = subscription_type - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_enumeration_property_operation.py b/hubspot/crm/lists/models/public_enumeration_property_operation.py index a6860169..5a0443a1 100644 --- a/hubspot/crm/lists/models/public_enumeration_property_operation.py +++ b/hubspot/crm/lists/models/public_enumeration_property_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,26 +35,72 @@ class PublicEnumerationPropertyOperation(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"operation_type": "str", "operator": "str", "include_objects_with_no_value_set": "bool", "values": "list[str]"} + openapi_types = {"include_objects_with_no_value_set": "bool", "values": "list[str]", "operation_type": "str", "operator": "str"} - attribute_map = {"operation_type": "operationType", "operator": "operator", "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "values": "values"} + attribute_map = {"include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "values": "values", "operation_type": "operationType", "operator": "operator"} - def __init__(self, operation_type="ENUMERATION", operator=None, include_objects_with_no_value_set=None, values=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, include_objects_with_no_value_set=None, values=None, operation_type="ENUMERATION", operator=None, local_vars_configuration=None): # noqa: E501 """PublicEnumerationPropertyOperation - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._operation_type = None - self._operator = None self._include_objects_with_no_value_set = None self._values = None + self._operation_type = None + self._operator = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator self.include_objects_with_no_value_set = include_objects_with_no_value_set self.values = values + self.operation_type = operation_type + self.operator = operator + + @property + def include_objects_with_no_value_set(self): + """Gets the include_objects_with_no_value_set of this PublicEnumerationPropertyOperation. # noqa: E501 + + + :return: The include_objects_with_no_value_set of this PublicEnumerationPropertyOperation. # noqa: E501 + :rtype: bool + """ + return self._include_objects_with_no_value_set + + @include_objects_with_no_value_set.setter + def include_objects_with_no_value_set(self, include_objects_with_no_value_set): + """Sets the include_objects_with_no_value_set of this PublicEnumerationPropertyOperation. + + + :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicEnumerationPropertyOperation. # noqa: E501 + :type include_objects_with_no_value_set: bool + """ + if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 + raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 + + self._include_objects_with_no_value_set = include_objects_with_no_value_set + + @property + def values(self): + """Gets the values of this PublicEnumerationPropertyOperation. # noqa: E501 + + + :return: The values of this PublicEnumerationPropertyOperation. # noqa: E501 + :rtype: list[str] + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this PublicEnumerationPropertyOperation. + + + :param values: The values of this PublicEnumerationPropertyOperation. # noqa: E501 + :type values: list[str] + """ + if self.local_vars_configuration.client_side_validation and values is None: # noqa: E501 + raise ValueError("Invalid value for `values`, must not be `None`") # noqa: E501 + + self._values = values @property def operation_type(self): @@ -105,52 +151,6 @@ def operator(self, operator): self._operator = operator - @property - def include_objects_with_no_value_set(self): - """Gets the include_objects_with_no_value_set of this PublicEnumerationPropertyOperation. # noqa: E501 - - - :return: The include_objects_with_no_value_set of this PublicEnumerationPropertyOperation. # noqa: E501 - :rtype: bool - """ - return self._include_objects_with_no_value_set - - @include_objects_with_no_value_set.setter - def include_objects_with_no_value_set(self, include_objects_with_no_value_set): - """Sets the include_objects_with_no_value_set of this PublicEnumerationPropertyOperation. - - - :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicEnumerationPropertyOperation. # noqa: E501 - :type include_objects_with_no_value_set: bool - """ - if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 - raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 - - self._include_objects_with_no_value_set = include_objects_with_no_value_set - - @property - def values(self): - """Gets the values of this PublicEnumerationPropertyOperation. # noqa: E501 - - - :return: The values of this PublicEnumerationPropertyOperation. # noqa: E501 - :rtype: list[str] - """ - return self._values - - @values.setter - def values(self, values): - """Sets the values of this PublicEnumerationPropertyOperation. - - - :param values: The values of this PublicEnumerationPropertyOperation. # noqa: E501 - :type values: list[str] - """ - if self.local_vars_configuration.client_side_validation and values is None: # noqa: E501 - raise ValueError("Invalid value for `values`, must not be `None`") # noqa: E501 - - self._values = values - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_event_analytics_filter.py b/hubspot/crm/lists/models/public_event_analytics_filter.py index 866b4f89..77bfa1c6 100644 --- a/hubspot/crm/lists/models/public_event_analytics_filter.py +++ b/hubspot/crm/lists/models/public_event_analytics_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,61 +36,58 @@ class PublicEventAnalyticsFilter(object): and the value is json key in definition. """ openapi_types = { - "filter_type": "str", + "event_id": "str", "coalescing_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", + "filter_type": "str", "operator": "str", - "event_id": "str", } - attribute_map = {"filter_type": "filterType", "coalescing_refine_by": "coalescingRefineBy", "pruning_refine_by": "pruningRefineBy", "operator": "operator", "event_id": "eventId"} + attribute_map = {"event_id": "eventId", "coalescing_refine_by": "coalescingRefineBy", "pruning_refine_by": "pruningRefineBy", "filter_type": "filterType", "operator": "operator"} - def __init__(self, filter_type="EVENT", coalescing_refine_by=None, pruning_refine_by=None, operator=None, event_id=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, event_id=None, coalescing_refine_by=None, pruning_refine_by=None, filter_type="EVENT", operator=None, local_vars_configuration=None): # noqa: E501 """PublicEventAnalyticsFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None + self._event_id = None self._coalescing_refine_by = None self._pruning_refine_by = None + self._filter_type = None self._operator = None - self._event_id = None self.discriminator = None - self.filter_type = filter_type + self.event_id = event_id if coalescing_refine_by is not None: self.coalescing_refine_by = coalescing_refine_by if pruning_refine_by is not None: self.pruning_refine_by = pruning_refine_by + self.filter_type = filter_type self.operator = operator - self.event_id = event_id @property - def filter_type(self): - """Gets the filter_type of this PublicEventAnalyticsFilter. # noqa: E501 + def event_id(self): + """Gets the event_id of this PublicEventAnalyticsFilter. # noqa: E501 - :return: The filter_type of this PublicEventAnalyticsFilter. # noqa: E501 + :return: The event_id of this PublicEventAnalyticsFilter. # noqa: E501 :rtype: str """ - return self._filter_type + return self._event_id - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicEventAnalyticsFilter. + @event_id.setter + def event_id(self, event_id): + """Sets the event_id of this PublicEventAnalyticsFilter. - :param filter_type: The filter_type of this PublicEventAnalyticsFilter. # noqa: E501 - :type filter_type: str + :param event_id: The event_id of this PublicEventAnalyticsFilter. # noqa: E501 + :type event_id: str """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["EVENT"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + if self.local_vars_configuration.client_side_validation and event_id is None: # noqa: E501 + raise ValueError("Invalid value for `event_id`, must not be `None`") # noqa: E501 - self._filter_type = filter_type + self._event_id = event_id @property def coalescing_refine_by(self): @@ -134,6 +131,32 @@ def pruning_refine_by(self, pruning_refine_by): self._pruning_refine_by = pruning_refine_by + @property + def filter_type(self): + """Gets the filter_type of this PublicEventAnalyticsFilter. # noqa: E501 + + + :return: The filter_type of this PublicEventAnalyticsFilter. # noqa: E501 + :rtype: str + """ + return self._filter_type + + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicEventAnalyticsFilter. + + + :param filter_type: The filter_type of this PublicEventAnalyticsFilter. # noqa: E501 + :type filter_type: str + """ + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["EVENT"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + + self._filter_type = filter_type + @property def operator(self): """Gets the operator of this PublicEventAnalyticsFilter. # noqa: E501 @@ -157,29 +180,6 @@ def operator(self, operator): self._operator = operator - @property - def event_id(self): - """Gets the event_id of this PublicEventAnalyticsFilter. # noqa: E501 - - - :return: The event_id of this PublicEventAnalyticsFilter. # noqa: E501 - :rtype: str - """ - return self._event_id - - @event_id.setter - def event_id(self, event_id): - """Sets the event_id of this PublicEventAnalyticsFilter. - - - :param event_id: The event_id of this PublicEventAnalyticsFilter. # noqa: E501 - :type event_id: str - """ - if self.local_vars_configuration.client_side_validation and event_id is None: # noqa: E501 - raise ValueError("Invalid value for `event_id`, must not be `None`") # noqa: E501 - - self._event_id = event_id - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_event_analytics_filter_coalescing_refine_by.py b/hubspot/crm/lists/models/public_event_analytics_filter_coalescing_refine_by.py index 2523c805..0a05fc1e 100644 --- a/hubspot/crm/lists/models/public_event_analytics_filter_coalescing_refine_by.py +++ b/hubspot/crm/lists/models/public_event_analytics_filter_coalescing_refine_by.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,79 +36,79 @@ class PublicEventAnalyticsFilterCoalescingRefineBy(object): and the value is json key in definition. """ openapi_types = { + "max_occurrences": "int", "type": "str", "min_occurrences": "int", - "max_occurrences": "int", "set_type": "str", "comparison": "str", "time_offset": "PublicTimeOffset", - "range_type": "str", "upper_bound_offset": "PublicTimeOffset", + "range_type": "str", "lower_bound_offset": "PublicTimeOffset", "timestamp": "int", - "lower_timestamp": "int", "upper_timestamp": "int", - "operation_type": "str", - "operator": "str", - "include_objects_with_no_value_set": "bool", - "time_point": "PublicTimePointOperationTimePoint", + "lower_timestamp": "int", "endpoint_behavior": "str", + "include_objects_with_no_value_set": "bool", "property_parser": "str", - "lower_bound_endpoint_behavior": "str", + "operation_type": "str", + "time_point": "PublicTimePointOperationTimePoint", + "operator": "str", "upper_bound_endpoint_behavior": "str", - "lower_bound_time_point": "PublicTimePointOperationTimePoint", "upper_bound_time_point": "PublicTimePointOperationTimePoint", + "lower_bound_endpoint_behavior": "str", + "lower_bound_time_point": "PublicTimePointOperationTimePoint", } attribute_map = { + "max_occurrences": "maxOccurrences", "type": "type", "min_occurrences": "minOccurrences", - "max_occurrences": "maxOccurrences", "set_type": "setType", "comparison": "comparison", "time_offset": "timeOffset", - "range_type": "rangeType", "upper_bound_offset": "upperBoundOffset", + "range_type": "rangeType", "lower_bound_offset": "lowerBoundOffset", "timestamp": "timestamp", - "lower_timestamp": "lowerTimestamp", "upper_timestamp": "upperTimestamp", - "operation_type": "operationType", - "operator": "operator", - "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", - "time_point": "timePoint", + "lower_timestamp": "lowerTimestamp", "endpoint_behavior": "endpointBehavior", + "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "property_parser": "propertyParser", - "lower_bound_endpoint_behavior": "lowerBoundEndpointBehavior", + "operation_type": "operationType", + "time_point": "timePoint", + "operator": "operator", "upper_bound_endpoint_behavior": "upperBoundEndpointBehavior", - "lower_bound_time_point": "lowerBoundTimePoint", "upper_bound_time_point": "upperBoundTimePoint", + "lower_bound_endpoint_behavior": "lowerBoundEndpointBehavior", + "lower_bound_time_point": "lowerBoundTimePoint", } def __init__( self, + max_occurrences=None, type="TIME_RANGED", min_occurrences=None, - max_occurrences=None, set_type=None, comparison=None, time_offset=None, - range_type=None, upper_bound_offset=None, + range_type=None, lower_bound_offset=None, timestamp=None, - lower_timestamp=None, upper_timestamp=None, - operation_type=None, - operator=None, - include_objects_with_no_value_set=None, - time_point=None, + lower_timestamp=None, endpoint_behavior=None, + include_objects_with_no_value_set=None, property_parser=None, - lower_bound_endpoint_behavior=None, + operation_type=None, + time_point=None, + operator=None, upper_bound_endpoint_behavior=None, - lower_bound_time_point=None, upper_bound_time_point=None, + lower_bound_endpoint_behavior=None, + lower_bound_time_point=None, local_vars_configuration=None, ): # noqa: E501 """PublicEventAnalyticsFilterCoalescingRefineBy - a model defined in OpenAPI""" # noqa: E501 @@ -116,58 +116,79 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration + self._max_occurrences = None self._type = None self._min_occurrences = None - self._max_occurrences = None self._set_type = None self._comparison = None self._time_offset = None - self._range_type = None self._upper_bound_offset = None + self._range_type = None self._lower_bound_offset = None self._timestamp = None - self._lower_timestamp = None self._upper_timestamp = None - self._operation_type = None - self._operator = None - self._include_objects_with_no_value_set = None - self._time_point = None + self._lower_timestamp = None self._endpoint_behavior = None + self._include_objects_with_no_value_set = None self._property_parser = None - self._lower_bound_endpoint_behavior = None + self._operation_type = None + self._time_point = None + self._operator = None self._upper_bound_endpoint_behavior = None - self._lower_bound_time_point = None self._upper_bound_time_point = None + self._lower_bound_endpoint_behavior = None + self._lower_bound_time_point = None self.discriminator = None + if max_occurrences is not None: + self.max_occurrences = max_occurrences self.type = type if min_occurrences is not None: self.min_occurrences = min_occurrences - if max_occurrences is not None: - self.max_occurrences = max_occurrences self.set_type = set_type self.comparison = comparison self.time_offset = time_offset - self.range_type = range_type self.upper_bound_offset = upper_bound_offset + self.range_type = range_type self.lower_bound_offset = lower_bound_offset self.timestamp = timestamp - self.lower_timestamp = lower_timestamp self.upper_timestamp = upper_timestamp - self.operation_type = operation_type - self.operator = operator - self.include_objects_with_no_value_set = include_objects_with_no_value_set - self.time_point = time_point + self.lower_timestamp = lower_timestamp if endpoint_behavior is not None: self.endpoint_behavior = endpoint_behavior + self.include_objects_with_no_value_set = include_objects_with_no_value_set if property_parser is not None: self.property_parser = property_parser - if lower_bound_endpoint_behavior is not None: - self.lower_bound_endpoint_behavior = lower_bound_endpoint_behavior + self.operation_type = operation_type + self.time_point = time_point + self.operator = operator if upper_bound_endpoint_behavior is not None: self.upper_bound_endpoint_behavior = upper_bound_endpoint_behavior - self.lower_bound_time_point = lower_bound_time_point self.upper_bound_time_point = upper_bound_time_point + if lower_bound_endpoint_behavior is not None: + self.lower_bound_endpoint_behavior = lower_bound_endpoint_behavior + self.lower_bound_time_point = lower_bound_time_point + + @property + def max_occurrences(self): + """Gets the max_occurrences of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + + + :return: The max_occurrences of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :rtype: int + """ + return self._max_occurrences + + @max_occurrences.setter + def max_occurrences(self, max_occurrences): + """Sets the max_occurrences of this PublicEventAnalyticsFilterCoalescingRefineBy. + + + :param max_occurrences: The max_occurrences of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :type max_occurrences: int + """ + + self._max_occurrences = max_occurrences @property def type(self): @@ -216,27 +237,6 @@ def min_occurrences(self, min_occurrences): self._min_occurrences = min_occurrences - @property - def max_occurrences(self): - """Gets the max_occurrences of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - - - :return: The max_occurrences of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :rtype: int - """ - return self._max_occurrences - - @max_occurrences.setter - def max_occurrences(self, max_occurrences): - """Sets the max_occurrences of this PublicEventAnalyticsFilterCoalescingRefineBy. - - - :param max_occurrences: The max_occurrences of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :type max_occurrences: int - """ - - self._max_occurrences = max_occurrences - @property def set_type(self): """Gets the set_type of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 @@ -306,29 +306,6 @@ def time_offset(self, time_offset): self._time_offset = time_offset - @property - def range_type(self): - """Gets the range_type of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - - - :return: The range_type of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :rtype: str - """ - return self._range_type - - @range_type.setter - def range_type(self, range_type): - """Sets the range_type of this PublicEventAnalyticsFilterCoalescingRefineBy. - - - :param range_type: The range_type of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :type range_type: str - """ - if self.local_vars_configuration.client_side_validation and range_type is None: # noqa: E501 - raise ValueError("Invalid value for `range_type`, must not be `None`") # noqa: E501 - - self._range_type = range_type - @property def upper_bound_offset(self): """Gets the upper_bound_offset of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 @@ -352,6 +329,29 @@ def upper_bound_offset(self, upper_bound_offset): self._upper_bound_offset = upper_bound_offset + @property + def range_type(self): + """Gets the range_type of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + + + :return: The range_type of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :rtype: str + """ + return self._range_type + + @range_type.setter + def range_type(self, range_type): + """Sets the range_type of this PublicEventAnalyticsFilterCoalescingRefineBy. + + + :param range_type: The range_type of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :type range_type: str + """ + if self.local_vars_configuration.client_side_validation and range_type is None: # noqa: E501 + raise ValueError("Invalid value for `range_type`, must not be `None`") # noqa: E501 + + self._range_type = range_type + @property def lower_bound_offset(self): """Gets the lower_bound_offset of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 @@ -398,29 +398,6 @@ def timestamp(self, timestamp): self._timestamp = timestamp - @property - def lower_timestamp(self): - """Gets the lower_timestamp of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - - - :return: The lower_timestamp of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :rtype: int - """ - return self._lower_timestamp - - @lower_timestamp.setter - def lower_timestamp(self, lower_timestamp): - """Sets the lower_timestamp of this PublicEventAnalyticsFilterCoalescingRefineBy. - - - :param lower_timestamp: The lower_timestamp of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :type lower_timestamp: int - """ - if self.local_vars_configuration.client_side_validation and lower_timestamp is None: # noqa: E501 - raise ValueError("Invalid value for `lower_timestamp`, must not be `None`") # noqa: E501 - - self._lower_timestamp = lower_timestamp - @property def upper_timestamp(self): """Gets the upper_timestamp of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 @@ -445,50 +422,48 @@ def upper_timestamp(self, upper_timestamp): self._upper_timestamp = upper_timestamp @property - def operation_type(self): - """Gets the operation_type of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + def lower_timestamp(self): + """Gets the lower_timestamp of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :return: The operation_type of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :rtype: str + :return: The lower_timestamp of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :rtype: int """ - return self._operation_type + return self._lower_timestamp - @operation_type.setter - def operation_type(self, operation_type): - """Sets the operation_type of this PublicEventAnalyticsFilterCoalescingRefineBy. + @lower_timestamp.setter + def lower_timestamp(self, lower_timestamp): + """Sets the lower_timestamp of this PublicEventAnalyticsFilterCoalescingRefineBy. - :param operation_type: The operation_type of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :type operation_type: str + :param lower_timestamp: The lower_timestamp of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :type lower_timestamp: int """ - if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 - raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and lower_timestamp is None: # noqa: E501 + raise ValueError("Invalid value for `lower_timestamp`, must not be `None`") # noqa: E501 - self._operation_type = operation_type + self._lower_timestamp = lower_timestamp @property - def operator(self): - """Gets the operator of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + def endpoint_behavior(self): + """Gets the endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :return: The operator of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :return: The endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 :rtype: str """ - return self._operator + return self._endpoint_behavior - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicEventAnalyticsFilterCoalescingRefineBy. + @endpoint_behavior.setter + def endpoint_behavior(self, endpoint_behavior): + """Sets the endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. - :param operator: The operator of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :type operator: str + :param endpoint_behavior: The endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :type endpoint_behavior: str """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._operator = operator + self._endpoint_behavior = endpoint_behavior @property def include_objects_with_no_value_set(self): @@ -513,6 +488,50 @@ def include_objects_with_no_value_set(self, include_objects_with_no_value_set): self._include_objects_with_no_value_set = include_objects_with_no_value_set + @property + def property_parser(self): + """Gets the property_parser of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + + + :return: The property_parser of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :rtype: str + """ + return self._property_parser + + @property_parser.setter + def property_parser(self, property_parser): + """Sets the property_parser of this PublicEventAnalyticsFilterCoalescingRefineBy. + + + :param property_parser: The property_parser of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :type property_parser: str + """ + + self._property_parser = property_parser + + @property + def operation_type(self): + """Gets the operation_type of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + + + :return: The operation_type of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :rtype: str + """ + return self._operation_type + + @operation_type.setter + def operation_type(self, operation_type): + """Sets the operation_type of this PublicEventAnalyticsFilterCoalescingRefineBy. + + + :param operation_type: The operation_type of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :type operation_type: str + """ + if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 + raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 + + self._operation_type = operation_type + @property def time_point(self): """Gets the time_point of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 @@ -537,88 +556,92 @@ def time_point(self, time_point): self._time_point = time_point @property - def endpoint_behavior(self): - """Gets the endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + def operator(self): + """Gets the operator of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :return: The endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :return: The operator of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 :rtype: str """ - return self._endpoint_behavior + return self._operator - @endpoint_behavior.setter - def endpoint_behavior(self, endpoint_behavior): - """Sets the endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicEventAnalyticsFilterCoalescingRefineBy. - :param endpoint_behavior: The endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :type endpoint_behavior: str + :param operator: The operator of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :type operator: str """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._endpoint_behavior = endpoint_behavior + self._operator = operator @property - def property_parser(self): - """Gets the property_parser of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + def upper_bound_endpoint_behavior(self): + """Gets the upper_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :return: The property_parser of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :return: The upper_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 :rtype: str """ - return self._property_parser + return self._upper_bound_endpoint_behavior - @property_parser.setter - def property_parser(self, property_parser): - """Sets the property_parser of this PublicEventAnalyticsFilterCoalescingRefineBy. + @upper_bound_endpoint_behavior.setter + def upper_bound_endpoint_behavior(self, upper_bound_endpoint_behavior): + """Sets the upper_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. - :param property_parser: The property_parser of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :type property_parser: str + :param upper_bound_endpoint_behavior: The upper_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :type upper_bound_endpoint_behavior: str """ - self._property_parser = property_parser + self._upper_bound_endpoint_behavior = upper_bound_endpoint_behavior @property - def lower_bound_endpoint_behavior(self): - """Gets the lower_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + def upper_bound_time_point(self): + """Gets the upper_bound_time_point of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :return: The lower_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :rtype: str + :return: The upper_bound_time_point of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :rtype: PublicTimePointOperationTimePoint """ - return self._lower_bound_endpoint_behavior + return self._upper_bound_time_point - @lower_bound_endpoint_behavior.setter - def lower_bound_endpoint_behavior(self, lower_bound_endpoint_behavior): - """Sets the lower_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. + @upper_bound_time_point.setter + def upper_bound_time_point(self, upper_bound_time_point): + """Sets the upper_bound_time_point of this PublicEventAnalyticsFilterCoalescingRefineBy. - :param lower_bound_endpoint_behavior: The lower_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :type lower_bound_endpoint_behavior: str + :param upper_bound_time_point: The upper_bound_time_point of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :type upper_bound_time_point: PublicTimePointOperationTimePoint """ + if self.local_vars_configuration.client_side_validation and upper_bound_time_point is None: # noqa: E501 + raise ValueError("Invalid value for `upper_bound_time_point`, must not be `None`") # noqa: E501 - self._lower_bound_endpoint_behavior = lower_bound_endpoint_behavior + self._upper_bound_time_point = upper_bound_time_point @property - def upper_bound_endpoint_behavior(self): - """Gets the upper_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + def lower_bound_endpoint_behavior(self): + """Gets the lower_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :return: The upper_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :return: The lower_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 :rtype: str """ - return self._upper_bound_endpoint_behavior + return self._lower_bound_endpoint_behavior - @upper_bound_endpoint_behavior.setter - def upper_bound_endpoint_behavior(self, upper_bound_endpoint_behavior): - """Sets the upper_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. + @lower_bound_endpoint_behavior.setter + def lower_bound_endpoint_behavior(self, lower_bound_endpoint_behavior): + """Sets the lower_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. - :param upper_bound_endpoint_behavior: The upper_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :type upper_bound_endpoint_behavior: str + :param lower_bound_endpoint_behavior: The lower_bound_endpoint_behavior of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 + :type lower_bound_endpoint_behavior: str """ - self._upper_bound_endpoint_behavior = upper_bound_endpoint_behavior + self._lower_bound_endpoint_behavior = lower_bound_endpoint_behavior @property def lower_bound_time_point(self): @@ -643,29 +666,6 @@ def lower_bound_time_point(self, lower_bound_time_point): self._lower_bound_time_point = lower_bound_time_point - @property - def upper_bound_time_point(self): - """Gets the upper_bound_time_point of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - - - :return: The upper_bound_time_point of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :rtype: PublicTimePointOperationTimePoint - """ - return self._upper_bound_time_point - - @upper_bound_time_point.setter - def upper_bound_time_point(self, upper_bound_time_point): - """Sets the upper_bound_time_point of this PublicEventAnalyticsFilterCoalescingRefineBy. - - - :param upper_bound_time_point: The upper_bound_time_point of this PublicEventAnalyticsFilterCoalescingRefineBy. # noqa: E501 - :type upper_bound_time_point: PublicTimePointOperationTimePoint - """ - if self.local_vars_configuration.client_side_validation and upper_bound_time_point is None: # noqa: E501 - raise ValueError("Invalid value for `upper_bound_time_point`, must not be `None`") # noqa: E501 - - self._upper_bound_time_point = upper_bound_time_point - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_event_filter_metadata.py b/hubspot/crm/lists/models/public_event_filter_metadata.py index c155dfc2..8e91d118 100644 --- a/hubspot/crm/lists/models/public_event_filter_metadata.py +++ b/hubspot/crm/lists/models/public_event_filter_metadata.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/public_fiscal_quarter_reference.py b/hubspot/crm/lists/models/public_fiscal_quarter_reference.py index 4014c519..e7e3a8b1 100644 --- a/hubspot/crm/lists/models/public_fiscal_quarter_reference.py +++ b/hubspot/crm/lists/models/public_fiscal_quarter_reference.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,62 +35,36 @@ class PublicFiscalQuarterReference(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"reference_type": "str", "hour": "int", "minute": "int", "second": "int", "millisecond": "int", "month": "int", "day": "int"} + openapi_types = {"hour": "int", "month": "int", "millisecond": "int", "reference_type": "str", "day": "int", "minute": "int", "second": "int"} - attribute_map = {"reference_type": "referenceType", "hour": "hour", "minute": "minute", "second": "second", "millisecond": "millisecond", "month": "month", "day": "day"} + attribute_map = {"hour": "hour", "month": "month", "millisecond": "millisecond", "reference_type": "referenceType", "day": "day", "minute": "minute", "second": "second"} - def __init__(self, reference_type="FISCAL_QUARTER", hour=None, minute=None, second=None, millisecond=None, month=None, day=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, hour=None, month=None, millisecond=None, reference_type="FISCAL_QUARTER", day=None, minute=None, second=None, local_vars_configuration=None): # noqa: E501 """PublicFiscalQuarterReference - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._reference_type = None self._hour = None - self._minute = None - self._second = None - self._millisecond = None self._month = None + self._millisecond = None + self._reference_type = None self._day = None + self._minute = None + self._second = None self.discriminator = None - self.reference_type = reference_type if hour is not None: self.hour = hour + self.month = month + if millisecond is not None: + self.millisecond = millisecond + self.reference_type = reference_type + self.day = day if minute is not None: self.minute = minute if second is not None: self.second = second - if millisecond is not None: - self.millisecond = millisecond - self.month = month - self.day = day - - @property - def reference_type(self): - """Gets the reference_type of this PublicFiscalQuarterReference. # noqa: E501 - - - :return: The reference_type of this PublicFiscalQuarterReference. # noqa: E501 - :rtype: str - """ - return self._reference_type - - @reference_type.setter - def reference_type(self, reference_type): - """Sets the reference_type of this PublicFiscalQuarterReference. - - - :param reference_type: The reference_type of this PublicFiscalQuarterReference. # noqa: E501 - :type reference_type: str - """ - if self.local_vars_configuration.client_side_validation and reference_type is None: # noqa: E501 - raise ValueError("Invalid value for `reference_type`, must not be `None`") # noqa: E501 - allowed_values = ["FISCAL_QUARTER"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and reference_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `reference_type` ({0}), must be one of {1}".format(reference_type, allowed_values)) # noqa: E501 - - self._reference_type = reference_type @property def hour(self): @@ -114,46 +88,27 @@ def hour(self, hour): self._hour = hour @property - def minute(self): - """Gets the minute of this PublicFiscalQuarterReference. # noqa: E501 - - - :return: The minute of this PublicFiscalQuarterReference. # noqa: E501 - :rtype: int - """ - return self._minute - - @minute.setter - def minute(self, minute): - """Sets the minute of this PublicFiscalQuarterReference. - - - :param minute: The minute of this PublicFiscalQuarterReference. # noqa: E501 - :type minute: int - """ - - self._minute = minute - - @property - def second(self): - """Gets the second of this PublicFiscalQuarterReference. # noqa: E501 + def month(self): + """Gets the month of this PublicFiscalQuarterReference. # noqa: E501 - :return: The second of this PublicFiscalQuarterReference. # noqa: E501 + :return: The month of this PublicFiscalQuarterReference. # noqa: E501 :rtype: int """ - return self._second + return self._month - @second.setter - def second(self, second): - """Sets the second of this PublicFiscalQuarterReference. + @month.setter + def month(self, month): + """Sets the month of this PublicFiscalQuarterReference. - :param second: The second of this PublicFiscalQuarterReference. # noqa: E501 - :type second: int + :param month: The month of this PublicFiscalQuarterReference. # noqa: E501 + :type month: int """ + if self.local_vars_configuration.client_side_validation and month is None: # noqa: E501 + raise ValueError("Invalid value for `month`, must not be `None`") # noqa: E501 - self._second = second + self._month = month @property def millisecond(self): @@ -177,27 +132,30 @@ def millisecond(self, millisecond): self._millisecond = millisecond @property - def month(self): - """Gets the month of this PublicFiscalQuarterReference. # noqa: E501 + def reference_type(self): + """Gets the reference_type of this PublicFiscalQuarterReference. # noqa: E501 - :return: The month of this PublicFiscalQuarterReference. # noqa: E501 - :rtype: int + :return: The reference_type of this PublicFiscalQuarterReference. # noqa: E501 + :rtype: str """ - return self._month + return self._reference_type - @month.setter - def month(self, month): - """Sets the month of this PublicFiscalQuarterReference. + @reference_type.setter + def reference_type(self, reference_type): + """Sets the reference_type of this PublicFiscalQuarterReference. - :param month: The month of this PublicFiscalQuarterReference. # noqa: E501 - :type month: int + :param reference_type: The reference_type of this PublicFiscalQuarterReference. # noqa: E501 + :type reference_type: str """ - if self.local_vars_configuration.client_side_validation and month is None: # noqa: E501 - raise ValueError("Invalid value for `month`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and reference_type is None: # noqa: E501 + raise ValueError("Invalid value for `reference_type`, must not be `None`") # noqa: E501 + allowed_values = ["FISCAL_QUARTER"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and reference_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `reference_type` ({0}), must be one of {1}".format(reference_type, allowed_values)) # noqa: E501 - self._month = month + self._reference_type = reference_type @property def day(self): @@ -222,6 +180,48 @@ def day(self, day): self._day = day + @property + def minute(self): + """Gets the minute of this PublicFiscalQuarterReference. # noqa: E501 + + + :return: The minute of this PublicFiscalQuarterReference. # noqa: E501 + :rtype: int + """ + return self._minute + + @minute.setter + def minute(self, minute): + """Sets the minute of this PublicFiscalQuarterReference. + + + :param minute: The minute of this PublicFiscalQuarterReference. # noqa: E501 + :type minute: int + """ + + self._minute = minute + + @property + def second(self): + """Gets the second of this PublicFiscalQuarterReference. # noqa: E501 + + + :return: The second of this PublicFiscalQuarterReference. # noqa: E501 + :rtype: int + """ + return self._second + + @second.setter + def second(self, second): + """Sets the second of this PublicFiscalQuarterReference. + + + :param second: The second of this PublicFiscalQuarterReference. # noqa: E501 + :type second: int + """ + + self._second = second + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_fiscal_year_reference.py b/hubspot/crm/lists/models/public_fiscal_year_reference.py index 02184035..a7704115 100644 --- a/hubspot/crm/lists/models/public_fiscal_year_reference.py +++ b/hubspot/crm/lists/models/public_fiscal_year_reference.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,62 +35,36 @@ class PublicFiscalYearReference(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"reference_type": "str", "hour": "int", "minute": "int", "second": "int", "millisecond": "int", "month": "int", "day": "int"} + openapi_types = {"hour": "int", "month": "int", "millisecond": "int", "reference_type": "str", "day": "int", "minute": "int", "second": "int"} - attribute_map = {"reference_type": "referenceType", "hour": "hour", "minute": "minute", "second": "second", "millisecond": "millisecond", "month": "month", "day": "day"} + attribute_map = {"hour": "hour", "month": "month", "millisecond": "millisecond", "reference_type": "referenceType", "day": "day", "minute": "minute", "second": "second"} - def __init__(self, reference_type="FISCAL_YEAR", hour=None, minute=None, second=None, millisecond=None, month=None, day=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, hour=None, month=None, millisecond=None, reference_type="FISCAL_YEAR", day=None, minute=None, second=None, local_vars_configuration=None): # noqa: E501 """PublicFiscalYearReference - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._reference_type = None self._hour = None - self._minute = None - self._second = None - self._millisecond = None self._month = None + self._millisecond = None + self._reference_type = None self._day = None + self._minute = None + self._second = None self.discriminator = None - self.reference_type = reference_type if hour is not None: self.hour = hour + self.month = month + if millisecond is not None: + self.millisecond = millisecond + self.reference_type = reference_type + self.day = day if minute is not None: self.minute = minute if second is not None: self.second = second - if millisecond is not None: - self.millisecond = millisecond - self.month = month - self.day = day - - @property - def reference_type(self): - """Gets the reference_type of this PublicFiscalYearReference. # noqa: E501 - - - :return: The reference_type of this PublicFiscalYearReference. # noqa: E501 - :rtype: str - """ - return self._reference_type - - @reference_type.setter - def reference_type(self, reference_type): - """Sets the reference_type of this PublicFiscalYearReference. - - - :param reference_type: The reference_type of this PublicFiscalYearReference. # noqa: E501 - :type reference_type: str - """ - if self.local_vars_configuration.client_side_validation and reference_type is None: # noqa: E501 - raise ValueError("Invalid value for `reference_type`, must not be `None`") # noqa: E501 - allowed_values = ["FISCAL_YEAR"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and reference_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `reference_type` ({0}), must be one of {1}".format(reference_type, allowed_values)) # noqa: E501 - - self._reference_type = reference_type @property def hour(self): @@ -114,46 +88,27 @@ def hour(self, hour): self._hour = hour @property - def minute(self): - """Gets the minute of this PublicFiscalYearReference. # noqa: E501 - - - :return: The minute of this PublicFiscalYearReference. # noqa: E501 - :rtype: int - """ - return self._minute - - @minute.setter - def minute(self, minute): - """Sets the minute of this PublicFiscalYearReference. - - - :param minute: The minute of this PublicFiscalYearReference. # noqa: E501 - :type minute: int - """ - - self._minute = minute - - @property - def second(self): - """Gets the second of this PublicFiscalYearReference. # noqa: E501 + def month(self): + """Gets the month of this PublicFiscalYearReference. # noqa: E501 - :return: The second of this PublicFiscalYearReference. # noqa: E501 + :return: The month of this PublicFiscalYearReference. # noqa: E501 :rtype: int """ - return self._second + return self._month - @second.setter - def second(self, second): - """Sets the second of this PublicFiscalYearReference. + @month.setter + def month(self, month): + """Sets the month of this PublicFiscalYearReference. - :param second: The second of this PublicFiscalYearReference. # noqa: E501 - :type second: int + :param month: The month of this PublicFiscalYearReference. # noqa: E501 + :type month: int """ + if self.local_vars_configuration.client_side_validation and month is None: # noqa: E501 + raise ValueError("Invalid value for `month`, must not be `None`") # noqa: E501 - self._second = second + self._month = month @property def millisecond(self): @@ -177,27 +132,30 @@ def millisecond(self, millisecond): self._millisecond = millisecond @property - def month(self): - """Gets the month of this PublicFiscalYearReference. # noqa: E501 + def reference_type(self): + """Gets the reference_type of this PublicFiscalYearReference. # noqa: E501 - :return: The month of this PublicFiscalYearReference. # noqa: E501 - :rtype: int + :return: The reference_type of this PublicFiscalYearReference. # noqa: E501 + :rtype: str """ - return self._month + return self._reference_type - @month.setter - def month(self, month): - """Sets the month of this PublicFiscalYearReference. + @reference_type.setter + def reference_type(self, reference_type): + """Sets the reference_type of this PublicFiscalYearReference. - :param month: The month of this PublicFiscalYearReference. # noqa: E501 - :type month: int + :param reference_type: The reference_type of this PublicFiscalYearReference. # noqa: E501 + :type reference_type: str """ - if self.local_vars_configuration.client_side_validation and month is None: # noqa: E501 - raise ValueError("Invalid value for `month`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and reference_type is None: # noqa: E501 + raise ValueError("Invalid value for `reference_type`, must not be `None`") # noqa: E501 + allowed_values = ["FISCAL_YEAR"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and reference_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `reference_type` ({0}), must be one of {1}".format(reference_type, allowed_values)) # noqa: E501 - self._month = month + self._reference_type = reference_type @property def day(self): @@ -222,6 +180,48 @@ def day(self, day): self._day = day + @property + def minute(self): + """Gets the minute of this PublicFiscalYearReference. # noqa: E501 + + + :return: The minute of this PublicFiscalYearReference. # noqa: E501 + :rtype: int + """ + return self._minute + + @minute.setter + def minute(self, minute): + """Sets the minute of this PublicFiscalYearReference. + + + :param minute: The minute of this PublicFiscalYearReference. # noqa: E501 + :type minute: int + """ + + self._minute = minute + + @property + def second(self): + """Gets the second of this PublicFiscalYearReference. # noqa: E501 + + + :return: The second of this PublicFiscalYearReference. # noqa: E501 + :rtype: int + """ + return self._second + + @second.setter + def second(self, second): + """Sets the second of this PublicFiscalYearReference. + + + :param second: The second of this PublicFiscalYearReference. # noqa: E501 + :type second: int + """ + + self._second = second + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_form_submission_filter.py b/hubspot/crm/lists/models/public_form_submission_filter.py index 6b2ed30b..ae93f212 100644 --- a/hubspot/crm/lists/models/public_form_submission_filter.py +++ b/hubspot/crm/lists/models/public_form_submission_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,63 +36,37 @@ class PublicFormSubmissionFilter(object): and the value is json key in definition. """ openapi_types = { - "filter_type": "str", "form_id": "str", - "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", "coalescing_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", + "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", + "filter_type": "str", "operator": "str", } - attribute_map = {"filter_type": "filterType", "form_id": "formId", "pruning_refine_by": "pruningRefineBy", "coalescing_refine_by": "coalescingRefineBy", "operator": "operator"} + attribute_map = {"form_id": "formId", "coalescing_refine_by": "coalescingRefineBy", "pruning_refine_by": "pruningRefineBy", "filter_type": "filterType", "operator": "operator"} - def __init__(self, filter_type="FORM_SUBMISSION", form_id=None, pruning_refine_by=None, coalescing_refine_by=None, operator=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, form_id=None, coalescing_refine_by=None, pruning_refine_by=None, filter_type="FORM_SUBMISSION", operator=None, local_vars_configuration=None): # noqa: E501 """PublicFormSubmissionFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None self._form_id = None - self._pruning_refine_by = None self._coalescing_refine_by = None + self._pruning_refine_by = None + self._filter_type = None self._operator = None self.discriminator = None - self.filter_type = filter_type if form_id is not None: self.form_id = form_id - if pruning_refine_by is not None: - self.pruning_refine_by = pruning_refine_by if coalescing_refine_by is not None: self.coalescing_refine_by = coalescing_refine_by + if pruning_refine_by is not None: + self.pruning_refine_by = pruning_refine_by + self.filter_type = filter_type self.operator = operator - @property - def filter_type(self): - """Gets the filter_type of this PublicFormSubmissionFilter. # noqa: E501 - - - :return: The filter_type of this PublicFormSubmissionFilter. # noqa: E501 - :rtype: str - """ - return self._filter_type - - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicFormSubmissionFilter. - - - :param filter_type: The filter_type of this PublicFormSubmissionFilter. # noqa: E501 - :type filter_type: str - """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["FORM_SUBMISSION"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - - self._filter_type = filter_type - @property def form_id(self): """Gets the form_id of this PublicFormSubmissionFilter. # noqa: E501 @@ -114,6 +88,27 @@ def form_id(self, form_id): self._form_id = form_id + @property + def coalescing_refine_by(self): + """Gets the coalescing_refine_by of this PublicFormSubmissionFilter. # noqa: E501 + + + :return: The coalescing_refine_by of this PublicFormSubmissionFilter. # noqa: E501 + :rtype: PublicEventAnalyticsFilterCoalescingRefineBy + """ + return self._coalescing_refine_by + + @coalescing_refine_by.setter + def coalescing_refine_by(self, coalescing_refine_by): + """Sets the coalescing_refine_by of this PublicFormSubmissionFilter. + + + :param coalescing_refine_by: The coalescing_refine_by of this PublicFormSubmissionFilter. # noqa: E501 + :type coalescing_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy + """ + + self._coalescing_refine_by = coalescing_refine_by + @property def pruning_refine_by(self): """Gets the pruning_refine_by of this PublicFormSubmissionFilter. # noqa: E501 @@ -136,25 +131,30 @@ def pruning_refine_by(self, pruning_refine_by): self._pruning_refine_by = pruning_refine_by @property - def coalescing_refine_by(self): - """Gets the coalescing_refine_by of this PublicFormSubmissionFilter. # noqa: E501 + def filter_type(self): + """Gets the filter_type of this PublicFormSubmissionFilter. # noqa: E501 - :return: The coalescing_refine_by of this PublicFormSubmissionFilter. # noqa: E501 - :rtype: PublicEventAnalyticsFilterCoalescingRefineBy + :return: The filter_type of this PublicFormSubmissionFilter. # noqa: E501 + :rtype: str """ - return self._coalescing_refine_by + return self._filter_type - @coalescing_refine_by.setter - def coalescing_refine_by(self, coalescing_refine_by): - """Sets the coalescing_refine_by of this PublicFormSubmissionFilter. + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicFormSubmissionFilter. - :param coalescing_refine_by: The coalescing_refine_by of this PublicFormSubmissionFilter. # noqa: E501 - :type coalescing_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy + :param filter_type: The filter_type of this PublicFormSubmissionFilter. # noqa: E501 + :type filter_type: str """ + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["FORM_SUBMISSION"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - self._coalescing_refine_by = coalescing_refine_by + self._filter_type = filter_type @property def operator(self): diff --git a/hubspot/crm/lists/models/public_form_submission_on_page_filter.py b/hubspot/crm/lists/models/public_form_submission_on_page_filter.py index 66f542b7..d20ec4f5 100644 --- a/hubspot/crm/lists/models/public_form_submission_on_page_filter.py +++ b/hubspot/crm/lists/models/public_form_submission_on_page_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,74 +36,48 @@ class PublicFormSubmissionOnPageFilter(object): and the value is json key in definition. """ openapi_types = { - "filter_type": "str", "form_id": "str", - "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", "coalescing_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", - "operator": "str", + "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", + "filter_type": "str", "page_id": "str", + "operator": "str", } attribute_map = { - "filter_type": "filterType", "form_id": "formId", - "pruning_refine_by": "pruningRefineBy", "coalescing_refine_by": "coalescingRefineBy", - "operator": "operator", + "pruning_refine_by": "pruningRefineBy", + "filter_type": "filterType", "page_id": "pageId", + "operator": "operator", } def __init__( - self, filter_type="FORM_SUBMISSION_ON_PAGE", form_id=None, pruning_refine_by=None, coalescing_refine_by=None, operator=None, page_id=None, local_vars_configuration=None + self, form_id=None, coalescing_refine_by=None, pruning_refine_by=None, filter_type="FORM_SUBMISSION_ON_PAGE", page_id=None, operator=None, local_vars_configuration=None ): # noqa: E501 """PublicFormSubmissionOnPageFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None self._form_id = None - self._pruning_refine_by = None self._coalescing_refine_by = None - self._operator = None + self._pruning_refine_by = None + self._filter_type = None self._page_id = None + self._operator = None self.discriminator = None - self.filter_type = filter_type if form_id is not None: self.form_id = form_id - if pruning_refine_by is not None: - self.pruning_refine_by = pruning_refine_by if coalescing_refine_by is not None: self.coalescing_refine_by = coalescing_refine_by - self.operator = operator + if pruning_refine_by is not None: + self.pruning_refine_by = pruning_refine_by + self.filter_type = filter_type self.page_id = page_id - - @property - def filter_type(self): - """Gets the filter_type of this PublicFormSubmissionOnPageFilter. # noqa: E501 - - - :return: The filter_type of this PublicFormSubmissionOnPageFilter. # noqa: E501 - :rtype: str - """ - return self._filter_type - - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicFormSubmissionOnPageFilter. - - - :param filter_type: The filter_type of this PublicFormSubmissionOnPageFilter. # noqa: E501 - :type filter_type: str - """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["FORM_SUBMISSION_ON_PAGE"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - - self._filter_type = filter_type + self.operator = operator @property def form_id(self): @@ -126,6 +100,27 @@ def form_id(self, form_id): self._form_id = form_id + @property + def coalescing_refine_by(self): + """Gets the coalescing_refine_by of this PublicFormSubmissionOnPageFilter. # noqa: E501 + + + :return: The coalescing_refine_by of this PublicFormSubmissionOnPageFilter. # noqa: E501 + :rtype: PublicEventAnalyticsFilterCoalescingRefineBy + """ + return self._coalescing_refine_by + + @coalescing_refine_by.setter + def coalescing_refine_by(self, coalescing_refine_by): + """Sets the coalescing_refine_by of this PublicFormSubmissionOnPageFilter. + + + :param coalescing_refine_by: The coalescing_refine_by of this PublicFormSubmissionOnPageFilter. # noqa: E501 + :type coalescing_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy + """ + + self._coalescing_refine_by = coalescing_refine_by + @property def pruning_refine_by(self): """Gets the pruning_refine_by of this PublicFormSubmissionOnPageFilter. # noqa: E501 @@ -148,25 +143,53 @@ def pruning_refine_by(self, pruning_refine_by): self._pruning_refine_by = pruning_refine_by @property - def coalescing_refine_by(self): - """Gets the coalescing_refine_by of this PublicFormSubmissionOnPageFilter. # noqa: E501 + def filter_type(self): + """Gets the filter_type of this PublicFormSubmissionOnPageFilter. # noqa: E501 - :return: The coalescing_refine_by of this PublicFormSubmissionOnPageFilter. # noqa: E501 - :rtype: PublicEventAnalyticsFilterCoalescingRefineBy + :return: The filter_type of this PublicFormSubmissionOnPageFilter. # noqa: E501 + :rtype: str """ - return self._coalescing_refine_by + return self._filter_type - @coalescing_refine_by.setter - def coalescing_refine_by(self, coalescing_refine_by): - """Sets the coalescing_refine_by of this PublicFormSubmissionOnPageFilter. + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicFormSubmissionOnPageFilter. - :param coalescing_refine_by: The coalescing_refine_by of this PublicFormSubmissionOnPageFilter. # noqa: E501 - :type coalescing_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy + :param filter_type: The filter_type of this PublicFormSubmissionOnPageFilter. # noqa: E501 + :type filter_type: str """ + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["FORM_SUBMISSION_ON_PAGE"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - self._coalescing_refine_by = coalescing_refine_by + self._filter_type = filter_type + + @property + def page_id(self): + """Gets the page_id of this PublicFormSubmissionOnPageFilter. # noqa: E501 + + + :return: The page_id of this PublicFormSubmissionOnPageFilter. # noqa: E501 + :rtype: str + """ + return self._page_id + + @page_id.setter + def page_id(self, page_id): + """Sets the page_id of this PublicFormSubmissionOnPageFilter. + + + :param page_id: The page_id of this PublicFormSubmissionOnPageFilter. # noqa: E501 + :type page_id: str + """ + if self.local_vars_configuration.client_side_validation and page_id is None: # noqa: E501 + raise ValueError("Invalid value for `page_id`, must not be `None`") # noqa: E501 + + self._page_id = page_id @property def operator(self): @@ -194,29 +217,6 @@ def operator(self, operator): self._operator = operator - @property - def page_id(self): - """Gets the page_id of this PublicFormSubmissionOnPageFilter. # noqa: E501 - - - :return: The page_id of this PublicFormSubmissionOnPageFilter. # noqa: E501 - :rtype: str - """ - return self._page_id - - @page_id.setter - def page_id(self, page_id): - """Sets the page_id of this PublicFormSubmissionOnPageFilter. - - - :param page_id: The page_id of this PublicFormSubmissionOnPageFilter. # noqa: E501 - :type page_id: str - """ - if self.local_vars_configuration.client_side_validation and page_id is None: # noqa: E501 - raise ValueError("Invalid value for `page_id`, must not be `None`") # noqa: E501 - - self._page_id = page_id - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_in_list_filter.py b/hubspot/crm/lists/models/public_in_list_filter.py index 62053fb1..35e2d133 100644 --- a/hubspot/crm/lists/models/public_in_list_filter.py +++ b/hubspot/crm/lists/models/public_in_list_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,61 +35,35 @@ class PublicInListFilter(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"filter_type": "str", "list_id": "int", "metadata": "PublicInListFilterMetadata", "operator": "str"} + openapi_types = {"list_id": "str", "metadata": "PublicInListFilterMetadata", "filter_type": "str", "operator": "str"} - attribute_map = {"filter_type": "filterType", "list_id": "listId", "metadata": "metadata", "operator": "operator"} + attribute_map = {"list_id": "listId", "metadata": "metadata", "filter_type": "filterType", "operator": "operator"} - def __init__(self, filter_type="IN_LIST", list_id=None, metadata=None, operator=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, list_id=None, metadata=None, filter_type="IN_LIST", operator=None, local_vars_configuration=None): # noqa: E501 """PublicInListFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None self._list_id = None self._metadata = None + self._filter_type = None self._operator = None self.discriminator = None - self.filter_type = filter_type self.list_id = list_id if metadata is not None: self.metadata = metadata + self.filter_type = filter_type self.operator = operator - @property - def filter_type(self): - """Gets the filter_type of this PublicInListFilter. # noqa: E501 - - - :return: The filter_type of this PublicInListFilter. # noqa: E501 - :rtype: str - """ - return self._filter_type - - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicInListFilter. - - - :param filter_type: The filter_type of this PublicInListFilter. # noqa: E501 - :type filter_type: str - """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["IN_LIST"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - - self._filter_type = filter_type - @property def list_id(self): """Gets the list_id of this PublicInListFilter. # noqa: E501 :return: The list_id of this PublicInListFilter. # noqa: E501 - :rtype: int + :rtype: str """ return self._list_id @@ -99,7 +73,7 @@ def list_id(self, list_id): :param list_id: The list_id of this PublicInListFilter. # noqa: E501 - :type list_id: int + :type list_id: str """ if self.local_vars_configuration.client_side_validation and list_id is None: # noqa: E501 raise ValueError("Invalid value for `list_id`, must not be `None`") # noqa: E501 @@ -127,6 +101,32 @@ def metadata(self, metadata): self._metadata = metadata + @property + def filter_type(self): + """Gets the filter_type of this PublicInListFilter. # noqa: E501 + + + :return: The filter_type of this PublicInListFilter. # noqa: E501 + :rtype: str + """ + return self._filter_type + + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicInListFilter. + + + :param filter_type: The filter_type of this PublicInListFilter. # noqa: E501 + :type filter_type: str + """ + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["IN_LIST"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + + self._filter_type = filter_type + @property def operator(self): """Gets the operator of this PublicInListFilter. # noqa: E501 diff --git a/hubspot/crm/lists/models/public_in_list_filter_metadata.py b/hubspot/crm/lists/models/public_in_list_filter_metadata.py index 221f78eb..d84d4a3c 100644 --- a/hubspot/crm/lists/models/public_in_list_filter_metadata.py +++ b/hubspot/crm/lists/models/public_in_list_filter_metadata.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/public_index_offset.py b/hubspot/crm/lists/models/public_index_offset.py index 62c22bb4..79f89d6e 100644 --- a/hubspot/crm/lists/models/public_index_offset.py +++ b/hubspot/crm/lists/models/public_index_offset.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,97 +35,118 @@ class PublicIndexOffset(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"years": "int", "quarters": "int", "months": "int", "weeks": "int", "days": "int", "hours": "int", "minutes": "int", "seconds": "int", "milliseconds": "int"} + openapi_types = {"milliseconds": "int", "hours": "int", "seconds": "int", "months": "int", "weeks": "int", "minutes": "int", "quarters": "int", "days": "int", "years": "int"} attribute_map = { - "years": "years", - "quarters": "quarters", + "milliseconds": "milliseconds", + "hours": "hours", + "seconds": "seconds", "months": "months", "weeks": "weeks", - "days": "days", - "hours": "hours", "minutes": "minutes", - "seconds": "seconds", - "milliseconds": "milliseconds", + "quarters": "quarters", + "days": "days", + "years": "years", } - def __init__(self, years=None, quarters=None, months=None, weeks=None, days=None, hours=None, minutes=None, seconds=None, milliseconds=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, milliseconds=None, hours=None, seconds=None, months=None, weeks=None, minutes=None, quarters=None, days=None, years=None, local_vars_configuration=None): # noqa: E501 """PublicIndexOffset - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._years = None - self._quarters = None + self._milliseconds = None + self._hours = None + self._seconds = None self._months = None self._weeks = None - self._days = None - self._hours = None self._minutes = None - self._seconds = None - self._milliseconds = None + self._quarters = None + self._days = None + self._years = None self.discriminator = None - if years is not None: - self.years = years - if quarters is not None: - self.quarters = quarters + if milliseconds is not None: + self.milliseconds = milliseconds + if hours is not None: + self.hours = hours + if seconds is not None: + self.seconds = seconds if months is not None: self.months = months if weeks is not None: self.weeks = weeks - if days is not None: - self.days = days - if hours is not None: - self.hours = hours if minutes is not None: self.minutes = minutes - if seconds is not None: - self.seconds = seconds - if milliseconds is not None: - self.milliseconds = milliseconds + if quarters is not None: + self.quarters = quarters + if days is not None: + self.days = days + if years is not None: + self.years = years @property - def years(self): - """Gets the years of this PublicIndexOffset. # noqa: E501 + def milliseconds(self): + """Gets the milliseconds of this PublicIndexOffset. # noqa: E501 - :return: The years of this PublicIndexOffset. # noqa: E501 + :return: The milliseconds of this PublicIndexOffset. # noqa: E501 :rtype: int """ - return self._years + return self._milliseconds - @years.setter - def years(self, years): - """Sets the years of this PublicIndexOffset. + @milliseconds.setter + def milliseconds(self, milliseconds): + """Sets the milliseconds of this PublicIndexOffset. - :param years: The years of this PublicIndexOffset. # noqa: E501 - :type years: int + :param milliseconds: The milliseconds of this PublicIndexOffset. # noqa: E501 + :type milliseconds: int """ - self._years = years + self._milliseconds = milliseconds @property - def quarters(self): - """Gets the quarters of this PublicIndexOffset. # noqa: E501 + def hours(self): + """Gets the hours of this PublicIndexOffset. # noqa: E501 - :return: The quarters of this PublicIndexOffset. # noqa: E501 + :return: The hours of this PublicIndexOffset. # noqa: E501 :rtype: int """ - return self._quarters + return self._hours - @quarters.setter - def quarters(self, quarters): - """Sets the quarters of this PublicIndexOffset. + @hours.setter + def hours(self, hours): + """Sets the hours of this PublicIndexOffset. - :param quarters: The quarters of this PublicIndexOffset. # noqa: E501 - :type quarters: int + :param hours: The hours of this PublicIndexOffset. # noqa: E501 + :type hours: int """ - self._quarters = quarters + self._hours = hours + + @property + def seconds(self): + """Gets the seconds of this PublicIndexOffset. # noqa: E501 + + + :return: The seconds of this PublicIndexOffset. # noqa: E501 + :rtype: int + """ + return self._seconds + + @seconds.setter + def seconds(self, seconds): + """Sets the seconds of this PublicIndexOffset. + + + :param seconds: The seconds of this PublicIndexOffset. # noqa: E501 + :type seconds: int + """ + + self._seconds = seconds @property def months(self): @@ -170,109 +191,88 @@ def weeks(self, weeks): self._weeks = weeks @property - def days(self): - """Gets the days of this PublicIndexOffset. # noqa: E501 - - - :return: The days of this PublicIndexOffset. # noqa: E501 - :rtype: int - """ - return self._days - - @days.setter - def days(self, days): - """Sets the days of this PublicIndexOffset. - - - :param days: The days of this PublicIndexOffset. # noqa: E501 - :type days: int - """ - - self._days = days - - @property - def hours(self): - """Gets the hours of this PublicIndexOffset. # noqa: E501 + def minutes(self): + """Gets the minutes of this PublicIndexOffset. # noqa: E501 - :return: The hours of this PublicIndexOffset. # noqa: E501 + :return: The minutes of this PublicIndexOffset. # noqa: E501 :rtype: int """ - return self._hours + return self._minutes - @hours.setter - def hours(self, hours): - """Sets the hours of this PublicIndexOffset. + @minutes.setter + def minutes(self, minutes): + """Sets the minutes of this PublicIndexOffset. - :param hours: The hours of this PublicIndexOffset. # noqa: E501 - :type hours: int + :param minutes: The minutes of this PublicIndexOffset. # noqa: E501 + :type minutes: int """ - self._hours = hours + self._minutes = minutes @property - def minutes(self): - """Gets the minutes of this PublicIndexOffset. # noqa: E501 + def quarters(self): + """Gets the quarters of this PublicIndexOffset. # noqa: E501 - :return: The minutes of this PublicIndexOffset. # noqa: E501 + :return: The quarters of this PublicIndexOffset. # noqa: E501 :rtype: int """ - return self._minutes + return self._quarters - @minutes.setter - def minutes(self, minutes): - """Sets the minutes of this PublicIndexOffset. + @quarters.setter + def quarters(self, quarters): + """Sets the quarters of this PublicIndexOffset. - :param minutes: The minutes of this PublicIndexOffset. # noqa: E501 - :type minutes: int + :param quarters: The quarters of this PublicIndexOffset. # noqa: E501 + :type quarters: int """ - self._minutes = minutes + self._quarters = quarters @property - def seconds(self): - """Gets the seconds of this PublicIndexOffset. # noqa: E501 + def days(self): + """Gets the days of this PublicIndexOffset. # noqa: E501 - :return: The seconds of this PublicIndexOffset. # noqa: E501 + :return: The days of this PublicIndexOffset. # noqa: E501 :rtype: int """ - return self._seconds + return self._days - @seconds.setter - def seconds(self, seconds): - """Sets the seconds of this PublicIndexOffset. + @days.setter + def days(self, days): + """Sets the days of this PublicIndexOffset. - :param seconds: The seconds of this PublicIndexOffset. # noqa: E501 - :type seconds: int + :param days: The days of this PublicIndexOffset. # noqa: E501 + :type days: int """ - self._seconds = seconds + self._days = days @property - def milliseconds(self): - """Gets the milliseconds of this PublicIndexOffset. # noqa: E501 + def years(self): + """Gets the years of this PublicIndexOffset. # noqa: E501 - :return: The milliseconds of this PublicIndexOffset. # noqa: E501 + :return: The years of this PublicIndexOffset. # noqa: E501 :rtype: int """ - return self._milliseconds + return self._years - @milliseconds.setter - def milliseconds(self, milliseconds): - """Sets the milliseconds of this PublicIndexOffset. + @years.setter + def years(self, years): + """Sets the years of this PublicIndexOffset. - :param milliseconds: The milliseconds of this PublicIndexOffset. # noqa: E501 - :type milliseconds: int + :param years: The years of this PublicIndexOffset. # noqa: E501 + :type years: int """ - self._milliseconds = milliseconds + self._years = years def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_indexed_time_point.py b/hubspot/crm/lists/models/public_indexed_time_point.py index ec8ab2c3..dae71f37 100644 --- a/hubspot/crm/lists/models/public_indexed_time_point.py +++ b/hubspot/crm/lists/models/public_indexed_time_point.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,56 +35,51 @@ class PublicIndexedTimePoint(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"time_type": "str", "timezone_source": "str", "zone_id": "str", "index_reference": "PublicIndexedTimePointIndexReference", "offset": "PublicIndexOffset"} + openapi_types = {"offset": "PublicIndexOffset", "timezone_source": "str", "index_reference": "PublicIndexedTimePointIndexReference", "time_type": "str", "zone_id": "str"} - attribute_map = {"time_type": "timeType", "timezone_source": "timezoneSource", "zone_id": "zoneId", "index_reference": "indexReference", "offset": "offset"} + attribute_map = {"offset": "offset", "timezone_source": "timezoneSource", "index_reference": "indexReference", "time_type": "timeType", "zone_id": "zoneId"} - def __init__(self, time_type="INDEXED", timezone_source=None, zone_id=None, index_reference=None, offset=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, offset=None, timezone_source=None, index_reference=None, time_type="INDEXED", zone_id=None, local_vars_configuration=None): # noqa: E501 """PublicIndexedTimePoint - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._time_type = None + self._offset = None self._timezone_source = None - self._zone_id = None self._index_reference = None - self._offset = None + self._time_type = None + self._zone_id = None self.discriminator = None - self.time_type = time_type + if offset is not None: + self.offset = offset if timezone_source is not None: self.timezone_source = timezone_source - self.zone_id = zone_id self.index_reference = index_reference - if offset is not None: - self.offset = offset + self.time_type = time_type + self.zone_id = zone_id @property - def time_type(self): - """Gets the time_type of this PublicIndexedTimePoint. # noqa: E501 + def offset(self): + """Gets the offset of this PublicIndexedTimePoint. # noqa: E501 - :return: The time_type of this PublicIndexedTimePoint. # noqa: E501 - :rtype: str + :return: The offset of this PublicIndexedTimePoint. # noqa: E501 + :rtype: PublicIndexOffset """ - return self._time_type + return self._offset - @time_type.setter - def time_type(self, time_type): - """Sets the time_type of this PublicIndexedTimePoint. + @offset.setter + def offset(self, offset): + """Sets the offset of this PublicIndexedTimePoint. - :param time_type: The time_type of this PublicIndexedTimePoint. # noqa: E501 - :type time_type: str + :param offset: The offset of this PublicIndexedTimePoint. # noqa: E501 + :type offset: PublicIndexOffset """ - if self.local_vars_configuration.client_side_validation and time_type is None: # noqa: E501 - raise ValueError("Invalid value for `time_type`, must not be `None`") # noqa: E501 - allowed_values = ["INDEXED"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and time_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `time_type` ({0}), must be one of {1}".format(time_type, allowed_values)) # noqa: E501 - self._time_type = time_type + self._offset = offset @property def timezone_source(self): @@ -107,29 +102,6 @@ def timezone_source(self, timezone_source): self._timezone_source = timezone_source - @property - def zone_id(self): - """Gets the zone_id of this PublicIndexedTimePoint. # noqa: E501 - - - :return: The zone_id of this PublicIndexedTimePoint. # noqa: E501 - :rtype: str - """ - return self._zone_id - - @zone_id.setter - def zone_id(self, zone_id): - """Sets the zone_id of this PublicIndexedTimePoint. - - - :param zone_id: The zone_id of this PublicIndexedTimePoint. # noqa: E501 - :type zone_id: str - """ - if self.local_vars_configuration.client_side_validation and zone_id is None: # noqa: E501 - raise ValueError("Invalid value for `zone_id`, must not be `None`") # noqa: E501 - - self._zone_id = zone_id - @property def index_reference(self): """Gets the index_reference of this PublicIndexedTimePoint. # noqa: E501 @@ -154,25 +126,53 @@ def index_reference(self, index_reference): self._index_reference = index_reference @property - def offset(self): - """Gets the offset of this PublicIndexedTimePoint. # noqa: E501 + def time_type(self): + """Gets the time_type of this PublicIndexedTimePoint. # noqa: E501 - :return: The offset of this PublicIndexedTimePoint. # noqa: E501 - :rtype: PublicIndexOffset + :return: The time_type of this PublicIndexedTimePoint. # noqa: E501 + :rtype: str """ - return self._offset + return self._time_type - @offset.setter - def offset(self, offset): - """Sets the offset of this PublicIndexedTimePoint. + @time_type.setter + def time_type(self, time_type): + """Sets the time_type of this PublicIndexedTimePoint. - :param offset: The offset of this PublicIndexedTimePoint. # noqa: E501 - :type offset: PublicIndexOffset + :param time_type: The time_type of this PublicIndexedTimePoint. # noqa: E501 + :type time_type: str """ + if self.local_vars_configuration.client_side_validation and time_type is None: # noqa: E501 + raise ValueError("Invalid value for `time_type`, must not be `None`") # noqa: E501 + allowed_values = ["INDEXED"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and time_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `time_type` ({0}), must be one of {1}".format(time_type, allowed_values)) # noqa: E501 - self._offset = offset + self._time_type = time_type + + @property + def zone_id(self): + """Gets the zone_id of this PublicIndexedTimePoint. # noqa: E501 + + + :return: The zone_id of this PublicIndexedTimePoint. # noqa: E501 + :rtype: str + """ + return self._zone_id + + @zone_id.setter + def zone_id(self, zone_id): + """Sets the zone_id of this PublicIndexedTimePoint. + + + :param zone_id: The zone_id of this PublicIndexedTimePoint. # noqa: E501 + :type zone_id: str + """ + if self.local_vars_configuration.client_side_validation and zone_id is None: # noqa: E501 + raise ValueError("Invalid value for `zone_id`, must not be `None`") # noqa: E501 + + self._zone_id = zone_id def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_indexed_time_point_index_reference.py b/hubspot/crm/lists/models/public_indexed_time_point_index_reference.py index f1842880..758f216f 100644 --- a/hubspot/crm/lists/models/public_indexed_time_point_index_reference.py +++ b/hubspot/crm/lists/models/public_indexed_time_point_index_reference.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,48 +35,90 @@ class PublicIndexedTimePointIndexReference(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"reference_type": "str", "hour": "int", "minute": "int", "second": "int", "millisecond": "int", "day_of_week": "str", "month": "int", "day": "int"} + openapi_types = {"hour": "int", "millisecond": "int", "reference_type": "str", "minute": "int", "second": "int", "day_of_week": "str", "month": "int", "day": "int"} attribute_map = { - "reference_type": "referenceType", "hour": "hour", + "millisecond": "millisecond", + "reference_type": "referenceType", "minute": "minute", "second": "second", - "millisecond": "millisecond", "day_of_week": "dayOfWeek", "month": "month", "day": "day", } - def __init__(self, reference_type="MONTH", hour=None, minute=None, second=None, millisecond=None, day_of_week=None, month=None, day=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, hour=None, millisecond=None, reference_type="MONTH", minute=None, second=None, day_of_week=None, month=None, day=None, local_vars_configuration=None): # noqa: E501 """PublicIndexedTimePointIndexReference - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._reference_type = None self._hour = None + self._millisecond = None + self._reference_type = None self._minute = None self._second = None - self._millisecond = None self._day_of_week = None self._month = None self._day = None self.discriminator = None - self.reference_type = reference_type if hour is not None: self.hour = hour + if millisecond is not None: + self.millisecond = millisecond + self.reference_type = reference_type if minute is not None: self.minute = minute if second is not None: self.second = second - if millisecond is not None: - self.millisecond = millisecond self.day_of_week = day_of_week self.month = month self.day = day + @property + def hour(self): + """Gets the hour of this PublicIndexedTimePointIndexReference. # noqa: E501 + + + :return: The hour of this PublicIndexedTimePointIndexReference. # noqa: E501 + :rtype: int + """ + return self._hour + + @hour.setter + def hour(self, hour): + """Sets the hour of this PublicIndexedTimePointIndexReference. + + + :param hour: The hour of this PublicIndexedTimePointIndexReference. # noqa: E501 + :type hour: int + """ + + self._hour = hour + + @property + def millisecond(self): + """Gets the millisecond of this PublicIndexedTimePointIndexReference. # noqa: E501 + + + :return: The millisecond of this PublicIndexedTimePointIndexReference. # noqa: E501 + :rtype: int + """ + return self._millisecond + + @millisecond.setter + def millisecond(self, millisecond): + """Sets the millisecond of this PublicIndexedTimePointIndexReference. + + + :param millisecond: The millisecond of this PublicIndexedTimePointIndexReference. # noqa: E501 + :type millisecond: int + """ + + self._millisecond = millisecond + @property def reference_type(self): """Gets the reference_type of this PublicIndexedTimePointIndexReference. # noqa: E501 @@ -103,27 +145,6 @@ def reference_type(self, reference_type): self._reference_type = reference_type - @property - def hour(self): - """Gets the hour of this PublicIndexedTimePointIndexReference. # noqa: E501 - - - :return: The hour of this PublicIndexedTimePointIndexReference. # noqa: E501 - :rtype: int - """ - return self._hour - - @hour.setter - def hour(self, hour): - """Sets the hour of this PublicIndexedTimePointIndexReference. - - - :param hour: The hour of this PublicIndexedTimePointIndexReference. # noqa: E501 - :type hour: int - """ - - self._hour = hour - @property def minute(self): """Gets the minute of this PublicIndexedTimePointIndexReference. # noqa: E501 @@ -166,27 +187,6 @@ def second(self, second): self._second = second - @property - def millisecond(self): - """Gets the millisecond of this PublicIndexedTimePointIndexReference. # noqa: E501 - - - :return: The millisecond of this PublicIndexedTimePointIndexReference. # noqa: E501 - :rtype: int - """ - return self._millisecond - - @millisecond.setter - def millisecond(self, millisecond): - """Sets the millisecond of this PublicIndexedTimePointIndexReference. - - - :param millisecond: The millisecond of this PublicIndexedTimePointIndexReference. # noqa: E501 - :type millisecond: int - """ - - self._millisecond = millisecond - @property def day_of_week(self): """Gets the day_of_week of this PublicIndexedTimePointIndexReference. # noqa: E501 diff --git a/hubspot/crm/lists/models/public_integration_event_filter.py b/hubspot/crm/lists/models/public_integration_event_filter.py index 12df87de..8e663ac0 100644 --- a/hubspot/crm/lists/models/public_integration_event_filter.py +++ b/hubspot/crm/lists/models/public_integration_event_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,50 +35,24 @@ class PublicIntegrationEventFilter(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"filter_type": "str", "event_type_id": "int", "filter_lines": "list[PublicEventFilterMetadata]"} + openapi_types = {"event_type_id": "int", "filter_lines": "list[PublicEventFilterMetadata]", "filter_type": "str"} - attribute_map = {"filter_type": "filterType", "event_type_id": "eventTypeId", "filter_lines": "filterLines"} + attribute_map = {"event_type_id": "eventTypeId", "filter_lines": "filterLines", "filter_type": "filterType"} - def __init__(self, filter_type="INTEGRATION_EVENT", event_type_id=None, filter_lines=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, event_type_id=None, filter_lines=None, filter_type="INTEGRATION_EVENT", local_vars_configuration=None): # noqa: E501 """PublicIntegrationEventFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None self._event_type_id = None self._filter_lines = None + self._filter_type = None self.discriminator = None - self.filter_type = filter_type self.event_type_id = event_type_id self.filter_lines = filter_lines - - @property - def filter_type(self): - """Gets the filter_type of this PublicIntegrationEventFilter. # noqa: E501 - - - :return: The filter_type of this PublicIntegrationEventFilter. # noqa: E501 - :rtype: str - """ - return self._filter_type - - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicIntegrationEventFilter. - - - :param filter_type: The filter_type of this PublicIntegrationEventFilter. # noqa: E501 - :type filter_type: str - """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["INTEGRATION_EVENT"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - - self._filter_type = filter_type + self.filter_type = filter_type @property def event_type_id(self): @@ -126,6 +100,32 @@ def filter_lines(self, filter_lines): self._filter_lines = filter_lines + @property + def filter_type(self): + """Gets the filter_type of this PublicIntegrationEventFilter. # noqa: E501 + + + :return: The filter_type of this PublicIntegrationEventFilter. # noqa: E501 + :rtype: str + """ + return self._filter_type + + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicIntegrationEventFilter. + + + :param filter_type: The filter_type of this PublicIntegrationEventFilter. # noqa: E501 + :type filter_type: str + """ + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["INTEGRATION_EVENT"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + + self._filter_type = filter_type + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_month_reference.py b/hubspot/crm/lists/models/public_month_reference.py index e1f2cfe5..d015e696 100644 --- a/hubspot/crm/lists/models/public_month_reference.py +++ b/hubspot/crm/lists/models/public_month_reference.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,34 +35,76 @@ class PublicMonthReference(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"reference_type": "str", "hour": "int", "minute": "int", "second": "int", "millisecond": "int", "day": "int"} + openapi_types = {"hour": "int", "millisecond": "int", "reference_type": "str", "day": "int", "minute": "int", "second": "int"} - attribute_map = {"reference_type": "referenceType", "hour": "hour", "minute": "minute", "second": "second", "millisecond": "millisecond", "day": "day"} + attribute_map = {"hour": "hour", "millisecond": "millisecond", "reference_type": "referenceType", "day": "day", "minute": "minute", "second": "second"} - def __init__(self, reference_type="MONTH", hour=None, minute=None, second=None, millisecond=None, day=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, hour=None, millisecond=None, reference_type="MONTH", day=None, minute=None, second=None, local_vars_configuration=None): # noqa: E501 """PublicMonthReference - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._reference_type = None self._hour = None - self._minute = None - self._second = None self._millisecond = None + self._reference_type = None self._day = None + self._minute = None + self._second = None self.discriminator = None - self.reference_type = reference_type if hour is not None: self.hour = hour + if millisecond is not None: + self.millisecond = millisecond + self.reference_type = reference_type + self.day = day if minute is not None: self.minute = minute if second is not None: self.second = second - if millisecond is not None: - self.millisecond = millisecond - self.day = day + + @property + def hour(self): + """Gets the hour of this PublicMonthReference. # noqa: E501 + + + :return: The hour of this PublicMonthReference. # noqa: E501 + :rtype: int + """ + return self._hour + + @hour.setter + def hour(self, hour): + """Sets the hour of this PublicMonthReference. + + + :param hour: The hour of this PublicMonthReference. # noqa: E501 + :type hour: int + """ + + self._hour = hour + + @property + def millisecond(self): + """Gets the millisecond of this PublicMonthReference. # noqa: E501 + + + :return: The millisecond of this PublicMonthReference. # noqa: E501 + :rtype: int + """ + return self._millisecond + + @millisecond.setter + def millisecond(self, millisecond): + """Sets the millisecond of this PublicMonthReference. + + + :param millisecond: The millisecond of this PublicMonthReference. # noqa: E501 + :type millisecond: int + """ + + self._millisecond = millisecond @property def reference_type(self): @@ -91,25 +133,27 @@ def reference_type(self, reference_type): self._reference_type = reference_type @property - def hour(self): - """Gets the hour of this PublicMonthReference. # noqa: E501 + def day(self): + """Gets the day of this PublicMonthReference. # noqa: E501 - :return: The hour of this PublicMonthReference. # noqa: E501 + :return: The day of this PublicMonthReference. # noqa: E501 :rtype: int """ - return self._hour + return self._day - @hour.setter - def hour(self, hour): - """Sets the hour of this PublicMonthReference. + @day.setter + def day(self, day): + """Sets the day of this PublicMonthReference. - :param hour: The hour of this PublicMonthReference. # noqa: E501 - :type hour: int + :param day: The day of this PublicMonthReference. # noqa: E501 + :type day: int """ + if self.local_vars_configuration.client_side_validation and day is None: # noqa: E501 + raise ValueError("Invalid value for `day`, must not be `None`") # noqa: E501 - self._hour = hour + self._day = day @property def minute(self): @@ -153,50 +197,6 @@ def second(self, second): self._second = second - @property - def millisecond(self): - """Gets the millisecond of this PublicMonthReference. # noqa: E501 - - - :return: The millisecond of this PublicMonthReference. # noqa: E501 - :rtype: int - """ - return self._millisecond - - @millisecond.setter - def millisecond(self, millisecond): - """Sets the millisecond of this PublicMonthReference. - - - :param millisecond: The millisecond of this PublicMonthReference. # noqa: E501 - :type millisecond: int - """ - - self._millisecond = millisecond - - @property - def day(self): - """Gets the day of this PublicMonthReference. # noqa: E501 - - - :return: The day of this PublicMonthReference. # noqa: E501 - :rtype: int - """ - return self._day - - @day.setter - def day(self, day): - """Sets the day of this PublicMonthReference. - - - :param day: The day of this PublicMonthReference. # noqa: E501 - :type day: int - """ - if self.local_vars_configuration.client_side_validation and day is None: # noqa: E501 - raise ValueError("Invalid value for `day`, must not be `None`") # noqa: E501 - - self._day = day - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_multi_string_property_operation.py b/hubspot/crm/lists/models/public_multi_string_property_operation.py index aa0d53c7..1b733f65 100644 --- a/hubspot/crm/lists/models/public_multi_string_property_operation.py +++ b/hubspot/crm/lists/models/public_multi_string_property_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,26 +35,72 @@ class PublicMultiStringPropertyOperation(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"operation_type": "str", "operator": "str", "include_objects_with_no_value_set": "bool", "values": "list[str]"} + openapi_types = {"include_objects_with_no_value_set": "bool", "values": "list[str]", "operation_type": "str", "operator": "str"} - attribute_map = {"operation_type": "operationType", "operator": "operator", "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "values": "values"} + attribute_map = {"include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "values": "values", "operation_type": "operationType", "operator": "operator"} - def __init__(self, operation_type="MULTISTRING", operator=None, include_objects_with_no_value_set=None, values=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, include_objects_with_no_value_set=None, values=None, operation_type="MULTISTRING", operator=None, local_vars_configuration=None): # noqa: E501 """PublicMultiStringPropertyOperation - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._operation_type = None - self._operator = None self._include_objects_with_no_value_set = None self._values = None + self._operation_type = None + self._operator = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator self.include_objects_with_no_value_set = include_objects_with_no_value_set self.values = values + self.operation_type = operation_type + self.operator = operator + + @property + def include_objects_with_no_value_set(self): + """Gets the include_objects_with_no_value_set of this PublicMultiStringPropertyOperation. # noqa: E501 + + + :return: The include_objects_with_no_value_set of this PublicMultiStringPropertyOperation. # noqa: E501 + :rtype: bool + """ + return self._include_objects_with_no_value_set + + @include_objects_with_no_value_set.setter + def include_objects_with_no_value_set(self, include_objects_with_no_value_set): + """Sets the include_objects_with_no_value_set of this PublicMultiStringPropertyOperation. + + + :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicMultiStringPropertyOperation. # noqa: E501 + :type include_objects_with_no_value_set: bool + """ + if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 + raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 + + self._include_objects_with_no_value_set = include_objects_with_no_value_set + + @property + def values(self): + """Gets the values of this PublicMultiStringPropertyOperation. # noqa: E501 + + + :return: The values of this PublicMultiStringPropertyOperation. # noqa: E501 + :rtype: list[str] + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this PublicMultiStringPropertyOperation. + + + :param values: The values of this PublicMultiStringPropertyOperation. # noqa: E501 + :type values: list[str] + """ + if self.local_vars_configuration.client_side_validation and values is None: # noqa: E501 + raise ValueError("Invalid value for `values`, must not be `None`") # noqa: E501 + + self._values = values @property def operation_type(self): @@ -105,52 +151,6 @@ def operator(self, operator): self._operator = operator - @property - def include_objects_with_no_value_set(self): - """Gets the include_objects_with_no_value_set of this PublicMultiStringPropertyOperation. # noqa: E501 - - - :return: The include_objects_with_no_value_set of this PublicMultiStringPropertyOperation. # noqa: E501 - :rtype: bool - """ - return self._include_objects_with_no_value_set - - @include_objects_with_no_value_set.setter - def include_objects_with_no_value_set(self, include_objects_with_no_value_set): - """Sets the include_objects_with_no_value_set of this PublicMultiStringPropertyOperation. - - - :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicMultiStringPropertyOperation. # noqa: E501 - :type include_objects_with_no_value_set: bool - """ - if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 - raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 - - self._include_objects_with_no_value_set = include_objects_with_no_value_set - - @property - def values(self): - """Gets the values of this PublicMultiStringPropertyOperation. # noqa: E501 - - - :return: The values of this PublicMultiStringPropertyOperation. # noqa: E501 - :rtype: list[str] - """ - return self._values - - @values.setter - def values(self, values): - """Sets the values of this PublicMultiStringPropertyOperation. - - - :param values: The values of this PublicMultiStringPropertyOperation. # noqa: E501 - :type values: list[str] - """ - if self.local_vars_configuration.client_side_validation and values is None: # noqa: E501 - raise ValueError("Invalid value for `values`, must not be `None`") # noqa: E501 - - self._values = values - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_not_all_filter_branch.py b/hubspot/crm/lists/models/public_not_all_filter_branch.py index 8f35dee0..a20f56f9 100644 --- a/hubspot/crm/lists/models/public_not_all_filter_branch.py +++ b/hubspot/crm/lists/models/public_not_all_filter_branch.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -37,28 +37,28 @@ class PublicNotAllFilterBranch(object): """ openapi_types = { "filter_branch_type": "str", - "filter_branch_operator": "str", "filter_branches": "list[PublicPropertyAssociationFilterBranchFilterBranchesInner]", + "filter_branch_operator": "str", "filters": "list[PublicPropertyAssociationFilterBranchFiltersInner]", } - attribute_map = {"filter_branch_type": "filterBranchType", "filter_branch_operator": "filterBranchOperator", "filter_branches": "filterBranches", "filters": "filters"} + attribute_map = {"filter_branch_type": "filterBranchType", "filter_branches": "filterBranches", "filter_branch_operator": "filterBranchOperator", "filters": "filters"} - def __init__(self, filter_branch_type="NOT_ALL", filter_branch_operator=None, filter_branches=None, filters=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, filter_branch_type="NOT_ALL", filter_branches=None, filter_branch_operator=None, filters=None, local_vars_configuration=None): # noqa: E501 """PublicNotAllFilterBranch - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration self._filter_branch_type = None - self._filter_branch_operator = None self._filter_branches = None + self._filter_branch_operator = None self._filters = None self.discriminator = None self.filter_branch_type = filter_branch_type - self.filter_branch_operator = filter_branch_operator self.filter_branches = filter_branches + self.filter_branch_operator = filter_branch_operator self.filters = filters @property @@ -87,29 +87,6 @@ def filter_branch_type(self, filter_branch_type): self._filter_branch_type = filter_branch_type - @property - def filter_branch_operator(self): - """Gets the filter_branch_operator of this PublicNotAllFilterBranch. # noqa: E501 - - - :return: The filter_branch_operator of this PublicNotAllFilterBranch. # noqa: E501 - :rtype: str - """ - return self._filter_branch_operator - - @filter_branch_operator.setter - def filter_branch_operator(self, filter_branch_operator): - """Sets the filter_branch_operator of this PublicNotAllFilterBranch. - - - :param filter_branch_operator: The filter_branch_operator of this PublicNotAllFilterBranch. # noqa: E501 - :type filter_branch_operator: str - """ - if self.local_vars_configuration.client_side_validation and filter_branch_operator is None: # noqa: E501 - raise ValueError("Invalid value for `filter_branch_operator`, must not be `None`") # noqa: E501 - - self._filter_branch_operator = filter_branch_operator - @property def filter_branches(self): """Gets the filter_branches of this PublicNotAllFilterBranch. # noqa: E501 @@ -133,6 +110,29 @@ def filter_branches(self, filter_branches): self._filter_branches = filter_branches + @property + def filter_branch_operator(self): + """Gets the filter_branch_operator of this PublicNotAllFilterBranch. # noqa: E501 + + + :return: The filter_branch_operator of this PublicNotAllFilterBranch. # noqa: E501 + :rtype: str + """ + return self._filter_branch_operator + + @filter_branch_operator.setter + def filter_branch_operator(self, filter_branch_operator): + """Sets the filter_branch_operator of this PublicNotAllFilterBranch. + + + :param filter_branch_operator: The filter_branch_operator of this PublicNotAllFilterBranch. # noqa: E501 + :type filter_branch_operator: str + """ + if self.local_vars_configuration.client_side_validation and filter_branch_operator is None: # noqa: E501 + raise ValueError("Invalid value for `filter_branch_operator`, must not be `None`") # noqa: E501 + + self._filter_branch_operator = filter_branch_operator + @property def filters(self): """Gets the filters of this PublicNotAllFilterBranch. # noqa: E501 diff --git a/hubspot/crm/lists/models/public_not_any_filter_branch.py b/hubspot/crm/lists/models/public_not_any_filter_branch.py index 78a75c97..596b6f23 100644 --- a/hubspot/crm/lists/models/public_not_any_filter_branch.py +++ b/hubspot/crm/lists/models/public_not_any_filter_branch.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -37,28 +37,28 @@ class PublicNotAnyFilterBranch(object): """ openapi_types = { "filter_branch_type": "str", - "filter_branch_operator": "str", "filter_branches": "list[PublicPropertyAssociationFilterBranchFilterBranchesInner]", + "filter_branch_operator": "str", "filters": "list[PublicPropertyAssociationFilterBranchFiltersInner]", } - attribute_map = {"filter_branch_type": "filterBranchType", "filter_branch_operator": "filterBranchOperator", "filter_branches": "filterBranches", "filters": "filters"} + attribute_map = {"filter_branch_type": "filterBranchType", "filter_branches": "filterBranches", "filter_branch_operator": "filterBranchOperator", "filters": "filters"} - def __init__(self, filter_branch_type="NOT_ANY", filter_branch_operator=None, filter_branches=None, filters=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, filter_branch_type="NOT_ANY", filter_branches=None, filter_branch_operator=None, filters=None, local_vars_configuration=None): # noqa: E501 """PublicNotAnyFilterBranch - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration self._filter_branch_type = None - self._filter_branch_operator = None self._filter_branches = None + self._filter_branch_operator = None self._filters = None self.discriminator = None self.filter_branch_type = filter_branch_type - self.filter_branch_operator = filter_branch_operator self.filter_branches = filter_branches + self.filter_branch_operator = filter_branch_operator self.filters = filters @property @@ -87,29 +87,6 @@ def filter_branch_type(self, filter_branch_type): self._filter_branch_type = filter_branch_type - @property - def filter_branch_operator(self): - """Gets the filter_branch_operator of this PublicNotAnyFilterBranch. # noqa: E501 - - - :return: The filter_branch_operator of this PublicNotAnyFilterBranch. # noqa: E501 - :rtype: str - """ - return self._filter_branch_operator - - @filter_branch_operator.setter - def filter_branch_operator(self, filter_branch_operator): - """Sets the filter_branch_operator of this PublicNotAnyFilterBranch. - - - :param filter_branch_operator: The filter_branch_operator of this PublicNotAnyFilterBranch. # noqa: E501 - :type filter_branch_operator: str - """ - if self.local_vars_configuration.client_side_validation and filter_branch_operator is None: # noqa: E501 - raise ValueError("Invalid value for `filter_branch_operator`, must not be `None`") # noqa: E501 - - self._filter_branch_operator = filter_branch_operator - @property def filter_branches(self): """Gets the filter_branches of this PublicNotAnyFilterBranch. # noqa: E501 @@ -133,6 +110,29 @@ def filter_branches(self, filter_branches): self._filter_branches = filter_branches + @property + def filter_branch_operator(self): + """Gets the filter_branch_operator of this PublicNotAnyFilterBranch. # noqa: E501 + + + :return: The filter_branch_operator of this PublicNotAnyFilterBranch. # noqa: E501 + :rtype: str + """ + return self._filter_branch_operator + + @filter_branch_operator.setter + def filter_branch_operator(self, filter_branch_operator): + """Sets the filter_branch_operator of this PublicNotAnyFilterBranch. + + + :param filter_branch_operator: The filter_branch_operator of this PublicNotAnyFilterBranch. # noqa: E501 + :type filter_branch_operator: str + """ + if self.local_vars_configuration.client_side_validation and filter_branch_operator is None: # noqa: E501 + raise ValueError("Invalid value for `filter_branch_operator`, must not be `None`") # noqa: E501 + + self._filter_branch_operator = filter_branch_operator + @property def filters(self): """Gets the filters of this PublicNotAnyFilterBranch. # noqa: E501 diff --git a/hubspot/crm/lists/models/public_now_reference.py b/hubspot/crm/lists/models/public_now_reference.py index 790cadc1..9604b3ea 100644 --- a/hubspot/crm/lists/models/public_now_reference.py +++ b/hubspot/crm/lists/models/public_now_reference.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,32 +35,74 @@ class PublicNowReference(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"reference_type": "str", "hour": "int", "minute": "int", "second": "int", "millisecond": "int"} + openapi_types = {"hour": "int", "millisecond": "int", "reference_type": "str", "minute": "int", "second": "int"} - attribute_map = {"reference_type": "referenceType", "hour": "hour", "minute": "minute", "second": "second", "millisecond": "millisecond"} + attribute_map = {"hour": "hour", "millisecond": "millisecond", "reference_type": "referenceType", "minute": "minute", "second": "second"} - def __init__(self, reference_type="NOW", hour=None, minute=None, second=None, millisecond=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, hour=None, millisecond=None, reference_type="NOW", minute=None, second=None, local_vars_configuration=None): # noqa: E501 """PublicNowReference - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._reference_type = None self._hour = None + self._millisecond = None + self._reference_type = None self._minute = None self._second = None - self._millisecond = None self.discriminator = None - self.reference_type = reference_type if hour is not None: self.hour = hour + if millisecond is not None: + self.millisecond = millisecond + self.reference_type = reference_type if minute is not None: self.minute = minute if second is not None: self.second = second - if millisecond is not None: - self.millisecond = millisecond + + @property + def hour(self): + """Gets the hour of this PublicNowReference. # noqa: E501 + + + :return: The hour of this PublicNowReference. # noqa: E501 + :rtype: int + """ + return self._hour + + @hour.setter + def hour(self, hour): + """Sets the hour of this PublicNowReference. + + + :param hour: The hour of this PublicNowReference. # noqa: E501 + :type hour: int + """ + + self._hour = hour + + @property + def millisecond(self): + """Gets the millisecond of this PublicNowReference. # noqa: E501 + + + :return: The millisecond of this PublicNowReference. # noqa: E501 + :rtype: int + """ + return self._millisecond + + @millisecond.setter + def millisecond(self, millisecond): + """Sets the millisecond of this PublicNowReference. + + + :param millisecond: The millisecond of this PublicNowReference. # noqa: E501 + :type millisecond: int + """ + + self._millisecond = millisecond @property def reference_type(self): @@ -88,27 +130,6 @@ def reference_type(self, reference_type): self._reference_type = reference_type - @property - def hour(self): - """Gets the hour of this PublicNowReference. # noqa: E501 - - - :return: The hour of this PublicNowReference. # noqa: E501 - :rtype: int - """ - return self._hour - - @hour.setter - def hour(self, hour): - """Sets the hour of this PublicNowReference. - - - :param hour: The hour of this PublicNowReference. # noqa: E501 - :type hour: int - """ - - self._hour = hour - @property def minute(self): """Gets the minute of this PublicNowReference. # noqa: E501 @@ -151,27 +172,6 @@ def second(self, second): self._second = second - @property - def millisecond(self): - """Gets the millisecond of this PublicNowReference. # noqa: E501 - - - :return: The millisecond of this PublicNowReference. # noqa: E501 - :rtype: int - """ - return self._millisecond - - @millisecond.setter - def millisecond(self, millisecond): - """Sets the millisecond of this PublicNowReference. - - - :param millisecond: The millisecond of this PublicNowReference. # noqa: E501 - :type millisecond: int - """ - - self._millisecond = millisecond - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_num_associations_filter.py b/hubspot/crm/lists/models/public_num_associations_filter.py index 3cb39f8c..29391fbc 100644 --- a/hubspot/crm/lists/models/public_num_associations_filter.py +++ b/hubspot/crm/lists/models/public_num_associations_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,52 +35,49 @@ class PublicNumAssociationsFilter(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"filter_type": "str", "association_type_id": "int", "association_category": "str", "coalescing_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy"} + openapi_types = {"coalescing_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", "association_type_id": "int", "association_category": "str", "filter_type": "str"} - attribute_map = {"filter_type": "filterType", "association_type_id": "associationTypeId", "association_category": "associationCategory", "coalescing_refine_by": "coalescingRefineBy"} + attribute_map = {"coalescing_refine_by": "coalescingRefineBy", "association_type_id": "associationTypeId", "association_category": "associationCategory", "filter_type": "filterType"} - def __init__(self, filter_type="NUM_ASSOCIATIONS", association_type_id=None, association_category=None, coalescing_refine_by=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, coalescing_refine_by=None, association_type_id=None, association_category=None, filter_type="NUM_ASSOCIATIONS", local_vars_configuration=None): # noqa: E501 """PublicNumAssociationsFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None + self._coalescing_refine_by = None self._association_type_id = None self._association_category = None - self._coalescing_refine_by = None + self._filter_type = None self.discriminator = None - self.filter_type = filter_type + self.coalescing_refine_by = coalescing_refine_by self.association_type_id = association_type_id self.association_category = association_category - self.coalescing_refine_by = coalescing_refine_by + self.filter_type = filter_type @property - def filter_type(self): - """Gets the filter_type of this PublicNumAssociationsFilter. # noqa: E501 + def coalescing_refine_by(self): + """Gets the coalescing_refine_by of this PublicNumAssociationsFilter. # noqa: E501 - :return: The filter_type of this PublicNumAssociationsFilter. # noqa: E501 - :rtype: str + :return: The coalescing_refine_by of this PublicNumAssociationsFilter. # noqa: E501 + :rtype: PublicEventAnalyticsFilterCoalescingRefineBy """ - return self._filter_type + return self._coalescing_refine_by - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicNumAssociationsFilter. + @coalescing_refine_by.setter + def coalescing_refine_by(self, coalescing_refine_by): + """Sets the coalescing_refine_by of this PublicNumAssociationsFilter. - :param filter_type: The filter_type of this PublicNumAssociationsFilter. # noqa: E501 - :type filter_type: str + :param coalescing_refine_by: The coalescing_refine_by of this PublicNumAssociationsFilter. # noqa: E501 + :type coalescing_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["NUM_ASSOCIATIONS"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + if self.local_vars_configuration.client_side_validation and coalescing_refine_by is None: # noqa: E501 + raise ValueError("Invalid value for `coalescing_refine_by`, must not be `None`") # noqa: E501 - self._filter_type = filter_type + self._coalescing_refine_by = coalescing_refine_by @property def association_type_id(self): @@ -129,27 +126,30 @@ def association_category(self, association_category): self._association_category = association_category @property - def coalescing_refine_by(self): - """Gets the coalescing_refine_by of this PublicNumAssociationsFilter. # noqa: E501 + def filter_type(self): + """Gets the filter_type of this PublicNumAssociationsFilter. # noqa: E501 - :return: The coalescing_refine_by of this PublicNumAssociationsFilter. # noqa: E501 - :rtype: PublicEventAnalyticsFilterCoalescingRefineBy + :return: The filter_type of this PublicNumAssociationsFilter. # noqa: E501 + :rtype: str """ - return self._coalescing_refine_by + return self._filter_type - @coalescing_refine_by.setter - def coalescing_refine_by(self, coalescing_refine_by): - """Sets the coalescing_refine_by of this PublicNumAssociationsFilter. + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicNumAssociationsFilter. - :param coalescing_refine_by: The coalescing_refine_by of this PublicNumAssociationsFilter. # noqa: E501 - :type coalescing_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy + :param filter_type: The filter_type of this PublicNumAssociationsFilter. # noqa: E501 + :type filter_type: str """ - if self.local_vars_configuration.client_side_validation and coalescing_refine_by is None: # noqa: E501 - raise ValueError("Invalid value for `coalescing_refine_by`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["NUM_ASSOCIATIONS"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - self._coalescing_refine_by = coalescing_refine_by + self._filter_type = filter_type def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_num_occurrences_refine_by.py b/hubspot/crm/lists/models/public_num_occurrences_refine_by.py index b9985dbb..aca84862 100644 --- a/hubspot/crm/lists/models/public_num_occurrences_refine_by.py +++ b/hubspot/crm/lists/models/public_num_occurrences_refine_by.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,26 +35,47 @@ class PublicNumOccurrencesRefineBy(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"type": "str", "min_occurrences": "int", "max_occurrences": "int"} + openapi_types = {"max_occurrences": "int", "type": "str", "min_occurrences": "int"} - attribute_map = {"type": "type", "min_occurrences": "minOccurrences", "max_occurrences": "maxOccurrences"} + attribute_map = {"max_occurrences": "maxOccurrences", "type": "type", "min_occurrences": "minOccurrences"} - def __init__(self, type="NUM_OCCURRENCES", min_occurrences=None, max_occurrences=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, max_occurrences=None, type="NUM_OCCURRENCES", min_occurrences=None, local_vars_configuration=None): # noqa: E501 """PublicNumOccurrencesRefineBy - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration + self._max_occurrences = None self._type = None self._min_occurrences = None - self._max_occurrences = None self.discriminator = None + if max_occurrences is not None: + self.max_occurrences = max_occurrences self.type = type if min_occurrences is not None: self.min_occurrences = min_occurrences - if max_occurrences is not None: - self.max_occurrences = max_occurrences + + @property + def max_occurrences(self): + """Gets the max_occurrences of this PublicNumOccurrencesRefineBy. # noqa: E501 + + + :return: The max_occurrences of this PublicNumOccurrencesRefineBy. # noqa: E501 + :rtype: int + """ + return self._max_occurrences + + @max_occurrences.setter + def max_occurrences(self, max_occurrences): + """Sets the max_occurrences of this PublicNumOccurrencesRefineBy. + + + :param max_occurrences: The max_occurrences of this PublicNumOccurrencesRefineBy. # noqa: E501 + :type max_occurrences: int + """ + + self._max_occurrences = max_occurrences @property def type(self): @@ -103,27 +124,6 @@ def min_occurrences(self, min_occurrences): self._min_occurrences = min_occurrences - @property - def max_occurrences(self): - """Gets the max_occurrences of this PublicNumOccurrencesRefineBy. # noqa: E501 - - - :return: The max_occurrences of this PublicNumOccurrencesRefineBy. # noqa: E501 - :rtype: int - """ - return self._max_occurrences - - @max_occurrences.setter - def max_occurrences(self, max_occurrences): - """Sets the max_occurrences of this PublicNumOccurrencesRefineBy. - - - :param max_occurrences: The max_occurrences of this PublicNumOccurrencesRefineBy. # noqa: E501 - :type max_occurrences: int - """ - - self._max_occurrences = max_occurrences - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_number_property_operation.py b/hubspot/crm/lists/models/public_number_property_operation.py index 51e8364e..ccdb2053 100644 --- a/hubspot/crm/lists/models/public_number_property_operation.py +++ b/hubspot/crm/lists/models/public_number_property_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,26 +35,49 @@ class PublicNumberPropertyOperation(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"operation_type": "str", "operator": "str", "include_objects_with_no_value_set": "bool", "value": "float"} + openapi_types = {"include_objects_with_no_value_set": "bool", "operation_type": "str", "value": "float", "operator": "str"} - attribute_map = {"operation_type": "operationType", "operator": "operator", "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "value": "value"} + attribute_map = {"include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "operation_type": "operationType", "value": "value", "operator": "operator"} - def __init__(self, operation_type="NUMBER", operator=None, include_objects_with_no_value_set=None, value=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, include_objects_with_no_value_set=None, operation_type="NUMBER", value=None, operator=None, local_vars_configuration=None): # noqa: E501 """PublicNumberPropertyOperation - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._operation_type = None - self._operator = None self._include_objects_with_no_value_set = None + self._operation_type = None self._value = None + self._operator = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator self.include_objects_with_no_value_set = include_objects_with_no_value_set + self.operation_type = operation_type self.value = value + self.operator = operator + + @property + def include_objects_with_no_value_set(self): + """Gets the include_objects_with_no_value_set of this PublicNumberPropertyOperation. # noqa: E501 + + + :return: The include_objects_with_no_value_set of this PublicNumberPropertyOperation. # noqa: E501 + :rtype: bool + """ + return self._include_objects_with_no_value_set + + @include_objects_with_no_value_set.setter + def include_objects_with_no_value_set(self, include_objects_with_no_value_set): + """Sets the include_objects_with_no_value_set of this PublicNumberPropertyOperation. + + + :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicNumberPropertyOperation. # noqa: E501 + :type include_objects_with_no_value_set: bool + """ + if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 + raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 + + self._include_objects_with_no_value_set = include_objects_with_no_value_set @property def operation_type(self): @@ -82,52 +105,6 @@ def operation_type(self, operation_type): self._operation_type = operation_type - @property - def operator(self): - """Gets the operator of this PublicNumberPropertyOperation. # noqa: E501 - - - :return: The operator of this PublicNumberPropertyOperation. # noqa: E501 - :rtype: str - """ - return self._operator - - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicNumberPropertyOperation. - - - :param operator: The operator of this PublicNumberPropertyOperation. # noqa: E501 - :type operator: str - """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - - self._operator = operator - - @property - def include_objects_with_no_value_set(self): - """Gets the include_objects_with_no_value_set of this PublicNumberPropertyOperation. # noqa: E501 - - - :return: The include_objects_with_no_value_set of this PublicNumberPropertyOperation. # noqa: E501 - :rtype: bool - """ - return self._include_objects_with_no_value_set - - @include_objects_with_no_value_set.setter - def include_objects_with_no_value_set(self, include_objects_with_no_value_set): - """Sets the include_objects_with_no_value_set of this PublicNumberPropertyOperation. - - - :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicNumberPropertyOperation. # noqa: E501 - :type include_objects_with_no_value_set: bool - """ - if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 - raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 - - self._include_objects_with_no_value_set = include_objects_with_no_value_set - @property def value(self): """Gets the value of this PublicNumberPropertyOperation. # noqa: E501 @@ -151,6 +128,29 @@ def value(self, value): self._value = value + @property + def operator(self): + """Gets the operator of this PublicNumberPropertyOperation. # noqa: E501 + + + :return: The operator of this PublicNumberPropertyOperation. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicNumberPropertyOperation. + + + :param operator: The operator of this PublicNumberPropertyOperation. # noqa: E501 + :type operator: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + + self._operator = operator + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_object_list.py b/hubspot/crm/lists/models/public_object_list.py index 83556fa7..148054d2 100644 --- a/hubspot/crm/lists/models/public_object_list.py +++ b/hubspot/crm/lists/models/public_object_list.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -38,15 +38,15 @@ class PublicObjectList(object): openapi_types = { "processing_type": "str", "object_type_id": "str", - "updated_by_id": "int", + "updated_by_id": "str", "filters_updated_at": "datetime", - "list_id": "int", + "list_id": "str", "created_at": "datetime", "processing_status": "str", "deleted_at": "datetime", "list_version": "int", "name": "str", - "created_by_id": "int", + "created_by_id": "str", "filter_branch": "PublicPropertyAssociationFilterBranchFilterBranchesInner", "updated_at": "datetime", } @@ -182,7 +182,7 @@ def updated_by_id(self): The ID of the user that last updated the list. # noqa: E501 :return: The updated_by_id of this PublicObjectList. # noqa: E501 - :rtype: int + :rtype: str """ return self._updated_by_id @@ -193,7 +193,7 @@ def updated_by_id(self, updated_by_id): The ID of the user that last updated the list. # noqa: E501 :param updated_by_id: The updated_by_id of this PublicObjectList. # noqa: E501 - :type updated_by_id: int + :type updated_by_id: str """ self._updated_by_id = updated_by_id @@ -228,7 +228,7 @@ def list_id(self): The **ILS ID** of the list. # noqa: E501 :return: The list_id of this PublicObjectList. # noqa: E501 - :rtype: int + :rtype: str """ return self._list_id @@ -239,7 +239,7 @@ def list_id(self, list_id): The **ILS ID** of the list. # noqa: E501 :param list_id: The list_id of this PublicObjectList. # noqa: E501 - :type list_id: int + :type list_id: str """ if self.local_vars_configuration.client_side_validation and list_id is None: # noqa: E501 raise ValueError("Invalid value for `list_id`, must not be `None`") # noqa: E501 @@ -374,7 +374,7 @@ def created_by_id(self): The ID of the user that created the list. # noqa: E501 :return: The created_by_id of this PublicObjectList. # noqa: E501 - :rtype: int + :rtype: str """ return self._created_by_id @@ -385,7 +385,7 @@ def created_by_id(self, created_by_id): The ID of the user that created the list. # noqa: E501 :param created_by_id: The created_by_id of this PublicObjectList. # noqa: E501 - :type created_by_id: int + :type created_by_id: str """ self._created_by_id = created_by_id diff --git a/hubspot/crm/lists/models/public_object_list_search_result.py b/hubspot/crm/lists/models/public_object_list_search_result.py index ab3b85f1..ee2f724a 100644 --- a/hubspot/crm/lists/models/public_object_list_search_result.py +++ b/hubspot/crm/lists/models/public_object_list_search_result.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -40,7 +40,7 @@ class PublicObjectListSearchResult(object): "object_type_id": "str", "updated_by_id": "int", "filters_updated_at": "datetime", - "list_id": "int", + "list_id": "str", "created_at": "datetime", "processing_status": "str", "deleted_at": "datetime", @@ -227,7 +227,7 @@ def list_id(self): The **ILS ID** of the list. # noqa: E501 :return: The list_id of this PublicObjectListSearchResult. # noqa: E501 - :rtype: int + :rtype: str """ return self._list_id @@ -238,7 +238,7 @@ def list_id(self, list_id): The **ILS ID** of the list. # noqa: E501 :param list_id: The list_id of this PublicObjectListSearchResult. # noqa: E501 - :type list_id: int + :type list_id: str """ if self.local_vars_configuration.client_side_validation and list_id is None: # noqa: E501 raise ValueError("Invalid value for `list_id`, must not be `None`") # noqa: E501 diff --git a/hubspot/crm/lists/models/public_or_filter_branch.py b/hubspot/crm/lists/models/public_or_filter_branch.py index 4d4055a7..89f76fe2 100644 --- a/hubspot/crm/lists/models/public_or_filter_branch.py +++ b/hubspot/crm/lists/models/public_or_filter_branch.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -38,13 +38,13 @@ class PublicOrFilterBranch(object): openapi_types = { "filter_branch_type": "str", "filter_branches": "list[PublicPropertyAssociationFilterBranchFilterBranchesInner]", - "filters": "list[PublicPropertyAssociationFilterBranchFiltersInner]", "filter_branch_operator": "str", + "filters": "list[PublicPropertyAssociationFilterBranchFiltersInner]", } - attribute_map = {"filter_branch_type": "filterBranchType", "filter_branches": "filterBranches", "filters": "filters", "filter_branch_operator": "filterBranchOperator"} + attribute_map = {"filter_branch_type": "filterBranchType", "filter_branches": "filterBranches", "filter_branch_operator": "filterBranchOperator", "filters": "filters"} - def __init__(self, filter_branch_type="OR", filter_branches=None, filters=None, filter_branch_operator=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, filter_branch_type="OR", filter_branches=None, filter_branch_operator=None, filters=None, local_vars_configuration=None): # noqa: E501 """PublicOrFilterBranch - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() @@ -52,14 +52,14 @@ def __init__(self, filter_branch_type="OR", filter_branches=None, filters=None, self._filter_branch_type = None self._filter_branches = None - self._filters = None self._filter_branch_operator = None + self._filters = None self.discriminator = None self.filter_branch_type = filter_branch_type self.filter_branches = filter_branches - self.filters = filters self.filter_branch_operator = filter_branch_operator + self.filters = filters @property def filter_branch_type(self): @@ -110,29 +110,6 @@ def filter_branches(self, filter_branches): self._filter_branches = filter_branches - @property - def filters(self): - """Gets the filters of this PublicOrFilterBranch. # noqa: E501 - - - :return: The filters of this PublicOrFilterBranch. # noqa: E501 - :rtype: list[PublicPropertyAssociationFilterBranchFiltersInner] - """ - return self._filters - - @filters.setter - def filters(self, filters): - """Sets the filters of this PublicOrFilterBranch. - - - :param filters: The filters of this PublicOrFilterBranch. # noqa: E501 - :type filters: list[PublicPropertyAssociationFilterBranchFiltersInner] - """ - if self.local_vars_configuration.client_side_validation and filters is None: # noqa: E501 - raise ValueError("Invalid value for `filters`, must not be `None`") # noqa: E501 - - self._filters = filters - @property def filter_branch_operator(self): """Gets the filter_branch_operator of this PublicOrFilterBranch. # noqa: E501 @@ -156,6 +133,29 @@ def filter_branch_operator(self, filter_branch_operator): self._filter_branch_operator = filter_branch_operator + @property + def filters(self): + """Gets the filters of this PublicOrFilterBranch. # noqa: E501 + + + :return: The filters of this PublicOrFilterBranch. # noqa: E501 + :rtype: list[PublicPropertyAssociationFilterBranchFiltersInner] + """ + return self._filters + + @filters.setter + def filters(self, filters): + """Sets the filters of this PublicOrFilterBranch. + + + :param filters: The filters of this PublicOrFilterBranch. # noqa: E501 + :type filters: list[PublicPropertyAssociationFilterBranchFiltersInner] + """ + if self.local_vars_configuration.client_side_validation and filters is None: # noqa: E501 + raise ValueError("Invalid value for `filters`, must not be `None`") # noqa: E501 + + self._filters = filters + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_page_view_analytics_filter.py b/hubspot/crm/lists/models/public_page_view_analytics_filter.py index 47884885..22817b1c 100644 --- a/hubspot/crm/lists/models/public_page_view_analytics_filter.py +++ b/hubspot/crm/lists/models/public_page_view_analytics_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,72 +36,46 @@ class PublicPageViewAnalyticsFilter(object): and the value is json key in definition. """ openapi_types = { - "filter_type": "str", "coalescing_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", - "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", - "operator": "str", "enable_tracking": "bool", + "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", "page_url": "str", + "filter_type": "str", + "operator": "str", } attribute_map = { - "filter_type": "filterType", "coalescing_refine_by": "coalescingRefineBy", - "pruning_refine_by": "pruningRefineBy", - "operator": "operator", "enable_tracking": "enableTracking", + "pruning_refine_by": "pruningRefineBy", "page_url": "pageUrl", + "filter_type": "filterType", + "operator": "operator", } - def __init__(self, filter_type="PAGE_VIEW", coalescing_refine_by=None, pruning_refine_by=None, operator=None, enable_tracking=None, page_url=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, coalescing_refine_by=None, enable_tracking=None, pruning_refine_by=None, page_url=None, filter_type="PAGE_VIEW", operator=None, local_vars_configuration=None): # noqa: E501 """PublicPageViewAnalyticsFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None self._coalescing_refine_by = None - self._pruning_refine_by = None - self._operator = None self._enable_tracking = None + self._pruning_refine_by = None self._page_url = None + self._filter_type = None + self._operator = None self.discriminator = None - self.filter_type = filter_type if coalescing_refine_by is not None: self.coalescing_refine_by = coalescing_refine_by - if pruning_refine_by is not None: - self.pruning_refine_by = pruning_refine_by - self.operator = operator if enable_tracking is not None: self.enable_tracking = enable_tracking + if pruning_refine_by is not None: + self.pruning_refine_by = pruning_refine_by self.page_url = page_url - - @property - def filter_type(self): - """Gets the filter_type of this PublicPageViewAnalyticsFilter. # noqa: E501 - - - :return: The filter_type of this PublicPageViewAnalyticsFilter. # noqa: E501 - :rtype: str - """ - return self._filter_type - - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicPageViewAnalyticsFilter. - - - :param filter_type: The filter_type of this PublicPageViewAnalyticsFilter. # noqa: E501 - :type filter_type: str - """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["PAGE_VIEW"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - - self._filter_type = filter_type + self.filter_type = filter_type + self.operator = operator @property def coalescing_refine_by(self): @@ -124,6 +98,27 @@ def coalescing_refine_by(self, coalescing_refine_by): self._coalescing_refine_by = coalescing_refine_by + @property + def enable_tracking(self): + """Gets the enable_tracking of this PublicPageViewAnalyticsFilter. # noqa: E501 + + + :return: The enable_tracking of this PublicPageViewAnalyticsFilter. # noqa: E501 + :rtype: bool + """ + return self._enable_tracking + + @enable_tracking.setter + def enable_tracking(self, enable_tracking): + """Sets the enable_tracking of this PublicPageViewAnalyticsFilter. + + + :param enable_tracking: The enable_tracking of this PublicPageViewAnalyticsFilter. # noqa: E501 + :type enable_tracking: bool + """ + + self._enable_tracking = enable_tracking + @property def pruning_refine_by(self): """Gets the pruning_refine_by of this PublicPageViewAnalyticsFilter. # noqa: E501 @@ -146,71 +141,76 @@ def pruning_refine_by(self, pruning_refine_by): self._pruning_refine_by = pruning_refine_by @property - def operator(self): - """Gets the operator of this PublicPageViewAnalyticsFilter. # noqa: E501 + def page_url(self): + """Gets the page_url of this PublicPageViewAnalyticsFilter. # noqa: E501 - :return: The operator of this PublicPageViewAnalyticsFilter. # noqa: E501 + :return: The page_url of this PublicPageViewAnalyticsFilter. # noqa: E501 :rtype: str """ - return self._operator + return self._page_url - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicPageViewAnalyticsFilter. + @page_url.setter + def page_url(self, page_url): + """Sets the page_url of this PublicPageViewAnalyticsFilter. - :param operator: The operator of this PublicPageViewAnalyticsFilter. # noqa: E501 - :type operator: str + :param page_url: The page_url of this PublicPageViewAnalyticsFilter. # noqa: E501 + :type page_url: str """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and page_url is None: # noqa: E501 + raise ValueError("Invalid value for `page_url`, must not be `None`") # noqa: E501 - self._operator = operator + self._page_url = page_url @property - def enable_tracking(self): - """Gets the enable_tracking of this PublicPageViewAnalyticsFilter. # noqa: E501 + def filter_type(self): + """Gets the filter_type of this PublicPageViewAnalyticsFilter. # noqa: E501 - :return: The enable_tracking of this PublicPageViewAnalyticsFilter. # noqa: E501 - :rtype: bool + :return: The filter_type of this PublicPageViewAnalyticsFilter. # noqa: E501 + :rtype: str """ - return self._enable_tracking + return self._filter_type - @enable_tracking.setter - def enable_tracking(self, enable_tracking): - """Sets the enable_tracking of this PublicPageViewAnalyticsFilter. + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicPageViewAnalyticsFilter. - :param enable_tracking: The enable_tracking of this PublicPageViewAnalyticsFilter. # noqa: E501 - :type enable_tracking: bool + :param filter_type: The filter_type of this PublicPageViewAnalyticsFilter. # noqa: E501 + :type filter_type: str """ + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["PAGE_VIEW"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - self._enable_tracking = enable_tracking + self._filter_type = filter_type @property - def page_url(self): - """Gets the page_url of this PublicPageViewAnalyticsFilter. # noqa: E501 + def operator(self): + """Gets the operator of this PublicPageViewAnalyticsFilter. # noqa: E501 - :return: The page_url of this PublicPageViewAnalyticsFilter. # noqa: E501 + :return: The operator of this PublicPageViewAnalyticsFilter. # noqa: E501 :rtype: str """ - return self._page_url + return self._operator - @page_url.setter - def page_url(self, page_url): - """Sets the page_url of this PublicPageViewAnalyticsFilter. + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicPageViewAnalyticsFilter. - :param page_url: The page_url of this PublicPageViewAnalyticsFilter. # noqa: E501 - :type page_url: str + :param operator: The operator of this PublicPageViewAnalyticsFilter. # noqa: E501 + :type operator: str """ - if self.local_vars_configuration.client_side_validation and page_url is None: # noqa: E501 - raise ValueError("Invalid value for `page_url`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._page_url = page_url + self._operator = operator def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_privacy_analytics_filter.py b/hubspot/crm/lists/models/public_privacy_analytics_filter.py index f41d6648..bb784401 100644 --- a/hubspot/crm/lists/models/public_privacy_analytics_filter.py +++ b/hubspot/crm/lists/models/public_privacy_analytics_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,25 +35,48 @@ class PublicPrivacyAnalyticsFilter(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"filter_type": "str", "privacy_name": "str", "operator": "str"} + openapi_types = {"privacy_name": "str", "filter_type": "str", "operator": "str"} - attribute_map = {"filter_type": "filterType", "privacy_name": "privacyName", "operator": "operator"} + attribute_map = {"privacy_name": "privacyName", "filter_type": "filterType", "operator": "operator"} - def __init__(self, filter_type="PRIVACY", privacy_name=None, operator=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, privacy_name=None, filter_type="PRIVACY", operator=None, local_vars_configuration=None): # noqa: E501 """PublicPrivacyAnalyticsFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None self._privacy_name = None + self._filter_type = None self._operator = None self.discriminator = None - self.filter_type = filter_type self.privacy_name = privacy_name + self.filter_type = filter_type self.operator = operator + @property + def privacy_name(self): + """Gets the privacy_name of this PublicPrivacyAnalyticsFilter. # noqa: E501 + + + :return: The privacy_name of this PublicPrivacyAnalyticsFilter. # noqa: E501 + :rtype: str + """ + return self._privacy_name + + @privacy_name.setter + def privacy_name(self, privacy_name): + """Sets the privacy_name of this PublicPrivacyAnalyticsFilter. + + + :param privacy_name: The privacy_name of this PublicPrivacyAnalyticsFilter. # noqa: E501 + :type privacy_name: str + """ + if self.local_vars_configuration.client_side_validation and privacy_name is None: # noqa: E501 + raise ValueError("Invalid value for `privacy_name`, must not be `None`") # noqa: E501 + + self._privacy_name = privacy_name + @property def filter_type(self): """Gets the filter_type of this PublicPrivacyAnalyticsFilter. # noqa: E501 @@ -80,29 +103,6 @@ def filter_type(self, filter_type): self._filter_type = filter_type - @property - def privacy_name(self): - """Gets the privacy_name of this PublicPrivacyAnalyticsFilter. # noqa: E501 - - - :return: The privacy_name of this PublicPrivacyAnalyticsFilter. # noqa: E501 - :rtype: str - """ - return self._privacy_name - - @privacy_name.setter - def privacy_name(self, privacy_name): - """Sets the privacy_name of this PublicPrivacyAnalyticsFilter. - - - :param privacy_name: The privacy_name of this PublicPrivacyAnalyticsFilter. # noqa: E501 - :type privacy_name: str - """ - if self.local_vars_configuration.client_side_validation and privacy_name is None: # noqa: E501 - raise ValueError("Invalid value for `privacy_name`, must not be `None`") # noqa: E501 - - self._privacy_name = privacy_name - @property def operator(self): """Gets the operator of this PublicPrivacyAnalyticsFilter. # noqa: E501 diff --git a/hubspot/crm/lists/models/public_property_association_filter_branch.py b/hubspot/crm/lists/models/public_property_association_filter_branch.py index 45bd9234..c31f43f2 100644 --- a/hubspot/crm/lists/models/public_property_association_filter_branch.py +++ b/hubspot/crm/lists/models/public_property_association_filter_branch.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -37,33 +37,33 @@ class PublicPropertyAssociationFilterBranch(object): """ openapi_types = { "filter_branch_type": "str", - "filter_branch_operator": "str", "filter_branches": "list[PublicPropertyAssociationFilterBranchFilterBranchesInner]", - "filters": "list[PublicPropertyAssociationFilterBranchFiltersInner]", "object_type_id": "str", - "operator": "str", + "filter_branch_operator": "str", + "filters": "list[PublicPropertyAssociationFilterBranchFiltersInner]", "property_with_object_id": "str", + "operator": "str", } attribute_map = { "filter_branch_type": "filterBranchType", - "filter_branch_operator": "filterBranchOperator", "filter_branches": "filterBranches", - "filters": "filters", "object_type_id": "objectTypeId", - "operator": "operator", + "filter_branch_operator": "filterBranchOperator", + "filters": "filters", "property_with_object_id": "propertyWithObjectId", + "operator": "operator", } def __init__( self, filter_branch_type="PROPERTY_ASSOCIATION", - filter_branch_operator=None, filter_branches=None, - filters=None, object_type_id=None, - operator=None, + filter_branch_operator=None, + filters=None, property_with_object_id=None, + operator=None, local_vars_configuration=None, ): # noqa: E501 """PublicPropertyAssociationFilterBranch - a model defined in OpenAPI""" # noqa: E501 @@ -72,21 +72,21 @@ def __init__( self.local_vars_configuration = local_vars_configuration self._filter_branch_type = None - self._filter_branch_operator = None self._filter_branches = None - self._filters = None self._object_type_id = None - self._operator = None + self._filter_branch_operator = None + self._filters = None self._property_with_object_id = None + self._operator = None self.discriminator = None self.filter_branch_type = filter_branch_type - self.filter_branch_operator = filter_branch_operator self.filter_branches = filter_branches - self.filters = filters self.object_type_id = object_type_id - self.operator = operator + self.filter_branch_operator = filter_branch_operator + self.filters = filters self.property_with_object_id = property_with_object_id + self.operator = operator @property def filter_branch_type(self): @@ -114,29 +114,6 @@ def filter_branch_type(self, filter_branch_type): self._filter_branch_type = filter_branch_type - @property - def filter_branch_operator(self): - """Gets the filter_branch_operator of this PublicPropertyAssociationFilterBranch. # noqa: E501 - - - :return: The filter_branch_operator of this PublicPropertyAssociationFilterBranch. # noqa: E501 - :rtype: str - """ - return self._filter_branch_operator - - @filter_branch_operator.setter - def filter_branch_operator(self, filter_branch_operator): - """Sets the filter_branch_operator of this PublicPropertyAssociationFilterBranch. - - - :param filter_branch_operator: The filter_branch_operator of this PublicPropertyAssociationFilterBranch. # noqa: E501 - :type filter_branch_operator: str - """ - if self.local_vars_configuration.client_side_validation and filter_branch_operator is None: # noqa: E501 - raise ValueError("Invalid value for `filter_branch_operator`, must not be `None`") # noqa: E501 - - self._filter_branch_operator = filter_branch_operator - @property def filter_branches(self): """Gets the filter_branches of this PublicPropertyAssociationFilterBranch. # noqa: E501 @@ -160,29 +137,6 @@ def filter_branches(self, filter_branches): self._filter_branches = filter_branches - @property - def filters(self): - """Gets the filters of this PublicPropertyAssociationFilterBranch. # noqa: E501 - - - :return: The filters of this PublicPropertyAssociationFilterBranch. # noqa: E501 - :rtype: list[PublicPropertyAssociationFilterBranchFiltersInner] - """ - return self._filters - - @filters.setter - def filters(self, filters): - """Sets the filters of this PublicPropertyAssociationFilterBranch. - - - :param filters: The filters of this PublicPropertyAssociationFilterBranch. # noqa: E501 - :type filters: list[PublicPropertyAssociationFilterBranchFiltersInner] - """ - if self.local_vars_configuration.client_side_validation and filters is None: # noqa: E501 - raise ValueError("Invalid value for `filters`, must not be `None`") # noqa: E501 - - self._filters = filters - @property def object_type_id(self): """Gets the object_type_id of this PublicPropertyAssociationFilterBranch. # noqa: E501 @@ -207,27 +161,50 @@ def object_type_id(self, object_type_id): self._object_type_id = object_type_id @property - def operator(self): - """Gets the operator of this PublicPropertyAssociationFilterBranch. # noqa: E501 + def filter_branch_operator(self): + """Gets the filter_branch_operator of this PublicPropertyAssociationFilterBranch. # noqa: E501 - :return: The operator of this PublicPropertyAssociationFilterBranch. # noqa: E501 + :return: The filter_branch_operator of this PublicPropertyAssociationFilterBranch. # noqa: E501 :rtype: str """ - return self._operator + return self._filter_branch_operator - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicPropertyAssociationFilterBranch. + @filter_branch_operator.setter + def filter_branch_operator(self, filter_branch_operator): + """Sets the filter_branch_operator of this PublicPropertyAssociationFilterBranch. - :param operator: The operator of this PublicPropertyAssociationFilterBranch. # noqa: E501 - :type operator: str + :param filter_branch_operator: The filter_branch_operator of this PublicPropertyAssociationFilterBranch. # noqa: E501 + :type filter_branch_operator: str """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_branch_operator is None: # noqa: E501 + raise ValueError("Invalid value for `filter_branch_operator`, must not be `None`") # noqa: E501 - self._operator = operator + self._filter_branch_operator = filter_branch_operator + + @property + def filters(self): + """Gets the filters of this PublicPropertyAssociationFilterBranch. # noqa: E501 + + + :return: The filters of this PublicPropertyAssociationFilterBranch. # noqa: E501 + :rtype: list[PublicPropertyAssociationFilterBranchFiltersInner] + """ + return self._filters + + @filters.setter + def filters(self, filters): + """Sets the filters of this PublicPropertyAssociationFilterBranch. + + + :param filters: The filters of this PublicPropertyAssociationFilterBranch. # noqa: E501 + :type filters: list[PublicPropertyAssociationFilterBranchFiltersInner] + """ + if self.local_vars_configuration.client_side_validation and filters is None: # noqa: E501 + raise ValueError("Invalid value for `filters`, must not be `None`") # noqa: E501 + + self._filters = filters @property def property_with_object_id(self): @@ -252,6 +229,29 @@ def property_with_object_id(self, property_with_object_id): self._property_with_object_id = property_with_object_id + @property + def operator(self): + """Gets the operator of this PublicPropertyAssociationFilterBranch. # noqa: E501 + + + :return: The operator of this PublicPropertyAssociationFilterBranch. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicPropertyAssociationFilterBranch. + + + :param operator: The operator of this PublicPropertyAssociationFilterBranch. # noqa: E501 + :type operator: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + + self._operator = operator + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_property_association_filter_branch_filter_branches_inner.py b/hubspot/crm/lists/models/public_property_association_filter_branch_filter_branches_inner.py index bf74f67d..10c0ffe0 100644 --- a/hubspot/crm/lists/models/public_property_association_filter_branch_filter_branches_inner.py +++ b/hubspot/crm/lists/models/public_property_association_filter_branch_filter_branches_inner.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -38,8 +38,8 @@ class PublicPropertyAssociationFilterBranchFilterBranchesInner(object): openapi_types = { "filter_branch_type": "str", "filter_branches": "list[PublicPropertyAssociationFilterBranchFilterBranchesInner]", - "filters": "list[PublicPropertyAssociationFilterBranchFiltersInner]", "filter_branch_operator": "str", + "filters": "list[PublicPropertyAssociationFilterBranchFiltersInner]", "event_type_id": "str", "operator": "str", "object_type_id": "str", @@ -51,8 +51,8 @@ class PublicPropertyAssociationFilterBranchFilterBranchesInner(object): attribute_map = { "filter_branch_type": "filterBranchType", "filter_branches": "filterBranches", - "filters": "filters", "filter_branch_operator": "filterBranchOperator", + "filters": "filters", "event_type_id": "eventTypeId", "operator": "operator", "object_type_id": "objectTypeId", @@ -65,8 +65,8 @@ def __init__( self, filter_branch_type="ASSOCIATION", filter_branches=None, - filters=None, filter_branch_operator=None, + filters=None, event_type_id=None, operator=None, object_type_id=None, @@ -82,8 +82,8 @@ def __init__( self._filter_branch_type = None self._filter_branches = None - self._filters = None self._filter_branch_operator = None + self._filters = None self._event_type_id = None self._operator = None self._object_type_id = None @@ -94,8 +94,8 @@ def __init__( self.filter_branch_type = filter_branch_type self.filter_branches = filter_branches - self.filters = filters self.filter_branch_operator = filter_branch_operator + self.filters = filters self.event_type_id = event_type_id self.operator = operator self.object_type_id = object_type_id @@ -152,29 +152,6 @@ def filter_branches(self, filter_branches): self._filter_branches = filter_branches - @property - def filters(self): - """Gets the filters of this PublicPropertyAssociationFilterBranchFilterBranchesInner. # noqa: E501 - - - :return: The filters of this PublicPropertyAssociationFilterBranchFilterBranchesInner. # noqa: E501 - :rtype: list[PublicPropertyAssociationFilterBranchFiltersInner] - """ - return self._filters - - @filters.setter - def filters(self, filters): - """Sets the filters of this PublicPropertyAssociationFilterBranchFilterBranchesInner. - - - :param filters: The filters of this PublicPropertyAssociationFilterBranchFilterBranchesInner. # noqa: E501 - :type filters: list[PublicPropertyAssociationFilterBranchFiltersInner] - """ - if self.local_vars_configuration.client_side_validation and filters is None: # noqa: E501 - raise ValueError("Invalid value for `filters`, must not be `None`") # noqa: E501 - - self._filters = filters - @property def filter_branch_operator(self): """Gets the filter_branch_operator of this PublicPropertyAssociationFilterBranchFilterBranchesInner. # noqa: E501 @@ -198,6 +175,29 @@ def filter_branch_operator(self, filter_branch_operator): self._filter_branch_operator = filter_branch_operator + @property + def filters(self): + """Gets the filters of this PublicPropertyAssociationFilterBranchFilterBranchesInner. # noqa: E501 + + + :return: The filters of this PublicPropertyAssociationFilterBranchFilterBranchesInner. # noqa: E501 + :rtype: list[PublicPropertyAssociationFilterBranchFiltersInner] + """ + return self._filters + + @filters.setter + def filters(self, filters): + """Sets the filters of this PublicPropertyAssociationFilterBranchFilterBranchesInner. + + + :param filters: The filters of this PublicPropertyAssociationFilterBranchFilterBranchesInner. # noqa: E501 + :type filters: list[PublicPropertyAssociationFilterBranchFiltersInner] + """ + if self.local_vars_configuration.client_side_validation and filters is None: # noqa: E501 + raise ValueError("Invalid value for `filters`, must not be `None`") # noqa: E501 + + self._filters = filters + @property def event_type_id(self): """Gets the event_type_id of this PublicPropertyAssociationFilterBranchFilterBranchesInner. # noqa: E501 diff --git a/hubspot/crm/lists/models/public_property_association_filter_branch_filters_inner.py b/hubspot/crm/lists/models/public_property_association_filter_branch_filters_inner.py index a6031a90..976ca310 100644 --- a/hubspot/crm/lists/models/public_property_association_filter_branch_filters_inner.py +++ b/hubspot/crm/lists/models/public_property_association_filter_branch_filters_inner.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,18 +36,18 @@ class PublicPropertyAssociationFilterBranchFiltersInner(object): and the value is json key in definition. """ openapi_types = { - "filter_type": "str", "_property": "str", + "filter_type": "str", "operation": "PublicPropertyFilterOperation", + "list_id": "str", "coalescing_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", - "operator": "str", - "list_id": "int", - "to_object_type_id": "str", + "to_object_type": "str", "association_type_id": "int", "association_category": "str", - "to_object_type": "str", - "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", + "to_object_type_id": "str", + "operator": "str", "enable_tracking": "bool", + "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", "page_url": "str", "cta_name": "str", "event_id": "str", @@ -55,28 +55,28 @@ class PublicPropertyAssociationFilterBranchFiltersInner(object): "page_id": "str", "event_type_id": "str", "filter_lines": "list[PublicEventFilterMetadata]", - "subscription_ids": "list[int]", - "accepted_statuses": "list[str]", "subscription_type": "str", + "subscription_ids": "list[str]", + "accepted_statuses": "list[str]", "channel": "str", "accepted_opt_states": "list[str]", - "business_unit_id": "int", + "business_unit_id": "str", "campaign_id": "str", "survey_id": "str", + "value_comparison": "PublicPropertyFilterOperation", "survey_question": "str", "survey_answer_row_id": "str", "survey_answer_col_id": "str", - "value_comparison": "PublicPropertyFilterOperation", "webinar_id": "str", - "level": "str", - "email_id": "int", - "app_id": "int", "click_url": "str", + "level": "str", + "app_id": "str", + "email_id": "str", "privacy_name": "str", - "entity_type": "str", - "search_term_type": "str", "search_terms": "list[str]", + "entity_type": "str", "ad_network": "str", + "search_term_type": "str", "metadata": "PublicInListFilterMetadata", "property_with_object_id": "str", "should_accept": "bool", @@ -84,18 +84,18 @@ class PublicPropertyAssociationFilterBranchFiltersInner(object): } attribute_map = { - "filter_type": "filterType", "_property": "property", + "filter_type": "filterType", "operation": "operation", - "coalescing_refine_by": "coalescingRefineBy", - "operator": "operator", "list_id": "listId", - "to_object_type_id": "toObjectTypeId", + "coalescing_refine_by": "coalescingRefineBy", + "to_object_type": "toObjectType", "association_type_id": "associationTypeId", "association_category": "associationCategory", - "to_object_type": "toObjectType", - "pruning_refine_by": "pruningRefineBy", + "to_object_type_id": "toObjectTypeId", + "operator": "operator", "enable_tracking": "enableTracking", + "pruning_refine_by": "pruningRefineBy", "page_url": "pageUrl", "cta_name": "ctaName", "event_id": "eventId", @@ -103,28 +103,28 @@ class PublicPropertyAssociationFilterBranchFiltersInner(object): "page_id": "pageId", "event_type_id": "eventTypeId", "filter_lines": "filterLines", + "subscription_type": "subscriptionType", "subscription_ids": "subscriptionIds", "accepted_statuses": "acceptedStatuses", - "subscription_type": "subscriptionType", "channel": "channel", "accepted_opt_states": "acceptedOptStates", "business_unit_id": "businessUnitId", "campaign_id": "campaignId", "survey_id": "surveyId", + "value_comparison": "valueComparison", "survey_question": "surveyQuestion", "survey_answer_row_id": "surveyAnswerRowId", "survey_answer_col_id": "surveyAnswerColId", - "value_comparison": "valueComparison", "webinar_id": "webinarId", + "click_url": "clickUrl", "level": "level", - "email_id": "emailId", "app_id": "appId", - "click_url": "clickUrl", + "email_id": "emailId", "privacy_name": "privacyName", - "entity_type": "entityType", - "search_term_type": "searchTermType", "search_terms": "searchTerms", + "entity_type": "entityType", "ad_network": "adNetwork", + "search_term_type": "searchTermType", "metadata": "metadata", "property_with_object_id": "propertyWithObjectId", "should_accept": "shouldAccept", @@ -133,18 +133,18 @@ class PublicPropertyAssociationFilterBranchFiltersInner(object): def __init__( self, - filter_type="UNIFIED_EVENTS_IN_LIST", _property=None, + filter_type="UNIFIED_EVENTS_IN_LIST", operation=None, - coalescing_refine_by=None, - operator=None, list_id=None, - to_object_type_id=None, + coalescing_refine_by=None, + to_object_type=None, association_type_id=None, association_category=None, - to_object_type=None, - pruning_refine_by=None, + to_object_type_id=None, + operator=None, enable_tracking=None, + pruning_refine_by=None, page_url=None, cta_name=None, event_id=None, @@ -152,28 +152,28 @@ def __init__( page_id=None, event_type_id=None, filter_lines=None, + subscription_type=None, subscription_ids=None, accepted_statuses=None, - subscription_type=None, channel=None, accepted_opt_states=None, business_unit_id=None, campaign_id=None, survey_id=None, + value_comparison=None, survey_question=None, survey_answer_row_id=None, survey_answer_col_id=None, - value_comparison=None, webinar_id=None, + click_url=None, level=None, - email_id=None, app_id=None, - click_url=None, + email_id=None, privacy_name=None, - entity_type=None, - search_term_type=None, search_terms=None, + entity_type=None, ad_network=None, + search_term_type=None, metadata=None, property_with_object_id=None, should_accept=None, @@ -185,18 +185,18 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None self.__property = None + self._filter_type = None self._operation = None - self._coalescing_refine_by = None - self._operator = None self._list_id = None - self._to_object_type_id = None + self._coalescing_refine_by = None + self._to_object_type = None self._association_type_id = None self._association_category = None - self._to_object_type = None - self._pruning_refine_by = None + self._to_object_type_id = None + self._operator = None self._enable_tracking = None + self._pruning_refine_by = None self._page_url = None self._cta_name = None self._event_id = None @@ -204,49 +204,49 @@ def __init__( self._page_id = None self._event_type_id = None self._filter_lines = None + self._subscription_type = None self._subscription_ids = None self._accepted_statuses = None - self._subscription_type = None self._channel = None self._accepted_opt_states = None self._business_unit_id = None self._campaign_id = None self._survey_id = None + self._value_comparison = None self._survey_question = None self._survey_answer_row_id = None self._survey_answer_col_id = None - self._value_comparison = None self._webinar_id = None + self._click_url = None self._level = None - self._email_id = None self._app_id = None - self._click_url = None + self._email_id = None self._privacy_name = None - self._entity_type = None - self._search_term_type = None self._search_terms = None + self._entity_type = None self._ad_network = None + self._search_term_type = None self._metadata = None self._property_with_object_id = None self._should_accept = None self._source = None self.discriminator = None - self.filter_type = filter_type self._property = _property + self.filter_type = filter_type self.operation = operation - self.coalescing_refine_by = coalescing_refine_by - self.operator = operator self.list_id = list_id - if to_object_type_id is not None: - self.to_object_type_id = to_object_type_id - self.association_type_id = association_type_id - self.association_category = association_category + self.coalescing_refine_by = coalescing_refine_by if to_object_type is not None: self.to_object_type = to_object_type - self.pruning_refine_by = pruning_refine_by + self.association_type_id = association_type_id + self.association_category = association_category + if to_object_type_id is not None: + self.to_object_type_id = to_object_type_id + self.operator = operator if enable_tracking is not None: self.enable_tracking = enable_tracking + self.pruning_refine_by = pruning_refine_by self.page_url = page_url self.cta_name = cta_name self.event_id = event_id @@ -255,33 +255,33 @@ def __init__( self.page_id = page_id self.event_type_id = event_type_id self.filter_lines = filter_lines + self.subscription_type = subscription_type self.subscription_ids = subscription_ids self.accepted_statuses = accepted_statuses - self.subscription_type = subscription_type self.channel = channel self.accepted_opt_states = accepted_opt_states if business_unit_id is not None: self.business_unit_id = business_unit_id self.campaign_id = campaign_id self.survey_id = survey_id + self.value_comparison = value_comparison self.survey_question = survey_question if survey_answer_row_id is not None: self.survey_answer_row_id = survey_answer_row_id if survey_answer_col_id is not None: self.survey_answer_col_id = survey_answer_col_id - self.value_comparison = value_comparison if webinar_id is not None: self.webinar_id = webinar_id - self.level = level - self.email_id = email_id - self.app_id = app_id if click_url is not None: self.click_url = click_url + self.level = level + self.app_id = app_id + self.email_id = email_id self.privacy_name = privacy_name - self.entity_type = entity_type - self.search_term_type = search_term_type self.search_terms = search_terms + self.entity_type = entity_type self.ad_network = ad_network + self.search_term_type = search_term_type if metadata is not None: self.metadata = metadata self.property_with_object_id = property_with_object_id @@ -289,6 +289,29 @@ def __init__( if source is not None: self.source = source + @property + def _property(self): + """Gets the _property of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + + + :return: The _property of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :rtype: str + """ + return self.__property + + @_property.setter + def _property(self, _property): + """Sets the _property of this PublicPropertyAssociationFilterBranchFiltersInner. + + + :param _property: The _property of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :type _property: str + """ + if self.local_vars_configuration.client_side_validation and _property is None: # noqa: E501 + raise ValueError("Invalid value for `_property`, must not be `None`") # noqa: E501 + + self.__property = _property + @property def filter_type(self): """Gets the filter_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 @@ -315,29 +338,6 @@ def filter_type(self, filter_type): self._filter_type = filter_type - @property - def _property(self): - """Gets the _property of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - - - :return: The _property of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :rtype: str - """ - return self.__property - - @_property.setter - def _property(self, _property): - """Sets the _property of this PublicPropertyAssociationFilterBranchFiltersInner. - - - :param _property: The _property of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :type _property: str - """ - if self.local_vars_configuration.client_side_validation and _property is None: # noqa: E501 - raise ValueError("Invalid value for `_property`, must not be `None`") # noqa: E501 - - self.__property = _property - @property def operation(self): """Gets the operation of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 @@ -361,6 +361,29 @@ def operation(self, operation): self._operation = operation + @property + def list_id(self): + """Gets the list_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + + + :return: The list_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :rtype: str + """ + return self._list_id + + @list_id.setter + def list_id(self, list_id): + """Sets the list_id of this PublicPropertyAssociationFilterBranchFiltersInner. + + + :param list_id: The list_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :type list_id: str + """ + if self.local_vars_configuration.client_side_validation and list_id is None: # noqa: E501 + raise ValueError("Invalid value for `list_id`, must not be `None`") # noqa: E501 + + self._list_id = list_id + @property def coalescing_refine_by(self): """Gets the coalescing_refine_by of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 @@ -385,71 +408,25 @@ def coalescing_refine_by(self, coalescing_refine_by): self._coalescing_refine_by = coalescing_refine_by @property - def operator(self): - """Gets the operator of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - - - :return: The operator of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :rtype: str - """ - return self._operator - - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicPropertyAssociationFilterBranchFiltersInner. - - - :param operator: The operator of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :type operator: str - """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - - self._operator = operator - - @property - def list_id(self): - """Gets the list_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - - - :return: The list_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :rtype: int - """ - return self._list_id - - @list_id.setter - def list_id(self, list_id): - """Sets the list_id of this PublicPropertyAssociationFilterBranchFiltersInner. - - - :param list_id: The list_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :type list_id: int - """ - if self.local_vars_configuration.client_side_validation and list_id is None: # noqa: E501 - raise ValueError("Invalid value for `list_id`, must not be `None`") # noqa: E501 - - self._list_id = list_id - - @property - def to_object_type_id(self): - """Gets the to_object_type_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + def to_object_type(self): + """Gets the to_object_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :return: The to_object_type_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :return: The to_object_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 :rtype: str """ - return self._to_object_type_id + return self._to_object_type - @to_object_type_id.setter - def to_object_type_id(self, to_object_type_id): - """Sets the to_object_type_id of this PublicPropertyAssociationFilterBranchFiltersInner. + @to_object_type.setter + def to_object_type(self, to_object_type): + """Sets the to_object_type of this PublicPropertyAssociationFilterBranchFiltersInner. - :param to_object_type_id: The to_object_type_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :type to_object_type_id: str + :param to_object_type: The to_object_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :type to_object_type: str """ - self._to_object_type_id = to_object_type_id + self._to_object_type = to_object_type @property def association_type_id(self): @@ -498,48 +475,48 @@ def association_category(self, association_category): self._association_category = association_category @property - def to_object_type(self): - """Gets the to_object_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + def to_object_type_id(self): + """Gets the to_object_type_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :return: The to_object_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :return: The to_object_type_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 :rtype: str """ - return self._to_object_type + return self._to_object_type_id - @to_object_type.setter - def to_object_type(self, to_object_type): - """Sets the to_object_type of this PublicPropertyAssociationFilterBranchFiltersInner. + @to_object_type_id.setter + def to_object_type_id(self, to_object_type_id): + """Sets the to_object_type_id of this PublicPropertyAssociationFilterBranchFiltersInner. - :param to_object_type: The to_object_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :type to_object_type: str + :param to_object_type_id: The to_object_type_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :type to_object_type_id: str """ - self._to_object_type = to_object_type + self._to_object_type_id = to_object_type_id @property - def pruning_refine_by(self): - """Gets the pruning_refine_by of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + def operator(self): + """Gets the operator of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :return: The pruning_refine_by of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :rtype: PublicEventAnalyticsFilterCoalescingRefineBy + :return: The operator of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :rtype: str """ - return self._pruning_refine_by + return self._operator - @pruning_refine_by.setter - def pruning_refine_by(self, pruning_refine_by): - """Sets the pruning_refine_by of this PublicPropertyAssociationFilterBranchFiltersInner. + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicPropertyAssociationFilterBranchFiltersInner. - :param pruning_refine_by: The pruning_refine_by of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :type pruning_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy + :param operator: The operator of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :type operator: str """ - if self.local_vars_configuration.client_side_validation and pruning_refine_by is None: # noqa: E501 - raise ValueError("Invalid value for `pruning_refine_by`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._pruning_refine_by = pruning_refine_by + self._operator = operator @property def enable_tracking(self): @@ -560,7 +537,30 @@ def enable_tracking(self, enable_tracking): :type enable_tracking: bool """ - self._enable_tracking = enable_tracking + self._enable_tracking = enable_tracking + + @property + def pruning_refine_by(self): + """Gets the pruning_refine_by of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + + + :return: The pruning_refine_by of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :rtype: PublicEventAnalyticsFilterCoalescingRefineBy + """ + return self._pruning_refine_by + + @pruning_refine_by.setter + def pruning_refine_by(self, pruning_refine_by): + """Sets the pruning_refine_by of this PublicPropertyAssociationFilterBranchFiltersInner. + + + :param pruning_refine_by: The pruning_refine_by of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :type pruning_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy + """ + if self.local_vars_configuration.client_side_validation and pruning_refine_by is None: # noqa: E501 + raise ValueError("Invalid value for `pruning_refine_by`, must not be `None`") # noqa: E501 + + self._pruning_refine_by = pruning_refine_by @property def page_url(self): @@ -721,13 +721,36 @@ def filter_lines(self, filter_lines): self._filter_lines = filter_lines + @property + def subscription_type(self): + """Gets the subscription_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + + + :return: The subscription_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :rtype: str + """ + return self._subscription_type + + @subscription_type.setter + def subscription_type(self, subscription_type): + """Sets the subscription_type of this PublicPropertyAssociationFilterBranchFiltersInner. + + + :param subscription_type: The subscription_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :type subscription_type: str + """ + if self.local_vars_configuration.client_side_validation and subscription_type is None: # noqa: E501 + raise ValueError("Invalid value for `subscription_type`, must not be `None`") # noqa: E501 + + self._subscription_type = subscription_type + @property def subscription_ids(self): """Gets the subscription_ids of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 :return: The subscription_ids of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :rtype: list[int] + :rtype: list[str] """ return self._subscription_ids @@ -737,7 +760,7 @@ def subscription_ids(self, subscription_ids): :param subscription_ids: The subscription_ids of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :type subscription_ids: list[int] + :type subscription_ids: list[str] """ if self.local_vars_configuration.client_side_validation and subscription_ids is None: # noqa: E501 raise ValueError("Invalid value for `subscription_ids`, must not be `None`") # noqa: E501 @@ -767,29 +790,6 @@ def accepted_statuses(self, accepted_statuses): self._accepted_statuses = accepted_statuses - @property - def subscription_type(self): - """Gets the subscription_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - - - :return: The subscription_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :rtype: str - """ - return self._subscription_type - - @subscription_type.setter - def subscription_type(self, subscription_type): - """Sets the subscription_type of this PublicPropertyAssociationFilterBranchFiltersInner. - - - :param subscription_type: The subscription_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :type subscription_type: str - """ - if self.local_vars_configuration.client_side_validation and subscription_type is None: # noqa: E501 - raise ValueError("Invalid value for `subscription_type`, must not be `None`") # noqa: E501 - - self._subscription_type = subscription_type - @property def channel(self): """Gets the channel of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 @@ -842,7 +842,7 @@ def business_unit_id(self): :return: The business_unit_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :rtype: int + :rtype: str """ return self._business_unit_id @@ -852,7 +852,7 @@ def business_unit_id(self, business_unit_id): :param business_unit_id: The business_unit_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :type business_unit_id: int + :type business_unit_id: str """ self._business_unit_id = business_unit_id @@ -903,6 +903,29 @@ def survey_id(self, survey_id): self._survey_id = survey_id + @property + def value_comparison(self): + """Gets the value_comparison of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + + + :return: The value_comparison of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :rtype: PublicPropertyFilterOperation + """ + return self._value_comparison + + @value_comparison.setter + def value_comparison(self, value_comparison): + """Sets the value_comparison of this PublicPropertyAssociationFilterBranchFiltersInner. + + + :param value_comparison: The value_comparison of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :type value_comparison: PublicPropertyFilterOperation + """ + if self.local_vars_configuration.client_side_validation and value_comparison is None: # noqa: E501 + raise ValueError("Invalid value for `value_comparison`, must not be `None`") # noqa: E501 + + self._value_comparison = value_comparison + @property def survey_question(self): """Gets the survey_question of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 @@ -968,29 +991,6 @@ def survey_answer_col_id(self, survey_answer_col_id): self._survey_answer_col_id = survey_answer_col_id - @property - def value_comparison(self): - """Gets the value_comparison of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - - - :return: The value_comparison of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :rtype: PublicPropertyFilterOperation - """ - return self._value_comparison - - @value_comparison.setter - def value_comparison(self, value_comparison): - """Sets the value_comparison of this PublicPropertyAssociationFilterBranchFiltersInner. - - - :param value_comparison: The value_comparison of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :type value_comparison: PublicPropertyFilterOperation - """ - if self.local_vars_configuration.client_side_validation and value_comparison is None: # noqa: E501 - raise ValueError("Invalid value for `value_comparison`, must not be `None`") # noqa: E501 - - self._value_comparison = value_comparison - @property def webinar_id(self): """Gets the webinar_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 @@ -1012,6 +1012,27 @@ def webinar_id(self, webinar_id): self._webinar_id = webinar_id + @property + def click_url(self): + """Gets the click_url of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + + + :return: The click_url of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :rtype: str + """ + return self._click_url + + @click_url.setter + def click_url(self, click_url): + """Sets the click_url of this PublicPropertyAssociationFilterBranchFiltersInner. + + + :param click_url: The click_url of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :type click_url: str + """ + + self._click_url = click_url + @property def level(self): """Gets the level of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 @@ -1035,36 +1056,13 @@ def level(self, level): self._level = level - @property - def email_id(self): - """Gets the email_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - - - :return: The email_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :rtype: int - """ - return self._email_id - - @email_id.setter - def email_id(self, email_id): - """Sets the email_id of this PublicPropertyAssociationFilterBranchFiltersInner. - - - :param email_id: The email_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :type email_id: int - """ - if self.local_vars_configuration.client_side_validation and email_id is None: # noqa: E501 - raise ValueError("Invalid value for `email_id`, must not be `None`") # noqa: E501 - - self._email_id = email_id - @property def app_id(self): """Gets the app_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 :return: The app_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :rtype: int + :rtype: str """ return self._app_id @@ -1074,7 +1072,7 @@ def app_id(self, app_id): :param app_id: The app_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :type app_id: int + :type app_id: str """ if self.local_vars_configuration.client_side_validation and app_id is None: # noqa: E501 raise ValueError("Invalid value for `app_id`, must not be `None`") # noqa: E501 @@ -1082,25 +1080,27 @@ def app_id(self, app_id): self._app_id = app_id @property - def click_url(self): - """Gets the click_url of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + def email_id(self): + """Gets the email_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :return: The click_url of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :return: The email_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 :rtype: str """ - return self._click_url + return self._email_id - @click_url.setter - def click_url(self, click_url): - """Sets the click_url of this PublicPropertyAssociationFilterBranchFiltersInner. + @email_id.setter + def email_id(self, email_id): + """Sets the email_id of this PublicPropertyAssociationFilterBranchFiltersInner. - :param click_url: The click_url of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :type click_url: str + :param email_id: The email_id of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :type email_id: str """ + if self.local_vars_configuration.client_side_validation and email_id is None: # noqa: E501 + raise ValueError("Invalid value for `email_id`, must not be `None`") # noqa: E501 - self._click_url = click_url + self._email_id = email_id @property def privacy_name(self): @@ -1125,52 +1125,6 @@ def privacy_name(self, privacy_name): self._privacy_name = privacy_name - @property - def entity_type(self): - """Gets the entity_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - - - :return: The entity_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :rtype: str - """ - return self._entity_type - - @entity_type.setter - def entity_type(self, entity_type): - """Sets the entity_type of this PublicPropertyAssociationFilterBranchFiltersInner. - - - :param entity_type: The entity_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :type entity_type: str - """ - if self.local_vars_configuration.client_side_validation and entity_type is None: # noqa: E501 - raise ValueError("Invalid value for `entity_type`, must not be `None`") # noqa: E501 - - self._entity_type = entity_type - - @property - def search_term_type(self): - """Gets the search_term_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - - - :return: The search_term_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :rtype: str - """ - return self._search_term_type - - @search_term_type.setter - def search_term_type(self, search_term_type): - """Sets the search_term_type of this PublicPropertyAssociationFilterBranchFiltersInner. - - - :param search_term_type: The search_term_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 - :type search_term_type: str - """ - if self.local_vars_configuration.client_side_validation and search_term_type is None: # noqa: E501 - raise ValueError("Invalid value for `search_term_type`, must not be `None`") # noqa: E501 - - self._search_term_type = search_term_type - @property def search_terms(self): """Gets the search_terms of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 @@ -1194,6 +1148,29 @@ def search_terms(self, search_terms): self._search_terms = search_terms + @property + def entity_type(self): + """Gets the entity_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + + + :return: The entity_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :rtype: str + """ + return self._entity_type + + @entity_type.setter + def entity_type(self, entity_type): + """Sets the entity_type of this PublicPropertyAssociationFilterBranchFiltersInner. + + + :param entity_type: The entity_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :type entity_type: str + """ + if self.local_vars_configuration.client_side_validation and entity_type is None: # noqa: E501 + raise ValueError("Invalid value for `entity_type`, must not be `None`") # noqa: E501 + + self._entity_type = entity_type + @property def ad_network(self): """Gets the ad_network of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 @@ -1217,6 +1194,29 @@ def ad_network(self, ad_network): self._ad_network = ad_network + @property + def search_term_type(self): + """Gets the search_term_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + + + :return: The search_term_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :rtype: str + """ + return self._search_term_type + + @search_term_type.setter + def search_term_type(self, search_term_type): + """Sets the search_term_type of this PublicPropertyAssociationFilterBranchFiltersInner. + + + :param search_term_type: The search_term_type of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 + :type search_term_type: str + """ + if self.local_vars_configuration.client_side_validation and search_term_type is None: # noqa: E501 + raise ValueError("Invalid value for `search_term_type`, must not be `None`") # noqa: E501 + + self._search_term_type = search_term_type + @property def metadata(self): """Gets the metadata of this PublicPropertyAssociationFilterBranchFiltersInner. # noqa: E501 diff --git a/hubspot/crm/lists/models/public_property_association_in_list_filter.py b/hubspot/crm/lists/models/public_property_association_in_list_filter.py index e6576c20..f242befc 100644 --- a/hubspot/crm/lists/models/public_property_association_in_list_filter.py +++ b/hubspot/crm/lists/models/public_property_association_in_list_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,72 +36,69 @@ class PublicPropertyAssociationInListFilter(object): and the value is json key in definition. """ openapi_types = { - "filter_type": "str", + "list_id": "str", "coalescing_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", - "operator": "str", - "list_id": "int", - "to_object_type_id": "str", "property_with_object_id": "str", + "filter_type": "str", + "to_object_type_id": "str", + "operator": "str", } attribute_map = { - "filter_type": "filterType", - "coalescing_refine_by": "coalescingRefineBy", - "operator": "operator", "list_id": "listId", - "to_object_type_id": "toObjectTypeId", + "coalescing_refine_by": "coalescingRefineBy", "property_with_object_id": "propertyWithObjectId", + "filter_type": "filterType", + "to_object_type_id": "toObjectTypeId", + "operator": "operator", } def __init__( - self, filter_type="PROPERTY_ASSOCIATION", coalescing_refine_by=None, operator=None, list_id=None, to_object_type_id=None, property_with_object_id=None, local_vars_configuration=None + self, list_id=None, coalescing_refine_by=None, property_with_object_id=None, filter_type="PROPERTY_ASSOCIATION", to_object_type_id=None, operator=None, local_vars_configuration=None ): # noqa: E501 """PublicPropertyAssociationInListFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None - self._coalescing_refine_by = None - self._operator = None self._list_id = None - self._to_object_type_id = None + self._coalescing_refine_by = None self._property_with_object_id = None + self._filter_type = None + self._to_object_type_id = None + self._operator = None self.discriminator = None - self.filter_type = filter_type - self.coalescing_refine_by = coalescing_refine_by - self.operator = operator self.list_id = list_id + self.coalescing_refine_by = coalescing_refine_by + self.property_with_object_id = property_with_object_id + self.filter_type = filter_type if to_object_type_id is not None: self.to_object_type_id = to_object_type_id - self.property_with_object_id = property_with_object_id + self.operator = operator @property - def filter_type(self): - """Gets the filter_type of this PublicPropertyAssociationInListFilter. # noqa: E501 + def list_id(self): + """Gets the list_id of this PublicPropertyAssociationInListFilter. # noqa: E501 - :return: The filter_type of this PublicPropertyAssociationInListFilter. # noqa: E501 + :return: The list_id of this PublicPropertyAssociationInListFilter. # noqa: E501 :rtype: str """ - return self._filter_type + return self._list_id - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicPropertyAssociationInListFilter. + @list_id.setter + def list_id(self, list_id): + """Sets the list_id of this PublicPropertyAssociationInListFilter. - :param filter_type: The filter_type of this PublicPropertyAssociationInListFilter. # noqa: E501 - :type filter_type: str + :param list_id: The list_id of this PublicPropertyAssociationInListFilter. # noqa: E501 + :type list_id: str """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["PROPERTY_ASSOCIATION"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + if self.local_vars_configuration.client_side_validation and list_id is None: # noqa: E501 + raise ValueError("Invalid value for `list_id`, must not be `None`") # noqa: E501 - self._filter_type = filter_type + self._list_id = list_id @property def coalescing_refine_by(self): @@ -127,50 +124,53 @@ def coalescing_refine_by(self, coalescing_refine_by): self._coalescing_refine_by = coalescing_refine_by @property - def operator(self): - """Gets the operator of this PublicPropertyAssociationInListFilter. # noqa: E501 + def property_with_object_id(self): + """Gets the property_with_object_id of this PublicPropertyAssociationInListFilter. # noqa: E501 - :return: The operator of this PublicPropertyAssociationInListFilter. # noqa: E501 + :return: The property_with_object_id of this PublicPropertyAssociationInListFilter. # noqa: E501 :rtype: str """ - return self._operator + return self._property_with_object_id - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicPropertyAssociationInListFilter. + @property_with_object_id.setter + def property_with_object_id(self, property_with_object_id): + """Sets the property_with_object_id of this PublicPropertyAssociationInListFilter. - :param operator: The operator of this PublicPropertyAssociationInListFilter. # noqa: E501 - :type operator: str + :param property_with_object_id: The property_with_object_id of this PublicPropertyAssociationInListFilter. # noqa: E501 + :type property_with_object_id: str """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and property_with_object_id is None: # noqa: E501 + raise ValueError("Invalid value for `property_with_object_id`, must not be `None`") # noqa: E501 - self._operator = operator + self._property_with_object_id = property_with_object_id @property - def list_id(self): - """Gets the list_id of this PublicPropertyAssociationInListFilter. # noqa: E501 + def filter_type(self): + """Gets the filter_type of this PublicPropertyAssociationInListFilter. # noqa: E501 - :return: The list_id of this PublicPropertyAssociationInListFilter. # noqa: E501 - :rtype: int + :return: The filter_type of this PublicPropertyAssociationInListFilter. # noqa: E501 + :rtype: str """ - return self._list_id + return self._filter_type - @list_id.setter - def list_id(self, list_id): - """Sets the list_id of this PublicPropertyAssociationInListFilter. + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicPropertyAssociationInListFilter. - :param list_id: The list_id of this PublicPropertyAssociationInListFilter. # noqa: E501 - :type list_id: int + :param filter_type: The filter_type of this PublicPropertyAssociationInListFilter. # noqa: E501 + :type filter_type: str """ - if self.local_vars_configuration.client_side_validation and list_id is None: # noqa: E501 - raise ValueError("Invalid value for `list_id`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["PROPERTY_ASSOCIATION"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - self._list_id = list_id + self._filter_type = filter_type @property def to_object_type_id(self): @@ -194,27 +194,27 @@ def to_object_type_id(self, to_object_type_id): self._to_object_type_id = to_object_type_id @property - def property_with_object_id(self): - """Gets the property_with_object_id of this PublicPropertyAssociationInListFilter. # noqa: E501 + def operator(self): + """Gets the operator of this PublicPropertyAssociationInListFilter. # noqa: E501 - :return: The property_with_object_id of this PublicPropertyAssociationInListFilter. # noqa: E501 + :return: The operator of this PublicPropertyAssociationInListFilter. # noqa: E501 :rtype: str """ - return self._property_with_object_id + return self._operator - @property_with_object_id.setter - def property_with_object_id(self, property_with_object_id): - """Sets the property_with_object_id of this PublicPropertyAssociationInListFilter. + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicPropertyAssociationInListFilter. - :param property_with_object_id: The property_with_object_id of this PublicPropertyAssociationInListFilter. # noqa: E501 - :type property_with_object_id: str + :param operator: The operator of this PublicPropertyAssociationInListFilter. # noqa: E501 + :type operator: str """ - if self.local_vars_configuration.client_side_validation and property_with_object_id is None: # noqa: E501 - raise ValueError("Invalid value for `property_with_object_id`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._property_with_object_id = property_with_object_id + self._operator = operator def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_property_filter.py b/hubspot/crm/lists/models/public_property_filter.py index 4b2aaf9c..bcb0201e 100644 --- a/hubspot/crm/lists/models/public_property_filter.py +++ b/hubspot/crm/lists/models/public_property_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,25 +35,48 @@ class PublicPropertyFilter(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"filter_type": "str", "_property": "str", "operation": "PublicPropertyFilterOperation"} + openapi_types = {"_property": "str", "filter_type": "str", "operation": "PublicPropertyFilterOperation"} - attribute_map = {"filter_type": "filterType", "_property": "property", "operation": "operation"} + attribute_map = {"_property": "property", "filter_type": "filterType", "operation": "operation"} - def __init__(self, filter_type="PROPERTY", _property=None, operation=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, _property=None, filter_type="PROPERTY", operation=None, local_vars_configuration=None): # noqa: E501 """PublicPropertyFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None self.__property = None + self._filter_type = None self._operation = None self.discriminator = None - self.filter_type = filter_type self._property = _property + self.filter_type = filter_type self.operation = operation + @property + def _property(self): + """Gets the _property of this PublicPropertyFilter. # noqa: E501 + + + :return: The _property of this PublicPropertyFilter. # noqa: E501 + :rtype: str + """ + return self.__property + + @_property.setter + def _property(self, _property): + """Sets the _property of this PublicPropertyFilter. + + + :param _property: The _property of this PublicPropertyFilter. # noqa: E501 + :type _property: str + """ + if self.local_vars_configuration.client_side_validation and _property is None: # noqa: E501 + raise ValueError("Invalid value for `_property`, must not be `None`") # noqa: E501 + + self.__property = _property + @property def filter_type(self): """Gets the filter_type of this PublicPropertyFilter. # noqa: E501 @@ -80,29 +103,6 @@ def filter_type(self, filter_type): self._filter_type = filter_type - @property - def _property(self): - """Gets the _property of this PublicPropertyFilter. # noqa: E501 - - - :return: The _property of this PublicPropertyFilter. # noqa: E501 - :rtype: str - """ - return self.__property - - @_property.setter - def _property(self, _property): - """Sets the _property of this PublicPropertyFilter. - - - :param _property: The _property of this PublicPropertyFilter. # noqa: E501 - :type _property: str - """ - if self.local_vars_configuration.client_side_validation and _property is None: # noqa: E501 - raise ValueError("Invalid value for `_property`, must not be `None`") # noqa: E501 - - self.__property = _property - @property def operation(self): """Gets the operation of this PublicPropertyFilter. # noqa: E501 diff --git a/hubspot/crm/lists/models/public_property_filter_operation.py b/hubspot/crm/lists/models/public_property_filter_operation.py index d26fa45e..0d1e8fe7 100644 --- a/hubspot/crm/lists/models/public_property_filter_operation.py +++ b/hubspot/crm/lists/models/public_property_filter_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,94 +36,94 @@ class PublicPropertyFilterOperation(object): and the value is json key in definition. """ openapi_types = { - "operation_type": "str", - "operator": "str", "include_objects_with_no_value_set": "bool", + "operation_type": "str", "value": "str", + "operator": "str", "requires_time_zone_conversion": "bool", "timestamp": "int", "upper_bound": "int", "lower_bound": "int", - "comparison_property_name": "str", "default_comparison_value": "str", + "comparison_property_name": "str", "number_of_days": "int", "values": "list[str]", - "year": "int", "month": "str", + "year": "int", "day": "int", - "time_unit": "str", - "fiscal_year_start": "str", "use_fiscal_year": "bool", + "fiscal_year_start": "str", "time_unit_count": "int", - "time_point": "PublicTimePointOperationTimePoint", + "time_unit": "str", "endpoint_behavior": "str", "property_parser": "str", + "time_point": "PublicTimePointOperationTimePoint", "type": "str", - "lower_bound_endpoint_behavior": "str", "upper_bound_endpoint_behavior": "str", - "lower_bound_time_point": "PublicTimePointOperationTimePoint", "upper_bound_time_point": "PublicTimePointOperationTimePoint", + "lower_bound_endpoint_behavior": "str", + "lower_bound_time_point": "PublicTimePointOperationTimePoint", } attribute_map = { - "operation_type": "operationType", - "operator": "operator", "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", + "operation_type": "operationType", "value": "value", + "operator": "operator", "requires_time_zone_conversion": "requiresTimeZoneConversion", "timestamp": "timestamp", "upper_bound": "upperBound", "lower_bound": "lowerBound", - "comparison_property_name": "comparisonPropertyName", "default_comparison_value": "defaultComparisonValue", + "comparison_property_name": "comparisonPropertyName", "number_of_days": "numberOfDays", "values": "values", - "year": "year", "month": "month", + "year": "year", "day": "day", - "time_unit": "timeUnit", - "fiscal_year_start": "fiscalYearStart", "use_fiscal_year": "useFiscalYear", + "fiscal_year_start": "fiscalYearStart", "time_unit_count": "timeUnitCount", - "time_point": "timePoint", + "time_unit": "timeUnit", "endpoint_behavior": "endpointBehavior", "property_parser": "propertyParser", + "time_point": "timePoint", "type": "type", - "lower_bound_endpoint_behavior": "lowerBoundEndpointBehavior", "upper_bound_endpoint_behavior": "upperBoundEndpointBehavior", - "lower_bound_time_point": "lowerBoundTimePoint", "upper_bound_time_point": "upperBoundTimePoint", + "lower_bound_endpoint_behavior": "lowerBoundEndpointBehavior", + "lower_bound_time_point": "lowerBoundTimePoint", } def __init__( self, - operation_type=None, - operator=None, include_objects_with_no_value_set=None, + operation_type=None, value=None, + operator=None, requires_time_zone_conversion=None, timestamp=None, upper_bound=None, lower_bound=None, - comparison_property_name=None, default_comparison_value=None, + comparison_property_name=None, number_of_days=None, values=None, - year=None, month=None, + year=None, day=None, - time_unit=None, - fiscal_year_start=None, use_fiscal_year=None, + fiscal_year_start=None, time_unit_count=None, - time_point=None, + time_unit=None, endpoint_behavior=None, property_parser=None, + time_point=None, type="TIME_RANGED", - lower_bound_endpoint_behavior=None, upper_bound_endpoint_behavior=None, - lower_bound_time_point=None, upper_bound_time_point=None, + lower_bound_endpoint_behavior=None, + lower_bound_time_point=None, local_vars_configuration=None, ): # noqa: E501 """PublicPropertyFilterOperation - a model defined in OpenAPI""" # noqa: E501 @@ -131,116 +131,70 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._operation_type = None - self._operator = None self._include_objects_with_no_value_set = None + self._operation_type = None self._value = None + self._operator = None self._requires_time_zone_conversion = None self._timestamp = None self._upper_bound = None self._lower_bound = None - self._comparison_property_name = None self._default_comparison_value = None + self._comparison_property_name = None self._number_of_days = None self._values = None - self._year = None self._month = None + self._year = None self._day = None - self._time_unit = None - self._fiscal_year_start = None self._use_fiscal_year = None + self._fiscal_year_start = None self._time_unit_count = None - self._time_point = None + self._time_unit = None self._endpoint_behavior = None self._property_parser = None + self._time_point = None self._type = None - self._lower_bound_endpoint_behavior = None self._upper_bound_endpoint_behavior = None - self._lower_bound_time_point = None self._upper_bound_time_point = None + self._lower_bound_endpoint_behavior = None + self._lower_bound_time_point = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator self.include_objects_with_no_value_set = include_objects_with_no_value_set + self.operation_type = operation_type self.value = value + self.operator = operator self.requires_time_zone_conversion = requires_time_zone_conversion self.timestamp = timestamp self.upper_bound = upper_bound self.lower_bound = lower_bound - self.comparison_property_name = comparison_property_name if default_comparison_value is not None: self.default_comparison_value = default_comparison_value + self.comparison_property_name = comparison_property_name self.number_of_days = number_of_days self.values = values - self.year = year self.month = month + self.year = year self.day = day - self.time_unit = time_unit - if fiscal_year_start is not None: - self.fiscal_year_start = fiscal_year_start if use_fiscal_year is not None: self.use_fiscal_year = use_fiscal_year + if fiscal_year_start is not None: + self.fiscal_year_start = fiscal_year_start if time_unit_count is not None: self.time_unit_count = time_unit_count - self.time_point = time_point + self.time_unit = time_unit if endpoint_behavior is not None: self.endpoint_behavior = endpoint_behavior if property_parser is not None: self.property_parser = property_parser + self.time_point = time_point self.type = type - if lower_bound_endpoint_behavior is not None: - self.lower_bound_endpoint_behavior = lower_bound_endpoint_behavior if upper_bound_endpoint_behavior is not None: self.upper_bound_endpoint_behavior = upper_bound_endpoint_behavior - self.lower_bound_time_point = lower_bound_time_point self.upper_bound_time_point = upper_bound_time_point - - @property - def operation_type(self): - """Gets the operation_type of this PublicPropertyFilterOperation. # noqa: E501 - - - :return: The operation_type of this PublicPropertyFilterOperation. # noqa: E501 - :rtype: str - """ - return self._operation_type - - @operation_type.setter - def operation_type(self, operation_type): - """Sets the operation_type of this PublicPropertyFilterOperation. - - - :param operation_type: The operation_type of this PublicPropertyFilterOperation. # noqa: E501 - :type operation_type: str - """ - if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 - raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 - - self._operation_type = operation_type - - @property - def operator(self): - """Gets the operator of this PublicPropertyFilterOperation. # noqa: E501 - - - :return: The operator of this PublicPropertyFilterOperation. # noqa: E501 - :rtype: str - """ - return self._operator - - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicPropertyFilterOperation. - - - :param operator: The operator of this PublicPropertyFilterOperation. # noqa: E501 - :type operator: str - """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - - self._operator = operator + if lower_bound_endpoint_behavior is not None: + self.lower_bound_endpoint_behavior = lower_bound_endpoint_behavior + self.lower_bound_time_point = lower_bound_time_point @property def include_objects_with_no_value_set(self): @@ -265,6 +219,29 @@ def include_objects_with_no_value_set(self, include_objects_with_no_value_set): self._include_objects_with_no_value_set = include_objects_with_no_value_set + @property + def operation_type(self): + """Gets the operation_type of this PublicPropertyFilterOperation. # noqa: E501 + + + :return: The operation_type of this PublicPropertyFilterOperation. # noqa: E501 + :rtype: str + """ + return self._operation_type + + @operation_type.setter + def operation_type(self, operation_type): + """Sets the operation_type of this PublicPropertyFilterOperation. + + + :param operation_type: The operation_type of this PublicPropertyFilterOperation. # noqa: E501 + :type operation_type: str + """ + if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 + raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 + + self._operation_type = operation_type + @property def value(self): """Gets the value of this PublicPropertyFilterOperation. # noqa: E501 @@ -288,6 +265,29 @@ def value(self, value): self._value = value + @property + def operator(self): + """Gets the operator of this PublicPropertyFilterOperation. # noqa: E501 + + + :return: The operator of this PublicPropertyFilterOperation. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicPropertyFilterOperation. + + + :param operator: The operator of this PublicPropertyFilterOperation. # noqa: E501 + :type operator: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + + self._operator = operator + @property def requires_time_zone_conversion(self): """Gets the requires_time_zone_conversion of this PublicPropertyFilterOperation. # noqa: E501 @@ -380,6 +380,27 @@ def lower_bound(self, lower_bound): self._lower_bound = lower_bound + @property + def default_comparison_value(self): + """Gets the default_comparison_value of this PublicPropertyFilterOperation. # noqa: E501 + + + :return: The default_comparison_value of this PublicPropertyFilterOperation. # noqa: E501 + :rtype: str + """ + return self._default_comparison_value + + @default_comparison_value.setter + def default_comparison_value(self, default_comparison_value): + """Sets the default_comparison_value of this PublicPropertyFilterOperation. + + + :param default_comparison_value: The default_comparison_value of this PublicPropertyFilterOperation. # noqa: E501 + :type default_comparison_value: str + """ + + self._default_comparison_value = default_comparison_value + @property def comparison_property_name(self): """Gets the comparison_property_name of this PublicPropertyFilterOperation. # noqa: E501 @@ -403,27 +424,6 @@ def comparison_property_name(self, comparison_property_name): self._comparison_property_name = comparison_property_name - @property - def default_comparison_value(self): - """Gets the default_comparison_value of this PublicPropertyFilterOperation. # noqa: E501 - - - :return: The default_comparison_value of this PublicPropertyFilterOperation. # noqa: E501 - :rtype: str - """ - return self._default_comparison_value - - @default_comparison_value.setter - def default_comparison_value(self, default_comparison_value): - """Sets the default_comparison_value of this PublicPropertyFilterOperation. - - - :param default_comparison_value: The default_comparison_value of this PublicPropertyFilterOperation. # noqa: E501 - :type default_comparison_value: str - """ - - self._default_comparison_value = default_comparison_value - @property def number_of_days(self): """Gets the number_of_days of this PublicPropertyFilterOperation. # noqa: E501 @@ -470,29 +470,6 @@ def values(self, values): self._values = values - @property - def year(self): - """Gets the year of this PublicPropertyFilterOperation. # noqa: E501 - - - :return: The year of this PublicPropertyFilterOperation. # noqa: E501 - :rtype: int - """ - return self._year - - @year.setter - def year(self, year): - """Sets the year of this PublicPropertyFilterOperation. - - - :param year: The year of this PublicPropertyFilterOperation. # noqa: E501 - :type year: int - """ - if self.local_vars_configuration.client_side_validation and year is None: # noqa: E501 - raise ValueError("Invalid value for `year`, must not be `None`") # noqa: E501 - - self._year = year - @property def month(self): """Gets the month of this PublicPropertyFilterOperation. # noqa: E501 @@ -516,6 +493,29 @@ def month(self, month): self._month = month + @property + def year(self): + """Gets the year of this PublicPropertyFilterOperation. # noqa: E501 + + + :return: The year of this PublicPropertyFilterOperation. # noqa: E501 + :rtype: int + """ + return self._year + + @year.setter + def year(self, year): + """Sets the year of this PublicPropertyFilterOperation. + + + :param year: The year of this PublicPropertyFilterOperation. # noqa: E501 + :type year: int + """ + if self.local_vars_configuration.client_side_validation and year is None: # noqa: E501 + raise ValueError("Invalid value for `year`, must not be `None`") # noqa: E501 + + self._year = year + @property def day(self): """Gets the day of this PublicPropertyFilterOperation. # noqa: E501 @@ -540,27 +540,25 @@ def day(self, day): self._day = day @property - def time_unit(self): - """Gets the time_unit of this PublicPropertyFilterOperation. # noqa: E501 + def use_fiscal_year(self): + """Gets the use_fiscal_year of this PublicPropertyFilterOperation. # noqa: E501 - :return: The time_unit of this PublicPropertyFilterOperation. # noqa: E501 - :rtype: str + :return: The use_fiscal_year of this PublicPropertyFilterOperation. # noqa: E501 + :rtype: bool """ - return self._time_unit + return self._use_fiscal_year - @time_unit.setter - def time_unit(self, time_unit): - """Sets the time_unit of this PublicPropertyFilterOperation. + @use_fiscal_year.setter + def use_fiscal_year(self, use_fiscal_year): + """Sets the use_fiscal_year of this PublicPropertyFilterOperation. - :param time_unit: The time_unit of this PublicPropertyFilterOperation. # noqa: E501 - :type time_unit: str + :param use_fiscal_year: The use_fiscal_year of this PublicPropertyFilterOperation. # noqa: E501 + :type use_fiscal_year: bool """ - if self.local_vars_configuration.client_side_validation and time_unit is None: # noqa: E501 - raise ValueError("Invalid value for `time_unit`, must not be `None`") # noqa: E501 - self._time_unit = time_unit + self._use_fiscal_year = use_fiscal_year @property def fiscal_year_start(self): @@ -586,27 +584,6 @@ def fiscal_year_start(self, fiscal_year_start): self._fiscal_year_start = fiscal_year_start - @property - def use_fiscal_year(self): - """Gets the use_fiscal_year of this PublicPropertyFilterOperation. # noqa: E501 - - - :return: The use_fiscal_year of this PublicPropertyFilterOperation. # noqa: E501 - :rtype: bool - """ - return self._use_fiscal_year - - @use_fiscal_year.setter - def use_fiscal_year(self, use_fiscal_year): - """Sets the use_fiscal_year of this PublicPropertyFilterOperation. - - - :param use_fiscal_year: The use_fiscal_year of this PublicPropertyFilterOperation. # noqa: E501 - :type use_fiscal_year: bool - """ - - self._use_fiscal_year = use_fiscal_year - @property def time_unit_count(self): """Gets the time_unit_count of this PublicPropertyFilterOperation. # noqa: E501 @@ -629,27 +606,27 @@ def time_unit_count(self, time_unit_count): self._time_unit_count = time_unit_count @property - def time_point(self): - """Gets the time_point of this PublicPropertyFilterOperation. # noqa: E501 + def time_unit(self): + """Gets the time_unit of this PublicPropertyFilterOperation. # noqa: E501 - :return: The time_point of this PublicPropertyFilterOperation. # noqa: E501 - :rtype: PublicTimePointOperationTimePoint + :return: The time_unit of this PublicPropertyFilterOperation. # noqa: E501 + :rtype: str """ - return self._time_point + return self._time_unit - @time_point.setter - def time_point(self, time_point): - """Sets the time_point of this PublicPropertyFilterOperation. + @time_unit.setter + def time_unit(self, time_unit): + """Sets the time_unit of this PublicPropertyFilterOperation. - :param time_point: The time_point of this PublicPropertyFilterOperation. # noqa: E501 - :type time_point: PublicTimePointOperationTimePoint + :param time_unit: The time_unit of this PublicPropertyFilterOperation. # noqa: E501 + :type time_unit: str """ - if self.local_vars_configuration.client_side_validation and time_point is None: # noqa: E501 - raise ValueError("Invalid value for `time_point`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and time_unit is None: # noqa: E501 + raise ValueError("Invalid value for `time_unit`, must not be `None`") # noqa: E501 - self._time_point = time_point + self._time_unit = time_unit @property def endpoint_behavior(self): @@ -693,6 +670,29 @@ def property_parser(self, property_parser): self._property_parser = property_parser + @property + def time_point(self): + """Gets the time_point of this PublicPropertyFilterOperation. # noqa: E501 + + + :return: The time_point of this PublicPropertyFilterOperation. # noqa: E501 + :rtype: PublicTimePointOperationTimePoint + """ + return self._time_point + + @time_point.setter + def time_point(self, time_point): + """Sets the time_point of this PublicPropertyFilterOperation. + + + :param time_point: The time_point of this PublicPropertyFilterOperation. # noqa: E501 + :type time_point: PublicTimePointOperationTimePoint + """ + if self.local_vars_configuration.client_side_validation and time_point is None: # noqa: E501 + raise ValueError("Invalid value for `time_point`, must not be `None`") # noqa: E501 + + self._time_point = time_point + @property def type(self): """Gets the type of this PublicPropertyFilterOperation. # noqa: E501 @@ -720,46 +720,69 @@ def type(self, type): self._type = type @property - def lower_bound_endpoint_behavior(self): - """Gets the lower_bound_endpoint_behavior of this PublicPropertyFilterOperation. # noqa: E501 + def upper_bound_endpoint_behavior(self): + """Gets the upper_bound_endpoint_behavior of this PublicPropertyFilterOperation. # noqa: E501 - :return: The lower_bound_endpoint_behavior of this PublicPropertyFilterOperation. # noqa: E501 + :return: The upper_bound_endpoint_behavior of this PublicPropertyFilterOperation. # noqa: E501 :rtype: str """ - return self._lower_bound_endpoint_behavior + return self._upper_bound_endpoint_behavior - @lower_bound_endpoint_behavior.setter - def lower_bound_endpoint_behavior(self, lower_bound_endpoint_behavior): - """Sets the lower_bound_endpoint_behavior of this PublicPropertyFilterOperation. + @upper_bound_endpoint_behavior.setter + def upper_bound_endpoint_behavior(self, upper_bound_endpoint_behavior): + """Sets the upper_bound_endpoint_behavior of this PublicPropertyFilterOperation. - :param lower_bound_endpoint_behavior: The lower_bound_endpoint_behavior of this PublicPropertyFilterOperation. # noqa: E501 - :type lower_bound_endpoint_behavior: str + :param upper_bound_endpoint_behavior: The upper_bound_endpoint_behavior of this PublicPropertyFilterOperation. # noqa: E501 + :type upper_bound_endpoint_behavior: str """ - self._lower_bound_endpoint_behavior = lower_bound_endpoint_behavior + self._upper_bound_endpoint_behavior = upper_bound_endpoint_behavior @property - def upper_bound_endpoint_behavior(self): - """Gets the upper_bound_endpoint_behavior of this PublicPropertyFilterOperation. # noqa: E501 + def upper_bound_time_point(self): + """Gets the upper_bound_time_point of this PublicPropertyFilterOperation. # noqa: E501 - :return: The upper_bound_endpoint_behavior of this PublicPropertyFilterOperation. # noqa: E501 + :return: The upper_bound_time_point of this PublicPropertyFilterOperation. # noqa: E501 + :rtype: PublicTimePointOperationTimePoint + """ + return self._upper_bound_time_point + + @upper_bound_time_point.setter + def upper_bound_time_point(self, upper_bound_time_point): + """Sets the upper_bound_time_point of this PublicPropertyFilterOperation. + + + :param upper_bound_time_point: The upper_bound_time_point of this PublicPropertyFilterOperation. # noqa: E501 + :type upper_bound_time_point: PublicTimePointOperationTimePoint + """ + if self.local_vars_configuration.client_side_validation and upper_bound_time_point is None: # noqa: E501 + raise ValueError("Invalid value for `upper_bound_time_point`, must not be `None`") # noqa: E501 + + self._upper_bound_time_point = upper_bound_time_point + + @property + def lower_bound_endpoint_behavior(self): + """Gets the lower_bound_endpoint_behavior of this PublicPropertyFilterOperation. # noqa: E501 + + + :return: The lower_bound_endpoint_behavior of this PublicPropertyFilterOperation. # noqa: E501 :rtype: str """ - return self._upper_bound_endpoint_behavior + return self._lower_bound_endpoint_behavior - @upper_bound_endpoint_behavior.setter - def upper_bound_endpoint_behavior(self, upper_bound_endpoint_behavior): - """Sets the upper_bound_endpoint_behavior of this PublicPropertyFilterOperation. + @lower_bound_endpoint_behavior.setter + def lower_bound_endpoint_behavior(self, lower_bound_endpoint_behavior): + """Sets the lower_bound_endpoint_behavior of this PublicPropertyFilterOperation. - :param upper_bound_endpoint_behavior: The upper_bound_endpoint_behavior of this PublicPropertyFilterOperation. # noqa: E501 - :type upper_bound_endpoint_behavior: str + :param lower_bound_endpoint_behavior: The lower_bound_endpoint_behavior of this PublicPropertyFilterOperation. # noqa: E501 + :type lower_bound_endpoint_behavior: str """ - self._upper_bound_endpoint_behavior = upper_bound_endpoint_behavior + self._lower_bound_endpoint_behavior = lower_bound_endpoint_behavior @property def lower_bound_time_point(self): @@ -784,29 +807,6 @@ def lower_bound_time_point(self, lower_bound_time_point): self._lower_bound_time_point = lower_bound_time_point - @property - def upper_bound_time_point(self): - """Gets the upper_bound_time_point of this PublicPropertyFilterOperation. # noqa: E501 - - - :return: The upper_bound_time_point of this PublicPropertyFilterOperation. # noqa: E501 - :rtype: PublicTimePointOperationTimePoint - """ - return self._upper_bound_time_point - - @upper_bound_time_point.setter - def upper_bound_time_point(self, upper_bound_time_point): - """Sets the upper_bound_time_point of this PublicPropertyFilterOperation. - - - :param upper_bound_time_point: The upper_bound_time_point of this PublicPropertyFilterOperation. # noqa: E501 - :type upper_bound_time_point: PublicTimePointOperationTimePoint - """ - if self.local_vars_configuration.client_side_validation and upper_bound_time_point is None: # noqa: E501 - raise ValueError("Invalid value for `upper_bound_time_point`, must not be `None`") # noqa: E501 - - self._upper_bound_time_point = upper_bound_time_point - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_property_referenced_time.py b/hubspot/crm/lists/models/public_property_referenced_time.py index 05bacb31..f797ec50 100644 --- a/hubspot/crm/lists/models/public_property_referenced_time.py +++ b/hubspot/crm/lists/models/public_property_referenced_time.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,30 +35,74 @@ class PublicPropertyReferencedTime(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"time_type": "str", "timezone_source": "str", "zone_id": "str", "_property": "str", "reference_type": "str"} + openapi_types = {"timezone_source": "str", "_property": "str", "time_type": "str", "zone_id": "str", "reference_type": "str"} - attribute_map = {"time_type": "timeType", "timezone_source": "timezoneSource", "zone_id": "zoneId", "_property": "property", "reference_type": "referenceType"} + attribute_map = {"timezone_source": "timezoneSource", "_property": "property", "time_type": "timeType", "zone_id": "zoneId", "reference_type": "referenceType"} - def __init__(self, time_type="PROPERTY_REFERENCED", timezone_source=None, zone_id=None, _property=None, reference_type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, timezone_source=None, _property=None, time_type="PROPERTY_REFERENCED", zone_id=None, reference_type=None, local_vars_configuration=None): # noqa: E501 """PublicPropertyReferencedTime - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._time_type = None self._timezone_source = None - self._zone_id = None self.__property = None + self._time_type = None + self._zone_id = None self._reference_type = None self.discriminator = None - self.time_type = time_type if timezone_source is not None: self.timezone_source = timezone_source - self.zone_id = zone_id self._property = _property + self.time_type = time_type + self.zone_id = zone_id self.reference_type = reference_type + @property + def timezone_source(self): + """Gets the timezone_source of this PublicPropertyReferencedTime. # noqa: E501 + + + :return: The timezone_source of this PublicPropertyReferencedTime. # noqa: E501 + :rtype: str + """ + return self._timezone_source + + @timezone_source.setter + def timezone_source(self, timezone_source): + """Sets the timezone_source of this PublicPropertyReferencedTime. + + + :param timezone_source: The timezone_source of this PublicPropertyReferencedTime. # noqa: E501 + :type timezone_source: str + """ + + self._timezone_source = timezone_source + + @property + def _property(self): + """Gets the _property of this PublicPropertyReferencedTime. # noqa: E501 + + + :return: The _property of this PublicPropertyReferencedTime. # noqa: E501 + :rtype: str + """ + return self.__property + + @_property.setter + def _property(self, _property): + """Sets the _property of this PublicPropertyReferencedTime. + + + :param _property: The _property of this PublicPropertyReferencedTime. # noqa: E501 + :type _property: str + """ + if self.local_vars_configuration.client_side_validation and _property is None: # noqa: E501 + raise ValueError("Invalid value for `_property`, must not be `None`") # noqa: E501 + + self.__property = _property + @property def time_type(self): """Gets the time_type of this PublicPropertyReferencedTime. # noqa: E501 @@ -85,27 +129,6 @@ def time_type(self, time_type): self._time_type = time_type - @property - def timezone_source(self): - """Gets the timezone_source of this PublicPropertyReferencedTime. # noqa: E501 - - - :return: The timezone_source of this PublicPropertyReferencedTime. # noqa: E501 - :rtype: str - """ - return self._timezone_source - - @timezone_source.setter - def timezone_source(self, timezone_source): - """Sets the timezone_source of this PublicPropertyReferencedTime. - - - :param timezone_source: The timezone_source of this PublicPropertyReferencedTime. # noqa: E501 - :type timezone_source: str - """ - - self._timezone_source = timezone_source - @property def zone_id(self): """Gets the zone_id of this PublicPropertyReferencedTime. # noqa: E501 @@ -129,29 +152,6 @@ def zone_id(self, zone_id): self._zone_id = zone_id - @property - def _property(self): - """Gets the _property of this PublicPropertyReferencedTime. # noqa: E501 - - - :return: The _property of this PublicPropertyReferencedTime. # noqa: E501 - :rtype: str - """ - return self.__property - - @_property.setter - def _property(self, _property): - """Sets the _property of this PublicPropertyReferencedTime. - - - :param _property: The _property of this PublicPropertyReferencedTime. # noqa: E501 - :type _property: str - """ - if self.local_vars_configuration.client_side_validation and _property is None: # noqa: E501 - raise ValueError("Invalid value for `_property`, must not be `None`") # noqa: E501 - - self.__property = _property - @property def reference_type(self): """Gets the reference_type of this PublicPropertyReferencedTime. # noqa: E501 diff --git a/hubspot/crm/lists/models/public_quarter_reference.py b/hubspot/crm/lists/models/public_quarter_reference.py index 5837dc17..c13bf8f4 100644 --- a/hubspot/crm/lists/models/public_quarter_reference.py +++ b/hubspot/crm/lists/models/public_quarter_reference.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,62 +35,36 @@ class PublicQuarterReference(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"reference_type": "str", "hour": "int", "minute": "int", "second": "int", "millisecond": "int", "month": "int", "day": "int"} + openapi_types = {"hour": "int", "month": "int", "millisecond": "int", "reference_type": "str", "day": "int", "minute": "int", "second": "int"} - attribute_map = {"reference_type": "referenceType", "hour": "hour", "minute": "minute", "second": "second", "millisecond": "millisecond", "month": "month", "day": "day"} + attribute_map = {"hour": "hour", "month": "month", "millisecond": "millisecond", "reference_type": "referenceType", "day": "day", "minute": "minute", "second": "second"} - def __init__(self, reference_type="QUARTER", hour=None, minute=None, second=None, millisecond=None, month=None, day=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, hour=None, month=None, millisecond=None, reference_type="QUARTER", day=None, minute=None, second=None, local_vars_configuration=None): # noqa: E501 """PublicQuarterReference - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._reference_type = None self._hour = None - self._minute = None - self._second = None - self._millisecond = None self._month = None + self._millisecond = None + self._reference_type = None self._day = None + self._minute = None + self._second = None self.discriminator = None - self.reference_type = reference_type if hour is not None: self.hour = hour + self.month = month + if millisecond is not None: + self.millisecond = millisecond + self.reference_type = reference_type + self.day = day if minute is not None: self.minute = minute if second is not None: self.second = second - if millisecond is not None: - self.millisecond = millisecond - self.month = month - self.day = day - - @property - def reference_type(self): - """Gets the reference_type of this PublicQuarterReference. # noqa: E501 - - - :return: The reference_type of this PublicQuarterReference. # noqa: E501 - :rtype: str - """ - return self._reference_type - - @reference_type.setter - def reference_type(self, reference_type): - """Sets the reference_type of this PublicQuarterReference. - - - :param reference_type: The reference_type of this PublicQuarterReference. # noqa: E501 - :type reference_type: str - """ - if self.local_vars_configuration.client_side_validation and reference_type is None: # noqa: E501 - raise ValueError("Invalid value for `reference_type`, must not be `None`") # noqa: E501 - allowed_values = ["QUARTER"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and reference_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `reference_type` ({0}), must be one of {1}".format(reference_type, allowed_values)) # noqa: E501 - - self._reference_type = reference_type @property def hour(self): @@ -114,46 +88,27 @@ def hour(self, hour): self._hour = hour @property - def minute(self): - """Gets the minute of this PublicQuarterReference. # noqa: E501 - - - :return: The minute of this PublicQuarterReference. # noqa: E501 - :rtype: int - """ - return self._minute - - @minute.setter - def minute(self, minute): - """Sets the minute of this PublicQuarterReference. - - - :param minute: The minute of this PublicQuarterReference. # noqa: E501 - :type minute: int - """ - - self._minute = minute - - @property - def second(self): - """Gets the second of this PublicQuarterReference. # noqa: E501 + def month(self): + """Gets the month of this PublicQuarterReference. # noqa: E501 - :return: The second of this PublicQuarterReference. # noqa: E501 + :return: The month of this PublicQuarterReference. # noqa: E501 :rtype: int """ - return self._second + return self._month - @second.setter - def second(self, second): - """Sets the second of this PublicQuarterReference. + @month.setter + def month(self, month): + """Sets the month of this PublicQuarterReference. - :param second: The second of this PublicQuarterReference. # noqa: E501 - :type second: int + :param month: The month of this PublicQuarterReference. # noqa: E501 + :type month: int """ + if self.local_vars_configuration.client_side_validation and month is None: # noqa: E501 + raise ValueError("Invalid value for `month`, must not be `None`") # noqa: E501 - self._second = second + self._month = month @property def millisecond(self): @@ -177,27 +132,30 @@ def millisecond(self, millisecond): self._millisecond = millisecond @property - def month(self): - """Gets the month of this PublicQuarterReference. # noqa: E501 + def reference_type(self): + """Gets the reference_type of this PublicQuarterReference. # noqa: E501 - :return: The month of this PublicQuarterReference. # noqa: E501 - :rtype: int + :return: The reference_type of this PublicQuarterReference. # noqa: E501 + :rtype: str """ - return self._month + return self._reference_type - @month.setter - def month(self, month): - """Sets the month of this PublicQuarterReference. + @reference_type.setter + def reference_type(self, reference_type): + """Sets the reference_type of this PublicQuarterReference. - :param month: The month of this PublicQuarterReference. # noqa: E501 - :type month: int + :param reference_type: The reference_type of this PublicQuarterReference. # noqa: E501 + :type reference_type: str """ - if self.local_vars_configuration.client_side_validation and month is None: # noqa: E501 - raise ValueError("Invalid value for `month`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and reference_type is None: # noqa: E501 + raise ValueError("Invalid value for `reference_type`, must not be `None`") # noqa: E501 + allowed_values = ["QUARTER"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and reference_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `reference_type` ({0}), must be one of {1}".format(reference_type, allowed_values)) # noqa: E501 - self._month = month + self._reference_type = reference_type @property def day(self): @@ -222,6 +180,48 @@ def day(self, day): self._day = day + @property + def minute(self): + """Gets the minute of this PublicQuarterReference. # noqa: E501 + + + :return: The minute of this PublicQuarterReference. # noqa: E501 + :rtype: int + """ + return self._minute + + @minute.setter + def minute(self, minute): + """Sets the minute of this PublicQuarterReference. + + + :param minute: The minute of this PublicQuarterReference. # noqa: E501 + :type minute: int + """ + + self._minute = minute + + @property + def second(self): + """Gets the second of this PublicQuarterReference. # noqa: E501 + + + :return: The second of this PublicQuarterReference. # noqa: E501 + :rtype: int + """ + return self._second + + @second.setter + def second(self, second): + """Sets the second of this PublicQuarterReference. + + + :param second: The second of this PublicQuarterReference. # noqa: E501 + :type second: int + """ + + self._second = second + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_ranged_date_property_operation.py b/hubspot/crm/lists/models/public_ranged_date_property_operation.py index c7da3146..76c66693 100644 --- a/hubspot/crm/lists/models/public_ranged_date_property_operation.py +++ b/hubspot/crm/lists/models/public_ranged_date_property_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,88 +35,39 @@ class PublicRangedDatePropertyOperation(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"operation_type": "str", "operator": "str", "include_objects_with_no_value_set": "bool", "upper_bound": "int", "lower_bound": "int", "requires_time_zone_conversion": "bool"} + openapi_types = {"include_objects_with_no_value_set": "bool", "upper_bound": "int", "requires_time_zone_conversion": "bool", "operation_type": "str", "lower_bound": "int", "operator": "str"} attribute_map = { - "operation_type": "operationType", - "operator": "operator", "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "upper_bound": "upperBound", - "lower_bound": "lowerBound", "requires_time_zone_conversion": "requiresTimeZoneConversion", + "operation_type": "operationType", + "lower_bound": "lowerBound", + "operator": "operator", } def __init__( - self, operation_type="RANGED_DATE", operator=None, include_objects_with_no_value_set=None, upper_bound=None, lower_bound=None, requires_time_zone_conversion=None, local_vars_configuration=None + self, include_objects_with_no_value_set=None, upper_bound=None, requires_time_zone_conversion=None, operation_type="RANGED_DATE", lower_bound=None, operator=None, local_vars_configuration=None ): # noqa: E501 """PublicRangedDatePropertyOperation - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._operation_type = None - self._operator = None self._include_objects_with_no_value_set = None self._upper_bound = None - self._lower_bound = None self._requires_time_zone_conversion = None + self._operation_type = None + self._lower_bound = None + self._operator = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator self.include_objects_with_no_value_set = include_objects_with_no_value_set self.upper_bound = upper_bound - self.lower_bound = lower_bound self.requires_time_zone_conversion = requires_time_zone_conversion - - @property - def operation_type(self): - """Gets the operation_type of this PublicRangedDatePropertyOperation. # noqa: E501 - - - :return: The operation_type of this PublicRangedDatePropertyOperation. # noqa: E501 - :rtype: str - """ - return self._operation_type - - @operation_type.setter - def operation_type(self, operation_type): - """Sets the operation_type of this PublicRangedDatePropertyOperation. - - - :param operation_type: The operation_type of this PublicRangedDatePropertyOperation. # noqa: E501 - :type operation_type: str - """ - if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 - raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 - allowed_values = ["RANGED_DATE"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 - - self._operation_type = operation_type - - @property - def operator(self): - """Gets the operator of this PublicRangedDatePropertyOperation. # noqa: E501 - - - :return: The operator of this PublicRangedDatePropertyOperation. # noqa: E501 - :rtype: str - """ - return self._operator - - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicRangedDatePropertyOperation. - - - :param operator: The operator of this PublicRangedDatePropertyOperation. # noqa: E501 - :type operator: str - """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - - self._operator = operator + self.operation_type = operation_type + self.lower_bound = lower_bound + self.operator = operator @property def include_objects_with_no_value_set(self): @@ -164,6 +115,55 @@ def upper_bound(self, upper_bound): self._upper_bound = upper_bound + @property + def requires_time_zone_conversion(self): + """Gets the requires_time_zone_conversion of this PublicRangedDatePropertyOperation. # noqa: E501 + + + :return: The requires_time_zone_conversion of this PublicRangedDatePropertyOperation. # noqa: E501 + :rtype: bool + """ + return self._requires_time_zone_conversion + + @requires_time_zone_conversion.setter + def requires_time_zone_conversion(self, requires_time_zone_conversion): + """Sets the requires_time_zone_conversion of this PublicRangedDatePropertyOperation. + + + :param requires_time_zone_conversion: The requires_time_zone_conversion of this PublicRangedDatePropertyOperation. # noqa: E501 + :type requires_time_zone_conversion: bool + """ + if self.local_vars_configuration.client_side_validation and requires_time_zone_conversion is None: # noqa: E501 + raise ValueError("Invalid value for `requires_time_zone_conversion`, must not be `None`") # noqa: E501 + + self._requires_time_zone_conversion = requires_time_zone_conversion + + @property + def operation_type(self): + """Gets the operation_type of this PublicRangedDatePropertyOperation. # noqa: E501 + + + :return: The operation_type of this PublicRangedDatePropertyOperation. # noqa: E501 + :rtype: str + """ + return self._operation_type + + @operation_type.setter + def operation_type(self, operation_type): + """Sets the operation_type of this PublicRangedDatePropertyOperation. + + + :param operation_type: The operation_type of this PublicRangedDatePropertyOperation. # noqa: E501 + :type operation_type: str + """ + if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 + raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 + allowed_values = ["RANGED_DATE"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 + + self._operation_type = operation_type + @property def lower_bound(self): """Gets the lower_bound of this PublicRangedDatePropertyOperation. # noqa: E501 @@ -188,27 +188,27 @@ def lower_bound(self, lower_bound): self._lower_bound = lower_bound @property - def requires_time_zone_conversion(self): - """Gets the requires_time_zone_conversion of this PublicRangedDatePropertyOperation. # noqa: E501 + def operator(self): + """Gets the operator of this PublicRangedDatePropertyOperation. # noqa: E501 - :return: The requires_time_zone_conversion of this PublicRangedDatePropertyOperation. # noqa: E501 - :rtype: bool + :return: The operator of this PublicRangedDatePropertyOperation. # noqa: E501 + :rtype: str """ - return self._requires_time_zone_conversion + return self._operator - @requires_time_zone_conversion.setter - def requires_time_zone_conversion(self, requires_time_zone_conversion): - """Sets the requires_time_zone_conversion of this PublicRangedDatePropertyOperation. + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicRangedDatePropertyOperation. - :param requires_time_zone_conversion: The requires_time_zone_conversion of this PublicRangedDatePropertyOperation. # noqa: E501 - :type requires_time_zone_conversion: bool + :param operator: The operator of this PublicRangedDatePropertyOperation. # noqa: E501 + :type operator: str """ - if self.local_vars_configuration.client_side_validation and requires_time_zone_conversion is None: # noqa: E501 - raise ValueError("Invalid value for `requires_time_zone_conversion`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._requires_time_zone_conversion = requires_time_zone_conversion + self._operator = operator def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_ranged_number_property_operation.py b/hubspot/crm/lists/models/public_ranged_number_property_operation.py index e5f5ca26..144578db 100644 --- a/hubspot/crm/lists/models/public_ranged_number_property_operation.py +++ b/hubspot/crm/lists/models/public_ranged_number_property_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,83 +35,34 @@ class PublicRangedNumberPropertyOperation(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"operation_type": "str", "operator": "str", "include_objects_with_no_value_set": "bool", "upper_bound": "int", "lower_bound": "int"} + openapi_types = {"include_objects_with_no_value_set": "bool", "upper_bound": "int", "operation_type": "str", "lower_bound": "int", "operator": "str"} attribute_map = { - "operation_type": "operationType", - "operator": "operator", "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "upper_bound": "upperBound", + "operation_type": "operationType", "lower_bound": "lowerBound", + "operator": "operator", } - def __init__(self, operation_type="NUMBER_RANGED", operator=None, include_objects_with_no_value_set=None, upper_bound=None, lower_bound=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, include_objects_with_no_value_set=None, upper_bound=None, operation_type="NUMBER_RANGED", lower_bound=None, operator=None, local_vars_configuration=None): # noqa: E501 """PublicRangedNumberPropertyOperation - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._operation_type = None - self._operator = None self._include_objects_with_no_value_set = None self._upper_bound = None + self._operation_type = None self._lower_bound = None + self._operator = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator self.include_objects_with_no_value_set = include_objects_with_no_value_set self.upper_bound = upper_bound + self.operation_type = operation_type self.lower_bound = lower_bound - - @property - def operation_type(self): - """Gets the operation_type of this PublicRangedNumberPropertyOperation. # noqa: E501 - - - :return: The operation_type of this PublicRangedNumberPropertyOperation. # noqa: E501 - :rtype: str - """ - return self._operation_type - - @operation_type.setter - def operation_type(self, operation_type): - """Sets the operation_type of this PublicRangedNumberPropertyOperation. - - - :param operation_type: The operation_type of this PublicRangedNumberPropertyOperation. # noqa: E501 - :type operation_type: str - """ - if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 - raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 - allowed_values = ["NUMBER_RANGED"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 - - self._operation_type = operation_type - - @property - def operator(self): - """Gets the operator of this PublicRangedNumberPropertyOperation. # noqa: E501 - - - :return: The operator of this PublicRangedNumberPropertyOperation. # noqa: E501 - :rtype: str - """ - return self._operator - - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicRangedNumberPropertyOperation. - - - :param operator: The operator of this PublicRangedNumberPropertyOperation. # noqa: E501 - :type operator: str - """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - - self._operator = operator + self.operator = operator @property def include_objects_with_no_value_set(self): @@ -159,6 +110,32 @@ def upper_bound(self, upper_bound): self._upper_bound = upper_bound + @property + def operation_type(self): + """Gets the operation_type of this PublicRangedNumberPropertyOperation. # noqa: E501 + + + :return: The operation_type of this PublicRangedNumberPropertyOperation. # noqa: E501 + :rtype: str + """ + return self._operation_type + + @operation_type.setter + def operation_type(self, operation_type): + """Sets the operation_type of this PublicRangedNumberPropertyOperation. + + + :param operation_type: The operation_type of this PublicRangedNumberPropertyOperation. # noqa: E501 + :type operation_type: str + """ + if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 + raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 + allowed_values = ["NUMBER_RANGED"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 + + self._operation_type = operation_type + @property def lower_bound(self): """Gets the lower_bound of this PublicRangedNumberPropertyOperation. # noqa: E501 @@ -182,6 +159,29 @@ def lower_bound(self, lower_bound): self._lower_bound = lower_bound + @property + def operator(self): + """Gets the operator of this PublicRangedNumberPropertyOperation. # noqa: E501 + + + :return: The operator of this PublicRangedNumberPropertyOperation. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicRangedNumberPropertyOperation. + + + :param operator: The operator of this PublicRangedNumberPropertyOperation. # noqa: E501 + :type operator: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + + self._operator = operator + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_ranged_time_operation.py b/hubspot/crm/lists/models/public_ranged_time_operation.py index a0606100..12c0246e 100644 --- a/hubspot/crm/lists/models/public_ranged_time_operation.py +++ b/hubspot/crm/lists/models/public_ranged_time_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,40 +36,40 @@ class PublicRangedTimeOperation(object): and the value is json key in definition. """ openapi_types = { - "type": "str", - "operator": "str", - "include_objects_with_no_value_set": "bool", - "lower_bound_endpoint_behavior": "str", "upper_bound_endpoint_behavior": "str", - "property_parser": "str", - "lower_bound_time_point": "PublicTimePointOperationTimePoint", + "include_objects_with_no_value_set": "bool", "upper_bound_time_point": "PublicTimePointOperationTimePoint", + "property_parser": "str", "operation_type": "str", + "type": "str", + "lower_bound_endpoint_behavior": "str", + "operator": "str", + "lower_bound_time_point": "PublicTimePointOperationTimePoint", } attribute_map = { - "type": "type", - "operator": "operator", - "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", - "lower_bound_endpoint_behavior": "lowerBoundEndpointBehavior", "upper_bound_endpoint_behavior": "upperBoundEndpointBehavior", - "property_parser": "propertyParser", - "lower_bound_time_point": "lowerBoundTimePoint", + "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "upper_bound_time_point": "upperBoundTimePoint", + "property_parser": "propertyParser", "operation_type": "operationType", + "type": "type", + "lower_bound_endpoint_behavior": "lowerBoundEndpointBehavior", + "operator": "operator", + "lower_bound_time_point": "lowerBoundTimePoint", } def __init__( self, - type="TIME_RANGED", - operator=None, - include_objects_with_no_value_set=None, - lower_bound_endpoint_behavior=None, upper_bound_endpoint_behavior=None, - property_parser=None, - lower_bound_time_point=None, + include_objects_with_no_value_set=None, upper_bound_time_point=None, + property_parser=None, operation_type=None, + type="TIME_RANGED", + lower_bound_endpoint_behavior=None, + operator=None, + lower_bound_time_point=None, local_vars_configuration=None, ): # noqa: E501 """PublicRangedTimeOperation - a model defined in OpenAPI""" # noqa: E501 @@ -77,78 +77,50 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._type = None - self._operator = None - self._include_objects_with_no_value_set = None - self._lower_bound_endpoint_behavior = None self._upper_bound_endpoint_behavior = None - self._property_parser = None - self._lower_bound_time_point = None + self._include_objects_with_no_value_set = None self._upper_bound_time_point = None + self._property_parser = None self._operation_type = None + self._type = None + self._lower_bound_endpoint_behavior = None + self._operator = None + self._lower_bound_time_point = None self.discriminator = None - self.type = type - self.operator = operator - self.include_objects_with_no_value_set = include_objects_with_no_value_set - if lower_bound_endpoint_behavior is not None: - self.lower_bound_endpoint_behavior = lower_bound_endpoint_behavior if upper_bound_endpoint_behavior is not None: self.upper_bound_endpoint_behavior = upper_bound_endpoint_behavior + self.include_objects_with_no_value_set = include_objects_with_no_value_set + self.upper_bound_time_point = upper_bound_time_point if property_parser is not None: self.property_parser = property_parser - self.lower_bound_time_point = lower_bound_time_point - self.upper_bound_time_point = upper_bound_time_point self.operation_type = operation_type + self.type = type + if lower_bound_endpoint_behavior is not None: + self.lower_bound_endpoint_behavior = lower_bound_endpoint_behavior + self.operator = operator + self.lower_bound_time_point = lower_bound_time_point @property - def type(self): - """Gets the type of this PublicRangedTimeOperation. # noqa: E501 - - - :return: The type of this PublicRangedTimeOperation. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this PublicRangedTimeOperation. - - - :param type: The type of this PublicRangedTimeOperation. # noqa: E501 - :type type: str - """ - if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["TIME_RANGED"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `type` ({0}), must be one of {1}".format(type, allowed_values)) # noqa: E501 - - self._type = type - - @property - def operator(self): - """Gets the operator of this PublicRangedTimeOperation. # noqa: E501 + def upper_bound_endpoint_behavior(self): + """Gets the upper_bound_endpoint_behavior of this PublicRangedTimeOperation. # noqa: E501 - :return: The operator of this PublicRangedTimeOperation. # noqa: E501 + :return: The upper_bound_endpoint_behavior of this PublicRangedTimeOperation. # noqa: E501 :rtype: str """ - return self._operator + return self._upper_bound_endpoint_behavior - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicRangedTimeOperation. + @upper_bound_endpoint_behavior.setter + def upper_bound_endpoint_behavior(self, upper_bound_endpoint_behavior): + """Sets the upper_bound_endpoint_behavior of this PublicRangedTimeOperation. - :param operator: The operator of this PublicRangedTimeOperation. # noqa: E501 - :type operator: str + :param upper_bound_endpoint_behavior: The upper_bound_endpoint_behavior of this PublicRangedTimeOperation. # noqa: E501 + :type upper_bound_endpoint_behavior: str """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._operator = operator + self._upper_bound_endpoint_behavior = upper_bound_endpoint_behavior @property def include_objects_with_no_value_set(self): @@ -174,136 +146,164 @@ def include_objects_with_no_value_set(self, include_objects_with_no_value_set): self._include_objects_with_no_value_set = include_objects_with_no_value_set @property - def lower_bound_endpoint_behavior(self): - """Gets the lower_bound_endpoint_behavior of this PublicRangedTimeOperation. # noqa: E501 + def upper_bound_time_point(self): + """Gets the upper_bound_time_point of this PublicRangedTimeOperation. # noqa: E501 - :return: The lower_bound_endpoint_behavior of this PublicRangedTimeOperation. # noqa: E501 - :rtype: str + :return: The upper_bound_time_point of this PublicRangedTimeOperation. # noqa: E501 + :rtype: PublicTimePointOperationTimePoint """ - return self._lower_bound_endpoint_behavior + return self._upper_bound_time_point - @lower_bound_endpoint_behavior.setter - def lower_bound_endpoint_behavior(self, lower_bound_endpoint_behavior): - """Sets the lower_bound_endpoint_behavior of this PublicRangedTimeOperation. + @upper_bound_time_point.setter + def upper_bound_time_point(self, upper_bound_time_point): + """Sets the upper_bound_time_point of this PublicRangedTimeOperation. - :param lower_bound_endpoint_behavior: The lower_bound_endpoint_behavior of this PublicRangedTimeOperation. # noqa: E501 - :type lower_bound_endpoint_behavior: str + :param upper_bound_time_point: The upper_bound_time_point of this PublicRangedTimeOperation. # noqa: E501 + :type upper_bound_time_point: PublicTimePointOperationTimePoint """ + if self.local_vars_configuration.client_side_validation and upper_bound_time_point is None: # noqa: E501 + raise ValueError("Invalid value for `upper_bound_time_point`, must not be `None`") # noqa: E501 - self._lower_bound_endpoint_behavior = lower_bound_endpoint_behavior + self._upper_bound_time_point = upper_bound_time_point @property - def upper_bound_endpoint_behavior(self): - """Gets the upper_bound_endpoint_behavior of this PublicRangedTimeOperation. # noqa: E501 + def property_parser(self): + """Gets the property_parser of this PublicRangedTimeOperation. # noqa: E501 - :return: The upper_bound_endpoint_behavior of this PublicRangedTimeOperation. # noqa: E501 + :return: The property_parser of this PublicRangedTimeOperation. # noqa: E501 :rtype: str """ - return self._upper_bound_endpoint_behavior + return self._property_parser - @upper_bound_endpoint_behavior.setter - def upper_bound_endpoint_behavior(self, upper_bound_endpoint_behavior): - """Sets the upper_bound_endpoint_behavior of this PublicRangedTimeOperation. + @property_parser.setter + def property_parser(self, property_parser): + """Sets the property_parser of this PublicRangedTimeOperation. - :param upper_bound_endpoint_behavior: The upper_bound_endpoint_behavior of this PublicRangedTimeOperation. # noqa: E501 - :type upper_bound_endpoint_behavior: str + :param property_parser: The property_parser of this PublicRangedTimeOperation. # noqa: E501 + :type property_parser: str """ - self._upper_bound_endpoint_behavior = upper_bound_endpoint_behavior + self._property_parser = property_parser @property - def property_parser(self): - """Gets the property_parser of this PublicRangedTimeOperation. # noqa: E501 + def operation_type(self): + """Gets the operation_type of this PublicRangedTimeOperation. # noqa: E501 - :return: The property_parser of this PublicRangedTimeOperation. # noqa: E501 + :return: The operation_type of this PublicRangedTimeOperation. # noqa: E501 :rtype: str """ - return self._property_parser + return self._operation_type - @property_parser.setter - def property_parser(self, property_parser): - """Sets the property_parser of this PublicRangedTimeOperation. + @operation_type.setter + def operation_type(self, operation_type): + """Sets the operation_type of this PublicRangedTimeOperation. - :param property_parser: The property_parser of this PublicRangedTimeOperation. # noqa: E501 - :type property_parser: str + :param operation_type: The operation_type of this PublicRangedTimeOperation. # noqa: E501 + :type operation_type: str """ + if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 + raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 - self._property_parser = property_parser + self._operation_type = operation_type @property - def lower_bound_time_point(self): - """Gets the lower_bound_time_point of this PublicRangedTimeOperation. # noqa: E501 + def type(self): + """Gets the type of this PublicRangedTimeOperation. # noqa: E501 - :return: The lower_bound_time_point of this PublicRangedTimeOperation. # noqa: E501 - :rtype: PublicTimePointOperationTimePoint + :return: The type of this PublicRangedTimeOperation. # noqa: E501 + :rtype: str """ - return self._lower_bound_time_point + return self._type - @lower_bound_time_point.setter - def lower_bound_time_point(self, lower_bound_time_point): - """Sets the lower_bound_time_point of this PublicRangedTimeOperation. + @type.setter + def type(self, type): + """Sets the type of this PublicRangedTimeOperation. - :param lower_bound_time_point: The lower_bound_time_point of this PublicRangedTimeOperation. # noqa: E501 - :type lower_bound_time_point: PublicTimePointOperationTimePoint + :param type: The type of this PublicRangedTimeOperation. # noqa: E501 + :type type: str """ - if self.local_vars_configuration.client_side_validation and lower_bound_time_point is None: # noqa: E501 - raise ValueError("Invalid value for `lower_bound_time_point`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + allowed_values = ["TIME_RANGED"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `type` ({0}), must be one of {1}".format(type, allowed_values)) # noqa: E501 - self._lower_bound_time_point = lower_bound_time_point + self._type = type @property - def upper_bound_time_point(self): - """Gets the upper_bound_time_point of this PublicRangedTimeOperation. # noqa: E501 + def lower_bound_endpoint_behavior(self): + """Gets the lower_bound_endpoint_behavior of this PublicRangedTimeOperation. # noqa: E501 - :return: The upper_bound_time_point of this PublicRangedTimeOperation. # noqa: E501 - :rtype: PublicTimePointOperationTimePoint + :return: The lower_bound_endpoint_behavior of this PublicRangedTimeOperation. # noqa: E501 + :rtype: str """ - return self._upper_bound_time_point + return self._lower_bound_endpoint_behavior - @upper_bound_time_point.setter - def upper_bound_time_point(self, upper_bound_time_point): - """Sets the upper_bound_time_point of this PublicRangedTimeOperation. + @lower_bound_endpoint_behavior.setter + def lower_bound_endpoint_behavior(self, lower_bound_endpoint_behavior): + """Sets the lower_bound_endpoint_behavior of this PublicRangedTimeOperation. - :param upper_bound_time_point: The upper_bound_time_point of this PublicRangedTimeOperation. # noqa: E501 - :type upper_bound_time_point: PublicTimePointOperationTimePoint + :param lower_bound_endpoint_behavior: The lower_bound_endpoint_behavior of this PublicRangedTimeOperation. # noqa: E501 + :type lower_bound_endpoint_behavior: str """ - if self.local_vars_configuration.client_side_validation and upper_bound_time_point is None: # noqa: E501 - raise ValueError("Invalid value for `upper_bound_time_point`, must not be `None`") # noqa: E501 - self._upper_bound_time_point = upper_bound_time_point + self._lower_bound_endpoint_behavior = lower_bound_endpoint_behavior @property - def operation_type(self): - """Gets the operation_type of this PublicRangedTimeOperation. # noqa: E501 + def operator(self): + """Gets the operator of this PublicRangedTimeOperation. # noqa: E501 - :return: The operation_type of this PublicRangedTimeOperation. # noqa: E501 + :return: The operator of this PublicRangedTimeOperation. # noqa: E501 :rtype: str """ - return self._operation_type + return self._operator - @operation_type.setter - def operation_type(self, operation_type): - """Sets the operation_type of this PublicRangedTimeOperation. + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicRangedTimeOperation. - :param operation_type: The operation_type of this PublicRangedTimeOperation. # noqa: E501 - :type operation_type: str + :param operator: The operator of this PublicRangedTimeOperation. # noqa: E501 + :type operator: str """ - if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 - raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._operation_type = operation_type + self._operator = operator + + @property + def lower_bound_time_point(self): + """Gets the lower_bound_time_point of this PublicRangedTimeOperation. # noqa: E501 + + + :return: The lower_bound_time_point of this PublicRangedTimeOperation. # noqa: E501 + :rtype: PublicTimePointOperationTimePoint + """ + return self._lower_bound_time_point + + @lower_bound_time_point.setter + def lower_bound_time_point(self, lower_bound_time_point): + """Sets the lower_bound_time_point of this PublicRangedTimeOperation. + + + :param lower_bound_time_point: The lower_bound_time_point of this PublicRangedTimeOperation. # noqa: E501 + :type lower_bound_time_point: PublicTimePointOperationTimePoint + """ + if self.local_vars_configuration.client_side_validation and lower_bound_time_point is None: # noqa: E501 + raise ValueError("Invalid value for `lower_bound_time_point`, must not be `None`") # noqa: E501 + + self._lower_bound_time_point = lower_bound_time_point def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_relative_comparative_timestamp_refine_by.py b/hubspot/crm/lists/models/public_relative_comparative_timestamp_refine_by.py index d9d6d2af..f3830ba7 100644 --- a/hubspot/crm/lists/models/public_relative_comparative_timestamp_refine_by.py +++ b/hubspot/crm/lists/models/public_relative_comparative_timestamp_refine_by.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,50 +35,24 @@ class PublicRelativeComparativeTimestampRefineBy(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"type": "str", "comparison": "str", "time_offset": "PublicTimeOffset"} + openapi_types = {"comparison": "str", "time_offset": "PublicTimeOffset", "type": "str"} - attribute_map = {"type": "type", "comparison": "comparison", "time_offset": "timeOffset"} + attribute_map = {"comparison": "comparison", "time_offset": "timeOffset", "type": "type"} - def __init__(self, type="RELATIVE_COMPARATIVE", comparison=None, time_offset=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, comparison=None, time_offset=None, type="RELATIVE_COMPARATIVE", local_vars_configuration=None): # noqa: E501 """PublicRelativeComparativeTimestampRefineBy - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._type = None self._comparison = None self._time_offset = None + self._type = None self.discriminator = None - self.type = type self.comparison = comparison self.time_offset = time_offset - - @property - def type(self): - """Gets the type of this PublicRelativeComparativeTimestampRefineBy. # noqa: E501 - - - :return: The type of this PublicRelativeComparativeTimestampRefineBy. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this PublicRelativeComparativeTimestampRefineBy. - - - :param type: The type of this PublicRelativeComparativeTimestampRefineBy. # noqa: E501 - :type type: str - """ - if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["RELATIVE_COMPARATIVE"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `type` ({0}), must be one of {1}".format(type, allowed_values)) # noqa: E501 - - self._type = type + self.type = type @property def comparison(self): @@ -126,6 +100,32 @@ def time_offset(self, time_offset): self._time_offset = time_offset + @property + def type(self): + """Gets the type of this PublicRelativeComparativeTimestampRefineBy. # noqa: E501 + + + :return: The type of this PublicRelativeComparativeTimestampRefineBy. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this PublicRelativeComparativeTimestampRefineBy. + + + :param type: The type of this PublicRelativeComparativeTimestampRefineBy. # noqa: E501 + :type type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + allowed_values = ["RELATIVE_COMPARATIVE"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `type` ({0}), must be one of {1}".format(type, allowed_values)) # noqa: E501 + + self._type = type + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_relative_ranged_timestamp_refine_by.py b/hubspot/crm/lists/models/public_relative_ranged_timestamp_refine_by.py index 4763b14d..9812fc1e 100644 --- a/hubspot/crm/lists/models/public_relative_ranged_timestamp_refine_by.py +++ b/hubspot/crm/lists/models/public_relative_ranged_timestamp_refine_by.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,52 +35,49 @@ class PublicRelativeRangedTimestampRefineBy(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"type": "str", "range_type": "str", "upper_bound_offset": "PublicTimeOffset", "lower_bound_offset": "PublicTimeOffset"} + openapi_types = {"upper_bound_offset": "PublicTimeOffset", "range_type": "str", "lower_bound_offset": "PublicTimeOffset", "type": "str"} - attribute_map = {"type": "type", "range_type": "rangeType", "upper_bound_offset": "upperBoundOffset", "lower_bound_offset": "lowerBoundOffset"} + attribute_map = {"upper_bound_offset": "upperBoundOffset", "range_type": "rangeType", "lower_bound_offset": "lowerBoundOffset", "type": "type"} - def __init__(self, type="RELATIVE_RANGED", range_type=None, upper_bound_offset=None, lower_bound_offset=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, upper_bound_offset=None, range_type=None, lower_bound_offset=None, type="RELATIVE_RANGED", local_vars_configuration=None): # noqa: E501 """PublicRelativeRangedTimestampRefineBy - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._type = None - self._range_type = None self._upper_bound_offset = None + self._range_type = None self._lower_bound_offset = None + self._type = None self.discriminator = None - self.type = type - self.range_type = range_type self.upper_bound_offset = upper_bound_offset + self.range_type = range_type self.lower_bound_offset = lower_bound_offset + self.type = type @property - def type(self): - """Gets the type of this PublicRelativeRangedTimestampRefineBy. # noqa: E501 + def upper_bound_offset(self): + """Gets the upper_bound_offset of this PublicRelativeRangedTimestampRefineBy. # noqa: E501 - :return: The type of this PublicRelativeRangedTimestampRefineBy. # noqa: E501 - :rtype: str + :return: The upper_bound_offset of this PublicRelativeRangedTimestampRefineBy. # noqa: E501 + :rtype: PublicTimeOffset """ - return self._type + return self._upper_bound_offset - @type.setter - def type(self, type): - """Sets the type of this PublicRelativeRangedTimestampRefineBy. + @upper_bound_offset.setter + def upper_bound_offset(self, upper_bound_offset): + """Sets the upper_bound_offset of this PublicRelativeRangedTimestampRefineBy. - :param type: The type of this PublicRelativeRangedTimestampRefineBy. # noqa: E501 - :type type: str + :param upper_bound_offset: The upper_bound_offset of this PublicRelativeRangedTimestampRefineBy. # noqa: E501 + :type upper_bound_offset: PublicTimeOffset """ - if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["RELATIVE_RANGED"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `type` ({0}), must be one of {1}".format(type, allowed_values)) # noqa: E501 + if self.local_vars_configuration.client_side_validation and upper_bound_offset is None: # noqa: E501 + raise ValueError("Invalid value for `upper_bound_offset`, must not be `None`") # noqa: E501 - self._type = type + self._upper_bound_offset = upper_bound_offset @property def range_type(self): @@ -105,29 +102,6 @@ def range_type(self, range_type): self._range_type = range_type - @property - def upper_bound_offset(self): - """Gets the upper_bound_offset of this PublicRelativeRangedTimestampRefineBy. # noqa: E501 - - - :return: The upper_bound_offset of this PublicRelativeRangedTimestampRefineBy. # noqa: E501 - :rtype: PublicTimeOffset - """ - return self._upper_bound_offset - - @upper_bound_offset.setter - def upper_bound_offset(self, upper_bound_offset): - """Sets the upper_bound_offset of this PublicRelativeRangedTimestampRefineBy. - - - :param upper_bound_offset: The upper_bound_offset of this PublicRelativeRangedTimestampRefineBy. # noqa: E501 - :type upper_bound_offset: PublicTimeOffset - """ - if self.local_vars_configuration.client_side_validation and upper_bound_offset is None: # noqa: E501 - raise ValueError("Invalid value for `upper_bound_offset`, must not be `None`") # noqa: E501 - - self._upper_bound_offset = upper_bound_offset - @property def lower_bound_offset(self): """Gets the lower_bound_offset of this PublicRelativeRangedTimestampRefineBy. # noqa: E501 @@ -151,6 +125,32 @@ def lower_bound_offset(self, lower_bound_offset): self._lower_bound_offset = lower_bound_offset + @property + def type(self): + """Gets the type of this PublicRelativeRangedTimestampRefineBy. # noqa: E501 + + + :return: The type of this PublicRelativeRangedTimestampRefineBy. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this PublicRelativeRangedTimestampRefineBy. + + + :param type: The type of this PublicRelativeRangedTimestampRefineBy. # noqa: E501 + :type type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + allowed_values = ["RELATIVE_RANGED"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `type` ({0}), must be one of {1}".format(type, allowed_values)) # noqa: E501 + + self._type = type + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_restricted_filter_branch.py b/hubspot/crm/lists/models/public_restricted_filter_branch.py index fb80d7db..e218cc2d 100644 --- a/hubspot/crm/lists/models/public_restricted_filter_branch.py +++ b/hubspot/crm/lists/models/public_restricted_filter_branch.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -37,28 +37,28 @@ class PublicRestrictedFilterBranch(object): """ openapi_types = { "filter_branch_type": "str", - "filter_branch_operator": "str", "filter_branches": "list[PublicPropertyAssociationFilterBranchFilterBranchesInner]", + "filter_branch_operator": "str", "filters": "list[PublicPropertyAssociationFilterBranchFiltersInner]", } - attribute_map = {"filter_branch_type": "filterBranchType", "filter_branch_operator": "filterBranchOperator", "filter_branches": "filterBranches", "filters": "filters"} + attribute_map = {"filter_branch_type": "filterBranchType", "filter_branches": "filterBranches", "filter_branch_operator": "filterBranchOperator", "filters": "filters"} - def __init__(self, filter_branch_type="RESTRICTED", filter_branch_operator=None, filter_branches=None, filters=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, filter_branch_type="RESTRICTED", filter_branches=None, filter_branch_operator=None, filters=None, local_vars_configuration=None): # noqa: E501 """PublicRestrictedFilterBranch - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration self._filter_branch_type = None - self._filter_branch_operator = None self._filter_branches = None + self._filter_branch_operator = None self._filters = None self.discriminator = None self.filter_branch_type = filter_branch_type - self.filter_branch_operator = filter_branch_operator self.filter_branches = filter_branches + self.filter_branch_operator = filter_branch_operator self.filters = filters @property @@ -87,29 +87,6 @@ def filter_branch_type(self, filter_branch_type): self._filter_branch_type = filter_branch_type - @property - def filter_branch_operator(self): - """Gets the filter_branch_operator of this PublicRestrictedFilterBranch. # noqa: E501 - - - :return: The filter_branch_operator of this PublicRestrictedFilterBranch. # noqa: E501 - :rtype: str - """ - return self._filter_branch_operator - - @filter_branch_operator.setter - def filter_branch_operator(self, filter_branch_operator): - """Sets the filter_branch_operator of this PublicRestrictedFilterBranch. - - - :param filter_branch_operator: The filter_branch_operator of this PublicRestrictedFilterBranch. # noqa: E501 - :type filter_branch_operator: str - """ - if self.local_vars_configuration.client_side_validation and filter_branch_operator is None: # noqa: E501 - raise ValueError("Invalid value for `filter_branch_operator`, must not be `None`") # noqa: E501 - - self._filter_branch_operator = filter_branch_operator - @property def filter_branches(self): """Gets the filter_branches of this PublicRestrictedFilterBranch. # noqa: E501 @@ -133,6 +110,29 @@ def filter_branches(self, filter_branches): self._filter_branches = filter_branches + @property + def filter_branch_operator(self): + """Gets the filter_branch_operator of this PublicRestrictedFilterBranch. # noqa: E501 + + + :return: The filter_branch_operator of this PublicRestrictedFilterBranch. # noqa: E501 + :rtype: str + """ + return self._filter_branch_operator + + @filter_branch_operator.setter + def filter_branch_operator(self, filter_branch_operator): + """Sets the filter_branch_operator of this PublicRestrictedFilterBranch. + + + :param filter_branch_operator: The filter_branch_operator of this PublicRestrictedFilterBranch. # noqa: E501 + :type filter_branch_operator: str + """ + if self.local_vars_configuration.client_side_validation and filter_branch_operator is None: # noqa: E501 + raise ValueError("Invalid value for `filter_branch_operator`, must not be `None`") # noqa: E501 + + self._filter_branch_operator = filter_branch_operator + @property def filters(self): """Gets the filters of this PublicRestrictedFilterBranch. # noqa: E501 diff --git a/hubspot/crm/lists/models/public_rolling_date_range_property_operation.py b/hubspot/crm/lists/models/public_rolling_date_range_property_operation.py index f384b185..56407455 100644 --- a/hubspot/crm/lists/models/public_rolling_date_range_property_operation.py +++ b/hubspot/crm/lists/models/public_rolling_date_range_property_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,108 +35,108 @@ class PublicRollingDateRangePropertyOperation(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"operation_type": "str", "operator": "str", "include_objects_with_no_value_set": "bool", "number_of_days": "int", "requires_time_zone_conversion": "bool"} + openapi_types = {"include_objects_with_no_value_set": "bool", "requires_time_zone_conversion": "bool", "operation_type": "str", "number_of_days": "int", "operator": "str"} attribute_map = { - "operation_type": "operationType", - "operator": "operator", "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", - "number_of_days": "numberOfDays", "requires_time_zone_conversion": "requiresTimeZoneConversion", + "operation_type": "operationType", + "number_of_days": "numberOfDays", + "operator": "operator", } def __init__( - self, operation_type="ROLLING_DATE_RANGE", operator=None, include_objects_with_no_value_set=None, number_of_days=None, requires_time_zone_conversion=None, local_vars_configuration=None + self, include_objects_with_no_value_set=None, requires_time_zone_conversion=None, operation_type="ROLLING_DATE_RANGE", number_of_days=None, operator=None, local_vars_configuration=None ): # noqa: E501 """PublicRollingDateRangePropertyOperation - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._operation_type = None - self._operator = None self._include_objects_with_no_value_set = None - self._number_of_days = None self._requires_time_zone_conversion = None + self._operation_type = None + self._number_of_days = None + self._operator = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator self.include_objects_with_no_value_set = include_objects_with_no_value_set - self.number_of_days = number_of_days self.requires_time_zone_conversion = requires_time_zone_conversion + self.operation_type = operation_type + self.number_of_days = number_of_days + self.operator = operator @property - def operation_type(self): - """Gets the operation_type of this PublicRollingDateRangePropertyOperation. # noqa: E501 + def include_objects_with_no_value_set(self): + """Gets the include_objects_with_no_value_set of this PublicRollingDateRangePropertyOperation. # noqa: E501 - :return: The operation_type of this PublicRollingDateRangePropertyOperation. # noqa: E501 - :rtype: str + :return: The include_objects_with_no_value_set of this PublicRollingDateRangePropertyOperation. # noqa: E501 + :rtype: bool """ - return self._operation_type + return self._include_objects_with_no_value_set - @operation_type.setter - def operation_type(self, operation_type): - """Sets the operation_type of this PublicRollingDateRangePropertyOperation. + @include_objects_with_no_value_set.setter + def include_objects_with_no_value_set(self, include_objects_with_no_value_set): + """Sets the include_objects_with_no_value_set of this PublicRollingDateRangePropertyOperation. - :param operation_type: The operation_type of this PublicRollingDateRangePropertyOperation. # noqa: E501 - :type operation_type: str + :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicRollingDateRangePropertyOperation. # noqa: E501 + :type include_objects_with_no_value_set: bool """ - if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 - raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 - allowed_values = ["ROLLING_DATE_RANGE"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 + if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 + raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 - self._operation_type = operation_type + self._include_objects_with_no_value_set = include_objects_with_no_value_set @property - def operator(self): - """Gets the operator of this PublicRollingDateRangePropertyOperation. # noqa: E501 + def requires_time_zone_conversion(self): + """Gets the requires_time_zone_conversion of this PublicRollingDateRangePropertyOperation. # noqa: E501 - :return: The operator of this PublicRollingDateRangePropertyOperation. # noqa: E501 - :rtype: str + :return: The requires_time_zone_conversion of this PublicRollingDateRangePropertyOperation. # noqa: E501 + :rtype: bool """ - return self._operator + return self._requires_time_zone_conversion - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicRollingDateRangePropertyOperation. + @requires_time_zone_conversion.setter + def requires_time_zone_conversion(self, requires_time_zone_conversion): + """Sets the requires_time_zone_conversion of this PublicRollingDateRangePropertyOperation. - :param operator: The operator of this PublicRollingDateRangePropertyOperation. # noqa: E501 - :type operator: str + :param requires_time_zone_conversion: The requires_time_zone_conversion of this PublicRollingDateRangePropertyOperation. # noqa: E501 + :type requires_time_zone_conversion: bool """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and requires_time_zone_conversion is None: # noqa: E501 + raise ValueError("Invalid value for `requires_time_zone_conversion`, must not be `None`") # noqa: E501 - self._operator = operator + self._requires_time_zone_conversion = requires_time_zone_conversion @property - def include_objects_with_no_value_set(self): - """Gets the include_objects_with_no_value_set of this PublicRollingDateRangePropertyOperation. # noqa: E501 + def operation_type(self): + """Gets the operation_type of this PublicRollingDateRangePropertyOperation. # noqa: E501 - :return: The include_objects_with_no_value_set of this PublicRollingDateRangePropertyOperation. # noqa: E501 - :rtype: bool + :return: The operation_type of this PublicRollingDateRangePropertyOperation. # noqa: E501 + :rtype: str """ - return self._include_objects_with_no_value_set + return self._operation_type - @include_objects_with_no_value_set.setter - def include_objects_with_no_value_set(self, include_objects_with_no_value_set): - """Sets the include_objects_with_no_value_set of this PublicRollingDateRangePropertyOperation. + @operation_type.setter + def operation_type(self, operation_type): + """Sets the operation_type of this PublicRollingDateRangePropertyOperation. - :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicRollingDateRangePropertyOperation. # noqa: E501 - :type include_objects_with_no_value_set: bool + :param operation_type: The operation_type of this PublicRollingDateRangePropertyOperation. # noqa: E501 + :type operation_type: str """ - if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 - raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 + raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 + allowed_values = ["ROLLING_DATE_RANGE"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 - self._include_objects_with_no_value_set = include_objects_with_no_value_set + self._operation_type = operation_type @property def number_of_days(self): @@ -162,27 +162,27 @@ def number_of_days(self, number_of_days): self._number_of_days = number_of_days @property - def requires_time_zone_conversion(self): - """Gets the requires_time_zone_conversion of this PublicRollingDateRangePropertyOperation. # noqa: E501 + def operator(self): + """Gets the operator of this PublicRollingDateRangePropertyOperation. # noqa: E501 - :return: The requires_time_zone_conversion of this PublicRollingDateRangePropertyOperation. # noqa: E501 - :rtype: bool + :return: The operator of this PublicRollingDateRangePropertyOperation. # noqa: E501 + :rtype: str """ - return self._requires_time_zone_conversion + return self._operator - @requires_time_zone_conversion.setter - def requires_time_zone_conversion(self, requires_time_zone_conversion): - """Sets the requires_time_zone_conversion of this PublicRollingDateRangePropertyOperation. + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicRollingDateRangePropertyOperation. - :param requires_time_zone_conversion: The requires_time_zone_conversion of this PublicRollingDateRangePropertyOperation. # noqa: E501 - :type requires_time_zone_conversion: bool + :param operator: The operator of this PublicRollingDateRangePropertyOperation. # noqa: E501 + :type operator: str """ - if self.local_vars_configuration.client_side_validation and requires_time_zone_conversion is None: # noqa: E501 - raise ValueError("Invalid value for `requires_time_zone_conversion`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._requires_time_zone_conversion = requires_time_zone_conversion + self._operator = operator def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_rolling_property_updated_operation.py b/hubspot/crm/lists/models/public_rolling_property_updated_operation.py index d081e396..683915af 100644 --- a/hubspot/crm/lists/models/public_rolling_property_updated_operation.py +++ b/hubspot/crm/lists/models/public_rolling_property_updated_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,26 +35,49 @@ class PublicRollingPropertyUpdatedOperation(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"operation_type": "str", "operator": "str", "include_objects_with_no_value_set": "bool", "number_of_days": "int"} + openapi_types = {"include_objects_with_no_value_set": "bool", "operation_type": "str", "number_of_days": "int", "operator": "str"} - attribute_map = {"operation_type": "operationType", "operator": "operator", "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "number_of_days": "numberOfDays"} + attribute_map = {"include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "operation_type": "operationType", "number_of_days": "numberOfDays", "operator": "operator"} - def __init__(self, operation_type="ROLLING_PROPERTY_UPDATED", operator=None, include_objects_with_no_value_set=None, number_of_days=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, include_objects_with_no_value_set=None, operation_type="ROLLING_PROPERTY_UPDATED", number_of_days=None, operator=None, local_vars_configuration=None): # noqa: E501 """PublicRollingPropertyUpdatedOperation - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._operation_type = None - self._operator = None self._include_objects_with_no_value_set = None + self._operation_type = None self._number_of_days = None + self._operator = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator self.include_objects_with_no_value_set = include_objects_with_no_value_set + self.operation_type = operation_type self.number_of_days = number_of_days + self.operator = operator + + @property + def include_objects_with_no_value_set(self): + """Gets the include_objects_with_no_value_set of this PublicRollingPropertyUpdatedOperation. # noqa: E501 + + + :return: The include_objects_with_no_value_set of this PublicRollingPropertyUpdatedOperation. # noqa: E501 + :rtype: bool + """ + return self._include_objects_with_no_value_set + + @include_objects_with_no_value_set.setter + def include_objects_with_no_value_set(self, include_objects_with_no_value_set): + """Sets the include_objects_with_no_value_set of this PublicRollingPropertyUpdatedOperation. + + + :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicRollingPropertyUpdatedOperation. # noqa: E501 + :type include_objects_with_no_value_set: bool + """ + if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 + raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 + + self._include_objects_with_no_value_set = include_objects_with_no_value_set @property def operation_type(self): @@ -82,52 +105,6 @@ def operation_type(self, operation_type): self._operation_type = operation_type - @property - def operator(self): - """Gets the operator of this PublicRollingPropertyUpdatedOperation. # noqa: E501 - - - :return: The operator of this PublicRollingPropertyUpdatedOperation. # noqa: E501 - :rtype: str - """ - return self._operator - - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicRollingPropertyUpdatedOperation. - - - :param operator: The operator of this PublicRollingPropertyUpdatedOperation. # noqa: E501 - :type operator: str - """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - - self._operator = operator - - @property - def include_objects_with_no_value_set(self): - """Gets the include_objects_with_no_value_set of this PublicRollingPropertyUpdatedOperation. # noqa: E501 - - - :return: The include_objects_with_no_value_set of this PublicRollingPropertyUpdatedOperation. # noqa: E501 - :rtype: bool - """ - return self._include_objects_with_no_value_set - - @include_objects_with_no_value_set.setter - def include_objects_with_no_value_set(self, include_objects_with_no_value_set): - """Sets the include_objects_with_no_value_set of this PublicRollingPropertyUpdatedOperation. - - - :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicRollingPropertyUpdatedOperation. # noqa: E501 - :type include_objects_with_no_value_set: bool - """ - if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 - raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 - - self._include_objects_with_no_value_set = include_objects_with_no_value_set - @property def number_of_days(self): """Gets the number_of_days of this PublicRollingPropertyUpdatedOperation. # noqa: E501 @@ -151,6 +128,29 @@ def number_of_days(self, number_of_days): self._number_of_days = number_of_days + @property + def operator(self): + """Gets the operator of this PublicRollingPropertyUpdatedOperation. # noqa: E501 + + + :return: The operator of this PublicRollingPropertyUpdatedOperation. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicRollingPropertyUpdatedOperation. + + + :param operator: The operator of this PublicRollingPropertyUpdatedOperation. # noqa: E501 + :type operator: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + + self._operator = operator + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_set_occurrences_refine_by.py b/hubspot/crm/lists/models/public_set_occurrences_refine_by.py index 865ff73a..bc740f74 100644 --- a/hubspot/crm/lists/models/public_set_occurrences_refine_by.py +++ b/hubspot/crm/lists/models/public_set_occurrences_refine_by.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/lists/models/public_string_property_operation.py b/hubspot/crm/lists/models/public_string_property_operation.py index e2f907e2..f0e2d2cc 100644 --- a/hubspot/crm/lists/models/public_string_property_operation.py +++ b/hubspot/crm/lists/models/public_string_property_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,26 +35,49 @@ class PublicStringPropertyOperation(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"operation_type": "str", "operator": "str", "include_objects_with_no_value_set": "bool", "value": "str"} + openapi_types = {"include_objects_with_no_value_set": "bool", "operation_type": "str", "value": "str", "operator": "str"} - attribute_map = {"operation_type": "operationType", "operator": "operator", "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "value": "value"} + attribute_map = {"include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "operation_type": "operationType", "value": "value", "operator": "operator"} - def __init__(self, operation_type="STRING", operator=None, include_objects_with_no_value_set=None, value=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, include_objects_with_no_value_set=None, operation_type="STRING", value=None, operator=None, local_vars_configuration=None): # noqa: E501 """PublicStringPropertyOperation - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._operation_type = None - self._operator = None self._include_objects_with_no_value_set = None + self._operation_type = None self._value = None + self._operator = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator self.include_objects_with_no_value_set = include_objects_with_no_value_set + self.operation_type = operation_type self.value = value + self.operator = operator + + @property + def include_objects_with_no_value_set(self): + """Gets the include_objects_with_no_value_set of this PublicStringPropertyOperation. # noqa: E501 + + + :return: The include_objects_with_no_value_set of this PublicStringPropertyOperation. # noqa: E501 + :rtype: bool + """ + return self._include_objects_with_no_value_set + + @include_objects_with_no_value_set.setter + def include_objects_with_no_value_set(self, include_objects_with_no_value_set): + """Sets the include_objects_with_no_value_set of this PublicStringPropertyOperation. + + + :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicStringPropertyOperation. # noqa: E501 + :type include_objects_with_no_value_set: bool + """ + if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 + raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 + + self._include_objects_with_no_value_set = include_objects_with_no_value_set @property def operation_type(self): @@ -82,52 +105,6 @@ def operation_type(self, operation_type): self._operation_type = operation_type - @property - def operator(self): - """Gets the operator of this PublicStringPropertyOperation. # noqa: E501 - - - :return: The operator of this PublicStringPropertyOperation. # noqa: E501 - :rtype: str - """ - return self._operator - - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicStringPropertyOperation. - - - :param operator: The operator of this PublicStringPropertyOperation. # noqa: E501 - :type operator: str - """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - - self._operator = operator - - @property - def include_objects_with_no_value_set(self): - """Gets the include_objects_with_no_value_set of this PublicStringPropertyOperation. # noqa: E501 - - - :return: The include_objects_with_no_value_set of this PublicStringPropertyOperation. # noqa: E501 - :rtype: bool - """ - return self._include_objects_with_no_value_set - - @include_objects_with_no_value_set.setter - def include_objects_with_no_value_set(self, include_objects_with_no_value_set): - """Sets the include_objects_with_no_value_set of this PublicStringPropertyOperation. - - - :param include_objects_with_no_value_set: The include_objects_with_no_value_set of this PublicStringPropertyOperation. # noqa: E501 - :type include_objects_with_no_value_set: bool - """ - if self.local_vars_configuration.client_side_validation and include_objects_with_no_value_set is None: # noqa: E501 - raise ValueError("Invalid value for `include_objects_with_no_value_set`, must not be `None`") # noqa: E501 - - self._include_objects_with_no_value_set = include_objects_with_no_value_set - @property def value(self): """Gets the value of this PublicStringPropertyOperation. # noqa: E501 @@ -151,6 +128,29 @@ def value(self, value): self._value = value + @property + def operator(self): + """Gets the operator of this PublicStringPropertyOperation. # noqa: E501 + + + :return: The operator of this PublicStringPropertyOperation. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicStringPropertyOperation. + + + :param operator: The operator of this PublicStringPropertyOperation. # noqa: E501 + :type operator: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + + self._operator = operator + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_survey_monkey_filter.py b/hubspot/crm/lists/models/public_survey_monkey_filter.py index 45c35df9..96cc9f3f 100644 --- a/hubspot/crm/lists/models/public_survey_monkey_filter.py +++ b/hubspot/crm/lists/models/public_survey_monkey_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,25 +35,48 @@ class PublicSurveyMonkeyFilter(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"filter_type": "str", "survey_id": "str", "operator": "str"} + openapi_types = {"survey_id": "str", "filter_type": "str", "operator": "str"} - attribute_map = {"filter_type": "filterType", "survey_id": "surveyId", "operator": "operator"} + attribute_map = {"survey_id": "surveyId", "filter_type": "filterType", "operator": "operator"} - def __init__(self, filter_type="SURVEY_MONKEY", survey_id=None, operator=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, survey_id=None, filter_type="SURVEY_MONKEY", operator=None, local_vars_configuration=None): # noqa: E501 """PublicSurveyMonkeyFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None self._survey_id = None + self._filter_type = None self._operator = None self.discriminator = None - self.filter_type = filter_type self.survey_id = survey_id + self.filter_type = filter_type self.operator = operator + @property + def survey_id(self): + """Gets the survey_id of this PublicSurveyMonkeyFilter. # noqa: E501 + + + :return: The survey_id of this PublicSurveyMonkeyFilter. # noqa: E501 + :rtype: str + """ + return self._survey_id + + @survey_id.setter + def survey_id(self, survey_id): + """Sets the survey_id of this PublicSurveyMonkeyFilter. + + + :param survey_id: The survey_id of this PublicSurveyMonkeyFilter. # noqa: E501 + :type survey_id: str + """ + if self.local_vars_configuration.client_side_validation and survey_id is None: # noqa: E501 + raise ValueError("Invalid value for `survey_id`, must not be `None`") # noqa: E501 + + self._survey_id = survey_id + @property def filter_type(self): """Gets the filter_type of this PublicSurveyMonkeyFilter. # noqa: E501 @@ -80,29 +103,6 @@ def filter_type(self, filter_type): self._filter_type = filter_type - @property - def survey_id(self): - """Gets the survey_id of this PublicSurveyMonkeyFilter. # noqa: E501 - - - :return: The survey_id of this PublicSurveyMonkeyFilter. # noqa: E501 - :rtype: str - """ - return self._survey_id - - @survey_id.setter - def survey_id(self, survey_id): - """Sets the survey_id of this PublicSurveyMonkeyFilter. - - - :param survey_id: The survey_id of this PublicSurveyMonkeyFilter. # noqa: E501 - :type survey_id: str - """ - if self.local_vars_configuration.client_side_validation and survey_id is None: # noqa: E501 - raise ValueError("Invalid value for `survey_id`, must not be `None`") # noqa: E501 - - self._survey_id = survey_id - @property def operator(self): """Gets the operator of this PublicSurveyMonkeyFilter. # noqa: E501 diff --git a/hubspot/crm/lists/models/public_survey_monkey_value_filter.py b/hubspot/crm/lists/models/public_survey_monkey_value_filter.py index f7962fdb..ad94624f 100644 --- a/hubspot/crm/lists/models/public_survey_monkey_value_filter.py +++ b/hubspot/crm/lists/models/public_survey_monkey_value_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,33 +36,33 @@ class PublicSurveyMonkeyValueFilter(object): and the value is json key in definition. """ openapi_types = { - "filter_type": "str", + "value_comparison": "PublicPropertyFilterOperation", "survey_id": "str", "survey_question": "str", + "filter_type": "str", "survey_answer_row_id": "str", "survey_answer_col_id": "str", - "value_comparison": "PublicPropertyFilterOperation", "operator": "str", } attribute_map = { - "filter_type": "filterType", + "value_comparison": "valueComparison", "survey_id": "surveyId", "survey_question": "surveyQuestion", + "filter_type": "filterType", "survey_answer_row_id": "surveyAnswerRowId", "survey_answer_col_id": "surveyAnswerColId", - "value_comparison": "valueComparison", "operator": "operator", } def __init__( self, - filter_type="SURVEY_MONKEY_VALUE", + value_comparison=None, survey_id=None, survey_question=None, + filter_type="SURVEY_MONKEY_VALUE", survey_answer_row_id=None, survey_answer_col_id=None, - value_comparison=None, operator=None, local_vars_configuration=None, ): # noqa: E501 @@ -71,50 +71,47 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None + self._value_comparison = None self._survey_id = None self._survey_question = None + self._filter_type = None self._survey_answer_row_id = None self._survey_answer_col_id = None - self._value_comparison = None self._operator = None self.discriminator = None - self.filter_type = filter_type + self.value_comparison = value_comparison self.survey_id = survey_id self.survey_question = survey_question + self.filter_type = filter_type if survey_answer_row_id is not None: self.survey_answer_row_id = survey_answer_row_id if survey_answer_col_id is not None: self.survey_answer_col_id = survey_answer_col_id - self.value_comparison = value_comparison self.operator = operator @property - def filter_type(self): - """Gets the filter_type of this PublicSurveyMonkeyValueFilter. # noqa: E501 + def value_comparison(self): + """Gets the value_comparison of this PublicSurveyMonkeyValueFilter. # noqa: E501 - :return: The filter_type of this PublicSurveyMonkeyValueFilter. # noqa: E501 - :rtype: str + :return: The value_comparison of this PublicSurveyMonkeyValueFilter. # noqa: E501 + :rtype: PublicPropertyFilterOperation """ - return self._filter_type + return self._value_comparison - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicSurveyMonkeyValueFilter. + @value_comparison.setter + def value_comparison(self, value_comparison): + """Sets the value_comparison of this PublicSurveyMonkeyValueFilter. - :param filter_type: The filter_type of this PublicSurveyMonkeyValueFilter. # noqa: E501 - :type filter_type: str + :param value_comparison: The value_comparison of this PublicSurveyMonkeyValueFilter. # noqa: E501 + :type value_comparison: PublicPropertyFilterOperation """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["SURVEY_MONKEY_VALUE"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + if self.local_vars_configuration.client_side_validation and value_comparison is None: # noqa: E501 + raise ValueError("Invalid value for `value_comparison`, must not be `None`") # noqa: E501 - self._filter_type = filter_type + self._value_comparison = value_comparison @property def survey_id(self): @@ -162,6 +159,32 @@ def survey_question(self, survey_question): self._survey_question = survey_question + @property + def filter_type(self): + """Gets the filter_type of this PublicSurveyMonkeyValueFilter. # noqa: E501 + + + :return: The filter_type of this PublicSurveyMonkeyValueFilter. # noqa: E501 + :rtype: str + """ + return self._filter_type + + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicSurveyMonkeyValueFilter. + + + :param filter_type: The filter_type of this PublicSurveyMonkeyValueFilter. # noqa: E501 + :type filter_type: str + """ + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["SURVEY_MONKEY_VALUE"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + + self._filter_type = filter_type + @property def survey_answer_row_id(self): """Gets the survey_answer_row_id of this PublicSurveyMonkeyValueFilter. # noqa: E501 @@ -204,29 +227,6 @@ def survey_answer_col_id(self, survey_answer_col_id): self._survey_answer_col_id = survey_answer_col_id - @property - def value_comparison(self): - """Gets the value_comparison of this PublicSurveyMonkeyValueFilter. # noqa: E501 - - - :return: The value_comparison of this PublicSurveyMonkeyValueFilter. # noqa: E501 - :rtype: PublicPropertyFilterOperation - """ - return self._value_comparison - - @value_comparison.setter - def value_comparison(self, value_comparison): - """Sets the value_comparison of this PublicSurveyMonkeyValueFilter. - - - :param value_comparison: The value_comparison of this PublicSurveyMonkeyValueFilter. # noqa: E501 - :type value_comparison: PublicPropertyFilterOperation - """ - if self.local_vars_configuration.client_side_validation and value_comparison is None: # noqa: E501 - raise ValueError("Invalid value for `value_comparison`, must not be `None`") # noqa: E501 - - self._value_comparison = value_comparison - @property def operator(self): """Gets the operator of this PublicSurveyMonkeyValueFilter. # noqa: E501 diff --git a/hubspot/crm/lists/models/public_time_offset.py b/hubspot/crm/lists/models/public_time_offset.py index ac474963..7691c9cb 100644 --- a/hubspot/crm/lists/models/public_time_offset.py +++ b/hubspot/crm/lists/models/public_time_offset.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,24 +35,47 @@ class PublicTimeOffset(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"offset_direction": "str", "time_unit": "str", "amount": "int"} + openapi_types = {"amount": "int", "offset_direction": "str", "time_unit": "str"} - attribute_map = {"offset_direction": "offsetDirection", "time_unit": "timeUnit", "amount": "amount"} + attribute_map = {"amount": "amount", "offset_direction": "offsetDirection", "time_unit": "timeUnit"} - def __init__(self, offset_direction=None, time_unit=None, amount=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, amount=None, offset_direction=None, time_unit=None, local_vars_configuration=None): # noqa: E501 """PublicTimeOffset - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration + self._amount = None self._offset_direction = None self._time_unit = None - self._amount = None self.discriminator = None + self.amount = amount self.offset_direction = offset_direction self.time_unit = time_unit - self.amount = amount + + @property + def amount(self): + """Gets the amount of this PublicTimeOffset. # noqa: E501 + + + :return: The amount of this PublicTimeOffset. # noqa: E501 + :rtype: int + """ + return self._amount + + @amount.setter + def amount(self, amount): + """Sets the amount of this PublicTimeOffset. + + + :param amount: The amount of this PublicTimeOffset. # noqa: E501 + :type amount: int + """ + if self.local_vars_configuration.client_side_validation and amount is None: # noqa: E501 + raise ValueError("Invalid value for `amount`, must not be `None`") # noqa: E501 + + self._amount = amount @property def offset_direction(self): @@ -100,29 +123,6 @@ def time_unit(self, time_unit): self._time_unit = time_unit - @property - def amount(self): - """Gets the amount of this PublicTimeOffset. # noqa: E501 - - - :return: The amount of this PublicTimeOffset. # noqa: E501 - :rtype: int - """ - return self._amount - - @amount.setter - def amount(self, amount): - """Sets the amount of this PublicTimeOffset. - - - :param amount: The amount of this PublicTimeOffset. # noqa: E501 - :type amount: int - """ - if self.local_vars_configuration.client_side_validation and amount is None: # noqa: E501 - raise ValueError("Invalid value for `amount`, must not be `None`") # noqa: E501 - - self._amount = amount - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_time_point_operation.py b/hubspot/crm/lists/models/public_time_point_operation.py index 458d5033..b7331a74 100644 --- a/hubspot/crm/lists/models/public_time_point_operation.py +++ b/hubspot/crm/lists/models/public_time_point_operation.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,34 +36,34 @@ class PublicTimePointOperation(object): and the value is json key in definition. """ openapi_types = { - "operation_type": "str", - "operator": "str", - "include_objects_with_no_value_set": "bool", - "time_point": "PublicTimePointOperationTimePoint", "endpoint_behavior": "str", + "include_objects_with_no_value_set": "bool", "property_parser": "str", + "operation_type": "str", + "time_point": "PublicTimePointOperationTimePoint", "type": "str", + "operator": "str", } attribute_map = { - "operation_type": "operationType", - "operator": "operator", - "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", - "time_point": "timePoint", "endpoint_behavior": "endpointBehavior", + "include_objects_with_no_value_set": "includeObjectsWithNoValueSet", "property_parser": "propertyParser", + "operation_type": "operationType", + "time_point": "timePoint", "type": "type", + "operator": "operator", } def __init__( self, - operation_type="TIME_POINT", - operator=None, - include_objects_with_no_value_set=None, - time_point=None, endpoint_behavior=None, + include_objects_with_no_value_set=None, property_parser=None, + operation_type="TIME_POINT", + time_point=None, type=None, + operator=None, local_vars_configuration=None, ): # noqa: E501 """PublicTimePointOperation - a model defined in OpenAPI""" # noqa: E501 @@ -71,73 +71,45 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._operation_type = None - self._operator = None - self._include_objects_with_no_value_set = None - self._time_point = None self._endpoint_behavior = None + self._include_objects_with_no_value_set = None self._property_parser = None + self._operation_type = None + self._time_point = None self._type = None + self._operator = None self.discriminator = None - self.operation_type = operation_type - self.operator = operator - self.include_objects_with_no_value_set = include_objects_with_no_value_set - self.time_point = time_point if endpoint_behavior is not None: self.endpoint_behavior = endpoint_behavior + self.include_objects_with_no_value_set = include_objects_with_no_value_set if property_parser is not None: self.property_parser = property_parser + self.operation_type = operation_type + self.time_point = time_point self.type = type + self.operator = operator @property - def operation_type(self): - """Gets the operation_type of this PublicTimePointOperation. # noqa: E501 - - - :return: The operation_type of this PublicTimePointOperation. # noqa: E501 - :rtype: str - """ - return self._operation_type - - @operation_type.setter - def operation_type(self, operation_type): - """Sets the operation_type of this PublicTimePointOperation. - - - :param operation_type: The operation_type of this PublicTimePointOperation. # noqa: E501 - :type operation_type: str - """ - if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 - raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 - allowed_values = ["TIME_POINT"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 - - self._operation_type = operation_type - - @property - def operator(self): - """Gets the operator of this PublicTimePointOperation. # noqa: E501 + def endpoint_behavior(self): + """Gets the endpoint_behavior of this PublicTimePointOperation. # noqa: E501 - :return: The operator of this PublicTimePointOperation. # noqa: E501 + :return: The endpoint_behavior of this PublicTimePointOperation. # noqa: E501 :rtype: str """ - return self._operator + return self._endpoint_behavior - @operator.setter - def operator(self, operator): - """Sets the operator of this PublicTimePointOperation. + @endpoint_behavior.setter + def endpoint_behavior(self, endpoint_behavior): + """Sets the endpoint_behavior of this PublicTimePointOperation. - :param operator: The operator of this PublicTimePointOperation. # noqa: E501 - :type operator: str + :param endpoint_behavior: The endpoint_behavior of this PublicTimePointOperation. # noqa: E501 + :type endpoint_behavior: str """ - if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 - raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 - self._operator = operator + self._endpoint_behavior = endpoint_behavior @property def include_objects_with_no_value_set(self): @@ -163,69 +135,74 @@ def include_objects_with_no_value_set(self, include_objects_with_no_value_set): self._include_objects_with_no_value_set = include_objects_with_no_value_set @property - def time_point(self): - """Gets the time_point of this PublicTimePointOperation. # noqa: E501 + def property_parser(self): + """Gets the property_parser of this PublicTimePointOperation. # noqa: E501 - :return: The time_point of this PublicTimePointOperation. # noqa: E501 - :rtype: PublicTimePointOperationTimePoint + :return: The property_parser of this PublicTimePointOperation. # noqa: E501 + :rtype: str """ - return self._time_point + return self._property_parser - @time_point.setter - def time_point(self, time_point): - """Sets the time_point of this PublicTimePointOperation. + @property_parser.setter + def property_parser(self, property_parser): + """Sets the property_parser of this PublicTimePointOperation. - :param time_point: The time_point of this PublicTimePointOperation. # noqa: E501 - :type time_point: PublicTimePointOperationTimePoint + :param property_parser: The property_parser of this PublicTimePointOperation. # noqa: E501 + :type property_parser: str """ - if self.local_vars_configuration.client_side_validation and time_point is None: # noqa: E501 - raise ValueError("Invalid value for `time_point`, must not be `None`") # noqa: E501 - self._time_point = time_point + self._property_parser = property_parser @property - def endpoint_behavior(self): - """Gets the endpoint_behavior of this PublicTimePointOperation. # noqa: E501 + def operation_type(self): + """Gets the operation_type of this PublicTimePointOperation. # noqa: E501 - :return: The endpoint_behavior of this PublicTimePointOperation. # noqa: E501 + :return: The operation_type of this PublicTimePointOperation. # noqa: E501 :rtype: str """ - return self._endpoint_behavior + return self._operation_type - @endpoint_behavior.setter - def endpoint_behavior(self, endpoint_behavior): - """Sets the endpoint_behavior of this PublicTimePointOperation. + @operation_type.setter + def operation_type(self, operation_type): + """Sets the operation_type of this PublicTimePointOperation. - :param endpoint_behavior: The endpoint_behavior of this PublicTimePointOperation. # noqa: E501 - :type endpoint_behavior: str + :param operation_type: The operation_type of this PublicTimePointOperation. # noqa: E501 + :type operation_type: str """ + if self.local_vars_configuration.client_side_validation and operation_type is None: # noqa: E501 + raise ValueError("Invalid value for `operation_type`, must not be `None`") # noqa: E501 + allowed_values = ["TIME_POINT"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and operation_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `operation_type` ({0}), must be one of {1}".format(operation_type, allowed_values)) # noqa: E501 - self._endpoint_behavior = endpoint_behavior + self._operation_type = operation_type @property - def property_parser(self): - """Gets the property_parser of this PublicTimePointOperation. # noqa: E501 + def time_point(self): + """Gets the time_point of this PublicTimePointOperation. # noqa: E501 - :return: The property_parser of this PublicTimePointOperation. # noqa: E501 - :rtype: str + :return: The time_point of this PublicTimePointOperation. # noqa: E501 + :rtype: PublicTimePointOperationTimePoint """ - return self._property_parser + return self._time_point - @property_parser.setter - def property_parser(self, property_parser): - """Sets the property_parser of this PublicTimePointOperation. + @time_point.setter + def time_point(self, time_point): + """Sets the time_point of this PublicTimePointOperation. - :param property_parser: The property_parser of this PublicTimePointOperation. # noqa: E501 - :type property_parser: str + :param time_point: The time_point of this PublicTimePointOperation. # noqa: E501 + :type time_point: PublicTimePointOperationTimePoint """ + if self.local_vars_configuration.client_side_validation and time_point is None: # noqa: E501 + raise ValueError("Invalid value for `time_point`, must not be `None`") # noqa: E501 - self._property_parser = property_parser + self._time_point = time_point @property def type(self): @@ -250,6 +227,29 @@ def type(self, type): self._type = type + @property + def operator(self): + """Gets the operator of this PublicTimePointOperation. # noqa: E501 + + + :return: The operator of this PublicTimePointOperation. # noqa: E501 + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this PublicTimePointOperation. + + + :param operator: The operator of this PublicTimePointOperation. # noqa: E501 + :type operator: str + """ + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 + raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 + + self._operator = operator + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_time_point_operation_time_point.py b/hubspot/crm/lists/models/public_time_point_operation_time_point.py index e80d622d..94ab8b30 100644 --- a/hubspot/crm/lists/models/public_time_point_operation_time_point.py +++ b/hubspot/crm/lists/models/public_time_point_operation_time_point.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,53 +36,53 @@ class PublicTimePointOperationTimePoint(object): and the value is json key in definition. """ openapi_types = { - "time_type": "str", + "month": "int", + "hour": "int", + "year": "int", "timezone_source": "str", + "millisecond": "int", + "time_type": "str", "zone_id": "str", - "year": "int", - "month": "int", "day": "int", - "hour": "int", "minute": "int", "second": "int", - "millisecond": "int", - "index_reference": "PublicIndexedTimePointIndexReference", "offset": "PublicIndexOffset", + "index_reference": "PublicIndexedTimePointIndexReference", "_property": "str", "reference_type": "str", } attribute_map = { - "time_type": "timeType", + "month": "month", + "hour": "hour", + "year": "year", "timezone_source": "timezoneSource", + "millisecond": "millisecond", + "time_type": "timeType", "zone_id": "zoneId", - "year": "year", - "month": "month", "day": "day", - "hour": "hour", "minute": "minute", "second": "second", - "millisecond": "millisecond", - "index_reference": "indexReference", "offset": "offset", + "index_reference": "indexReference", "_property": "property", "reference_type": "referenceType", } def __init__( self, - time_type="PROPERTY_REFERENCED", + month=None, + hour=None, + year=None, timezone_source=None, + millisecond=None, + time_type="PROPERTY_REFERENCED", zone_id=None, - year=None, - month=None, day=None, - hour=None, minute=None, second=None, - millisecond=None, - index_reference=None, offset=None, + index_reference=None, _property=None, reference_type=None, local_vars_configuration=None, @@ -92,68 +92,109 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._time_type = None + self._month = None + self._hour = None + self._year = None self._timezone_source = None + self._millisecond = None + self._time_type = None self._zone_id = None - self._year = None - self._month = None self._day = None - self._hour = None self._minute = None self._second = None - self._millisecond = None - self._index_reference = None self._offset = None + self._index_reference = None self.__property = None self._reference_type = None self.discriminator = None - self.time_type = time_type + self.month = month + if hour is not None: + self.hour = hour + self.year = year if timezone_source is not None: self.timezone_source = timezone_source + if millisecond is not None: + self.millisecond = millisecond + self.time_type = time_type self.zone_id = zone_id - self.year = year - self.month = month self.day = day - if hour is not None: - self.hour = hour if minute is not None: self.minute = minute if second is not None: self.second = second - if millisecond is not None: - self.millisecond = millisecond - self.index_reference = index_reference if offset is not None: self.offset = offset + self.index_reference = index_reference self._property = _property self.reference_type = reference_type @property - def time_type(self): - """Gets the time_type of this PublicTimePointOperationTimePoint. # noqa: E501 + def month(self): + """Gets the month of this PublicTimePointOperationTimePoint. # noqa: E501 - :return: The time_type of this PublicTimePointOperationTimePoint. # noqa: E501 - :rtype: str + :return: The month of this PublicTimePointOperationTimePoint. # noqa: E501 + :rtype: int """ - return self._time_type + return self._month - @time_type.setter - def time_type(self, time_type): - """Sets the time_type of this PublicTimePointOperationTimePoint. + @month.setter + def month(self, month): + """Sets the month of this PublicTimePointOperationTimePoint. - :param time_type: The time_type of this PublicTimePointOperationTimePoint. # noqa: E501 - :type time_type: str + :param month: The month of this PublicTimePointOperationTimePoint. # noqa: E501 + :type month: int """ - if self.local_vars_configuration.client_side_validation and time_type is None: # noqa: E501 - raise ValueError("Invalid value for `time_type`, must not be `None`") # noqa: E501 - allowed_values = ["PROPERTY_REFERENCED"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and time_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `time_type` ({0}), must be one of {1}".format(time_type, allowed_values)) # noqa: E501 + if self.local_vars_configuration.client_side_validation and month is None: # noqa: E501 + raise ValueError("Invalid value for `month`, must not be `None`") # noqa: E501 - self._time_type = time_type + self._month = month + + @property + def hour(self): + """Gets the hour of this PublicTimePointOperationTimePoint. # noqa: E501 + + + :return: The hour of this PublicTimePointOperationTimePoint. # noqa: E501 + :rtype: int + """ + return self._hour + + @hour.setter + def hour(self, hour): + """Sets the hour of this PublicTimePointOperationTimePoint. + + + :param hour: The hour of this PublicTimePointOperationTimePoint. # noqa: E501 + :type hour: int + """ + + self._hour = hour + + @property + def year(self): + """Gets the year of this PublicTimePointOperationTimePoint. # noqa: E501 + + + :return: The year of this PublicTimePointOperationTimePoint. # noqa: E501 + :rtype: int + """ + return self._year + + @year.setter + def year(self, year): + """Sets the year of this PublicTimePointOperationTimePoint. + + + :param year: The year of this PublicTimePointOperationTimePoint. # noqa: E501 + :type year: int + """ + if self.local_vars_configuration.client_side_validation and year is None: # noqa: E501 + raise ValueError("Invalid value for `year`, must not be `None`") # noqa: E501 + + self._year = year @property def timezone_source(self): @@ -177,73 +218,74 @@ def timezone_source(self, timezone_source): self._timezone_source = timezone_source @property - def zone_id(self): - """Gets the zone_id of this PublicTimePointOperationTimePoint. # noqa: E501 + def millisecond(self): + """Gets the millisecond of this PublicTimePointOperationTimePoint. # noqa: E501 - :return: The zone_id of this PublicTimePointOperationTimePoint. # noqa: E501 - :rtype: str + :return: The millisecond of this PublicTimePointOperationTimePoint. # noqa: E501 + :rtype: int """ - return self._zone_id + return self._millisecond - @zone_id.setter - def zone_id(self, zone_id): - """Sets the zone_id of this PublicTimePointOperationTimePoint. + @millisecond.setter + def millisecond(self, millisecond): + """Sets the millisecond of this PublicTimePointOperationTimePoint. - :param zone_id: The zone_id of this PublicTimePointOperationTimePoint. # noqa: E501 - :type zone_id: str + :param millisecond: The millisecond of this PublicTimePointOperationTimePoint. # noqa: E501 + :type millisecond: int """ - if self.local_vars_configuration.client_side_validation and zone_id is None: # noqa: E501 - raise ValueError("Invalid value for `zone_id`, must not be `None`") # noqa: E501 - self._zone_id = zone_id + self._millisecond = millisecond @property - def year(self): - """Gets the year of this PublicTimePointOperationTimePoint. # noqa: E501 + def time_type(self): + """Gets the time_type of this PublicTimePointOperationTimePoint. # noqa: E501 - :return: The year of this PublicTimePointOperationTimePoint. # noqa: E501 - :rtype: int + :return: The time_type of this PublicTimePointOperationTimePoint. # noqa: E501 + :rtype: str """ - return self._year + return self._time_type - @year.setter - def year(self, year): - """Sets the year of this PublicTimePointOperationTimePoint. + @time_type.setter + def time_type(self, time_type): + """Sets the time_type of this PublicTimePointOperationTimePoint. - :param year: The year of this PublicTimePointOperationTimePoint. # noqa: E501 - :type year: int + :param time_type: The time_type of this PublicTimePointOperationTimePoint. # noqa: E501 + :type time_type: str """ - if self.local_vars_configuration.client_side_validation and year is None: # noqa: E501 - raise ValueError("Invalid value for `year`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and time_type is None: # noqa: E501 + raise ValueError("Invalid value for `time_type`, must not be `None`") # noqa: E501 + allowed_values = ["PROPERTY_REFERENCED"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and time_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `time_type` ({0}), must be one of {1}".format(time_type, allowed_values)) # noqa: E501 - self._year = year + self._time_type = time_type @property - def month(self): - """Gets the month of this PublicTimePointOperationTimePoint. # noqa: E501 + def zone_id(self): + """Gets the zone_id of this PublicTimePointOperationTimePoint. # noqa: E501 - :return: The month of this PublicTimePointOperationTimePoint. # noqa: E501 - :rtype: int + :return: The zone_id of this PublicTimePointOperationTimePoint. # noqa: E501 + :rtype: str """ - return self._month + return self._zone_id - @month.setter - def month(self, month): - """Sets the month of this PublicTimePointOperationTimePoint. + @zone_id.setter + def zone_id(self, zone_id): + """Sets the zone_id of this PublicTimePointOperationTimePoint. - :param month: The month of this PublicTimePointOperationTimePoint. # noqa: E501 - :type month: int + :param zone_id: The zone_id of this PublicTimePointOperationTimePoint. # noqa: E501 + :type zone_id: str """ - if self.local_vars_configuration.client_side_validation and month is None: # noqa: E501 - raise ValueError("Invalid value for `month`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and zone_id is None: # noqa: E501 + raise ValueError("Invalid value for `zone_id`, must not be `None`") # noqa: E501 - self._month = month + self._zone_id = zone_id @property def day(self): @@ -268,27 +310,6 @@ def day(self, day): self._day = day - @property - def hour(self): - """Gets the hour of this PublicTimePointOperationTimePoint. # noqa: E501 - - - :return: The hour of this PublicTimePointOperationTimePoint. # noqa: E501 - :rtype: int - """ - return self._hour - - @hour.setter - def hour(self, hour): - """Sets the hour of this PublicTimePointOperationTimePoint. - - - :param hour: The hour of this PublicTimePointOperationTimePoint. # noqa: E501 - :type hour: int - """ - - self._hour = hour - @property def minute(self): """Gets the minute of this PublicTimePointOperationTimePoint. # noqa: E501 @@ -332,25 +353,25 @@ def second(self, second): self._second = second @property - def millisecond(self): - """Gets the millisecond of this PublicTimePointOperationTimePoint. # noqa: E501 + def offset(self): + """Gets the offset of this PublicTimePointOperationTimePoint. # noqa: E501 - :return: The millisecond of this PublicTimePointOperationTimePoint. # noqa: E501 - :rtype: int + :return: The offset of this PublicTimePointOperationTimePoint. # noqa: E501 + :rtype: PublicIndexOffset """ - return self._millisecond + return self._offset - @millisecond.setter - def millisecond(self, millisecond): - """Sets the millisecond of this PublicTimePointOperationTimePoint. + @offset.setter + def offset(self, offset): + """Sets the offset of this PublicTimePointOperationTimePoint. - :param millisecond: The millisecond of this PublicTimePointOperationTimePoint. # noqa: E501 - :type millisecond: int + :param offset: The offset of this PublicTimePointOperationTimePoint. # noqa: E501 + :type offset: PublicIndexOffset """ - self._millisecond = millisecond + self._offset = offset @property def index_reference(self): @@ -375,27 +396,6 @@ def index_reference(self, index_reference): self._index_reference = index_reference - @property - def offset(self): - """Gets the offset of this PublicTimePointOperationTimePoint. # noqa: E501 - - - :return: The offset of this PublicTimePointOperationTimePoint. # noqa: E501 - :rtype: PublicIndexOffset - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this PublicTimePointOperationTimePoint. - - - :param offset: The offset of this PublicTimePointOperationTimePoint. # noqa: E501 - :type offset: PublicIndexOffset - """ - - self._offset = offset - @property def _property(self): """Gets the _property of this PublicTimePointOperationTimePoint. # noqa: E501 diff --git a/hubspot/crm/lists/models/public_today_reference.py b/hubspot/crm/lists/models/public_today_reference.py index 50ec8a8a..22303455 100644 --- a/hubspot/crm/lists/models/public_today_reference.py +++ b/hubspot/crm/lists/models/public_today_reference.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,32 +35,74 @@ class PublicTodayReference(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"reference_type": "str", "hour": "int", "minute": "int", "second": "int", "millisecond": "int"} + openapi_types = {"hour": "int", "millisecond": "int", "reference_type": "str", "minute": "int", "second": "int"} - attribute_map = {"reference_type": "referenceType", "hour": "hour", "minute": "minute", "second": "second", "millisecond": "millisecond"} + attribute_map = {"hour": "hour", "millisecond": "millisecond", "reference_type": "referenceType", "minute": "minute", "second": "second"} - def __init__(self, reference_type="TODAY", hour=None, minute=None, second=None, millisecond=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, hour=None, millisecond=None, reference_type="TODAY", minute=None, second=None, local_vars_configuration=None): # noqa: E501 """PublicTodayReference - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._reference_type = None self._hour = None + self._millisecond = None + self._reference_type = None self._minute = None self._second = None - self._millisecond = None self.discriminator = None - self.reference_type = reference_type if hour is not None: self.hour = hour + if millisecond is not None: + self.millisecond = millisecond + self.reference_type = reference_type if minute is not None: self.minute = minute if second is not None: self.second = second - if millisecond is not None: - self.millisecond = millisecond + + @property + def hour(self): + """Gets the hour of this PublicTodayReference. # noqa: E501 + + + :return: The hour of this PublicTodayReference. # noqa: E501 + :rtype: int + """ + return self._hour + + @hour.setter + def hour(self, hour): + """Sets the hour of this PublicTodayReference. + + + :param hour: The hour of this PublicTodayReference. # noqa: E501 + :type hour: int + """ + + self._hour = hour + + @property + def millisecond(self): + """Gets the millisecond of this PublicTodayReference. # noqa: E501 + + + :return: The millisecond of this PublicTodayReference. # noqa: E501 + :rtype: int + """ + return self._millisecond + + @millisecond.setter + def millisecond(self, millisecond): + """Sets the millisecond of this PublicTodayReference. + + + :param millisecond: The millisecond of this PublicTodayReference. # noqa: E501 + :type millisecond: int + """ + + self._millisecond = millisecond @property def reference_type(self): @@ -88,27 +130,6 @@ def reference_type(self, reference_type): self._reference_type = reference_type - @property - def hour(self): - """Gets the hour of this PublicTodayReference. # noqa: E501 - - - :return: The hour of this PublicTodayReference. # noqa: E501 - :rtype: int - """ - return self._hour - - @hour.setter - def hour(self, hour): - """Sets the hour of this PublicTodayReference. - - - :param hour: The hour of this PublicTodayReference. # noqa: E501 - :type hour: int - """ - - self._hour = hour - @property def minute(self): """Gets the minute of this PublicTodayReference. # noqa: E501 @@ -151,27 +172,6 @@ def second(self, second): self._second = second - @property - def millisecond(self): - """Gets the millisecond of this PublicTodayReference. # noqa: E501 - - - :return: The millisecond of this PublicTodayReference. # noqa: E501 - :rtype: int - """ - return self._millisecond - - @millisecond.setter - def millisecond(self, millisecond): - """Sets the millisecond of this PublicTodayReference. - - - :param millisecond: The millisecond of this PublicTodayReference. # noqa: E501 - :type millisecond: int - """ - - self._millisecond = millisecond - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_unified_events_filter.py b/hubspot/crm/lists/models/public_unified_events_filter.py index 268ddee3..9b509c50 100644 --- a/hubspot/crm/lists/models/public_unified_events_filter.py +++ b/hubspot/crm/lists/models/public_unified_events_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,83 +36,36 @@ class PublicUnifiedEventsFilter(object): and the value is json key in definition. """ openapi_types = { - "filter_type": "str", - "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", "coalescing_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", "event_type_id": "str", "filter_lines": "list[PublicEventFilterMetadata]", + "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", + "filter_type": "str", } - attribute_map = {"filter_type": "filterType", "pruning_refine_by": "pruningRefineBy", "coalescing_refine_by": "coalescingRefineBy", "event_type_id": "eventTypeId", "filter_lines": "filterLines"} + attribute_map = {"coalescing_refine_by": "coalescingRefineBy", "event_type_id": "eventTypeId", "filter_lines": "filterLines", "pruning_refine_by": "pruningRefineBy", "filter_type": "filterType"} - def __init__(self, filter_type="UNIFIED_EVENTS", pruning_refine_by=None, coalescing_refine_by=None, event_type_id=None, filter_lines=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, coalescing_refine_by=None, event_type_id=None, filter_lines=None, pruning_refine_by=None, filter_type="UNIFIED_EVENTS", local_vars_configuration=None): # noqa: E501 """PublicUnifiedEventsFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None - self._pruning_refine_by = None self._coalescing_refine_by = None self._event_type_id = None self._filter_lines = None + self._pruning_refine_by = None + self._filter_type = None self.discriminator = None - self.filter_type = filter_type - if pruning_refine_by is not None: - self.pruning_refine_by = pruning_refine_by if coalescing_refine_by is not None: self.coalescing_refine_by = coalescing_refine_by if event_type_id is not None: self.event_type_id = event_type_id self.filter_lines = filter_lines - - @property - def filter_type(self): - """Gets the filter_type of this PublicUnifiedEventsFilter. # noqa: E501 - - - :return: The filter_type of this PublicUnifiedEventsFilter. # noqa: E501 - :rtype: str - """ - return self._filter_type - - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicUnifiedEventsFilter. - - - :param filter_type: The filter_type of this PublicUnifiedEventsFilter. # noqa: E501 - :type filter_type: str - """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["UNIFIED_EVENTS"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - - self._filter_type = filter_type - - @property - def pruning_refine_by(self): - """Gets the pruning_refine_by of this PublicUnifiedEventsFilter. # noqa: E501 - - - :return: The pruning_refine_by of this PublicUnifiedEventsFilter. # noqa: E501 - :rtype: PublicEventAnalyticsFilterCoalescingRefineBy - """ - return self._pruning_refine_by - - @pruning_refine_by.setter - def pruning_refine_by(self, pruning_refine_by): - """Sets the pruning_refine_by of this PublicUnifiedEventsFilter. - - - :param pruning_refine_by: The pruning_refine_by of this PublicUnifiedEventsFilter. # noqa: E501 - :type pruning_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy - """ - - self._pruning_refine_by = pruning_refine_by + if pruning_refine_by is not None: + self.pruning_refine_by = pruning_refine_by + self.filter_type = filter_type @property def coalescing_refine_by(self): @@ -179,6 +132,53 @@ def filter_lines(self, filter_lines): self._filter_lines = filter_lines + @property + def pruning_refine_by(self): + """Gets the pruning_refine_by of this PublicUnifiedEventsFilter. # noqa: E501 + + + :return: The pruning_refine_by of this PublicUnifiedEventsFilter. # noqa: E501 + :rtype: PublicEventAnalyticsFilterCoalescingRefineBy + """ + return self._pruning_refine_by + + @pruning_refine_by.setter + def pruning_refine_by(self, pruning_refine_by): + """Sets the pruning_refine_by of this PublicUnifiedEventsFilter. + + + :param pruning_refine_by: The pruning_refine_by of this PublicUnifiedEventsFilter. # noqa: E501 + :type pruning_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy + """ + + self._pruning_refine_by = pruning_refine_by + + @property + def filter_type(self): + """Gets the filter_type of this PublicUnifiedEventsFilter. # noqa: E501 + + + :return: The filter_type of this PublicUnifiedEventsFilter. # noqa: E501 + :rtype: str + """ + return self._filter_type + + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicUnifiedEventsFilter. + + + :param filter_type: The filter_type of this PublicUnifiedEventsFilter. # noqa: E501 + :type filter_type: str + """ + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["UNIFIED_EVENTS"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + + self._filter_type = filter_type + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_unified_events_filter_branch.py b/hubspot/crm/lists/models/public_unified_events_filter_branch.py index 80923819..3b885e48 100644 --- a/hubspot/crm/lists/models/public_unified_events_filter_branch.py +++ b/hubspot/crm/lists/models/public_unified_events_filter_branch.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -38,23 +38,23 @@ class PublicUnifiedEventsFilterBranch(object): openapi_types = { "filter_branch_type": "str", "filter_branches": "list[PublicPropertyAssociationFilterBranchFilterBranchesInner]", - "filters": "list[PublicPropertyAssociationFilterBranchFiltersInner]", "event_type_id": "str", - "operator": "str", "filter_branch_operator": "str", + "filters": "list[PublicPropertyAssociationFilterBranchFiltersInner]", + "operator": "str", } attribute_map = { "filter_branch_type": "filterBranchType", "filter_branches": "filterBranches", - "filters": "filters", "event_type_id": "eventTypeId", - "operator": "operator", "filter_branch_operator": "filterBranchOperator", + "filters": "filters", + "operator": "operator", } def __init__( - self, filter_branch_type="UNIFIED_EVENTS", filter_branches=None, filters=None, event_type_id=None, operator=None, filter_branch_operator=None, local_vars_configuration=None + self, filter_branch_type="UNIFIED_EVENTS", filter_branches=None, event_type_id=None, filter_branch_operator=None, filters=None, operator=None, local_vars_configuration=None ): # noqa: E501 """PublicUnifiedEventsFilterBranch - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: @@ -63,18 +63,18 @@ def __init__( self._filter_branch_type = None self._filter_branches = None - self._filters = None self._event_type_id = None - self._operator = None self._filter_branch_operator = None + self._filters = None + self._operator = None self.discriminator = None self.filter_branch_type = filter_branch_type self.filter_branches = filter_branches - self.filters = filters self.event_type_id = event_type_id - self.operator = operator self.filter_branch_operator = filter_branch_operator + self.filters = filters + self.operator = operator @property def filter_branch_type(self): @@ -125,29 +125,6 @@ def filter_branches(self, filter_branches): self._filter_branches = filter_branches - @property - def filters(self): - """Gets the filters of this PublicUnifiedEventsFilterBranch. # noqa: E501 - - - :return: The filters of this PublicUnifiedEventsFilterBranch. # noqa: E501 - :rtype: list[PublicPropertyAssociationFilterBranchFiltersInner] - """ - return self._filters - - @filters.setter - def filters(self, filters): - """Sets the filters of this PublicUnifiedEventsFilterBranch. - - - :param filters: The filters of this PublicUnifiedEventsFilterBranch. # noqa: E501 - :type filters: list[PublicPropertyAssociationFilterBranchFiltersInner] - """ - if self.local_vars_configuration.client_side_validation and filters is None: # noqa: E501 - raise ValueError("Invalid value for `filters`, must not be `None`") # noqa: E501 - - self._filters = filters - @property def event_type_id(self): """Gets the event_type_id of this PublicUnifiedEventsFilterBranch. # noqa: E501 @@ -171,6 +148,52 @@ def event_type_id(self, event_type_id): self._event_type_id = event_type_id + @property + def filter_branch_operator(self): + """Gets the filter_branch_operator of this PublicUnifiedEventsFilterBranch. # noqa: E501 + + + :return: The filter_branch_operator of this PublicUnifiedEventsFilterBranch. # noqa: E501 + :rtype: str + """ + return self._filter_branch_operator + + @filter_branch_operator.setter + def filter_branch_operator(self, filter_branch_operator): + """Sets the filter_branch_operator of this PublicUnifiedEventsFilterBranch. + + + :param filter_branch_operator: The filter_branch_operator of this PublicUnifiedEventsFilterBranch. # noqa: E501 + :type filter_branch_operator: str + """ + if self.local_vars_configuration.client_side_validation and filter_branch_operator is None: # noqa: E501 + raise ValueError("Invalid value for `filter_branch_operator`, must not be `None`") # noqa: E501 + + self._filter_branch_operator = filter_branch_operator + + @property + def filters(self): + """Gets the filters of this PublicUnifiedEventsFilterBranch. # noqa: E501 + + + :return: The filters of this PublicUnifiedEventsFilterBranch. # noqa: E501 + :rtype: list[PublicPropertyAssociationFilterBranchFiltersInner] + """ + return self._filters + + @filters.setter + def filters(self, filters): + """Sets the filters of this PublicUnifiedEventsFilterBranch. + + + :param filters: The filters of this PublicUnifiedEventsFilterBranch. # noqa: E501 + :type filters: list[PublicPropertyAssociationFilterBranchFiltersInner] + """ + if self.local_vars_configuration.client_side_validation and filters is None: # noqa: E501 + raise ValueError("Invalid value for `filters`, must not be `None`") # noqa: E501 + + self._filters = filters + @property def operator(self): """Gets the operator of this PublicUnifiedEventsFilterBranch. # noqa: E501 @@ -197,29 +220,6 @@ def operator(self, operator): self._operator = operator - @property - def filter_branch_operator(self): - """Gets the filter_branch_operator of this PublicUnifiedEventsFilterBranch. # noqa: E501 - - - :return: The filter_branch_operator of this PublicUnifiedEventsFilterBranch. # noqa: E501 - :rtype: str - """ - return self._filter_branch_operator - - @filter_branch_operator.setter - def filter_branch_operator(self, filter_branch_operator): - """Sets the filter_branch_operator of this PublicUnifiedEventsFilterBranch. - - - :param filter_branch_operator: The filter_branch_operator of this PublicUnifiedEventsFilterBranch. # noqa: E501 - :type filter_branch_operator: str - """ - if self.local_vars_configuration.client_side_validation and filter_branch_operator is None: # noqa: E501 - raise ValueError("Invalid value for `filter_branch_operator`, must not be `None`") # noqa: E501 - - self._filter_branch_operator = filter_branch_operator - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_unified_events_in_list_filter.py b/hubspot/crm/lists/models/public_unified_events_in_list_filter.py index c6015d7b..ec42e576 100644 --- a/hubspot/crm/lists/models/public_unified_events_in_list_filter.py +++ b/hubspot/crm/lists/models/public_unified_events_in_list_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -36,82 +36,58 @@ class PublicUnifiedEventsInListFilter(object): and the value is json key in definition. """ openapi_types = { - "filter_type": "str", - "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", + "list_id": "str", "coalescing_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", - "list_id": "int", "event_type_id": "str", + "pruning_refine_by": "PublicEventAnalyticsFilterCoalescingRefineBy", + "filter_type": "str", } - attribute_map = {"filter_type": "filterType", "pruning_refine_by": "pruningRefineBy", "coalescing_refine_by": "coalescingRefineBy", "list_id": "listId", "event_type_id": "eventTypeId"} + attribute_map = {"list_id": "listId", "coalescing_refine_by": "coalescingRefineBy", "event_type_id": "eventTypeId", "pruning_refine_by": "pruningRefineBy", "filter_type": "filterType"} - def __init__(self, filter_type="UNIFIED_EVENTS_IN_LIST", pruning_refine_by=None, coalescing_refine_by=None, list_id=None, event_type_id=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, list_id=None, coalescing_refine_by=None, event_type_id=None, pruning_refine_by=None, filter_type="UNIFIED_EVENTS_IN_LIST", local_vars_configuration=None): # noqa: E501 """PublicUnifiedEventsInListFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._filter_type = None - self._pruning_refine_by = None - self._coalescing_refine_by = None self._list_id = None + self._coalescing_refine_by = None self._event_type_id = None + self._pruning_refine_by = None + self._filter_type = None self.discriminator = None - self.filter_type = filter_type - if pruning_refine_by is not None: - self.pruning_refine_by = pruning_refine_by + self.list_id = list_id if coalescing_refine_by is not None: self.coalescing_refine_by = coalescing_refine_by - self.list_id = list_id self.event_type_id = event_type_id + if pruning_refine_by is not None: + self.pruning_refine_by = pruning_refine_by + self.filter_type = filter_type @property - def filter_type(self): - """Gets the filter_type of this PublicUnifiedEventsInListFilter. # noqa: E501 + def list_id(self): + """Gets the list_id of this PublicUnifiedEventsInListFilter. # noqa: E501 - :return: The filter_type of this PublicUnifiedEventsInListFilter. # noqa: E501 + :return: The list_id of this PublicUnifiedEventsInListFilter. # noqa: E501 :rtype: str """ - return self._filter_type - - @filter_type.setter - def filter_type(self, filter_type): - """Sets the filter_type of this PublicUnifiedEventsInListFilter. - - - :param filter_type: The filter_type of this PublicUnifiedEventsInListFilter. # noqa: E501 - :type filter_type: str - """ - if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 - raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 - allowed_values = ["UNIFIED_EVENTS_IN_LIST"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 - - self._filter_type = filter_type - - @property - def pruning_refine_by(self): - """Gets the pruning_refine_by of this PublicUnifiedEventsInListFilter. # noqa: E501 - - - :return: The pruning_refine_by of this PublicUnifiedEventsInListFilter. # noqa: E501 - :rtype: PublicEventAnalyticsFilterCoalescingRefineBy - """ - return self._pruning_refine_by + return self._list_id - @pruning_refine_by.setter - def pruning_refine_by(self, pruning_refine_by): - """Sets the pruning_refine_by of this PublicUnifiedEventsInListFilter. + @list_id.setter + def list_id(self, list_id): + """Sets the list_id of this PublicUnifiedEventsInListFilter. - :param pruning_refine_by: The pruning_refine_by of this PublicUnifiedEventsInListFilter. # noqa: E501 - :type pruning_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy + :param list_id: The list_id of this PublicUnifiedEventsInListFilter. # noqa: E501 + :type list_id: str """ + if self.local_vars_configuration.client_side_validation and list_id is None: # noqa: E501 + raise ValueError("Invalid value for `list_id`, must not be `None`") # noqa: E501 - self._pruning_refine_by = pruning_refine_by + self._list_id = list_id @property def coalescing_refine_by(self): @@ -134,29 +110,6 @@ def coalescing_refine_by(self, coalescing_refine_by): self._coalescing_refine_by = coalescing_refine_by - @property - def list_id(self): - """Gets the list_id of this PublicUnifiedEventsInListFilter. # noqa: E501 - - - :return: The list_id of this PublicUnifiedEventsInListFilter. # noqa: E501 - :rtype: int - """ - return self._list_id - - @list_id.setter - def list_id(self, list_id): - """Sets the list_id of this PublicUnifiedEventsInListFilter. - - - :param list_id: The list_id of this PublicUnifiedEventsInListFilter. # noqa: E501 - :type list_id: int - """ - if self.local_vars_configuration.client_side_validation and list_id is None: # noqa: E501 - raise ValueError("Invalid value for `list_id`, must not be `None`") # noqa: E501 - - self._list_id = list_id - @property def event_type_id(self): """Gets the event_type_id of this PublicUnifiedEventsInListFilter. # noqa: E501 @@ -180,6 +133,53 @@ def event_type_id(self, event_type_id): self._event_type_id = event_type_id + @property + def pruning_refine_by(self): + """Gets the pruning_refine_by of this PublicUnifiedEventsInListFilter. # noqa: E501 + + + :return: The pruning_refine_by of this PublicUnifiedEventsInListFilter. # noqa: E501 + :rtype: PublicEventAnalyticsFilterCoalescingRefineBy + """ + return self._pruning_refine_by + + @pruning_refine_by.setter + def pruning_refine_by(self, pruning_refine_by): + """Sets the pruning_refine_by of this PublicUnifiedEventsInListFilter. + + + :param pruning_refine_by: The pruning_refine_by of this PublicUnifiedEventsInListFilter. # noqa: E501 + :type pruning_refine_by: PublicEventAnalyticsFilterCoalescingRefineBy + """ + + self._pruning_refine_by = pruning_refine_by + + @property + def filter_type(self): + """Gets the filter_type of this PublicUnifiedEventsInListFilter. # noqa: E501 + + + :return: The filter_type of this PublicUnifiedEventsInListFilter. # noqa: E501 + :rtype: str + """ + return self._filter_type + + @filter_type.setter + def filter_type(self, filter_type): + """Sets the filter_type of this PublicUnifiedEventsInListFilter. + + + :param filter_type: The filter_type of this PublicUnifiedEventsInListFilter. # noqa: E501 + :type filter_type: str + """ + if self.local_vars_configuration.client_side_validation and filter_type is None: # noqa: E501 + raise ValueError("Invalid value for `filter_type`, must not be `None`") # noqa: E501 + allowed_values = ["UNIFIED_EVENTS_IN_LIST"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and filter_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `filter_type` ({0}), must be one of {1}".format(filter_type, allowed_values)) # noqa: E501 + + self._filter_type = filter_type + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_webinar_filter.py b/hubspot/crm/lists/models/public_webinar_filter.py index a42ed872..d78ab608 100644 --- a/hubspot/crm/lists/models/public_webinar_filter.py +++ b/hubspot/crm/lists/models/public_webinar_filter.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,25 +35,46 @@ class PublicWebinarFilter(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"filter_type": "str", "operator": "str", "webinar_id": "str"} + openapi_types = {"webinar_id": "str", "filter_type": "str", "operator": "str"} - attribute_map = {"filter_type": "filterType", "operator": "operator", "webinar_id": "webinarId"} + attribute_map = {"webinar_id": "webinarId", "filter_type": "filterType", "operator": "operator"} - def __init__(self, filter_type="WEBINAR", operator=None, webinar_id=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, webinar_id=None, filter_type="WEBINAR", operator=None, local_vars_configuration=None): # noqa: E501 """PublicWebinarFilter - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration + self._webinar_id = None self._filter_type = None self._operator = None - self._webinar_id = None self.discriminator = None - self.filter_type = filter_type - self.operator = operator if webinar_id is not None: self.webinar_id = webinar_id + self.filter_type = filter_type + self.operator = operator + + @property + def webinar_id(self): + """Gets the webinar_id of this PublicWebinarFilter. # noqa: E501 + + + :return: The webinar_id of this PublicWebinarFilter. # noqa: E501 + :rtype: str + """ + return self._webinar_id + + @webinar_id.setter + def webinar_id(self, webinar_id): + """Sets the webinar_id of this PublicWebinarFilter. + + + :param webinar_id: The webinar_id of this PublicWebinarFilter. # noqa: E501 + :type webinar_id: str + """ + + self._webinar_id = webinar_id @property def filter_type(self): @@ -104,27 +125,6 @@ def operator(self, operator): self._operator = operator - @property - def webinar_id(self): - """Gets the webinar_id of this PublicWebinarFilter. # noqa: E501 - - - :return: The webinar_id of this PublicWebinarFilter. # noqa: E501 - :rtype: str - """ - return self._webinar_id - - @webinar_id.setter - def webinar_id(self, webinar_id): - """Sets the webinar_id of this PublicWebinarFilter. - - - :param webinar_id: The webinar_id of this PublicWebinarFilter. # noqa: E501 - :type webinar_id: str - """ - - self._webinar_id = webinar_id - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/models/public_week_reference.py b/hubspot/crm/lists/models/public_week_reference.py index db1e1cc6..ea109467 100644 --- a/hubspot/crm/lists/models/public_week_reference.py +++ b/hubspot/crm/lists/models/public_week_reference.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,60 +35,60 @@ class PublicWeekReference(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"reference_type": "str", "hour": "int", "minute": "int", "second": "int", "millisecond": "int", "day_of_week": "str"} + openapi_types = {"day_of_week": "str", "hour": "int", "millisecond": "int", "reference_type": "str", "minute": "int", "second": "int"} - attribute_map = {"reference_type": "referenceType", "hour": "hour", "minute": "minute", "second": "second", "millisecond": "millisecond", "day_of_week": "dayOfWeek"} + attribute_map = {"day_of_week": "dayOfWeek", "hour": "hour", "millisecond": "millisecond", "reference_type": "referenceType", "minute": "minute", "second": "second"} - def __init__(self, reference_type="WEEK", hour=None, minute=None, second=None, millisecond=None, day_of_week=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, day_of_week=None, hour=None, millisecond=None, reference_type="WEEK", minute=None, second=None, local_vars_configuration=None): # noqa: E501 """PublicWeekReference - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._reference_type = None + self._day_of_week = None self._hour = None + self._millisecond = None + self._reference_type = None self._minute = None self._second = None - self._millisecond = None - self._day_of_week = None self.discriminator = None - self.reference_type = reference_type + self.day_of_week = day_of_week if hour is not None: self.hour = hour + if millisecond is not None: + self.millisecond = millisecond + self.reference_type = reference_type if minute is not None: self.minute = minute if second is not None: self.second = second - if millisecond is not None: - self.millisecond = millisecond - self.day_of_week = day_of_week @property - def reference_type(self): - """Gets the reference_type of this PublicWeekReference. # noqa: E501 + def day_of_week(self): + """Gets the day_of_week of this PublicWeekReference. # noqa: E501 - :return: The reference_type of this PublicWeekReference. # noqa: E501 + :return: The day_of_week of this PublicWeekReference. # noqa: E501 :rtype: str """ - return self._reference_type + return self._day_of_week - @reference_type.setter - def reference_type(self, reference_type): - """Sets the reference_type of this PublicWeekReference. + @day_of_week.setter + def day_of_week(self, day_of_week): + """Sets the day_of_week of this PublicWeekReference. - :param reference_type: The reference_type of this PublicWeekReference. # noqa: E501 - :type reference_type: str + :param day_of_week: The day_of_week of this PublicWeekReference. # noqa: E501 + :type day_of_week: str """ - if self.local_vars_configuration.client_side_validation and reference_type is None: # noqa: E501 - raise ValueError("Invalid value for `reference_type`, must not be `None`") # noqa: E501 - allowed_values = ["WEEK"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and reference_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `reference_type` ({0}), must be one of {1}".format(reference_type, allowed_values)) # noqa: E501 + if self.local_vars_configuration.client_side_validation and day_of_week is None: # noqa: E501 + raise ValueError("Invalid value for `day_of_week`, must not be `None`") # noqa: E501 + allowed_values = ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and day_of_week not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `day_of_week` ({0}), must be one of {1}".format(day_of_week, allowed_values)) # noqa: E501 - self._reference_type = reference_type + self._day_of_week = day_of_week @property def hour(self): @@ -112,93 +112,93 @@ def hour(self, hour): self._hour = hour @property - def minute(self): - """Gets the minute of this PublicWeekReference. # noqa: E501 + def millisecond(self): + """Gets the millisecond of this PublicWeekReference. # noqa: E501 - :return: The minute of this PublicWeekReference. # noqa: E501 + :return: The millisecond of this PublicWeekReference. # noqa: E501 :rtype: int """ - return self._minute + return self._millisecond - @minute.setter - def minute(self, minute): - """Sets the minute of this PublicWeekReference. + @millisecond.setter + def millisecond(self, millisecond): + """Sets the millisecond of this PublicWeekReference. - :param minute: The minute of this PublicWeekReference. # noqa: E501 - :type minute: int + :param millisecond: The millisecond of this PublicWeekReference. # noqa: E501 + :type millisecond: int """ - self._minute = minute + self._millisecond = millisecond @property - def second(self): - """Gets the second of this PublicWeekReference. # noqa: E501 + def reference_type(self): + """Gets the reference_type of this PublicWeekReference. # noqa: E501 - :return: The second of this PublicWeekReference. # noqa: E501 - :rtype: int + :return: The reference_type of this PublicWeekReference. # noqa: E501 + :rtype: str """ - return self._second + return self._reference_type - @second.setter - def second(self, second): - """Sets the second of this PublicWeekReference. + @reference_type.setter + def reference_type(self, reference_type): + """Sets the reference_type of this PublicWeekReference. - :param second: The second of this PublicWeekReference. # noqa: E501 - :type second: int + :param reference_type: The reference_type of this PublicWeekReference. # noqa: E501 + :type reference_type: str """ + if self.local_vars_configuration.client_side_validation and reference_type is None: # noqa: E501 + raise ValueError("Invalid value for `reference_type`, must not be `None`") # noqa: E501 + allowed_values = ["WEEK"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and reference_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `reference_type` ({0}), must be one of {1}".format(reference_type, allowed_values)) # noqa: E501 - self._second = second + self._reference_type = reference_type @property - def millisecond(self): - """Gets the millisecond of this PublicWeekReference. # noqa: E501 + def minute(self): + """Gets the minute of this PublicWeekReference. # noqa: E501 - :return: The millisecond of this PublicWeekReference. # noqa: E501 + :return: The minute of this PublicWeekReference. # noqa: E501 :rtype: int """ - return self._millisecond + return self._minute - @millisecond.setter - def millisecond(self, millisecond): - """Sets the millisecond of this PublicWeekReference. + @minute.setter + def minute(self, minute): + """Sets the minute of this PublicWeekReference. - :param millisecond: The millisecond of this PublicWeekReference. # noqa: E501 - :type millisecond: int + :param minute: The minute of this PublicWeekReference. # noqa: E501 + :type minute: int """ - self._millisecond = millisecond + self._minute = minute @property - def day_of_week(self): - """Gets the day_of_week of this PublicWeekReference. # noqa: E501 + def second(self): + """Gets the second of this PublicWeekReference. # noqa: E501 - :return: The day_of_week of this PublicWeekReference. # noqa: E501 - :rtype: str + :return: The second of this PublicWeekReference. # noqa: E501 + :rtype: int """ - return self._day_of_week + return self._second - @day_of_week.setter - def day_of_week(self, day_of_week): - """Sets the day_of_week of this PublicWeekReference. + @second.setter + def second(self, second): + """Sets the second of this PublicWeekReference. - :param day_of_week: The day_of_week of this PublicWeekReference. # noqa: E501 - :type day_of_week: str + :param second: The second of this PublicWeekReference. # noqa: E501 + :type second: int """ - if self.local_vars_configuration.client_side_validation and day_of_week is None: # noqa: E501 - raise ValueError("Invalid value for `day_of_week`, must not be `None`") # noqa: E501 - allowed_values = ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and day_of_week not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `day_of_week` ({0}), must be one of {1}".format(day_of_week, allowed_values)) # noqa: E501 - self._day_of_week = day_of_week + self._second = second def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/lists/models/public_year_reference.py b/hubspot/crm/lists/models/public_year_reference.py index fd638260..02b33711 100644 --- a/hubspot/crm/lists/models/public_year_reference.py +++ b/hubspot/crm/lists/models/public_year_reference.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech @@ -35,62 +35,36 @@ class PublicYearReference(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"reference_type": "str", "hour": "int", "minute": "int", "second": "int", "millisecond": "int", "month": "int", "day": "int"} + openapi_types = {"hour": "int", "month": "int", "millisecond": "int", "reference_type": "str", "day": "int", "minute": "int", "second": "int"} - attribute_map = {"reference_type": "referenceType", "hour": "hour", "minute": "minute", "second": "second", "millisecond": "millisecond", "month": "month", "day": "day"} + attribute_map = {"hour": "hour", "month": "month", "millisecond": "millisecond", "reference_type": "referenceType", "day": "day", "minute": "minute", "second": "second"} - def __init__(self, reference_type="YEAR", hour=None, minute=None, second=None, millisecond=None, month=None, day=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, hour=None, month=None, millisecond=None, reference_type="YEAR", day=None, minute=None, second=None, local_vars_configuration=None): # noqa: E501 """PublicYearReference - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._reference_type = None self._hour = None - self._minute = None - self._second = None - self._millisecond = None self._month = None + self._millisecond = None + self._reference_type = None self._day = None + self._minute = None + self._second = None self.discriminator = None - self.reference_type = reference_type if hour is not None: self.hour = hour + self.month = month + if millisecond is not None: + self.millisecond = millisecond + self.reference_type = reference_type + self.day = day if minute is not None: self.minute = minute if second is not None: self.second = second - if millisecond is not None: - self.millisecond = millisecond - self.month = month - self.day = day - - @property - def reference_type(self): - """Gets the reference_type of this PublicYearReference. # noqa: E501 - - - :return: The reference_type of this PublicYearReference. # noqa: E501 - :rtype: str - """ - return self._reference_type - - @reference_type.setter - def reference_type(self, reference_type): - """Sets the reference_type of this PublicYearReference. - - - :param reference_type: The reference_type of this PublicYearReference. # noqa: E501 - :type reference_type: str - """ - if self.local_vars_configuration.client_side_validation and reference_type is None: # noqa: E501 - raise ValueError("Invalid value for `reference_type`, must not be `None`") # noqa: E501 - allowed_values = ["YEAR"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and reference_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `reference_type` ({0}), must be one of {1}".format(reference_type, allowed_values)) # noqa: E501 - - self._reference_type = reference_type @property def hour(self): @@ -114,46 +88,27 @@ def hour(self, hour): self._hour = hour @property - def minute(self): - """Gets the minute of this PublicYearReference. # noqa: E501 - - - :return: The minute of this PublicYearReference. # noqa: E501 - :rtype: int - """ - return self._minute - - @minute.setter - def minute(self, minute): - """Sets the minute of this PublicYearReference. - - - :param minute: The minute of this PublicYearReference. # noqa: E501 - :type minute: int - """ - - self._minute = minute - - @property - def second(self): - """Gets the second of this PublicYearReference. # noqa: E501 + def month(self): + """Gets the month of this PublicYearReference. # noqa: E501 - :return: The second of this PublicYearReference. # noqa: E501 + :return: The month of this PublicYearReference. # noqa: E501 :rtype: int """ - return self._second + return self._month - @second.setter - def second(self, second): - """Sets the second of this PublicYearReference. + @month.setter + def month(self, month): + """Sets the month of this PublicYearReference. - :param second: The second of this PublicYearReference. # noqa: E501 - :type second: int + :param month: The month of this PublicYearReference. # noqa: E501 + :type month: int """ + if self.local_vars_configuration.client_side_validation and month is None: # noqa: E501 + raise ValueError("Invalid value for `month`, must not be `None`") # noqa: E501 - self._second = second + self._month = month @property def millisecond(self): @@ -177,27 +132,30 @@ def millisecond(self, millisecond): self._millisecond = millisecond @property - def month(self): - """Gets the month of this PublicYearReference. # noqa: E501 + def reference_type(self): + """Gets the reference_type of this PublicYearReference. # noqa: E501 - :return: The month of this PublicYearReference. # noqa: E501 - :rtype: int + :return: The reference_type of this PublicYearReference. # noqa: E501 + :rtype: str """ - return self._month + return self._reference_type - @month.setter - def month(self, month): - """Sets the month of this PublicYearReference. + @reference_type.setter + def reference_type(self, reference_type): + """Sets the reference_type of this PublicYearReference. - :param month: The month of this PublicYearReference. # noqa: E501 - :type month: int + :param reference_type: The reference_type of this PublicYearReference. # noqa: E501 + :type reference_type: str """ - if self.local_vars_configuration.client_side_validation and month is None: # noqa: E501 - raise ValueError("Invalid value for `month`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and reference_type is None: # noqa: E501 + raise ValueError("Invalid value for `reference_type`, must not be `None`") # noqa: E501 + allowed_values = ["YEAR"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and reference_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `reference_type` ({0}), must be one of {1}".format(reference_type, allowed_values)) # noqa: E501 - self._month = month + self._reference_type = reference_type @property def day(self): @@ -222,6 +180,48 @@ def day(self, day): self._day = day + @property + def minute(self): + """Gets the minute of this PublicYearReference. # noqa: E501 + + + :return: The minute of this PublicYearReference. # noqa: E501 + :rtype: int + """ + return self._minute + + @minute.setter + def minute(self, minute): + """Sets the minute of this PublicYearReference. + + + :param minute: The minute of this PublicYearReference. # noqa: E501 + :type minute: int + """ + + self._minute = minute + + @property + def second(self): + """Gets the second of this PublicYearReference. # noqa: E501 + + + :return: The second of this PublicYearReference. # noqa: E501 + :rtype: int + """ + return self._second + + @second.setter + def second(self, second): + """Sets the second of this PublicYearReference. + + + :param second: The second of this PublicYearReference. # noqa: E501 + :type second: int + """ + + self._second = second + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/lists/rest.py b/hubspot/crm/lists/rest.py index 8ded33f2..135b3da4 100644 --- a/hubspot/crm/lists/rest.py +++ b/hubspot/crm/lists/rest.py @@ -3,7 +3,7 @@ """ Lists - CRUD operations to manage lists and list memberships # noqa: E501 + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech diff --git a/hubspot/crm/owners/__init__.py b/hubspot/crm/owners/__init__.py index f9308b00..231ea3af 100644 --- a/hubspot/crm/owners/__init__.py +++ b/hubspot/crm/owners/__init__.py @@ -3,7 +3,7 @@ # flake8: noqa """ - CRM Owners + Crm Owners HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request. If teams are available for your HubSpot tier, these endpoints will also indicate which team(s) an owner can access, as well as which team is the owner's primary team. # noqa: E501 diff --git a/hubspot/crm/owners/api/owners_api.py b/hubspot/crm/owners/api/owners_api.py index a3c7343c..07d5fd56 100644 --- a/hubspot/crm/owners/api/owners_api.py +++ b/hubspot/crm/owners/api/owners_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Owners + Crm Owners HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request. If teams are available for your HubSpot tier, these endpoints will also indicate which team(s) an owner can access, as well as which team is the owner's primary team. # noqa: E501 diff --git a/hubspot/crm/owners/api_client.py b/hubspot/crm/owners/api_client.py index 85607f20..2d02ef9a 100644 --- a/hubspot/crm/owners/api_client.py +++ b/hubspot/crm/owners/api_client.py @@ -1,6 +1,6 @@ # coding: utf-8 """ - CRM Owners + Crm Owners HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request. If teams are available for your HubSpot tier, these endpoints will also indicate which team(s) an owner can access, as well as which team is the owner's primary team. # noqa: E501 diff --git a/hubspot/crm/owners/configuration.py b/hubspot/crm/owners/configuration.py index 11cbcce0..f4f60f0b 100644 --- a/hubspot/crm/owners/configuration.py +++ b/hubspot/crm/owners/configuration.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Owners + Crm Owners HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request. If teams are available for your HubSpot tier, these endpoints will also indicate which team(s) an owner can access, as well as which team is the owner's primary team. # noqa: E501 diff --git a/hubspot/crm/owners/exceptions.py b/hubspot/crm/owners/exceptions.py index 2efeeecd..fb5075a6 100644 --- a/hubspot/crm/owners/exceptions.py +++ b/hubspot/crm/owners/exceptions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Owners + Crm Owners HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request. If teams are available for your HubSpot tier, these endpoints will also indicate which team(s) an owner can access, as well as which team is the owner's primary team. # noqa: E501 diff --git a/hubspot/crm/owners/models/__init__.py b/hubspot/crm/owners/models/__init__.py index 7bfdd838..75db23b4 100644 --- a/hubspot/crm/owners/models/__init__.py +++ b/hubspot/crm/owners/models/__init__.py @@ -2,7 +2,7 @@ # flake8: noqa """ - CRM Owners + Crm Owners HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request. If teams are available for your HubSpot tier, these endpoints will also indicate which team(s) an owner can access, as well as which team is the owner's primary team. # noqa: E501 diff --git a/hubspot/crm/owners/models/collection_response_public_owner_forward_paging.py b/hubspot/crm/owners/models/collection_response_public_owner_forward_paging.py index 86284031..4a53e4f4 100644 --- a/hubspot/crm/owners/models/collection_response_public_owner_forward_paging.py +++ b/hubspot/crm/owners/models/collection_response_public_owner_forward_paging.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Owners + Crm Owners HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request. If teams are available for your HubSpot tier, these endpoints will also indicate which team(s) an owner can access, as well as which team is the owner's primary team. # noqa: E501 @@ -35,23 +35,44 @@ class CollectionResponsePublicOwnerForwardPaging(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"results": "list[PublicOwner]", "paging": "ForwardPaging"} + openapi_types = {"paging": "ForwardPaging", "results": "list[PublicOwner]"} - attribute_map = {"results": "results", "paging": "paging"} + attribute_map = {"paging": "paging", "results": "results"} - def __init__(self, results=None, paging=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, paging=None, results=None, local_vars_configuration=None): # noqa: E501 """CollectionResponsePublicOwnerForwardPaging - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._results = None self._paging = None + self._results = None self.discriminator = None - self.results = results if paging is not None: self.paging = paging + self.results = results + + @property + def paging(self): + """Gets the paging of this CollectionResponsePublicOwnerForwardPaging. # noqa: E501 + + + :return: The paging of this CollectionResponsePublicOwnerForwardPaging. # noqa: E501 + :rtype: ForwardPaging + """ + return self._paging + + @paging.setter + def paging(self, paging): + """Sets the paging of this CollectionResponsePublicOwnerForwardPaging. + + + :param paging: The paging of this CollectionResponsePublicOwnerForwardPaging. # noqa: E501 + :type paging: ForwardPaging + """ + + self._paging = paging @property def results(self): @@ -76,27 +97,6 @@ def results(self, results): self._results = results - @property - def paging(self): - """Gets the paging of this CollectionResponsePublicOwnerForwardPaging. # noqa: E501 - - - :return: The paging of this CollectionResponsePublicOwnerForwardPaging. # noqa: E501 - :rtype: ForwardPaging - """ - return self._paging - - @paging.setter - def paging(self, paging): - """Sets the paging of this CollectionResponsePublicOwnerForwardPaging. - - - :param paging: The paging of this CollectionResponsePublicOwnerForwardPaging. # noqa: E501 - :type paging: ForwardPaging - """ - - self._paging = paging - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/owners/models/error.py b/hubspot/crm/owners/models/error.py index 0c323208..e24883d6 100644 --- a/hubspot/crm/owners/models/error.py +++ b/hubspot/crm/owners/models/error.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Owners + Crm Owners HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request. If teams are available for your HubSpot tier, these endpoints will also indicate which team(s) an owner can access, as well as which team is the owner's primary team. # noqa: E501 @@ -35,61 +35,82 @@ class Error(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"message": "str", "correlation_id": "str", "category": "str", "sub_category": "str", "errors": "list[ErrorDetail]", "context": "dict[str, list[str]]", "links": "dict[str, str]"} + openapi_types = {"sub_category": "str", "context": "dict[str, list[str]]", "correlation_id": "str", "links": "dict[str, str]", "message": "str", "category": "str", "errors": "list[ErrorDetail]"} - attribute_map = {"message": "message", "correlation_id": "correlationId", "category": "category", "sub_category": "subCategory", "errors": "errors", "context": "context", "links": "links"} + attribute_map = {"sub_category": "subCategory", "context": "context", "correlation_id": "correlationId", "links": "links", "message": "message", "category": "category", "errors": "errors"} - def __init__(self, message=None, correlation_id=None, category=None, sub_category=None, errors=None, context=None, links=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, sub_category=None, context=None, correlation_id=None, links=None, message=None, category=None, errors=None, local_vars_configuration=None): # noqa: E501 """Error - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._message = None - self._correlation_id = None - self._category = None self._sub_category = None - self._errors = None self._context = None + self._correlation_id = None self._links = None + self._message = None + self._category = None + self._errors = None self.discriminator = None - self.message = message - self.correlation_id = correlation_id - self.category = category if sub_category is not None: self.sub_category = sub_category - if errors is not None: - self.errors = errors if context is not None: self.context = context + self.correlation_id = correlation_id if links is not None: self.links = links + self.message = message + self.category = category + if errors is not None: + self.errors = errors @property - def message(self): - """Gets the message of this Error. # noqa: E501 + def sub_category(self): + """Gets the sub_category of this Error. # noqa: E501 - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :return: The message of this Error. # noqa: E501 + :return: The sub_category of this Error. # noqa: E501 :rtype: str """ - return self._message + return self._sub_category - @message.setter - def message(self, message): - """Sets the message of this Error. + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this Error. - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :param message: The message of this Error. # noqa: E501 - :type message: str + :param sub_category: The sub_category of this Error. # noqa: E501 + :type sub_category: str """ - if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - self._message = message + self._sub_category = sub_category + + @property + def context(self): + """Gets the context of this Error. # noqa: E501 + + Context about the error condition # noqa: E501 + + :return: The context of this Error. # noqa: E501 + :rtype: dict[str, list[str]] + """ + return self._context + + @context.setter + def context(self, context): + """Sets the context of this Error. + + Context about the error condition # noqa: E501 + + :param context: The context of this Error. # noqa: E501 + :type context: dict[str, list[str]] + """ + + self._context = context @property def correlation_id(self): @@ -116,6 +137,54 @@ def correlation_id(self, correlation_id): self._correlation_id = correlation_id + @property + def links(self): + """Gets the links of this Error. # noqa: E501 + + A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 + + :return: The links of this Error. # noqa: E501 + :rtype: dict[str, str] + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this Error. + + A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 + + :param links: The links of this Error. # noqa: E501 + :type links: dict[str, str] + """ + + self._links = links + + @property + def message(self): + """Gets the message of this Error. # noqa: E501 + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :return: The message of this Error. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this Error. + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :param message: The message of this Error. # noqa: E501 + :type message: str + """ + if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 + raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 + + self._message = message + @property def category(self): """Gets the category of this Error. # noqa: E501 @@ -141,29 +210,6 @@ def category(self, category): self._category = category - @property - def sub_category(self): - """Gets the sub_category of this Error. # noqa: E501 - - A specific category that contains more specific detail about the error # noqa: E501 - - :return: The sub_category of this Error. # noqa: E501 - :rtype: str - """ - return self._sub_category - - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this Error. - - A specific category that contains more specific detail about the error # noqa: E501 - - :param sub_category: The sub_category of this Error. # noqa: E501 - :type sub_category: str - """ - - self._sub_category = sub_category - @property def errors(self): """Gets the errors of this Error. # noqa: E501 @@ -187,52 +233,6 @@ def errors(self, errors): self._errors = errors - @property - def context(self): - """Gets the context of this Error. # noqa: E501 - - Context about the error condition # noqa: E501 - - :return: The context of this Error. # noqa: E501 - :rtype: dict[str, list[str]] - """ - return self._context - - @context.setter - def context(self, context): - """Sets the context of this Error. - - Context about the error condition # noqa: E501 - - :param context: The context of this Error. # noqa: E501 - :type context: dict[str, list[str]] - """ - - self._context = context - - @property - def links(self): - """Gets the links of this Error. # noqa: E501 - - A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 - - :return: The links of this Error. # noqa: E501 - :rtype: dict[str, str] - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this Error. - - A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 - - :param links: The links of this Error. # noqa: E501 - :type links: dict[str, str] - """ - - self._links = links - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/owners/models/error_detail.py b/hubspot/crm/owners/models/error_detail.py index d07a150c..7cdeec7a 100644 --- a/hubspot/crm/owners/models/error_detail.py +++ b/hubspot/crm/owners/models/error_detail.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Owners + Crm Owners HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request. If teams are available for your HubSpot tier, these endpoints will also indicate which team(s) an owner can access, as well as which team is the owner's primary team. # noqa: E501 @@ -35,80 +35,55 @@ class ErrorDetail(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"message": "str", "_in": "str", "code": "str", "sub_category": "str", "context": "dict[str, list[str]]"} + openapi_types = {"sub_category": "str", "code": "str", "_in": "str", "context": "dict[str, list[str]]", "message": "str"} - attribute_map = {"message": "message", "_in": "in", "code": "code", "sub_category": "subCategory", "context": "context"} + attribute_map = {"sub_category": "subCategory", "code": "code", "_in": "in", "context": "context", "message": "message"} - def __init__(self, message=None, _in=None, code=None, sub_category=None, context=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, sub_category=None, code=None, _in=None, context=None, message=None, local_vars_configuration=None): # noqa: E501 """ErrorDetail - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._message = None - self.__in = None - self._code = None self._sub_category = None + self._code = None + self.__in = None self._context = None + self._message = None self.discriminator = None - self.message = message - if _in is not None: - self._in = _in - if code is not None: - self.code = code if sub_category is not None: self.sub_category = sub_category + if code is not None: + self.code = code + if _in is not None: + self._in = _in if context is not None: self.context = context + self.message = message @property - def message(self): - """Gets the message of this ErrorDetail. # noqa: E501 - - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 - - :return: The message of this ErrorDetail. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this ErrorDetail. - - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 - - :param message: The message of this ErrorDetail. # noqa: E501 - :type message: str - """ - if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - - self._message = message - - @property - def _in(self): - """Gets the _in of this ErrorDetail. # noqa: E501 + def sub_category(self): + """Gets the sub_category of this ErrorDetail. # noqa: E501 - The name of the field or parameter in which the error was found. # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :return: The _in of this ErrorDetail. # noqa: E501 + :return: The sub_category of this ErrorDetail. # noqa: E501 :rtype: str """ - return self.__in + return self._sub_category - @_in.setter - def _in(self, _in): - """Sets the _in of this ErrorDetail. + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this ErrorDetail. - The name of the field or parameter in which the error was found. # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :param _in: The _in of this ErrorDetail. # noqa: E501 - :type _in: str + :param sub_category: The sub_category of this ErrorDetail. # noqa: E501 + :type sub_category: str """ - self.__in = _in + self._sub_category = sub_category @property def code(self): @@ -134,27 +109,27 @@ def code(self, code): self._code = code @property - def sub_category(self): - """Gets the sub_category of this ErrorDetail. # noqa: E501 + def _in(self): + """Gets the _in of this ErrorDetail. # noqa: E501 - A specific category that contains more specific detail about the error # noqa: E501 + The name of the field or parameter in which the error was found. # noqa: E501 - :return: The sub_category of this ErrorDetail. # noqa: E501 + :return: The _in of this ErrorDetail. # noqa: E501 :rtype: str """ - return self._sub_category + return self.__in - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this ErrorDetail. + @_in.setter + def _in(self, _in): + """Sets the _in of this ErrorDetail. - A specific category that contains more specific detail about the error # noqa: E501 + The name of the field or parameter in which the error was found. # noqa: E501 - :param sub_category: The sub_category of this ErrorDetail. # noqa: E501 - :type sub_category: str + :param _in: The _in of this ErrorDetail. # noqa: E501 + :type _in: str """ - self._sub_category = sub_category + self.__in = _in @property def context(self): @@ -179,6 +154,31 @@ def context(self, context): self._context = context + @property + def message(self): + """Gets the message of this ErrorDetail. # noqa: E501 + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :return: The message of this ErrorDetail. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ErrorDetail. + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :param message: The message of this ErrorDetail. # noqa: E501 + :type message: str + """ + if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 + raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 + + self._message = message + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/owners/models/forward_paging.py b/hubspot/crm/owners/models/forward_paging.py index 59e1b489..23f50491 100644 --- a/hubspot/crm/owners/models/forward_paging.py +++ b/hubspot/crm/owners/models/forward_paging.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Owners + Crm Owners HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request. If teams are available for your HubSpot tier, these endpoints will also indicate which team(s) an owner can access, as well as which team is the owner's primary team. # noqa: E501 diff --git a/hubspot/crm/owners/models/next_page.py b/hubspot/crm/owners/models/next_page.py index 7fb6ba5b..8b13ca90 100644 --- a/hubspot/crm/owners/models/next_page.py +++ b/hubspot/crm/owners/models/next_page.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Owners + Crm Owners HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request. If teams are available for your HubSpot tier, these endpoints will also indicate which team(s) an owner can access, as well as which team is the owner's primary team. # noqa: E501 @@ -35,23 +35,44 @@ class NextPage(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"after": "str", "link": "str"} + openapi_types = {"link": "str", "after": "str"} - attribute_map = {"after": "after", "link": "link"} + attribute_map = {"link": "link", "after": "after"} - def __init__(self, after=None, link=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, link=None, after=None, local_vars_configuration=None): # noqa: E501 """NextPage - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._after = None self._link = None + self._after = None self.discriminator = None - self.after = after if link is not None: self.link = link + self.after = after + + @property + def link(self): + """Gets the link of this NextPage. # noqa: E501 + + + :return: The link of this NextPage. # noqa: E501 + :rtype: str + """ + return self._link + + @link.setter + def link(self, link): + """Sets the link of this NextPage. + + + :param link: The link of this NextPage. # noqa: E501 + :type link: str + """ + + self._link = link @property def after(self): @@ -76,27 +97,6 @@ def after(self, after): self._after = after - @property - def link(self): - """Gets the link of this NextPage. # noqa: E501 - - - :return: The link of this NextPage. # noqa: E501 - :rtype: str - """ - return self._link - - @link.setter - def link(self, link): - """Sets the link of this NextPage. - - - :param link: The link of this NextPage. # noqa: E501 - :type link: str - """ - - self._link = link - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/owners/models/public_owner.py b/hubspot/crm/owners/models/public_owner.py index 63df88eb..31da2ba1 100644 --- a/hubspot/crm/owners/models/public_owner.py +++ b/hubspot/crm/owners/models/public_owner.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Owners + Crm Owners HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request. If teams are available for your HubSpot tier, these endpoints will also indicate which team(s) an owner can access, as well as which team is the owner's primary team. # noqa: E501 @@ -36,104 +36,60 @@ class PublicOwner(object): and the value is json key in definition. """ openapi_types = { - "id": "str", - "email": "str", "first_name": "str", "last_name": "str", - "user_id": "int", "created_at": "datetime", - "updated_at": "datetime", "archived": "bool", "teams": "list[PublicTeam]", + "id": "str", + "user_id": "int", + "email": "str", + "updated_at": "datetime", } attribute_map = { - "id": "id", - "email": "email", "first_name": "firstName", "last_name": "lastName", - "user_id": "userId", "created_at": "createdAt", - "updated_at": "updatedAt", "archived": "archived", "teams": "teams", + "id": "id", + "user_id": "userId", + "email": "email", + "updated_at": "updatedAt", } - def __init__(self, id=None, email=None, first_name=None, last_name=None, user_id=None, created_at=None, updated_at=None, archived=None, teams=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, first_name=None, last_name=None, created_at=None, archived=None, teams=None, id=None, user_id=None, email=None, updated_at=None, local_vars_configuration=None): # noqa: E501 """PublicOwner - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._id = None - self._email = None self._first_name = None self._last_name = None - self._user_id = None self._created_at = None - self._updated_at = None self._archived = None self._teams = None + self._id = None + self._user_id = None + self._email = None + self._updated_at = None self.discriminator = None - self.id = id - if email is not None: - self.email = email if first_name is not None: self.first_name = first_name if last_name is not None: self.last_name = last_name - if user_id is not None: - self.user_id = user_id self.created_at = created_at - self.updated_at = updated_at self.archived = archived if teams is not None: self.teams = teams - - @property - def id(self): - """Gets the id of this PublicOwner. # noqa: E501 - - - :return: The id of this PublicOwner. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this PublicOwner. - - - :param id: The id of this PublicOwner. # noqa: E501 - :type id: str - """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def email(self): - """Gets the email of this PublicOwner. # noqa: E501 - - - :return: The email of this PublicOwner. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this PublicOwner. - - - :param email: The email of this PublicOwner. # noqa: E501 - :type email: str - """ - - self._email = email + self.id = id + if user_id is not None: + self.user_id = user_id + if email is not None: + self.email = email + self.updated_at = updated_at @property def first_name(self): @@ -177,27 +133,6 @@ def last_name(self, last_name): self._last_name = last_name - @property - def user_id(self): - """Gets the user_id of this PublicOwner. # noqa: E501 - - - :return: The user_id of this PublicOwner. # noqa: E501 - :rtype: int - """ - return self._user_id - - @user_id.setter - def user_id(self, user_id): - """Sets the user_id of this PublicOwner. - - - :param user_id: The user_id of this PublicOwner. # noqa: E501 - :type user_id: int - """ - - self._user_id = user_id - @property def created_at(self): """Gets the created_at of this PublicOwner. # noqa: E501 @@ -221,29 +156,6 @@ def created_at(self, created_at): self._created_at = created_at - @property - def updated_at(self): - """Gets the updated_at of this PublicOwner. # noqa: E501 - - - :return: The updated_at of this PublicOwner. # noqa: E501 - :rtype: datetime - """ - return self._updated_at - - @updated_at.setter - def updated_at(self, updated_at): - """Sets the updated_at of this PublicOwner. - - - :param updated_at: The updated_at of this PublicOwner. # noqa: E501 - :type updated_at: datetime - """ - if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501 - raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501 - - self._updated_at = updated_at - @property def archived(self): """Gets the archived of this PublicOwner. # noqa: E501 @@ -288,6 +200,94 @@ def teams(self, teams): self._teams = teams + @property + def id(self): + """Gets the id of this PublicOwner. # noqa: E501 + + + :return: The id of this PublicOwner. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PublicOwner. + + + :param id: The id of this PublicOwner. # noqa: E501 + :type id: str + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def user_id(self): + """Gets the user_id of this PublicOwner. # noqa: E501 + + + :return: The user_id of this PublicOwner. # noqa: E501 + :rtype: int + """ + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """Sets the user_id of this PublicOwner. + + + :param user_id: The user_id of this PublicOwner. # noqa: E501 + :type user_id: int + """ + + self._user_id = user_id + + @property + def email(self): + """Gets the email of this PublicOwner. # noqa: E501 + + + :return: The email of this PublicOwner. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this PublicOwner. + + + :param email: The email of this PublicOwner. # noqa: E501 + :type email: str + """ + + self._email = email + + @property + def updated_at(self): + """Gets the updated_at of this PublicOwner. # noqa: E501 + + + :return: The updated_at of this PublicOwner. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this PublicOwner. + + + :param updated_at: The updated_at of this PublicOwner. # noqa: E501 + :type updated_at: datetime + """ + if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501 + raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501 + + self._updated_at = updated_at + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/owners/models/public_team.py b/hubspot/crm/owners/models/public_team.py index 40b9cea1..106c3c11 100644 --- a/hubspot/crm/owners/models/public_team.py +++ b/hubspot/crm/owners/models/public_team.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Owners + Crm Owners HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request. If teams are available for your HubSpot tier, these endpoints will also indicate which team(s) an owner can access, as well as which team is the owner's primary team. # noqa: E501 @@ -35,48 +35,25 @@ class PublicTeam(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"id": "str", "name": "str", "primary": "bool"} + openapi_types = {"name": "str", "id": "str", "primary": "bool"} - attribute_map = {"id": "id", "name": "name", "primary": "primary"} + attribute_map = {"name": "name", "id": "id", "primary": "primary"} - def __init__(self, id=None, name=None, primary=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, name=None, id=None, primary=None, local_vars_configuration=None): # noqa: E501 """PublicTeam - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._id = None self._name = None + self._id = None self._primary = None self.discriminator = None - self.id = id self.name = name + self.id = id self.primary = primary - @property - def id(self): - """Gets the id of this PublicTeam. # noqa: E501 - - - :return: The id of this PublicTeam. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this PublicTeam. - - - :param id: The id of this PublicTeam. # noqa: E501 - :type id: str - """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - @property def name(self): """Gets the name of this PublicTeam. # noqa: E501 @@ -100,6 +77,29 @@ def name(self, name): self._name = name + @property + def id(self): + """Gets the id of this PublicTeam. # noqa: E501 + + + :return: The id of this PublicTeam. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PublicTeam. + + + :param id: The id of this PublicTeam. # noqa: E501 + :type id: str + """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + @property def primary(self): """Gets the primary of this PublicTeam. # noqa: E501 diff --git a/hubspot/crm/owners/rest.py b/hubspot/crm/owners/rest.py index 9bc05752..80226f33 100644 --- a/hubspot/crm/owners/rest.py +++ b/hubspot/crm/owners/rest.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Owners + Crm Owners HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request. If teams are available for your HubSpot tier, these endpoints will also indicate which team(s) an owner can access, as well as which team is the owner's primary team. # noqa: E501 diff --git a/hubspot/crm/pipelines/__init__.py b/hubspot/crm/pipelines/__init__.py index d315833a..ddecdcb4 100644 --- a/hubspot/crm/pipelines/__init__.py +++ b/hubspot/crm/pipelines/__init__.py @@ -3,7 +3,7 @@ # flake8: noqa """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 diff --git a/hubspot/crm/pipelines/api/pipeline_audits_api.py b/hubspot/crm/pipelines/api/pipeline_audits_api.py index 5dddafbb..4dff83af 100644 --- a/hubspot/crm/pipelines/api/pipeline_audits_api.py +++ b/hubspot/crm/pipelines/api/pipeline_audits_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 diff --git a/hubspot/crm/pipelines/api/pipeline_stage_audits_api.py b/hubspot/crm/pipelines/api/pipeline_stage_audits_api.py index a25f129e..d174af16 100644 --- a/hubspot/crm/pipelines/api/pipeline_stage_audits_api.py +++ b/hubspot/crm/pipelines/api/pipeline_stage_audits_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 diff --git a/hubspot/crm/pipelines/api/pipeline_stages_api.py b/hubspot/crm/pipelines/api/pipeline_stages_api.py index 21e7a3cc..65a321bd 100644 --- a/hubspot/crm/pipelines/api/pipeline_stages_api.py +++ b/hubspot/crm/pipelines/api/pipeline_stages_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 diff --git a/hubspot/crm/pipelines/api/pipelines_api.py b/hubspot/crm/pipelines/api/pipelines_api.py index d59617d1..530cb8b3 100644 --- a/hubspot/crm/pipelines/api/pipelines_api.py +++ b/hubspot/crm/pipelines/api/pipelines_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 @@ -49,6 +49,8 @@ def archive(self, object_type, pipeline_id, **kwargs): # noqa: E501 :type pipeline_id: str :param validate_references_before_delete: :type validate_references_before_delete: bool + :param validate_deal_stage_usages_before_delete: + :type validate_deal_stage_usages_before_delete: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -83,6 +85,8 @@ def archive_with_http_info(self, object_type, pipeline_id, **kwargs): # noqa: E :type pipeline_id: str :param validate_references_before_delete: :type validate_references_before_delete: bool + :param validate_deal_stage_usages_before_delete: + :type validate_deal_stage_usages_before_delete: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -109,7 +113,7 @@ def archive_with_http_info(self, object_type, pipeline_id, **kwargs): # noqa: E local_var_params = locals() - all_params = ["object_type", "pipeline_id", "validate_references_before_delete"] + all_params = ["object_type", "pipeline_id", "validate_references_before_delete", "validate_deal_stage_usages_before_delete"] all_params.extend(["async_req", "_return_http_data_only", "_preload_content", "_request_timeout", "_request_auth", "_content_type", "_headers"]) for key, val in six.iteritems(local_var_params["kwargs"]): @@ -135,6 +139,8 @@ def archive_with_http_info(self, object_type, pipeline_id, **kwargs): # noqa: E query_params = [] if local_var_params.get("validate_references_before_delete") is not None: # noqa: E501 query_params.append(("validateReferencesBeforeDelete", local_var_params["validate_references_before_delete"])) # noqa: E501 + if local_var_params.get("validate_deal_stage_usages_before_delete") is not None: # noqa: E501 + query_params.append(("validateDealStageUsagesBeforeDelete", local_var_params["validate_deal_stage_usages_before_delete"])) # noqa: E501 header_params = dict(local_var_params.get("_headers", {})) @@ -579,6 +585,8 @@ def replace(self, object_type, pipeline_id, pipeline_input, **kwargs): # noqa: :type pipeline_input: PipelineInput :param validate_references_before_delete: :type validate_references_before_delete: bool + :param validate_deal_stage_usages_before_delete: + :type validate_deal_stage_usages_before_delete: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -615,6 +623,8 @@ def replace_with_http_info(self, object_type, pipeline_id, pipeline_input, **kwa :type pipeline_input: PipelineInput :param validate_references_before_delete: :type validate_references_before_delete: bool + :param validate_deal_stage_usages_before_delete: + :type validate_deal_stage_usages_before_delete: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -641,7 +651,7 @@ def replace_with_http_info(self, object_type, pipeline_id, pipeline_input, **kwa local_var_params = locals() - all_params = ["object_type", "pipeline_id", "pipeline_input", "validate_references_before_delete"] + all_params = ["object_type", "pipeline_id", "pipeline_input", "validate_references_before_delete", "validate_deal_stage_usages_before_delete"] all_params.extend(["async_req", "_return_http_data_only", "_preload_content", "_request_timeout", "_request_auth", "_content_type", "_headers"]) for key, val in six.iteritems(local_var_params["kwargs"]): @@ -670,6 +680,8 @@ def replace_with_http_info(self, object_type, pipeline_id, pipeline_input, **kwa query_params = [] if local_var_params.get("validate_references_before_delete") is not None: # noqa: E501 query_params.append(("validateReferencesBeforeDelete", local_var_params["validate_references_before_delete"])) # noqa: E501 + if local_var_params.get("validate_deal_stage_usages_before_delete") is not None: # noqa: E501 + query_params.append(("validateDealStageUsagesBeforeDelete", local_var_params["validate_deal_stage_usages_before_delete"])) # noqa: E501 header_params = dict(local_var_params.get("_headers", {})) @@ -731,6 +743,8 @@ def update(self, object_type, pipeline_id, pipeline_patch_input, **kwargs): # n :type pipeline_patch_input: PipelinePatchInput :param validate_references_before_delete: :type validate_references_before_delete: bool + :param validate_deal_stage_usages_before_delete: + :type validate_deal_stage_usages_before_delete: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -767,6 +781,8 @@ def update_with_http_info(self, object_type, pipeline_id, pipeline_patch_input, :type pipeline_patch_input: PipelinePatchInput :param validate_references_before_delete: :type validate_references_before_delete: bool + :param validate_deal_stage_usages_before_delete: + :type validate_deal_stage_usages_before_delete: bool :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _return_http_data_only: response data without head status code @@ -793,7 +809,7 @@ def update_with_http_info(self, object_type, pipeline_id, pipeline_patch_input, local_var_params = locals() - all_params = ["object_type", "pipeline_id", "pipeline_patch_input", "validate_references_before_delete"] + all_params = ["object_type", "pipeline_id", "pipeline_patch_input", "validate_references_before_delete", "validate_deal_stage_usages_before_delete"] all_params.extend(["async_req", "_return_http_data_only", "_preload_content", "_request_timeout", "_request_auth", "_content_type", "_headers"]) for key, val in six.iteritems(local_var_params["kwargs"]): @@ -822,6 +838,8 @@ def update_with_http_info(self, object_type, pipeline_id, pipeline_patch_input, query_params = [] if local_var_params.get("validate_references_before_delete") is not None: # noqa: E501 query_params.append(("validateReferencesBeforeDelete", local_var_params["validate_references_before_delete"])) # noqa: E501 + if local_var_params.get("validate_deal_stage_usages_before_delete") is not None: # noqa: E501 + query_params.append(("validateDealStageUsagesBeforeDelete", local_var_params["validate_deal_stage_usages_before_delete"])) # noqa: E501 header_params = dict(local_var_params.get("_headers", {})) diff --git a/hubspot/crm/pipelines/api_client.py b/hubspot/crm/pipelines/api_client.py index e3f87a82..2a51e949 100644 --- a/hubspot/crm/pipelines/api_client.py +++ b/hubspot/crm/pipelines/api_client.py @@ -1,6 +1,6 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 diff --git a/hubspot/crm/pipelines/configuration.py b/hubspot/crm/pipelines/configuration.py index 20f2c882..a2a7fb9f 100644 --- a/hubspot/crm/pipelines/configuration.py +++ b/hubspot/crm/pipelines/configuration.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 diff --git a/hubspot/crm/pipelines/exceptions.py b/hubspot/crm/pipelines/exceptions.py index 533ba8c3..624be7ca 100644 --- a/hubspot/crm/pipelines/exceptions.py +++ b/hubspot/crm/pipelines/exceptions.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 diff --git a/hubspot/crm/pipelines/models/__init__.py b/hubspot/crm/pipelines/models/__init__.py index 08f11f57..babe87b5 100644 --- a/hubspot/crm/pipelines/models/__init__.py +++ b/hubspot/crm/pipelines/models/__init__.py @@ -2,7 +2,7 @@ # flake8: noqa """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 diff --git a/hubspot/crm/pipelines/models/collection_response_pipeline_no_paging.py b/hubspot/crm/pipelines/models/collection_response_pipeline_no_paging.py index d7825ed5..7f648d85 100644 --- a/hubspot/crm/pipelines/models/collection_response_pipeline_no_paging.py +++ b/hubspot/crm/pipelines/models/collection_response_pipeline_no_paging.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 diff --git a/hubspot/crm/pipelines/models/collection_response_pipeline_stage_no_paging.py b/hubspot/crm/pipelines/models/collection_response_pipeline_stage_no_paging.py index aa5eb221..45e90034 100644 --- a/hubspot/crm/pipelines/models/collection_response_pipeline_stage_no_paging.py +++ b/hubspot/crm/pipelines/models/collection_response_pipeline_stage_no_paging.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 diff --git a/hubspot/crm/pipelines/models/collection_response_public_audit_info_no_paging.py b/hubspot/crm/pipelines/models/collection_response_public_audit_info_no_paging.py index f1d817d2..cc0d0be5 100644 --- a/hubspot/crm/pipelines/models/collection_response_public_audit_info_no_paging.py +++ b/hubspot/crm/pipelines/models/collection_response_public_audit_info_no_paging.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 diff --git a/hubspot/crm/pipelines/models/error.py b/hubspot/crm/pipelines/models/error.py index 760a89c3..a2d1520f 100644 --- a/hubspot/crm/pipelines/models/error.py +++ b/hubspot/crm/pipelines/models/error.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 @@ -35,61 +35,82 @@ class Error(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"message": "str", "correlation_id": "str", "category": "str", "sub_category": "str", "errors": "list[ErrorDetail]", "context": "dict[str, list[str]]", "links": "dict[str, str]"} + openapi_types = {"sub_category": "str", "context": "dict[str, list[str]]", "correlation_id": "str", "links": "dict[str, str]", "message": "str", "category": "str", "errors": "list[ErrorDetail]"} - attribute_map = {"message": "message", "correlation_id": "correlationId", "category": "category", "sub_category": "subCategory", "errors": "errors", "context": "context", "links": "links"} + attribute_map = {"sub_category": "subCategory", "context": "context", "correlation_id": "correlationId", "links": "links", "message": "message", "category": "category", "errors": "errors"} - def __init__(self, message=None, correlation_id=None, category=None, sub_category=None, errors=None, context=None, links=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, sub_category=None, context=None, correlation_id=None, links=None, message=None, category=None, errors=None, local_vars_configuration=None): # noqa: E501 """Error - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._message = None - self._correlation_id = None - self._category = None self._sub_category = None - self._errors = None self._context = None + self._correlation_id = None self._links = None + self._message = None + self._category = None + self._errors = None self.discriminator = None - self.message = message - self.correlation_id = correlation_id - self.category = category if sub_category is not None: self.sub_category = sub_category - if errors is not None: - self.errors = errors if context is not None: self.context = context + self.correlation_id = correlation_id if links is not None: self.links = links + self.message = message + self.category = category + if errors is not None: + self.errors = errors @property - def message(self): - """Gets the message of this Error. # noqa: E501 + def sub_category(self): + """Gets the sub_category of this Error. # noqa: E501 - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :return: The message of this Error. # noqa: E501 + :return: The sub_category of this Error. # noqa: E501 :rtype: str """ - return self._message + return self._sub_category - @message.setter - def message(self, message): - """Sets the message of this Error. + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this Error. - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :param message: The message of this Error. # noqa: E501 - :type message: str + :param sub_category: The sub_category of this Error. # noqa: E501 + :type sub_category: str """ - if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - self._message = message + self._sub_category = sub_category + + @property + def context(self): + """Gets the context of this Error. # noqa: E501 + + Context about the error condition # noqa: E501 + + :return: The context of this Error. # noqa: E501 + :rtype: dict[str, list[str]] + """ + return self._context + + @context.setter + def context(self, context): + """Sets the context of this Error. + + Context about the error condition # noqa: E501 + + :param context: The context of this Error. # noqa: E501 + :type context: dict[str, list[str]] + """ + + self._context = context @property def correlation_id(self): @@ -116,6 +137,54 @@ def correlation_id(self, correlation_id): self._correlation_id = correlation_id + @property + def links(self): + """Gets the links of this Error. # noqa: E501 + + A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 + + :return: The links of this Error. # noqa: E501 + :rtype: dict[str, str] + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this Error. + + A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 + + :param links: The links of this Error. # noqa: E501 + :type links: dict[str, str] + """ + + self._links = links + + @property + def message(self): + """Gets the message of this Error. # noqa: E501 + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :return: The message of this Error. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this Error. + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :param message: The message of this Error. # noqa: E501 + :type message: str + """ + if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 + raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 + + self._message = message + @property def category(self): """Gets the category of this Error. # noqa: E501 @@ -141,29 +210,6 @@ def category(self, category): self._category = category - @property - def sub_category(self): - """Gets the sub_category of this Error. # noqa: E501 - - A specific category that contains more specific detail about the error # noqa: E501 - - :return: The sub_category of this Error. # noqa: E501 - :rtype: str - """ - return self._sub_category - - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this Error. - - A specific category that contains more specific detail about the error # noqa: E501 - - :param sub_category: The sub_category of this Error. # noqa: E501 - :type sub_category: str - """ - - self._sub_category = sub_category - @property def errors(self): """Gets the errors of this Error. # noqa: E501 @@ -187,52 +233,6 @@ def errors(self, errors): self._errors = errors - @property - def context(self): - """Gets the context of this Error. # noqa: E501 - - Context about the error condition # noqa: E501 - - :return: The context of this Error. # noqa: E501 - :rtype: dict[str, list[str]] - """ - return self._context - - @context.setter - def context(self, context): - """Sets the context of this Error. - - Context about the error condition # noqa: E501 - - :param context: The context of this Error. # noqa: E501 - :type context: dict[str, list[str]] - """ - - self._context = context - - @property - def links(self): - """Gets the links of this Error. # noqa: E501 - - A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 - - :return: The links of this Error. # noqa: E501 - :rtype: dict[str, str] - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this Error. - - A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 - - :param links: The links of this Error. # noqa: E501 - :type links: dict[str, str] - """ - - self._links = links - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/pipelines/models/error_detail.py b/hubspot/crm/pipelines/models/error_detail.py index d654c01b..ba662368 100644 --- a/hubspot/crm/pipelines/models/error_detail.py +++ b/hubspot/crm/pipelines/models/error_detail.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 @@ -35,80 +35,55 @@ class ErrorDetail(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"message": "str", "_in": "str", "code": "str", "sub_category": "str", "context": "dict[str, list[str]]"} + openapi_types = {"sub_category": "str", "code": "str", "_in": "str", "context": "dict[str, list[str]]", "message": "str"} - attribute_map = {"message": "message", "_in": "in", "code": "code", "sub_category": "subCategory", "context": "context"} + attribute_map = {"sub_category": "subCategory", "code": "code", "_in": "in", "context": "context", "message": "message"} - def __init__(self, message=None, _in=None, code=None, sub_category=None, context=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, sub_category=None, code=None, _in=None, context=None, message=None, local_vars_configuration=None): # noqa: E501 """ErrorDetail - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._message = None - self.__in = None - self._code = None self._sub_category = None + self._code = None + self.__in = None self._context = None + self._message = None self.discriminator = None - self.message = message - if _in is not None: - self._in = _in - if code is not None: - self.code = code if sub_category is not None: self.sub_category = sub_category + if code is not None: + self.code = code + if _in is not None: + self._in = _in if context is not None: self.context = context + self.message = message @property - def message(self): - """Gets the message of this ErrorDetail. # noqa: E501 - - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 - - :return: The message of this ErrorDetail. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this ErrorDetail. - - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 - - :param message: The message of this ErrorDetail. # noqa: E501 - :type message: str - """ - if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - - self._message = message - - @property - def _in(self): - """Gets the _in of this ErrorDetail. # noqa: E501 + def sub_category(self): + """Gets the sub_category of this ErrorDetail. # noqa: E501 - The name of the field or parameter in which the error was found. # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :return: The _in of this ErrorDetail. # noqa: E501 + :return: The sub_category of this ErrorDetail. # noqa: E501 :rtype: str """ - return self.__in + return self._sub_category - @_in.setter - def _in(self, _in): - """Sets the _in of this ErrorDetail. + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this ErrorDetail. - The name of the field or parameter in which the error was found. # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :param _in: The _in of this ErrorDetail. # noqa: E501 - :type _in: str + :param sub_category: The sub_category of this ErrorDetail. # noqa: E501 + :type sub_category: str """ - self.__in = _in + self._sub_category = sub_category @property def code(self): @@ -134,27 +109,27 @@ def code(self, code): self._code = code @property - def sub_category(self): - """Gets the sub_category of this ErrorDetail. # noqa: E501 + def _in(self): + """Gets the _in of this ErrorDetail. # noqa: E501 - A specific category that contains more specific detail about the error # noqa: E501 + The name of the field or parameter in which the error was found. # noqa: E501 - :return: The sub_category of this ErrorDetail. # noqa: E501 + :return: The _in of this ErrorDetail. # noqa: E501 :rtype: str """ - return self._sub_category + return self.__in - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this ErrorDetail. + @_in.setter + def _in(self, _in): + """Sets the _in of this ErrorDetail. - A specific category that contains more specific detail about the error # noqa: E501 + The name of the field or parameter in which the error was found. # noqa: E501 - :param sub_category: The sub_category of this ErrorDetail. # noqa: E501 - :type sub_category: str + :param _in: The _in of this ErrorDetail. # noqa: E501 + :type _in: str """ - self._sub_category = sub_category + self.__in = _in @property def context(self): @@ -179,6 +154,31 @@ def context(self, context): self._context = context + @property + def message(self): + """Gets the message of this ErrorDetail. # noqa: E501 + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :return: The message of this ErrorDetail. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ErrorDetail. + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :param message: The message of this ErrorDetail. # noqa: E501 + :type message: str + """ + if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 + raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 + + self._message = message + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/pipelines/models/pipeline.py b/hubspot/crm/pipelines/models/pipeline.py index ca24db0d..3651b30f 100644 --- a/hubspot/crm/pipelines/models/pipeline.py +++ b/hubspot/crm/pipelines/models/pipeline.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 @@ -36,77 +36,125 @@ class Pipeline(object): and the value is json key in definition. """ openapi_types = { - "label": "str", - "display_order": "int", - "id": "str", - "stages": "list[PipelineStage]", "created_at": "datetime", "archived_at": "datetime", - "updated_at": "datetime", "archived": "bool", + "display_order": "int", + "stages": "list[PipelineStage]", + "label": "str", + "id": "str", + "updated_at": "datetime", } attribute_map = { - "label": "label", - "display_order": "displayOrder", - "id": "id", - "stages": "stages", "created_at": "createdAt", "archived_at": "archivedAt", - "updated_at": "updatedAt", "archived": "archived", + "display_order": "displayOrder", + "stages": "stages", + "label": "label", + "id": "id", + "updated_at": "updatedAt", } - def __init__(self, label=None, display_order=None, id=None, stages=None, created_at=None, archived_at=None, updated_at=None, archived=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, created_at=None, archived_at=None, archived=None, display_order=None, stages=None, label=None, id=None, updated_at=None, local_vars_configuration=None): # noqa: E501 """Pipeline - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._label = None - self._display_order = None - self._id = None - self._stages = None self._created_at = None self._archived_at = None - self._updated_at = None self._archived = None + self._display_order = None + self._stages = None + self._label = None + self._id = None + self._updated_at = None self.discriminator = None - self.label = label - self.display_order = display_order - self.id = id - self.stages = stages self.created_at = created_at if archived_at is not None: self.archived_at = archived_at - self.updated_at = updated_at self.archived = archived + self.display_order = display_order + self.stages = stages + self.label = label + self.id = id + self.updated_at = updated_at @property - def label(self): - """Gets the label of this Pipeline. # noqa: E501 + def created_at(self): + """Gets the created_at of this Pipeline. # noqa: E501 - A unique label used to organize pipelines in HubSpot's UI # noqa: E501 + The date the pipeline was created. The default pipelines will have createdAt = 0. # noqa: E501 - :return: The label of this Pipeline. # noqa: E501 - :rtype: str + :return: The created_at of this Pipeline. # noqa: E501 + :rtype: datetime """ - return self._label + return self._created_at - @label.setter - def label(self, label): - """Sets the label of this Pipeline. + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this Pipeline. - A unique label used to organize pipelines in HubSpot's UI # noqa: E501 + The date the pipeline was created. The default pipelines will have createdAt = 0. # noqa: E501 - :param label: The label of this Pipeline. # noqa: E501 - :type label: str + :param created_at: The created_at of this Pipeline. # noqa: E501 + :type created_at: datetime """ - if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 - raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 - self._label = label + self._created_at = created_at + + @property + def archived_at(self): + """Gets the archived_at of this Pipeline. # noqa: E501 + + The date the pipeline was archived. `archivedAt` will only be present if the pipeline is archived. # noqa: E501 + + :return: The archived_at of this Pipeline. # noqa: E501 + :rtype: datetime + """ + return self._archived_at + + @archived_at.setter + def archived_at(self, archived_at): + """Sets the archived_at of this Pipeline. + + The date the pipeline was archived. `archivedAt` will only be present if the pipeline is archived. # noqa: E501 + + :param archived_at: The archived_at of this Pipeline. # noqa: E501 + :type archived_at: datetime + """ + + self._archived_at = archived_at + + @property + def archived(self): + """Gets the archived of this Pipeline. # noqa: E501 + + Whether the pipeline is archived. # noqa: E501 + + :return: The archived of this Pipeline. # noqa: E501 + :rtype: bool + """ + return self._archived + + @archived.setter + def archived(self, archived): + """Sets the archived of this Pipeline. + + Whether the pipeline is archived. # noqa: E501 + + :param archived: The archived of this Pipeline. # noqa: E501 + :type archived: bool + """ + if self.local_vars_configuration.client_side_validation and archived is None: # noqa: E501 + raise ValueError("Invalid value for `archived`, must not be `None`") # noqa: E501 + + self._archived = archived @property def display_order(self): @@ -133,31 +181,6 @@ def display_order(self, display_order): self._display_order = display_order - @property - def id(self): - """Gets the id of this Pipeline. # noqa: E501 - - A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline. # noqa: E501 - - :return: The id of this Pipeline. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this Pipeline. - - A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline. # noqa: E501 - - :param id: The id of this Pipeline. # noqa: E501 - :type id: str - """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - @property def stages(self): """Gets the stages of this Pipeline. # noqa: E501 @@ -184,52 +207,54 @@ def stages(self, stages): self._stages = stages @property - def created_at(self): - """Gets the created_at of this Pipeline. # noqa: E501 + def label(self): + """Gets the label of this Pipeline. # noqa: E501 - The date the pipeline was created. The default pipelines will have createdAt = 0. # noqa: E501 + A unique label used to organize pipelines in HubSpot's UI # noqa: E501 - :return: The created_at of this Pipeline. # noqa: E501 - :rtype: datetime + :return: The label of this Pipeline. # noqa: E501 + :rtype: str """ - return self._created_at + return self._label - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this Pipeline. + @label.setter + def label(self, label): + """Sets the label of this Pipeline. - The date the pipeline was created. The default pipelines will have createdAt = 0. # noqa: E501 + A unique label used to organize pipelines in HubSpot's UI # noqa: E501 - :param created_at: The created_at of this Pipeline. # noqa: E501 - :type created_at: datetime + :param label: The label of this Pipeline. # noqa: E501 + :type label: str """ - if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 - raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 + raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 - self._created_at = created_at + self._label = label @property - def archived_at(self): - """Gets the archived_at of this Pipeline. # noqa: E501 + def id(self): + """Gets the id of this Pipeline. # noqa: E501 - The date the pipeline was archived. `archivedAt` will only be present if the pipeline is archived. # noqa: E501 + A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline. # noqa: E501 - :return: The archived_at of this Pipeline. # noqa: E501 - :rtype: datetime + :return: The id of this Pipeline. # noqa: E501 + :rtype: str """ - return self._archived_at + return self._id - @archived_at.setter - def archived_at(self, archived_at): - """Sets the archived_at of this Pipeline. + @id.setter + def id(self, id): + """Sets the id of this Pipeline. - The date the pipeline was archived. `archivedAt` will only be present if the pipeline is archived. # noqa: E501 + A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline. # noqa: E501 - :param archived_at: The archived_at of this Pipeline. # noqa: E501 - :type archived_at: datetime + :param id: The id of this Pipeline. # noqa: E501 + :type id: str """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - self._archived_at = archived_at + self._id = id @property def updated_at(self): @@ -256,31 +281,6 @@ def updated_at(self, updated_at): self._updated_at = updated_at - @property - def archived(self): - """Gets the archived of this Pipeline. # noqa: E501 - - Whether the pipeline is archived. # noqa: E501 - - :return: The archived of this Pipeline. # noqa: E501 - :rtype: bool - """ - return self._archived - - @archived.setter - def archived(self, archived): - """Sets the archived of this Pipeline. - - Whether the pipeline is archived. # noqa: E501 - - :param archived: The archived of this Pipeline. # noqa: E501 - :type archived: bool - """ - if self.local_vars_configuration.client_side_validation and archived is None: # noqa: E501 - raise ValueError("Invalid value for `archived`, must not be `None`") # noqa: E501 - - self._archived = archived - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/pipelines/models/pipeline_input.py b/hubspot/crm/pipelines/models/pipeline_input.py index e32cc219..d6dea816 100644 --- a/hubspot/crm/pipelines/models/pipeline_input.py +++ b/hubspot/crm/pipelines/models/pipeline_input.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 @@ -35,49 +35,24 @@ class PipelineInput(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"label": "str", "display_order": "int", "stages": "list[PipelineStageInput]"} + openapi_types = {"display_order": "int", "stages": "list[PipelineStageInput]", "label": "str"} - attribute_map = {"label": "label", "display_order": "displayOrder", "stages": "stages"} + attribute_map = {"display_order": "displayOrder", "stages": "stages", "label": "label"} - def __init__(self, label=None, display_order=None, stages=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, display_order=None, stages=None, label=None, local_vars_configuration=None): # noqa: E501 """PipelineInput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._label = None self._display_order = None self._stages = None + self._label = None self.discriminator = None - self.label = label self.display_order = display_order self.stages = stages - - @property - def label(self): - """Gets the label of this PipelineInput. # noqa: E501 - - A unique label used to organize pipelines in HubSpot's UI # noqa: E501 - - :return: The label of this PipelineInput. # noqa: E501 - :rtype: str - """ - return self._label - - @label.setter - def label(self, label): - """Sets the label of this PipelineInput. - - A unique label used to organize pipelines in HubSpot's UI # noqa: E501 - - :param label: The label of this PipelineInput. # noqa: E501 - :type label: str - """ - if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 - raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 - - self._label = label + self.label = label @property def display_order(self): @@ -129,6 +104,31 @@ def stages(self, stages): self._stages = stages + @property + def label(self): + """Gets the label of this PipelineInput. # noqa: E501 + + A unique label used to organize pipelines in HubSpot's UI # noqa: E501 + + :return: The label of this PipelineInput. # noqa: E501 + :rtype: str + """ + return self._label + + @label.setter + def label(self, label): + """Sets the label of this PipelineInput. + + A unique label used to organize pipelines in HubSpot's UI # noqa: E501 + + :param label: The label of this PipelineInput. # noqa: E501 + :type label: str + """ + if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 + raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 + + self._label = label + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/pipelines/models/pipeline_patch_input.py b/hubspot/crm/pipelines/models/pipeline_patch_input.py index f17f0102..ce61753f 100644 --- a/hubspot/crm/pipelines/models/pipeline_patch_input.py +++ b/hubspot/crm/pipelines/models/pipeline_patch_input.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 @@ -35,50 +35,50 @@ class PipelinePatchInput(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"label": "str", "display_order": "int", "archived": "bool"} + openapi_types = {"archived": "bool", "display_order": "int", "label": "str"} - attribute_map = {"label": "label", "display_order": "displayOrder", "archived": "archived"} + attribute_map = {"archived": "archived", "display_order": "displayOrder", "label": "label"} - def __init__(self, label=None, display_order=None, archived=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, archived=None, display_order=None, label=None, local_vars_configuration=None): # noqa: E501 """PipelinePatchInput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._label = None - self._display_order = None self._archived = None + self._display_order = None + self._label = None self.discriminator = None - if label is not None: - self.label = label - if display_order is not None: - self.display_order = display_order if archived is not None: self.archived = archived + if display_order is not None: + self.display_order = display_order + if label is not None: + self.label = label @property - def label(self): - """Gets the label of this PipelinePatchInput. # noqa: E501 + def archived(self): + """Gets the archived of this PipelinePatchInput. # noqa: E501 - A unique label used to organize pipelines in HubSpot's UI # noqa: E501 + Whether the pipeline is archived. This property should only be provided when restoring an archived pipeline. If it's provided in any other call, the request will fail and a `400 Bad Request` will be returned. # noqa: E501 - :return: The label of this PipelinePatchInput. # noqa: E501 - :rtype: str + :return: The archived of this PipelinePatchInput. # noqa: E501 + :rtype: bool """ - return self._label + return self._archived - @label.setter - def label(self, label): - """Sets the label of this PipelinePatchInput. + @archived.setter + def archived(self, archived): + """Sets the archived of this PipelinePatchInput. - A unique label used to organize pipelines in HubSpot's UI # noqa: E501 + Whether the pipeline is archived. This property should only be provided when restoring an archived pipeline. If it's provided in any other call, the request will fail and a `400 Bad Request` will be returned. # noqa: E501 - :param label: The label of this PipelinePatchInput. # noqa: E501 - :type label: str + :param archived: The archived of this PipelinePatchInput. # noqa: E501 + :type archived: bool """ - self._label = label + self._archived = archived @property def display_order(self): @@ -104,27 +104,27 @@ def display_order(self, display_order): self._display_order = display_order @property - def archived(self): - """Gets the archived of this PipelinePatchInput. # noqa: E501 + def label(self): + """Gets the label of this PipelinePatchInput. # noqa: E501 - Whether the pipeline is archived. This property should only be provided when restoring an archived pipeline. If it's provided in any other call, the request will fail and a `400 Bad Request` will be returned. # noqa: E501 + A unique label used to organize pipelines in HubSpot's UI # noqa: E501 - :return: The archived of this PipelinePatchInput. # noqa: E501 - :rtype: bool + :return: The label of this PipelinePatchInput. # noqa: E501 + :rtype: str """ - return self._archived + return self._label - @archived.setter - def archived(self, archived): - """Sets the archived of this PipelinePatchInput. + @label.setter + def label(self, label): + """Sets the label of this PipelinePatchInput. - Whether the pipeline is archived. This property should only be provided when restoring an archived pipeline. If it's provided in any other call, the request will fail and a `400 Bad Request` will be returned. # noqa: E501 + A unique label used to organize pipelines in HubSpot's UI # noqa: E501 - :param archived: The archived of this PipelinePatchInput. # noqa: E501 - :type archived: bool + :param label: The label of this PipelinePatchInput. # noqa: E501 + :type label: str """ - self._archived = archived + self._label = label def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/pipelines/models/pipeline_stage.py b/hubspot/crm/pipelines/models/pipeline_stage.py index 34a9dfed..46dc0796 100644 --- a/hubspot/crm/pipelines/models/pipeline_stage.py +++ b/hubspot/crm/pipelines/models/pipeline_stage.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 @@ -36,102 +36,132 @@ class PipelineStage(object): and the value is json key in definition. """ openapi_types = { - "label": "str", - "display_order": "int", - "metadata": "dict[str, str]", - "id": "str", "created_at": "datetime", "archived_at": "datetime", - "updated_at": "datetime", "archived": "bool", + "metadata": "dict[str, str]", + "display_order": "int", + "write_permissions": "str", + "label": "str", + "id": "str", + "updated_at": "datetime", } attribute_map = { - "label": "label", - "display_order": "displayOrder", - "metadata": "metadata", - "id": "id", "created_at": "createdAt", "archived_at": "archivedAt", - "updated_at": "updatedAt", "archived": "archived", + "metadata": "metadata", + "display_order": "displayOrder", + "write_permissions": "writePermissions", + "label": "label", + "id": "id", + "updated_at": "updatedAt", } - def __init__(self, label=None, display_order=None, metadata=None, id=None, created_at=None, archived_at=None, updated_at=None, archived=None, local_vars_configuration=None): # noqa: E501 + def __init__( + self, created_at=None, archived_at=None, archived=None, metadata=None, display_order=None, write_permissions=None, label=None, id=None, updated_at=None, local_vars_configuration=None + ): # noqa: E501 """PipelineStage - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._label = None - self._display_order = None - self._metadata = None - self._id = None self._created_at = None self._archived_at = None - self._updated_at = None self._archived = None + self._metadata = None + self._display_order = None + self._write_permissions = None + self._label = None + self._id = None + self._updated_at = None self.discriminator = None - self.label = label - self.display_order = display_order - self.metadata = metadata - self.id = id self.created_at = created_at if archived_at is not None: self.archived_at = archived_at - self.updated_at = updated_at self.archived = archived + self.metadata = metadata + self.display_order = display_order + if write_permissions is not None: + self.write_permissions = write_permissions + self.label = label + self.id = id + self.updated_at = updated_at @property - def label(self): - """Gets the label of this PipelineStage. # noqa: E501 + def created_at(self): + """Gets the created_at of this PipelineStage. # noqa: E501 - A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline. # noqa: E501 + The date the pipeline stage was created. The stages on default pipelines will have createdAt = 0. # noqa: E501 - :return: The label of this PipelineStage. # noqa: E501 - :rtype: str + :return: The created_at of this PipelineStage. # noqa: E501 + :rtype: datetime """ - return self._label + return self._created_at - @label.setter - def label(self, label): - """Sets the label of this PipelineStage. + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this PipelineStage. - A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline. # noqa: E501 + The date the pipeline stage was created. The stages on default pipelines will have createdAt = 0. # noqa: E501 - :param label: The label of this PipelineStage. # noqa: E501 - :type label: str + :param created_at: The created_at of this PipelineStage. # noqa: E501 + :type created_at: datetime """ - if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 - raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 - self._label = label + self._created_at = created_at @property - def display_order(self): - """Gets the display_order of this PipelineStage. # noqa: E501 + def archived_at(self): + """Gets the archived_at of this PipelineStage. # noqa: E501 - The order for displaying this pipeline stage. If two pipeline stages have a matching `displayOrder`, they will be sorted alphabetically by label. # noqa: E501 + The date the pipeline was archived. `archivedAt` will only be present if the pipeline is archived. # noqa: E501 - :return: The display_order of this PipelineStage. # noqa: E501 - :rtype: int + :return: The archived_at of this PipelineStage. # noqa: E501 + :rtype: datetime """ - return self._display_order + return self._archived_at - @display_order.setter - def display_order(self, display_order): - """Sets the display_order of this PipelineStage. + @archived_at.setter + def archived_at(self, archived_at): + """Sets the archived_at of this PipelineStage. - The order for displaying this pipeline stage. If two pipeline stages have a matching `displayOrder`, they will be sorted alphabetically by label. # noqa: E501 + The date the pipeline was archived. `archivedAt` will only be present if the pipeline is archived. # noqa: E501 - :param display_order: The display_order of this PipelineStage. # noqa: E501 - :type display_order: int + :param archived_at: The archived_at of this PipelineStage. # noqa: E501 + :type archived_at: datetime """ - if self.local_vars_configuration.client_side_validation and display_order is None: # noqa: E501 - raise ValueError("Invalid value for `display_order`, must not be `None`") # noqa: E501 - self._display_order = display_order + self._archived_at = archived_at + + @property + def archived(self): + """Gets the archived of this PipelineStage. # noqa: E501 + + Whether the pipeline is archived. # noqa: E501 + + :return: The archived of this PipelineStage. # noqa: E501 + :rtype: bool + """ + return self._archived + + @archived.setter + def archived(self, archived): + """Sets the archived of this PipelineStage. + + Whether the pipeline is archived. # noqa: E501 + + :param archived: The archived of this PipelineStage. # noqa: E501 + :type archived: bool + """ + if self.local_vars_configuration.client_side_validation and archived is None: # noqa: E501 + raise ValueError("Invalid value for `archived`, must not be `None`") # noqa: E501 + + self._archived = archived @property def metadata(self): @@ -159,77 +189,103 @@ def metadata(self, metadata): self._metadata = metadata @property - def id(self): - """Gets the id of this PipelineStage. # noqa: E501 + def display_order(self): + """Gets the display_order of this PipelineStage. # noqa: E501 - A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline stage. # noqa: E501 + The order for displaying this pipeline stage. If two pipeline stages have a matching `displayOrder`, they will be sorted alphabetically by label. # noqa: E501 - :return: The id of this PipelineStage. # noqa: E501 + :return: The display_order of this PipelineStage. # noqa: E501 + :rtype: int + """ + return self._display_order + + @display_order.setter + def display_order(self, display_order): + """Sets the display_order of this PipelineStage. + + The order for displaying this pipeline stage. If two pipeline stages have a matching `displayOrder`, they will be sorted alphabetically by label. # noqa: E501 + + :param display_order: The display_order of this PipelineStage. # noqa: E501 + :type display_order: int + """ + if self.local_vars_configuration.client_side_validation and display_order is None: # noqa: E501 + raise ValueError("Invalid value for `display_order`, must not be `None`") # noqa: E501 + + self._display_order = display_order + + @property + def write_permissions(self): + """Gets the write_permissions of this PipelineStage. # noqa: E501 + + + :return: The write_permissions of this PipelineStage. # noqa: E501 :rtype: str """ - return self._id + return self._write_permissions - @id.setter - def id(self, id): - """Sets the id of this PipelineStage. + @write_permissions.setter + def write_permissions(self, write_permissions): + """Sets the write_permissions of this PipelineStage. - A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline stage. # noqa: E501 - :param id: The id of this PipelineStage. # noqa: E501 - :type id: str + :param write_permissions: The write_permissions of this PipelineStage. # noqa: E501 + :type write_permissions: str """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + allowed_values = ["CRM_PERMISSIONS_ENFORCEMENT", "READ_ONLY", "INTERNAL_ONLY"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and write_permissions not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `write_permissions` ({0}), must be one of {1}".format(write_permissions, allowed_values)) # noqa: E501 - self._id = id + self._write_permissions = write_permissions @property - def created_at(self): - """Gets the created_at of this PipelineStage. # noqa: E501 + def label(self): + """Gets the label of this PipelineStage. # noqa: E501 - The date the pipeline stage was created. The stages on default pipelines will have createdAt = 0. # noqa: E501 + A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline. # noqa: E501 - :return: The created_at of this PipelineStage. # noqa: E501 - :rtype: datetime + :return: The label of this PipelineStage. # noqa: E501 + :rtype: str """ - return self._created_at + return self._label - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this PipelineStage. + @label.setter + def label(self, label): + """Sets the label of this PipelineStage. - The date the pipeline stage was created. The stages on default pipelines will have createdAt = 0. # noqa: E501 + A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline. # noqa: E501 - :param created_at: The created_at of this PipelineStage. # noqa: E501 - :type created_at: datetime + :param label: The label of this PipelineStage. # noqa: E501 + :type label: str """ - if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 - raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 + raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 - self._created_at = created_at + self._label = label @property - def archived_at(self): - """Gets the archived_at of this PipelineStage. # noqa: E501 + def id(self): + """Gets the id of this PipelineStage. # noqa: E501 - The date the pipeline was archived. `archivedAt` will only be present if the pipeline is archived. # noqa: E501 + A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline stage. # noqa: E501 - :return: The archived_at of this PipelineStage. # noqa: E501 - :rtype: datetime + :return: The id of this PipelineStage. # noqa: E501 + :rtype: str """ - return self._archived_at + return self._id - @archived_at.setter - def archived_at(self, archived_at): - """Sets the archived_at of this PipelineStage. + @id.setter + def id(self, id): + """Sets the id of this PipelineStage. - The date the pipeline was archived. `archivedAt` will only be present if the pipeline is archived. # noqa: E501 + A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline stage. # noqa: E501 - :param archived_at: The archived_at of this PipelineStage. # noqa: E501 - :type archived_at: datetime + :param id: The id of this PipelineStage. # noqa: E501 + :type id: str """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - self._archived_at = archived_at + self._id = id @property def updated_at(self): @@ -256,31 +312,6 @@ def updated_at(self, updated_at): self._updated_at = updated_at - @property - def archived(self): - """Gets the archived of this PipelineStage. # noqa: E501 - - Whether the pipeline is archived. # noqa: E501 - - :return: The archived of this PipelineStage. # noqa: E501 - :rtype: bool - """ - return self._archived - - @archived.setter - def archived(self, archived): - """Sets the archived of this PipelineStage. - - Whether the pipeline is archived. # noqa: E501 - - :param archived: The archived of this PipelineStage. # noqa: E501 - :type archived: bool - """ - if self.local_vars_configuration.client_side_validation and archived is None: # noqa: E501 - raise ValueError("Invalid value for `archived`, must not be `None`") # noqa: E501 - - self._archived = archived - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/pipelines/models/pipeline_stage_input.py b/hubspot/crm/pipelines/models/pipeline_stage_input.py index ff748987..368f5780 100644 --- a/hubspot/crm/pipelines/models/pipeline_stage_input.py +++ b/hubspot/crm/pipelines/models/pipeline_stage_input.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 @@ -35,49 +35,49 @@ class PipelineStageInput(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"label": "str", "display_order": "int", "metadata": "dict[str, str]"} + openapi_types = {"metadata": "dict[str, str]", "display_order": "int", "label": "str"} - attribute_map = {"label": "label", "display_order": "displayOrder", "metadata": "metadata"} + attribute_map = {"metadata": "metadata", "display_order": "displayOrder", "label": "label"} - def __init__(self, label=None, display_order=None, metadata=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, metadata=None, display_order=None, label=None, local_vars_configuration=None): # noqa: E501 """PipelineStageInput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._label = None - self._display_order = None self._metadata = None + self._display_order = None + self._label = None self.discriminator = None - self.label = label - self.display_order = display_order self.metadata = metadata + self.display_order = display_order + self.label = label @property - def label(self): - """Gets the label of this PipelineStageInput. # noqa: E501 + def metadata(self): + """Gets the metadata of this PipelineStageInput. # noqa: E501 - A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline. # noqa: E501 + A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`. # noqa: E501 - :return: The label of this PipelineStageInput. # noqa: E501 - :rtype: str + :return: The metadata of this PipelineStageInput. # noqa: E501 + :rtype: dict[str, str] """ - return self._label + return self._metadata - @label.setter - def label(self, label): - """Sets the label of this PipelineStageInput. + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this PipelineStageInput. - A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline. # noqa: E501 + A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`. # noqa: E501 - :param label: The label of this PipelineStageInput. # noqa: E501 - :type label: str + :param metadata: The metadata of this PipelineStageInput. # noqa: E501 + :type metadata: dict[str, str] """ - if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 - raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and metadata is None: # noqa: E501 + raise ValueError("Invalid value for `metadata`, must not be `None`") # noqa: E501 - self._label = label + self._metadata = metadata @property def display_order(self): @@ -105,29 +105,29 @@ def display_order(self, display_order): self._display_order = display_order @property - def metadata(self): - """Gets the metadata of this PipelineStageInput. # noqa: E501 + def label(self): + """Gets the label of this PipelineStageInput. # noqa: E501 - A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`. # noqa: E501 + A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline. # noqa: E501 - :return: The metadata of this PipelineStageInput. # noqa: E501 - :rtype: dict[str, str] + :return: The label of this PipelineStageInput. # noqa: E501 + :rtype: str """ - return self._metadata + return self._label - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this PipelineStageInput. + @label.setter + def label(self, label): + """Sets the label of this PipelineStageInput. - A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`. # noqa: E501 + A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline. # noqa: E501 - :param metadata: The metadata of this PipelineStageInput. # noqa: E501 - :type metadata: dict[str, str] + :param label: The label of this PipelineStageInput. # noqa: E501 + :type label: str """ - if self.local_vars_configuration.client_side_validation and metadata is None: # noqa: E501 - raise ValueError("Invalid value for `metadata`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 + raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 - self._metadata = metadata + self._label = label def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/pipelines/models/pipeline_stage_patch_input.py b/hubspot/crm/pipelines/models/pipeline_stage_patch_input.py index 2a7e788e..ef0cf474 100644 --- a/hubspot/crm/pipelines/models/pipeline_stage_patch_input.py +++ b/hubspot/crm/pipelines/models/pipeline_stage_patch_input.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 @@ -35,52 +35,29 @@ class PipelineStagePatchInput(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"label": "str", "archived": "bool", "display_order": "int", "metadata": "dict[str, str]"} + openapi_types = {"archived": "bool", "metadata": "dict[str, str]", "display_order": "int", "label": "str"} - attribute_map = {"label": "label", "archived": "archived", "display_order": "displayOrder", "metadata": "metadata"} + attribute_map = {"archived": "archived", "metadata": "metadata", "display_order": "displayOrder", "label": "label"} - def __init__(self, label=None, archived=None, display_order=None, metadata=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, archived=None, metadata=None, display_order=None, label=None, local_vars_configuration=None): # noqa: E501 """PipelineStagePatchInput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._label = None self._archived = None - self._display_order = None self._metadata = None + self._display_order = None + self._label = None self.discriminator = None - if label is not None: - self.label = label if archived is not None: self.archived = archived + self.metadata = metadata if display_order is not None: self.display_order = display_order - self.metadata = metadata - - @property - def label(self): - """Gets the label of this PipelineStagePatchInput. # noqa: E501 - - A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline. # noqa: E501 - - :return: The label of this PipelineStagePatchInput. # noqa: E501 - :rtype: str - """ - return self._label - - @label.setter - def label(self, label): - """Sets the label of this PipelineStagePatchInput. - - A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline. # noqa: E501 - - :param label: The label of this PipelineStagePatchInput. # noqa: E501 - :type label: str - """ - - self._label = label + if label is not None: + self.label = label @property def archived(self): @@ -105,6 +82,31 @@ def archived(self, archived): self._archived = archived + @property + def metadata(self): + """Gets the metadata of this PipelineStagePatchInput. # noqa: E501 + + A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`. # noqa: E501 + + :return: The metadata of this PipelineStagePatchInput. # noqa: E501 + :rtype: dict[str, str] + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this PipelineStagePatchInput. + + A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`. # noqa: E501 + + :param metadata: The metadata of this PipelineStagePatchInput. # noqa: E501 + :type metadata: dict[str, str] + """ + if self.local_vars_configuration.client_side_validation and metadata is None: # noqa: E501 + raise ValueError("Invalid value for `metadata`, must not be `None`") # noqa: E501 + + self._metadata = metadata + @property def display_order(self): """Gets the display_order of this PipelineStagePatchInput. # noqa: E501 @@ -129,29 +131,27 @@ def display_order(self, display_order): self._display_order = display_order @property - def metadata(self): - """Gets the metadata of this PipelineStagePatchInput. # noqa: E501 + def label(self): + """Gets the label of this PipelineStagePatchInput. # noqa: E501 - A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`. # noqa: E501 + A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline. # noqa: E501 - :return: The metadata of this PipelineStagePatchInput. # noqa: E501 - :rtype: dict[str, str] + :return: The label of this PipelineStagePatchInput. # noqa: E501 + :rtype: str """ - return self._metadata + return self._label - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this PipelineStagePatchInput. + @label.setter + def label(self, label): + """Sets the label of this PipelineStagePatchInput. - A JSON object containing properties that are not present on all object pipelines. For `deals` pipelines, the `probability` field is required (`{ \"probability\": 0.5 }`), and represents the likelihood a deal will close. Possible values are between 0.0 and 1.0 in increments of 0.1. For `tickets` pipelines, the `ticketState` field is optional (`{ \"ticketState\": \"OPEN\" }`), and represents whether the ticket remains open or has been closed by a member of your Support team. Possible values are `OPEN` or `CLOSED`. # noqa: E501 + A label used to organize pipeline stages in HubSpot's UI. Each pipeline stage's label must be unique within that pipeline. # noqa: E501 - :param metadata: The metadata of this PipelineStagePatchInput. # noqa: E501 - :type metadata: dict[str, str] + :param label: The label of this PipelineStagePatchInput. # noqa: E501 + :type label: str """ - if self.local_vars_configuration.client_side_validation and metadata is None: # noqa: E501 - raise ValueError("Invalid value for `metadata`, must not be `None`") # noqa: E501 - self._metadata = metadata + self._label = label def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/pipelines/models/public_audit_info.py b/hubspot/crm/pipelines/models/public_audit_info.py index 854ec704..a3855a3e 100644 --- a/hubspot/crm/pipelines/models/public_audit_info.py +++ b/hubspot/crm/pipelines/models/public_audit_info.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 @@ -35,59 +35,36 @@ class PublicAuditInfo(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"portal_id": "int", "identifier": "str", "action": "str", "timestamp": "datetime", "message": "str", "raw_object": "object", "from_user_id": "int"} + openapi_types = {"identifier": "str", "raw_object": "object", "from_user_id": "int", "portal_id": "int", "action": "str", "message": "str", "timestamp": "datetime"} - attribute_map = {"portal_id": "portalId", "identifier": "identifier", "action": "action", "timestamp": "timestamp", "message": "message", "raw_object": "rawObject", "from_user_id": "fromUserId"} + attribute_map = {"identifier": "identifier", "raw_object": "rawObject", "from_user_id": "fromUserId", "portal_id": "portalId", "action": "action", "message": "message", "timestamp": "timestamp"} - def __init__(self, portal_id=None, identifier=None, action=None, timestamp=None, message=None, raw_object=None, from_user_id=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, identifier=None, raw_object=None, from_user_id=None, portal_id=None, action=None, message=None, timestamp=None, local_vars_configuration=None): # noqa: E501 """PublicAuditInfo - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._portal_id = None self._identifier = None - self._action = None - self._timestamp = None - self._message = None self._raw_object = None self._from_user_id = None + self._portal_id = None + self._action = None + self._message = None + self._timestamp = None self.discriminator = None - self.portal_id = portal_id self.identifier = identifier - self.action = action - if timestamp is not None: - self.timestamp = timestamp - if message is not None: - self.message = message if raw_object is not None: self.raw_object = raw_object if from_user_id is not None: self.from_user_id = from_user_id - - @property - def portal_id(self): - """Gets the portal_id of this PublicAuditInfo. # noqa: E501 - - - :return: The portal_id of this PublicAuditInfo. # noqa: E501 - :rtype: int - """ - return self._portal_id - - @portal_id.setter - def portal_id(self, portal_id): - """Sets the portal_id of this PublicAuditInfo. - - - :param portal_id: The portal_id of this PublicAuditInfo. # noqa: E501 - :type portal_id: int - """ - if self.local_vars_configuration.client_side_validation and portal_id is None: # noqa: E501 - raise ValueError("Invalid value for `portal_id`, must not be `None`") # noqa: E501 - - self._portal_id = portal_id + self.portal_id = portal_id + self.action = action + if message is not None: + self.message = message + if timestamp is not None: + self.timestamp = timestamp @property def identifier(self): @@ -112,6 +89,71 @@ def identifier(self, identifier): self._identifier = identifier + @property + def raw_object(self): + """Gets the raw_object of this PublicAuditInfo. # noqa: E501 + + + :return: The raw_object of this PublicAuditInfo. # noqa: E501 + :rtype: object + """ + return self._raw_object + + @raw_object.setter + def raw_object(self, raw_object): + """Sets the raw_object of this PublicAuditInfo. + + + :param raw_object: The raw_object of this PublicAuditInfo. # noqa: E501 + :type raw_object: object + """ + + self._raw_object = raw_object + + @property + def from_user_id(self): + """Gets the from_user_id of this PublicAuditInfo. # noqa: E501 + + + :return: The from_user_id of this PublicAuditInfo. # noqa: E501 + :rtype: int + """ + return self._from_user_id + + @from_user_id.setter + def from_user_id(self, from_user_id): + """Sets the from_user_id of this PublicAuditInfo. + + + :param from_user_id: The from_user_id of this PublicAuditInfo. # noqa: E501 + :type from_user_id: int + """ + + self._from_user_id = from_user_id + + @property + def portal_id(self): + """Gets the portal_id of this PublicAuditInfo. # noqa: E501 + + + :return: The portal_id of this PublicAuditInfo. # noqa: E501 + :rtype: int + """ + return self._portal_id + + @portal_id.setter + def portal_id(self, portal_id): + """Sets the portal_id of this PublicAuditInfo. + + + :param portal_id: The portal_id of this PublicAuditInfo. # noqa: E501 + :type portal_id: int + """ + if self.local_vars_configuration.client_side_validation and portal_id is None: # noqa: E501 + raise ValueError("Invalid value for `portal_id`, must not be `None`") # noqa: E501 + + self._portal_id = portal_id + @property def action(self): """Gets the action of this PublicAuditInfo. # noqa: E501 @@ -135,27 +177,6 @@ def action(self, action): self._action = action - @property - def timestamp(self): - """Gets the timestamp of this PublicAuditInfo. # noqa: E501 - - - :return: The timestamp of this PublicAuditInfo. # noqa: E501 - :rtype: datetime - """ - return self._timestamp - - @timestamp.setter - def timestamp(self, timestamp): - """Sets the timestamp of this PublicAuditInfo. - - - :param timestamp: The timestamp of this PublicAuditInfo. # noqa: E501 - :type timestamp: datetime - """ - - self._timestamp = timestamp - @property def message(self): """Gets the message of this PublicAuditInfo. # noqa: E501 @@ -178,46 +199,25 @@ def message(self, message): self._message = message @property - def raw_object(self): - """Gets the raw_object of this PublicAuditInfo. # noqa: E501 - - - :return: The raw_object of this PublicAuditInfo. # noqa: E501 - :rtype: object - """ - return self._raw_object - - @raw_object.setter - def raw_object(self, raw_object): - """Sets the raw_object of this PublicAuditInfo. - - - :param raw_object: The raw_object of this PublicAuditInfo. # noqa: E501 - :type raw_object: object - """ - - self._raw_object = raw_object - - @property - def from_user_id(self): - """Gets the from_user_id of this PublicAuditInfo. # noqa: E501 + def timestamp(self): + """Gets the timestamp of this PublicAuditInfo. # noqa: E501 - :return: The from_user_id of this PublicAuditInfo. # noqa: E501 - :rtype: int + :return: The timestamp of this PublicAuditInfo. # noqa: E501 + :rtype: datetime """ - return self._from_user_id + return self._timestamp - @from_user_id.setter - def from_user_id(self, from_user_id): - """Sets the from_user_id of this PublicAuditInfo. + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this PublicAuditInfo. - :param from_user_id: The from_user_id of this PublicAuditInfo. # noqa: E501 - :type from_user_id: int + :param timestamp: The timestamp of this PublicAuditInfo. # noqa: E501 + :type timestamp: datetime """ - self._from_user_id = from_user_id + self._timestamp = timestamp def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/pipelines/rest.py b/hubspot/crm/pipelines/rest.py index dee1c1a9..ca76cb4b 100644 --- a/hubspot/crm/pipelines/rest.py +++ b/hubspot/crm/pipelines/rest.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - CRM Pipelines + Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoints that take pipelineId as a parameter, that ID must correspond to an existing, un-archived pipeline. Otherwise the request will fail with a `404 Not Found` response. # noqa: E501 diff --git a/hubspot/crm/properties/models/batch_response_property.py b/hubspot/crm/properties/models/batch_response_property.py index 604ff4ef..d937a967 100644 --- a/hubspot/crm/properties/models/batch_response_property.py +++ b/hubspot/crm/properties/models/batch_response_property.py @@ -35,81 +35,55 @@ class BatchResponseProperty(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"status": "str", "results": "list[ModelProperty]", "requested_at": "datetime", "started_at": "datetime", "completed_at": "datetime", "links": "dict[str, str]"} + openapi_types = {"completed_at": "datetime", "requested_at": "datetime", "started_at": "datetime", "links": "dict[str, str]", "results": "list[ModelProperty]", "status": "str"} - attribute_map = {"status": "status", "results": "results", "requested_at": "requestedAt", "started_at": "startedAt", "completed_at": "completedAt", "links": "links"} + attribute_map = {"completed_at": "completedAt", "requested_at": "requestedAt", "started_at": "startedAt", "links": "links", "results": "results", "status": "status"} - def __init__(self, status=None, results=None, requested_at=None, started_at=None, completed_at=None, links=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, completed_at=None, requested_at=None, started_at=None, links=None, results=None, status=None, local_vars_configuration=None): # noqa: E501 """BatchResponseProperty - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._status = None - self._results = None + self._completed_at = None self._requested_at = None self._started_at = None - self._completed_at = None self._links = None + self._results = None + self._status = None self.discriminator = None - self.status = status - self.results = results + self.completed_at = completed_at if requested_at is not None: self.requested_at = requested_at self.started_at = started_at - self.completed_at = completed_at if links is not None: self.links = links + self.results = results + self.status = status @property - def status(self): - """Gets the status of this BatchResponseProperty. # noqa: E501 - - - :return: The status of this BatchResponseProperty. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this BatchResponseProperty. - - - :param status: The status of this BatchResponseProperty. # noqa: E501 - :type status: str - """ - if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values)) # noqa: E501 - - self._status = status - - @property - def results(self): - """Gets the results of this BatchResponseProperty. # noqa: E501 + def completed_at(self): + """Gets the completed_at of this BatchResponseProperty. # noqa: E501 - :return: The results of this BatchResponseProperty. # noqa: E501 - :rtype: list[ModelProperty] + :return: The completed_at of this BatchResponseProperty. # noqa: E501 + :rtype: datetime """ - return self._results + return self._completed_at - @results.setter - def results(self, results): - """Sets the results of this BatchResponseProperty. + @completed_at.setter + def completed_at(self, completed_at): + """Sets the completed_at of this BatchResponseProperty. - :param results: The results of this BatchResponseProperty. # noqa: E501 - :type results: list[ModelProperty] + :param completed_at: The completed_at of this BatchResponseProperty. # noqa: E501 + :type completed_at: datetime """ - if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501 - raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and completed_at is None: # noqa: E501 + raise ValueError("Invalid value for `completed_at`, must not be `None`") # noqa: E501 - self._results = results + self._completed_at = completed_at @property def requested_at(self): @@ -155,29 +129,6 @@ def started_at(self, started_at): self._started_at = started_at - @property - def completed_at(self): - """Gets the completed_at of this BatchResponseProperty. # noqa: E501 - - - :return: The completed_at of this BatchResponseProperty. # noqa: E501 - :rtype: datetime - """ - return self._completed_at - - @completed_at.setter - def completed_at(self, completed_at): - """Sets the completed_at of this BatchResponseProperty. - - - :param completed_at: The completed_at of this BatchResponseProperty. # noqa: E501 - :type completed_at: datetime - """ - if self.local_vars_configuration.client_side_validation and completed_at is None: # noqa: E501 - raise ValueError("Invalid value for `completed_at`, must not be `None`") # noqa: E501 - - self._completed_at = completed_at - @property def links(self): """Gets the links of this BatchResponseProperty. # noqa: E501 @@ -199,6 +150,55 @@ def links(self, links): self._links = links + @property + def results(self): + """Gets the results of this BatchResponseProperty. # noqa: E501 + + + :return: The results of this BatchResponseProperty. # noqa: E501 + :rtype: list[ModelProperty] + """ + return self._results + + @results.setter + def results(self, results): + """Sets the results of this BatchResponseProperty. + + + :param results: The results of this BatchResponseProperty. # noqa: E501 + :type results: list[ModelProperty] + """ + if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501 + raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 + + self._results = results + + @property + def status(self): + """Gets the status of this BatchResponseProperty. # noqa: E501 + + + :return: The status of this BatchResponseProperty. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this BatchResponseProperty. + + + :param status: The status of this BatchResponseProperty. # noqa: E501 + :type status: str + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + allowed_values = ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values)) # noqa: E501 + + self._status = status + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/properties/models/batch_response_property_with_errors.py b/hubspot/crm/properties/models/batch_response_property_with_errors.py index d66c1f51..aaf2714e 100644 --- a/hubspot/crm/properties/models/batch_response_property_with_errors.py +++ b/hubspot/crm/properties/models/batch_response_property_with_errors.py @@ -36,104 +36,78 @@ class BatchResponsePropertyWithErrors(object): and the value is json key in definition. """ openapi_types = { - "status": "str", - "results": "list[ModelProperty]", + "completed_at": "datetime", "num_errors": "int", - "errors": "list[StandardError]", "requested_at": "datetime", "started_at": "datetime", - "completed_at": "datetime", "links": "dict[str, str]", + "results": "list[ModelProperty]", + "errors": "list[StandardError]", + "status": "str", } attribute_map = { - "status": "status", - "results": "results", + "completed_at": "completedAt", "num_errors": "numErrors", - "errors": "errors", "requested_at": "requestedAt", "started_at": "startedAt", - "completed_at": "completedAt", "links": "links", + "results": "results", + "errors": "errors", + "status": "status", } - def __init__(self, status=None, results=None, num_errors=None, errors=None, requested_at=None, started_at=None, completed_at=None, links=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, completed_at=None, num_errors=None, requested_at=None, started_at=None, links=None, results=None, errors=None, status=None, local_vars_configuration=None): # noqa: E501 """BatchResponsePropertyWithErrors - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._status = None - self._results = None + self._completed_at = None self._num_errors = None - self._errors = None self._requested_at = None self._started_at = None - self._completed_at = None self._links = None + self._results = None + self._errors = None + self._status = None self.discriminator = None - self.status = status - self.results = results + self.completed_at = completed_at if num_errors is not None: self.num_errors = num_errors - if errors is not None: - self.errors = errors if requested_at is not None: self.requested_at = requested_at self.started_at = started_at - self.completed_at = completed_at if links is not None: self.links = links + self.results = results + if errors is not None: + self.errors = errors + self.status = status @property - def status(self): - """Gets the status of this BatchResponsePropertyWithErrors. # noqa: E501 - - - :return: The status of this BatchResponsePropertyWithErrors. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this BatchResponsePropertyWithErrors. - - - :param status: The status of this BatchResponsePropertyWithErrors. # noqa: E501 - :type status: str - """ - if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values)) # noqa: E501 - - self._status = status - - @property - def results(self): - """Gets the results of this BatchResponsePropertyWithErrors. # noqa: E501 + def completed_at(self): + """Gets the completed_at of this BatchResponsePropertyWithErrors. # noqa: E501 - :return: The results of this BatchResponsePropertyWithErrors. # noqa: E501 - :rtype: list[ModelProperty] + :return: The completed_at of this BatchResponsePropertyWithErrors. # noqa: E501 + :rtype: datetime """ - return self._results + return self._completed_at - @results.setter - def results(self, results): - """Sets the results of this BatchResponsePropertyWithErrors. + @completed_at.setter + def completed_at(self, completed_at): + """Sets the completed_at of this BatchResponsePropertyWithErrors. - :param results: The results of this BatchResponsePropertyWithErrors. # noqa: E501 - :type results: list[ModelProperty] + :param completed_at: The completed_at of this BatchResponsePropertyWithErrors. # noqa: E501 + :type completed_at: datetime """ - if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501 - raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and completed_at is None: # noqa: E501 + raise ValueError("Invalid value for `completed_at`, must not be `None`") # noqa: E501 - self._results = results + self._completed_at = completed_at @property def num_errors(self): @@ -156,27 +130,6 @@ def num_errors(self, num_errors): self._num_errors = num_errors - @property - def errors(self): - """Gets the errors of this BatchResponsePropertyWithErrors. # noqa: E501 - - - :return: The errors of this BatchResponsePropertyWithErrors. # noqa: E501 - :rtype: list[StandardError] - """ - return self._errors - - @errors.setter - def errors(self, errors): - """Sets the errors of this BatchResponsePropertyWithErrors. - - - :param errors: The errors of this BatchResponsePropertyWithErrors. # noqa: E501 - :type errors: list[StandardError] - """ - - self._errors = errors - @property def requested_at(self): """Gets the requested_at of this BatchResponsePropertyWithErrors. # noqa: E501 @@ -221,29 +174,6 @@ def started_at(self, started_at): self._started_at = started_at - @property - def completed_at(self): - """Gets the completed_at of this BatchResponsePropertyWithErrors. # noqa: E501 - - - :return: The completed_at of this BatchResponsePropertyWithErrors. # noqa: E501 - :rtype: datetime - """ - return self._completed_at - - @completed_at.setter - def completed_at(self, completed_at): - """Sets the completed_at of this BatchResponsePropertyWithErrors. - - - :param completed_at: The completed_at of this BatchResponsePropertyWithErrors. # noqa: E501 - :type completed_at: datetime - """ - if self.local_vars_configuration.client_side_validation and completed_at is None: # noqa: E501 - raise ValueError("Invalid value for `completed_at`, must not be `None`") # noqa: E501 - - self._completed_at = completed_at - @property def links(self): """Gets the links of this BatchResponsePropertyWithErrors. # noqa: E501 @@ -265,6 +195,76 @@ def links(self, links): self._links = links + @property + def results(self): + """Gets the results of this BatchResponsePropertyWithErrors. # noqa: E501 + + + :return: The results of this BatchResponsePropertyWithErrors. # noqa: E501 + :rtype: list[ModelProperty] + """ + return self._results + + @results.setter + def results(self, results): + """Sets the results of this BatchResponsePropertyWithErrors. + + + :param results: The results of this BatchResponsePropertyWithErrors. # noqa: E501 + :type results: list[ModelProperty] + """ + if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501 + raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 + + self._results = results + + @property + def errors(self): + """Gets the errors of this BatchResponsePropertyWithErrors. # noqa: E501 + + + :return: The errors of this BatchResponsePropertyWithErrors. # noqa: E501 + :rtype: list[StandardError] + """ + return self._errors + + @errors.setter + def errors(self, errors): + """Sets the errors of this BatchResponsePropertyWithErrors. + + + :param errors: The errors of this BatchResponsePropertyWithErrors. # noqa: E501 + :type errors: list[StandardError] + """ + + self._errors = errors + + @property + def status(self): + """Gets the status of this BatchResponsePropertyWithErrors. # noqa: E501 + + + :return: The status of this BatchResponsePropertyWithErrors. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this BatchResponsePropertyWithErrors. + + + :param status: The status of this BatchResponsePropertyWithErrors. # noqa: E501 + :type status: str + """ + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + allowed_values = ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `status` ({0}), must be one of {1}".format(status, allowed_values)) # noqa: E501 + + self._status = status + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/properties/models/error.py b/hubspot/crm/properties/models/error.py index 72409021..937f8cb7 100644 --- a/hubspot/crm/properties/models/error.py +++ b/hubspot/crm/properties/models/error.py @@ -35,61 +35,82 @@ class Error(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"message": "str", "correlation_id": "str", "category": "str", "sub_category": "str", "errors": "list[ErrorDetail]", "context": "dict[str, list[str]]", "links": "dict[str, str]"} + openapi_types = {"sub_category": "str", "context": "dict[str, list[str]]", "correlation_id": "str", "links": "dict[str, str]", "message": "str", "category": "str", "errors": "list[ErrorDetail]"} - attribute_map = {"message": "message", "correlation_id": "correlationId", "category": "category", "sub_category": "subCategory", "errors": "errors", "context": "context", "links": "links"} + attribute_map = {"sub_category": "subCategory", "context": "context", "correlation_id": "correlationId", "links": "links", "message": "message", "category": "category", "errors": "errors"} - def __init__(self, message=None, correlation_id=None, category=None, sub_category=None, errors=None, context=None, links=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, sub_category=None, context=None, correlation_id=None, links=None, message=None, category=None, errors=None, local_vars_configuration=None): # noqa: E501 """Error - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._message = None - self._correlation_id = None - self._category = None self._sub_category = None - self._errors = None self._context = None + self._correlation_id = None self._links = None + self._message = None + self._category = None + self._errors = None self.discriminator = None - self.message = message - self.correlation_id = correlation_id - self.category = category if sub_category is not None: self.sub_category = sub_category - if errors is not None: - self.errors = errors if context is not None: self.context = context + self.correlation_id = correlation_id if links is not None: self.links = links + self.message = message + self.category = category + if errors is not None: + self.errors = errors @property - def message(self): - """Gets the message of this Error. # noqa: E501 + def sub_category(self): + """Gets the sub_category of this Error. # noqa: E501 - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :return: The message of this Error. # noqa: E501 + :return: The sub_category of this Error. # noqa: E501 :rtype: str """ - return self._message + return self._sub_category - @message.setter - def message(self, message): - """Sets the message of this Error. + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this Error. - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :param message: The message of this Error. # noqa: E501 - :type message: str + :param sub_category: The sub_category of this Error. # noqa: E501 + :type sub_category: str """ - if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - self._message = message + self._sub_category = sub_category + + @property + def context(self): + """Gets the context of this Error. # noqa: E501 + + Context about the error condition # noqa: E501 + + :return: The context of this Error. # noqa: E501 + :rtype: dict[str, list[str]] + """ + return self._context + + @context.setter + def context(self, context): + """Sets the context of this Error. + + Context about the error condition # noqa: E501 + + :param context: The context of this Error. # noqa: E501 + :type context: dict[str, list[str]] + """ + + self._context = context @property def correlation_id(self): @@ -116,6 +137,54 @@ def correlation_id(self, correlation_id): self._correlation_id = correlation_id + @property + def links(self): + """Gets the links of this Error. # noqa: E501 + + A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 + + :return: The links of this Error. # noqa: E501 + :rtype: dict[str, str] + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this Error. + + A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 + + :param links: The links of this Error. # noqa: E501 + :type links: dict[str, str] + """ + + self._links = links + + @property + def message(self): + """Gets the message of this Error. # noqa: E501 + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :return: The message of this Error. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this Error. + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :param message: The message of this Error. # noqa: E501 + :type message: str + """ + if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 + raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 + + self._message = message + @property def category(self): """Gets the category of this Error. # noqa: E501 @@ -141,29 +210,6 @@ def category(self, category): self._category = category - @property - def sub_category(self): - """Gets the sub_category of this Error. # noqa: E501 - - A specific category that contains more specific detail about the error # noqa: E501 - - :return: The sub_category of this Error. # noqa: E501 - :rtype: str - """ - return self._sub_category - - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this Error. - - A specific category that contains more specific detail about the error # noqa: E501 - - :param sub_category: The sub_category of this Error. # noqa: E501 - :type sub_category: str - """ - - self._sub_category = sub_category - @property def errors(self): """Gets the errors of this Error. # noqa: E501 @@ -187,52 +233,6 @@ def errors(self, errors): self._errors = errors - @property - def context(self): - """Gets the context of this Error. # noqa: E501 - - Context about the error condition # noqa: E501 - - :return: The context of this Error. # noqa: E501 - :rtype: dict[str, list[str]] - """ - return self._context - - @context.setter - def context(self, context): - """Sets the context of this Error. - - Context about the error condition # noqa: E501 - - :param context: The context of this Error. # noqa: E501 - :type context: dict[str, list[str]] - """ - - self._context = context - - @property - def links(self): - """Gets the links of this Error. # noqa: E501 - - A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 - - :return: The links of this Error. # noqa: E501 - :rtype: dict[str, str] - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this Error. - - A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 - - :param links: The links of this Error. # noqa: E501 - :type links: dict[str, str] - """ - - self._links = links - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/properties/models/error_category.py b/hubspot/crm/properties/models/error_category.py deleted file mode 100644 index 2b37a8d6..00000000 --- a/hubspot/crm/properties/models/error_category.py +++ /dev/null @@ -1,213 +0,0 @@ -# coding: utf-8 - -""" - Properties - - All HubSpot objects store data in default and custom properties. These endpoints provide access to read and modify object properties in HubSpot. # noqa: E501 - - The version of the OpenAPI document: v3 - Generated by: https://openapi-generator.tech -""" - - -try: - from inspect import getfullargspec -except ImportError: - from inspect import getargspec as getfullargspec -import pprint -import re # noqa: F401 -import six - -from hubspot.crm.properties.configuration import Configuration - - -class ErrorCategory(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - openapi_types = {"name": "str", "http_status": "str"} - - attribute_map = {"name": "name", "http_status": "httpStatus"} - - def __init__(self, name=None, http_status=None, local_vars_configuration=None): # noqa: E501 - """ErrorCategory - a model defined in OpenAPI""" # noqa: E501 - if local_vars_configuration is None: - local_vars_configuration = Configuration.get_default_copy() - self.local_vars_configuration = local_vars_configuration - - self._name = None - self._http_status = None - self.discriminator = None - - self.name = name - self.http_status = http_status - - @property - def name(self): - """Gets the name of this ErrorCategory. # noqa: E501 - - - :return: The name of this ErrorCategory. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ErrorCategory. - - - :param name: The name of this ErrorCategory. # noqa: E501 - :type name: str - """ - if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def http_status(self): - """Gets the http_status of this ErrorCategory. # noqa: E501 - - - :return: The http_status of this ErrorCategory. # noqa: E501 - :rtype: str - """ - return self._http_status - - @http_status.setter - def http_status(self, http_status): - """Sets the http_status of this ErrorCategory. - - - :param http_status: The http_status of this ErrorCategory. # noqa: E501 - :type http_status: str - """ - if self.local_vars_configuration.client_side_validation and http_status is None: # noqa: E501 - raise ValueError("Invalid value for `http_status`, must not be `None`") # noqa: E501 - allowed_values = [ - "CONTINUE", - "SWITCHING_PROTOCOLS", - "PROCESSING", - "OK", - "CREATED", - "ACCEPTED", - "NON_AUTHORITATIVE_INFORMATION", - "NO_CONTENT", - "RESET_CONTENT", - "PARTIAL_CONTENT", - "MULTI_STATUS", - "ALREADY_REPORTED", - "IM_USED", - "MULTIPLE_CHOICES", - "MOVED_PERMANENTLY", - "FOUND", - "SEE_OTHER", - "NOT_MODIFIED", - "USE_PROXY", - "TEMPORARY_REDIRECT", - "PERMANENT_REDIRECT", - "BAD_REQUEST", - "UNAUTHORIZED", - "PAYMENT_REQUIRED", - "FORBIDDEN", - "NOT_FOUND", - "METHOD_NOT_ALLOWED", - "NOT_ACCEPTABLE", - "PROXY_AUTHENTICATION_REQUIRED", - "REQUEST_TIMEOUT", - "CONFLICT", - "GONE", - "LENGTH_REQUIRED", - "PRECONDITION_FAILED", - "REQUEST_ENTITY_TOO_LARGE", - "REQUEST_URI_TOO_LONG", - "UNSUPPORTED_MEDIA_TYPE", - "REQUESTED_RANGE_NOT_SATISFIABLE", - "EXPECTATION_FAILED", - "IM_A_TEAPOT", - "MISDIRECTED_REQUEST", - "UNPROCESSABLE_ENTITY", - "LOCKED", - "FAILED_DEPENDENCY", - "UPGRADE_REQUIRED", - "PRECONDITION_REQUIRED", - "TOO_MANY_REQUESTS", - "REQUEST_HEADERS_FIELDS_TOO_LARGE", - "INTERNAL_STALE_SERVICE_DISCOVERY", - "UNAVAILABLE_FOR_LEGAL_REASONS", - "MIGRATION_IN_PROGRESS", - "INTERNAL_SERVER_ERROR", - "NOT_IMPLEMENTED", - "BAD_GATEWAY", - "SERVICE_UNAVAILABLE", - "GATEWAY_TIMEOUT", - "HTTP_VERSION_NOT_SUPPORTED", - "VARIANT_ALSO_NEGOTIATES", - "INSUFFICIENT_STORAGE", - "LOOP_DETECTED", - "NOT_EXTENDED", - "NETWORK_AUTHENTICATION_REQUIRED", - ] # noqa: E501 - if self.local_vars_configuration.client_side_validation and http_status not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `http_status` ({0}), must be one of {1}".format(http_status, allowed_values)) # noqa: E501 - - self._http_status = http_status - - def to_dict(self, serialize=False): - """Returns the model properties as a dict""" - result = {} - - def convert(x): - if hasattr(x, "to_dict"): - args = getfullargspec(x.to_dict).args - if len(args) == 1: - return x.to_dict() - else: - return x.to_dict(serialize) - else: - return x - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - attr = self.attribute_map.get(attr, attr) if serialize else attr - if isinstance(value, list): - result[attr] = list(map(lambda x: convert(x), value)) - elif isinstance(value, dict): - result[attr] = dict(map(lambda item: (item[0], convert(item[1])), value.items())) - else: - result[attr] = convert(value) - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorCategory): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorCategory): - return True - - return self.to_dict() != other.to_dict() diff --git a/hubspot/crm/properties/models/error_detail.py b/hubspot/crm/properties/models/error_detail.py index 7b365b56..a64e789f 100644 --- a/hubspot/crm/properties/models/error_detail.py +++ b/hubspot/crm/properties/models/error_detail.py @@ -35,80 +35,55 @@ class ErrorDetail(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"message": "str", "_in": "str", "code": "str", "sub_category": "str", "context": "dict[str, list[str]]"} + openapi_types = {"sub_category": "str", "code": "str", "_in": "str", "context": "dict[str, list[str]]", "message": "str"} - attribute_map = {"message": "message", "_in": "in", "code": "code", "sub_category": "subCategory", "context": "context"} + attribute_map = {"sub_category": "subCategory", "code": "code", "_in": "in", "context": "context", "message": "message"} - def __init__(self, message=None, _in=None, code=None, sub_category=None, context=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, sub_category=None, code=None, _in=None, context=None, message=None, local_vars_configuration=None): # noqa: E501 """ErrorDetail - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._message = None - self.__in = None - self._code = None self._sub_category = None + self._code = None + self.__in = None self._context = None + self._message = None self.discriminator = None - self.message = message - if _in is not None: - self._in = _in - if code is not None: - self.code = code if sub_category is not None: self.sub_category = sub_category + if code is not None: + self.code = code + if _in is not None: + self._in = _in if context is not None: self.context = context + self.message = message @property - def message(self): - """Gets the message of this ErrorDetail. # noqa: E501 - - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 - - :return: The message of this ErrorDetail. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this ErrorDetail. - - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 - - :param message: The message of this ErrorDetail. # noqa: E501 - :type message: str - """ - if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - - self._message = message - - @property - def _in(self): - """Gets the _in of this ErrorDetail. # noqa: E501 + def sub_category(self): + """Gets the sub_category of this ErrorDetail. # noqa: E501 - The name of the field or parameter in which the error was found. # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :return: The _in of this ErrorDetail. # noqa: E501 + :return: The sub_category of this ErrorDetail. # noqa: E501 :rtype: str """ - return self.__in + return self._sub_category - @_in.setter - def _in(self, _in): - """Sets the _in of this ErrorDetail. + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this ErrorDetail. - The name of the field or parameter in which the error was found. # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :param _in: The _in of this ErrorDetail. # noqa: E501 - :type _in: str + :param sub_category: The sub_category of this ErrorDetail. # noqa: E501 + :type sub_category: str """ - self.__in = _in + self._sub_category = sub_category @property def code(self): @@ -134,27 +109,27 @@ def code(self, code): self._code = code @property - def sub_category(self): - """Gets the sub_category of this ErrorDetail. # noqa: E501 + def _in(self): + """Gets the _in of this ErrorDetail. # noqa: E501 - A specific category that contains more specific detail about the error # noqa: E501 + The name of the field or parameter in which the error was found. # noqa: E501 - :return: The sub_category of this ErrorDetail. # noqa: E501 + :return: The _in of this ErrorDetail. # noqa: E501 :rtype: str """ - return self._sub_category + return self.__in - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this ErrorDetail. + @_in.setter + def _in(self, _in): + """Sets the _in of this ErrorDetail. - A specific category that contains more specific detail about the error # noqa: E501 + The name of the field or parameter in which the error was found. # noqa: E501 - :param sub_category: The sub_category of this ErrorDetail. # noqa: E501 - :type sub_category: str + :param _in: The _in of this ErrorDetail. # noqa: E501 + :type _in: str """ - self._sub_category = sub_category + self.__in = _in @property def context(self): @@ -179,6 +154,31 @@ def context(self, context): self._context = context + @property + def message(self): + """Gets the message of this ErrorDetail. # noqa: E501 + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :return: The message of this ErrorDetail. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ErrorDetail. + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :param message: The message of this ErrorDetail. # noqa: E501 + :type message: str + """ + if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 + raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 + + self._message = message + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/properties/models/model_property.py b/hubspot/crm/properties/models/model_property.py index ed8a1f47..8567ad9d 100644 --- a/hubspot/crm/properties/models/model_property.py +++ b/hubspot/crm/properties/models/model_property.py @@ -36,85 +36,85 @@ class ModelProperty(object): and the value is json key in definition. """ openapi_types = { - "updated_at": "datetime", - "created_at": "datetime", - "archived_at": "datetime", - "name": "str", + "created_user_id": "str", + "hidden": "bool", + "modification_metadata": "PropertyModificationMetadata", + "display_order": "int", + "description": "str", + "show_currency_symbol": "bool", "label": "str", "type": "str", - "field_type": "str", - "description": "str", + "hubspot_defined": "bool", + "form_field": "bool", + "created_at": "datetime", + "archived_at": "datetime", + "archived": "bool", "group_name": "str", + "referenced_object_type": "str", + "name": "str", "options": "list[Option]", - "created_user_id": "str", + "calculation_formula": "str", + "has_unique_value": "bool", + "field_type": "str", "updated_user_id": "str", - "referenced_object_type": "str", - "display_order": "int", "calculated": "bool", "external_options": "bool", - "archived": "bool", - "has_unique_value": "bool", - "hidden": "bool", - "hubspot_defined": "bool", - "show_currency_symbol": "bool", - "modification_metadata": "PropertyModificationMetadata", - "form_field": "bool", - "calculation_formula": "str", + "updated_at": "datetime", } attribute_map = { - "updated_at": "updatedAt", - "created_at": "createdAt", - "archived_at": "archivedAt", - "name": "name", + "created_user_id": "createdUserId", + "hidden": "hidden", + "modification_metadata": "modificationMetadata", + "display_order": "displayOrder", + "description": "description", + "show_currency_symbol": "showCurrencySymbol", "label": "label", "type": "type", - "field_type": "fieldType", - "description": "description", + "hubspot_defined": "hubspotDefined", + "form_field": "formField", + "created_at": "createdAt", + "archived_at": "archivedAt", + "archived": "archived", "group_name": "groupName", + "referenced_object_type": "referencedObjectType", + "name": "name", "options": "options", - "created_user_id": "createdUserId", + "calculation_formula": "calculationFormula", + "has_unique_value": "hasUniqueValue", + "field_type": "fieldType", "updated_user_id": "updatedUserId", - "referenced_object_type": "referencedObjectType", - "display_order": "displayOrder", "calculated": "calculated", "external_options": "externalOptions", - "archived": "archived", - "has_unique_value": "hasUniqueValue", - "hidden": "hidden", - "hubspot_defined": "hubspotDefined", - "show_currency_symbol": "showCurrencySymbol", - "modification_metadata": "modificationMetadata", - "form_field": "formField", - "calculation_formula": "calculationFormula", + "updated_at": "updatedAt", } def __init__( self, - updated_at=None, - created_at=None, - archived_at=None, - name=None, + created_user_id=None, + hidden=None, + modification_metadata=None, + display_order=None, + description=None, + show_currency_symbol=None, label=None, type=None, - field_type=None, - description=None, + hubspot_defined=None, + form_field=None, + created_at=None, + archived_at=None, + archived=None, group_name=None, + referenced_object_type=None, + name=None, options=None, - created_user_id=None, + calculation_formula=None, + has_unique_value=None, + field_type=None, updated_user_id=None, - referenced_object_type=None, - display_order=None, calculated=None, external_options=None, - archived=None, - has_unique_value=None, - hidden=None, - hubspot_defined=None, - show_currency_symbol=None, - modification_metadata=None, - form_field=None, - calculation_formula=None, + updated_at=None, local_vars_configuration=None, ): # noqa: E501 """ModelProperty - a model defined in OpenAPI""" # noqa: E501 @@ -122,163 +122,211 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._updated_at = None - self._created_at = None - self._archived_at = None - self._name = None + self._created_user_id = None + self._hidden = None + self._modification_metadata = None + self._display_order = None + self._description = None + self._show_currency_symbol = None self._label = None self._type = None - self._field_type = None - self._description = None + self._hubspot_defined = None + self._form_field = None + self._created_at = None + self._archived_at = None + self._archived = None self._group_name = None + self._referenced_object_type = None + self._name = None self._options = None - self._created_user_id = None + self._calculation_formula = None + self._has_unique_value = None + self._field_type = None self._updated_user_id = None - self._referenced_object_type = None - self._display_order = None self._calculated = None self._external_options = None - self._archived = None - self._has_unique_value = None - self._hidden = None - self._hubspot_defined = None - self._show_currency_symbol = None - self._modification_metadata = None - self._form_field = None - self._calculation_formula = None + self._updated_at = None self.discriminator = None - if updated_at is not None: - self.updated_at = updated_at + if created_user_id is not None: + self.created_user_id = created_user_id + if hidden is not None: + self.hidden = hidden + if modification_metadata is not None: + self.modification_metadata = modification_metadata + if display_order is not None: + self.display_order = display_order + self.description = description + if show_currency_symbol is not None: + self.show_currency_symbol = show_currency_symbol + self.label = label + self.type = type + if hubspot_defined is not None: + self.hubspot_defined = hubspot_defined + if form_field is not None: + self.form_field = form_field if created_at is not None: self.created_at = created_at if archived_at is not None: self.archived_at = archived_at - self.name = name - self.label = label - self.type = type - self.field_type = field_type - self.description = description + if archived is not None: + self.archived = archived self.group_name = group_name + if referenced_object_type is not None: + self.referenced_object_type = referenced_object_type + self.name = name self.options = options - if created_user_id is not None: - self.created_user_id = created_user_id + if calculation_formula is not None: + self.calculation_formula = calculation_formula + if has_unique_value is not None: + self.has_unique_value = has_unique_value + self.field_type = field_type if updated_user_id is not None: self.updated_user_id = updated_user_id - if referenced_object_type is not None: - self.referenced_object_type = referenced_object_type - if display_order is not None: - self.display_order = display_order if calculated is not None: self.calculated = calculated if external_options is not None: self.external_options = external_options - if archived is not None: - self.archived = archived - if has_unique_value is not None: - self.has_unique_value = has_unique_value - if hidden is not None: - self.hidden = hidden - if hubspot_defined is not None: - self.hubspot_defined = hubspot_defined - if show_currency_symbol is not None: - self.show_currency_symbol = show_currency_symbol - if modification_metadata is not None: - self.modification_metadata = modification_metadata - if form_field is not None: - self.form_field = form_field - if calculation_formula is not None: - self.calculation_formula = calculation_formula + if updated_at is not None: + self.updated_at = updated_at @property - def updated_at(self): - """Gets the updated_at of this ModelProperty. # noqa: E501 + def created_user_id(self): + """Gets the created_user_id of this ModelProperty. # noqa: E501 + The internal user ID of the user who created the property in HubSpot. This field may not exist if the property was created outside of HubSpot. # noqa: E501 - :return: The updated_at of this ModelProperty. # noqa: E501 - :rtype: datetime + :return: The created_user_id of this ModelProperty. # noqa: E501 + :rtype: str """ - return self._updated_at + return self._created_user_id - @updated_at.setter - def updated_at(self, updated_at): - """Sets the updated_at of this ModelProperty. + @created_user_id.setter + def created_user_id(self, created_user_id): + """Sets the created_user_id of this ModelProperty. + The internal user ID of the user who created the property in HubSpot. This field may not exist if the property was created outside of HubSpot. # noqa: E501 - :param updated_at: The updated_at of this ModelProperty. # noqa: E501 - :type updated_at: datetime + :param created_user_id: The created_user_id of this ModelProperty. # noqa: E501 + :type created_user_id: str """ - self._updated_at = updated_at + self._created_user_id = created_user_id @property - def created_at(self): - """Gets the created_at of this ModelProperty. # noqa: E501 + def hidden(self): + """Gets the hidden of this ModelProperty. # noqa: E501 + Whether or not the property will be hidden from the HubSpot UI. It's recommended this be set to false for custom properties. # noqa: E501 - :return: The created_at of this ModelProperty. # noqa: E501 - :rtype: datetime + :return: The hidden of this ModelProperty. # noqa: E501 + :rtype: bool """ - return self._created_at + return self._hidden - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this ModelProperty. + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this ModelProperty. + Whether or not the property will be hidden from the HubSpot UI. It's recommended this be set to false for custom properties. # noqa: E501 - :param created_at: The created_at of this ModelProperty. # noqa: E501 - :type created_at: datetime + :param hidden: The hidden of this ModelProperty. # noqa: E501 + :type hidden: bool """ - self._created_at = created_at + self._hidden = hidden @property - def archived_at(self): - """Gets the archived_at of this ModelProperty. # noqa: E501 + def modification_metadata(self): + """Gets the modification_metadata of this ModelProperty. # noqa: E501 - When the property was archived. # noqa: E501 - :return: The archived_at of this ModelProperty. # noqa: E501 - :rtype: datetime + :return: The modification_metadata of this ModelProperty. # noqa: E501 + :rtype: PropertyModificationMetadata """ - return self._archived_at + return self._modification_metadata - @archived_at.setter - def archived_at(self, archived_at): - """Sets the archived_at of this ModelProperty. + @modification_metadata.setter + def modification_metadata(self, modification_metadata): + """Sets the modification_metadata of this ModelProperty. - When the property was archived. # noqa: E501 - :param archived_at: The archived_at of this ModelProperty. # noqa: E501 - :type archived_at: datetime + :param modification_metadata: The modification_metadata of this ModelProperty. # noqa: E501 + :type modification_metadata: PropertyModificationMetadata """ - self._archived_at = archived_at + self._modification_metadata = modification_metadata @property - def name(self): - """Gets the name of this ModelProperty. # noqa: E501 + def display_order(self): + """Gets the display_order of this ModelProperty. # noqa: E501 - The internal property name, which must be used when referencing the property via the API. # noqa: E501 + Properties are shown in order, starting with the lowest positive integer value. # noqa: E501 - :return: The name of this ModelProperty. # noqa: E501 + :return: The display_order of this ModelProperty. # noqa: E501 + :rtype: int + """ + return self._display_order + + @display_order.setter + def display_order(self, display_order): + """Sets the display_order of this ModelProperty. + + Properties are shown in order, starting with the lowest positive integer value. # noqa: E501 + + :param display_order: The display_order of this ModelProperty. # noqa: E501 + :type display_order: int + """ + + self._display_order = display_order + + @property + def description(self): + """Gets the description of this ModelProperty. # noqa: E501 + + A description of the property that will be shown as help text in HubSpot. # noqa: E501 + + :return: The description of this ModelProperty. # noqa: E501 :rtype: str """ - return self._name + return self._description - @name.setter - def name(self, name): - """Sets the name of this ModelProperty. + @description.setter + def description(self, description): + """Sets the description of this ModelProperty. - The internal property name, which must be used when referencing the property via the API. # noqa: E501 + A description of the property that will be shown as help text in HubSpot. # noqa: E501 - :param name: The name of this ModelProperty. # noqa: E501 - :type name: str + :param description: The description of this ModelProperty. # noqa: E501 + :type description: str """ - if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and description is None: # noqa: E501 + raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 - self._name = name + self._description = description + + @property + def show_currency_symbol(self): + """Gets the show_currency_symbol of this ModelProperty. # noqa: E501 + + Whether or not the property will display the currency symbol set in the account settings. # noqa: E501 + + :return: The show_currency_symbol of this ModelProperty. # noqa: E501 + :rtype: bool + """ + return self._show_currency_symbol + + @show_currency_symbol.setter + def show_currency_symbol(self, show_currency_symbol): + """Sets the show_currency_symbol of this ModelProperty. + + Whether or not the property will display the currency symbol set in the account settings. # noqa: E501 + + :param show_currency_symbol: The show_currency_symbol of this ModelProperty. # noqa: E501 + :type show_currency_symbol: bool + """ + + self._show_currency_symbol = show_currency_symbol @property def label(self): @@ -331,150 +379,144 @@ def type(self, type): self._type = type @property - def field_type(self): - """Gets the field_type of this ModelProperty. # noqa: E501 + def hubspot_defined(self): + """Gets the hubspot_defined of this ModelProperty. # noqa: E501 - Controls how the property appears in HubSpot. # noqa: E501 + This will be true for default object properties built into HubSpot. # noqa: E501 - :return: The field_type of this ModelProperty. # noqa: E501 - :rtype: str + :return: The hubspot_defined of this ModelProperty. # noqa: E501 + :rtype: bool """ - return self._field_type + return self._hubspot_defined - @field_type.setter - def field_type(self, field_type): - """Sets the field_type of this ModelProperty. + @hubspot_defined.setter + def hubspot_defined(self, hubspot_defined): + """Sets the hubspot_defined of this ModelProperty. - Controls how the property appears in HubSpot. # noqa: E501 + This will be true for default object properties built into HubSpot. # noqa: E501 - :param field_type: The field_type of this ModelProperty. # noqa: E501 - :type field_type: str + :param hubspot_defined: The hubspot_defined of this ModelProperty. # noqa: E501 + :type hubspot_defined: bool """ - if self.local_vars_configuration.client_side_validation and field_type is None: # noqa: E501 - raise ValueError("Invalid value for `field_type`, must not be `None`") # noqa: E501 - self._field_type = field_type + self._hubspot_defined = hubspot_defined @property - def description(self): - """Gets the description of this ModelProperty. # noqa: E501 + def form_field(self): + """Gets the form_field of this ModelProperty. # noqa: E501 - A description of the property that will be shown as help text in HubSpot. # noqa: E501 + Whether or not the property can be used in a HubSpot form. # noqa: E501 - :return: The description of this ModelProperty. # noqa: E501 - :rtype: str + :return: The form_field of this ModelProperty. # noqa: E501 + :rtype: bool """ - return self._description + return self._form_field - @description.setter - def description(self, description): - """Sets the description of this ModelProperty. + @form_field.setter + def form_field(self, form_field): + """Sets the form_field of this ModelProperty. - A description of the property that will be shown as help text in HubSpot. # noqa: E501 + Whether or not the property can be used in a HubSpot form. # noqa: E501 - :param description: The description of this ModelProperty. # noqa: E501 - :type description: str + :param form_field: The form_field of this ModelProperty. # noqa: E501 + :type form_field: bool """ - if self.local_vars_configuration.client_side_validation and description is None: # noqa: E501 - raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 - self._description = description + self._form_field = form_field @property - def group_name(self): - """Gets the group_name of this ModelProperty. # noqa: E501 + def created_at(self): + """Gets the created_at of this ModelProperty. # noqa: E501 - The name of the property group the property belongs to. # noqa: E501 + # noqa: E501 - :return: The group_name of this ModelProperty. # noqa: E501 - :rtype: str + :return: The created_at of this ModelProperty. # noqa: E501 + :rtype: datetime """ - return self._group_name + return self._created_at - @group_name.setter - def group_name(self, group_name): - """Sets the group_name of this ModelProperty. + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ModelProperty. - The name of the property group the property belongs to. # noqa: E501 + # noqa: E501 - :param group_name: The group_name of this ModelProperty. # noqa: E501 - :type group_name: str + :param created_at: The created_at of this ModelProperty. # noqa: E501 + :type created_at: datetime """ - if self.local_vars_configuration.client_side_validation and group_name is None: # noqa: E501 - raise ValueError("Invalid value for `group_name`, must not be `None`") # noqa: E501 - self._group_name = group_name + self._created_at = created_at @property - def options(self): - """Gets the options of this ModelProperty. # noqa: E501 + def archived_at(self): + """Gets the archived_at of this ModelProperty. # noqa: E501 - A list of valid options for the property. This field is required for enumerated properties, but will be empty for other property types. # noqa: E501 + When the property was archived. # noqa: E501 - :return: The options of this ModelProperty. # noqa: E501 - :rtype: list[Option] + :return: The archived_at of this ModelProperty. # noqa: E501 + :rtype: datetime """ - return self._options + return self._archived_at - @options.setter - def options(self, options): - """Sets the options of this ModelProperty. + @archived_at.setter + def archived_at(self, archived_at): + """Sets the archived_at of this ModelProperty. - A list of valid options for the property. This field is required for enumerated properties, but will be empty for other property types. # noqa: E501 + When the property was archived. # noqa: E501 - :param options: The options of this ModelProperty. # noqa: E501 - :type options: list[Option] + :param archived_at: The archived_at of this ModelProperty. # noqa: E501 + :type archived_at: datetime """ - if self.local_vars_configuration.client_side_validation and options is None: # noqa: E501 - raise ValueError("Invalid value for `options`, must not be `None`") # noqa: E501 - self._options = options + self._archived_at = archived_at @property - def created_user_id(self): - """Gets the created_user_id of this ModelProperty. # noqa: E501 + def archived(self): + """Gets the archived of this ModelProperty. # noqa: E501 - The internal user ID of the user who created the property in HubSpot. This field may not exist if the property was created outside of HubSpot. # noqa: E501 + Whether or not the property is archived. # noqa: E501 - :return: The created_user_id of this ModelProperty. # noqa: E501 - :rtype: str + :return: The archived of this ModelProperty. # noqa: E501 + :rtype: bool """ - return self._created_user_id + return self._archived - @created_user_id.setter - def created_user_id(self, created_user_id): - """Sets the created_user_id of this ModelProperty. + @archived.setter + def archived(self, archived): + """Sets the archived of this ModelProperty. - The internal user ID of the user who created the property in HubSpot. This field may not exist if the property was created outside of HubSpot. # noqa: E501 + Whether or not the property is archived. # noqa: E501 - :param created_user_id: The created_user_id of this ModelProperty. # noqa: E501 - :type created_user_id: str + :param archived: The archived of this ModelProperty. # noqa: E501 + :type archived: bool """ - self._created_user_id = created_user_id + self._archived = archived @property - def updated_user_id(self): - """Gets the updated_user_id of this ModelProperty. # noqa: E501 + def group_name(self): + """Gets the group_name of this ModelProperty. # noqa: E501 - The internal user ID of the user who updated the property in HubSpot. This field may not exist if the property was updated outside of HubSpot. # noqa: E501 + The name of the property group the property belongs to. # noqa: E501 - :return: The updated_user_id of this ModelProperty. # noqa: E501 + :return: The group_name of this ModelProperty. # noqa: E501 :rtype: str """ - return self._updated_user_id + return self._group_name - @updated_user_id.setter - def updated_user_id(self, updated_user_id): - """Sets the updated_user_id of this ModelProperty. + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this ModelProperty. - The internal user ID of the user who updated the property in HubSpot. This field may not exist if the property was updated outside of HubSpot. # noqa: E501 + The name of the property group the property belongs to. # noqa: E501 - :param updated_user_id: The updated_user_id of this ModelProperty. # noqa: E501 - :type updated_user_id: str + :param group_name: The group_name of this ModelProperty. # noqa: E501 + :type group_name: str """ + if self.local_vars_configuration.client_side_validation and group_name is None: # noqa: E501 + raise ValueError("Invalid value for `group_name`, must not be `None`") # noqa: E501 - self._updated_user_id = updated_user_id + self._group_name = group_name @property def referenced_object_type(self): @@ -500,96 +542,77 @@ def referenced_object_type(self, referenced_object_type): self._referenced_object_type = referenced_object_type @property - def display_order(self): - """Gets the display_order of this ModelProperty. # noqa: E501 - - Properties are shown in order, starting with the lowest positive integer value. # noqa: E501 - - :return: The display_order of this ModelProperty. # noqa: E501 - :rtype: int - """ - return self._display_order - - @display_order.setter - def display_order(self, display_order): - """Sets the display_order of this ModelProperty. - - Properties are shown in order, starting with the lowest positive integer value. # noqa: E501 - - :param display_order: The display_order of this ModelProperty. # noqa: E501 - :type display_order: int - """ - - self._display_order = display_order - - @property - def calculated(self): - """Gets the calculated of this ModelProperty. # noqa: E501 + def name(self): + """Gets the name of this ModelProperty. # noqa: E501 - For default properties, true indicates that the property is calculated by a HubSpot process. It has no effect for custom properties. # noqa: E501 + The internal property name, which must be used when referencing the property via the API. # noqa: E501 - :return: The calculated of this ModelProperty. # noqa: E501 - :rtype: bool + :return: The name of this ModelProperty. # noqa: E501 + :rtype: str """ - return self._calculated + return self._name - @calculated.setter - def calculated(self, calculated): - """Sets the calculated of this ModelProperty. + @name.setter + def name(self, name): + """Sets the name of this ModelProperty. - For default properties, true indicates that the property is calculated by a HubSpot process. It has no effect for custom properties. # noqa: E501 + The internal property name, which must be used when referencing the property via the API. # noqa: E501 - :param calculated: The calculated of this ModelProperty. # noqa: E501 - :type calculated: bool + :param name: The name of this ModelProperty. # noqa: E501 + :type name: str """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._calculated = calculated + self._name = name @property - def external_options(self): - """Gets the external_options of this ModelProperty. # noqa: E501 + def options(self): + """Gets the options of this ModelProperty. # noqa: E501 - For default properties, true indicates that the options are stored externally to the property settings. # noqa: E501 + A list of valid options for the property. This field is required for enumerated properties, but will be empty for other property types. # noqa: E501 - :return: The external_options of this ModelProperty. # noqa: E501 - :rtype: bool + :return: The options of this ModelProperty. # noqa: E501 + :rtype: list[Option] """ - return self._external_options + return self._options - @external_options.setter - def external_options(self, external_options): - """Sets the external_options of this ModelProperty. + @options.setter + def options(self, options): + """Sets the options of this ModelProperty. - For default properties, true indicates that the options are stored externally to the property settings. # noqa: E501 + A list of valid options for the property. This field is required for enumerated properties, but will be empty for other property types. # noqa: E501 - :param external_options: The external_options of this ModelProperty. # noqa: E501 - :type external_options: bool + :param options: The options of this ModelProperty. # noqa: E501 + :type options: list[Option] """ + if self.local_vars_configuration.client_side_validation and options is None: # noqa: E501 + raise ValueError("Invalid value for `options`, must not be `None`") # noqa: E501 - self._external_options = external_options + self._options = options @property - def archived(self): - """Gets the archived of this ModelProperty. # noqa: E501 + def calculation_formula(self): + """Gets the calculation_formula of this ModelProperty. # noqa: E501 - Whether or not the property is archived. # noqa: E501 + Represents a formula that is used to compute a calculated property. # noqa: E501 - :return: The archived of this ModelProperty. # noqa: E501 - :rtype: bool + :return: The calculation_formula of this ModelProperty. # noqa: E501 + :rtype: str """ - return self._archived + return self._calculation_formula - @archived.setter - def archived(self, archived): - """Sets the archived of this ModelProperty. + @calculation_formula.setter + def calculation_formula(self, calculation_formula): + """Sets the calculation_formula of this ModelProperty. - Whether or not the property is archived. # noqa: E501 + Represents a formula that is used to compute a calculated property. # noqa: E501 - :param archived: The archived of this ModelProperty. # noqa: E501 - :type archived: bool + :param calculation_formula: The calculation_formula of this ModelProperty. # noqa: E501 + :type calculation_formula: str """ - self._archived = archived + self._calculation_formula = calculation_formula @property def has_unique_value(self): @@ -615,140 +638,121 @@ def has_unique_value(self, has_unique_value): self._has_unique_value = has_unique_value @property - def hidden(self): - """Gets the hidden of this ModelProperty. # noqa: E501 + def field_type(self): + """Gets the field_type of this ModelProperty. # noqa: E501 - Whether or not the property will be hidden from the HubSpot UI. It's recommended this be set to false for custom properties. # noqa: E501 + Controls how the property appears in HubSpot. # noqa: E501 - :return: The hidden of this ModelProperty. # noqa: E501 - :rtype: bool + :return: The field_type of this ModelProperty. # noqa: E501 + :rtype: str """ - return self._hidden + return self._field_type - @hidden.setter - def hidden(self, hidden): - """Sets the hidden of this ModelProperty. + @field_type.setter + def field_type(self, field_type): + """Sets the field_type of this ModelProperty. - Whether or not the property will be hidden from the HubSpot UI. It's recommended this be set to false for custom properties. # noqa: E501 + Controls how the property appears in HubSpot. # noqa: E501 - :param hidden: The hidden of this ModelProperty. # noqa: E501 - :type hidden: bool + :param field_type: The field_type of this ModelProperty. # noqa: E501 + :type field_type: str """ + if self.local_vars_configuration.client_side_validation and field_type is None: # noqa: E501 + raise ValueError("Invalid value for `field_type`, must not be `None`") # noqa: E501 - self._hidden = hidden + self._field_type = field_type @property - def hubspot_defined(self): - """Gets the hubspot_defined of this ModelProperty. # noqa: E501 + def updated_user_id(self): + """Gets the updated_user_id of this ModelProperty. # noqa: E501 - This will be true for default object properties built into HubSpot. # noqa: E501 + The internal user ID of the user who updated the property in HubSpot. This field may not exist if the property was updated outside of HubSpot. # noqa: E501 - :return: The hubspot_defined of this ModelProperty. # noqa: E501 - :rtype: bool + :return: The updated_user_id of this ModelProperty. # noqa: E501 + :rtype: str """ - return self._hubspot_defined + return self._updated_user_id - @hubspot_defined.setter - def hubspot_defined(self, hubspot_defined): - """Sets the hubspot_defined of this ModelProperty. + @updated_user_id.setter + def updated_user_id(self, updated_user_id): + """Sets the updated_user_id of this ModelProperty. - This will be true for default object properties built into HubSpot. # noqa: E501 + The internal user ID of the user who updated the property in HubSpot. This field may not exist if the property was updated outside of HubSpot. # noqa: E501 - :param hubspot_defined: The hubspot_defined of this ModelProperty. # noqa: E501 - :type hubspot_defined: bool + :param updated_user_id: The updated_user_id of this ModelProperty. # noqa: E501 + :type updated_user_id: str """ - self._hubspot_defined = hubspot_defined + self._updated_user_id = updated_user_id @property - def show_currency_symbol(self): - """Gets the show_currency_symbol of this ModelProperty. # noqa: E501 + def calculated(self): + """Gets the calculated of this ModelProperty. # noqa: E501 - Whether or not the property will display the currency symbol set in the account settings. # noqa: E501 + For default properties, true indicates that the property is calculated by a HubSpot process. It has no effect for custom properties. # noqa: E501 - :return: The show_currency_symbol of this ModelProperty. # noqa: E501 + :return: The calculated of this ModelProperty. # noqa: E501 :rtype: bool """ - return self._show_currency_symbol - - @show_currency_symbol.setter - def show_currency_symbol(self, show_currency_symbol): - """Sets the show_currency_symbol of this ModelProperty. - - Whether or not the property will display the currency symbol set in the account settings. # noqa: E501 - - :param show_currency_symbol: The show_currency_symbol of this ModelProperty. # noqa: E501 - :type show_currency_symbol: bool - """ - - self._show_currency_symbol = show_currency_symbol - - @property - def modification_metadata(self): - """Gets the modification_metadata of this ModelProperty. # noqa: E501 - - - :return: The modification_metadata of this ModelProperty. # noqa: E501 - :rtype: PropertyModificationMetadata - """ - return self._modification_metadata + return self._calculated - @modification_metadata.setter - def modification_metadata(self, modification_metadata): - """Sets the modification_metadata of this ModelProperty. + @calculated.setter + def calculated(self, calculated): + """Sets the calculated of this ModelProperty. + For default properties, true indicates that the property is calculated by a HubSpot process. It has no effect for custom properties. # noqa: E501 - :param modification_metadata: The modification_metadata of this ModelProperty. # noqa: E501 - :type modification_metadata: PropertyModificationMetadata + :param calculated: The calculated of this ModelProperty. # noqa: E501 + :type calculated: bool """ - self._modification_metadata = modification_metadata + self._calculated = calculated @property - def form_field(self): - """Gets the form_field of this ModelProperty. # noqa: E501 + def external_options(self): + """Gets the external_options of this ModelProperty. # noqa: E501 - Whether or not the property can be used in a HubSpot form. # noqa: E501 + For default properties, true indicates that the options are stored externally to the property settings. # noqa: E501 - :return: The form_field of this ModelProperty. # noqa: E501 + :return: The external_options of this ModelProperty. # noqa: E501 :rtype: bool """ - return self._form_field + return self._external_options - @form_field.setter - def form_field(self, form_field): - """Sets the form_field of this ModelProperty. + @external_options.setter + def external_options(self, external_options): + """Sets the external_options of this ModelProperty. - Whether or not the property can be used in a HubSpot form. # noqa: E501 + For default properties, true indicates that the options are stored externally to the property settings. # noqa: E501 - :param form_field: The form_field of this ModelProperty. # noqa: E501 - :type form_field: bool + :param external_options: The external_options of this ModelProperty. # noqa: E501 + :type external_options: bool """ - self._form_field = form_field + self._external_options = external_options @property - def calculation_formula(self): - """Gets the calculation_formula of this ModelProperty. # noqa: E501 + def updated_at(self): + """Gets the updated_at of this ModelProperty. # noqa: E501 - Represents a formula that is used to compute a calculated property. # noqa: E501 + # noqa: E501 - :return: The calculation_formula of this ModelProperty. # noqa: E501 - :rtype: str + :return: The updated_at of this ModelProperty. # noqa: E501 + :rtype: datetime """ - return self._calculation_formula + return self._updated_at - @calculation_formula.setter - def calculation_formula(self, calculation_formula): - """Sets the calculation_formula of this ModelProperty. + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this ModelProperty. - Represents a formula that is used to compute a calculated property. # noqa: E501 + # noqa: E501 - :param calculation_formula: The calculation_formula of this ModelProperty. # noqa: E501 - :type calculation_formula: str + :param updated_at: The updated_at of this ModelProperty. # noqa: E501 + :type updated_at: datetime """ - self._calculation_formula = calculation_formula + self._updated_at = updated_at def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/properties/models/option.py b/hubspot/crm/properties/models/option.py index e9d75343..ccf6cc09 100644 --- a/hubspot/crm/properties/models/option.py +++ b/hubspot/crm/properties/models/option.py @@ -35,80 +35,78 @@ class Option(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"label": "str", "value": "str", "description": "str", "display_order": "int", "hidden": "bool"} + openapi_types = {"hidden": "bool", "display_order": "int", "description": "str", "label": "str", "value": "str"} - attribute_map = {"label": "label", "value": "value", "description": "description", "display_order": "displayOrder", "hidden": "hidden"} + attribute_map = {"hidden": "hidden", "display_order": "displayOrder", "description": "description", "label": "label", "value": "value"} - def __init__(self, label=None, value=None, description=None, display_order=None, hidden=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, hidden=None, display_order=None, description=None, label=None, value=None, local_vars_configuration=None): # noqa: E501 """Option - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration + self._hidden = None + self._display_order = None + self._description = None self._label = None self._value = None - self._description = None - self._display_order = None - self._hidden = None self.discriminator = None - self.label = label - self.value = value - if description is not None: - self.description = description + self.hidden = hidden if display_order is not None: self.display_order = display_order - self.hidden = hidden + if description is not None: + self.description = description + self.label = label + self.value = value @property - def label(self): - """Gets the label of this Option. # noqa: E501 + def hidden(self): + """Gets the hidden of this Option. # noqa: E501 - A human-readable option label that will be shown in HubSpot. # noqa: E501 + Hidden options will not be displayed in HubSpot. # noqa: E501 - :return: The label of this Option. # noqa: E501 - :rtype: str + :return: The hidden of this Option. # noqa: E501 + :rtype: bool """ - return self._label + return self._hidden - @label.setter - def label(self, label): - """Sets the label of this Option. + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this Option. - A human-readable option label that will be shown in HubSpot. # noqa: E501 + Hidden options will not be displayed in HubSpot. # noqa: E501 - :param label: The label of this Option. # noqa: E501 - :type label: str + :param hidden: The hidden of this Option. # noqa: E501 + :type hidden: bool """ - if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 - raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and hidden is None: # noqa: E501 + raise ValueError("Invalid value for `hidden`, must not be `None`") # noqa: E501 - self._label = label + self._hidden = hidden @property - def value(self): - """Gets the value of this Option. # noqa: E501 + def display_order(self): + """Gets the display_order of this Option. # noqa: E501 - The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 + Options are displayed in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 - :return: The value of this Option. # noqa: E501 - :rtype: str + :return: The display_order of this Option. # noqa: E501 + :rtype: int """ - return self._value + return self._display_order - @value.setter - def value(self, value): - """Sets the value of this Option. + @display_order.setter + def display_order(self, display_order): + """Sets the display_order of this Option. - The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 + Options are displayed in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 - :param value: The value of this Option. # noqa: E501 - :type value: str + :param display_order: The display_order of this Option. # noqa: E501 + :type display_order: int """ - if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - self._value = value + self._display_order = display_order @property def description(self): @@ -134,52 +132,54 @@ def description(self, description): self._description = description @property - def display_order(self): - """Gets the display_order of this Option. # noqa: E501 + def label(self): + """Gets the label of this Option. # noqa: E501 - Options are displayed in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 + A human-readable option label that will be shown in HubSpot. # noqa: E501 - :return: The display_order of this Option. # noqa: E501 - :rtype: int + :return: The label of this Option. # noqa: E501 + :rtype: str """ - return self._display_order + return self._label - @display_order.setter - def display_order(self, display_order): - """Sets the display_order of this Option. + @label.setter + def label(self, label): + """Sets the label of this Option. - Options are displayed in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 + A human-readable option label that will be shown in HubSpot. # noqa: E501 - :param display_order: The display_order of this Option. # noqa: E501 - :type display_order: int + :param label: The label of this Option. # noqa: E501 + :type label: str """ + if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 + raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 - self._display_order = display_order + self._label = label @property - def hidden(self): - """Gets the hidden of this Option. # noqa: E501 + def value(self): + """Gets the value of this Option. # noqa: E501 - Hidden options will not be displayed in HubSpot. # noqa: E501 + The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 - :return: The hidden of this Option. # noqa: E501 - :rtype: bool + :return: The value of this Option. # noqa: E501 + :rtype: str """ - return self._hidden + return self._value - @hidden.setter - def hidden(self, hidden): - """Sets the hidden of this Option. + @value.setter + def value(self, value): + """Sets the value of this Option. - Hidden options will not be displayed in HubSpot. # noqa: E501 + The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 - :param hidden: The hidden of this Option. # noqa: E501 - :type hidden: bool + :param value: The value of this Option. # noqa: E501 + :type value: str """ - if self.local_vars_configuration.client_side_validation and hidden is None: # noqa: E501 - raise ValueError("Invalid value for `hidden`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - self._hidden = hidden + self._value = value def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/properties/models/option_input.py b/hubspot/crm/properties/models/option_input.py index fad98849..cc17e50b 100644 --- a/hubspot/crm/properties/models/option_input.py +++ b/hubspot/crm/properties/models/option_input.py @@ -35,80 +35,78 @@ class OptionInput(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"label": "str", "value": "str", "description": "str", "display_order": "int", "hidden": "bool"} + openapi_types = {"hidden": "bool", "display_order": "int", "description": "str", "label": "str", "value": "str"} - attribute_map = {"label": "label", "value": "value", "description": "description", "display_order": "displayOrder", "hidden": "hidden"} + attribute_map = {"hidden": "hidden", "display_order": "displayOrder", "description": "description", "label": "label", "value": "value"} - def __init__(self, label=None, value=None, description=None, display_order=None, hidden=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, hidden=None, display_order=None, description=None, label=None, value=None, local_vars_configuration=None): # noqa: E501 """OptionInput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration + self._hidden = None + self._display_order = None + self._description = None self._label = None self._value = None - self._description = None - self._display_order = None - self._hidden = None self.discriminator = None - self.label = label - self.value = value - if description is not None: - self.description = description + self.hidden = hidden if display_order is not None: self.display_order = display_order - self.hidden = hidden + if description is not None: + self.description = description + self.label = label + self.value = value @property - def label(self): - """Gets the label of this OptionInput. # noqa: E501 + def hidden(self): + """Gets the hidden of this OptionInput. # noqa: E501 - A human-readable option label that will be shown in HubSpot. # noqa: E501 + Hidden options won't be shown in HubSpot. # noqa: E501 - :return: The label of this OptionInput. # noqa: E501 - :rtype: str + :return: The hidden of this OptionInput. # noqa: E501 + :rtype: bool """ - return self._label + return self._hidden - @label.setter - def label(self, label): - """Sets the label of this OptionInput. + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this OptionInput. - A human-readable option label that will be shown in HubSpot. # noqa: E501 + Hidden options won't be shown in HubSpot. # noqa: E501 - :param label: The label of this OptionInput. # noqa: E501 - :type label: str + :param hidden: The hidden of this OptionInput. # noqa: E501 + :type hidden: bool """ - if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 - raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and hidden is None: # noqa: E501 + raise ValueError("Invalid value for `hidden`, must not be `None`") # noqa: E501 - self._label = label + self._hidden = hidden @property - def value(self): - """Gets the value of this OptionInput. # noqa: E501 + def display_order(self): + """Gets the display_order of this OptionInput. # noqa: E501 - The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 + Options are shown in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 - :return: The value of this OptionInput. # noqa: E501 - :rtype: str + :return: The display_order of this OptionInput. # noqa: E501 + :rtype: int """ - return self._value + return self._display_order - @value.setter - def value(self, value): - """Sets the value of this OptionInput. + @display_order.setter + def display_order(self, display_order): + """Sets the display_order of this OptionInput. - The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 + Options are shown in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 - :param value: The value of this OptionInput. # noqa: E501 - :type value: str + :param display_order: The display_order of this OptionInput. # noqa: E501 + :type display_order: int """ - if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - self._value = value + self._display_order = display_order @property def description(self): @@ -134,52 +132,54 @@ def description(self, description): self._description = description @property - def display_order(self): - """Gets the display_order of this OptionInput. # noqa: E501 + def label(self): + """Gets the label of this OptionInput. # noqa: E501 - Options are shown in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 + A human-readable option label that will be shown in HubSpot. # noqa: E501 - :return: The display_order of this OptionInput. # noqa: E501 - :rtype: int + :return: The label of this OptionInput. # noqa: E501 + :rtype: str """ - return self._display_order + return self._label - @display_order.setter - def display_order(self, display_order): - """Sets the display_order of this OptionInput. + @label.setter + def label(self, label): + """Sets the label of this OptionInput. - Options are shown in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 + A human-readable option label that will be shown in HubSpot. # noqa: E501 - :param display_order: The display_order of this OptionInput. # noqa: E501 - :type display_order: int + :param label: The label of this OptionInput. # noqa: E501 + :type label: str """ + if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 + raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 - self._display_order = display_order + self._label = label @property - def hidden(self): - """Gets the hidden of this OptionInput. # noqa: E501 + def value(self): + """Gets the value of this OptionInput. # noqa: E501 - Hidden options won't be shown in HubSpot. # noqa: E501 + The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 - :return: The hidden of this OptionInput. # noqa: E501 - :rtype: bool + :return: The value of this OptionInput. # noqa: E501 + :rtype: str """ - return self._hidden + return self._value - @hidden.setter - def hidden(self, hidden): - """Sets the hidden of this OptionInput. + @value.setter + def value(self, value): + """Sets the value of this OptionInput. - Hidden options won't be shown in HubSpot. # noqa: E501 + The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 - :param hidden: The hidden of this OptionInput. # noqa: E501 - :type hidden: bool + :param value: The value of this OptionInput. # noqa: E501 + :type value: str """ - if self.local_vars_configuration.client_side_validation and hidden is None: # noqa: E501 - raise ValueError("Invalid value for `hidden`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - self._hidden = hidden + self._value = value def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/properties/models/property_create.py b/hubspot/crm/properties/models/property_create.py index 1e7124c4..e3e13f07 100644 --- a/hubspot/crm/properties/models/property_create.py +++ b/hubspot/crm/properties/models/property_create.py @@ -36,55 +36,55 @@ class PropertyCreate(object): and the value is json key in definition. """ openapi_types = { - "name": "str", + "hidden": "bool", + "display_order": "int", + "description": "str", "label": "str", "type": "str", - "field_type": "str", + "form_field": "bool", "group_name": "str", - "description": "str", + "referenced_object_type": "str", + "name": "str", "options": "list[OptionInput]", - "display_order": "int", + "calculation_formula": "str", "has_unique_value": "bool", - "hidden": "bool", - "form_field": "bool", + "field_type": "str", "external_options": "bool", - "referenced_object_type": "str", - "calculation_formula": "str", } attribute_map = { - "name": "name", + "hidden": "hidden", + "display_order": "displayOrder", + "description": "description", "label": "label", "type": "type", - "field_type": "fieldType", + "form_field": "formField", "group_name": "groupName", - "description": "description", + "referenced_object_type": "referencedObjectType", + "name": "name", "options": "options", - "display_order": "displayOrder", + "calculation_formula": "calculationFormula", "has_unique_value": "hasUniqueValue", - "hidden": "hidden", - "form_field": "formField", + "field_type": "fieldType", "external_options": "externalOptions", - "referenced_object_type": "referencedObjectType", - "calculation_formula": "calculationFormula", } def __init__( self, - name=None, + hidden=None, + display_order=None, + description=None, label=None, type=None, - field_type=None, + form_field=None, group_name=None, - description=None, + referenced_object_type=None, + name=None, options=None, - display_order=None, + calculation_formula=None, has_unique_value=None, - hidden=None, - form_field=None, + field_type=None, external_options=None, - referenced_object_type=None, - calculation_formula=None, local_vars_configuration=None, ): # noqa: E501 """PropertyCreate - a model defined in OpenAPI""" # noqa: E501 @@ -92,70 +92,114 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._name = None + self._hidden = None + self._display_order = None + self._description = None self._label = None self._type = None - self._field_type = None + self._form_field = None self._group_name = None - self._description = None + self._referenced_object_type = None + self._name = None self._options = None - self._display_order = None + self._calculation_formula = None self._has_unique_value = None - self._hidden = None - self._form_field = None + self._field_type = None self._external_options = None - self._referenced_object_type = None - self._calculation_formula = None self.discriminator = None - self.name = name + if hidden is not None: + self.hidden = hidden + if display_order is not None: + self.display_order = display_order + if description is not None: + self.description = description self.label = label self.type = type - self.field_type = field_type + if form_field is not None: + self.form_field = form_field self.group_name = group_name - if description is not None: - self.description = description + if referenced_object_type is not None: + self.referenced_object_type = referenced_object_type + self.name = name if options is not None: self.options = options - if display_order is not None: - self.display_order = display_order + if calculation_formula is not None: + self.calculation_formula = calculation_formula if has_unique_value is not None: self.has_unique_value = has_unique_value - if hidden is not None: - self.hidden = hidden - if form_field is not None: - self.form_field = form_field + self.field_type = field_type if external_options is not None: self.external_options = external_options - if referenced_object_type is not None: - self.referenced_object_type = referenced_object_type - if calculation_formula is not None: - self.calculation_formula = calculation_formula @property - def name(self): - """Gets the name of this PropertyCreate. # noqa: E501 + def hidden(self): + """Gets the hidden of this PropertyCreate. # noqa: E501 - The internal property name, which must be used when referencing the property via the API. # noqa: E501 + If true, the property won't be visible and can't be used in HubSpot. # noqa: E501 - :return: The name of this PropertyCreate. # noqa: E501 + :return: The hidden of this PropertyCreate. # noqa: E501 + :rtype: bool + """ + return self._hidden + + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this PropertyCreate. + + If true, the property won't be visible and can't be used in HubSpot. # noqa: E501 + + :param hidden: The hidden of this PropertyCreate. # noqa: E501 + :type hidden: bool + """ + + self._hidden = hidden + + @property + def display_order(self): + """Gets the display_order of this PropertyCreate. # noqa: E501 + + Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property to be displayed after any positive values. # noqa: E501 + + :return: The display_order of this PropertyCreate. # noqa: E501 + :rtype: int + """ + return self._display_order + + @display_order.setter + def display_order(self, display_order): + """Sets the display_order of this PropertyCreate. + + Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property to be displayed after any positive values. # noqa: E501 + + :param display_order: The display_order of this PropertyCreate. # noqa: E501 + :type display_order: int + """ + + self._display_order = display_order + + @property + def description(self): + """Gets the description of this PropertyCreate. # noqa: E501 + + A description of the property that will be shown as help text in HubSpot. # noqa: E501 + + :return: The description of this PropertyCreate. # noqa: E501 :rtype: str """ - return self._name + return self._description - @name.setter - def name(self, name): - """Sets the name of this PropertyCreate. + @description.setter + def description(self, description): + """Sets the description of this PropertyCreate. - The internal property name, which must be used when referencing the property via the API. # noqa: E501 + A description of the property that will be shown as help text in HubSpot. # noqa: E501 - :param name: The name of this PropertyCreate. # noqa: E501 - :type name: str + :param description: The description of this PropertyCreate. # noqa: E501 + :type description: str """ - if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._description = description @property def label(self): @@ -211,32 +255,27 @@ def type(self, type): self._type = type @property - def field_type(self): - """Gets the field_type of this PropertyCreate. # noqa: E501 + def form_field(self): + """Gets the form_field of this PropertyCreate. # noqa: E501 - Controls how the property appears in HubSpot. # noqa: E501 + Whether or not the property can be used in a HubSpot form. # noqa: E501 - :return: The field_type of this PropertyCreate. # noqa: E501 - :rtype: str + :return: The form_field of this PropertyCreate. # noqa: E501 + :rtype: bool """ - return self._field_type + return self._form_field - @field_type.setter - def field_type(self, field_type): - """Sets the field_type of this PropertyCreate. + @form_field.setter + def form_field(self, form_field): + """Sets the form_field of this PropertyCreate. - Controls how the property appears in HubSpot. # noqa: E501 + Whether or not the property can be used in a HubSpot form. # noqa: E501 - :param field_type: The field_type of this PropertyCreate. # noqa: E501 - :type field_type: str + :param form_field: The form_field of this PropertyCreate. # noqa: E501 + :type form_field: bool """ - if self.local_vars_configuration.client_side_validation and field_type is None: # noqa: E501 - raise ValueError("Invalid value for `field_type`, must not be `None`") # noqa: E501 - allowed_values = ["textarea", "text", "date", "file", "number", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and field_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `field_type` ({0}), must be one of {1}".format(field_type, allowed_values)) # noqa: E501 - self._field_type = field_type + self._form_field = form_field @property def group_name(self): @@ -264,27 +303,52 @@ def group_name(self, group_name): self._group_name = group_name @property - def description(self): - """Gets the description of this PropertyCreate. # noqa: E501 + def referenced_object_type(self): + """Gets the referenced_object_type of this PropertyCreate. # noqa: E501 - A description of the property that will be shown as help text in HubSpot. # noqa: E501 + Should be set to 'OWNER' when 'externalOptions' is true, which causes the property to dynamically pull option values from the current HubSpot users. # noqa: E501 - :return: The description of this PropertyCreate. # noqa: E501 + :return: The referenced_object_type of this PropertyCreate. # noqa: E501 :rtype: str """ - return self._description + return self._referenced_object_type - @description.setter - def description(self, description): - """Sets the description of this PropertyCreate. + @referenced_object_type.setter + def referenced_object_type(self, referenced_object_type): + """Sets the referenced_object_type of this PropertyCreate. - A description of the property that will be shown as help text in HubSpot. # noqa: E501 + Should be set to 'OWNER' when 'externalOptions' is true, which causes the property to dynamically pull option values from the current HubSpot users. # noqa: E501 - :param description: The description of this PropertyCreate. # noqa: E501 - :type description: str + :param referenced_object_type: The referenced_object_type of this PropertyCreate. # noqa: E501 + :type referenced_object_type: str """ - self._description = description + self._referenced_object_type = referenced_object_type + + @property + def name(self): + """Gets the name of this PropertyCreate. # noqa: E501 + + The internal property name, which must be used when referencing the property via the API. # noqa: E501 + + :return: The name of this PropertyCreate. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PropertyCreate. + + The internal property name, which must be used when referencing the property via the API. # noqa: E501 + + :param name: The name of this PropertyCreate. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name @property def options(self): @@ -310,27 +374,27 @@ def options(self, options): self._options = options @property - def display_order(self): - """Gets the display_order of this PropertyCreate. # noqa: E501 + def calculation_formula(self): + """Gets the calculation_formula of this PropertyCreate. # noqa: E501 - Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property to be displayed after any positive values. # noqa: E501 + Represents a formula that is used to compute a calculated property. # noqa: E501 - :return: The display_order of this PropertyCreate. # noqa: E501 - :rtype: int + :return: The calculation_formula of this PropertyCreate. # noqa: E501 + :rtype: str """ - return self._display_order + return self._calculation_formula - @display_order.setter - def display_order(self, display_order): - """Sets the display_order of this PropertyCreate. + @calculation_formula.setter + def calculation_formula(self, calculation_formula): + """Sets the calculation_formula of this PropertyCreate. - Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property to be displayed after any positive values. # noqa: E501 + Represents a formula that is used to compute a calculated property. # noqa: E501 - :param display_order: The display_order of this PropertyCreate. # noqa: E501 - :type display_order: int + :param calculation_formula: The calculation_formula of this PropertyCreate. # noqa: E501 + :type calculation_formula: str """ - self._display_order = display_order + self._calculation_formula = calculation_formula @property def has_unique_value(self): @@ -356,50 +420,32 @@ def has_unique_value(self, has_unique_value): self._has_unique_value = has_unique_value @property - def hidden(self): - """Gets the hidden of this PropertyCreate. # noqa: E501 - - If true, the property won't be visible and can't be used in HubSpot. # noqa: E501 - - :return: The hidden of this PropertyCreate. # noqa: E501 - :rtype: bool - """ - return self._hidden - - @hidden.setter - def hidden(self, hidden): - """Sets the hidden of this PropertyCreate. - - If true, the property won't be visible and can't be used in HubSpot. # noqa: E501 - - :param hidden: The hidden of this PropertyCreate. # noqa: E501 - :type hidden: bool - """ - - self._hidden = hidden - - @property - def form_field(self): - """Gets the form_field of this PropertyCreate. # noqa: E501 + def field_type(self): + """Gets the field_type of this PropertyCreate. # noqa: E501 - Whether or not the property can be used in a HubSpot form. # noqa: E501 + Controls how the property appears in HubSpot. # noqa: E501 - :return: The form_field of this PropertyCreate. # noqa: E501 - :rtype: bool + :return: The field_type of this PropertyCreate. # noqa: E501 + :rtype: str """ - return self._form_field + return self._field_type - @form_field.setter - def form_field(self, form_field): - """Sets the form_field of this PropertyCreate. + @field_type.setter + def field_type(self, field_type): + """Sets the field_type of this PropertyCreate. - Whether or not the property can be used in a HubSpot form. # noqa: E501 + Controls how the property appears in HubSpot. # noqa: E501 - :param form_field: The form_field of this PropertyCreate. # noqa: E501 - :type form_field: bool + :param field_type: The field_type of this PropertyCreate. # noqa: E501 + :type field_type: str """ + if self.local_vars_configuration.client_side_validation and field_type is None: # noqa: E501 + raise ValueError("Invalid value for `field_type`, must not be `None`") # noqa: E501 + allowed_values = ["textarea", "text", "date", "file", "number", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and field_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `field_type` ({0}), must be one of {1}".format(field_type, allowed_values)) # noqa: E501 - self._form_field = form_field + self._field_type = field_type @property def external_options(self): @@ -424,52 +470,6 @@ def external_options(self, external_options): self._external_options = external_options - @property - def referenced_object_type(self): - """Gets the referenced_object_type of this PropertyCreate. # noqa: E501 - - Should be set to 'OWNER' when 'externalOptions' is true, which causes the property to dynamically pull option values from the current HubSpot users. # noqa: E501 - - :return: The referenced_object_type of this PropertyCreate. # noqa: E501 - :rtype: str - """ - return self._referenced_object_type - - @referenced_object_type.setter - def referenced_object_type(self, referenced_object_type): - """Sets the referenced_object_type of this PropertyCreate. - - Should be set to 'OWNER' when 'externalOptions' is true, which causes the property to dynamically pull option values from the current HubSpot users. # noqa: E501 - - :param referenced_object_type: The referenced_object_type of this PropertyCreate. # noqa: E501 - :type referenced_object_type: str - """ - - self._referenced_object_type = referenced_object_type - - @property - def calculation_formula(self): - """Gets the calculation_formula of this PropertyCreate. # noqa: E501 - - Represents a formula that is used to compute a calculated property. # noqa: E501 - - :return: The calculation_formula of this PropertyCreate. # noqa: E501 - :rtype: str - """ - return self._calculation_formula - - @calculation_formula.setter - def calculation_formula(self, calculation_formula): - """Sets the calculation_formula of this PropertyCreate. - - Represents a formula that is used to compute a calculated property. # noqa: E501 - - :param calculation_formula: The calculation_formula of this PropertyCreate. # noqa: E501 - :type calculation_formula: str - """ - - self._calculation_formula = calculation_formula - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/properties/models/property_group.py b/hubspot/crm/properties/models/property_group.py index 7bd271f2..95dc26e6 100644 --- a/hubspot/crm/properties/models/property_group.py +++ b/hubspot/crm/properties/models/property_group.py @@ -35,26 +35,49 @@ class PropertyGroup(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"name": "str", "label": "str", "display_order": "int", "archived": "bool"} + openapi_types = {"archived": "bool", "name": "str", "display_order": "int", "label": "str"} - attribute_map = {"name": "name", "label": "label", "display_order": "displayOrder", "archived": "archived"} + attribute_map = {"archived": "archived", "name": "name", "display_order": "displayOrder", "label": "label"} - def __init__(self, name=None, label=None, display_order=None, archived=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, archived=None, name=None, display_order=None, label=None, local_vars_configuration=None): # noqa: E501 """PropertyGroup - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration + self._archived = None self._name = None - self._label = None self._display_order = None - self._archived = None + self._label = None self.discriminator = None + self.archived = archived self.name = name - self.label = label self.display_order = display_order - self.archived = archived + self.label = label + + @property + def archived(self): + """Gets the archived of this PropertyGroup. # noqa: E501 + + + :return: The archived of this PropertyGroup. # noqa: E501 + :rtype: bool + """ + return self._archived + + @archived.setter + def archived(self, archived): + """Sets the archived of this PropertyGroup. + + + :param archived: The archived of this PropertyGroup. # noqa: E501 + :type archived: bool + """ + if self.local_vars_configuration.client_side_validation and archived is None: # noqa: E501 + raise ValueError("Invalid value for `archived`, must not be `None`") # noqa: E501 + + self._archived = archived @property def name(self): @@ -81,31 +104,6 @@ def name(self, name): self._name = name - @property - def label(self): - """Gets the label of this PropertyGroup. # noqa: E501 - - A human-readable label that will be shown in HubSpot. # noqa: E501 - - :return: The label of this PropertyGroup. # noqa: E501 - :rtype: str - """ - return self._label - - @label.setter - def label(self, label): - """Sets the label of this PropertyGroup. - - A human-readable label that will be shown in HubSpot. # noqa: E501 - - :param label: The label of this PropertyGroup. # noqa: E501 - :type label: str - """ - if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 - raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 - - self._label = label - @property def display_order(self): """Gets the display_order of this PropertyGroup. # noqa: E501 @@ -132,27 +130,29 @@ def display_order(self, display_order): self._display_order = display_order @property - def archived(self): - """Gets the archived of this PropertyGroup. # noqa: E501 + def label(self): + """Gets the label of this PropertyGroup. # noqa: E501 + A human-readable label that will be shown in HubSpot. # noqa: E501 - :return: The archived of this PropertyGroup. # noqa: E501 - :rtype: bool + :return: The label of this PropertyGroup. # noqa: E501 + :rtype: str """ - return self._archived + return self._label - @archived.setter - def archived(self, archived): - """Sets the archived of this PropertyGroup. + @label.setter + def label(self, label): + """Sets the label of this PropertyGroup. + A human-readable label that will be shown in HubSpot. # noqa: E501 - :param archived: The archived of this PropertyGroup. # noqa: E501 - :type archived: bool + :param label: The label of this PropertyGroup. # noqa: E501 + :type label: str """ - if self.local_vars_configuration.client_side_validation and archived is None: # noqa: E501 - raise ValueError("Invalid value for `archived`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 + raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 - self._archived = archived + self._label = label def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/properties/models/property_group_create.py b/hubspot/crm/properties/models/property_group_create.py index 63cab70f..623f5fc9 100644 --- a/hubspot/crm/properties/models/property_group_create.py +++ b/hubspot/crm/properties/models/property_group_create.py @@ -35,25 +35,25 @@ class PropertyGroupCreate(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"name": "str", "label": "str", "display_order": "int"} + openapi_types = {"name": "str", "display_order": "int", "label": "str"} - attribute_map = {"name": "name", "label": "label", "display_order": "displayOrder"} + attribute_map = {"name": "name", "display_order": "displayOrder", "label": "label"} - def __init__(self, name=None, label=None, display_order=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, name=None, display_order=None, label=None, local_vars_configuration=None): # noqa: E501 """PropertyGroupCreate - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration self._name = None - self._label = None self._display_order = None + self._label = None self.discriminator = None self.name = name - self.label = label if display_order is not None: self.display_order = display_order + self.label = label @property def name(self): @@ -80,6 +80,29 @@ def name(self, name): self._name = name + @property + def display_order(self): + """Gets the display_order of this PropertyGroupCreate. # noqa: E501 + + Property groups are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property group to be displayed after any positive values. # noqa: E501 + + :return: The display_order of this PropertyGroupCreate. # noqa: E501 + :rtype: int + """ + return self._display_order + + @display_order.setter + def display_order(self, display_order): + """Sets the display_order of this PropertyGroupCreate. + + Property groups are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property group to be displayed after any positive values. # noqa: E501 + + :param display_order: The display_order of this PropertyGroupCreate. # noqa: E501 + :type display_order: int + """ + + self._display_order = display_order + @property def label(self): """Gets the label of this PropertyGroupCreate. # noqa: E501 @@ -105,29 +128,6 @@ def label(self, label): self._label = label - @property - def display_order(self): - """Gets the display_order of this PropertyGroupCreate. # noqa: E501 - - Property groups are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property group to be displayed after any positive values. # noqa: E501 - - :return: The display_order of this PropertyGroupCreate. # noqa: E501 - :rtype: int - """ - return self._display_order - - @display_order.setter - def display_order(self, display_order): - """Sets the display_order of this PropertyGroupCreate. - - Property groups are displayed in order starting with the lowest positive integer value. Values of -1 will cause the property group to be displayed after any positive values. # noqa: E501 - - :param display_order: The display_order of this PropertyGroupCreate. # noqa: E501 - :type display_order: int - """ - - self._display_order = display_order - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/properties/models/property_group_update.py b/hubspot/crm/properties/models/property_group_update.py index ae02a4b4..9f72b952 100644 --- a/hubspot/crm/properties/models/property_group_update.py +++ b/hubspot/crm/properties/models/property_group_update.py @@ -35,47 +35,24 @@ class PropertyGroupUpdate(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"label": "str", "display_order": "int"} + openapi_types = {"display_order": "int", "label": "str"} - attribute_map = {"label": "label", "display_order": "displayOrder"} + attribute_map = {"display_order": "displayOrder", "label": "label"} - def __init__(self, label=None, display_order=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, display_order=None, label=None, local_vars_configuration=None): # noqa: E501 """PropertyGroupUpdate - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._label = None self._display_order = None + self._label = None self.discriminator = None - if label is not None: - self.label = label if display_order is not None: self.display_order = display_order - - @property - def label(self): - """Gets the label of this PropertyGroupUpdate. # noqa: E501 - - A human-readable label that will be shown in HubSpot. # noqa: E501 - - :return: The label of this PropertyGroupUpdate. # noqa: E501 - :rtype: str - """ - return self._label - - @label.setter - def label(self, label): - """Sets the label of this PropertyGroupUpdate. - - A human-readable label that will be shown in HubSpot. # noqa: E501 - - :param label: The label of this PropertyGroupUpdate. # noqa: E501 - :type label: str - """ - - self._label = label + if label is not None: + self.label = label @property def display_order(self): @@ -100,6 +77,29 @@ def display_order(self, display_order): self._display_order = display_order + @property + def label(self): + """Gets the label of this PropertyGroupUpdate. # noqa: E501 + + A human-readable label that will be shown in HubSpot. # noqa: E501 + + :return: The label of this PropertyGroupUpdate. # noqa: E501 + :rtype: str + """ + return self._label + + @label.setter + def label(self, label): + """Sets the label of this PropertyGroupUpdate. + + A human-readable label that will be shown in HubSpot. # noqa: E501 + + :param label: The label of this PropertyGroupUpdate. # noqa: E501 + :type label: str + """ + + self._label = label + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/properties/models/property_modification_metadata.py b/hubspot/crm/properties/models/property_modification_metadata.py index d025fadb..b071326c 100644 --- a/hubspot/crm/properties/models/property_modification_metadata.py +++ b/hubspot/crm/properties/models/property_modification_metadata.py @@ -35,50 +35,71 @@ class PropertyModificationMetadata(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"archivable": "bool", "read_only_definition": "bool", "read_only_options": "bool", "read_only_value": "bool"} + openapi_types = {"read_only_options": "bool", "read_only_value": "bool", "read_only_definition": "bool", "archivable": "bool"} - attribute_map = {"archivable": "archivable", "read_only_definition": "readOnlyDefinition", "read_only_options": "readOnlyOptions", "read_only_value": "readOnlyValue"} + attribute_map = {"read_only_options": "readOnlyOptions", "read_only_value": "readOnlyValue", "read_only_definition": "readOnlyDefinition", "archivable": "archivable"} - def __init__(self, archivable=None, read_only_definition=None, read_only_options=None, read_only_value=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, read_only_options=None, read_only_value=None, read_only_definition=None, archivable=None, local_vars_configuration=None): # noqa: E501 """PropertyModificationMetadata - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._archivable = None - self._read_only_definition = None self._read_only_options = None self._read_only_value = None + self._read_only_definition = None + self._archivable = None self.discriminator = None - self.archivable = archivable - self.read_only_definition = read_only_definition if read_only_options is not None: self.read_only_options = read_only_options self.read_only_value = read_only_value + self.read_only_definition = read_only_definition + self.archivable = archivable @property - def archivable(self): - """Gets the archivable of this PropertyModificationMetadata. # noqa: E501 + def read_only_options(self): + """Gets the read_only_options of this PropertyModificationMetadata. # noqa: E501 - :return: The archivable of this PropertyModificationMetadata. # noqa: E501 + :return: The read_only_options of this PropertyModificationMetadata. # noqa: E501 :rtype: bool """ - return self._archivable + return self._read_only_options - @archivable.setter - def archivable(self, archivable): - """Sets the archivable of this PropertyModificationMetadata. + @read_only_options.setter + def read_only_options(self, read_only_options): + """Sets the read_only_options of this PropertyModificationMetadata. - :param archivable: The archivable of this PropertyModificationMetadata. # noqa: E501 - :type archivable: bool + :param read_only_options: The read_only_options of this PropertyModificationMetadata. # noqa: E501 + :type read_only_options: bool """ - if self.local_vars_configuration.client_side_validation and archivable is None: # noqa: E501 - raise ValueError("Invalid value for `archivable`, must not be `None`") # noqa: E501 - self._archivable = archivable + self._read_only_options = read_only_options + + @property + def read_only_value(self): + """Gets the read_only_value of this PropertyModificationMetadata. # noqa: E501 + + + :return: The read_only_value of this PropertyModificationMetadata. # noqa: E501 + :rtype: bool + """ + return self._read_only_value + + @read_only_value.setter + def read_only_value(self, read_only_value): + """Sets the read_only_value of this PropertyModificationMetadata. + + + :param read_only_value: The read_only_value of this PropertyModificationMetadata. # noqa: E501 + :type read_only_value: bool + """ + if self.local_vars_configuration.client_side_validation and read_only_value is None: # noqa: E501 + raise ValueError("Invalid value for `read_only_value`, must not be `None`") # noqa: E501 + + self._read_only_value = read_only_value @property def read_only_definition(self): @@ -104,48 +125,27 @@ def read_only_definition(self, read_only_definition): self._read_only_definition = read_only_definition @property - def read_only_options(self): - """Gets the read_only_options of this PropertyModificationMetadata. # noqa: E501 - - - :return: The read_only_options of this PropertyModificationMetadata. # noqa: E501 - :rtype: bool - """ - return self._read_only_options - - @read_only_options.setter - def read_only_options(self, read_only_options): - """Sets the read_only_options of this PropertyModificationMetadata. - - - :param read_only_options: The read_only_options of this PropertyModificationMetadata. # noqa: E501 - :type read_only_options: bool - """ - - self._read_only_options = read_only_options - - @property - def read_only_value(self): - """Gets the read_only_value of this PropertyModificationMetadata. # noqa: E501 + def archivable(self): + """Gets the archivable of this PropertyModificationMetadata. # noqa: E501 - :return: The read_only_value of this PropertyModificationMetadata. # noqa: E501 + :return: The archivable of this PropertyModificationMetadata. # noqa: E501 :rtype: bool """ - return self._read_only_value + return self._archivable - @read_only_value.setter - def read_only_value(self, read_only_value): - """Sets the read_only_value of this PropertyModificationMetadata. + @archivable.setter + def archivable(self, archivable): + """Sets the archivable of this PropertyModificationMetadata. - :param read_only_value: The read_only_value of this PropertyModificationMetadata. # noqa: E501 - :type read_only_value: bool + :param archivable: The archivable of this PropertyModificationMetadata. # noqa: E501 + :type archivable: bool """ - if self.local_vars_configuration.client_side_validation and read_only_value is None: # noqa: E501 - raise ValueError("Invalid value for `read_only_value`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and archivable is None: # noqa: E501 + raise ValueError("Invalid value for `archivable`, must not be `None`") # noqa: E501 - self._read_only_value = read_only_value + self._archivable = archivable def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/properties/models/property_update.py b/hubspot/crm/properties/models/property_update.py index 7f91c8e7..5e0eb3a7 100644 --- a/hubspot/crm/properties/models/property_update.py +++ b/hubspot/crm/properties/models/property_update.py @@ -36,43 +36,43 @@ class PropertyUpdate(object): and the value is json key in definition. """ openapi_types = { - "label": "str", - "type": "str", - "field_type": "str", "group_name": "str", - "description": "str", + "hidden": "bool", "options": "list[OptionInput]", "display_order": "int", - "hidden": "bool", - "form_field": "bool", + "description": "str", "calculation_formula": "str", + "label": "str", + "type": "str", + "field_type": "str", + "form_field": "bool", } attribute_map = { - "label": "label", - "type": "type", - "field_type": "fieldType", "group_name": "groupName", - "description": "description", + "hidden": "hidden", "options": "options", "display_order": "displayOrder", - "hidden": "hidden", - "form_field": "formField", + "description": "description", "calculation_formula": "calculationFormula", + "label": "label", + "type": "type", + "field_type": "fieldType", + "form_field": "formField", } def __init__( self, - label=None, - type=None, - field_type=None, group_name=None, - description=None, + hidden=None, options=None, display_order=None, - hidden=None, - form_field=None, + description=None, calculation_formula=None, + label=None, + type=None, + field_type=None, + form_field=None, local_vars_configuration=None, ): # noqa: E501 """PropertyUpdate - a model defined in OpenAPI""" # noqa: E501 @@ -80,136 +80,130 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._label = None - self._type = None - self._field_type = None self._group_name = None - self._description = None + self._hidden = None self._options = None self._display_order = None - self._hidden = None - self._form_field = None + self._description = None self._calculation_formula = None + self._label = None + self._type = None + self._field_type = None + self._form_field = None self.discriminator = None - if label is not None: - self.label = label - if type is not None: - self.type = type - if field_type is not None: - self.field_type = field_type if group_name is not None: self.group_name = group_name - if description is not None: - self.description = description + if hidden is not None: + self.hidden = hidden if options is not None: self.options = options if display_order is not None: self.display_order = display_order - if hidden is not None: - self.hidden = hidden - if form_field is not None: - self.form_field = form_field + if description is not None: + self.description = description if calculation_formula is not None: self.calculation_formula = calculation_formula + if label is not None: + self.label = label + if type is not None: + self.type = type + if field_type is not None: + self.field_type = field_type + if form_field is not None: + self.form_field = form_field @property - def label(self): - """Gets the label of this PropertyUpdate. # noqa: E501 + def group_name(self): + """Gets the group_name of this PropertyUpdate. # noqa: E501 - A human-readable property label that will be shown in HubSpot. # noqa: E501 + The name of the property group the property belongs to. # noqa: E501 - :return: The label of this PropertyUpdate. # noqa: E501 + :return: The group_name of this PropertyUpdate. # noqa: E501 :rtype: str """ - return self._label + return self._group_name - @label.setter - def label(self, label): - """Sets the label of this PropertyUpdate. + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this PropertyUpdate. - A human-readable property label that will be shown in HubSpot. # noqa: E501 + The name of the property group the property belongs to. # noqa: E501 - :param label: The label of this PropertyUpdate. # noqa: E501 - :type label: str + :param group_name: The group_name of this PropertyUpdate. # noqa: E501 + :type group_name: str """ - self._label = label + self._group_name = group_name @property - def type(self): - """Gets the type of this PropertyUpdate. # noqa: E501 + def hidden(self): + """Gets the hidden of this PropertyUpdate. # noqa: E501 - The data type of the property. # noqa: E501 + If true, the property won't be visible and can't be used in HubSpot. # noqa: E501 - :return: The type of this PropertyUpdate. # noqa: E501 - :rtype: str + :return: The hidden of this PropertyUpdate. # noqa: E501 + :rtype: bool """ - return self._type + return self._hidden - @type.setter - def type(self, type): - """Sets the type of this PropertyUpdate. + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this PropertyUpdate. - The data type of the property. # noqa: E501 + If true, the property won't be visible and can't be used in HubSpot. # noqa: E501 - :param type: The type of this PropertyUpdate. # noqa: E501 - :type type: str + :param hidden: The hidden of this PropertyUpdate. # noqa: E501 + :type hidden: bool """ - allowed_values = ["string", "number", "date", "datetime", "enumeration", "bool"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `type` ({0}), must be one of {1}".format(type, allowed_values)) # noqa: E501 - self._type = type + self._hidden = hidden @property - def field_type(self): - """Gets the field_type of this PropertyUpdate. # noqa: E501 + def options(self): + """Gets the options of this PropertyUpdate. # noqa: E501 - Controls how the property appears in HubSpot. # noqa: E501 + A list of valid options for the property. # noqa: E501 - :return: The field_type of this PropertyUpdate. # noqa: E501 - :rtype: str + :return: The options of this PropertyUpdate. # noqa: E501 + :rtype: list[OptionInput] """ - return self._field_type + return self._options - @field_type.setter - def field_type(self, field_type): - """Sets the field_type of this PropertyUpdate. + @options.setter + def options(self, options): + """Sets the options of this PropertyUpdate. - Controls how the property appears in HubSpot. # noqa: E501 + A list of valid options for the property. # noqa: E501 - :param field_type: The field_type of this PropertyUpdate. # noqa: E501 - :type field_type: str + :param options: The options of this PropertyUpdate. # noqa: E501 + :type options: list[OptionInput] """ - allowed_values = ["textarea", "text", "date", "file", "number", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and field_type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `field_type` ({0}), must be one of {1}".format(field_type, allowed_values)) # noqa: E501 - self._field_type = field_type + self._options = options @property - def group_name(self): - """Gets the group_name of this PropertyUpdate. # noqa: E501 + def display_order(self): + """Gets the display_order of this PropertyUpdate. # noqa: E501 - The name of the property group the property belongs to. # noqa: E501 + Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the Property to be displayed after any positive values. # noqa: E501 - :return: The group_name of this PropertyUpdate. # noqa: E501 - :rtype: str + :return: The display_order of this PropertyUpdate. # noqa: E501 + :rtype: int """ - return self._group_name + return self._display_order - @group_name.setter - def group_name(self, group_name): - """Sets the group_name of this PropertyUpdate. + @display_order.setter + def display_order(self, display_order): + """Sets the display_order of this PropertyUpdate. - The name of the property group the property belongs to. # noqa: E501 + Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the Property to be displayed after any positive values. # noqa: E501 - :param group_name: The group_name of this PropertyUpdate. # noqa: E501 - :type group_name: str + :param display_order: The display_order of this PropertyUpdate. # noqa: E501 + :type display_order: int """ - self._group_name = group_name + self._display_order = display_order @property def description(self): @@ -235,73 +229,102 @@ def description(self, description): self._description = description @property - def options(self): - """Gets the options of this PropertyUpdate. # noqa: E501 + def calculation_formula(self): + """Gets the calculation_formula of this PropertyUpdate. # noqa: E501 - A list of valid options for the property. # noqa: E501 + Represents a formula that is used to compute a calculated property. # noqa: E501 - :return: The options of this PropertyUpdate. # noqa: E501 - :rtype: list[OptionInput] + :return: The calculation_formula of this PropertyUpdate. # noqa: E501 + :rtype: str """ - return self._options + return self._calculation_formula - @options.setter - def options(self, options): - """Sets the options of this PropertyUpdate. + @calculation_formula.setter + def calculation_formula(self, calculation_formula): + """Sets the calculation_formula of this PropertyUpdate. - A list of valid options for the property. # noqa: E501 + Represents a formula that is used to compute a calculated property. # noqa: E501 - :param options: The options of this PropertyUpdate. # noqa: E501 - :type options: list[OptionInput] + :param calculation_formula: The calculation_formula of this PropertyUpdate. # noqa: E501 + :type calculation_formula: str """ - self._options = options + self._calculation_formula = calculation_formula @property - def display_order(self): - """Gets the display_order of this PropertyUpdate. # noqa: E501 + def label(self): + """Gets the label of this PropertyUpdate. # noqa: E501 - Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the Property to be displayed after any positive values. # noqa: E501 + A human-readable property label that will be shown in HubSpot. # noqa: E501 - :return: The display_order of this PropertyUpdate. # noqa: E501 - :rtype: int + :return: The label of this PropertyUpdate. # noqa: E501 + :rtype: str """ - return self._display_order + return self._label - @display_order.setter - def display_order(self, display_order): - """Sets the display_order of this PropertyUpdate. + @label.setter + def label(self, label): + """Sets the label of this PropertyUpdate. - Properties are displayed in order starting with the lowest positive integer value. Values of -1 will cause the Property to be displayed after any positive values. # noqa: E501 + A human-readable property label that will be shown in HubSpot. # noqa: E501 - :param display_order: The display_order of this PropertyUpdate. # noqa: E501 - :type display_order: int + :param label: The label of this PropertyUpdate. # noqa: E501 + :type label: str """ - self._display_order = display_order + self._label = label @property - def hidden(self): - """Gets the hidden of this PropertyUpdate. # noqa: E501 + def type(self): + """Gets the type of this PropertyUpdate. # noqa: E501 - If true, the property won't be visible and can't be used in HubSpot. # noqa: E501 + The data type of the property. # noqa: E501 - :return: The hidden of this PropertyUpdate. # noqa: E501 - :rtype: bool + :return: The type of this PropertyUpdate. # noqa: E501 + :rtype: str """ - return self._hidden + return self._type - @hidden.setter - def hidden(self, hidden): - """Sets the hidden of this PropertyUpdate. + @type.setter + def type(self, type): + """Sets the type of this PropertyUpdate. - If true, the property won't be visible and can't be used in HubSpot. # noqa: E501 + The data type of the property. # noqa: E501 - :param hidden: The hidden of this PropertyUpdate. # noqa: E501 - :type hidden: bool + :param type: The type of this PropertyUpdate. # noqa: E501 + :type type: str """ + allowed_values = ["string", "number", "date", "datetime", "enumeration", "bool"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `type` ({0}), must be one of {1}".format(type, allowed_values)) # noqa: E501 - self._hidden = hidden + self._type = type + + @property + def field_type(self): + """Gets the field_type of this PropertyUpdate. # noqa: E501 + + Controls how the property appears in HubSpot. # noqa: E501 + + :return: The field_type of this PropertyUpdate. # noqa: E501 + :rtype: str + """ + return self._field_type + + @field_type.setter + def field_type(self, field_type): + """Sets the field_type of this PropertyUpdate. + + Controls how the property appears in HubSpot. # noqa: E501 + + :param field_type: The field_type of this PropertyUpdate. # noqa: E501 + :type field_type: str + """ + allowed_values = ["textarea", "text", "date", "file", "number", "select", "radio", "checkbox", "booleancheckbox", "calculation_equation"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and field_type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `field_type` ({0}), must be one of {1}".format(field_type, allowed_values)) # noqa: E501 + + self._field_type = field_type @property def form_field(self): @@ -326,29 +349,6 @@ def form_field(self, form_field): self._form_field = form_field - @property - def calculation_formula(self): - """Gets the calculation_formula of this PropertyUpdate. # noqa: E501 - - Represents a formula that is used to compute a calculated property. # noqa: E501 - - :return: The calculation_formula of this PropertyUpdate. # noqa: E501 - :rtype: str - """ - return self._calculation_formula - - @calculation_formula.setter - def calculation_formula(self, calculation_formula): - """Sets the calculation_formula of this PropertyUpdate. - - Represents a formula that is used to compute a calculated property. # noqa: E501 - - :param calculation_formula: The calculation_formula of this PropertyUpdate. # noqa: E501 - :type calculation_formula: str - """ - - self._calculation_formula = calculation_formula - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/properties/models/standard_error.py b/hubspot/crm/properties/models/standard_error.py index 1f341256..a291e840 100644 --- a/hubspot/crm/properties/models/standard_error.py +++ b/hubspot/crm/properties/models/standard_error.py @@ -36,67 +36,111 @@ class StandardError(object): and the value is json key in definition. """ openapi_types = { - "status": "str", + "sub_category": "object", + "context": "dict[str, list[str]]", + "links": "dict[str, str]", "id": "str", "category": "str", - "sub_category": "object", "message": "str", "errors": "list[ErrorDetail]", - "context": "dict[str, list[str]]", - "links": "dict[str, str]", + "status": "str", } - attribute_map = {"status": "status", "id": "id", "category": "category", "sub_category": "subCategory", "message": "message", "errors": "errors", "context": "context", "links": "links"} + attribute_map = {"sub_category": "subCategory", "context": "context", "links": "links", "id": "id", "category": "category", "message": "message", "errors": "errors", "status": "status"} - def __init__(self, status=None, id=None, category=None, sub_category=None, message=None, errors=None, context=None, links=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, sub_category=None, context=None, links=None, id=None, category=None, message=None, errors=None, status=None, local_vars_configuration=None): # noqa: E501 """StandardError - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._status = None + self._sub_category = None + self._context = None + self._links = None self._id = None self._category = None - self._sub_category = None self._message = None self._errors = None - self._context = None - self._links = None + self._status = None self.discriminator = None - self.status = status + if sub_category is not None: + self.sub_category = sub_category + self.context = context + self.links = links if id is not None: self.id = id self.category = category - if sub_category is not None: - self.sub_category = sub_category self.message = message self.errors = errors - self.context = context - self.links = links + self.status = status @property - def status(self): - """Gets the status of this StandardError. # noqa: E501 + def sub_category(self): + """Gets the sub_category of this StandardError. # noqa: E501 - :return: The status of this StandardError. # noqa: E501 - :rtype: str + :return: The sub_category of this StandardError. # noqa: E501 + :rtype: object """ - return self._status + return self._sub_category - @status.setter - def status(self, status): - """Sets the status of this StandardError. + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this StandardError. - :param status: The status of this StandardError. # noqa: E501 - :type status: str + :param sub_category: The sub_category of this StandardError. # noqa: E501 + :type sub_category: object """ - if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._status = status + self._sub_category = sub_category + + @property + def context(self): + """Gets the context of this StandardError. # noqa: E501 + + + :return: The context of this StandardError. # noqa: E501 + :rtype: dict[str, list[str]] + """ + return self._context + + @context.setter + def context(self, context): + """Sets the context of this StandardError. + + + :param context: The context of this StandardError. # noqa: E501 + :type context: dict[str, list[str]] + """ + if self.local_vars_configuration.client_side_validation and context is None: # noqa: E501 + raise ValueError("Invalid value for `context`, must not be `None`") # noqa: E501 + + self._context = context + + @property + def links(self): + """Gets the links of this StandardError. # noqa: E501 + + + :return: The links of this StandardError. # noqa: E501 + :rtype: dict[str, str] + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this StandardError. + + + :param links: The links of this StandardError. # noqa: E501 + :type links: dict[str, str] + """ + if self.local_vars_configuration.client_side_validation and links is None: # noqa: E501 + raise ValueError("Invalid value for `links`, must not be `None`") # noqa: E501 + + self._links = links @property def id(self): @@ -142,27 +186,6 @@ def category(self, category): self._category = category - @property - def sub_category(self): - """Gets the sub_category of this StandardError. # noqa: E501 - - - :return: The sub_category of this StandardError. # noqa: E501 - :rtype: object - """ - return self._sub_category - - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this StandardError. - - - :param sub_category: The sub_category of this StandardError. # noqa: E501 - :type sub_category: object - """ - - self._sub_category = sub_category - @property def message(self): """Gets the message of this StandardError. # noqa: E501 @@ -210,50 +233,27 @@ def errors(self, errors): self._errors = errors @property - def context(self): - """Gets the context of this StandardError. # noqa: E501 - - - :return: The context of this StandardError. # noqa: E501 - :rtype: dict[str, list[str]] - """ - return self._context - - @context.setter - def context(self, context): - """Sets the context of this StandardError. - - - :param context: The context of this StandardError. # noqa: E501 - :type context: dict[str, list[str]] - """ - if self.local_vars_configuration.client_side_validation and context is None: # noqa: E501 - raise ValueError("Invalid value for `context`, must not be `None`") # noqa: E501 - - self._context = context - - @property - def links(self): - """Gets the links of this StandardError. # noqa: E501 + def status(self): + """Gets the status of this StandardError. # noqa: E501 - :return: The links of this StandardError. # noqa: E501 - :rtype: dict[str, str] + :return: The status of this StandardError. # noqa: E501 + :rtype: str """ - return self._links + return self._status - @links.setter - def links(self, links): - """Sets the links of this StandardError. + @status.setter + def status(self, status): + """Sets the status of this StandardError. - :param links: The links of this StandardError. # noqa: E501 - :type links: dict[str, str] + :param status: The status of this StandardError. # noqa: E501 + :type status: str """ - if self.local_vars_configuration.client_side_validation and links is None: # noqa: E501 - raise ValueError("Invalid value for `links`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - self._links = links + self._status = status def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/schemas/models/association_definition.py b/hubspot/crm/schemas/models/association_definition.py index 8bff346a..431d85a4 100644 --- a/hubspot/crm/schemas/models/association_definition.py +++ b/hubspot/crm/schemas/models/association_definition.py @@ -35,34 +35,57 @@ class AssociationDefinition(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"from_object_type_id": "str", "to_object_type_id": "str", "name": "str", "id": "str", "created_at": "datetime", "updated_at": "datetime"} + openapi_types = {"created_at": "datetime", "from_object_type_id": "str", "name": "str", "id": "str", "to_object_type_id": "str", "updated_at": "datetime"} - attribute_map = {"from_object_type_id": "fromObjectTypeId", "to_object_type_id": "toObjectTypeId", "name": "name", "id": "id", "created_at": "createdAt", "updated_at": "updatedAt"} + attribute_map = {"created_at": "createdAt", "from_object_type_id": "fromObjectTypeId", "name": "name", "id": "id", "to_object_type_id": "toObjectTypeId", "updated_at": "updatedAt"} - def __init__(self, from_object_type_id=None, to_object_type_id=None, name=None, id=None, created_at=None, updated_at=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, created_at=None, from_object_type_id=None, name=None, id=None, to_object_type_id=None, updated_at=None, local_vars_configuration=None): # noqa: E501 """AssociationDefinition - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration + self._created_at = None self._from_object_type_id = None - self._to_object_type_id = None self._name = None self._id = None - self._created_at = None + self._to_object_type_id = None self._updated_at = None self.discriminator = None + if created_at is not None: + self.created_at = created_at self.from_object_type_id = from_object_type_id - self.to_object_type_id = to_object_type_id if name is not None: self.name = name self.id = id - if created_at is not None: - self.created_at = created_at + self.to_object_type_id = to_object_type_id if updated_at is not None: self.updated_at = updated_at + @property + def created_at(self): + """Gets the created_at of this AssociationDefinition. # noqa: E501 + + When the association was defined. # noqa: E501 + + :return: The created_at of this AssociationDefinition. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this AssociationDefinition. + + When the association was defined. # noqa: E501 + + :param created_at: The created_at of this AssociationDefinition. # noqa: E501 + :type created_at: datetime + """ + + self._created_at = created_at + @property def from_object_type_id(self): """Gets the from_object_type_id of this AssociationDefinition. # noqa: E501 @@ -88,31 +111,6 @@ def from_object_type_id(self, from_object_type_id): self._from_object_type_id = from_object_type_id - @property - def to_object_type_id(self): - """Gets the to_object_type_id of this AssociationDefinition. # noqa: E501 - - ID of the target object type ID to link to. # noqa: E501 - - :return: The to_object_type_id of this AssociationDefinition. # noqa: E501 - :rtype: str - """ - return self._to_object_type_id - - @to_object_type_id.setter - def to_object_type_id(self, to_object_type_id): - """Sets the to_object_type_id of this AssociationDefinition. - - ID of the target object type ID to link to. # noqa: E501 - - :param to_object_type_id: The to_object_type_id of this AssociationDefinition. # noqa: E501 - :type to_object_type_id: str - """ - if self.local_vars_configuration.client_side_validation and to_object_type_id is None: # noqa: E501 - raise ValueError("Invalid value for `to_object_type_id`, must not be `None`") # noqa: E501 - - self._to_object_type_id = to_object_type_id - @property def name(self): """Gets the name of this AssociationDefinition. # noqa: E501 @@ -162,27 +160,29 @@ def id(self, id): self._id = id @property - def created_at(self): - """Gets the created_at of this AssociationDefinition. # noqa: E501 + def to_object_type_id(self): + """Gets the to_object_type_id of this AssociationDefinition. # noqa: E501 - When the association was defined. # noqa: E501 + ID of the target object type ID to link to. # noqa: E501 - :return: The created_at of this AssociationDefinition. # noqa: E501 - :rtype: datetime + :return: The to_object_type_id of this AssociationDefinition. # noqa: E501 + :rtype: str """ - return self._created_at + return self._to_object_type_id - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this AssociationDefinition. + @to_object_type_id.setter + def to_object_type_id(self, to_object_type_id): + """Sets the to_object_type_id of this AssociationDefinition. - When the association was defined. # noqa: E501 + ID of the target object type ID to link to. # noqa: E501 - :param created_at: The created_at of this AssociationDefinition. # noqa: E501 - :type created_at: datetime + :param to_object_type_id: The to_object_type_id of this AssociationDefinition. # noqa: E501 + :type to_object_type_id: str """ + if self.local_vars_configuration.client_side_validation and to_object_type_id is None: # noqa: E501 + raise ValueError("Invalid value for `to_object_type_id`, must not be `None`") # noqa: E501 - self._created_at = created_at + self._to_object_type_id = to_object_type_id @property def updated_at(self): diff --git a/hubspot/crm/schemas/models/association_definition_egg.py b/hubspot/crm/schemas/models/association_definition_egg.py index 6c0d5f67..e2861f3e 100644 --- a/hubspot/crm/schemas/models/association_definition_egg.py +++ b/hubspot/crm/schemas/models/association_definition_egg.py @@ -35,25 +35,25 @@ class AssociationDefinitionEgg(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"from_object_type_id": "str", "to_object_type_id": "str", "name": "str"} + openapi_types = {"from_object_type_id": "str", "name": "str", "to_object_type_id": "str"} - attribute_map = {"from_object_type_id": "fromObjectTypeId", "to_object_type_id": "toObjectTypeId", "name": "name"} + attribute_map = {"from_object_type_id": "fromObjectTypeId", "name": "name", "to_object_type_id": "toObjectTypeId"} - def __init__(self, from_object_type_id=None, to_object_type_id=None, name=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, from_object_type_id=None, name=None, to_object_type_id=None, local_vars_configuration=None): # noqa: E501 """AssociationDefinitionEgg - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration self._from_object_type_id = None - self._to_object_type_id = None self._name = None + self._to_object_type_id = None self.discriminator = None self.from_object_type_id = from_object_type_id - self.to_object_type_id = to_object_type_id if name is not None: self.name = name + self.to_object_type_id = to_object_type_id @property def from_object_type_id(self): @@ -80,6 +80,29 @@ def from_object_type_id(self, from_object_type_id): self._from_object_type_id = from_object_type_id + @property + def name(self): + """Gets the name of this AssociationDefinitionEgg. # noqa: E501 + + A unique name for this association. # noqa: E501 + + :return: The name of this AssociationDefinitionEgg. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AssociationDefinitionEgg. + + A unique name for this association. # noqa: E501 + + :param name: The name of this AssociationDefinitionEgg. # noqa: E501 + :type name: str + """ + + self._name = name + @property def to_object_type_id(self): """Gets the to_object_type_id of this AssociationDefinitionEgg. # noqa: E501 @@ -105,29 +128,6 @@ def to_object_type_id(self, to_object_type_id): self._to_object_type_id = to_object_type_id - @property - def name(self): - """Gets the name of this AssociationDefinitionEgg. # noqa: E501 - - A unique name for this association. # noqa: E501 - - :return: The name of this AssociationDefinitionEgg. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this AssociationDefinitionEgg. - - A unique name for this association. # noqa: E501 - - :param name: The name of this AssociationDefinitionEgg. # noqa: E501 - :type name: str - """ - - self._name = name - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/schemas/models/error.py b/hubspot/crm/schemas/models/error.py index da1f6be4..0e133304 100644 --- a/hubspot/crm/schemas/models/error.py +++ b/hubspot/crm/schemas/models/error.py @@ -35,61 +35,82 @@ class Error(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"message": "str", "correlation_id": "str", "category": "str", "sub_category": "str", "errors": "list[ErrorDetail]", "context": "dict[str, list[str]]", "links": "dict[str, str]"} + openapi_types = {"sub_category": "str", "context": "dict[str, list[str]]", "correlation_id": "str", "links": "dict[str, str]", "message": "str", "category": "str", "errors": "list[ErrorDetail]"} - attribute_map = {"message": "message", "correlation_id": "correlationId", "category": "category", "sub_category": "subCategory", "errors": "errors", "context": "context", "links": "links"} + attribute_map = {"sub_category": "subCategory", "context": "context", "correlation_id": "correlationId", "links": "links", "message": "message", "category": "category", "errors": "errors"} - def __init__(self, message=None, correlation_id=None, category=None, sub_category=None, errors=None, context=None, links=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, sub_category=None, context=None, correlation_id=None, links=None, message=None, category=None, errors=None, local_vars_configuration=None): # noqa: E501 """Error - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._message = None - self._correlation_id = None - self._category = None self._sub_category = None - self._errors = None self._context = None + self._correlation_id = None self._links = None + self._message = None + self._category = None + self._errors = None self.discriminator = None - self.message = message - self.correlation_id = correlation_id - self.category = category if sub_category is not None: self.sub_category = sub_category - if errors is not None: - self.errors = errors if context is not None: self.context = context + self.correlation_id = correlation_id if links is not None: self.links = links + self.message = message + self.category = category + if errors is not None: + self.errors = errors @property - def message(self): - """Gets the message of this Error. # noqa: E501 + def sub_category(self): + """Gets the sub_category of this Error. # noqa: E501 - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :return: The message of this Error. # noqa: E501 + :return: The sub_category of this Error. # noqa: E501 :rtype: str """ - return self._message + return self._sub_category - @message.setter - def message(self, message): - """Sets the message of this Error. + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this Error. - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :param message: The message of this Error. # noqa: E501 - :type message: str + :param sub_category: The sub_category of this Error. # noqa: E501 + :type sub_category: str """ - if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - self._message = message + self._sub_category = sub_category + + @property + def context(self): + """Gets the context of this Error. # noqa: E501 + + Context about the error condition # noqa: E501 + + :return: The context of this Error. # noqa: E501 + :rtype: dict[str, list[str]] + """ + return self._context + + @context.setter + def context(self, context): + """Sets the context of this Error. + + Context about the error condition # noqa: E501 + + :param context: The context of this Error. # noqa: E501 + :type context: dict[str, list[str]] + """ + + self._context = context @property def correlation_id(self): @@ -116,6 +137,54 @@ def correlation_id(self, correlation_id): self._correlation_id = correlation_id + @property + def links(self): + """Gets the links of this Error. # noqa: E501 + + A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 + + :return: The links of this Error. # noqa: E501 + :rtype: dict[str, str] + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this Error. + + A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 + + :param links: The links of this Error. # noqa: E501 + :type links: dict[str, str] + """ + + self._links = links + + @property + def message(self): + """Gets the message of this Error. # noqa: E501 + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :return: The message of this Error. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this Error. + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :param message: The message of this Error. # noqa: E501 + :type message: str + """ + if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 + raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 + + self._message = message + @property def category(self): """Gets the category of this Error. # noqa: E501 @@ -141,29 +210,6 @@ def category(self, category): self._category = category - @property - def sub_category(self): - """Gets the sub_category of this Error. # noqa: E501 - - A specific category that contains more specific detail about the error # noqa: E501 - - :return: The sub_category of this Error. # noqa: E501 - :rtype: str - """ - return self._sub_category - - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this Error. - - A specific category that contains more specific detail about the error # noqa: E501 - - :param sub_category: The sub_category of this Error. # noqa: E501 - :type sub_category: str - """ - - self._sub_category = sub_category - @property def errors(self): """Gets the errors of this Error. # noqa: E501 @@ -187,52 +233,6 @@ def errors(self, errors): self._errors = errors - @property - def context(self): - """Gets the context of this Error. # noqa: E501 - - Context about the error condition # noqa: E501 - - :return: The context of this Error. # noqa: E501 - :rtype: dict[str, list[str]] - """ - return self._context - - @context.setter - def context(self, context): - """Sets the context of this Error. - - Context about the error condition # noqa: E501 - - :param context: The context of this Error. # noqa: E501 - :type context: dict[str, list[str]] - """ - - self._context = context - - @property - def links(self): - """Gets the links of this Error. # noqa: E501 - - A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 - - :return: The links of this Error. # noqa: E501 - :rtype: dict[str, str] - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this Error. - - A map of link names to associated URIs containing documentation about the error or recommended remediation steps # noqa: E501 - - :param links: The links of this Error. # noqa: E501 - :type links: dict[str, str] - """ - - self._links = links - def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/schemas/models/error_detail.py b/hubspot/crm/schemas/models/error_detail.py index 6a32af5d..ea0b8fe5 100644 --- a/hubspot/crm/schemas/models/error_detail.py +++ b/hubspot/crm/schemas/models/error_detail.py @@ -35,80 +35,55 @@ class ErrorDetail(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"message": "str", "_in": "str", "code": "str", "sub_category": "str", "context": "dict[str, list[str]]"} + openapi_types = {"sub_category": "str", "code": "str", "_in": "str", "context": "dict[str, list[str]]", "message": "str"} - attribute_map = {"message": "message", "_in": "in", "code": "code", "sub_category": "subCategory", "context": "context"} + attribute_map = {"sub_category": "subCategory", "code": "code", "_in": "in", "context": "context", "message": "message"} - def __init__(self, message=None, _in=None, code=None, sub_category=None, context=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, sub_category=None, code=None, _in=None, context=None, message=None, local_vars_configuration=None): # noqa: E501 """ErrorDetail - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._message = None - self.__in = None - self._code = None self._sub_category = None + self._code = None + self.__in = None self._context = None + self._message = None self.discriminator = None - self.message = message - if _in is not None: - self._in = _in - if code is not None: - self.code = code if sub_category is not None: self.sub_category = sub_category + if code is not None: + self.code = code + if _in is not None: + self._in = _in if context is not None: self.context = context + self.message = message @property - def message(self): - """Gets the message of this ErrorDetail. # noqa: E501 - - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 - - :return: The message of this ErrorDetail. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this ErrorDetail. - - A human readable message describing the error along with remediation steps where appropriate # noqa: E501 - - :param message: The message of this ErrorDetail. # noqa: E501 - :type message: str - """ - if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - - self._message = message - - @property - def _in(self): - """Gets the _in of this ErrorDetail. # noqa: E501 + def sub_category(self): + """Gets the sub_category of this ErrorDetail. # noqa: E501 - The name of the field or parameter in which the error was found. # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :return: The _in of this ErrorDetail. # noqa: E501 + :return: The sub_category of this ErrorDetail. # noqa: E501 :rtype: str """ - return self.__in + return self._sub_category - @_in.setter - def _in(self, _in): - """Sets the _in of this ErrorDetail. + @sub_category.setter + def sub_category(self, sub_category): + """Sets the sub_category of this ErrorDetail. - The name of the field or parameter in which the error was found. # noqa: E501 + A specific category that contains more specific detail about the error # noqa: E501 - :param _in: The _in of this ErrorDetail. # noqa: E501 - :type _in: str + :param sub_category: The sub_category of this ErrorDetail. # noqa: E501 + :type sub_category: str """ - self.__in = _in + self._sub_category = sub_category @property def code(self): @@ -134,27 +109,27 @@ def code(self, code): self._code = code @property - def sub_category(self): - """Gets the sub_category of this ErrorDetail. # noqa: E501 + def _in(self): + """Gets the _in of this ErrorDetail. # noqa: E501 - A specific category that contains more specific detail about the error # noqa: E501 + The name of the field or parameter in which the error was found. # noqa: E501 - :return: The sub_category of this ErrorDetail. # noqa: E501 + :return: The _in of this ErrorDetail. # noqa: E501 :rtype: str """ - return self._sub_category + return self.__in - @sub_category.setter - def sub_category(self, sub_category): - """Sets the sub_category of this ErrorDetail. + @_in.setter + def _in(self, _in): + """Sets the _in of this ErrorDetail. - A specific category that contains more specific detail about the error # noqa: E501 + The name of the field or parameter in which the error was found. # noqa: E501 - :param sub_category: The sub_category of this ErrorDetail. # noqa: E501 - :type sub_category: str + :param _in: The _in of this ErrorDetail. # noqa: E501 + :type _in: str """ - self._sub_category = sub_category + self.__in = _in @property def context(self): @@ -179,6 +154,31 @@ def context(self, context): self._context = context + @property + def message(self): + """Gets the message of this ErrorDetail. # noqa: E501 + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :return: The message of this ErrorDetail. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ErrorDetail. + + A human readable message describing the error along with remediation steps where appropriate # noqa: E501 + + :param message: The message of this ErrorDetail. # noqa: E501 + :type message: str + """ + if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501 + raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 + + self._message = message + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/schemas/models/model_property.py b/hubspot/crm/schemas/models/model_property.py index c412d31d..8535a3e4 100644 --- a/hubspot/crm/schemas/models/model_property.py +++ b/hubspot/crm/schemas/models/model_property.py @@ -36,82 +36,85 @@ class ModelProperty(object): and the value is json key in definition. """ openapi_types = { - "updated_at": "datetime", - "created_at": "datetime", - "archived_at": "datetime", - "name": "str", + "created_user_id": "str", + "hidden": "bool", + "modification_metadata": "PropertyModificationMetadata", + "display_order": "int", + "description": "str", + "show_currency_symbol": "bool", "label": "str", "type": "str", - "field_type": "str", - "description": "str", + "hubspot_defined": "bool", + "form_field": "bool", + "created_at": "datetime", + "archived_at": "datetime", + "archived": "bool", "group_name": "str", + "referenced_object_type": "str", + "name": "str", "options": "list[Option]", - "created_user_id": "str", + "calculation_formula": "str", + "has_unique_value": "bool", + "field_type": "str", "updated_user_id": "str", - "referenced_object_type": "str", - "display_order": "int", "calculated": "bool", "external_options": "bool", - "archived": "bool", - "has_unique_value": "bool", - "hidden": "bool", - "hubspot_defined": "bool", - "show_currency_symbol": "bool", - "modification_metadata": "PropertyModificationMetadata", - "form_field": "bool", + "updated_at": "datetime", } attribute_map = { - "updated_at": "updatedAt", - "created_at": "createdAt", - "archived_at": "archivedAt", - "name": "name", + "created_user_id": "createdUserId", + "hidden": "hidden", + "modification_metadata": "modificationMetadata", + "display_order": "displayOrder", + "description": "description", + "show_currency_symbol": "showCurrencySymbol", "label": "label", "type": "type", - "field_type": "fieldType", - "description": "description", + "hubspot_defined": "hubspotDefined", + "form_field": "formField", + "created_at": "createdAt", + "archived_at": "archivedAt", + "archived": "archived", "group_name": "groupName", + "referenced_object_type": "referencedObjectType", + "name": "name", "options": "options", - "created_user_id": "createdUserId", + "calculation_formula": "calculationFormula", + "has_unique_value": "hasUniqueValue", + "field_type": "fieldType", "updated_user_id": "updatedUserId", - "referenced_object_type": "referencedObjectType", - "display_order": "displayOrder", "calculated": "calculated", "external_options": "externalOptions", - "archived": "archived", - "has_unique_value": "hasUniqueValue", - "hidden": "hidden", - "hubspot_defined": "hubspotDefined", - "show_currency_symbol": "showCurrencySymbol", - "modification_metadata": "modificationMetadata", - "form_field": "formField", + "updated_at": "updatedAt", } def __init__( self, - updated_at=None, - created_at=None, - archived_at=None, - name=None, + created_user_id=None, + hidden=None, + modification_metadata=None, + display_order=None, + description=None, + show_currency_symbol=None, label=None, type=None, - field_type=None, - description=None, + hubspot_defined=None, + form_field=None, + created_at=None, + archived_at=None, + archived=None, group_name=None, + referenced_object_type=None, + name=None, options=None, - created_user_id=None, + calculation_formula=None, + has_unique_value=None, + field_type=None, updated_user_id=None, - referenced_object_type=None, - display_order=None, calculated=None, external_options=None, - archived=None, - has_unique_value=None, - hidden=None, - hubspot_defined=None, - show_currency_symbol=None, - modification_metadata=None, - form_field=None, + updated_at=None, local_vars_configuration=None, ): # noqa: E501 """ModelProperty - a model defined in OpenAPI""" # noqa: E501 @@ -119,162 +122,209 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._updated_at = None - self._created_at = None - self._archived_at = None - self._name = None + self._created_user_id = None + self._hidden = None + self._modification_metadata = None + self._display_order = None + self._description = None + self._show_currency_symbol = None self._label = None self._type = None - self._field_type = None - self._description = None + self._hubspot_defined = None + self._form_field = None + self._created_at = None + self._archived_at = None + self._archived = None self._group_name = None + self._referenced_object_type = None + self._name = None self._options = None - self._created_user_id = None + self._calculation_formula = None + self._has_unique_value = None + self._field_type = None self._updated_user_id = None - self._referenced_object_type = None - self._display_order = None self._calculated = None self._external_options = None - self._archived = None - self._has_unique_value = None - self._hidden = None - self._hubspot_defined = None - self._show_currency_symbol = None - self._modification_metadata = None - self._form_field = None + self._updated_at = None self.discriminator = None - if updated_at is not None: - self.updated_at = updated_at + if created_user_id is not None: + self.created_user_id = created_user_id + if hidden is not None: + self.hidden = hidden + if modification_metadata is not None: + self.modification_metadata = modification_metadata + if display_order is not None: + self.display_order = display_order + self.description = description + if show_currency_symbol is not None: + self.show_currency_symbol = show_currency_symbol + self.label = label + self.type = type + if hubspot_defined is not None: + self.hubspot_defined = hubspot_defined + if form_field is not None: + self.form_field = form_field if created_at is not None: self.created_at = created_at if archived_at is not None: self.archived_at = archived_at - self.name = name - self.label = label - self.type = type - self.field_type = field_type - self.description = description + if archived is not None: + self.archived = archived self.group_name = group_name + if referenced_object_type is not None: + self.referenced_object_type = referenced_object_type + self.name = name self.options = options - if created_user_id is not None: - self.created_user_id = created_user_id + if calculation_formula is not None: + self.calculation_formula = calculation_formula + if has_unique_value is not None: + self.has_unique_value = has_unique_value + self.field_type = field_type if updated_user_id is not None: self.updated_user_id = updated_user_id - if referenced_object_type is not None: - self.referenced_object_type = referenced_object_type - if display_order is not None: - self.display_order = display_order if calculated is not None: self.calculated = calculated if external_options is not None: self.external_options = external_options - if archived is not None: - self.archived = archived - if has_unique_value is not None: - self.has_unique_value = has_unique_value - if hidden is not None: - self.hidden = hidden - if hubspot_defined is not None: - self.hubspot_defined = hubspot_defined - if show_currency_symbol is not None: - self.show_currency_symbol = show_currency_symbol - if modification_metadata is not None: - self.modification_metadata = modification_metadata - if form_field is not None: - self.form_field = form_field + if updated_at is not None: + self.updated_at = updated_at @property - def updated_at(self): - """Gets the updated_at of this ModelProperty. # noqa: E501 + def created_user_id(self): + """Gets the created_user_id of this ModelProperty. # noqa: E501 + The internal ID of the user who created the property in HubSpot. This field may not exist if the property was created outside of HubSpot. # noqa: E501 - :return: The updated_at of this ModelProperty. # noqa: E501 - :rtype: datetime + :return: The created_user_id of this ModelProperty. # noqa: E501 + :rtype: str """ - return self._updated_at + return self._created_user_id - @updated_at.setter - def updated_at(self, updated_at): - """Sets the updated_at of this ModelProperty. + @created_user_id.setter + def created_user_id(self, created_user_id): + """Sets the created_user_id of this ModelProperty. + The internal ID of the user who created the property in HubSpot. This field may not exist if the property was created outside of HubSpot. # noqa: E501 - :param updated_at: The updated_at of this ModelProperty. # noqa: E501 - :type updated_at: datetime + :param created_user_id: The created_user_id of this ModelProperty. # noqa: E501 + :type created_user_id: str """ - self._updated_at = updated_at + self._created_user_id = created_user_id @property - def created_at(self): - """Gets the created_at of this ModelProperty. # noqa: E501 + def hidden(self): + """Gets the hidden of this ModelProperty. # noqa: E501 - When the property was created # noqa: E501 - :return: The created_at of this ModelProperty. # noqa: E501 - :rtype: datetime + :return: The hidden of this ModelProperty. # noqa: E501 + :rtype: bool """ - return self._created_at + return self._hidden - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this ModelProperty. + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this ModelProperty. - When the property was created # noqa: E501 - :param created_at: The created_at of this ModelProperty. # noqa: E501 - :type created_at: datetime + :param hidden: The hidden of this ModelProperty. # noqa: E501 + :type hidden: bool """ - self._created_at = created_at + self._hidden = hidden @property - def archived_at(self): - """Gets the archived_at of this ModelProperty. # noqa: E501 + def modification_metadata(self): + """Gets the modification_metadata of this ModelProperty. # noqa: E501 - When the property was archived. # noqa: E501 - :return: The archived_at of this ModelProperty. # noqa: E501 - :rtype: datetime + :return: The modification_metadata of this ModelProperty. # noqa: E501 + :rtype: PropertyModificationMetadata """ - return self._archived_at + return self._modification_metadata - @archived_at.setter - def archived_at(self, archived_at): - """Sets the archived_at of this ModelProperty. + @modification_metadata.setter + def modification_metadata(self, modification_metadata): + """Sets the modification_metadata of this ModelProperty. - When the property was archived. # noqa: E501 - :param archived_at: The archived_at of this ModelProperty. # noqa: E501 - :type archived_at: datetime + :param modification_metadata: The modification_metadata of this ModelProperty. # noqa: E501 + :type modification_metadata: PropertyModificationMetadata """ - self._archived_at = archived_at + self._modification_metadata = modification_metadata @property - def name(self): - """Gets the name of this ModelProperty. # noqa: E501 + def display_order(self): + """Gets the display_order of this ModelProperty. # noqa: E501 - The internal property name, which must be used when referencing the property via the API. # noqa: E501 + The order that this property should be displayed in the HubSpot UI relative to other properties for this object type. Properties are displayed in order starting with the lowest positive integer value. A value of -1 will cause the property to be displayed **after** any positive values. # noqa: E501 - :return: The name of this ModelProperty. # noqa: E501 + :return: The display_order of this ModelProperty. # noqa: E501 + :rtype: int + """ + return self._display_order + + @display_order.setter + def display_order(self, display_order): + """Sets the display_order of this ModelProperty. + + The order that this property should be displayed in the HubSpot UI relative to other properties for this object type. Properties are displayed in order starting with the lowest positive integer value. A value of -1 will cause the property to be displayed **after** any positive values. # noqa: E501 + + :param display_order: The display_order of this ModelProperty. # noqa: E501 + :type display_order: int + """ + + self._display_order = display_order + + @property + def description(self): + """Gets the description of this ModelProperty. # noqa: E501 + + A description of the property that will be shown as help text in HubSpot. # noqa: E501 + + :return: The description of this ModelProperty. # noqa: E501 :rtype: str """ - return self._name + return self._description - @name.setter - def name(self, name): - """Sets the name of this ModelProperty. + @description.setter + def description(self, description): + """Sets the description of this ModelProperty. - The internal property name, which must be used when referencing the property via the API. # noqa: E501 + A description of the property that will be shown as help text in HubSpot. # noqa: E501 - :param name: The name of this ModelProperty. # noqa: E501 - :type name: str + :param description: The description of this ModelProperty. # noqa: E501 + :type description: str """ - if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and description is None: # noqa: E501 + raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 - self._name = name + self._description = description + + @property + def show_currency_symbol(self): + """Gets the show_currency_symbol of this ModelProperty. # noqa: E501 + + Whether the property will display the currency symbol set in the account settings. # noqa: E501 + + :return: The show_currency_symbol of this ModelProperty. # noqa: E501 + :rtype: bool + """ + return self._show_currency_symbol + + @show_currency_symbol.setter + def show_currency_symbol(self, show_currency_symbol): + """Sets the show_currency_symbol of this ModelProperty. + + Whether the property will display the currency symbol set in the account settings. # noqa: E501 + + :param show_currency_symbol: The show_currency_symbol of this ModelProperty. # noqa: E501 + :type show_currency_symbol: bool + """ + + self._show_currency_symbol = show_currency_symbol @property def label(self): @@ -327,150 +377,144 @@ def type(self, type): self._type = type @property - def field_type(self): - """Gets the field_type of this ModelProperty. # noqa: E501 + def hubspot_defined(self): + """Gets the hubspot_defined of this ModelProperty. # noqa: E501 - Controls how the property appears in HubSpot. # noqa: E501 + This will be true for default object properties built into HubSpot. # noqa: E501 - :return: The field_type of this ModelProperty. # noqa: E501 - :rtype: str + :return: The hubspot_defined of this ModelProperty. # noqa: E501 + :rtype: bool """ - return self._field_type + return self._hubspot_defined - @field_type.setter - def field_type(self, field_type): - """Sets the field_type of this ModelProperty. + @hubspot_defined.setter + def hubspot_defined(self, hubspot_defined): + """Sets the hubspot_defined of this ModelProperty. - Controls how the property appears in HubSpot. # noqa: E501 + This will be true for default object properties built into HubSpot. # noqa: E501 - :param field_type: The field_type of this ModelProperty. # noqa: E501 - :type field_type: str + :param hubspot_defined: The hubspot_defined of this ModelProperty. # noqa: E501 + :type hubspot_defined: bool """ - if self.local_vars_configuration.client_side_validation and field_type is None: # noqa: E501 - raise ValueError("Invalid value for `field_type`, must not be `None`") # noqa: E501 - self._field_type = field_type + self._hubspot_defined = hubspot_defined @property - def description(self): - """Gets the description of this ModelProperty. # noqa: E501 + def form_field(self): + """Gets the form_field of this ModelProperty. # noqa: E501 - A description of the property that will be shown as help text in HubSpot. # noqa: E501 + Whether or not the property can be used in a HubSpot form. # noqa: E501 - :return: The description of this ModelProperty. # noqa: E501 - :rtype: str + :return: The form_field of this ModelProperty. # noqa: E501 + :rtype: bool """ - return self._description + return self._form_field - @description.setter - def description(self, description): - """Sets the description of this ModelProperty. + @form_field.setter + def form_field(self, form_field): + """Sets the form_field of this ModelProperty. - A description of the property that will be shown as help text in HubSpot. # noqa: E501 + Whether or not the property can be used in a HubSpot form. # noqa: E501 - :param description: The description of this ModelProperty. # noqa: E501 - :type description: str + :param form_field: The form_field of this ModelProperty. # noqa: E501 + :type form_field: bool """ - if self.local_vars_configuration.client_side_validation and description is None: # noqa: E501 - raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 - self._description = description + self._form_field = form_field @property - def group_name(self): - """Gets the group_name of this ModelProperty. # noqa: E501 + def created_at(self): + """Gets the created_at of this ModelProperty. # noqa: E501 - The name of the property group the property belongs to. # noqa: E501 + When the property was created # noqa: E501 - :return: The group_name of this ModelProperty. # noqa: E501 - :rtype: str + :return: The created_at of this ModelProperty. # noqa: E501 + :rtype: datetime """ - return self._group_name + return self._created_at - @group_name.setter - def group_name(self, group_name): - """Sets the group_name of this ModelProperty. + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ModelProperty. - The name of the property group the property belongs to. # noqa: E501 + When the property was created # noqa: E501 - :param group_name: The group_name of this ModelProperty. # noqa: E501 - :type group_name: str + :param created_at: The created_at of this ModelProperty. # noqa: E501 + :type created_at: datetime """ - if self.local_vars_configuration.client_side_validation and group_name is None: # noqa: E501 - raise ValueError("Invalid value for `group_name`, must not be `None`") # noqa: E501 - self._group_name = group_name + self._created_at = created_at @property - def options(self): - """Gets the options of this ModelProperty. # noqa: E501 + def archived_at(self): + """Gets the archived_at of this ModelProperty. # noqa: E501 - A list of valid options for the property. This field is required for enumerated properties, but will be empty for other property types. # noqa: E501 + When the property was archived. # noqa: E501 - :return: The options of this ModelProperty. # noqa: E501 - :rtype: list[Option] + :return: The archived_at of this ModelProperty. # noqa: E501 + :rtype: datetime """ - return self._options + return self._archived_at - @options.setter - def options(self, options): - """Sets the options of this ModelProperty. + @archived_at.setter + def archived_at(self, archived_at): + """Sets the archived_at of this ModelProperty. - A list of valid options for the property. This field is required for enumerated properties, but will be empty for other property types. # noqa: E501 + When the property was archived. # noqa: E501 - :param options: The options of this ModelProperty. # noqa: E501 - :type options: list[Option] + :param archived_at: The archived_at of this ModelProperty. # noqa: E501 + :type archived_at: datetime """ - if self.local_vars_configuration.client_side_validation and options is None: # noqa: E501 - raise ValueError("Invalid value for `options`, must not be `None`") # noqa: E501 - self._options = options + self._archived_at = archived_at @property - def created_user_id(self): - """Gets the created_user_id of this ModelProperty. # noqa: E501 + def archived(self): + """Gets the archived of this ModelProperty. # noqa: E501 - The internal ID of the user who created the property in HubSpot. This field may not exist if the property was created outside of HubSpot. # noqa: E501 + Whether or not the property is archived. # noqa: E501 - :return: The created_user_id of this ModelProperty. # noqa: E501 - :rtype: str + :return: The archived of this ModelProperty. # noqa: E501 + :rtype: bool """ - return self._created_user_id - - @created_user_id.setter - def created_user_id(self, created_user_id): - """Sets the created_user_id of this ModelProperty. + return self._archived - The internal ID of the user who created the property in HubSpot. This field may not exist if the property was created outside of HubSpot. # noqa: E501 + @archived.setter + def archived(self, archived): + """Sets the archived of this ModelProperty. - :param created_user_id: The created_user_id of this ModelProperty. # noqa: E501 - :type created_user_id: str + Whether or not the property is archived. # noqa: E501 + + :param archived: The archived of this ModelProperty. # noqa: E501 + :type archived: bool """ - self._created_user_id = created_user_id + self._archived = archived @property - def updated_user_id(self): - """Gets the updated_user_id of this ModelProperty. # noqa: E501 + def group_name(self): + """Gets the group_name of this ModelProperty. # noqa: E501 - The internal user ID of the user who updated the property in HubSpot. This field may not exist if the property was updated outside of HubSpot. # noqa: E501 + The name of the property group the property belongs to. # noqa: E501 - :return: The updated_user_id of this ModelProperty. # noqa: E501 + :return: The group_name of this ModelProperty. # noqa: E501 :rtype: str """ - return self._updated_user_id + return self._group_name - @updated_user_id.setter - def updated_user_id(self, updated_user_id): - """Sets the updated_user_id of this ModelProperty. + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this ModelProperty. - The internal user ID of the user who updated the property in HubSpot. This field may not exist if the property was updated outside of HubSpot. # noqa: E501 + The name of the property group the property belongs to. # noqa: E501 - :param updated_user_id: The updated_user_id of this ModelProperty. # noqa: E501 - :type updated_user_id: str + :param group_name: The group_name of this ModelProperty. # noqa: E501 + :type group_name: str """ + if self.local_vars_configuration.client_side_validation and group_name is None: # noqa: E501 + raise ValueError("Invalid value for `group_name`, must not be `None`") # noqa: E501 - self._updated_user_id = updated_user_id + self._group_name = group_name @property def referenced_object_type(self): @@ -496,96 +540,75 @@ def referenced_object_type(self, referenced_object_type): self._referenced_object_type = referenced_object_type @property - def display_order(self): - """Gets the display_order of this ModelProperty. # noqa: E501 - - The order that this property should be displayed in the HubSpot UI relative to other properties for this object type. Properties are displayed in order starting with the lowest positive integer value. A value of -1 will cause the property to be displayed **after** any positive values. # noqa: E501 - - :return: The display_order of this ModelProperty. # noqa: E501 - :rtype: int - """ - return self._display_order - - @display_order.setter - def display_order(self, display_order): - """Sets the display_order of this ModelProperty. - - The order that this property should be displayed in the HubSpot UI relative to other properties for this object type. Properties are displayed in order starting with the lowest positive integer value. A value of -1 will cause the property to be displayed **after** any positive values. # noqa: E501 - - :param display_order: The display_order of this ModelProperty. # noqa: E501 - :type display_order: int - """ - - self._display_order = display_order - - @property - def calculated(self): - """Gets the calculated of this ModelProperty. # noqa: E501 + def name(self): + """Gets the name of this ModelProperty. # noqa: E501 - For default properties, true indicates that the property is calculated by a HubSpot process. It has no effect for custom properties. # noqa: E501 + The internal property name, which must be used when referencing the property via the API. # noqa: E501 - :return: The calculated of this ModelProperty. # noqa: E501 - :rtype: bool + :return: The name of this ModelProperty. # noqa: E501 + :rtype: str """ - return self._calculated + return self._name - @calculated.setter - def calculated(self, calculated): - """Sets the calculated of this ModelProperty. + @name.setter + def name(self, name): + """Sets the name of this ModelProperty. - For default properties, true indicates that the property is calculated by a HubSpot process. It has no effect for custom properties. # noqa: E501 + The internal property name, which must be used when referencing the property via the API. # noqa: E501 - :param calculated: The calculated of this ModelProperty. # noqa: E501 - :type calculated: bool + :param name: The name of this ModelProperty. # noqa: E501 + :type name: str """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._calculated = calculated + self._name = name @property - def external_options(self): - """Gets the external_options of this ModelProperty. # noqa: E501 + def options(self): + """Gets the options of this ModelProperty. # noqa: E501 - For default properties, true indicates that the options are stored externally to the property settings. # noqa: E501 + A list of valid options for the property. This field is required for enumerated properties, but will be empty for other property types. # noqa: E501 - :return: The external_options of this ModelProperty. # noqa: E501 - :rtype: bool + :return: The options of this ModelProperty. # noqa: E501 + :rtype: list[Option] """ - return self._external_options + return self._options - @external_options.setter - def external_options(self, external_options): - """Sets the external_options of this ModelProperty. + @options.setter + def options(self, options): + """Sets the options of this ModelProperty. - For default properties, true indicates that the options are stored externally to the property settings. # noqa: E501 + A list of valid options for the property. This field is required for enumerated properties, but will be empty for other property types. # noqa: E501 - :param external_options: The external_options of this ModelProperty. # noqa: E501 - :type external_options: bool + :param options: The options of this ModelProperty. # noqa: E501 + :type options: list[Option] """ + if self.local_vars_configuration.client_side_validation and options is None: # noqa: E501 + raise ValueError("Invalid value for `options`, must not be `None`") # noqa: E501 - self._external_options = external_options + self._options = options @property - def archived(self): - """Gets the archived of this ModelProperty. # noqa: E501 + def calculation_formula(self): + """Gets the calculation_formula of this ModelProperty. # noqa: E501 - Whether or not the property is archived. # noqa: E501 - :return: The archived of this ModelProperty. # noqa: E501 - :rtype: bool + :return: The calculation_formula of this ModelProperty. # noqa: E501 + :rtype: str """ - return self._archived + return self._calculation_formula - @archived.setter - def archived(self, archived): - """Sets the archived of this ModelProperty. + @calculation_formula.setter + def calculation_formula(self, calculation_formula): + """Sets the calculation_formula of this ModelProperty. - Whether or not the property is archived. # noqa: E501 - :param archived: The archived of this ModelProperty. # noqa: E501 - :type archived: bool + :param calculation_formula: The calculation_formula of this ModelProperty. # noqa: E501 + :type calculation_formula: str """ - self._archived = archived + self._calculation_formula = calculation_formula @property def has_unique_value(self): @@ -611,115 +634,121 @@ def has_unique_value(self, has_unique_value): self._has_unique_value = has_unique_value @property - def hidden(self): - """Gets the hidden of this ModelProperty. # noqa: E501 + def field_type(self): + """Gets the field_type of this ModelProperty. # noqa: E501 + Controls how the property appears in HubSpot. # noqa: E501 - :return: The hidden of this ModelProperty. # noqa: E501 - :rtype: bool + :return: The field_type of this ModelProperty. # noqa: E501 + :rtype: str """ - return self._hidden + return self._field_type - @hidden.setter - def hidden(self, hidden): - """Sets the hidden of this ModelProperty. + @field_type.setter + def field_type(self, field_type): + """Sets the field_type of this ModelProperty. + Controls how the property appears in HubSpot. # noqa: E501 - :param hidden: The hidden of this ModelProperty. # noqa: E501 - :type hidden: bool + :param field_type: The field_type of this ModelProperty. # noqa: E501 + :type field_type: str """ + if self.local_vars_configuration.client_side_validation and field_type is None: # noqa: E501 + raise ValueError("Invalid value for `field_type`, must not be `None`") # noqa: E501 - self._hidden = hidden + self._field_type = field_type @property - def hubspot_defined(self): - """Gets the hubspot_defined of this ModelProperty. # noqa: E501 + def updated_user_id(self): + """Gets the updated_user_id of this ModelProperty. # noqa: E501 - This will be true for default object properties built into HubSpot. # noqa: E501 + The internal user ID of the user who updated the property in HubSpot. This field may not exist if the property was updated outside of HubSpot. # noqa: E501 - :return: The hubspot_defined of this ModelProperty. # noqa: E501 - :rtype: bool + :return: The updated_user_id of this ModelProperty. # noqa: E501 + :rtype: str """ - return self._hubspot_defined + return self._updated_user_id - @hubspot_defined.setter - def hubspot_defined(self, hubspot_defined): - """Sets the hubspot_defined of this ModelProperty. + @updated_user_id.setter + def updated_user_id(self, updated_user_id): + """Sets the updated_user_id of this ModelProperty. - This will be true for default object properties built into HubSpot. # noqa: E501 + The internal user ID of the user who updated the property in HubSpot. This field may not exist if the property was updated outside of HubSpot. # noqa: E501 - :param hubspot_defined: The hubspot_defined of this ModelProperty. # noqa: E501 - :type hubspot_defined: bool + :param updated_user_id: The updated_user_id of this ModelProperty. # noqa: E501 + :type updated_user_id: str """ - self._hubspot_defined = hubspot_defined + self._updated_user_id = updated_user_id @property - def show_currency_symbol(self): - """Gets the show_currency_symbol of this ModelProperty. # noqa: E501 + def calculated(self): + """Gets the calculated of this ModelProperty. # noqa: E501 - Whether the property will display the currency symbol set in the account settings. # noqa: E501 + For default properties, true indicates that the property is calculated by a HubSpot process. It has no effect for custom properties. # noqa: E501 - :return: The show_currency_symbol of this ModelProperty. # noqa: E501 + :return: The calculated of this ModelProperty. # noqa: E501 :rtype: bool """ - return self._show_currency_symbol + return self._calculated - @show_currency_symbol.setter - def show_currency_symbol(self, show_currency_symbol): - """Sets the show_currency_symbol of this ModelProperty. + @calculated.setter + def calculated(self, calculated): + """Sets the calculated of this ModelProperty. - Whether the property will display the currency symbol set in the account settings. # noqa: E501 + For default properties, true indicates that the property is calculated by a HubSpot process. It has no effect for custom properties. # noqa: E501 - :param show_currency_symbol: The show_currency_symbol of this ModelProperty. # noqa: E501 - :type show_currency_symbol: bool + :param calculated: The calculated of this ModelProperty. # noqa: E501 + :type calculated: bool """ - self._show_currency_symbol = show_currency_symbol + self._calculated = calculated @property - def modification_metadata(self): - """Gets the modification_metadata of this ModelProperty. # noqa: E501 + def external_options(self): + """Gets the external_options of this ModelProperty. # noqa: E501 + For default properties, true indicates that the options are stored externally to the property settings. # noqa: E501 - :return: The modification_metadata of this ModelProperty. # noqa: E501 - :rtype: PropertyModificationMetadata + :return: The external_options of this ModelProperty. # noqa: E501 + :rtype: bool """ - return self._modification_metadata + return self._external_options - @modification_metadata.setter - def modification_metadata(self, modification_metadata): - """Sets the modification_metadata of this ModelProperty. + @external_options.setter + def external_options(self, external_options): + """Sets the external_options of this ModelProperty. + For default properties, true indicates that the options are stored externally to the property settings. # noqa: E501 - :param modification_metadata: The modification_metadata of this ModelProperty. # noqa: E501 - :type modification_metadata: PropertyModificationMetadata + :param external_options: The external_options of this ModelProperty. # noqa: E501 + :type external_options: bool """ - self._modification_metadata = modification_metadata + self._external_options = external_options @property - def form_field(self): - """Gets the form_field of this ModelProperty. # noqa: E501 + def updated_at(self): + """Gets the updated_at of this ModelProperty. # noqa: E501 - Whether or not the property can be used in a HubSpot form. # noqa: E501 + # noqa: E501 - :return: The form_field of this ModelProperty. # noqa: E501 - :rtype: bool + :return: The updated_at of this ModelProperty. # noqa: E501 + :rtype: datetime """ - return self._form_field + return self._updated_at - @form_field.setter - def form_field(self, form_field): - """Sets the form_field of this ModelProperty. + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this ModelProperty. - Whether or not the property can be used in a HubSpot form. # noqa: E501 + # noqa: E501 - :param form_field: The form_field of this ModelProperty. # noqa: E501 - :type form_field: bool + :param updated_at: The updated_at of this ModelProperty. # noqa: E501 + :type updated_at: datetime """ - self._form_field = form_field + self._updated_at = updated_at def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/schemas/models/object_schema.py b/hubspot/crm/schemas/models/object_schema.py index 79e5729a..5c7fb9a7 100644 --- a/hubspot/crm/schemas/models/object_schema.py +++ b/hubspot/crm/schemas/models/object_schema.py @@ -36,55 +36,58 @@ class ObjectSchema(object): and the value is json key in definition. """ openapi_types = { + "associations": "list[AssociationDefinition]", + "secondary_display_properties": "list[str]", + "object_type_id": "str", + "description": "str", + "fully_qualified_name": "str", "labels": "ObjectTypeDefinitionLabels", + "archived": "bool", + "created_at": "datetime", "required_properties": "list[str]", "searchable_properties": "list[str]", "primary_display_property": "str", - "secondary_display_properties": "list[str]", - "archived": "bool", + "name": "str", "id": "str", - "fully_qualified_name": "str", - "created_at": "datetime", - "updated_at": "datetime", - "object_type_id": "str", "properties": "list[ModelProperty]", - "associations": "list[AssociationDefinition]", - "name": "str", + "updated_at": "datetime", } attribute_map = { + "associations": "associations", + "secondary_display_properties": "secondaryDisplayProperties", + "object_type_id": "objectTypeId", + "description": "description", + "fully_qualified_name": "fullyQualifiedName", "labels": "labels", + "archived": "archived", + "created_at": "createdAt", "required_properties": "requiredProperties", "searchable_properties": "searchableProperties", "primary_display_property": "primaryDisplayProperty", - "secondary_display_properties": "secondaryDisplayProperties", - "archived": "archived", + "name": "name", "id": "id", - "fully_qualified_name": "fullyQualifiedName", - "created_at": "createdAt", - "updated_at": "updatedAt", - "object_type_id": "objectTypeId", "properties": "properties", - "associations": "associations", - "name": "name", + "updated_at": "updatedAt", } def __init__( self, + associations=None, + secondary_display_properties=None, + object_type_id=None, + description=None, + fully_qualified_name=None, labels=None, + archived=None, + created_at=None, required_properties=None, searchable_properties=None, primary_display_property=None, - secondary_display_properties=None, - archived=None, + name=None, id=None, - fully_qualified_name=None, - created_at=None, - updated_at=None, - object_type_id=None, properties=None, - associations=None, - name=None, + updated_at=None, local_vars_configuration=None, ): # noqa: E501 """ObjectSchema - a model defined in OpenAPI""" # noqa: E501 @@ -92,39 +95,160 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration + self._associations = None + self._secondary_display_properties = None + self._object_type_id = None + self._description = None + self._fully_qualified_name = None self._labels = None + self._archived = None + self._created_at = None self._required_properties = None self._searchable_properties = None self._primary_display_property = None - self._secondary_display_properties = None - self._archived = None + self._name = None self._id = None - self._fully_qualified_name = None - self._created_at = None - self._updated_at = None - self._object_type_id = None self._properties = None - self._associations = None - self._name = None + self._updated_at = None self.discriminator = None + self.associations = associations + if secondary_display_properties is not None: + self.secondary_display_properties = secondary_display_properties + if object_type_id is not None: + self.object_type_id = object_type_id + if description is not None: + self.description = description + if fully_qualified_name is not None: + self.fully_qualified_name = fully_qualified_name self.labels = labels + if archived is not None: + self.archived = archived + if created_at is not None: + self.created_at = created_at self.required_properties = required_properties - self.searchable_properties = searchable_properties + if searchable_properties is not None: + self.searchable_properties = searchable_properties if primary_display_property is not None: self.primary_display_property = primary_display_property - self.secondary_display_properties = secondary_display_properties - self.archived = archived + self.name = name self.id = id - self.fully_qualified_name = fully_qualified_name - if created_at is not None: - self.created_at = created_at + self.properties = properties if updated_at is not None: self.updated_at = updated_at - self.object_type_id = object_type_id - self.properties = properties - self.associations = associations - self.name = name + + @property + def associations(self): + """Gets the associations of this ObjectSchema. # noqa: E501 + + Associations defined for a given object type. # noqa: E501 + + :return: The associations of this ObjectSchema. # noqa: E501 + :rtype: list[AssociationDefinition] + """ + return self._associations + + @associations.setter + def associations(self, associations): + """Sets the associations of this ObjectSchema. + + Associations defined for a given object type. # noqa: E501 + + :param associations: The associations of this ObjectSchema. # noqa: E501 + :type associations: list[AssociationDefinition] + """ + if self.local_vars_configuration.client_side_validation and associations is None: # noqa: E501 + raise ValueError("Invalid value for `associations`, must not be `None`") # noqa: E501 + + self._associations = associations + + @property + def secondary_display_properties(self): + """Gets the secondary_display_properties of this ObjectSchema. # noqa: E501 + + The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 + + :return: The secondary_display_properties of this ObjectSchema. # noqa: E501 + :rtype: list[str] + """ + return self._secondary_display_properties + + @secondary_display_properties.setter + def secondary_display_properties(self, secondary_display_properties): + """Sets the secondary_display_properties of this ObjectSchema. + + The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 + + :param secondary_display_properties: The secondary_display_properties of this ObjectSchema. # noqa: E501 + :type secondary_display_properties: list[str] + """ + + self._secondary_display_properties = secondary_display_properties + + @property + def object_type_id(self): + """Gets the object_type_id of this ObjectSchema. # noqa: E501 + + + :return: The object_type_id of this ObjectSchema. # noqa: E501 + :rtype: str + """ + return self._object_type_id + + @object_type_id.setter + def object_type_id(self, object_type_id): + """Sets the object_type_id of this ObjectSchema. + + + :param object_type_id: The object_type_id of this ObjectSchema. # noqa: E501 + :type object_type_id: str + """ + + self._object_type_id = object_type_id + + @property + def description(self): + """Gets the description of this ObjectSchema. # noqa: E501 + + + :return: The description of this ObjectSchema. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ObjectSchema. + + + :param description: The description of this ObjectSchema. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def fully_qualified_name(self): + """Gets the fully_qualified_name of this ObjectSchema. # noqa: E501 + + An assigned unique ID for the object, including portal ID and object name. # noqa: E501 + + :return: The fully_qualified_name of this ObjectSchema. # noqa: E501 + :rtype: str + """ + return self._fully_qualified_name + + @fully_qualified_name.setter + def fully_qualified_name(self, fully_qualified_name): + """Sets the fully_qualified_name of this ObjectSchema. + + An assigned unique ID for the object, including portal ID and object name. # noqa: E501 + + :param fully_qualified_name: The fully_qualified_name of this ObjectSchema. # noqa: E501 + :type fully_qualified_name: str + """ + + self._fully_qualified_name = fully_qualified_name @property def labels(self): @@ -149,6 +273,50 @@ def labels(self, labels): self._labels = labels + @property + def archived(self): + """Gets the archived of this ObjectSchema. # noqa: E501 + + + :return: The archived of this ObjectSchema. # noqa: E501 + :rtype: bool + """ + return self._archived + + @archived.setter + def archived(self, archived): + """Sets the archived of this ObjectSchema. + + + :param archived: The archived of this ObjectSchema. # noqa: E501 + :type archived: bool + """ + + self._archived = archived + + @property + def created_at(self): + """Gets the created_at of this ObjectSchema. # noqa: E501 + + When the object schema was created. # noqa: E501 + + :return: The created_at of this ObjectSchema. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ObjectSchema. + + When the object schema was created. # noqa: E501 + + :param created_at: The created_at of this ObjectSchema. # noqa: E501 + :type created_at: datetime + """ + + self._created_at = created_at + @property def required_properties(self): """Gets the required_properties of this ObjectSchema. # noqa: E501 @@ -194,8 +362,6 @@ def searchable_properties(self, searchable_properties): :param searchable_properties: The searchable_properties of this ObjectSchema. # noqa: E501 :type searchable_properties: list[str] """ - if self.local_vars_configuration.client_side_validation and searchable_properties is None: # noqa: E501 - raise ValueError("Invalid value for `searchable_properties`, must not be `None`") # noqa: E501 self._searchable_properties = searchable_properties @@ -223,52 +389,29 @@ def primary_display_property(self, primary_display_property): self._primary_display_property = primary_display_property @property - def secondary_display_properties(self): - """Gets the secondary_display_properties of this ObjectSchema. # noqa: E501 - - The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 - - :return: The secondary_display_properties of this ObjectSchema. # noqa: E501 - :rtype: list[str] - """ - return self._secondary_display_properties - - @secondary_display_properties.setter - def secondary_display_properties(self, secondary_display_properties): - """Sets the secondary_display_properties of this ObjectSchema. - - The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 - - :param secondary_display_properties: The secondary_display_properties of this ObjectSchema. # noqa: E501 - :type secondary_display_properties: list[str] - """ - if self.local_vars_configuration.client_side_validation and secondary_display_properties is None: # noqa: E501 - raise ValueError("Invalid value for `secondary_display_properties`, must not be `None`") # noqa: E501 - - self._secondary_display_properties = secondary_display_properties - - @property - def archived(self): - """Gets the archived of this ObjectSchema. # noqa: E501 + def name(self): + """Gets the name of this ObjectSchema. # noqa: E501 + A unique name for the schema's object type. # noqa: E501 - :return: The archived of this ObjectSchema. # noqa: E501 - :rtype: bool + :return: The name of this ObjectSchema. # noqa: E501 + :rtype: str """ - return self._archived + return self._name - @archived.setter - def archived(self, archived): - """Sets the archived of this ObjectSchema. + @name.setter + def name(self, name): + """Sets the name of this ObjectSchema. + A unique name for the schema's object type. # noqa: E501 - :param archived: The archived of this ObjectSchema. # noqa: E501 - :type archived: bool + :param name: The name of this ObjectSchema. # noqa: E501 + :type name: str """ - if self.local_vars_configuration.client_side_validation and archived is None: # noqa: E501 - raise ValueError("Invalid value for `archived`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._archived = archived + self._name = name @property def id(self): @@ -295,100 +438,6 @@ def id(self, id): self._id = id - @property - def fully_qualified_name(self): - """Gets the fully_qualified_name of this ObjectSchema. # noqa: E501 - - An assigned unique ID for the object, including portal ID and object name. # noqa: E501 - - :return: The fully_qualified_name of this ObjectSchema. # noqa: E501 - :rtype: str - """ - return self._fully_qualified_name - - @fully_qualified_name.setter - def fully_qualified_name(self, fully_qualified_name): - """Sets the fully_qualified_name of this ObjectSchema. - - An assigned unique ID for the object, including portal ID and object name. # noqa: E501 - - :param fully_qualified_name: The fully_qualified_name of this ObjectSchema. # noqa: E501 - :type fully_qualified_name: str - """ - if self.local_vars_configuration.client_side_validation and fully_qualified_name is None: # noqa: E501 - raise ValueError("Invalid value for `fully_qualified_name`, must not be `None`") # noqa: E501 - - self._fully_qualified_name = fully_qualified_name - - @property - def created_at(self): - """Gets the created_at of this ObjectSchema. # noqa: E501 - - When the object schema was created. # noqa: E501 - - :return: The created_at of this ObjectSchema. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this ObjectSchema. - - When the object schema was created. # noqa: E501 - - :param created_at: The created_at of this ObjectSchema. # noqa: E501 - :type created_at: datetime - """ - - self._created_at = created_at - - @property - def updated_at(self): - """Gets the updated_at of this ObjectSchema. # noqa: E501 - - When the object schema was last updated. # noqa: E501 - - :return: The updated_at of this ObjectSchema. # noqa: E501 - :rtype: datetime - """ - return self._updated_at - - @updated_at.setter - def updated_at(self, updated_at): - """Sets the updated_at of this ObjectSchema. - - When the object schema was last updated. # noqa: E501 - - :param updated_at: The updated_at of this ObjectSchema. # noqa: E501 - :type updated_at: datetime - """ - - self._updated_at = updated_at - - @property - def object_type_id(self): - """Gets the object_type_id of this ObjectSchema. # noqa: E501 - - - :return: The object_type_id of this ObjectSchema. # noqa: E501 - :rtype: str - """ - return self._object_type_id - - @object_type_id.setter - def object_type_id(self, object_type_id): - """Sets the object_type_id of this ObjectSchema. - - - :param object_type_id: The object_type_id of this ObjectSchema. # noqa: E501 - :type object_type_id: str - """ - if self.local_vars_configuration.client_side_validation and object_type_id is None: # noqa: E501 - raise ValueError("Invalid value for `object_type_id`, must not be `None`") # noqa: E501 - - self._object_type_id = object_type_id - @property def properties(self): """Gets the properties of this ObjectSchema. # noqa: E501 @@ -415,54 +464,27 @@ def properties(self, properties): self._properties = properties @property - def associations(self): - """Gets the associations of this ObjectSchema. # noqa: E501 - - Associations defined for a given object type. # noqa: E501 - - :return: The associations of this ObjectSchema. # noqa: E501 - :rtype: list[AssociationDefinition] - """ - return self._associations - - @associations.setter - def associations(self, associations): - """Sets the associations of this ObjectSchema. - - Associations defined for a given object type. # noqa: E501 - - :param associations: The associations of this ObjectSchema. # noqa: E501 - :type associations: list[AssociationDefinition] - """ - if self.local_vars_configuration.client_side_validation and associations is None: # noqa: E501 - raise ValueError("Invalid value for `associations`, must not be `None`") # noqa: E501 - - self._associations = associations - - @property - def name(self): - """Gets the name of this ObjectSchema. # noqa: E501 + def updated_at(self): + """Gets the updated_at of this ObjectSchema. # noqa: E501 - A unique name for the schema's object type. # noqa: E501 + When the object schema was last updated. # noqa: E501 - :return: The name of this ObjectSchema. # noqa: E501 - :rtype: str + :return: The updated_at of this ObjectSchema. # noqa: E501 + :rtype: datetime """ - return self._name + return self._updated_at - @name.setter - def name(self, name): - """Sets the name of this ObjectSchema. + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this ObjectSchema. - A unique name for the schema's object type. # noqa: E501 + When the object schema was last updated. # noqa: E501 - :param name: The name of this ObjectSchema. # noqa: E501 - :type name: str + :param updated_at: The updated_at of this ObjectSchema. # noqa: E501 + :type updated_at: datetime """ - if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._updated_at = updated_at def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/schemas/models/object_schema_egg.py b/hubspot/crm/schemas/models/object_schema_egg.py index eeaf328d..4f5ce873 100644 --- a/hubspot/crm/schemas/models/object_schema_egg.py +++ b/hubspot/crm/schemas/models/object_schema_egg.py @@ -36,37 +36,40 @@ class ObjectSchemaEgg(object): and the value is json key in definition. """ openapi_types = { - "labels": "ObjectTypeDefinitionLabels", + "secondary_display_properties": "list[str]", "required_properties": "list[str]", "searchable_properties": "list[str]", "primary_display_property": "str", - "secondary_display_properties": "list[str]", - "properties": "list[ObjectTypePropertyCreate]", - "associated_objects": "list[str]", "name": "str", + "description": "str", + "associated_objects": "list[str]", + "properties": "list[ObjectTypePropertyCreate]", + "labels": "ObjectTypeDefinitionLabels", } attribute_map = { - "labels": "labels", + "secondary_display_properties": "secondaryDisplayProperties", "required_properties": "requiredProperties", "searchable_properties": "searchableProperties", "primary_display_property": "primaryDisplayProperty", - "secondary_display_properties": "secondaryDisplayProperties", - "properties": "properties", - "associated_objects": "associatedObjects", "name": "name", + "description": "description", + "associated_objects": "associatedObjects", + "properties": "properties", + "labels": "labels", } def __init__( self, - labels=None, + secondary_display_properties=None, required_properties=None, searchable_properties=None, primary_display_property=None, - secondary_display_properties=None, - properties=None, - associated_objects=None, name=None, + description=None, + associated_objects=None, + properties=None, + labels=None, local_vars_configuration=None, ): # noqa: E501 """ObjectSchemaEgg - a model defined in OpenAPI""" # noqa: E501 @@ -74,48 +77,53 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._labels = None + self._secondary_display_properties = None self._required_properties = None self._searchable_properties = None self._primary_display_property = None - self._secondary_display_properties = None - self._properties = None - self._associated_objects = None self._name = None + self._description = None + self._associated_objects = None + self._properties = None + self._labels = None self.discriminator = None - self.labels = labels + if secondary_display_properties is not None: + self.secondary_display_properties = secondary_display_properties self.required_properties = required_properties - self.searchable_properties = searchable_properties + if searchable_properties is not None: + self.searchable_properties = searchable_properties if primary_display_property is not None: self.primary_display_property = primary_display_property - self.secondary_display_properties = secondary_display_properties - self.properties = properties - self.associated_objects = associated_objects self.name = name + if description is not None: + self.description = description + self.associated_objects = associated_objects + self.properties = properties + self.labels = labels @property - def labels(self): - """Gets the labels of this ObjectSchemaEgg. # noqa: E501 + def secondary_display_properties(self): + """Gets the secondary_display_properties of this ObjectSchemaEgg. # noqa: E501 + The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 - :return: The labels of this ObjectSchemaEgg. # noqa: E501 - :rtype: ObjectTypeDefinitionLabels + :return: The secondary_display_properties of this ObjectSchemaEgg. # noqa: E501 + :rtype: list[str] """ - return self._labels + return self._secondary_display_properties - @labels.setter - def labels(self, labels): - """Sets the labels of this ObjectSchemaEgg. + @secondary_display_properties.setter + def secondary_display_properties(self, secondary_display_properties): + """Sets the secondary_display_properties of this ObjectSchemaEgg. + The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 - :param labels: The labels of this ObjectSchemaEgg. # noqa: E501 - :type labels: ObjectTypeDefinitionLabels + :param secondary_display_properties: The secondary_display_properties of this ObjectSchemaEgg. # noqa: E501 + :type secondary_display_properties: list[str] """ - if self.local_vars_configuration.client_side_validation and labels is None: # noqa: E501 - raise ValueError("Invalid value for `labels`, must not be `None`") # noqa: E501 - self._labels = labels + self._secondary_display_properties = secondary_display_properties @property def required_properties(self): @@ -162,8 +170,6 @@ def searchable_properties(self, searchable_properties): :param searchable_properties: The searchable_properties of this ObjectSchemaEgg. # noqa: E501 :type searchable_properties: list[str] """ - if self.local_vars_configuration.client_side_validation and searchable_properties is None: # noqa: E501 - raise ValueError("Invalid value for `searchable_properties`, must not be `None`") # noqa: E501 self._searchable_properties = searchable_properties @@ -191,54 +197,50 @@ def primary_display_property(self, primary_display_property): self._primary_display_property = primary_display_property @property - def secondary_display_properties(self): - """Gets the secondary_display_properties of this ObjectSchemaEgg. # noqa: E501 + def name(self): + """Gets the name of this ObjectSchemaEgg. # noqa: E501 - The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 + A unique name for this object. For internal use only. # noqa: E501 - :return: The secondary_display_properties of this ObjectSchemaEgg. # noqa: E501 - :rtype: list[str] + :return: The name of this ObjectSchemaEgg. # noqa: E501 + :rtype: str """ - return self._secondary_display_properties + return self._name - @secondary_display_properties.setter - def secondary_display_properties(self, secondary_display_properties): - """Sets the secondary_display_properties of this ObjectSchemaEgg. + @name.setter + def name(self, name): + """Sets the name of this ObjectSchemaEgg. - The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 + A unique name for this object. For internal use only. # noqa: E501 - :param secondary_display_properties: The secondary_display_properties of this ObjectSchemaEgg. # noqa: E501 - :type secondary_display_properties: list[str] + :param name: The name of this ObjectSchemaEgg. # noqa: E501 + :type name: str """ - if self.local_vars_configuration.client_side_validation and secondary_display_properties is None: # noqa: E501 - raise ValueError("Invalid value for `secondary_display_properties`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._secondary_display_properties = secondary_display_properties + self._name = name @property - def properties(self): - """Gets the properties of this ObjectSchemaEgg. # noqa: E501 + def description(self): + """Gets the description of this ObjectSchemaEgg. # noqa: E501 - Properties defined for this object type. # noqa: E501 - :return: The properties of this ObjectSchemaEgg. # noqa: E501 - :rtype: list[ObjectTypePropertyCreate] + :return: The description of this ObjectSchemaEgg. # noqa: E501 + :rtype: str """ - return self._properties + return self._description - @properties.setter - def properties(self, properties): - """Sets the properties of this ObjectSchemaEgg. + @description.setter + def description(self, description): + """Sets the description of this ObjectSchemaEgg. - Properties defined for this object type. # noqa: E501 - :param properties: The properties of this ObjectSchemaEgg. # noqa: E501 - :type properties: list[ObjectTypePropertyCreate] + :param description: The description of this ObjectSchemaEgg. # noqa: E501 + :type description: str """ - if self.local_vars_configuration.client_side_validation and properties is None: # noqa: E501 - raise ValueError("Invalid value for `properties`, must not be `None`") # noqa: E501 - self._properties = properties + self._description = description @property def associated_objects(self): @@ -266,29 +268,52 @@ def associated_objects(self, associated_objects): self._associated_objects = associated_objects @property - def name(self): - """Gets the name of this ObjectSchemaEgg. # noqa: E501 + def properties(self): + """Gets the properties of this ObjectSchemaEgg. # noqa: E501 - A unique name for this object. For internal use only. # noqa: E501 + Properties defined for this object type. # noqa: E501 - :return: The name of this ObjectSchemaEgg. # noqa: E501 - :rtype: str + :return: The properties of this ObjectSchemaEgg. # noqa: E501 + :rtype: list[ObjectTypePropertyCreate] """ - return self._name + return self._properties - @name.setter - def name(self, name): - """Sets the name of this ObjectSchemaEgg. + @properties.setter + def properties(self, properties): + """Sets the properties of this ObjectSchemaEgg. - A unique name for this object. For internal use only. # noqa: E501 + Properties defined for this object type. # noqa: E501 - :param name: The name of this ObjectSchemaEgg. # noqa: E501 - :type name: str + :param properties: The properties of this ObjectSchemaEgg. # noqa: E501 + :type properties: list[ObjectTypePropertyCreate] """ - if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and properties is None: # noqa: E501 + raise ValueError("Invalid value for `properties`, must not be `None`") # noqa: E501 - self._name = name + self._properties = properties + + @property + def labels(self): + """Gets the labels of this ObjectSchemaEgg. # noqa: E501 + + + :return: The labels of this ObjectSchemaEgg. # noqa: E501 + :rtype: ObjectTypeDefinitionLabels + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this ObjectSchemaEgg. + + + :param labels: The labels of this ObjectSchemaEgg. # noqa: E501 + :type labels: ObjectTypeDefinitionLabels + """ + if self.local_vars_configuration.client_side_validation and labels is None: # noqa: E501 + raise ValueError("Invalid value for `labels`, must not be `None`") # noqa: E501 + + self._labels = labels def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/schemas/models/object_type_definition.py b/hubspot/crm/schemas/models/object_type_definition.py index ef58fb6e..f34b28a2 100644 --- a/hubspot/crm/schemas/models/object_type_definition.py +++ b/hubspot/crm/schemas/models/object_type_definition.py @@ -36,52 +36,55 @@ class ObjectTypeDefinition(object): and the value is json key in definition. """ openapi_types = { + "secondary_display_properties": "list[str]", + "object_type_id": "str", + "description": "str", + "fully_qualified_name": "str", "labels": "ObjectTypeDefinitionLabels", + "archived": "bool", + "created_at": "datetime", "required_properties": "list[str]", "searchable_properties": "list[str]", + "portal_id": "int", "primary_display_property": "str", - "secondary_display_properties": "list[str]", - "archived": "bool", + "name": "str", "id": "str", - "fully_qualified_name": "str", - "created_at": "datetime", "updated_at": "datetime", - "object_type_id": "str", - "name": "str", - "portal_id": "int", } attribute_map = { + "secondary_display_properties": "secondaryDisplayProperties", + "object_type_id": "objectTypeId", + "description": "description", + "fully_qualified_name": "fullyQualifiedName", "labels": "labels", + "archived": "archived", + "created_at": "createdAt", "required_properties": "requiredProperties", "searchable_properties": "searchableProperties", + "portal_id": "portalId", "primary_display_property": "primaryDisplayProperty", - "secondary_display_properties": "secondaryDisplayProperties", - "archived": "archived", + "name": "name", "id": "id", - "fully_qualified_name": "fullyQualifiedName", - "created_at": "createdAt", "updated_at": "updatedAt", - "object_type_id": "objectTypeId", - "name": "name", - "portal_id": "portalId", } def __init__( self, + secondary_display_properties=None, + object_type_id=None, + description=None, + fully_qualified_name=None, labels=None, + archived=None, + created_at=None, required_properties=None, searchable_properties=None, + portal_id=None, primary_display_property=None, - secondary_display_properties=None, - archived=None, + name=None, id=None, - fully_qualified_name=None, - created_at=None, updated_at=None, - object_type_id=None, - name=None, - portal_id=None, local_vars_configuration=None, ): # noqa: E501 """ObjectTypeDefinition - a model defined in OpenAPI""" # noqa: E501 @@ -89,159 +92,155 @@ def __init__( local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration + self._secondary_display_properties = None + self._object_type_id = None + self._description = None + self._fully_qualified_name = None self._labels = None + self._archived = None + self._created_at = None self._required_properties = None self._searchable_properties = None + self._portal_id = None self._primary_display_property = None - self._secondary_display_properties = None - self._archived = None + self._name = None self._id = None - self._fully_qualified_name = None - self._created_at = None self._updated_at = None - self._object_type_id = None - self._name = None - self._portal_id = None self.discriminator = None + if secondary_display_properties is not None: + self.secondary_display_properties = secondary_display_properties + if object_type_id is not None: + self.object_type_id = object_type_id + if description is not None: + self.description = description + if fully_qualified_name is not None: + self.fully_qualified_name = fully_qualified_name self.labels = labels + if archived is not None: + self.archived = archived + if created_at is not None: + self.created_at = created_at self.required_properties = required_properties - self.searchable_properties = searchable_properties + if searchable_properties is not None: + self.searchable_properties = searchable_properties + if portal_id is not None: + self.portal_id = portal_id if primary_display_property is not None: self.primary_display_property = primary_display_property - self.secondary_display_properties = secondary_display_properties - self.archived = archived + self.name = name self.id = id - self.fully_qualified_name = fully_qualified_name - if created_at is not None: - self.created_at = created_at if updated_at is not None: self.updated_at = updated_at - self.object_type_id = object_type_id - self.name = name - if portal_id is not None: - self.portal_id = portal_id @property - def labels(self): - """Gets the labels of this ObjectTypeDefinition. # noqa: E501 + def secondary_display_properties(self): + """Gets the secondary_display_properties of this ObjectTypeDefinition. # noqa: E501 + The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 - :return: The labels of this ObjectTypeDefinition. # noqa: E501 - :rtype: ObjectTypeDefinitionLabels + :return: The secondary_display_properties of this ObjectTypeDefinition. # noqa: E501 + :rtype: list[str] """ - return self._labels + return self._secondary_display_properties - @labels.setter - def labels(self, labels): - """Sets the labels of this ObjectTypeDefinition. + @secondary_display_properties.setter + def secondary_display_properties(self, secondary_display_properties): + """Sets the secondary_display_properties of this ObjectTypeDefinition. + The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 - :param labels: The labels of this ObjectTypeDefinition. # noqa: E501 - :type labels: ObjectTypeDefinitionLabels + :param secondary_display_properties: The secondary_display_properties of this ObjectTypeDefinition. # noqa: E501 + :type secondary_display_properties: list[str] """ - if self.local_vars_configuration.client_side_validation and labels is None: # noqa: E501 - raise ValueError("Invalid value for `labels`, must not be `None`") # noqa: E501 - self._labels = labels + self._secondary_display_properties = secondary_display_properties @property - def required_properties(self): - """Gets the required_properties of this ObjectTypeDefinition. # noqa: E501 + def object_type_id(self): + """Gets the object_type_id of this ObjectTypeDefinition. # noqa: E501 - The names of properties that should be **required** when creating an object of this type. # noqa: E501 - :return: The required_properties of this ObjectTypeDefinition. # noqa: E501 - :rtype: list[str] + :return: The object_type_id of this ObjectTypeDefinition. # noqa: E501 + :rtype: str """ - return self._required_properties + return self._object_type_id - @required_properties.setter - def required_properties(self, required_properties): - """Sets the required_properties of this ObjectTypeDefinition. + @object_type_id.setter + def object_type_id(self, object_type_id): + """Sets the object_type_id of this ObjectTypeDefinition. - The names of properties that should be **required** when creating an object of this type. # noqa: E501 - :param required_properties: The required_properties of this ObjectTypeDefinition. # noqa: E501 - :type required_properties: list[str] + :param object_type_id: The object_type_id of this ObjectTypeDefinition. # noqa: E501 + :type object_type_id: str """ - if self.local_vars_configuration.client_side_validation and required_properties is None: # noqa: E501 - raise ValueError("Invalid value for `required_properties`, must not be `None`") # noqa: E501 - self._required_properties = required_properties + self._object_type_id = object_type_id @property - def searchable_properties(self): - """Gets the searchable_properties of this ObjectTypeDefinition. # noqa: E501 + def description(self): + """Gets the description of this ObjectTypeDefinition. # noqa: E501 - Names of properties that will be indexed for this object type in by HubSpot's product search. # noqa: E501 - :return: The searchable_properties of this ObjectTypeDefinition. # noqa: E501 - :rtype: list[str] + :return: The description of this ObjectTypeDefinition. # noqa: E501 + :rtype: str """ - return self._searchable_properties + return self._description - @searchable_properties.setter - def searchable_properties(self, searchable_properties): - """Sets the searchable_properties of this ObjectTypeDefinition. + @description.setter + def description(self, description): + """Sets the description of this ObjectTypeDefinition. - Names of properties that will be indexed for this object type in by HubSpot's product search. # noqa: E501 - :param searchable_properties: The searchable_properties of this ObjectTypeDefinition. # noqa: E501 - :type searchable_properties: list[str] + :param description: The description of this ObjectTypeDefinition. # noqa: E501 + :type description: str """ - if self.local_vars_configuration.client_side_validation and searchable_properties is None: # noqa: E501 - raise ValueError("Invalid value for `searchable_properties`, must not be `None`") # noqa: E501 - self._searchable_properties = searchable_properties + self._description = description @property - def primary_display_property(self): - """Gets the primary_display_property of this ObjectTypeDefinition. # noqa: E501 + def fully_qualified_name(self): + """Gets the fully_qualified_name of this ObjectTypeDefinition. # noqa: E501 - The name of the primary property for this object. This will be displayed as primary on the HubSpot record page for this object type. # noqa: E501 - :return: The primary_display_property of this ObjectTypeDefinition. # noqa: E501 + :return: The fully_qualified_name of this ObjectTypeDefinition. # noqa: E501 :rtype: str """ - return self._primary_display_property + return self._fully_qualified_name - @primary_display_property.setter - def primary_display_property(self, primary_display_property): - """Sets the primary_display_property of this ObjectTypeDefinition. + @fully_qualified_name.setter + def fully_qualified_name(self, fully_qualified_name): + """Sets the fully_qualified_name of this ObjectTypeDefinition. - The name of the primary property for this object. This will be displayed as primary on the HubSpot record page for this object type. # noqa: E501 - :param primary_display_property: The primary_display_property of this ObjectTypeDefinition. # noqa: E501 - :type primary_display_property: str + :param fully_qualified_name: The fully_qualified_name of this ObjectTypeDefinition. # noqa: E501 + :type fully_qualified_name: str """ - self._primary_display_property = primary_display_property + self._fully_qualified_name = fully_qualified_name @property - def secondary_display_properties(self): - """Gets the secondary_display_properties of this ObjectTypeDefinition. # noqa: E501 + def labels(self): + """Gets the labels of this ObjectTypeDefinition. # noqa: E501 - The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 - :return: The secondary_display_properties of this ObjectTypeDefinition. # noqa: E501 - :rtype: list[str] + :return: The labels of this ObjectTypeDefinition. # noqa: E501 + :rtype: ObjectTypeDefinitionLabels """ - return self._secondary_display_properties + return self._labels - @secondary_display_properties.setter - def secondary_display_properties(self, secondary_display_properties): - """Sets the secondary_display_properties of this ObjectTypeDefinition. + @labels.setter + def labels(self, labels): + """Sets the labels of this ObjectTypeDefinition. - The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 - :param secondary_display_properties: The secondary_display_properties of this ObjectTypeDefinition. # noqa: E501 - :type secondary_display_properties: list[str] + :param labels: The labels of this ObjectTypeDefinition. # noqa: E501 + :type labels: ObjectTypeDefinitionLabels """ - if self.local_vars_configuration.client_side_validation and secondary_display_properties is None: # noqa: E501 - raise ValueError("Invalid value for `secondary_display_properties`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and labels is None: # noqa: E501 + raise ValueError("Invalid value for `labels`, must not be `None`") # noqa: E501 - self._secondary_display_properties = secondary_display_properties + self._labels = labels @property def archived(self): @@ -261,127 +260,125 @@ def archived(self, archived): :param archived: The archived of this ObjectTypeDefinition. # noqa: E501 :type archived: bool """ - if self.local_vars_configuration.client_side_validation and archived is None: # noqa: E501 - raise ValueError("Invalid value for `archived`, must not be `None`") # noqa: E501 self._archived = archived @property - def id(self): - """Gets the id of this ObjectTypeDefinition. # noqa: E501 + def created_at(self): + """Gets the created_at of this ObjectTypeDefinition. # noqa: E501 - A unique ID for this object type. Will be defined as {meta-type}-{unique ID}. # noqa: E501 + When the object type was created. # noqa: E501 - :return: The id of this ObjectTypeDefinition. # noqa: E501 - :rtype: str + :return: The created_at of this ObjectTypeDefinition. # noqa: E501 + :rtype: datetime """ - return self._id + return self._created_at - @id.setter - def id(self, id): - """Sets the id of this ObjectTypeDefinition. + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ObjectTypeDefinition. - A unique ID for this object type. Will be defined as {meta-type}-{unique ID}. # noqa: E501 + When the object type was created. # noqa: E501 - :param id: The id of this ObjectTypeDefinition. # noqa: E501 - :type id: str + :param created_at: The created_at of this ObjectTypeDefinition. # noqa: E501 + :type created_at: datetime """ - if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - self._id = id + self._created_at = created_at @property - def fully_qualified_name(self): - """Gets the fully_qualified_name of this ObjectTypeDefinition. # noqa: E501 + def required_properties(self): + """Gets the required_properties of this ObjectTypeDefinition. # noqa: E501 + The names of properties that should be **required** when creating an object of this type. # noqa: E501 - :return: The fully_qualified_name of this ObjectTypeDefinition. # noqa: E501 - :rtype: str + :return: The required_properties of this ObjectTypeDefinition. # noqa: E501 + :rtype: list[str] """ - return self._fully_qualified_name + return self._required_properties - @fully_qualified_name.setter - def fully_qualified_name(self, fully_qualified_name): - """Sets the fully_qualified_name of this ObjectTypeDefinition. + @required_properties.setter + def required_properties(self, required_properties): + """Sets the required_properties of this ObjectTypeDefinition. + The names of properties that should be **required** when creating an object of this type. # noqa: E501 - :param fully_qualified_name: The fully_qualified_name of this ObjectTypeDefinition. # noqa: E501 - :type fully_qualified_name: str + :param required_properties: The required_properties of this ObjectTypeDefinition. # noqa: E501 + :type required_properties: list[str] """ - if self.local_vars_configuration.client_side_validation and fully_qualified_name is None: # noqa: E501 - raise ValueError("Invalid value for `fully_qualified_name`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and required_properties is None: # noqa: E501 + raise ValueError("Invalid value for `required_properties`, must not be `None`") # noqa: E501 - self._fully_qualified_name = fully_qualified_name + self._required_properties = required_properties @property - def created_at(self): - """Gets the created_at of this ObjectTypeDefinition. # noqa: E501 + def searchable_properties(self): + """Gets the searchable_properties of this ObjectTypeDefinition. # noqa: E501 - When the object type was created. # noqa: E501 + Names of properties that will be indexed for this object type in by HubSpot's product search. # noqa: E501 - :return: The created_at of this ObjectTypeDefinition. # noqa: E501 - :rtype: datetime + :return: The searchable_properties of this ObjectTypeDefinition. # noqa: E501 + :rtype: list[str] """ - return self._created_at + return self._searchable_properties - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this ObjectTypeDefinition. + @searchable_properties.setter + def searchable_properties(self, searchable_properties): + """Sets the searchable_properties of this ObjectTypeDefinition. - When the object type was created. # noqa: E501 + Names of properties that will be indexed for this object type in by HubSpot's product search. # noqa: E501 - :param created_at: The created_at of this ObjectTypeDefinition. # noqa: E501 - :type created_at: datetime + :param searchable_properties: The searchable_properties of this ObjectTypeDefinition. # noqa: E501 + :type searchable_properties: list[str] """ - self._created_at = created_at + self._searchable_properties = searchable_properties @property - def updated_at(self): - """Gets the updated_at of this ObjectTypeDefinition. # noqa: E501 + def portal_id(self): + """Gets the portal_id of this ObjectTypeDefinition. # noqa: E501 - When the object type was last updated. # noqa: E501 + The ID of the account that this object type is specific to. # noqa: E501 - :return: The updated_at of this ObjectTypeDefinition. # noqa: E501 - :rtype: datetime + :return: The portal_id of this ObjectTypeDefinition. # noqa: E501 + :rtype: int """ - return self._updated_at + return self._portal_id - @updated_at.setter - def updated_at(self, updated_at): - """Sets the updated_at of this ObjectTypeDefinition. + @portal_id.setter + def portal_id(self, portal_id): + """Sets the portal_id of this ObjectTypeDefinition. - When the object type was last updated. # noqa: E501 + The ID of the account that this object type is specific to. # noqa: E501 - :param updated_at: The updated_at of this ObjectTypeDefinition. # noqa: E501 - :type updated_at: datetime + :param portal_id: The portal_id of this ObjectTypeDefinition. # noqa: E501 + :type portal_id: int """ - self._updated_at = updated_at + self._portal_id = portal_id @property - def object_type_id(self): - """Gets the object_type_id of this ObjectTypeDefinition. # noqa: E501 + def primary_display_property(self): + """Gets the primary_display_property of this ObjectTypeDefinition. # noqa: E501 + The name of the primary property for this object. This will be displayed as primary on the HubSpot record page for this object type. # noqa: E501 - :return: The object_type_id of this ObjectTypeDefinition. # noqa: E501 + :return: The primary_display_property of this ObjectTypeDefinition. # noqa: E501 :rtype: str """ - return self._object_type_id + return self._primary_display_property - @object_type_id.setter - def object_type_id(self, object_type_id): - """Sets the object_type_id of this ObjectTypeDefinition. + @primary_display_property.setter + def primary_display_property(self, primary_display_property): + """Sets the primary_display_property of this ObjectTypeDefinition. + The name of the primary property for this object. This will be displayed as primary on the HubSpot record page for this object type. # noqa: E501 - :param object_type_id: The object_type_id of this ObjectTypeDefinition. # noqa: E501 - :type object_type_id: str + :param primary_display_property: The primary_display_property of this ObjectTypeDefinition. # noqa: E501 + :type primary_display_property: str """ - if self.local_vars_configuration.client_side_validation and object_type_id is None: # noqa: E501 - raise ValueError("Invalid value for `object_type_id`, must not be `None`") # noqa: E501 - self._object_type_id = object_type_id + self._primary_display_property = primary_display_property @property def name(self): @@ -409,27 +406,52 @@ def name(self, name): self._name = name @property - def portal_id(self): - """Gets the portal_id of this ObjectTypeDefinition. # noqa: E501 + def id(self): + """Gets the id of this ObjectTypeDefinition. # noqa: E501 - The ID of the account that this object type is specific to. # noqa: E501 + A unique ID for this object type. Will be defined as {meta-type}-{unique ID}. # noqa: E501 - :return: The portal_id of this ObjectTypeDefinition. # noqa: E501 - :rtype: int + :return: The id of this ObjectTypeDefinition. # noqa: E501 + :rtype: str """ - return self._portal_id + return self._id - @portal_id.setter - def portal_id(self, portal_id): - """Sets the portal_id of this ObjectTypeDefinition. + @id.setter + def id(self, id): + """Sets the id of this ObjectTypeDefinition. - The ID of the account that this object type is specific to. # noqa: E501 + A unique ID for this object type. Will be defined as {meta-type}-{unique ID}. # noqa: E501 - :param portal_id: The portal_id of this ObjectTypeDefinition. # noqa: E501 - :type portal_id: int + :param id: The id of this ObjectTypeDefinition. # noqa: E501 + :type id: str """ + if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - self._portal_id = portal_id + self._id = id + + @property + def updated_at(self): + """Gets the updated_at of this ObjectTypeDefinition. # noqa: E501 + + When the object type was last updated. # noqa: E501 + + :return: The updated_at of this ObjectTypeDefinition. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this ObjectTypeDefinition. + + When the object type was last updated. # noqa: E501 + + :param updated_at: The updated_at of this ObjectTypeDefinition. # noqa: E501 + :type updated_at: datetime + """ + + self._updated_at = updated_at def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/schemas/models/object_type_definition_labels.py b/hubspot/crm/schemas/models/object_type_definition_labels.py index 4b19b458..2f66921e 100644 --- a/hubspot/crm/schemas/models/object_type_definition_labels.py +++ b/hubspot/crm/schemas/models/object_type_definition_labels.py @@ -35,47 +35,24 @@ class ObjectTypeDefinitionLabels(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"singular": "str", "plural": "str"} + openapi_types = {"plural": "str", "singular": "str"} - attribute_map = {"singular": "singular", "plural": "plural"} + attribute_map = {"plural": "plural", "singular": "singular"} - def __init__(self, singular=None, plural=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, plural=None, singular=None, local_vars_configuration=None): # noqa: E501 """ObjectTypeDefinitionLabels - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._singular = None self._plural = None + self._singular = None self.discriminator = None - if singular is not None: - self.singular = singular if plural is not None: self.plural = plural - - @property - def singular(self): - """Gets the singular of this ObjectTypeDefinitionLabels. # noqa: E501 - - The word for one object. (There’s no way to change this later.) # noqa: E501 - - :return: The singular of this ObjectTypeDefinitionLabels. # noqa: E501 - :rtype: str - """ - return self._singular - - @singular.setter - def singular(self, singular): - """Sets the singular of this ObjectTypeDefinitionLabels. - - The word for one object. (There’s no way to change this later.) # noqa: E501 - - :param singular: The singular of this ObjectTypeDefinitionLabels. # noqa: E501 - :type singular: str - """ - - self._singular = singular + if singular is not None: + self.singular = singular @property def plural(self): @@ -100,6 +77,29 @@ def plural(self, plural): self._plural = plural + @property + def singular(self): + """Gets the singular of this ObjectTypeDefinitionLabels. # noqa: E501 + + The word for one object. (There’s no way to change this later.) # noqa: E501 + + :return: The singular of this ObjectTypeDefinitionLabels. # noqa: E501 + :rtype: str + """ + return self._singular + + @singular.setter + def singular(self, singular): + """Sets the singular of this ObjectTypeDefinitionLabels. + + The word for one object. (There’s no way to change this later.) # noqa: E501 + + :param singular: The singular of this ObjectTypeDefinitionLabels. # noqa: E501 + :type singular: str + """ + + self._singular = singular + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/schemas/models/object_type_definition_patch.py b/hubspot/crm/schemas/models/object_type_definition_patch.py index 434fcdfc..d54f5530 100644 --- a/hubspot/crm/schemas/models/object_type_definition_patch.py +++ b/hubspot/crm/schemas/models/object_type_definition_patch.py @@ -36,72 +36,87 @@ class ObjectTypeDefinitionPatch(object): and the value is json key in definition. """ openapi_types = { - "labels": "ObjectTypeDefinitionLabels", + "secondary_display_properties": "list[str]", "required_properties": "list[str]", "searchable_properties": "list[str]", "primary_display_property": "str", - "secondary_display_properties": "list[str]", + "description": "str", "restorable": "bool", + "labels": "ObjectTypeDefinitionLabels", } attribute_map = { - "labels": "labels", + "secondary_display_properties": "secondaryDisplayProperties", "required_properties": "requiredProperties", "searchable_properties": "searchableProperties", "primary_display_property": "primaryDisplayProperty", - "secondary_display_properties": "secondaryDisplayProperties", + "description": "description", "restorable": "restorable", + "labels": "labels", } def __init__( - self, labels=None, required_properties=None, searchable_properties=None, primary_display_property=None, secondary_display_properties=None, restorable=None, local_vars_configuration=None + self, + secondary_display_properties=None, + required_properties=None, + searchable_properties=None, + primary_display_property=None, + description=None, + restorable=None, + labels=None, + local_vars_configuration=None, ): # noqa: E501 """ObjectTypeDefinitionPatch - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._labels = None + self._secondary_display_properties = None self._required_properties = None self._searchable_properties = None self._primary_display_property = None - self._secondary_display_properties = None + self._description = None self._restorable = None + self._labels = None self.discriminator = None - if labels is not None: - self.labels = labels + if secondary_display_properties is not None: + self.secondary_display_properties = secondary_display_properties if required_properties is not None: self.required_properties = required_properties if searchable_properties is not None: self.searchable_properties = searchable_properties if primary_display_property is not None: self.primary_display_property = primary_display_property - if secondary_display_properties is not None: - self.secondary_display_properties = secondary_display_properties + if description is not None: + self.description = description if restorable is not None: self.restorable = restorable + if labels is not None: + self.labels = labels @property - def labels(self): - """Gets the labels of this ObjectTypeDefinitionPatch. # noqa: E501 + def secondary_display_properties(self): + """Gets the secondary_display_properties of this ObjectTypeDefinitionPatch. # noqa: E501 + The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 - :return: The labels of this ObjectTypeDefinitionPatch. # noqa: E501 - :rtype: ObjectTypeDefinitionLabels + :return: The secondary_display_properties of this ObjectTypeDefinitionPatch. # noqa: E501 + :rtype: list[str] """ - return self._labels + return self._secondary_display_properties - @labels.setter - def labels(self, labels): - """Sets the labels of this ObjectTypeDefinitionPatch. + @secondary_display_properties.setter + def secondary_display_properties(self, secondary_display_properties): + """Sets the secondary_display_properties of this ObjectTypeDefinitionPatch. + The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 - :param labels: The labels of this ObjectTypeDefinitionPatch. # noqa: E501 - :type labels: ObjectTypeDefinitionLabels + :param secondary_display_properties: The secondary_display_properties of this ObjectTypeDefinitionPatch. # noqa: E501 + :type secondary_display_properties: list[str] """ - self._labels = labels + self._secondary_display_properties = secondary_display_properties @property def required_properties(self): @@ -173,27 +188,25 @@ def primary_display_property(self, primary_display_property): self._primary_display_property = primary_display_property @property - def secondary_display_properties(self): - """Gets the secondary_display_properties of this ObjectTypeDefinitionPatch. # noqa: E501 + def description(self): + """Gets the description of this ObjectTypeDefinitionPatch. # noqa: E501 - The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 - :return: The secondary_display_properties of this ObjectTypeDefinitionPatch. # noqa: E501 - :rtype: list[str] + :return: The description of this ObjectTypeDefinitionPatch. # noqa: E501 + :rtype: str """ - return self._secondary_display_properties + return self._description - @secondary_display_properties.setter - def secondary_display_properties(self, secondary_display_properties): - """Sets the secondary_display_properties of this ObjectTypeDefinitionPatch. + @description.setter + def description(self, description): + """Sets the description of this ObjectTypeDefinitionPatch. - The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type. # noqa: E501 - :param secondary_display_properties: The secondary_display_properties of this ObjectTypeDefinitionPatch. # noqa: E501 - :type secondary_display_properties: list[str] + :param description: The description of this ObjectTypeDefinitionPatch. # noqa: E501 + :type description: str """ - self._secondary_display_properties = secondary_display_properties + self._description = description @property def restorable(self): @@ -216,6 +229,27 @@ def restorable(self, restorable): self._restorable = restorable + @property + def labels(self): + """Gets the labels of this ObjectTypeDefinitionPatch. # noqa: E501 + + + :return: The labels of this ObjectTypeDefinitionPatch. # noqa: E501 + :rtype: ObjectTypeDefinitionLabels + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this ObjectTypeDefinitionPatch. + + + :param labels: The labels of this ObjectTypeDefinitionPatch. # noqa: E501 + :type labels: ObjectTypeDefinitionLabels + """ + + self._labels = labels + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/hubspot/crm/schemas/models/object_type_property_create.py b/hubspot/crm/schemas/models/object_type_property_create.py index b71f89e9..878cb37a 100644 --- a/hubspot/crm/schemas/models/object_type_property_create.py +++ b/hubspot/crm/schemas/models/object_type_property_create.py @@ -36,92 +36,236 @@ class ObjectTypePropertyCreate(object): and the value is json key in definition. """ openapi_types = { - "name": "str", + "hidden": "bool", + "option_sort_strategy": "str", + "display_order": "int", + "description": "str", + "show_currency_symbol": "bool", "label": "str", + "type": "str", + "form_field": "bool", "group_name": "str", - "description": "str", + "referenced_object_type": "str", + "text_display_hint": "str", + "name": "str", "options": "list[OptionInput]", - "display_order": "int", + "searchable_in_global_search": "bool", + "number_display_hint": "str", "has_unique_value": "bool", - "hidden": "bool", - "type": "str", "field_type": "str", } attribute_map = { - "name": "name", + "hidden": "hidden", + "option_sort_strategy": "optionSortStrategy", + "display_order": "displayOrder", + "description": "description", + "show_currency_symbol": "showCurrencySymbol", "label": "label", + "type": "type", + "form_field": "formField", "group_name": "groupName", - "description": "description", + "referenced_object_type": "referencedObjectType", + "text_display_hint": "textDisplayHint", + "name": "name", "options": "options", - "display_order": "displayOrder", + "searchable_in_global_search": "searchableInGlobalSearch", + "number_display_hint": "numberDisplayHint", "has_unique_value": "hasUniqueValue", - "hidden": "hidden", - "type": "type", "field_type": "fieldType", } def __init__( - self, name=None, label=None, group_name=None, description=None, options=None, display_order=None, has_unique_value=None, hidden=None, type=None, field_type=None, local_vars_configuration=None + self, + hidden=None, + option_sort_strategy=None, + display_order=None, + description=None, + show_currency_symbol=None, + label=None, + type=None, + form_field=None, + group_name=None, + referenced_object_type=None, + text_display_hint=None, + name=None, + options=None, + searchable_in_global_search=None, + number_display_hint=None, + has_unique_value=None, + field_type=None, + local_vars_configuration=None, ): # noqa: E501 """ObjectTypePropertyCreate - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._name = None + self._hidden = None + self._option_sort_strategy = None + self._display_order = None + self._description = None + self._show_currency_symbol = None self._label = None + self._type = None + self._form_field = None self._group_name = None - self._description = None + self._referenced_object_type = None + self._text_display_hint = None + self._name = None self._options = None - self._display_order = None + self._searchable_in_global_search = None + self._number_display_hint = None self._has_unique_value = None - self._hidden = None - self._type = None self._field_type = None self.discriminator = None - self.name = name + if hidden is not None: + self.hidden = hidden + if option_sort_strategy is not None: + self.option_sort_strategy = option_sort_strategy + if display_order is not None: + self.display_order = display_order + if description is not None: + self.description = description + if show_currency_symbol is not None: + self.show_currency_symbol = show_currency_symbol self.label = label + self.type = type + if form_field is not None: + self.form_field = form_field if group_name is not None: self.group_name = group_name - if description is not None: - self.description = description + if referenced_object_type is not None: + self.referenced_object_type = referenced_object_type + if text_display_hint is not None: + self.text_display_hint = text_display_hint + self.name = name if options is not None: self.options = options - if display_order is not None: - self.display_order = display_order + if searchable_in_global_search is not None: + self.searchable_in_global_search = searchable_in_global_search + if number_display_hint is not None: + self.number_display_hint = number_display_hint if has_unique_value is not None: self.has_unique_value = has_unique_value - if hidden is not None: - self.hidden = hidden - self.type = type self.field_type = field_type @property - def name(self): - """Gets the name of this ObjectTypePropertyCreate. # noqa: E501 + def hidden(self): + """Gets the hidden of this ObjectTypePropertyCreate. # noqa: E501 - The internal property name, which must be used when referencing the property from the API. # noqa: E501 - :return: The name of this ObjectTypePropertyCreate. # noqa: E501 + :return: The hidden of this ObjectTypePropertyCreate. # noqa: E501 + :rtype: bool + """ + return self._hidden + + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this ObjectTypePropertyCreate. + + + :param hidden: The hidden of this ObjectTypePropertyCreate. # noqa: E501 + :type hidden: bool + """ + + self._hidden = hidden + + @property + def option_sort_strategy(self): + """Gets the option_sort_strategy of this ObjectTypePropertyCreate. # noqa: E501 + + Controls how the property options will be sorted in the HubSpot UI. # noqa: E501 + + :return: The option_sort_strategy of this ObjectTypePropertyCreate. # noqa: E501 :rtype: str """ - return self._name + return self._option_sort_strategy - @name.setter - def name(self, name): - """Sets the name of this ObjectTypePropertyCreate. + @option_sort_strategy.setter + def option_sort_strategy(self, option_sort_strategy): + """Sets the option_sort_strategy of this ObjectTypePropertyCreate. - The internal property name, which must be used when referencing the property from the API. # noqa: E501 + Controls how the property options will be sorted in the HubSpot UI. # noqa: E501 - :param name: The name of this ObjectTypePropertyCreate. # noqa: E501 - :type name: str + :param option_sort_strategy: The option_sort_strategy of this ObjectTypePropertyCreate. # noqa: E501 + :type option_sort_strategy: str """ - if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + allowed_values = ["DISPLAY_ORDER", "ALPHABETICAL"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and option_sort_strategy not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `option_sort_strategy` ({0}), must be one of {1}".format(option_sort_strategy, allowed_values)) # noqa: E501 - self._name = name + self._option_sort_strategy = option_sort_strategy + + @property + def display_order(self): + """Gets the display_order of this ObjectTypePropertyCreate. # noqa: E501 + + The order that this property should be displayed in the HubSpot UI relative to other properties for this object type. Properties are displayed in order starting with the lowest positive integer value. A value of -1 will cause the property to be displayed **after** any positive values. # noqa: E501 + + :return: The display_order of this ObjectTypePropertyCreate. # noqa: E501 + :rtype: int + """ + return self._display_order + + @display_order.setter + def display_order(self, display_order): + """Sets the display_order of this ObjectTypePropertyCreate. + + The order that this property should be displayed in the HubSpot UI relative to other properties for this object type. Properties are displayed in order starting with the lowest positive integer value. A value of -1 will cause the property to be displayed **after** any positive values. # noqa: E501 + + :param display_order: The display_order of this ObjectTypePropertyCreate. # noqa: E501 + :type display_order: int + """ + + self._display_order = display_order + + @property + def description(self): + """Gets the description of this ObjectTypePropertyCreate. # noqa: E501 + + A description of the property that will be shown as help text in HubSpot. # noqa: E501 + + :return: The description of this ObjectTypePropertyCreate. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ObjectTypePropertyCreate. + + A description of the property that will be shown as help text in HubSpot. # noqa: E501 + + :param description: The description of this ObjectTypePropertyCreate. # noqa: E501 + :type description: str + """ + + self._description = description + + @property + def show_currency_symbol(self): + """Gets the show_currency_symbol of this ObjectTypePropertyCreate. # noqa: E501 + + Whether the property will display the currency symbol in the HubSpot UI. # noqa: E501 + + :return: The show_currency_symbol of this ObjectTypePropertyCreate. # noqa: E501 + :rtype: bool + """ + return self._show_currency_symbol + + @show_currency_symbol.setter + def show_currency_symbol(self, show_currency_symbol): + """Sets the show_currency_symbol of this ObjectTypePropertyCreate. + + Whether the property will display the currency symbol in the HubSpot UI. # noqa: E501 + + :param show_currency_symbol: The show_currency_symbol of this ObjectTypePropertyCreate. # noqa: E501 + :type show_currency_symbol: bool + """ + + self._show_currency_symbol = show_currency_symbol @property def label(self): @@ -148,6 +292,57 @@ def label(self, label): self._label = label + @property + def type(self): + """Gets the type of this ObjectTypePropertyCreate. # noqa: E501 + + The data type of the property. # noqa: E501 + + :return: The type of this ObjectTypePropertyCreate. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ObjectTypePropertyCreate. + + The data type of the property. # noqa: E501 + + :param type: The type of this ObjectTypePropertyCreate. # noqa: E501 + :type type: str + """ + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + allowed_values = ["string", "number", "date", "datetime", "enumeration", "bool"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `type` ({0}), must be one of {1}".format(type, allowed_values)) # noqa: E501 + + self._type = type + + @property + def form_field(self): + """Gets the form_field of this ObjectTypePropertyCreate. # noqa: E501 + + Whether the property can be used in a HubSpot form. # noqa: E501 + + :return: The form_field of this ObjectTypePropertyCreate. # noqa: E501 + :rtype: bool + """ + return self._form_field + + @form_field.setter + def form_field(self, form_field): + """Sets the form_field of this ObjectTypePropertyCreate. + + Whether the property can be used in a HubSpot form. # noqa: E501 + + :param form_field: The form_field of this ObjectTypePropertyCreate. # noqa: E501 + :type form_field: bool + """ + + self._form_field = form_field + @property def group_name(self): """Gets the group_name of this ObjectTypePropertyCreate. # noqa: E501 @@ -172,27 +367,78 @@ def group_name(self, group_name): self._group_name = group_name @property - def description(self): - """Gets the description of this ObjectTypePropertyCreate. # noqa: E501 + def referenced_object_type(self): + """Gets the referenced_object_type of this ObjectTypePropertyCreate. # noqa: E501 - A description of the property that will be shown as help text in HubSpot. # noqa: E501 + Defines the options this property will return, e.g. OWNER would return name of users on the portal. # noqa: E501 - :return: The description of this ObjectTypePropertyCreate. # noqa: E501 + :return: The referenced_object_type of this ObjectTypePropertyCreate. # noqa: E501 :rtype: str """ - return self._description + return self._referenced_object_type - @description.setter - def description(self, description): - """Sets the description of this ObjectTypePropertyCreate. + @referenced_object_type.setter + def referenced_object_type(self, referenced_object_type): + """Sets the referenced_object_type of this ObjectTypePropertyCreate. - A description of the property that will be shown as help text in HubSpot. # noqa: E501 + Defines the options this property will return, e.g. OWNER would return name of users on the portal. # noqa: E501 - :param description: The description of this ObjectTypePropertyCreate. # noqa: E501 - :type description: str + :param referenced_object_type: The referenced_object_type of this ObjectTypePropertyCreate. # noqa: E501 + :type referenced_object_type: str """ - self._description = description + self._referenced_object_type = referenced_object_type + + @property + def text_display_hint(self): + """Gets the text_display_hint of this ObjectTypePropertyCreate. # noqa: E501 + + Controls how text properties are formatted in the HubSpot UI # noqa: E501 + + :return: The text_display_hint of this ObjectTypePropertyCreate. # noqa: E501 + :rtype: str + """ + return self._text_display_hint + + @text_display_hint.setter + def text_display_hint(self, text_display_hint): + """Sets the text_display_hint of this ObjectTypePropertyCreate. + + Controls how text properties are formatted in the HubSpot UI # noqa: E501 + + :param text_display_hint: The text_display_hint of this ObjectTypePropertyCreate. # noqa: E501 + :type text_display_hint: str + """ + allowed_values = ["unformatted_single_line", "multi_line", "email", "phone_number", "domain_name", "ip_address", "physical_address", "postal_code"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and text_display_hint not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `text_display_hint` ({0}), must be one of {1}".format(text_display_hint, allowed_values)) # noqa: E501 + + self._text_display_hint = text_display_hint + + @property + def name(self): + """Gets the name of this ObjectTypePropertyCreate. # noqa: E501 + + The internal property name, which must be used when referencing the property from the API. # noqa: E501 + + :return: The name of this ObjectTypePropertyCreate. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ObjectTypePropertyCreate. + + The internal property name, which must be used when referencing the property from the API. # noqa: E501 + + :param name: The name of this ObjectTypePropertyCreate. # noqa: E501 + :type name: str + """ + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name @property def options(self): @@ -218,27 +464,53 @@ def options(self, options): self._options = options @property - def display_order(self): - """Gets the display_order of this ObjectTypePropertyCreate. # noqa: E501 + def searchable_in_global_search(self): + """Gets the searchable_in_global_search of this ObjectTypePropertyCreate. # noqa: E501 - The order that this property should be displayed in the HubSpot UI relative to other properties for this object type. Properties are displayed in order starting with the lowest positive integer value. A value of -1 will cause the property to be displayed **after** any positive values. # noqa: E501 + Allow users to search for information entered to this field (limited to 3 properties) # noqa: E501 - :return: The display_order of this ObjectTypePropertyCreate. # noqa: E501 - :rtype: int + :return: The searchable_in_global_search of this ObjectTypePropertyCreate. # noqa: E501 + :rtype: bool """ - return self._display_order + return self._searchable_in_global_search - @display_order.setter - def display_order(self, display_order): - """Sets the display_order of this ObjectTypePropertyCreate. + @searchable_in_global_search.setter + def searchable_in_global_search(self, searchable_in_global_search): + """Sets the searchable_in_global_search of this ObjectTypePropertyCreate. - The order that this property should be displayed in the HubSpot UI relative to other properties for this object type. Properties are displayed in order starting with the lowest positive integer value. A value of -1 will cause the property to be displayed **after** any positive values. # noqa: E501 + Allow users to search for information entered to this field (limited to 3 properties) # noqa: E501 - :param display_order: The display_order of this ObjectTypePropertyCreate. # noqa: E501 - :type display_order: int + :param searchable_in_global_search: The searchable_in_global_search of this ObjectTypePropertyCreate. # noqa: E501 + :type searchable_in_global_search: bool """ - self._display_order = display_order + self._searchable_in_global_search = searchable_in_global_search + + @property + def number_display_hint(self): + """Gets the number_display_hint of this ObjectTypePropertyCreate. # noqa: E501 + + Controls how numeric properties are formatted in the HubSpot UI # noqa: E501 + + :return: The number_display_hint of this ObjectTypePropertyCreate. # noqa: E501 + :rtype: str + """ + return self._number_display_hint + + @number_display_hint.setter + def number_display_hint(self, number_display_hint): + """Sets the number_display_hint of this ObjectTypePropertyCreate. + + Controls how numeric properties are formatted in the HubSpot UI # noqa: E501 + + :param number_display_hint: The number_display_hint of this ObjectTypePropertyCreate. # noqa: E501 + :type number_display_hint: str + """ + allowed_values = ["unformatted", "formatted", "currency", "percentage", "duration", "probability"] # noqa: E501 + if self.local_vars_configuration.client_side_validation and number_display_hint not in allowed_values: # noqa: E501 + raise ValueError("Invalid value for `number_display_hint` ({0}), must be one of {1}".format(number_display_hint, allowed_values)) # noqa: E501 + + self._number_display_hint = number_display_hint @property def has_unique_value(self): @@ -263,55 +535,6 @@ def has_unique_value(self, has_unique_value): self._has_unique_value = has_unique_value - @property - def hidden(self): - """Gets the hidden of this ObjectTypePropertyCreate. # noqa: E501 - - - :return: The hidden of this ObjectTypePropertyCreate. # noqa: E501 - :rtype: bool - """ - return self._hidden - - @hidden.setter - def hidden(self, hidden): - """Sets the hidden of this ObjectTypePropertyCreate. - - - :param hidden: The hidden of this ObjectTypePropertyCreate. # noqa: E501 - :type hidden: bool - """ - - self._hidden = hidden - - @property - def type(self): - """Gets the type of this ObjectTypePropertyCreate. # noqa: E501 - - The data type of the property. # noqa: E501 - - :return: The type of this ObjectTypePropertyCreate. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this ObjectTypePropertyCreate. - - The data type of the property. # noqa: E501 - - :param type: The type of this ObjectTypePropertyCreate. # noqa: E501 - :type type: str - """ - if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["string", "number", "date", "datetime", "enumeration", "bool"] # noqa: E501 - if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501 - raise ValueError("Invalid value for `type` ({0}), must be one of {1}".format(type, allowed_values)) # noqa: E501 - - self._type = type - @property def field_type(self): """Gets the field_type of this ObjectTypePropertyCreate. # noqa: E501 diff --git a/hubspot/crm/schemas/models/option.py b/hubspot/crm/schemas/models/option.py index 0327a6d1..8a073aae 100644 --- a/hubspot/crm/schemas/models/option.py +++ b/hubspot/crm/schemas/models/option.py @@ -35,80 +35,78 @@ class Option(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"label": "str", "value": "str", "description": "str", "display_order": "int", "hidden": "bool"} + openapi_types = {"hidden": "bool", "display_order": "int", "description": "str", "label": "str", "value": "str"} - attribute_map = {"label": "label", "value": "value", "description": "description", "display_order": "displayOrder", "hidden": "hidden"} + attribute_map = {"hidden": "hidden", "display_order": "displayOrder", "description": "description", "label": "label", "value": "value"} - def __init__(self, label=None, value=None, description=None, display_order=None, hidden=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, hidden=None, display_order=None, description=None, label=None, value=None, local_vars_configuration=None): # noqa: E501 """Option - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration + self._hidden = None + self._display_order = None + self._description = None self._label = None self._value = None - self._description = None - self._display_order = None - self._hidden = None self.discriminator = None - self.label = label - self.value = value - if description is not None: - self.description = description + self.hidden = hidden if display_order is not None: self.display_order = display_order - self.hidden = hidden + if description is not None: + self.description = description + self.label = label + self.value = value @property - def label(self): - """Gets the label of this Option. # noqa: E501 + def hidden(self): + """Gets the hidden of this Option. # noqa: E501 - A human-readable option label that will be shown in HubSpot. # noqa: E501 + Hidden options will not be displayed in HubSpot. # noqa: E501 - :return: The label of this Option. # noqa: E501 - :rtype: str + :return: The hidden of this Option. # noqa: E501 + :rtype: bool """ - return self._label + return self._hidden - @label.setter - def label(self, label): - """Sets the label of this Option. + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this Option. - A human-readable option label that will be shown in HubSpot. # noqa: E501 + Hidden options will not be displayed in HubSpot. # noqa: E501 - :param label: The label of this Option. # noqa: E501 - :type label: str + :param hidden: The hidden of this Option. # noqa: E501 + :type hidden: bool """ - if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 - raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and hidden is None: # noqa: E501 + raise ValueError("Invalid value for `hidden`, must not be `None`") # noqa: E501 - self._label = label + self._hidden = hidden @property - def value(self): - """Gets the value of this Option. # noqa: E501 + def display_order(self): + """Gets the display_order of this Option. # noqa: E501 - The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 + Options are displayed in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 - :return: The value of this Option. # noqa: E501 - :rtype: str + :return: The display_order of this Option. # noqa: E501 + :rtype: int """ - return self._value + return self._display_order - @value.setter - def value(self, value): - """Sets the value of this Option. + @display_order.setter + def display_order(self, display_order): + """Sets the display_order of this Option. - The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 + Options are displayed in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 - :param value: The value of this Option. # noqa: E501 - :type value: str + :param display_order: The display_order of this Option. # noqa: E501 + :type display_order: int """ - if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - self._value = value + self._display_order = display_order @property def description(self): @@ -134,52 +132,54 @@ def description(self, description): self._description = description @property - def display_order(self): - """Gets the display_order of this Option. # noqa: E501 + def label(self): + """Gets the label of this Option. # noqa: E501 - Options are displayed in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 + A human-readable option label that will be shown in HubSpot. # noqa: E501 - :return: The display_order of this Option. # noqa: E501 - :rtype: int + :return: The label of this Option. # noqa: E501 + :rtype: str """ - return self._display_order + return self._label - @display_order.setter - def display_order(self, display_order): - """Sets the display_order of this Option. + @label.setter + def label(self, label): + """Sets the label of this Option. - Options are displayed in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 + A human-readable option label that will be shown in HubSpot. # noqa: E501 - :param display_order: The display_order of this Option. # noqa: E501 - :type display_order: int + :param label: The label of this Option. # noqa: E501 + :type label: str """ + if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 + raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 - self._display_order = display_order + self._label = label @property - def hidden(self): - """Gets the hidden of this Option. # noqa: E501 + def value(self): + """Gets the value of this Option. # noqa: E501 - Hidden options will not be displayed in HubSpot. # noqa: E501 + The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 - :return: The hidden of this Option. # noqa: E501 - :rtype: bool + :return: The value of this Option. # noqa: E501 + :rtype: str """ - return self._hidden + return self._value - @hidden.setter - def hidden(self, hidden): - """Sets the hidden of this Option. + @value.setter + def value(self, value): + """Sets the value of this Option. - Hidden options will not be displayed in HubSpot. # noqa: E501 + The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 - :param hidden: The hidden of this Option. # noqa: E501 - :type hidden: bool + :param value: The value of this Option. # noqa: E501 + :type value: str """ - if self.local_vars_configuration.client_side_validation and hidden is None: # noqa: E501 - raise ValueError("Invalid value for `hidden`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - self._hidden = hidden + self._value = value def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/schemas/models/option_input.py b/hubspot/crm/schemas/models/option_input.py index bee94135..ae4aa763 100644 --- a/hubspot/crm/schemas/models/option_input.py +++ b/hubspot/crm/schemas/models/option_input.py @@ -35,79 +35,79 @@ class OptionInput(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"label": "str", "value": "str", "description": "str", "display_order": "int", "hidden": "bool"} + openapi_types = {"hidden": "bool", "display_order": "int", "description": "str", "label": "str", "value": "str"} - attribute_map = {"label": "label", "value": "value", "description": "description", "display_order": "displayOrder", "hidden": "hidden"} + attribute_map = {"hidden": "hidden", "display_order": "displayOrder", "description": "description", "label": "label", "value": "value"} - def __init__(self, label=None, value=None, description=None, display_order=None, hidden=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, hidden=None, display_order=None, description=None, label=None, value=None, local_vars_configuration=None): # noqa: E501 """OptionInput - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration + self._hidden = None + self._display_order = None + self._description = None self._label = None self._value = None - self._description = None - self._display_order = None - self._hidden = None self.discriminator = None - self.label = label - self.value = value + self.hidden = hidden + self.display_order = display_order if description is not None: self.description = description - self.display_order = display_order - self.hidden = hidden + self.label = label + self.value = value @property - def label(self): - """Gets the label of this OptionInput. # noqa: E501 + def hidden(self): + """Gets the hidden of this OptionInput. # noqa: E501 - A human-readable option label that will be shown in HubSpot. # noqa: E501 + Hidden options won't be shown in HubSpot. # noqa: E501 - :return: The label of this OptionInput. # noqa: E501 - :rtype: str + :return: The hidden of this OptionInput. # noqa: E501 + :rtype: bool """ - return self._label + return self._hidden - @label.setter - def label(self, label): - """Sets the label of this OptionInput. + @hidden.setter + def hidden(self, hidden): + """Sets the hidden of this OptionInput. - A human-readable option label that will be shown in HubSpot. # noqa: E501 + Hidden options won't be shown in HubSpot. # noqa: E501 - :param label: The label of this OptionInput. # noqa: E501 - :type label: str + :param hidden: The hidden of this OptionInput. # noqa: E501 + :type hidden: bool """ - if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 - raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and hidden is None: # noqa: E501 + raise ValueError("Invalid value for `hidden`, must not be `None`") # noqa: E501 - self._label = label + self._hidden = hidden @property - def value(self): - """Gets the value of this OptionInput. # noqa: E501 + def display_order(self): + """Gets the display_order of this OptionInput. # noqa: E501 - The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 + Options are shown in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 - :return: The value of this OptionInput. # noqa: E501 - :rtype: str + :return: The display_order of this OptionInput. # noqa: E501 + :rtype: int """ - return self._value + return self._display_order - @value.setter - def value(self, value): - """Sets the value of this OptionInput. + @display_order.setter + def display_order(self, display_order): + """Sets the display_order of this OptionInput. - The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 + Options are shown in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 - :param value: The value of this OptionInput. # noqa: E501 - :type value: str + :param display_order: The display_order of this OptionInput. # noqa: E501 + :type display_order: int """ - if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and display_order is None: # noqa: E501 + raise ValueError("Invalid value for `display_order`, must not be `None`") # noqa: E501 - self._value = value + self._display_order = display_order @property def description(self): @@ -133,54 +133,54 @@ def description(self, description): self._description = description @property - def display_order(self): - """Gets the display_order of this OptionInput. # noqa: E501 + def label(self): + """Gets the label of this OptionInput. # noqa: E501 - Options are shown in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 + A human-readable option label that will be shown in HubSpot. # noqa: E501 - :return: The display_order of this OptionInput. # noqa: E501 - :rtype: int + :return: The label of this OptionInput. # noqa: E501 + :rtype: str """ - return self._display_order + return self._label - @display_order.setter - def display_order(self, display_order): - """Sets the display_order of this OptionInput. + @label.setter + def label(self, label): + """Sets the label of this OptionInput. - Options are shown in order starting with the lowest positive integer value. Values of -1 will cause the option to be displayed after any positive values. # noqa: E501 + A human-readable option label that will be shown in HubSpot. # noqa: E501 - :param display_order: The display_order of this OptionInput. # noqa: E501 - :type display_order: int + :param label: The label of this OptionInput. # noqa: E501 + :type label: str """ - if self.local_vars_configuration.client_side_validation and display_order is None: # noqa: E501 - raise ValueError("Invalid value for `display_order`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and label is None: # noqa: E501 + raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 - self._display_order = display_order + self._label = label @property - def hidden(self): - """Gets the hidden of this OptionInput. # noqa: E501 + def value(self): + """Gets the value of this OptionInput. # noqa: E501 - Hidden options won't be shown in HubSpot. # noqa: E501 + The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 - :return: The hidden of this OptionInput. # noqa: E501 - :rtype: bool + :return: The value of this OptionInput. # noqa: E501 + :rtype: str """ - return self._hidden + return self._value - @hidden.setter - def hidden(self, hidden): - """Sets the hidden of this OptionInput. + @value.setter + def value(self, value): + """Sets the value of this OptionInput. - Hidden options won't be shown in HubSpot. # noqa: E501 + The internal value of the option, which must be used when setting the property value through the API. # noqa: E501 - :param hidden: The hidden of this OptionInput. # noqa: E501 - :type hidden: bool + :param value: The value of this OptionInput. # noqa: E501 + :type value: str """ - if self.local_vars_configuration.client_side_validation and hidden is None: # noqa: E501 - raise ValueError("Invalid value for `hidden`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - self._hidden = hidden + self._value = value def to_dict(self, serialize=False): """Returns the model properties as a dict""" diff --git a/hubspot/crm/schemas/models/property_modification_metadata.py b/hubspot/crm/schemas/models/property_modification_metadata.py index f11322a4..4ed503e9 100644 --- a/hubspot/crm/schemas/models/property_modification_metadata.py +++ b/hubspot/crm/schemas/models/property_modification_metadata.py @@ -35,55 +35,81 @@ class PropertyModificationMetadata(object): attribute_map (dict): The key is attribute name and the value is json key in definition. """ - openapi_types = {"archivable": "bool", "read_only_definition": "bool", "read_only_options": "bool", "read_only_value": "bool"} + openapi_types = {"read_only_options": "bool", "read_only_value": "bool", "read_only_definition": "bool", "archivable": "bool"} - attribute_map = {"archivable": "archivable", "read_only_definition": "readOnlyDefinition", "read_only_options": "readOnlyOptions", "read_only_value": "readOnlyValue"} + attribute_map = {"read_only_options": "readOnlyOptions", "read_only_value": "readOnlyValue", "read_only_definition": "readOnlyDefinition", "archivable": "archivable"} - def __init__(self, archivable=None, read_only_definition=None, read_only_options=None, read_only_value=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, read_only_options=None, read_only_value=None, read_only_definition=None, archivable=None, local_vars_configuration=None): # noqa: E501 """PropertyModificationMetadata - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration - self._archivable = None - self._read_only_definition = None self._read_only_options = None self._read_only_value = None + self._read_only_definition = None + self._archivable = None self.discriminator = None - self.archivable = archivable - self.read_only_definition = read_only_definition if read_only_options is not None: self.read_only_options = read_only_options self.read_only_value = read_only_value + self.read_only_definition = read_only_definition + self.archivable = archivable @property - def archivable(self): - """Gets the archivable of this PropertyModificationMetadata. # noqa: E501 + def read_only_options(self): + """Gets the read_only_options of this PropertyModificationMetadata. # noqa: E501 + # noqa: E501 - :return: The archivable of this PropertyModificationMetadata. # noqa: E501 + :return: The read_only_options of this PropertyModificationMetadata. # noqa: E501 :rtype: bool """ - return self._archivable + return self._read_only_options - @archivable.setter - def archivable(self, archivable): - """Sets the archivable of this PropertyModificationMetadata. + @read_only_options.setter + def read_only_options(self, read_only_options): + """Sets the read_only_options of this PropertyModificationMetadata. + # noqa: E501 - :param archivable: The archivable of this PropertyModificationMetadata. # noqa: E501 - :type archivable: bool + :param read_only_options: The read_only_options of this PropertyModificationMetadata. # noqa: E501 + :type read_only_options: bool """ - if self.local_vars_configuration.client_side_validation and archivable is None: # noqa: E501 - raise ValueError("Invalid value for `archivable`, must not be `None`") # noqa: E501 - self._archivable = archivable + self._read_only_options = read_only_options + + @property + def read_only_value(self): + """Gets the read_only_value of this PropertyModificationMetadata. # noqa: E501 + + # noqa: E501 + + :return: The read_only_value of this PropertyModificationMetadata. # noqa: E501 + :rtype: bool + """ + return self._read_only_value + + @read_only_value.setter + def read_only_value(self, read_only_value): + """Sets the read_only_value of this PropertyModificationMetadata. + + # noqa: E501 + + :param read_only_value: The read_only_value of this PropertyModificationMetadata. # noqa: E501 + :type read_only_value: bool + """ + if self.local_vars_configuration.client_side_validation and read_only_value is None: # noqa: E501 + raise ValueError("Invalid value for `read_only_value`, must not be `None`") # noqa: E501 + + self._read_only_value = read_only_value @property def read_only_definition(self): """Gets the read_only_definition of this PropertyModificationMetadata. # noqa: E501 + # noqa: E501 :return: The read_only_definition of this PropertyModificationMetadata. # noqa: E501 :rtype: bool @@ -94,6 +120,7 @@ def read_only_definition(self): def read_only_definition(self, read_only_definition): """Sets the read_only_definition of this PropertyModificationMetadata. + # noqa: E501 :param read_only_definition: The read_only_definition of this PropertyModificationMetadata. # noqa: E501 :type read_only_definition: bool @@ -104,48 +131,29 @@ def read_only_definition(self, read_only_definition): self._read_only_definition = read_only_definition @property - def read_only_options(self): - """Gets the read_only_options of this PropertyModificationMetadata. # noqa: E501 - - - :return: The read_only_options of this PropertyModificationMetadata. # noqa: E501 - :rtype: bool - """ - return self._read_only_options - - @read_only_options.setter - def read_only_options(self, read_only_options): - """Sets the read_only_options of this PropertyModificationMetadata. - - - :param read_only_options: The read_only_options of this PropertyModificationMetadata. # noqa: E501 - :type read_only_options: bool - """ - - self._read_only_options = read_only_options - - @property - def read_only_value(self): - """Gets the read_only_value of this PropertyModificationMetadata. # noqa: E501 + def archivable(self): + """Gets the archivable of this PropertyModificationMetadata. # noqa: E501 + # noqa: E501 - :return: The read_only_value of this PropertyModificationMetadata. # noqa: E501 + :return: The archivable of this PropertyModificationMetadata. # noqa: E501 :rtype: bool """ - return self._read_only_value + return self._archivable - @read_only_value.setter - def read_only_value(self, read_only_value): - """Sets the read_only_value of this PropertyModificationMetadata. + @archivable.setter + def archivable(self, archivable): + """Sets the archivable of this PropertyModificationMetadata. + # noqa: E501 - :param read_only_value: The read_only_value of this PropertyModificationMetadata. # noqa: E501 - :type read_only_value: bool + :param archivable: The archivable of this PropertyModificationMetadata. # noqa: E501 + :type archivable: bool """ - if self.local_vars_configuration.client_side_validation and read_only_value is None: # noqa: E501 - raise ValueError("Invalid value for `read_only_value`, must not be `None`") # noqa: E501 + if self.local_vars_configuration.client_side_validation and archivable is None: # noqa: E501 + raise ValueError("Invalid value for `archivable`, must not be `None`") # noqa: E501 - self._read_only_value = read_only_value + self._archivable = archivable def to_dict(self, serialize=False): """Returns the model properties as a dict"""