hubspot-api-client 16.3.0 → 17.0.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +75 -1
- data/Gemfile.lock +1 -1
- data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +66 -66
- data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +9 -9
- data/lib/hubspot/codegen/cms/hubdb/models/{batch_input_json_node.rb → batch_input_hub_db_table_row_v3_batch_update_request.rb} +4 -4
- data/lib/hubspot/codegen/cms/hubdb/models/column.rb +52 -44
- data/lib/hubspot/codegen/cms/hubdb/models/column_request.rb +2 -2
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +29 -20
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_batch_update_request.rb +285 -0
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3_request.rb +13 -4
- data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +60 -52
- data/lib/hubspot/codegen/cms/hubdb/models/option.rb +10 -1
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +9 -9
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +9 -9
- data/lib/hubspot/codegen/crm/companies/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +10 -1
- data/lib/hubspot/codegen/crm/companies/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
- data/lib/hubspot/codegen/crm/companies/models/public_object_id.rb +228 -0
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input_for_create.rb +246 -0
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +9 -9
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +9 -9
- data/lib/hubspot/codegen/crm/contacts/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +10 -1
- data/lib/hubspot/codegen/crm/contacts/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
- data/lib/hubspot/codegen/crm/contacts/models/public_object_id.rb +228 -0
- data/lib/hubspot/codegen/crm/{deals/models/multi_associated_object_with_label.rb → contacts/models/simple_public_object_input_for_create.rb} +28 -26
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +9 -9
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +9 -9
- data/lib/hubspot/codegen/crm/deals/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +10 -1
- data/lib/hubspot/codegen/crm/deals/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
- data/lib/hubspot/codegen/crm/{properties/models/paging.rb → deals/models/public_object_id.rb} +19 -14
- data/lib/hubspot/codegen/crm/{tickets/models/multi_associated_object_with_label.rb → deals/models/simple_public_object_input_for_create.rb} +28 -26
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +9 -9
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +9 -9
- data/lib/hubspot/codegen/crm/line_items/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +10 -1
- data/lib/hubspot/codegen/crm/line_items/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
- data/lib/hubspot/codegen/crm/line_items/models/public_object_id.rb +228 -0
- data/lib/hubspot/codegen/crm/line_items/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/calls/api/batch_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/calls/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/calls/models/filter.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/calls/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
- data/lib/hubspot/codegen/crm/objects/calls/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/calls/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
- data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/emails/api/batch_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/emails/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/emails/models/filter.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/emails/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
- data/lib/hubspot/codegen/crm/objects/emails/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/emails/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
- data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/meetings/api/batch_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/meetings/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/meetings/models/filter.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/meetings/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
- data/lib/hubspot/codegen/crm/objects/meetings/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/meetings/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
- data/lib/hubspot/codegen/crm/{line_items/models/association_spec_with_label.rb → objects/models/association_spec.rb} +33 -42
- data/lib/hubspot/codegen/crm/objects/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/models/filter.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/models/public_associations_for_object.rb +244 -0
- data/lib/hubspot/codegen/crm/{associations/models/public_association_definiton.rb → objects/models/public_object_id.rb} +11 -25
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input_for_create.rb +246 -0
- data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/notes/api/batch_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/notes/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/notes/models/filter.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/notes/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
- data/lib/hubspot/codegen/crm/objects/notes/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/notes/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/basic_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/batch_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/filter.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
- data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/tasks/api/batch_api.rb +9 -9
- data/lib/hubspot/codegen/crm/objects/tasks/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/objects/tasks/models/filter.rb +10 -1
- data/lib/hubspot/codegen/crm/objects/tasks/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
- data/lib/hubspot/codegen/crm/objects/tasks/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/tasks/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +9 -9
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +9 -9
- data/lib/hubspot/codegen/crm/products/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/products/models/filter.rb +10 -1
- data/lib/hubspot/codegen/crm/products/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
- data/lib/hubspot/codegen/crm/products/models/public_object_id.rb +228 -0
- data/lib/hubspot/codegen/crm/products/models/{multi_associated_object_with_label.rb → simple_public_object_input_for_create.rb} +25 -23
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +9 -3
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +3 -3
- data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +18 -18
- data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +1 -21
- data/lib/hubspot/codegen/crm/properties/models/batch_response_property_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/properties/models/{collection_response_property_group.rb → collection_response_property_group_no_paging.rb} +7 -16
- data/lib/hubspot/codegen/crm/properties/models/{collection_response_property.rb → collection_response_property_no_paging.rb} +7 -16
- data/lib/hubspot/codegen/crm/properties/models/error_category.rb +20 -20
- data/lib/hubspot/codegen/crm/properties/models/property.rb +14 -4
- data/lib/hubspot/codegen/crm/properties/models/property_create.rb +38 -8
- data/lib/hubspot/codegen/crm/properties/models/property_update.rb +18 -8
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +9 -9
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +9 -9
- data/lib/hubspot/codegen/crm/quotes/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +10 -1
- data/lib/hubspot/codegen/crm/quotes/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
- data/lib/hubspot/codegen/crm/quotes/models/public_object_id.rb +228 -0
- data/lib/hubspot/codegen/crm/{contacts/models/multi_associated_object_with_label.rb → quotes/models/simple_public_object_input_for_create.rb} +28 -26
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +9 -9
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +9 -9
- data/lib/hubspot/codegen/crm/tickets/models/{batch_input_simple_public_object_input.rb → batch_input_simple_public_object_input_for_create.rb} +4 -4
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +10 -1
- data/lib/hubspot/codegen/crm/tickets/models/{collection_response_multi_associated_object_with_label_forward_paging.rb → public_associations_for_object.rb} +26 -21
- data/lib/hubspot/codegen/crm/tickets/models/public_object_id.rb +228 -0
- data/lib/hubspot/codegen/crm/{companies/models/multi_associated_object_with_label.rb → tickets/models/simple_public_object_input_for_create.rb} +28 -26
- data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +7 -7
- data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +14 -14
- data/lib/hubspot/codegen/oauth/api/tokens_api.rb +6 -6
- data/lib/hubspot/discovery/crm/companies/client.rb +0 -1
- data/lib/hubspot/discovery/crm/contacts/client.rb +0 -1
- data/lib/hubspot/discovery/crm/deals/client.rb +0 -1
- data/lib/hubspot/discovery/crm/line_items/client.rb +0 -1
- data/lib/hubspot/discovery/crm/objects/calls/client.rb +0 -1
- data/lib/hubspot/discovery/crm/objects/emails/client.rb +0 -1
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/client.rb +0 -1
- data/lib/hubspot/discovery/crm/objects/meetings/client.rb +0 -1
- data/lib/hubspot/discovery/crm/objects/notes/client.rb +0 -1
- data/lib/hubspot/discovery/crm/objects/postal_mail/client.rb +0 -1
- data/lib/hubspot/discovery/crm/objects/tasks/client.rb +0 -1
- data/lib/hubspot/helpers/get_all_helper.rb +2 -1
- data/lib/hubspot/version.rb +1 -1
- data/spec/discovery/cms/hubdb/rows_batch_api_spec.rb +7 -7
- data/spec/discovery/oauth/access_tokens_api_spec.rb +1 -1
- data/spec/discovery/oauth/refresh_tokens_api_spec.rb +2 -2
- data/spec/discovery/oauth/tokens_api_spec.rb +1 -1
- metadata +162 -227
- data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definiton.rb +0 -239
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +0 -262
- data/lib/hubspot/codegen/crm/companies/models/association_spec_with_label.rb +0 -285
- data/lib/hubspot/codegen/crm/companies/models/labels_between_object_pair.rb +0 -286
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +0 -262
- data/lib/hubspot/codegen/crm/contacts/models/association_spec_with_label.rb +0 -285
- data/lib/hubspot/codegen/crm/contacts/models/labels_between_object_pair.rb +0 -286
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +0 -262
- data/lib/hubspot/codegen/crm/deals/models/association_spec_with_label.rb +0 -285
- data/lib/hubspot/codegen/crm/deals/models/labels_between_object_pair.rb +0 -286
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +0 -262
- data/lib/hubspot/codegen/crm/line_items/models/labels_between_object_pair.rb +0 -286
- data/lib/hubspot/codegen/crm/objects/calls/api/associations_api.rb +0 -264
- data/lib/hubspot/codegen/crm/objects/calls/models/association_spec_with_label.rb +0 -287
- data/lib/hubspot/codegen/crm/objects/calls/models/labels_between_object_pair.rb +0 -288
- data/lib/hubspot/codegen/crm/objects/emails/api/associations_api.rb +0 -264
- data/lib/hubspot/codegen/crm/objects/emails/models/association_spec_with_label.rb +0 -287
- data/lib/hubspot/codegen/crm/objects/emails/models/labels_between_object_pair.rb +0 -288
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/associations_api.rb +0 -264
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/association_spec_with_label.rb +0 -287
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/labels_between_object_pair.rb +0 -288
- data/lib/hubspot/codegen/crm/objects/meetings/api/associations_api.rb +0 -264
- data/lib/hubspot/codegen/crm/objects/meetings/models/association_spec_with_label.rb +0 -287
- data/lib/hubspot/codegen/crm/objects/meetings/models/labels_between_object_pair.rb +0 -288
- data/lib/hubspot/codegen/crm/objects/notes/api/associations_api.rb +0 -264
- data/lib/hubspot/codegen/crm/objects/notes/models/association_spec_with_label.rb +0 -287
- data/lib/hubspot/codegen/crm/objects/notes/models/labels_between_object_pair.rb +0 -288
- data/lib/hubspot/codegen/crm/objects/postal_mail/api/associations_api.rb +0 -264
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/association_spec_with_label.rb +0 -287
- data/lib/hubspot/codegen/crm/objects/postal_mail/models/labels_between_object_pair.rb +0 -288
- data/lib/hubspot/codegen/crm/objects/tasks/api/associations_api.rb +0 -264
- data/lib/hubspot/codegen/crm/objects/tasks/models/association_spec_with_label.rb +0 -287
- data/lib/hubspot/codegen/crm/objects/tasks/models/labels_between_object_pair.rb +0 -288
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +0 -262
- data/lib/hubspot/codegen/crm/products/models/association_spec_with_label.rb +0 -285
- data/lib/hubspot/codegen/crm/products/models/labels_between_object_pair.rb +0 -286
- data/lib/hubspot/codegen/crm/properties/models/next_page.rb +0 -237
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +0 -262
- data/lib/hubspot/codegen/crm/quotes/models/association_spec_with_label.rb +0 -285
- data/lib/hubspot/codegen/crm/quotes/models/labels_between_object_pair.rb +0 -286
- data/lib/hubspot/codegen/crm/quotes/models/multi_associated_object_with_label.rb +0 -244
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +0 -262
- data/lib/hubspot/codegen/crm/tickets/models/association_spec_with_label.rb +0 -285
- data/lib/hubspot/codegen/crm/tickets/models/labels_between_object_pair.rb +0 -286
- data/lib/hubspot/discovery/crm/companies/api/associations_api.rb +0 -13
- data/lib/hubspot/discovery/crm/contacts/api/associations_api.rb +0 -13
- data/lib/hubspot/discovery/crm/deals/api/associations_api.rb +0 -13
- data/lib/hubspot/discovery/crm/line_items/api/associations_api.rb +0 -13
- data/lib/hubspot/discovery/crm/objects/calls/api/associations_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/emails/api/associations_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/associations_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/meetings/api/associations_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/notes/api/associations_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/postal_mail/api/associations_api.rb +0 -15
- data/lib/hubspot/discovery/crm/objects/tasks/api/associations_api.rb +0 -15
- data/spec/discovery/crm/companies/associations_api_spec.rb +0 -9
- data/spec/discovery/crm/contacts/associations_api_spec.rb +0 -9
- data/spec/discovery/crm/deals/associations_api_spec.rb +0 -9
- data/spec/discovery/crm/line_items/associations_api_spec.rb +0 -9
- data/spec/discovery/crm/objects/calls/associations_api_spec.rb +0 -9
- data/spec/discovery/crm/objects/emails/associations_api_spec.rb +0 -9
- data/spec/discovery/crm/objects/feedback_submissions/associations_api_spec.rb +0 -9
- data/spec/discovery/crm/objects/meetings/associations_api_spec.rb +0 -9
- data/spec/discovery/crm/objects/notes/associations_api_spec.rb +0 -9
- data/spec/discovery/crm/objects/postal_mail/associations_api_spec.rb +0 -9
- data/spec/discovery/crm/objects/tasks/associations_api_spec.rb +0 -9
- data/spec/discovery/crm/products/associations_api_spec.rb +0 -9
- data/spec/discovery/crm/quotes/associations_api_spec.rb +0 -7
- data/spec/discovery/crm/tickets/associations_api_spec.rb +0 -9
- /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/api/audit_logs_api.rb +0 -0
- /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/api_client.rb +0 -0
- /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/api_error.rb +0 -0
- /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/configuration.rb +0 -0
- /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/collection_response_public_audit_log.rb +0 -0
- /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/error.rb +0 -0
- /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/error_detail.rb +0 -0
- /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/next_page.rb +0 -0
- /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/paging.rb +0 -0
- /data/lib/hubspot/codegen/cms/{audit-logs → audit_logs}/models/public_audit_log.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/api/blog_posts_api.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/api_client.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/api_error.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/configuration.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/angle.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/attach_to_lang_primary_request_v_next.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/background_image.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/batch_input_blog_post.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/batch_input_json_node.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/batch_input_string.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/batch_response_blog_post.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/batch_response_blog_post_with_errors.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/blog_post.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/blog_post_language_clone_request_v_next.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/collection_response_with_total_blog_post_forward_paging.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/collection_response_with_total_version_blog_post.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/color_stop.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/content_clone_request_v_next.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/content_language_variation.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/content_schedule_request_v_next.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/detach_from_lang_group_request_v_next.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/error.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/error_detail.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/forward_paging.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/gradient.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/layout_section.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/next_page.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/paging.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/previous_page.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/rgba_color.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/row_meta_data.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/set_new_language_primary_request_v_next.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/side_or_corner.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/standard_error.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/styles.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/update_languages_request_v_next.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/version_blog_post.rb +0 -0
- /data/lib/hubspot/codegen/cms/blogs/{blog-posts → blog_posts}/models/version_user.rb +0 -0
- /data/lib/hubspot/codegen/cms/{site-search → site_search}/api/public_api.rb +0 -0
- /data/lib/hubspot/codegen/cms/{site-search → site_search}/api_client.rb +0 -0
- /data/lib/hubspot/codegen/cms/{site-search → site_search}/api_error.rb +0 -0
- /data/lib/hubspot/codegen/cms/{site-search → site_search}/configuration.rb +0 -0
- /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/content_search_result.rb +0 -0
- /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/error.rb +0 -0
- /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/error_detail.rb +0 -0
- /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/indexed_data.rb +0 -0
- /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/indexed_field.rb +0 -0
- /data/lib/hubspot/codegen/cms/{site-search → site_search}/models/public_search_results.rb +0 -0
- /data/lib/hubspot/codegen/cms/{source-code → source_code}/api/content_api.rb +0 -0
- /data/lib/hubspot/codegen/cms/{source-code → source_code}/api/extract_api.rb +0 -0
- /data/lib/hubspot/codegen/cms/{source-code → source_code}/api/metadata_api.rb +0 -0
- /data/lib/hubspot/codegen/cms/{source-code → source_code}/api/source_code_extract_api.rb +0 -0
- /data/lib/hubspot/codegen/cms/{source-code → source_code}/api/validation_api.rb +0 -0
- /data/lib/hubspot/codegen/cms/{source-code → source_code}/api_client.rb +0 -0
- /data/lib/hubspot/codegen/cms/{source-code → source_code}/api_error.rb +0 -0
- /data/lib/hubspot/codegen/cms/{source-code → source_code}/configuration.rb +0 -0
- /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/action_response.rb +0 -0
- /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/asset_file_metadata.rb +0 -0
- /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/error.rb +0 -0
- /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/error_detail.rb +0 -0
- /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/file_extract_request.rb +0 -0
- /data/lib/hubspot/codegen/cms/{source-code → source_code}/models/task_locator.rb +0 -0
- /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/api/redirects_api.rb +0 -0
- /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/api_client.rb +0 -0
- /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/api_error.rb +0 -0
- /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/configuration.rb +0 -0
- /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/collection_response_with_total_url_mapping_forward_paging.rb +0 -0
- /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/error.rb +0 -0
- /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/error_detail.rb +0 -0
- /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/forward_paging.rb +0 -0
- /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/next_page.rb +0 -0
- /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/url_mapping.rb +0 -0
- /data/lib/hubspot/codegen/cms/{url-redirects → url_redirects}/models/url_mapping_create_request_body.rb +0 -0
- /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/api/generate_api.rb +0 -0
- /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/api_client.rb +0 -0
- /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/api_error.rb +0 -0
- /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/configuration.rb +0 -0
- /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/models/error.rb +0 -0
- /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/models/error_detail.rb +0 -0
- /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/models/identification_token_generation_request.rb +0 -0
- /data/lib/hubspot/codegen/conversations/{visitor-identification → visitor_identification}/models/identification_token_response.rb +0 -0
|
@@ -16,16 +16,16 @@ require 'time'
|
|
|
16
16
|
module Hubspot
|
|
17
17
|
module Crm
|
|
18
18
|
module Deals
|
|
19
|
-
class
|
|
20
|
-
attr_accessor :
|
|
19
|
+
class PublicAssociationsForObject
|
|
20
|
+
attr_accessor :to
|
|
21
21
|
|
|
22
|
-
attr_accessor :
|
|
22
|
+
attr_accessor :types
|
|
23
23
|
|
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
25
|
def self.attribute_map
|
|
26
26
|
{
|
|
27
|
-
:'
|
|
28
|
-
:'
|
|
27
|
+
:'to' => :'to',
|
|
28
|
+
:'types' => :'types'
|
|
29
29
|
}
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -37,8 +37,8 @@ module Hubspot
|
|
|
37
37
|
# Attribute type mapping.
|
|
38
38
|
def self.openapi_types
|
|
39
39
|
{
|
|
40
|
-
:'
|
|
41
|
-
:'
|
|
40
|
+
:'to' => :'PublicObjectId',
|
|
41
|
+
:'types' => :'Array<AssociationSpec>'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
@@ -52,25 +52,25 @@ module Hubspot
|
|
|
52
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
53
|
def initialize(attributes = {})
|
|
54
54
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Deals::
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Deals::PublicAssociationsForObject` initialize method"
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
60
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Deals::
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Deals::PublicAssociationsForObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
62
62
|
end
|
|
63
63
|
h[k.to_sym] = v
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
if attributes.key?(:'
|
|
67
|
-
|
|
68
|
-
self.results = value
|
|
69
|
-
end
|
|
66
|
+
if attributes.key?(:'to')
|
|
67
|
+
self.to = attributes[:'to']
|
|
70
68
|
end
|
|
71
69
|
|
|
72
|
-
if attributes.key?(:'
|
|
73
|
-
|
|
70
|
+
if attributes.key?(:'types')
|
|
71
|
+
if (value = attributes[:'types']).is_a?(Array)
|
|
72
|
+
self.types = value
|
|
73
|
+
end
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
76
|
|
|
@@ -78,8 +78,12 @@ module Hubspot
|
|
|
78
78
|
# @return Array for valid properties with the reasons
|
|
79
79
|
def list_invalid_properties
|
|
80
80
|
invalid_properties = Array.new
|
|
81
|
-
if @
|
|
82
|
-
invalid_properties.push('invalid value for "
|
|
81
|
+
if @to.nil?
|
|
82
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if @types.nil?
|
|
86
|
+
invalid_properties.push('invalid value for "types", types cannot be nil.')
|
|
83
87
|
end
|
|
84
88
|
|
|
85
89
|
invalid_properties
|
|
@@ -88,7 +92,8 @@ module Hubspot
|
|
|
88
92
|
# Check to see if the all the properties in the model are valid
|
|
89
93
|
# @return true if the model is valid
|
|
90
94
|
def valid?
|
|
91
|
-
return false if @
|
|
95
|
+
return false if @to.nil?
|
|
96
|
+
return false if @types.nil?
|
|
92
97
|
true
|
|
93
98
|
end
|
|
94
99
|
|
|
@@ -97,8 +102,8 @@ module Hubspot
|
|
|
97
102
|
def ==(o)
|
|
98
103
|
return true if self.equal?(o)
|
|
99
104
|
self.class == o.class &&
|
|
100
|
-
|
|
101
|
-
|
|
105
|
+
to == o.to &&
|
|
106
|
+
types == o.types
|
|
102
107
|
end
|
|
103
108
|
|
|
104
109
|
# @see the `==` method
|
|
@@ -110,7 +115,7 @@ module Hubspot
|
|
|
110
115
|
# Calculates hash code according to all attributes.
|
|
111
116
|
# @return [Integer] Hash code
|
|
112
117
|
def hash
|
|
113
|
-
[
|
|
118
|
+
[to, types].hash
|
|
114
119
|
end
|
|
115
120
|
|
|
116
121
|
# Builds the object from hash
|
data/lib/hubspot/codegen/crm/{properties/models/paging.rb → deals/models/public_object_id.rb}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Deals
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
@@ -15,14 +15,14 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Hubspot
|
|
17
17
|
module Crm
|
|
18
|
-
module
|
|
19
|
-
class
|
|
20
|
-
attr_accessor :
|
|
18
|
+
module Deals
|
|
19
|
+
class PublicObjectId
|
|
20
|
+
attr_accessor :id
|
|
21
21
|
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
23
|
def self.attribute_map
|
|
24
24
|
{
|
|
25
|
-
:'
|
|
25
|
+
:'id' => :'id'
|
|
26
26
|
}
|
|
27
27
|
end
|
|
28
28
|
|
|
@@ -34,7 +34,7 @@ module Hubspot
|
|
|
34
34
|
# Attribute type mapping.
|
|
35
35
|
def self.openapi_types
|
|
36
36
|
{
|
|
37
|
-
:'
|
|
37
|
+
:'id' => :'String'
|
|
38
38
|
}
|
|
39
39
|
end
|
|
40
40
|
|
|
@@ -48,19 +48,19 @@ module Hubspot
|
|
|
48
48
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
49
49
|
def initialize(attributes = {})
|
|
50
50
|
if (!attributes.is_a?(Hash))
|
|
51
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::
|
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Deals::PublicObjectId` initialize method"
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
55
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
56
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::
|
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Deals::PublicObjectId`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
58
58
|
end
|
|
59
59
|
h[k.to_sym] = v
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
if attributes.key?(:'
|
|
63
|
-
self.
|
|
62
|
+
if attributes.key?(:'id')
|
|
63
|
+
self.id = attributes[:'id']
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
66
|
|
|
@@ -68,12 +68,17 @@ module Hubspot
|
|
|
68
68
|
# @return Array for valid properties with the reasons
|
|
69
69
|
def list_invalid_properties
|
|
70
70
|
invalid_properties = Array.new
|
|
71
|
+
if @id.nil?
|
|
72
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
73
|
+
end
|
|
74
|
+
|
|
71
75
|
invalid_properties
|
|
72
76
|
end
|
|
73
77
|
|
|
74
78
|
# Check to see if the all the properties in the model are valid
|
|
75
79
|
# @return true if the model is valid
|
|
76
80
|
def valid?
|
|
81
|
+
return false if @id.nil?
|
|
77
82
|
true
|
|
78
83
|
end
|
|
79
84
|
|
|
@@ -82,7 +87,7 @@ module Hubspot
|
|
|
82
87
|
def ==(o)
|
|
83
88
|
return true if self.equal?(o)
|
|
84
89
|
self.class == o.class &&
|
|
85
|
-
|
|
90
|
+
id == o.id
|
|
86
91
|
end
|
|
87
92
|
|
|
88
93
|
# @see the `==` method
|
|
@@ -94,7 +99,7 @@ module Hubspot
|
|
|
94
99
|
# Calculates hash code according to all attributes.
|
|
95
100
|
# @return [Integer] Hash code
|
|
96
101
|
def hash
|
|
97
|
-
[
|
|
102
|
+
[id].hash
|
|
98
103
|
end
|
|
99
104
|
|
|
100
105
|
# Builds the object from hash
|
|
@@ -165,7 +170,7 @@ module Hubspot
|
|
|
165
170
|
end
|
|
166
171
|
else # model
|
|
167
172
|
# models (e.g. Pet) or oneOf
|
|
168
|
-
klass = Hubspot::Crm::
|
|
173
|
+
klass = Hubspot::Crm::Deals.const_get(type)
|
|
169
174
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
170
175
|
end
|
|
171
176
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#Deals
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
@@ -15,17 +15,17 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Hubspot
|
|
17
17
|
module Crm
|
|
18
|
-
module
|
|
19
|
-
class
|
|
20
|
-
attr_accessor :
|
|
18
|
+
module Deals
|
|
19
|
+
class SimplePublicObjectInputForCreate
|
|
20
|
+
attr_accessor :properties
|
|
21
21
|
|
|
22
|
-
attr_accessor :
|
|
22
|
+
attr_accessor :associations
|
|
23
23
|
|
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
25
|
def self.attribute_map
|
|
26
26
|
{
|
|
27
|
-
:'
|
|
28
|
-
:'
|
|
27
|
+
:'properties' => :'properties',
|
|
28
|
+
:'associations' => :'associations'
|
|
29
29
|
}
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -37,8 +37,8 @@ module Hubspot
|
|
|
37
37
|
# Attribute type mapping.
|
|
38
38
|
def self.openapi_types
|
|
39
39
|
{
|
|
40
|
-
:'
|
|
41
|
-
:'
|
|
40
|
+
:'properties' => :'Hash<String, String>',
|
|
41
|
+
:'associations' => :'Array<PublicAssociationsForObject>'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
@@ -52,24 +52,26 @@ module Hubspot
|
|
|
52
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
53
|
def initialize(attributes = {})
|
|
54
54
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Deals::SimplePublicObjectInputForCreate` initialize method"
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
60
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Deals::SimplePublicObjectInputForCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
62
62
|
end
|
|
63
63
|
h[k.to_sym] = v
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
if attributes.key?(:'
|
|
67
|
-
|
|
66
|
+
if attributes.key?(:'properties')
|
|
67
|
+
if (value = attributes[:'properties']).is_a?(Hash)
|
|
68
|
+
self.properties = value
|
|
69
|
+
end
|
|
68
70
|
end
|
|
69
71
|
|
|
70
|
-
if attributes.key?(:'
|
|
71
|
-
if (value = attributes[:'
|
|
72
|
-
self.
|
|
72
|
+
if attributes.key?(:'associations')
|
|
73
|
+
if (value = attributes[:'associations']).is_a?(Array)
|
|
74
|
+
self.associations = value
|
|
73
75
|
end
|
|
74
76
|
end
|
|
75
77
|
end
|
|
@@ -78,12 +80,12 @@ module Hubspot
|
|
|
78
80
|
# @return Array for valid properties with the reasons
|
|
79
81
|
def list_invalid_properties
|
|
80
82
|
invalid_properties = Array.new
|
|
81
|
-
if @
|
|
82
|
-
invalid_properties.push('invalid value for "
|
|
83
|
+
if @properties.nil?
|
|
84
|
+
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
|
83
85
|
end
|
|
84
86
|
|
|
85
|
-
if @
|
|
86
|
-
invalid_properties.push('invalid value for "
|
|
87
|
+
if @associations.nil?
|
|
88
|
+
invalid_properties.push('invalid value for "associations", associations cannot be nil.')
|
|
87
89
|
end
|
|
88
90
|
|
|
89
91
|
invalid_properties
|
|
@@ -92,8 +94,8 @@ module Hubspot
|
|
|
92
94
|
# Check to see if the all the properties in the model are valid
|
|
93
95
|
# @return true if the model is valid
|
|
94
96
|
def valid?
|
|
95
|
-
return false if @
|
|
96
|
-
return false if @
|
|
97
|
+
return false if @properties.nil?
|
|
98
|
+
return false if @associations.nil?
|
|
97
99
|
true
|
|
98
100
|
end
|
|
99
101
|
|
|
@@ -102,8 +104,8 @@ module Hubspot
|
|
|
102
104
|
def ==(o)
|
|
103
105
|
return true if self.equal?(o)
|
|
104
106
|
self.class == o.class &&
|
|
105
|
-
|
|
106
|
-
|
|
107
|
+
properties == o.properties &&
|
|
108
|
+
associations == o.associations
|
|
107
109
|
end
|
|
108
110
|
|
|
109
111
|
# @see the `==` method
|
|
@@ -115,7 +117,7 @@ module Hubspot
|
|
|
115
117
|
# Calculates hash code according to all attributes.
|
|
116
118
|
# @return [Integer] Hash code
|
|
117
119
|
def hash
|
|
118
|
-
[
|
|
120
|
+
[properties, associations].hash
|
|
119
121
|
end
|
|
120
122
|
|
|
121
123
|
# Builds the object from hash
|
|
@@ -186,7 +188,7 @@ module Hubspot
|
|
|
186
188
|
end
|
|
187
189
|
else # model
|
|
188
190
|
# models (e.g. Pet) or oneOf
|
|
189
|
-
klass = Hubspot::Crm::
|
|
191
|
+
klass = Hubspot::Crm::Deals.const_get(type)
|
|
190
192
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
191
193
|
end
|
|
192
194
|
end
|
|
@@ -88,26 +88,26 @@ module Hubspot
|
|
|
88
88
|
|
|
89
89
|
# Create
|
|
90
90
|
# Create a line item with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard line items is provided.
|
|
91
|
-
# @param
|
|
91
|
+
# @param simple_public_object_input_for_create [SimplePublicObjectInputForCreate]
|
|
92
92
|
# @param [Hash] opts the optional parameters
|
|
93
93
|
# @return [SimplePublicObject]
|
|
94
|
-
def create(
|
|
95
|
-
data, _status_code, _headers = create_with_http_info(
|
|
94
|
+
def create(simple_public_object_input_for_create, opts = {})
|
|
95
|
+
data, _status_code, _headers = create_with_http_info(simple_public_object_input_for_create, opts)
|
|
96
96
|
data
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
# Create
|
|
100
100
|
# Create a line item with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard line items is provided.
|
|
101
|
-
# @param
|
|
101
|
+
# @param simple_public_object_input_for_create [SimplePublicObjectInputForCreate]
|
|
102
102
|
# @param [Hash] opts the optional parameters
|
|
103
103
|
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
|
|
104
|
-
def create_with_http_info(
|
|
104
|
+
def create_with_http_info(simple_public_object_input_for_create, opts = {})
|
|
105
105
|
if @api_client.config.debugging
|
|
106
106
|
@api_client.config.logger.debug 'Calling API: BasicApi.create ...'
|
|
107
107
|
end
|
|
108
|
-
# verify the required parameter '
|
|
109
|
-
if @api_client.config.client_side_validation &&
|
|
110
|
-
fail ArgumentError, "Missing the required parameter '
|
|
108
|
+
# verify the required parameter 'simple_public_object_input_for_create' is set
|
|
109
|
+
if @api_client.config.client_side_validation && simple_public_object_input_for_create.nil?
|
|
110
|
+
fail ArgumentError, "Missing the required parameter 'simple_public_object_input_for_create' when calling BasicApi.create"
|
|
111
111
|
end
|
|
112
112
|
# resource path
|
|
113
113
|
local_var_path = '/crm/v3/objects/line_items'
|
|
@@ -129,7 +129,7 @@ module Hubspot
|
|
|
129
129
|
form_params = opts[:form_params] || {}
|
|
130
130
|
|
|
131
131
|
# http body (model)
|
|
132
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
132
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(simple_public_object_input_for_create)
|
|
133
133
|
|
|
134
134
|
# return_type
|
|
135
135
|
return_type = opts[:debug_return_type] || 'SimplePublicObject'
|
|
@@ -88,25 +88,25 @@ module Hubspot
|
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
# Create a batch of line items
|
|
91
|
-
# @param
|
|
91
|
+
# @param batch_input_simple_public_object_input_for_create [BatchInputSimplePublicObjectInputForCreate]
|
|
92
92
|
# @param [Hash] opts the optional parameters
|
|
93
93
|
# @return [BatchResponseSimplePublicObject]
|
|
94
|
-
def create(
|
|
95
|
-
data, _status_code, _headers = create_with_http_info(
|
|
94
|
+
def create(batch_input_simple_public_object_input_for_create, opts = {})
|
|
95
|
+
data, _status_code, _headers = create_with_http_info(batch_input_simple_public_object_input_for_create, opts)
|
|
96
96
|
data
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
# Create a batch of line items
|
|
100
|
-
# @param
|
|
100
|
+
# @param batch_input_simple_public_object_input_for_create [BatchInputSimplePublicObjectInputForCreate]
|
|
101
101
|
# @param [Hash] opts the optional parameters
|
|
102
102
|
# @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
|
|
103
|
-
def create_with_http_info(
|
|
103
|
+
def create_with_http_info(batch_input_simple_public_object_input_for_create, opts = {})
|
|
104
104
|
if @api_client.config.debugging
|
|
105
105
|
@api_client.config.logger.debug 'Calling API: BatchApi.create ...'
|
|
106
106
|
end
|
|
107
|
-
# verify the required parameter '
|
|
108
|
-
if @api_client.config.client_side_validation &&
|
|
109
|
-
fail ArgumentError, "Missing the required parameter '
|
|
107
|
+
# verify the required parameter 'batch_input_simple_public_object_input_for_create' is set
|
|
108
|
+
if @api_client.config.client_side_validation && batch_input_simple_public_object_input_for_create.nil?
|
|
109
|
+
fail ArgumentError, "Missing the required parameter 'batch_input_simple_public_object_input_for_create' when calling BatchApi.create"
|
|
110
110
|
end
|
|
111
111
|
# resource path
|
|
112
112
|
local_var_path = '/crm/v3/objects/line_items/batch/create'
|
|
@@ -128,7 +128,7 @@ module Hubspot
|
|
|
128
128
|
form_params = opts[:form_params] || {}
|
|
129
129
|
|
|
130
130
|
# http body (model)
|
|
131
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
131
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_simple_public_object_input_for_create)
|
|
132
132
|
|
|
133
133
|
# return_type
|
|
134
134
|
return_type = opts[:debug_return_type] || 'BatchResponseSimplePublicObject'
|
|
@@ -16,7 +16,7 @@ require 'time'
|
|
|
16
16
|
module Hubspot
|
|
17
17
|
module Crm
|
|
18
18
|
module LineItems
|
|
19
|
-
class
|
|
19
|
+
class BatchInputSimplePublicObjectInputForCreate
|
|
20
20
|
attr_accessor :inputs
|
|
21
21
|
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -34,7 +34,7 @@ module Hubspot
|
|
|
34
34
|
# Attribute type mapping.
|
|
35
35
|
def self.openapi_types
|
|
36
36
|
{
|
|
37
|
-
:'inputs' => :'Array<
|
|
37
|
+
:'inputs' => :'Array<SimplePublicObjectInputForCreate>'
|
|
38
38
|
}
|
|
39
39
|
end
|
|
40
40
|
|
|
@@ -48,13 +48,13 @@ module Hubspot
|
|
|
48
48
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
49
49
|
def initialize(attributes = {})
|
|
50
50
|
if (!attributes.is_a?(Hash))
|
|
51
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::LineItems::
|
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::LineItems::BatchInputSimplePublicObjectInputForCreate` initialize method"
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
55
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
56
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::LineItems::
|
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::LineItems::BatchInputSimplePublicObjectInputForCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
58
58
|
end
|
|
59
59
|
h[k.to_sym] = v
|
|
60
60
|
}
|
|
@@ -19,6 +19,8 @@ module Hubspot
|
|
|
19
19
|
class Filter
|
|
20
20
|
attr_accessor :value
|
|
21
21
|
|
|
22
|
+
attr_accessor :high_value
|
|
23
|
+
|
|
22
24
|
attr_accessor :values
|
|
23
25
|
|
|
24
26
|
attr_accessor :property_name
|
|
@@ -52,6 +54,7 @@ module Hubspot
|
|
|
52
54
|
def self.attribute_map
|
|
53
55
|
{
|
|
54
56
|
:'value' => :'value',
|
|
57
|
+
:'high_value' => :'highValue',
|
|
55
58
|
:'values' => :'values',
|
|
56
59
|
:'property_name' => :'propertyName',
|
|
57
60
|
:'operator' => :'operator'
|
|
@@ -67,6 +70,7 @@ module Hubspot
|
|
|
67
70
|
def self.openapi_types
|
|
68
71
|
{
|
|
69
72
|
:'value' => :'String',
|
|
73
|
+
:'high_value' => :'String',
|
|
70
74
|
:'values' => :'Array<String>',
|
|
71
75
|
:'property_name' => :'String',
|
|
72
76
|
:'operator' => :'String'
|
|
@@ -98,6 +102,10 @@ module Hubspot
|
|
|
98
102
|
self.value = attributes[:'value']
|
|
99
103
|
end
|
|
100
104
|
|
|
105
|
+
if attributes.key?(:'high_value')
|
|
106
|
+
self.high_value = attributes[:'high_value']
|
|
107
|
+
end
|
|
108
|
+
|
|
101
109
|
if attributes.key?(:'values')
|
|
102
110
|
if (value = attributes[:'values']).is_a?(Array)
|
|
103
111
|
self.values = value
|
|
@@ -154,6 +162,7 @@ module Hubspot
|
|
|
154
162
|
return true if self.equal?(o)
|
|
155
163
|
self.class == o.class &&
|
|
156
164
|
value == o.value &&
|
|
165
|
+
high_value == o.high_value &&
|
|
157
166
|
values == o.values &&
|
|
158
167
|
property_name == o.property_name &&
|
|
159
168
|
operator == o.operator
|
|
@@ -168,7 +177,7 @@ module Hubspot
|
|
|
168
177
|
# Calculates hash code according to all attributes.
|
|
169
178
|
# @return [Integer] Hash code
|
|
170
179
|
def hash
|
|
171
|
-
[value, values, property_name, operator].hash
|
|
180
|
+
[value, high_value, values, property_name, operator].hash
|
|
172
181
|
end
|
|
173
182
|
|
|
174
183
|
# Builds the object from hash
|
|
@@ -16,16 +16,16 @@ require 'time'
|
|
|
16
16
|
module Hubspot
|
|
17
17
|
module Crm
|
|
18
18
|
module LineItems
|
|
19
|
-
class
|
|
20
|
-
attr_accessor :
|
|
19
|
+
class PublicAssociationsForObject
|
|
20
|
+
attr_accessor :to
|
|
21
21
|
|
|
22
|
-
attr_accessor :
|
|
22
|
+
attr_accessor :types
|
|
23
23
|
|
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
25
|
def self.attribute_map
|
|
26
26
|
{
|
|
27
|
-
:'
|
|
28
|
-
:'
|
|
27
|
+
:'to' => :'to',
|
|
28
|
+
:'types' => :'types'
|
|
29
29
|
}
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -37,8 +37,8 @@ module Hubspot
|
|
|
37
37
|
# Attribute type mapping.
|
|
38
38
|
def self.openapi_types
|
|
39
39
|
{
|
|
40
|
-
:'
|
|
41
|
-
:'
|
|
40
|
+
:'to' => :'PublicObjectId',
|
|
41
|
+
:'types' => :'Array<AssociationSpec>'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
@@ -52,25 +52,25 @@ module Hubspot
|
|
|
52
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
53
|
def initialize(attributes = {})
|
|
54
54
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::LineItems::
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::LineItems::PublicAssociationsForObject` initialize method"
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
60
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::LineItems::
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::LineItems::PublicAssociationsForObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
62
62
|
end
|
|
63
63
|
h[k.to_sym] = v
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
if attributes.key?(:'
|
|
67
|
-
|
|
68
|
-
self.results = value
|
|
69
|
-
end
|
|
66
|
+
if attributes.key?(:'to')
|
|
67
|
+
self.to = attributes[:'to']
|
|
70
68
|
end
|
|
71
69
|
|
|
72
|
-
if attributes.key?(:'
|
|
73
|
-
|
|
70
|
+
if attributes.key?(:'types')
|
|
71
|
+
if (value = attributes[:'types']).is_a?(Array)
|
|
72
|
+
self.types = value
|
|
73
|
+
end
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
76
|
|
|
@@ -78,8 +78,12 @@ module Hubspot
|
|
|
78
78
|
# @return Array for valid properties with the reasons
|
|
79
79
|
def list_invalid_properties
|
|
80
80
|
invalid_properties = Array.new
|
|
81
|
-
if @
|
|
82
|
-
invalid_properties.push('invalid value for "
|
|
81
|
+
if @to.nil?
|
|
82
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if @types.nil?
|
|
86
|
+
invalid_properties.push('invalid value for "types", types cannot be nil.')
|
|
83
87
|
end
|
|
84
88
|
|
|
85
89
|
invalid_properties
|
|
@@ -88,7 +92,8 @@ module Hubspot
|
|
|
88
92
|
# Check to see if the all the properties in the model are valid
|
|
89
93
|
# @return true if the model is valid
|
|
90
94
|
def valid?
|
|
91
|
-
return false if @
|
|
95
|
+
return false if @to.nil?
|
|
96
|
+
return false if @types.nil?
|
|
92
97
|
true
|
|
93
98
|
end
|
|
94
99
|
|
|
@@ -97,8 +102,8 @@ module Hubspot
|
|
|
97
102
|
def ==(o)
|
|
98
103
|
return true if self.equal?(o)
|
|
99
104
|
self.class == o.class &&
|
|
100
|
-
|
|
101
|
-
|
|
105
|
+
to == o.to &&
|
|
106
|
+
types == o.types
|
|
102
107
|
end
|
|
103
108
|
|
|
104
109
|
# @see the `==` method
|
|
@@ -110,7 +115,7 @@ module Hubspot
|
|
|
110
115
|
# Calculates hash code according to all attributes.
|
|
111
116
|
# @return [Integer] Hash code
|
|
112
117
|
def hash
|
|
113
|
-
[
|
|
118
|
+
[to, types].hash
|
|
114
119
|
end
|
|
115
120
|
|
|
116
121
|
# Builds the object from hash
|