hubspot-api-client 1.0.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -23
- data/lib/hubspot-api-client.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +222 -226
- data/lib/hubspot/codegen/crm/associations/api_client.rb +349 -351
- data/lib/hubspot/codegen/crm/associations/api_error.rb +35 -37
- data/lib/hubspot/codegen/crm/associations/configuration.rb +221 -223
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_association.rb +174 -178
- data/lib/hubspot/codegen/crm/associations/models/batch_input_public_object_id.rb +174 -178
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +262 -266
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +262 -266
- data/lib/hubspot/codegen/crm/associations/models/error.rb +229 -233
- data/lib/hubspot/codegen/crm/associations/models/error_detail.rb +210 -214
- data/lib/hubspot/codegen/crm/associations/models/public_association.rb +184 -188
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +186 -190
- data/lib/hubspot/codegen/crm/associations/models/public_object_id.rb +173 -177
- data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +216 -220
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +338 -340
- data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +249 -253
- data/lib/hubspot/codegen/crm/companies/api/search_api.rb +66 -70
- data/lib/hubspot/codegen/crm/companies/api_client.rb +349 -351
- data/lib/hubspot/codegen/crm/companies/api_error.rb +35 -37
- data/lib/hubspot/codegen/crm/companies/configuration.rb +221 -223
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_batch_input.rb +174 -178
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_id.rb +174 -178
- data/lib/hubspot/codegen/crm/companies/models/batch_input_simple_public_object_input.rb +174 -178
- data/lib/hubspot/codegen/crm/companies/models/batch_read_input_simple_public_object_id.rb +188 -192
- data/lib/hubspot/codegen/crm/companies/models/batch_response_simple_public_object.rb +261 -265
- data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object.rb +182 -186
- data/lib/hubspot/codegen/crm/companies/models/collection_response_simple_public_object_id.rb +182 -186
- data/lib/hubspot/codegen/crm/companies/models/collection_response_with_total_simple_public_object.rb +195 -199
- data/lib/hubspot/codegen/crm/companies/models/error.rb +229 -233
- data/lib/hubspot/codegen/crm/companies/models/error_detail.rb +210 -214
- data/lib/hubspot/codegen/crm/companies/models/filter.rb +219 -223
- data/lib/hubspot/codegen/crm/companies/models/filter_group.rb +174 -178
- data/lib/hubspot/codegen/crm/companies/models/next_page.rb +180 -184
- data/lib/hubspot/codegen/crm/companies/models/paging.rb +168 -172
- data/lib/hubspot/codegen/crm/companies/models/public_object_search_request.rb +227 -231
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object.rb +235 -239
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_batch_input.rb +185 -189
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_id.rb +172 -176
- data/lib/hubspot/codegen/crm/companies/models/simple_public_object_input.rb +174 -178
- data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +216 -220
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +338 -340
- data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +249 -253
- data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +66 -70
- data/lib/hubspot/codegen/crm/contacts/api_client.rb +349 -351
- data/lib/hubspot/codegen/crm/contacts/api_error.rb +35 -37
- data/lib/hubspot/codegen/crm/contacts/configuration.rb +221 -223
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_batch_input.rb +174 -178
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_id.rb +174 -178
- data/lib/hubspot/codegen/crm/contacts/models/batch_input_simple_public_object_input.rb +174 -178
- data/lib/hubspot/codegen/crm/contacts/models/batch_read_input_simple_public_object_id.rb +188 -192
- data/lib/hubspot/codegen/crm/contacts/models/batch_response_simple_public_object.rb +261 -265
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object.rb +182 -186
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_simple_public_object_id.rb +182 -186
- data/lib/hubspot/codegen/crm/contacts/models/collection_response_with_total_simple_public_object.rb +195 -199
- data/lib/hubspot/codegen/crm/contacts/models/error.rb +229 -233
- data/lib/hubspot/codegen/crm/contacts/models/error_detail.rb +210 -214
- data/lib/hubspot/codegen/crm/contacts/models/filter.rb +219 -223
- data/lib/hubspot/codegen/crm/contacts/models/filter_group.rb +174 -178
- data/lib/hubspot/codegen/crm/contacts/models/next_page.rb +180 -184
- data/lib/hubspot/codegen/crm/contacts/models/paging.rb +168 -172
- data/lib/hubspot/codegen/crm/contacts/models/public_object_search_request.rb +227 -231
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object.rb +235 -239
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_batch_input.rb +185 -189
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_id.rb +172 -176
- data/lib/hubspot/codegen/crm/contacts/models/simple_public_object_input.rb +174 -178
- data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +216 -220
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +338 -340
- data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +249 -253
- data/lib/hubspot/codegen/crm/deals/api/search_api.rb +66 -70
- data/lib/hubspot/codegen/crm/deals/api_client.rb +349 -351
- data/lib/hubspot/codegen/crm/deals/api_error.rb +35 -37
- data/lib/hubspot/codegen/crm/deals/configuration.rb +221 -223
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_batch_input.rb +174 -178
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_id.rb +174 -178
- data/lib/hubspot/codegen/crm/deals/models/batch_input_simple_public_object_input.rb +174 -178
- data/lib/hubspot/codegen/crm/deals/models/batch_read_input_simple_public_object_id.rb +188 -192
- data/lib/hubspot/codegen/crm/deals/models/batch_response_simple_public_object.rb +261 -265
- data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object.rb +182 -186
- data/lib/hubspot/codegen/crm/deals/models/collection_response_simple_public_object_id.rb +182 -186
- data/lib/hubspot/codegen/crm/deals/models/collection_response_with_total_simple_public_object.rb +195 -199
- data/lib/hubspot/codegen/crm/deals/models/error.rb +229 -233
- data/lib/hubspot/codegen/crm/deals/models/error_detail.rb +210 -214
- data/lib/hubspot/codegen/crm/deals/models/filter.rb +219 -223
- data/lib/hubspot/codegen/crm/deals/models/filter_group.rb +174 -178
- data/lib/hubspot/codegen/crm/deals/models/next_page.rb +180 -184
- data/lib/hubspot/codegen/crm/deals/models/paging.rb +168 -172
- data/lib/hubspot/codegen/crm/deals/models/public_object_search_request.rb +227 -231
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object.rb +235 -239
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_batch_input.rb +185 -189
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_id.rb +172 -176
- data/lib/hubspot/codegen/crm/deals/models/simple_public_object_input.rb +174 -178
- data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +342 -316
- data/lib/hubspot/codegen/crm/extensions/cards/api/sample_response_api.rb +84 -0
- data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +350 -352
- data/lib/hubspot/codegen/crm/extensions/cards/api_error.rb +36 -38
- data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +222 -224
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_confirmation_body.rb +245 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/action_hook_action_body.rb +327 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +175 -179
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +208 -212
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +175 -179
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +237 -241
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +186 -190
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +182 -186
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +175 -179
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_object_type_body.rb +214 -218
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +193 -197
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +228 -232
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +224 -228
- data/lib/hubspot/codegen/crm/extensions/cards/models/error.rb +230 -234
- data/lib/hubspot/codegen/crm/extensions/cards/models/error_detail.rb +193 -197
- data/lib/hubspot/codegen/crm/extensions/cards/models/i_frame_action_body.rb +320 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_card_payload_response.rb +303 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result.rb +272 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/object_token.rb +278 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/top_level_actions.rb +237 -0
- data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +216 -220
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +338 -340
- data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +249 -253
- data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +66 -70
- data/lib/hubspot/codegen/crm/line_items/api_client.rb +349 -351
- data/lib/hubspot/codegen/crm/line_items/api_error.rb +35 -37
- data/lib/hubspot/codegen/crm/line_items/configuration.rb +221 -223
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_batch_input.rb +174 -178
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_id.rb +174 -178
- data/lib/hubspot/codegen/crm/line_items/models/batch_input_simple_public_object_input.rb +174 -178
- data/lib/hubspot/codegen/crm/line_items/models/batch_read_input_simple_public_object_id.rb +188 -192
- data/lib/hubspot/codegen/crm/line_items/models/batch_response_simple_public_object.rb +261 -265
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object.rb +182 -186
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_simple_public_object_id.rb +182 -186
- data/lib/hubspot/codegen/crm/line_items/models/collection_response_with_total_simple_public_object.rb +195 -199
- data/lib/hubspot/codegen/crm/line_items/models/error.rb +229 -233
- data/lib/hubspot/codegen/crm/line_items/models/error_detail.rb +210 -214
- data/lib/hubspot/codegen/crm/line_items/models/filter.rb +219 -223
- data/lib/hubspot/codegen/crm/line_items/models/filter_group.rb +174 -178
- data/lib/hubspot/codegen/crm/line_items/models/next_page.rb +180 -184
- data/lib/hubspot/codegen/crm/line_items/models/paging.rb +168 -172
- data/lib/hubspot/codegen/crm/line_items/models/public_object_search_request.rb +227 -231
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object.rb +235 -239
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_batch_input.rb +185 -189
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_id.rb +172 -176
- data/lib/hubspot/codegen/crm/line_items/models/simple_public_object_input.rb +174 -178
- data/lib/hubspot/codegen/crm/objects/api/associations_api.rb +233 -237
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +368 -369
- data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +273 -277
- data/lib/hubspot/codegen/crm/objects/api/search_api.rb +72 -76
- data/lib/hubspot/codegen/crm/objects/api_client.rb +349 -351
- data/lib/hubspot/codegen/crm/objects/api_error.rb +35 -37
- data/lib/hubspot/codegen/crm/objects/configuration.rb +220 -222
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_batch_input.rb +174 -178
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_id.rb +174 -178
- data/lib/hubspot/codegen/crm/objects/models/batch_input_simple_public_object_input.rb +174 -178
- data/lib/hubspot/codegen/crm/objects/models/batch_read_input_simple_public_object_id.rb +196 -191
- data/lib/hubspot/codegen/crm/objects/models/batch_response_simple_public_object.rb +261 -265
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object.rb +182 -186
- data/lib/hubspot/codegen/crm/objects/models/collection_response_simple_public_object_id.rb +182 -186
- data/lib/hubspot/codegen/crm/objects/models/collection_response_with_total_simple_public_object.rb +195 -199
- data/lib/hubspot/codegen/crm/objects/models/error.rb +229 -233
- data/lib/hubspot/codegen/crm/objects/models/error_detail.rb +210 -214
- data/lib/hubspot/codegen/crm/objects/models/filter.rb +219 -223
- data/lib/hubspot/codegen/crm/objects/models/filter_group.rb +174 -178
- data/lib/hubspot/codegen/crm/objects/models/next_page.rb +180 -184
- data/lib/hubspot/codegen/crm/objects/models/paging.rb +168 -172
- data/lib/hubspot/codegen/crm/objects/models/public_object_search_request.rb +227 -231
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object.rb +235 -239
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_batch_input.rb +185 -189
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_id.rb +172 -176
- data/lib/hubspot/codegen/crm/objects/models/simple_public_object_input.rb +174 -178
- data/lib/hubspot/codegen/crm/owners/api/default_api.rb +138 -140
- data/lib/hubspot/codegen/crm/owners/api_client.rb +349 -351
- data/lib/hubspot/codegen/crm/owners/api_error.rb +35 -37
- data/lib/hubspot/codegen/crm/owners/configuration.rb +220 -222
- data/lib/hubspot/codegen/crm/owners/models/collection_response_public_owner.rb +182 -186
- data/lib/hubspot/codegen/crm/owners/models/error.rb +229 -233
- data/lib/hubspot/codegen/crm/owners/models/error_detail.rb +192 -196
- data/lib/hubspot/codegen/crm/owners/models/next_page.rb +180 -184
- data/lib/hubspot/codegen/crm/owners/models/paging.rb +168 -172
- data/lib/hubspot/codegen/crm/owners/models/public_owner.rb +242 -246
- data/lib/hubspot/codegen/crm/owners/models/public_team.rb +219 -223
- data/lib/hubspot/codegen/crm/pipelines/api/pipeline_stages_api.rb +458 -462
- data/lib/hubspot/codegen/crm/pipelines/api/pipelines_api.rb +422 -426
- data/lib/hubspot/codegen/crm/pipelines/api_client.rb +349 -351
- data/lib/hubspot/codegen/crm/pipelines/api_error.rb +35 -37
- data/lib/hubspot/codegen/crm/pipelines/configuration.rb +220 -222
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline.rb +182 -186
- data/lib/hubspot/codegen/crm/pipelines/models/collection_response_pipeline_stage.rb +182 -186
- data/lib/hubspot/codegen/crm/pipelines/models/error.rb +229 -254
- data/lib/hubspot/codegen/crm/pipelines/models/error_detail.rb +192 -196
- data/lib/hubspot/codegen/crm/pipelines/models/next_page.rb +180 -184
- data/lib/hubspot/codegen/crm/pipelines/models/paging.rb +168 -172
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline.rb +262 -266
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_input.rb +203 -207
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_patch_input.rb +188 -192
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage.rb +261 -265
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_input.rb +201 -205
- data/lib/hubspot/codegen/crm/pipelines/models/pipeline_stage_patch_input.rb +202 -206
- data/lib/hubspot/codegen/crm/products/api/associations_api.rb +215 -219
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +337 -339
- data/lib/hubspot/codegen/crm/products/api/batch_api.rb +248 -252
- data/lib/hubspot/codegen/crm/products/api/search_api.rb +65 -69
- data/lib/hubspot/codegen/crm/products/api_client.rb +349 -351
- data/lib/hubspot/codegen/crm/products/api_error.rb +35 -37
- data/lib/hubspot/codegen/crm/products/configuration.rb +220 -222
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_batch_input.rb +174 -178
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_id.rb +174 -178
- data/lib/hubspot/codegen/crm/products/models/batch_input_simple_public_object_input.rb +174 -178
- data/lib/hubspot/codegen/crm/products/models/batch_read_input_simple_public_object_id.rb +188 -192
- data/lib/hubspot/codegen/crm/products/models/batch_response_simple_public_object.rb +261 -265
- data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object.rb +182 -186
- data/lib/hubspot/codegen/crm/products/models/collection_response_simple_public_object_id.rb +182 -186
- data/lib/hubspot/codegen/crm/products/models/collection_response_with_total_simple_public_object.rb +195 -199
- data/lib/hubspot/codegen/crm/products/models/error.rb +229 -233
- data/lib/hubspot/codegen/crm/products/models/error_detail.rb +210 -214
- data/lib/hubspot/codegen/crm/products/models/filter.rb +219 -223
- data/lib/hubspot/codegen/crm/products/models/filter_group.rb +174 -178
- data/lib/hubspot/codegen/crm/products/models/next_page.rb +180 -184
- data/lib/hubspot/codegen/crm/products/models/paging.rb +168 -172
- data/lib/hubspot/codegen/crm/products/models/public_object_search_request.rb +227 -231
- data/lib/hubspot/codegen/crm/products/models/simple_public_object.rb +235 -239
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_batch_input.rb +185 -189
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_id.rb +172 -176
- data/lib/hubspot/codegen/crm/products/models/simple_public_object_input.rb +174 -178
- data/lib/hubspot/codegen/crm/properties/api/batch_api.rb +203 -207
- data/lib/hubspot/codegen/crm/properties/api/core_api.rb +347 -351
- data/lib/hubspot/codegen/crm/properties/api/groups_api.rb +341 -345
- data/lib/hubspot/codegen/crm/properties/api_client.rb +349 -351
- data/lib/hubspot/codegen/crm/properties/api_error.rb +35 -37
- data/lib/hubspot/codegen/crm/properties/configuration.rb +220 -222
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_create.rb +174 -178
- data/lib/hubspot/codegen/crm/properties/models/batch_input_property_name.rb +174 -178
- data/lib/hubspot/codegen/crm/properties/models/batch_read_input_property_name.rb +185 -189
- data/lib/hubspot/codegen/crm/properties/models/batch_response_property.rb +261 -265
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property.rb +182 -186
- data/lib/hubspot/codegen/crm/properties/models/collection_response_property_group.rb +182 -186
- data/lib/hubspot/codegen/crm/properties/models/error.rb +229 -233
- data/lib/hubspot/codegen/crm/properties/models/error_detail.rb +210 -214
- data/lib/hubspot/codegen/crm/properties/models/next_page.rb +180 -184
- data/lib/hubspot/codegen/crm/properties/models/option.rb +215 -219
- data/lib/hubspot/codegen/crm/properties/models/option_input.rb +215 -219
- data/lib/hubspot/codegen/crm/properties/models/paging.rb +168 -172
- data/lib/hubspot/codegen/crm/properties/models/property.rb +393 -397
- data/lib/hubspot/codegen/crm/properties/models/property_create.rb +309 -313
- data/lib/hubspot/codegen/crm/properties/models/property_group.rb +210 -214
- data/lib/hubspot/codegen/crm/properties/models/property_group_create.rb +195 -199
- data/lib/hubspot/codegen/crm/properties/models/property_group_update.rb +178 -182
- data/lib/hubspot/codegen/crm/properties/models/property_modification_metadata.rb +203 -207
- data/lib/hubspot/codegen/crm/properties/models/property_name.rb +173 -177
- data/lib/hubspot/codegen/crm/properties/models/property_update.rb +271 -275
- data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +215 -219
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +337 -339
- data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +248 -252
- data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +65 -69
- data/lib/hubspot/codegen/crm/quotes/api_client.rb +349 -351
- data/lib/hubspot/codegen/crm/quotes/api_error.rb +35 -37
- data/lib/hubspot/codegen/crm/quotes/configuration.rb +220 -222
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_batch_input.rb +174 -178
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_id.rb +174 -178
- data/lib/hubspot/codegen/crm/quotes/models/batch_input_simple_public_object_input.rb +174 -178
- data/lib/hubspot/codegen/crm/quotes/models/batch_read_input_simple_public_object_id.rb +188 -192
- data/lib/hubspot/codegen/crm/quotes/models/batch_response_simple_public_object.rb +261 -265
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object.rb +182 -186
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_simple_public_object_id.rb +182 -186
- data/lib/hubspot/codegen/crm/quotes/models/collection_response_with_total_simple_public_object.rb +195 -199
- data/lib/hubspot/codegen/crm/quotes/models/error.rb +229 -233
- data/lib/hubspot/codegen/crm/quotes/models/error_detail.rb +210 -214
- data/lib/hubspot/codegen/crm/quotes/models/filter.rb +220 -224
- data/lib/hubspot/codegen/crm/quotes/models/filter_group.rb +174 -178
- data/lib/hubspot/codegen/crm/quotes/models/next_page.rb +181 -185
- data/lib/hubspot/codegen/crm/quotes/models/paging.rb +169 -173
- data/lib/hubspot/codegen/crm/quotes/models/public_object_search_request.rb +228 -232
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object.rb +236 -240
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_batch_input.rb +186 -190
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_id.rb +173 -177
- data/lib/hubspot/codegen/crm/quotes/models/simple_public_object_input.rb +175 -179
- data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +216 -220
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +338 -340
- data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +249 -253
- data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +66 -70
- data/lib/hubspot/codegen/crm/tickets/api_client.rb +350 -352
- data/lib/hubspot/codegen/crm/tickets/api_error.rb +36 -38
- data/lib/hubspot/codegen/crm/tickets/configuration.rb +220 -222
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input.rb +175 -179
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_id.rb +175 -179
- data/lib/hubspot/codegen/crm/tickets/models/batch_input_simple_public_object_input.rb +175 -179
- data/lib/hubspot/codegen/crm/tickets/models/batch_read_input_simple_public_object_id.rb +189 -193
- data/lib/hubspot/codegen/crm/tickets/models/batch_response_simple_public_object.rb +262 -266
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object.rb +183 -187
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_simple_public_object_id.rb +183 -187
- data/lib/hubspot/codegen/crm/tickets/models/collection_response_with_total_simple_public_object.rb +196 -200
- data/lib/hubspot/codegen/crm/tickets/models/error.rb +230 -234
- data/lib/hubspot/codegen/crm/tickets/models/error_detail.rb +211 -215
- data/lib/hubspot/codegen/crm/tickets/models/filter.rb +220 -224
- data/lib/hubspot/codegen/crm/tickets/models/filter_group.rb +175 -179
- data/lib/hubspot/codegen/crm/tickets/models/next_page.rb +181 -185
- data/lib/hubspot/codegen/crm/tickets/models/paging.rb +169 -173
- data/lib/hubspot/codegen/crm/tickets/models/public_object_search_request.rb +228 -232
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object.rb +236 -240
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_batch_input.rb +186 -190
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_id.rb +172 -176
- data/lib/hubspot/codegen/crm/tickets/models/simple_public_object_input.rb +174 -178
- data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +64 -68
- data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +316 -320
- data/lib/hubspot/codegen/oauth/api/tokens_api.rb +78 -82
- data/lib/hubspot/codegen/oauth/api_client.rb +350 -352
- data/lib/hubspot/codegen/oauth/api_error.rb +34 -36
- data/lib/hubspot/codegen/oauth/configuration.rb +219 -221
- data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +250 -254
- data/lib/hubspot/codegen/oauth/models/error.rb +245 -249
- data/lib/hubspot/codegen/oauth/models/error_detail.rb +191 -195
- data/lib/hubspot/codegen/oauth/models/json_node.rb +333 -337
- data/lib/hubspot/codegen/oauth/models/refresh_token.rb +206 -210
- data/lib/hubspot/codegen/oauth/models/refresh_token_info_response.rb +239 -243
- data/lib/hubspot/configuration.rb +1 -1
- data/lib/hubspot/helpers/get_all_helper.rb +27 -0
- data/lib/hubspot/{oauth.rb → oauth_helper.rb} +1 -1
- data/lib/hubspot/version.rb +1 -1
- data/sample-apps/companies-app/Gemfile +1 -1
- data/sample-apps/companies-app/Gemfile.lock +4 -3
- data/sample-apps/companies-app/app/controllers/companies_controller.rb +2 -2
- data/sample-apps/companies-app/app/controllers/contacts_controller.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/authorization/get_authorization_uri.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/generate.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/authorization/tokens/refresh.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/create.rb +5 -5
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/delete.rb +5 -5
- data/sample-apps/companies-app/app/lib/services/hubspot/associations/get_by_id.rb +4 -4
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/create.rb +2 -2
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/destroy.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/export.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/get_all.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/get_by_id.rb +1 -1
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/search.rb +4 -4
- data/sample-apps/companies-app/app/lib/services/hubspot/companies/update.rb +2 -2
- data/sample-apps/{oauth-app/app/lib/services/hubspot/contacts/get_all.rb → companies-app/app/lib/services/hubspot/contacts/get_page.rb} +3 -3
- data/sample-apps/companies-app/app/lib/services/hubspot/contacts/search.rb +4 -4
- data/sample-apps/companies-app/app/views/oauth/authorization/login.html.erb +1 -1
- data/sample-apps/contacts-app/Gemfile +1 -1
- data/sample-apps/contacts-app/Gemfile.lock +4 -3
- data/sample-apps/contacts-app/app/controllers/contacts_controller.rb +3 -3
- data/sample-apps/contacts-app/app/controllers/properties_controller.rb +3 -3
- data/sample-apps/contacts-app/app/lib/services/authorization/get_authorization_uri.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/generate.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/authorization/tokens/refresh.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/create.rb +2 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/destroy.rb +2 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/export.rb +2 -15
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/get_by_id.rb +2 -2
- data/sample-apps/{companies-app/app/lib/services/hubspot/contacts/get_all.rb → contacts-app/app/lib/services/hubspot/contacts/get_page.rb} +3 -3
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/search.rb +4 -4
- data/sample-apps/contacts-app/app/lib/services/hubspot/contacts/update.rb +2 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/owners/get_all.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/create.rb +2 -2
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/destroy.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/get_all.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/get_by_name.rb +1 -1
- data/sample-apps/contacts-app/app/lib/services/hubspot/properties/update.rb +3 -3
- data/sample-apps/contacts-app/app/views/oauth/authorization/login.html.erb +1 -1
- data/sample-apps/leaky-bucket-app/.env.template +3 -0
- data/sample-apps/leaky-bucket-app/.gitignore +34 -0
- data/sample-apps/leaky-bucket-app/.ruby-version +1 -0
- data/sample-apps/leaky-bucket-app/Dockerfile +22 -0
- data/sample-apps/leaky-bucket-app/Gemfile +39 -0
- data/sample-apps/leaky-bucket-app/Gemfile.lock +307 -0
- data/sample-apps/leaky-bucket-app/README.md +34 -0
- data/sample-apps/leaky-bucket-app/Rakefile +6 -0
- data/sample-apps/leaky-bucket-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/leaky-bucket-app/app/assets/images/.keep +0 -0
- data/sample-apps/leaky-bucket-app/app/assets/javascripts/application.js +25 -0
- data/sample-apps/leaky-bucket-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/leaky-bucket-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/leaky-bucket-app/app/assets/stylesheets/application.css +90 -0
- data/sample-apps/leaky-bucket-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/leaky-bucket-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/leaky-bucket-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/leaky-bucket-app/app/controllers/home_controller.rb +15 -0
- data/sample-apps/leaky-bucket-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/leaky-bucket-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/leaky-bucket-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/leaky-bucket-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/leaky-bucket-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/leaky-bucket-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/leaky-bucket-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
- data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/archive_batch.rb +29 -0
- data/sample-apps/leaky-bucket-app/app/lib/services/hubspot/contacts/create_batch.rb +37 -0
- data/sample-apps/leaky-bucket-app/app/models/application_record.rb +3 -0
- data/sample-apps/leaky-bucket-app/app/models/concerns/.keep +0 -0
- data/sample-apps/leaky-bucket-app/app/views/home/index.html.erb +13 -0
- data/sample-apps/leaky-bucket-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/leaky-bucket-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/leaky-bucket-app/app/views/shared/_header.html.erb +12 -0
- data/sample-apps/leaky-bucket-app/app/workers/leaky_bucket_worker.rb +25 -0
- data/sample-apps/leaky-bucket-app/bin/bundle +3 -0
- data/sample-apps/leaky-bucket-app/bin/rails +9 -0
- data/sample-apps/leaky-bucket-app/bin/rake +9 -0
- data/sample-apps/leaky-bucket-app/bin/setup +36 -0
- data/sample-apps/leaky-bucket-app/bin/spring +17 -0
- data/sample-apps/leaky-bucket-app/bin/update +31 -0
- data/sample-apps/leaky-bucket-app/bin/yarn +11 -0
- data/sample-apps/leaky-bucket-app/config.ru +5 -0
- data/sample-apps/leaky-bucket-app/config/application.rb +20 -0
- data/sample-apps/leaky-bucket-app/config/boot.rb +3 -0
- data/sample-apps/leaky-bucket-app/config/cable.yml +10 -0
- data/sample-apps/leaky-bucket-app/config/database.yml +25 -0
- data/sample-apps/leaky-bucket-app/config/environment.rb +5 -0
- data/sample-apps/leaky-bucket-app/config/environments/development.rb +65 -0
- data/sample-apps/leaky-bucket-app/config/environments/production.rb +94 -0
- data/sample-apps/leaky-bucket-app/config/environments/test.rb +46 -0
- data/sample-apps/leaky-bucket-app/config/initializers/assets.rb +14 -0
- data/sample-apps/leaky-bucket-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/leaky-bucket-app/config/initializers/hubspot-api-ruby.rb +3 -0
- data/sample-apps/leaky-bucket-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/leaky-bucket-app/config/initializers/resque.rb +7 -0
- data/sample-apps/leaky-bucket-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/leaky-bucket-app/config/locales/en.yml +33 -0
- data/sample-apps/leaky-bucket-app/config/puma.rb +34 -0
- data/sample-apps/leaky-bucket-app/config/routes.rb +10 -0
- data/sample-apps/leaky-bucket-app/config/spring.rb +6 -0
- data/sample-apps/leaky-bucket-app/db/seeds.rb +7 -0
- data/sample-apps/leaky-bucket-app/docker-compose.yml +25 -0
- data/sample-apps/leaky-bucket-app/docker-entrypoint.sh +8 -0
- data/sample-apps/leaky-bucket-app/lib/assets/.keep +0 -0
- data/sample-apps/leaky-bucket-app/lib/tasks/.keep +0 -0
- data/sample-apps/leaky-bucket-app/lib/tasks/leaky_bucket.rake +11 -0
- data/sample-apps/leaky-bucket-app/lib/tasks/resque.rake +11 -0
- data/sample-apps/leaky-bucket-app/log/.keep +0 -0
- data/sample-apps/leaky-bucket-app/package.json +5 -0
- data/sample-apps/leaky-bucket-app/public/404.html +67 -0
- data/sample-apps/leaky-bucket-app/public/422.html +67 -0
- data/sample-apps/leaky-bucket-app/public/500.html +66 -0
- data/sample-apps/leaky-bucket-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/leaky-bucket-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/leaky-bucket-app/public/favicon.ico +0 -0
- data/sample-apps/leaky-bucket-app/public/robots.txt +1 -0
- data/sample-apps/leaky-bucket-app/resque-entrypoint.sh +9 -0
- data/sample-apps/leaky-bucket-app/tmp/.keep +0 -0
- data/sample-apps/oauth-app/app/controllers/contacts_controller.rb +3 -3
- data/sample-apps/oauth-app/app/lib/services/authorization/get_authorization_uri.rb +1 -1
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/generate.rb +1 -1
- data/sample-apps/oauth-app/app/lib/services/authorization/tokens/refresh.rb +1 -1
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/create.rb +2 -2
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/destroy.rb +2 -2
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/export.rb +2 -15
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/get_by_id.rb +2 -2
- data/sample-apps/{contacts-app/app/lib/services/hubspot/contacts/get_all.rb → oauth-app/app/lib/services/hubspot/contacts/get_page.rb} +3 -3
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/search.rb +4 -4
- data/sample-apps/oauth-app/app/lib/services/hubspot/contacts/update.rb +2 -2
- data/sample-apps/oauth-app/app/lib/services/hubspot/owners/get_all.rb +1 -1
- data/sample-apps/oauth-app/app/views/oauth/authorization/login.html.erb +1 -1
- data/sample-apps/rate-limits-redis-sample-app/.env.template +3 -0
- data/sample-apps/rate-limits-redis-sample-app/.gitignore +34 -0
- data/sample-apps/rate-limits-redis-sample-app/.ruby-version +1 -0
- data/sample-apps/rate-limits-redis-sample-app/Dockerfile +22 -0
- data/sample-apps/rate-limits-redis-sample-app/Gemfile +39 -0
- data/sample-apps/rate-limits-redis-sample-app/Gemfile.lock +307 -0
- data/sample-apps/rate-limits-redis-sample-app/README.md +35 -0
- data/sample-apps/rate-limits-redis-sample-app/Rakefile +6 -0
- data/sample-apps/rate-limits-redis-sample-app/app/assets/config/manifest.js +3 -0
- data/sample-apps/rate-limits-redis-sample-app/app/assets/images/.keep +0 -0
- data/sample-apps/rate-limits-redis-sample-app/app/assets/javascripts/application.js +25 -0
- data/sample-apps/rate-limits-redis-sample-app/app/assets/javascripts/cable.js +13 -0
- data/sample-apps/rate-limits-redis-sample-app/app/assets/javascripts/channels/.keep +0 -0
- data/sample-apps/rate-limits-redis-sample-app/app/assets/stylesheets/application.css +90 -0
- data/sample-apps/rate-limits-redis-sample-app/app/controllers/application_controller.rb +12 -0
- data/sample-apps/rate-limits-redis-sample-app/app/controllers/concerns/.keep +0 -0
- data/sample-apps/rate-limits-redis-sample-app/app/controllers/concerns/exception_handler.rb +12 -0
- data/sample-apps/rate-limits-redis-sample-app/app/controllers/home_controller.rb +15 -0
- data/sample-apps/rate-limits-redis-sample-app/app/controllers/oauth/authorization_controller.rb +19 -0
- data/sample-apps/rate-limits-redis-sample-app/app/helpers/application_helper.rb +2 -0
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/authorization/authorize_hubspot.rb +15 -0
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/authorization/get_authorization_uri.rb +33 -0
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/authorization/tokens/base.rb +19 -0
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/authorization/tokens/generate.rb +26 -0
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/authorization/tokens/refresh.rb +33 -0
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/archive_batch.rb +29 -0
- data/sample-apps/rate-limits-redis-sample-app/app/lib/services/hubspot/contacts/create_batch.rb +37 -0
- data/sample-apps/rate-limits-redis-sample-app/app/models/application_record.rb +3 -0
- data/sample-apps/rate-limits-redis-sample-app/app/models/concerns/.keep +0 -0
- data/sample-apps/rate-limits-redis-sample-app/app/views/home/index.html.erb +13 -0
- data/sample-apps/rate-limits-redis-sample-app/app/views/layouts/application.html.erb +23 -0
- data/sample-apps/rate-limits-redis-sample-app/app/views/oauth/authorization/login.html.erb +15 -0
- data/sample-apps/rate-limits-redis-sample-app/app/views/shared/_header.html.erb +12 -0
- data/sample-apps/rate-limits-redis-sample-app/app/workers/redis_rate_limits_worker.rb +51 -0
- data/sample-apps/rate-limits-redis-sample-app/bin/bundle +3 -0
- data/sample-apps/rate-limits-redis-sample-app/bin/rails +9 -0
- data/sample-apps/rate-limits-redis-sample-app/bin/rake +9 -0
- data/sample-apps/rate-limits-redis-sample-app/bin/setup +36 -0
- data/sample-apps/rate-limits-redis-sample-app/bin/spring +17 -0
- data/sample-apps/rate-limits-redis-sample-app/bin/update +31 -0
- data/sample-apps/rate-limits-redis-sample-app/bin/yarn +11 -0
- data/sample-apps/rate-limits-redis-sample-app/config.ru +5 -0
- data/sample-apps/rate-limits-redis-sample-app/config/application.rb +20 -0
- data/sample-apps/rate-limits-redis-sample-app/config/boot.rb +3 -0
- data/sample-apps/rate-limits-redis-sample-app/config/cable.yml +10 -0
- data/sample-apps/rate-limits-redis-sample-app/config/database.yml +25 -0
- data/sample-apps/rate-limits-redis-sample-app/config/environment.rb +5 -0
- data/sample-apps/rate-limits-redis-sample-app/config/environments/development.rb +63 -0
- data/sample-apps/rate-limits-redis-sample-app/config/environments/production.rb +94 -0
- data/sample-apps/rate-limits-redis-sample-app/config/environments/test.rb +46 -0
- data/sample-apps/rate-limits-redis-sample-app/config/initializers/assets.rb +14 -0
- data/sample-apps/rate-limits-redis-sample-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/sample-apps/rate-limits-redis-sample-app/config/initializers/hubspot-api-ruby.rb +3 -0
- data/sample-apps/rate-limits-redis-sample-app/config/initializers/mime_types.rb +1 -0
- data/sample-apps/rate-limits-redis-sample-app/config/initializers/resque.rb +7 -0
- data/sample-apps/rate-limits-redis-sample-app/config/initializers/wrap_parameters.rb +14 -0
- data/sample-apps/rate-limits-redis-sample-app/config/locales/en.yml +33 -0
- data/sample-apps/rate-limits-redis-sample-app/config/puma.rb +34 -0
- data/sample-apps/rate-limits-redis-sample-app/config/routes.rb +10 -0
- data/sample-apps/rate-limits-redis-sample-app/config/spring.rb +6 -0
- data/sample-apps/rate-limits-redis-sample-app/db/seeds.rb +7 -0
- data/sample-apps/rate-limits-redis-sample-app/docker-compose.yml +25 -0
- data/sample-apps/rate-limits-redis-sample-app/docker-entrypoint.sh +8 -0
- data/sample-apps/rate-limits-redis-sample-app/lib/assets/.keep +0 -0
- data/sample-apps/rate-limits-redis-sample-app/lib/tasks/.keep +0 -0
- data/sample-apps/rate-limits-redis-sample-app/lib/tasks/redis_rate_limits.rake +11 -0
- data/sample-apps/rate-limits-redis-sample-app/lib/tasks/resque.rake +11 -0
- data/sample-apps/rate-limits-redis-sample-app/log/.keep +0 -0
- data/sample-apps/rate-limits-redis-sample-app/package.json +5 -0
- data/sample-apps/rate-limits-redis-sample-app/public/404.html +67 -0
- data/sample-apps/rate-limits-redis-sample-app/public/422.html +67 -0
- data/sample-apps/rate-limits-redis-sample-app/public/500.html +66 -0
- data/sample-apps/rate-limits-redis-sample-app/public/apple-touch-icon-precomposed.png +0 -0
- data/sample-apps/rate-limits-redis-sample-app/public/apple-touch-icon.png +0 -0
- data/sample-apps/rate-limits-redis-sample-app/public/favicon.ico +0 -0
- data/sample-apps/rate-limits-redis-sample-app/public/robots.txt +1 -0
- data/sample-apps/rate-limits-redis-sample-app/resque-entrypoint.sh +9 -0
- data/sample-apps/rate-limits-redis-sample-app/tmp/.keep +0 -0
- data/sample-apps/retry-middleware-sample-app/Gemfile +1 -1
- data/sample-apps/retry-middleware-sample-app/Gemfile.lock +4 -3
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/get_authorization_uri.rb +1 -1
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/generate.rb +1 -1
- data/sample-apps/retry-middleware-sample-app/app/lib/services/authorization/tokens/refresh.rb +1 -1
- data/sample-apps/retry-middleware-sample-app/app/views/oauth/authorization/login.html.erb +1 -1
- data/sample-apps/retry-middleware-sample-app/lib/tasks/retry_middleware.rake +7 -7
- data/sample-apps/webhooks-contacts-app/Gemfile +1 -1
- data/sample-apps/webhooks-contacts-app/Gemfile.lock +4 -3
- data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/get_authorization_uri.rb +1 -1
- data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/tokens/generate.rb +1 -1
- data/sample-apps/webhooks-contacts-app/app/lib/services/authorization/tokens/refresh.rb +1 -1
- data/sample-apps/webhooks-contacts-app/app/lib/services/hubspot/contacts/get_batch.rb +3 -3
- data/sample-apps/webhooks-contacts-app/app/views/oauth/authorization/login.html.erb +1 -1
- data/spec/oauth/api/access_tokens_api_spec.rb +3 -3
- data/spec/oauth/api/refresh_tokens_api_spec.rb +3 -3
- data/spec/oauth/api/tokens_api_spec.rb +3 -3
- data/spec/oauth/api_client_spec.rb +23 -23
- data/spec/oauth/configuration_spec.rb +2 -2
- data/spec/oauth/models/access_token_info_response_spec.rb +3 -3
- data/spec/oauth/models/error_detail_spec.rb +3 -3
- data/spec/oauth/models/error_spec.rb +3 -3
- data/spec/oauth/models/json_node_spec.rb +3 -3
- data/spec/oauth/models/refresh_token_info_response_spec.rb +3 -3
- data/spec/oauth/models/refresh_token_spec.rb +3 -3
- data/spec/objects/api/associations_api_spec.rb +3 -3
- data/spec/objects/api/basic_api_spec.rb +3 -3
- data/spec/objects/api/batch_api_spec.rb +3 -3
- data/spec/objects/api/search_api_spec.rb +3 -3
- data/spec/objects/api_client_spec.rb +23 -23
- data/spec/objects/configuration_spec.rb +2 -2
- data/spec/objects/models/batch_input_simple_public_object_batch_input_spec.rb +3 -3
- data/spec/objects/models/batch_input_simple_public_object_id_spec.rb +3 -3
- data/spec/objects/models/batch_input_simple_public_object_input_spec.rb +3 -3
- data/spec/objects/models/batch_read_input_simple_public_object_id_spec.rb +3 -3
- data/spec/objects/models/batch_response_simple_public_object_spec.rb +3 -3
- data/spec/objects/models/collection_response_simple_public_object_id_spec.rb +3 -3
- data/spec/objects/models/collection_response_simple_public_object_spec.rb +3 -3
- data/spec/objects/models/collection_response_with_total_simple_public_object_spec.rb +3 -3
- data/spec/objects/models/error_detail_spec.rb +3 -3
- data/spec/objects/models/error_spec.rb +3 -3
- data/spec/objects/models/filter_group_spec.rb +3 -3
- data/spec/objects/models/filter_spec.rb +3 -3
- data/spec/objects/models/next_page_spec.rb +3 -3
- data/spec/objects/models/paging_spec.rb +3 -3
- data/spec/objects/models/public_object_search_request_spec.rb +3 -3
- data/spec/objects/models/simple_public_object_batch_input_spec.rb +3 -3
- data/spec/objects/models/simple_public_object_id_spec.rb +3 -3
- data/spec/objects/models/simple_public_object_input_spec.rb +3 -3
- data/spec/objects/models/simple_public_object_spec.rb +3 -3
- data/spec/owners/api/default_api_spec.rb +3 -3
- data/spec/owners/api_client_spec.rb +23 -23
- data/spec/owners/configuration_spec.rb +2 -2
- data/spec/owners/models/collection_response_public_owner_spec.rb +3 -3
- data/spec/owners/models/error_detail_spec.rb +3 -3
- data/spec/owners/models/error_spec.rb +3 -3
- data/spec/owners/models/next_page_spec.rb +3 -3
- data/spec/owners/models/paging_spec.rb +3 -3
- data/spec/owners/models/public_owner_spec.rb +3 -3
- data/spec/owners/models/public_team_spec.rb +3 -3
- data/spec/pipelines/api/pipeline_stages_api_spec.rb +3 -3
- data/spec/pipelines/api/pipelines_api_spec.rb +3 -3
- data/spec/pipelines/api_client_spec.rb +23 -23
- data/spec/pipelines/configuration_spec.rb +2 -2
- data/spec/pipelines/models/collection_response_pipeline_spec.rb +3 -3
- data/spec/pipelines/models/collection_response_pipeline_stage_spec.rb +3 -3
- data/spec/pipelines/models/error_detail_spec.rb +3 -3
- data/spec/pipelines/models/error_spec.rb +3 -3
- data/spec/pipelines/models/next_page_spec.rb +3 -3
- data/spec/pipelines/models/paging_spec.rb +3 -3
- data/spec/pipelines/models/pipeline_input_spec.rb +3 -3
- data/spec/pipelines/models/pipeline_patch_input_spec.rb +3 -3
- data/spec/pipelines/models/pipeline_spec.rb +3 -3
- data/spec/pipelines/models/pipeline_stage_input_spec.rb +3 -3
- data/spec/pipelines/models/pipeline_stage_patch_input_spec.rb +3 -3
- data/spec/pipelines/models/pipeline_stage_spec.rb +3 -3
- data/spec/properties/api/batch_api_spec.rb +3 -3
- data/spec/properties/api/core_api_spec.rb +3 -3
- data/spec/properties/api/groups_api_spec.rb +3 -3
- data/spec/properties/api_client_spec.rb +23 -23
- data/spec/properties/configuration_spec.rb +2 -2
- data/spec/properties/models/batch_input_property_create_spec.rb +3 -3
- data/spec/properties/models/batch_input_property_name_spec.rb +3 -3
- data/spec/properties/models/batch_read_input_property_name_spec.rb +3 -3
- data/spec/properties/models/batch_response_property_spec.rb +3 -3
- data/spec/properties/models/collection_response_property_group_spec.rb +3 -3
- data/spec/properties/models/collection_response_property_spec.rb +3 -3
- data/spec/properties/models/error_detail_spec.rb +3 -3
- data/spec/properties/models/error_spec.rb +3 -3
- data/spec/properties/models/next_page_spec.rb +3 -3
- data/spec/properties/models/option_input_spec.rb +3 -3
- data/spec/properties/models/option_spec.rb +3 -3
- data/spec/properties/models/paging_spec.rb +3 -3
- data/spec/properties/models/property_create_spec.rb +3 -3
- data/spec/properties/models/property_group_create_spec.rb +3 -3
- data/spec/properties/models/property_group_spec.rb +3 -3
- data/spec/properties/models/property_group_update_spec.rb +3 -3
- data/spec/properties/models/property_modification_metadata_spec.rb +3 -3
- data/spec/properties/models/property_name_spec.rb +3 -3
- data/spec/properties/models/property_spec.rb +3 -3
- data/spec/properties/models/property_update_spec.rb +3 -3
- metadata +544 -7
- data/lib/hubspot/codegen/crm/extensions/cards/api/default_api.rb +0 -318
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c17e146d01b10a81f19cb9beba07cbbfeeae72df53a0b1b2858e25366ecd6117
|
4
|
+
data.tar.gz: 7b9989937e97d03dd9cc2e7eba3e3dce9189bd770f6a0ac0ab3359145d1ce824
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 964a080fddcfb82cfe0d45ec8bc18995917269bb7561f13294ca968c4237b38a98ec8123a77f4f6a5faa168c8beabdced43b9278d6f147775d89c34ab658973a
|
7
|
+
data.tar.gz: d7afb3b2a027772b62fcf8fa0201d8f4b493ad5d330b2e91086c6c2a12be16c3181b993fa0a441c6b128929bcfbaeb5520904b3032e756b0e80185bfa0a8e21d
|
data/README.md
CHANGED
@@ -52,33 +52,26 @@ require 'hubspot-api-client'
|
|
52
52
|
# Setup authorization
|
53
53
|
Hubspot.configure do |config|
|
54
54
|
# Configure API key authorization: hapikey
|
55
|
-
config.api_key['hapikey'] = '
|
56
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
57
|
-
#config.api_key_prefix['hapikey'] = 'Bearer'
|
58
|
-
|
59
|
-
# Configure OAuth2 access token for authorization: oauth2
|
60
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
55
|
+
config.api_key['hapikey'] = 'demo'
|
61
56
|
end
|
62
57
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
object_id = 'object_id_example' # String |
|
68
|
-
|
69
|
-
associated_object_type = 'associated_object_type_example' # String |
|
58
|
+
# Get contacts
|
59
|
+
basic_api = Hubspot::Crm::Contacts::BasicApi.new
|
60
|
+
basic_api.get_page(auth_names: 'hapikey')
|
70
61
|
|
71
|
-
|
62
|
+
```
|
72
63
|
|
64
|
+
### Usage
|
73
65
|
|
74
|
-
|
75
|
-
|
76
|
-
api_instance.archive_association(object_type, object_id, associated_object_type, to_object_id)
|
77
|
-
rescue Hubspot::Client::Crm::Objects::ApiError => e
|
78
|
-
puts "Exception when calling AssociationsApi->archive_association: #{e}"
|
79
|
-
end
|
66
|
+
### Get all:
|
67
|
+
get_all method is available for all major objects (Companies, Contacts, Deals, LineItems, Products, Quotes & Tickets) and works like
|
80
68
|
|
69
|
+
```ruby
|
70
|
+
basic_api = Hubspot::Crm::Contacts::BasicApi.new
|
71
|
+
all_contacts = basic_api.get_all(auth_names: 'oauth2')
|
81
72
|
```
|
73
|
+
Please note that pagination is used under the hood to get all results.
|
74
|
+
|
82
75
|
|
83
76
|
### Error handling
|
84
77
|
|
@@ -91,7 +84,7 @@ Available params:
|
|
91
84
|
|
92
85
|
|
93
86
|
```ruby
|
94
|
-
config = ::Hubspot::
|
87
|
+
config = ::Hubspot::Crm::Companies::Configuration.new do |config|
|
95
88
|
config.access_token = 'YOUR ACCESS TOKEN'
|
96
89
|
|
97
90
|
# Set handlers of statuses you want to handle
|
@@ -102,8 +95,8 @@ config = ::Hubspot::Client::Crm::Companies::Configuration.new do |config|
|
|
102
95
|
}
|
103
96
|
end
|
104
97
|
|
105
|
-
api_client = ::Hubspot::
|
106
|
-
basic_api = ::Hubspot::
|
98
|
+
api_client = ::Hubspot::Crm::Companies::ApiClient.new(config)
|
99
|
+
basic_api = ::Hubspot::Crm::Companies::BasicApi.new(api_client)
|
107
100
|
end
|
108
101
|
|
109
102
|
```
|
data/lib/hubspot-api-client.rb
CHANGED
@@ -40,7 +40,7 @@ module Hubspot
|
|
40
40
|
return Configuration.default unless block_given?
|
41
41
|
yield(Configuration.default)
|
42
42
|
CLIENTS.each do |client_class_name|
|
43
|
-
config_class = Hubspot.const_get("
|
43
|
+
config_class = Hubspot.const_get("#{client_class_name}::Configuration")
|
44
44
|
yield(config_class.default)
|
45
45
|
end
|
46
46
|
Configuration.default
|
@@ -6,239 +6,235 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module Hubspot
|
16
|
-
module
|
17
|
-
module
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
if @api_client.config.debugging
|
237
|
-
@api_client.config.logger.debug "API called: BatchApi#read_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
238
|
-
end
|
239
|
-
return data, status_code, headers
|
240
|
-
end
|
16
|
+
module Crm
|
17
|
+
module Associations
|
18
|
+
class BatchApi
|
19
|
+
attr_accessor :api_client
|
20
|
+
|
21
|
+
def initialize(api_client = ApiClient.default)
|
22
|
+
@api_client = api_client
|
23
|
+
end
|
24
|
+
# Archive a batch of associations
|
25
|
+
# Remove the associations between all pairs of objects identified in the request body.
|
26
|
+
# @param from_object_type [String]
|
27
|
+
# @param to_object_type [String]
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @option opts [BatchInputPublicAssociation] :batch_input_public_association
|
30
|
+
# @return [nil]
|
31
|
+
def archive_batch(from_object_type, to_object_type, opts = {})
|
32
|
+
archive_batch_with_http_info(from_object_type, to_object_type, opts)
|
33
|
+
nil
|
34
|
+
end
|
35
|
+
|
36
|
+
# Archive a batch of associations
|
37
|
+
# Remove the associations between all pairs of objects identified in the request body.
|
38
|
+
# @param from_object_type [String]
|
39
|
+
# @param to_object_type [String]
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [BatchInputPublicAssociation] :batch_input_public_association
|
42
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
43
|
+
def archive_batch_with_http_info(from_object_type, to_object_type, opts = {})
|
44
|
+
if @api_client.config.debugging
|
45
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.archive_batch ...'
|
46
|
+
end
|
47
|
+
# verify the required parameter 'from_object_type' is set
|
48
|
+
if @api_client.config.client_side_validation && from_object_type.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'from_object_type' when calling BatchApi.archive_batch"
|
50
|
+
end
|
51
|
+
# verify the required parameter 'to_object_type' is set
|
52
|
+
if @api_client.config.client_side_validation && to_object_type.nil?
|
53
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling BatchApi.archive_batch"
|
54
|
+
end
|
55
|
+
# resource path
|
56
|
+
local_var_path = '/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/archive'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s).gsub('%2F', '/')).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s).gsub('%2F', '/'))
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = opts[:query_params] || {}
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = opts[:header_params] || {}
|
63
|
+
# HTTP header 'Accept' (if needed)
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
65
|
+
# HTTP header 'Content-Type'
|
66
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
67
|
+
|
68
|
+
# form parameters
|
69
|
+
form_params = opts[:form_params] || {}
|
70
|
+
|
71
|
+
# http body (model)
|
72
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'batch_input_public_association'])
|
73
|
+
|
74
|
+
# return_type
|
75
|
+
return_type = opts[:return_type]
|
76
|
+
|
77
|
+
# auth_names
|
78
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
79
|
+
|
80
|
+
new_options = opts.merge(
|
81
|
+
:header_params => header_params,
|
82
|
+
:query_params => query_params,
|
83
|
+
:form_params => form_params,
|
84
|
+
:body => post_body,
|
85
|
+
:auth_names => auth_names,
|
86
|
+
:return_type => return_type
|
87
|
+
)
|
88
|
+
|
89
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
90
|
+
if @api_client.config.debugging
|
91
|
+
@api_client.config.logger.debug "API called: BatchApi#archive_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
92
|
+
end
|
93
|
+
return data, status_code, headers
|
94
|
+
end
|
95
|
+
|
96
|
+
# Create a batch of associations
|
97
|
+
# Associate all pairs of objects identified in the request body.
|
98
|
+
# @param from_object_type [String]
|
99
|
+
# @param to_object_type [String]
|
100
|
+
# @param [Hash] opts the optional parameters
|
101
|
+
# @option opts [BatchInputPublicAssociation] :batch_input_public_association
|
102
|
+
# @return [BatchResponsePublicAssociation]
|
103
|
+
def create_batch(from_object_type, to_object_type, opts = {})
|
104
|
+
data, _status_code, _headers = create_batch_with_http_info(from_object_type, to_object_type, opts)
|
105
|
+
data
|
106
|
+
end
|
107
|
+
|
108
|
+
# Create a batch of associations
|
109
|
+
# Associate all pairs of objects identified in the request body.
|
110
|
+
# @param from_object_type [String]
|
111
|
+
# @param to_object_type [String]
|
112
|
+
# @param [Hash] opts the optional parameters
|
113
|
+
# @option opts [BatchInputPublicAssociation] :batch_input_public_association
|
114
|
+
# @return [Array<(BatchResponsePublicAssociation, Integer, Hash)>] BatchResponsePublicAssociation data, response status code and response headers
|
115
|
+
def create_batch_with_http_info(from_object_type, to_object_type, opts = {})
|
116
|
+
if @api_client.config.debugging
|
117
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.create_batch ...'
|
118
|
+
end
|
119
|
+
# verify the required parameter 'from_object_type' is set
|
120
|
+
if @api_client.config.client_side_validation && from_object_type.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'from_object_type' when calling BatchApi.create_batch"
|
122
|
+
end
|
123
|
+
# verify the required parameter 'to_object_type' is set
|
124
|
+
if @api_client.config.client_side_validation && to_object_type.nil?
|
125
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling BatchApi.create_batch"
|
126
|
+
end
|
127
|
+
# resource path
|
128
|
+
local_var_path = '/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/create'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s).gsub('%2F', '/')).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s).gsub('%2F', '/'))
|
129
|
+
|
130
|
+
# query parameters
|
131
|
+
query_params = opts[:query_params] || {}
|
132
|
+
|
133
|
+
# header parameters
|
134
|
+
header_params = opts[:header_params] || {}
|
135
|
+
# HTTP header 'Accept' (if needed)
|
136
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
137
|
+
# HTTP header 'Content-Type'
|
138
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
139
|
+
|
140
|
+
# form parameters
|
141
|
+
form_params = opts[:form_params] || {}
|
142
|
+
|
143
|
+
# http body (model)
|
144
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'batch_input_public_association'])
|
145
|
+
|
146
|
+
# return_type
|
147
|
+
return_type = opts[:return_type] || 'BatchResponsePublicAssociation'
|
148
|
+
|
149
|
+
# auth_names
|
150
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
151
|
+
|
152
|
+
new_options = opts.merge(
|
153
|
+
:header_params => header_params,
|
154
|
+
:query_params => query_params,
|
155
|
+
:form_params => form_params,
|
156
|
+
:body => post_body,
|
157
|
+
:auth_names => auth_names,
|
158
|
+
:return_type => return_type
|
159
|
+
)
|
160
|
+
|
161
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
162
|
+
if @api_client.config.debugging
|
163
|
+
@api_client.config.logger.debug "API called: BatchApi#create_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
164
|
+
end
|
165
|
+
return data, status_code, headers
|
166
|
+
end
|
167
|
+
|
168
|
+
# Read a batch of associations
|
169
|
+
# Get the IDs of all `{toObjectType}` objects associated with those specified in the request body.
|
170
|
+
# @param from_object_type [String]
|
171
|
+
# @param to_object_type [String]
|
172
|
+
# @param [Hash] opts the optional parameters
|
173
|
+
# @option opts [BatchInputPublicObjectId] :batch_input_public_object_id
|
174
|
+
# @return [BatchResponsePublicAssociationMulti]
|
175
|
+
def read_batch(from_object_type, to_object_type, opts = {})
|
176
|
+
data, _status_code, _headers = read_batch_with_http_info(from_object_type, to_object_type, opts)
|
177
|
+
data
|
178
|
+
end
|
179
|
+
|
180
|
+
# Read a batch of associations
|
181
|
+
# Get the IDs of all `{toObjectType}` objects associated with those specified in the request body.
|
182
|
+
# @param from_object_type [String]
|
183
|
+
# @param to_object_type [String]
|
184
|
+
# @param [Hash] opts the optional parameters
|
185
|
+
# @option opts [BatchInputPublicObjectId] :batch_input_public_object_id
|
186
|
+
# @return [Array<(BatchResponsePublicAssociationMulti, Integer, Hash)>] BatchResponsePublicAssociationMulti data, response status code and response headers
|
187
|
+
def read_batch_with_http_info(from_object_type, to_object_type, opts = {})
|
188
|
+
if @api_client.config.debugging
|
189
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.read_batch ...'
|
190
|
+
end
|
191
|
+
# verify the required parameter 'from_object_type' is set
|
192
|
+
if @api_client.config.client_side_validation && from_object_type.nil?
|
193
|
+
fail ArgumentError, "Missing the required parameter 'from_object_type' when calling BatchApi.read_batch"
|
194
|
+
end
|
195
|
+
# verify the required parameter 'to_object_type' is set
|
196
|
+
if @api_client.config.client_side_validation && to_object_type.nil?
|
197
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling BatchApi.read_batch"
|
198
|
+
end
|
199
|
+
# resource path
|
200
|
+
local_var_path = '/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/read'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s).gsub('%2F', '/')).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s).gsub('%2F', '/'))
|
201
|
+
|
202
|
+
# query parameters
|
203
|
+
query_params = opts[:query_params] || {}
|
204
|
+
|
205
|
+
# header parameters
|
206
|
+
header_params = opts[:header_params] || {}
|
207
|
+
# HTTP header 'Accept' (if needed)
|
208
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
209
|
+
# HTTP header 'Content-Type'
|
210
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
211
|
+
|
212
|
+
# form parameters
|
213
|
+
form_params = opts[:form_params] || {}
|
214
|
+
|
215
|
+
# http body (model)
|
216
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'batch_input_public_object_id'])
|
217
|
+
|
218
|
+
# return_type
|
219
|
+
return_type = opts[:return_type] || 'BatchResponsePublicAssociationMulti'
|
220
|
+
|
221
|
+
# auth_names
|
222
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
223
|
+
|
224
|
+
new_options = opts.merge(
|
225
|
+
:header_params => header_params,
|
226
|
+
:query_params => query_params,
|
227
|
+
:form_params => form_params,
|
228
|
+
:body => post_body,
|
229
|
+
:auth_names => auth_names,
|
230
|
+
:return_type => return_type
|
231
|
+
)
|
232
|
+
|
233
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
234
|
+
if @api_client.config.debugging
|
235
|
+
@api_client.config.logger.debug "API called: BatchApi#read_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
241
236
|
end
|
237
|
+
return data, status_code, headers
|
242
238
|
end
|
243
239
|
end
|
244
240
|
end
|