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
@@ -0,0 +1,228 @@
|
|
1
|
+
=begin
|
2
|
+
#Tickets
|
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 Tickets
|
19
|
+
class PublicObjectId
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'id' => :'id'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Returns all the JSON keys this model knows about
|
30
|
+
def self.acceptable_attributes
|
31
|
+
attribute_map.values
|
32
|
+
end
|
33
|
+
|
34
|
+
# Attribute type mapping.
|
35
|
+
def self.openapi_types
|
36
|
+
{
|
37
|
+
:'id' => :'String'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# List of attributes with nullable: true
|
42
|
+
def self.openapi_nullable
|
43
|
+
Set.new([
|
44
|
+
])
|
45
|
+
end
|
46
|
+
|
47
|
+
# Initializes the object
|
48
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
49
|
+
def initialize(attributes = {})
|
50
|
+
if (!attributes.is_a?(Hash))
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Tickets::PublicObjectId` initialize method"
|
52
|
+
end
|
53
|
+
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Tickets::PublicObjectId`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
58
|
+
end
|
59
|
+
h[k.to_sym] = v
|
60
|
+
}
|
61
|
+
|
62
|
+
if attributes.key?(:'id')
|
63
|
+
self.id = attributes[:'id']
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
+
# @return Array for valid properties with the reasons
|
69
|
+
def list_invalid_properties
|
70
|
+
invalid_properties = Array.new
|
71
|
+
if @id.nil?
|
72
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
73
|
+
end
|
74
|
+
|
75
|
+
invalid_properties
|
76
|
+
end
|
77
|
+
|
78
|
+
# Check to see if the all the properties in the model are valid
|
79
|
+
# @return true if the model is valid
|
80
|
+
def valid?
|
81
|
+
return false if @id.nil?
|
82
|
+
true
|
83
|
+
end
|
84
|
+
|
85
|
+
# Checks equality by comparing each attribute.
|
86
|
+
# @param [Object] Object to be compared
|
87
|
+
def ==(o)
|
88
|
+
return true if self.equal?(o)
|
89
|
+
self.class == o.class &&
|
90
|
+
id == o.id
|
91
|
+
end
|
92
|
+
|
93
|
+
# @see the `==` method
|
94
|
+
# @param [Object] Object to be compared
|
95
|
+
def eql?(o)
|
96
|
+
self == o
|
97
|
+
end
|
98
|
+
|
99
|
+
# Calculates hash code according to all attributes.
|
100
|
+
# @return [Integer] Hash code
|
101
|
+
def hash
|
102
|
+
[id].hash
|
103
|
+
end
|
104
|
+
|
105
|
+
# Builds the object from hash
|
106
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
107
|
+
# @return [Object] Returns the model itself
|
108
|
+
def self.build_from_hash(attributes)
|
109
|
+
new.build_from_hash(attributes)
|
110
|
+
end
|
111
|
+
|
112
|
+
# Builds the object from hash
|
113
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
114
|
+
# @return [Object] Returns the model itself
|
115
|
+
def build_from_hash(attributes)
|
116
|
+
return nil unless attributes.is_a?(Hash)
|
117
|
+
attributes = attributes.transform_keys(&:to_sym)
|
118
|
+
self.class.openapi_types.each_pair do |key, type|
|
119
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
120
|
+
self.send("#{key}=", nil)
|
121
|
+
elsif type =~ /\AArray<(.*)>/i
|
122
|
+
# check to ensure the input is an array given that the attribute
|
123
|
+
# is documented as an array but the input is not
|
124
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
125
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
126
|
+
end
|
127
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
128
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
self
|
133
|
+
end
|
134
|
+
|
135
|
+
# Deserializes the data based on type
|
136
|
+
# @param string type Data type
|
137
|
+
# @param string value Value to be deserialized
|
138
|
+
# @return [Object] Deserialized data
|
139
|
+
def _deserialize(type, value)
|
140
|
+
case type.to_sym
|
141
|
+
when :Time
|
142
|
+
Time.parse(value)
|
143
|
+
when :Date
|
144
|
+
Date.parse(value)
|
145
|
+
when :String
|
146
|
+
value.to_s
|
147
|
+
when :Integer
|
148
|
+
value.to_i
|
149
|
+
when :Float
|
150
|
+
value.to_f
|
151
|
+
when :Boolean
|
152
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
153
|
+
true
|
154
|
+
else
|
155
|
+
false
|
156
|
+
end
|
157
|
+
when :Object
|
158
|
+
# generic object (usually a Hash), return directly
|
159
|
+
value
|
160
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
161
|
+
inner_type = Regexp.last_match[:inner_type]
|
162
|
+
value.map { |v| _deserialize(inner_type, v) }
|
163
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
164
|
+
k_type = Regexp.last_match[:k_type]
|
165
|
+
v_type = Regexp.last_match[:v_type]
|
166
|
+
{}.tap do |hash|
|
167
|
+
value.each do |k, v|
|
168
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
else # model
|
172
|
+
# models (e.g. Pet) or oneOf
|
173
|
+
klass = Hubspot::Crm::Tickets.const_get(type)
|
174
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# Returns the string representation of the object
|
179
|
+
# @return [String] String presentation of the object
|
180
|
+
def to_s
|
181
|
+
to_hash.to_s
|
182
|
+
end
|
183
|
+
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_body
|
187
|
+
to_hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Returns the object in the form of hash
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
192
|
+
def to_hash
|
193
|
+
hash = {}
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
195
|
+
value = self.send(attr)
|
196
|
+
if value.nil?
|
197
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
198
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
199
|
+
end
|
200
|
+
|
201
|
+
hash[param] = _to_hash(value)
|
202
|
+
end
|
203
|
+
hash
|
204
|
+
end
|
205
|
+
|
206
|
+
# Outputs non-array value in the form of hash
|
207
|
+
# For object, use to_hash. Otherwise, just return the value
|
208
|
+
# @param [Object] value Any valid value
|
209
|
+
# @return [Hash] Returns the value in the form of hash
|
210
|
+
def _to_hash(value)
|
211
|
+
if value.is_a?(Array)
|
212
|
+
value.compact.map { |v| _to_hash(v) }
|
213
|
+
elsif value.is_a?(Hash)
|
214
|
+
{}.tap do |hash|
|
215
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
216
|
+
end
|
217
|
+
elsif value.respond_to? :to_hash
|
218
|
+
value.to_hash
|
219
|
+
else
|
220
|
+
value
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
end
|
225
|
+
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Tickets
|
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 Tickets
|
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::Tickets::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::Tickets::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::Tickets.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
|
@@ -21,21 +21,21 @@ module Hubspot
|
|
21
21
|
# @param token [String]
|
22
22
|
# @param [Hash] opts the optional parameters
|
23
23
|
# @return [AccessTokenInfoResponse]
|
24
|
-
def
|
25
|
-
data, _status_code, _headers =
|
24
|
+
def get(token, opts = {})
|
25
|
+
data, _status_code, _headers = get_with_http_info(token, opts)
|
26
26
|
data
|
27
27
|
end
|
28
28
|
|
29
29
|
# @param token [String]
|
30
30
|
# @param [Hash] opts the optional parameters
|
31
31
|
# @return [Array<(AccessTokenInfoResponse, Integer, Hash)>] AccessTokenInfoResponse data, response status code and response headers
|
32
|
-
def
|
32
|
+
def get_with_http_info(token, opts = {})
|
33
33
|
if @api_client.config.debugging
|
34
|
-
@api_client.config.logger.debug 'Calling API: AccessTokensApi.
|
34
|
+
@api_client.config.logger.debug 'Calling API: AccessTokensApi.get ...'
|
35
35
|
end
|
36
36
|
# verify the required parameter 'token' is set
|
37
37
|
if @api_client.config.client_side_validation && token.nil?
|
38
|
-
fail ArgumentError, "Missing the required parameter 'token' when calling AccessTokensApi.
|
38
|
+
fail ArgumentError, "Missing the required parameter 'token' when calling AccessTokensApi.get"
|
39
39
|
end
|
40
40
|
# resource path
|
41
41
|
local_var_path = '/oauth/v1/access-tokens/{token}'.sub('{' + 'token' + '}', CGI.escape(token.to_s))
|
@@ -61,7 +61,7 @@ module Hubspot
|
|
61
61
|
auth_names = opts[:debug_auth_names] || []
|
62
62
|
|
63
63
|
new_options = opts.merge(
|
64
|
-
:operation => :"AccessTokensApi.
|
64
|
+
:operation => :"AccessTokensApi.get",
|
65
65
|
:header_params => header_params,
|
66
66
|
:query_params => query_params,
|
67
67
|
:form_params => form_params,
|
@@ -72,7 +72,7 @@ module Hubspot
|
|
72
72
|
|
73
73
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
74
74
|
if @api_client.config.debugging
|
75
|
-
@api_client.config.logger.debug "API called: AccessTokensApi#
|
75
|
+
@api_client.config.logger.debug "API called: AccessTokensApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
76
76
|
end
|
77
77
|
return data, status_code, headers
|
78
78
|
end
|
@@ -21,21 +21,21 @@ module Hubspot
|
|
21
21
|
# @param token [String]
|
22
22
|
# @param [Hash] opts the optional parameters
|
23
23
|
# @return [nil]
|
24
|
-
def
|
25
|
-
|
24
|
+
def archive(token, opts = {})
|
25
|
+
archive_with_http_info(token, opts)
|
26
26
|
nil
|
27
27
|
end
|
28
28
|
|
29
29
|
# @param token [String]
|
30
30
|
# @param [Hash] opts the optional parameters
|
31
31
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
32
|
-
def
|
32
|
+
def archive_with_http_info(token, opts = {})
|
33
33
|
if @api_client.config.debugging
|
34
|
-
@api_client.config.logger.debug 'Calling API: RefreshTokensApi.
|
34
|
+
@api_client.config.logger.debug 'Calling API: RefreshTokensApi.archive ...'
|
35
35
|
end
|
36
36
|
# verify the required parameter 'token' is set
|
37
37
|
if @api_client.config.client_side_validation && token.nil?
|
38
|
-
fail ArgumentError, "Missing the required parameter 'token' when calling RefreshTokensApi.
|
38
|
+
fail ArgumentError, "Missing the required parameter 'token' when calling RefreshTokensApi.archive"
|
39
39
|
end
|
40
40
|
# resource path
|
41
41
|
local_var_path = '/oauth/v1/refresh-tokens/{token}'.sub('{' + 'token' + '}', CGI.escape(token.to_s))
|
@@ -61,7 +61,7 @@ module Hubspot
|
|
61
61
|
auth_names = opts[:debug_auth_names] || []
|
62
62
|
|
63
63
|
new_options = opts.merge(
|
64
|
-
:operation => :"RefreshTokensApi.
|
64
|
+
:operation => :"RefreshTokensApi.archive",
|
65
65
|
:header_params => header_params,
|
66
66
|
:query_params => query_params,
|
67
67
|
:form_params => form_params,
|
@@ -72,7 +72,7 @@ module Hubspot
|
|
72
72
|
|
73
73
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
74
74
|
if @api_client.config.debugging
|
75
|
-
@api_client.config.logger.debug "API called: RefreshTokensApi#
|
75
|
+
@api_client.config.logger.debug "API called: RefreshTokensApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
76
76
|
end
|
77
77
|
return data, status_code, headers
|
78
78
|
end
|
@@ -80,21 +80,21 @@ module Hubspot
|
|
80
80
|
# @param token [String]
|
81
81
|
# @param [Hash] opts the optional parameters
|
82
82
|
# @return [RefreshTokenInfoResponse]
|
83
|
-
def
|
84
|
-
data, _status_code, _headers =
|
83
|
+
def get(token, opts = {})
|
84
|
+
data, _status_code, _headers = get_with_http_info(token, opts)
|
85
85
|
data
|
86
86
|
end
|
87
87
|
|
88
88
|
# @param token [String]
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [Array<(RefreshTokenInfoResponse, Integer, Hash)>] RefreshTokenInfoResponse data, response status code and response headers
|
91
|
-
def
|
91
|
+
def get_with_http_info(token, opts = {})
|
92
92
|
if @api_client.config.debugging
|
93
|
-
@api_client.config.logger.debug 'Calling API: RefreshTokensApi.
|
93
|
+
@api_client.config.logger.debug 'Calling API: RefreshTokensApi.get ...'
|
94
94
|
end
|
95
95
|
# verify the required parameter 'token' is set
|
96
96
|
if @api_client.config.client_side_validation && token.nil?
|
97
|
-
fail ArgumentError, "Missing the required parameter 'token' when calling RefreshTokensApi.
|
97
|
+
fail ArgumentError, "Missing the required parameter 'token' when calling RefreshTokensApi.get"
|
98
98
|
end
|
99
99
|
# resource path
|
100
100
|
local_var_path = '/oauth/v1/refresh-tokens/{token}'.sub('{' + 'token' + '}', CGI.escape(token.to_s))
|
@@ -120,7 +120,7 @@ module Hubspot
|
|
120
120
|
auth_names = opts[:debug_auth_names] || []
|
121
121
|
|
122
122
|
new_options = opts.merge(
|
123
|
-
:operation => :"RefreshTokensApi.
|
123
|
+
:operation => :"RefreshTokensApi.get",
|
124
124
|
:header_params => header_params,
|
125
125
|
:query_params => query_params,
|
126
126
|
:form_params => form_params,
|
@@ -131,7 +131,7 @@ module Hubspot
|
|
131
131
|
|
132
132
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
133
133
|
if @api_client.config.debugging
|
134
|
-
@api_client.config.logger.debug "API called: RefreshTokensApi#
|
134
|
+
@api_client.config.logger.debug "API called: RefreshTokensApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
135
135
|
end
|
136
136
|
return data, status_code, headers
|
137
137
|
end
|
@@ -26,8 +26,8 @@ module Hubspot
|
|
26
26
|
# @option opts [String] :client_secret
|
27
27
|
# @option opts [String] :refresh_token
|
28
28
|
# @return [TokenResponseIF]
|
29
|
-
def
|
30
|
-
data, _status_code, _headers =
|
29
|
+
def create(opts = {})
|
30
|
+
data, _status_code, _headers = create_with_http_info(opts)
|
31
31
|
data
|
32
32
|
end
|
33
33
|
|
@@ -39,9 +39,9 @@ module Hubspot
|
|
39
39
|
# @option opts [String] :client_secret
|
40
40
|
# @option opts [String] :refresh_token
|
41
41
|
# @return [Array<(TokenResponseIF, Integer, Hash)>] TokenResponseIF data, response status code and response headers
|
42
|
-
def
|
42
|
+
def create_with_http_info(opts = {})
|
43
43
|
if @api_client.config.debugging
|
44
|
-
@api_client.config.logger.debug 'Calling API: TokensApi.
|
44
|
+
@api_client.config.logger.debug 'Calling API: TokensApi.create ...'
|
45
45
|
end
|
46
46
|
allowable_values = ["authorization_code", "refresh_token"]
|
47
47
|
if @api_client.config.client_side_validation && opts[:'grant_type'] && !allowable_values.include?(opts[:'grant_type'])
|
@@ -82,7 +82,7 @@ module Hubspot
|
|
82
82
|
auth_names = opts[:debug_auth_names] || []
|
83
83
|
|
84
84
|
new_options = opts.merge(
|
85
|
-
:operation => :"TokensApi.
|
85
|
+
:operation => :"TokensApi.create",
|
86
86
|
:header_params => header_params,
|
87
87
|
:query_params => query_params,
|
88
88
|
:form_params => form_params,
|
@@ -93,7 +93,7 @@ module Hubspot
|
|
93
93
|
|
94
94
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
95
95
|
if @api_client.config.debugging
|
96
|
-
@api_client.config.logger.debug "API called: TokensApi#
|
96
|
+
@api_client.config.logger.debug "API called: TokensApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
97
97
|
end
|
98
98
|
return data, status_code, headers
|
99
99
|
end
|
data/lib/hubspot/version.rb
CHANGED
@@ -3,11 +3,11 @@ require 'spec_helper'
|
|
3
3
|
describe 'Hubspot::Discovery::Cms::Hubdb::RowsBatchApi' do
|
4
4
|
subject(:rows_batch_api) { Hubspot::Client.new(access_token: 'test').cms.hubdb.rows_batch_api }
|
5
5
|
|
6
|
-
it { is_expected.to respond_to(:
|
7
|
-
it { is_expected.to respond_to(:
|
8
|
-
it { is_expected.to respond_to(:
|
9
|
-
it { is_expected.to respond_to(:
|
10
|
-
it { is_expected.to respond_to(:
|
11
|
-
it { is_expected.to respond_to(:
|
12
|
-
it { is_expected.to respond_to(:
|
6
|
+
it { is_expected.to respond_to(:clone_draft_table_rows) }
|
7
|
+
it { is_expected.to respond_to(:create_draft_table_rows) }
|
8
|
+
it { is_expected.to respond_to(:purge_draft_table_rows) }
|
9
|
+
it { is_expected.to respond_to(:read_draft_table_rows) }
|
10
|
+
it { is_expected.to respond_to(:read_table_rows) }
|
11
|
+
it { is_expected.to respond_to(:replace_draft_table_rows) }
|
12
|
+
it { is_expected.to respond_to(:update_draft_table_rows) }
|
13
13
|
end
|