hubspot-api-client 16.4.0 → 17.0.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +70 -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/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/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
@@ -17,16 +17,16 @@ module Hubspot
|
|
17
17
|
module Crm
|
18
18
|
module Objects
|
19
19
|
module Meetings
|
20
|
-
class
|
21
|
-
attr_accessor :
|
20
|
+
class PublicAssociationsForObject
|
21
|
+
attr_accessor :to
|
22
22
|
|
23
|
-
attr_accessor :
|
23
|
+
attr_accessor :types
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
|
-
:'
|
29
|
-
:'
|
28
|
+
:'to' => :'to',
|
29
|
+
:'types' => :'types'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
@@ -38,8 +38,8 @@ module Hubspot
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.openapi_types
|
40
40
|
{
|
41
|
-
:'
|
42
|
-
:'
|
41
|
+
:'to' => :'PublicObjectId',
|
42
|
+
:'types' => :'Array<AssociationSpec>'
|
43
43
|
}
|
44
44
|
end
|
45
45
|
|
@@ -53,25 +53,25 @@ module Hubspot
|
|
53
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
54
54
|
def initialize(attributes = {})
|
55
55
|
if (!attributes.is_a?(Hash))
|
56
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Objects::Meetings::
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Objects::Meetings::PublicAssociationsForObject` initialize method"
|
57
57
|
end
|
58
58
|
|
59
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
61
|
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Objects::Meetings::
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Objects::Meetings::PublicAssociationsForObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
63
|
end
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
66
66
|
|
67
|
-
if attributes.key?(:'
|
68
|
-
|
69
|
-
self.results = value
|
70
|
-
end
|
67
|
+
if attributes.key?(:'to')
|
68
|
+
self.to = attributes[:'to']
|
71
69
|
end
|
72
70
|
|
73
|
-
if attributes.key?(:'
|
74
|
-
|
71
|
+
if attributes.key?(:'types')
|
72
|
+
if (value = attributes[:'types']).is_a?(Array)
|
73
|
+
self.types = value
|
74
|
+
end
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
@@ -79,8 +79,12 @@ module Hubspot
|
|
79
79
|
# @return Array for valid properties with the reasons
|
80
80
|
def list_invalid_properties
|
81
81
|
invalid_properties = Array.new
|
82
|
-
if @
|
83
|
-
invalid_properties.push('invalid value for "
|
82
|
+
if @to.nil?
|
83
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
84
|
+
end
|
85
|
+
|
86
|
+
if @types.nil?
|
87
|
+
invalid_properties.push('invalid value for "types", types cannot be nil.')
|
84
88
|
end
|
85
89
|
|
86
90
|
invalid_properties
|
@@ -89,7 +93,8 @@ module Hubspot
|
|
89
93
|
# Check to see if the all the properties in the model are valid
|
90
94
|
# @return true if the model is valid
|
91
95
|
def valid?
|
92
|
-
return false if @
|
96
|
+
return false if @to.nil?
|
97
|
+
return false if @types.nil?
|
93
98
|
true
|
94
99
|
end
|
95
100
|
|
@@ -98,8 +103,8 @@ module Hubspot
|
|
98
103
|
def ==(o)
|
99
104
|
return true if self.equal?(o)
|
100
105
|
self.class == o.class &&
|
101
|
-
|
102
|
-
|
106
|
+
to == o.to &&
|
107
|
+
types == o.types
|
103
108
|
end
|
104
109
|
|
105
110
|
# @see the `==` method
|
@@ -111,7 +116,7 @@ module Hubspot
|
|
111
116
|
# Calculates hash code according to all attributes.
|
112
117
|
# @return [Integer] Hash code
|
113
118
|
def hash
|
114
|
-
[
|
119
|
+
[to, types].hash
|
115
120
|
end
|
116
121
|
|
117
122
|
# Builds the object from hash
|
@@ -0,0 +1,230 @@
|
|
1
|
+
=begin
|
2
|
+
#Meetings
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Hubspot
|
17
|
+
module Crm
|
18
|
+
module Objects
|
19
|
+
module Meetings
|
20
|
+
class PublicObjectId
|
21
|
+
attr_accessor :id
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'id' => :'id'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Returns all the JSON keys this model knows about
|
31
|
+
def self.acceptable_attributes
|
32
|
+
attribute_map.values
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'id' => :'String'
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
# List of attributes with nullable: true
|
43
|
+
def self.openapi_nullable
|
44
|
+
Set.new([
|
45
|
+
])
|
46
|
+
end
|
47
|
+
|
48
|
+
# Initializes the object
|
49
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
50
|
+
def initialize(attributes = {})
|
51
|
+
if (!attributes.is_a?(Hash))
|
52
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Objects::Meetings::PublicObjectId` initialize method"
|
53
|
+
end
|
54
|
+
|
55
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
57
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
58
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Objects::Meetings::PublicObjectId`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
59
|
+
end
|
60
|
+
h[k.to_sym] = v
|
61
|
+
}
|
62
|
+
|
63
|
+
if attributes.key?(:'id')
|
64
|
+
self.id = attributes[:'id']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
69
|
+
# @return Array for valid properties with the reasons
|
70
|
+
def list_invalid_properties
|
71
|
+
invalid_properties = Array.new
|
72
|
+
if @id.nil?
|
73
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
74
|
+
end
|
75
|
+
|
76
|
+
invalid_properties
|
77
|
+
end
|
78
|
+
|
79
|
+
# Check to see if the all the properties in the model are valid
|
80
|
+
# @return true if the model is valid
|
81
|
+
def valid?
|
82
|
+
return false if @id.nil?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
id == o.id
|
92
|
+
end
|
93
|
+
|
94
|
+
# @see the `==` method
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def eql?(o)
|
97
|
+
self == o
|
98
|
+
end
|
99
|
+
|
100
|
+
# Calculates hash code according to all attributes.
|
101
|
+
# @return [Integer] Hash code
|
102
|
+
def hash
|
103
|
+
[id].hash
|
104
|
+
end
|
105
|
+
|
106
|
+
# Builds the object from hash
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
+
# @return [Object] Returns the model itself
|
109
|
+
def self.build_from_hash(attributes)
|
110
|
+
new.build_from_hash(attributes)
|
111
|
+
end
|
112
|
+
|
113
|
+
# Builds the object from hash
|
114
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
115
|
+
# @return [Object] Returns the model itself
|
116
|
+
def build_from_hash(attributes)
|
117
|
+
return nil unless attributes.is_a?(Hash)
|
118
|
+
attributes = attributes.transform_keys(&:to_sym)
|
119
|
+
self.class.openapi_types.each_pair do |key, type|
|
120
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
121
|
+
self.send("#{key}=", nil)
|
122
|
+
elsif type =~ /\AArray<(.*)>/i
|
123
|
+
# check to ensure the input is an array given that the attribute
|
124
|
+
# is documented as an array but the input is not
|
125
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
126
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
127
|
+
end
|
128
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
129
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
self
|
134
|
+
end
|
135
|
+
|
136
|
+
# Deserializes the data based on type
|
137
|
+
# @param string type Data type
|
138
|
+
# @param string value Value to be deserialized
|
139
|
+
# @return [Object] Deserialized data
|
140
|
+
def _deserialize(type, value)
|
141
|
+
case type.to_sym
|
142
|
+
when :Time
|
143
|
+
Time.parse(value)
|
144
|
+
when :Date
|
145
|
+
Date.parse(value)
|
146
|
+
when :String
|
147
|
+
value.to_s
|
148
|
+
when :Integer
|
149
|
+
value.to_i
|
150
|
+
when :Float
|
151
|
+
value.to_f
|
152
|
+
when :Boolean
|
153
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
154
|
+
true
|
155
|
+
else
|
156
|
+
false
|
157
|
+
end
|
158
|
+
when :Object
|
159
|
+
# generic object (usually a Hash), return directly
|
160
|
+
value
|
161
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
162
|
+
inner_type = Regexp.last_match[:inner_type]
|
163
|
+
value.map { |v| _deserialize(inner_type, v) }
|
164
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
165
|
+
k_type = Regexp.last_match[:k_type]
|
166
|
+
v_type = Regexp.last_match[:v_type]
|
167
|
+
{}.tap do |hash|
|
168
|
+
value.each do |k, v|
|
169
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
else # model
|
173
|
+
# models (e.g. Pet) or oneOf
|
174
|
+
klass = Hubspot::Crm::Objects::Meetings.const_get(type)
|
175
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
# Returns the string representation of the object
|
180
|
+
# @return [String] String presentation of the object
|
181
|
+
def to_s
|
182
|
+
to_hash.to_s
|
183
|
+
end
|
184
|
+
|
185
|
+
# to_body is an alias to to_hash (backward compatibility)
|
186
|
+
# @return [Hash] Returns the object in the form of hash
|
187
|
+
def to_body
|
188
|
+
to_hash
|
189
|
+
end
|
190
|
+
|
191
|
+
# Returns the object in the form of hash
|
192
|
+
# @return [Hash] Returns the object in the form of hash
|
193
|
+
def to_hash
|
194
|
+
hash = {}
|
195
|
+
self.class.attribute_map.each_pair do |attr, param|
|
196
|
+
value = self.send(attr)
|
197
|
+
if value.nil?
|
198
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
199
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
200
|
+
end
|
201
|
+
|
202
|
+
hash[param] = _to_hash(value)
|
203
|
+
end
|
204
|
+
hash
|
205
|
+
end
|
206
|
+
|
207
|
+
# Outputs non-array value in the form of hash
|
208
|
+
# For object, use to_hash. Otherwise, just return the value
|
209
|
+
# @param [Object] value Any valid value
|
210
|
+
# @return [Hash] Returns the value in the form of hash
|
211
|
+
def _to_hash(value)
|
212
|
+
if value.is_a?(Array)
|
213
|
+
value.compact.map { |v| _to_hash(v) }
|
214
|
+
elsif value.is_a?(Hash)
|
215
|
+
{}.tap do |hash|
|
216
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
217
|
+
end
|
218
|
+
elsif value.respond_to? :to_hash
|
219
|
+
value.to_hash
|
220
|
+
else
|
221
|
+
value
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
end
|
226
|
+
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
@@ -17,16 +17,16 @@ module Hubspot
|
|
17
17
|
module Crm
|
18
18
|
module Objects
|
19
19
|
module Meetings
|
20
|
-
class
|
21
|
-
attr_accessor :
|
20
|
+
class SimplePublicObjectInputForCreate
|
21
|
+
attr_accessor :properties
|
22
22
|
|
23
|
-
attr_accessor :
|
23
|
+
attr_accessor :associations
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
|
-
:'
|
29
|
-
:'
|
28
|
+
:'properties' => :'properties',
|
29
|
+
:'associations' => :'associations'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
@@ -38,8 +38,8 @@ module Hubspot
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.openapi_types
|
40
40
|
{
|
41
|
-
:'
|
42
|
-
:'
|
41
|
+
:'properties' => :'Hash<String, String>',
|
42
|
+
:'associations' => :'Array<PublicAssociationsForObject>'
|
43
43
|
}
|
44
44
|
end
|
45
45
|
|
@@ -53,24 +53,26 @@ module Hubspot
|
|
53
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
54
54
|
def initialize(attributes = {})
|
55
55
|
if (!attributes.is_a?(Hash))
|
56
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Objects::Meetings::
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Objects::Meetings::SimplePublicObjectInputForCreate` initialize method"
|
57
57
|
end
|
58
58
|
|
59
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
61
|
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Objects::Meetings::
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Objects::Meetings::SimplePublicObjectInputForCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
63
|
end
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
66
66
|
|
67
|
-
if attributes.key?(:'
|
68
|
-
|
67
|
+
if attributes.key?(:'properties')
|
68
|
+
if (value = attributes[:'properties']).is_a?(Hash)
|
69
|
+
self.properties = value
|
70
|
+
end
|
69
71
|
end
|
70
72
|
|
71
|
-
if attributes.key?(:'
|
72
|
-
if (value = attributes[:'
|
73
|
-
self.
|
73
|
+
if attributes.key?(:'associations')
|
74
|
+
if (value = attributes[:'associations']).is_a?(Array)
|
75
|
+
self.associations = value
|
74
76
|
end
|
75
77
|
end
|
76
78
|
end
|
@@ -79,12 +81,12 @@ module Hubspot
|
|
79
81
|
# @return Array for valid properties with the reasons
|
80
82
|
def list_invalid_properties
|
81
83
|
invalid_properties = Array.new
|
82
|
-
if @
|
83
|
-
invalid_properties.push('invalid value for "
|
84
|
+
if @properties.nil?
|
85
|
+
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
84
86
|
end
|
85
87
|
|
86
|
-
if @
|
87
|
-
invalid_properties.push('invalid value for "
|
88
|
+
if @associations.nil?
|
89
|
+
invalid_properties.push('invalid value for "associations", associations cannot be nil.')
|
88
90
|
end
|
89
91
|
|
90
92
|
invalid_properties
|
@@ -93,8 +95,8 @@ module Hubspot
|
|
93
95
|
# Check to see if the all the properties in the model are valid
|
94
96
|
# @return true if the model is valid
|
95
97
|
def valid?
|
96
|
-
return false if @
|
97
|
-
return false if @
|
98
|
+
return false if @properties.nil?
|
99
|
+
return false if @associations.nil?
|
98
100
|
true
|
99
101
|
end
|
100
102
|
|
@@ -103,8 +105,8 @@ module Hubspot
|
|
103
105
|
def ==(o)
|
104
106
|
return true if self.equal?(o)
|
105
107
|
self.class == o.class &&
|
106
|
-
|
107
|
-
|
108
|
+
properties == o.properties &&
|
109
|
+
associations == o.associations
|
108
110
|
end
|
109
111
|
|
110
112
|
# @see the `==` method
|
@@ -116,7 +118,7 @@ module Hubspot
|
|
116
118
|
# Calculates hash code according to all attributes.
|
117
119
|
# @return [Integer] Hash code
|
118
120
|
def hash
|
119
|
-
[
|
121
|
+
[properties, associations].hash
|
120
122
|
end
|
121
123
|
|
122
124
|
# Builds the object from hash
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#CRM Objects
|
3
3
|
|
4
|
-
#
|
4
|
+
#CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
@@ -15,13 +15,11 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Hubspot
|
17
17
|
module Crm
|
18
|
-
module
|
19
|
-
class
|
20
|
-
attr_accessor :
|
18
|
+
module Objects
|
19
|
+
class AssociationSpec
|
20
|
+
attr_accessor :association_category
|
21
21
|
|
22
|
-
attr_accessor :
|
23
|
-
|
24
|
-
attr_accessor :label
|
22
|
+
attr_accessor :association_type_id
|
25
23
|
|
26
24
|
class EnumAttributeValidator
|
27
25
|
attr_reader :datatype
|
@@ -48,9 +46,8 @@ module Hubspot
|
|
48
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
47
|
def self.attribute_map
|
50
48
|
{
|
51
|
-
:'
|
52
|
-
:'
|
53
|
-
:'label' => :'label'
|
49
|
+
:'association_category' => :'associationCategory',
|
50
|
+
:'association_type_id' => :'associationTypeId'
|
54
51
|
}
|
55
52
|
end
|
56
53
|
|
@@ -62,9 +59,8 @@ module Hubspot
|
|
62
59
|
# Attribute type mapping.
|
63
60
|
def self.openapi_types
|
64
61
|
{
|
65
|
-
:'
|
66
|
-
:'
|
67
|
-
:'label' => :'String'
|
62
|
+
:'association_category' => :'String',
|
63
|
+
:'association_type_id' => :'Integer'
|
68
64
|
}
|
69
65
|
end
|
70
66
|
|
@@ -78,27 +74,23 @@ module Hubspot
|
|
78
74
|
# @param [Hash] attributes Model attributes in the form of hash
|
79
75
|
def initialize(attributes = {})
|
80
76
|
if (!attributes.is_a?(Hash))
|
81
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Objects::AssociationSpec` initialize method"
|
82
78
|
end
|
83
79
|
|
84
80
|
# check to see if the attribute exists and convert string to symbol for hash key
|
85
81
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
86
82
|
if (!self.class.attribute_map.key?(k.to_sym))
|
87
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Objects::AssociationSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
88
84
|
end
|
89
85
|
h[k.to_sym] = v
|
90
86
|
}
|
91
87
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
94
|
-
end
|
95
|
-
|
96
|
-
if attributes.key?(:'type_id')
|
97
|
-
self.type_id = attributes[:'type_id']
|
88
|
+
if attributes.key?(:'association_category')
|
89
|
+
self.association_category = attributes[:'association_category']
|
98
90
|
end
|
99
91
|
|
100
|
-
if attributes.key?(:'
|
101
|
-
self.
|
92
|
+
if attributes.key?(:'association_type_id')
|
93
|
+
self.association_type_id = attributes[:'association_type_id']
|
102
94
|
end
|
103
95
|
end
|
104
96
|
|
@@ -106,12 +98,12 @@ module Hubspot
|
|
106
98
|
# @return Array for valid properties with the reasons
|
107
99
|
def list_invalid_properties
|
108
100
|
invalid_properties = Array.new
|
109
|
-
if @
|
110
|
-
invalid_properties.push('invalid value for "
|
101
|
+
if @association_category.nil?
|
102
|
+
invalid_properties.push('invalid value for "association_category", association_category cannot be nil.')
|
111
103
|
end
|
112
104
|
|
113
|
-
if @
|
114
|
-
invalid_properties.push('invalid value for "
|
105
|
+
if @association_type_id.nil?
|
106
|
+
invalid_properties.push('invalid value for "association_type_id", association_type_id cannot be nil.')
|
115
107
|
end
|
116
108
|
|
117
109
|
invalid_properties
|
@@ -120,21 +112,21 @@ module Hubspot
|
|
120
112
|
# Check to see if the all the properties in the model are valid
|
121
113
|
# @return true if the model is valid
|
122
114
|
def valid?
|
123
|
-
return false if @
|
124
|
-
|
125
|
-
return false unless
|
126
|
-
return false if @
|
115
|
+
return false if @association_category.nil?
|
116
|
+
association_category_validator = EnumAttributeValidator.new('String', ["HUBSPOT_DEFINED", "USER_DEFINED", "INTEGRATOR_DEFINED"])
|
117
|
+
return false unless association_category_validator.valid?(@association_category)
|
118
|
+
return false if @association_type_id.nil?
|
127
119
|
true
|
128
120
|
end
|
129
121
|
|
130
122
|
# Custom attribute writer method checking allowed values (enum).
|
131
|
-
# @param [Object]
|
132
|
-
def
|
123
|
+
# @param [Object] association_category Object to be assigned
|
124
|
+
def association_category=(association_category)
|
133
125
|
validator = EnumAttributeValidator.new('String', ["HUBSPOT_DEFINED", "USER_DEFINED", "INTEGRATOR_DEFINED"])
|
134
|
-
unless validator.valid?(
|
135
|
-
fail ArgumentError, "invalid value for \"
|
126
|
+
unless validator.valid?(association_category)
|
127
|
+
fail ArgumentError, "invalid value for \"association_category\", must be one of #{validator.allowable_values}."
|
136
128
|
end
|
137
|
-
@
|
129
|
+
@association_category = association_category
|
138
130
|
end
|
139
131
|
|
140
132
|
# Checks equality by comparing each attribute.
|
@@ -142,9 +134,8 @@ module Hubspot
|
|
142
134
|
def ==(o)
|
143
135
|
return true if self.equal?(o)
|
144
136
|
self.class == o.class &&
|
145
|
-
|
146
|
-
|
147
|
-
label == o.label
|
137
|
+
association_category == o.association_category &&
|
138
|
+
association_type_id == o.association_type_id
|
148
139
|
end
|
149
140
|
|
150
141
|
# @see the `==` method
|
@@ -156,7 +147,7 @@ module Hubspot
|
|
156
147
|
# Calculates hash code according to all attributes.
|
157
148
|
# @return [Integer] Hash code
|
158
149
|
def hash
|
159
|
-
[
|
150
|
+
[association_category, association_type_id].hash
|
160
151
|
end
|
161
152
|
|
162
153
|
# Builds the object from hash
|
@@ -227,7 +218,7 @@ module Hubspot
|
|
227
218
|
end
|
228
219
|
else # model
|
229
220
|
# models (e.g. Pet) or oneOf
|
230
|
-
klass = Hubspot::Crm::
|
221
|
+
klass = Hubspot::Crm::Objects.const_get(type)
|
231
222
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
232
223
|
end
|
233
224
|
end
|
@@ -16,7 +16,7 @@ require 'time'
|
|
16
16
|
module Hubspot
|
17
17
|
module Crm
|
18
18
|
module Objects
|
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::Objects::
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Objects::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::Objects::
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Objects::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
|
}
|