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
@@ -13,261 +13,257 @@ OpenAPI Generator version: 4.2.2
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module Hubspot
|
16
|
-
module
|
17
|
-
module
|
18
|
-
|
19
|
-
|
20
|
-
class Filter
|
21
|
-
attr_accessor :property_name
|
22
|
-
|
23
|
-
attr_accessor :operator
|
24
|
-
|
25
|
-
attr_accessor :value
|
26
|
-
|
27
|
-
class EnumAttributeValidator
|
28
|
-
attr_reader :datatype
|
29
|
-
attr_reader :allowable_values
|
30
|
-
|
31
|
-
def initialize(datatype, allowable_values)
|
32
|
-
@allowable_values = allowable_values.map do |value|
|
33
|
-
case datatype.to_s
|
34
|
-
when /Integer/i
|
35
|
-
value.to_i
|
36
|
-
when /Float/i
|
37
|
-
value.to_f
|
38
|
-
else
|
39
|
-
value
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
16
|
+
module Crm
|
17
|
+
module Contacts
|
18
|
+
class Filter
|
19
|
+
attr_accessor :property_name
|
43
20
|
|
44
|
-
|
45
|
-
!value || allowable_values.include?(value)
|
46
|
-
end
|
47
|
-
end
|
21
|
+
attr_accessor :operator
|
48
22
|
|
49
|
-
|
50
|
-
def self.attribute_map
|
51
|
-
{
|
52
|
-
:'property_name' => :'propertyName',
|
53
|
-
:'operator' => :'operator',
|
54
|
-
:'value' => :'value'
|
55
|
-
}
|
56
|
-
end
|
23
|
+
attr_accessor :value
|
57
24
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
:'property_name' => :'String',
|
62
|
-
:'operator' => :'String',
|
63
|
-
:'value' => :'String'
|
64
|
-
}
|
65
|
-
end
|
25
|
+
class EnumAttributeValidator
|
26
|
+
attr_reader :datatype
|
27
|
+
attr_reader :allowable_values
|
66
28
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
29
|
+
def initialize(datatype, allowable_values)
|
30
|
+
@allowable_values = allowable_values.map do |value|
|
31
|
+
case datatype.to_s
|
32
|
+
when /Integer/i
|
33
|
+
value.to_i
|
34
|
+
when /Float/i
|
35
|
+
value.to_f
|
36
|
+
else
|
37
|
+
value
|
38
|
+
end
|
71
39
|
end
|
40
|
+
end
|
72
41
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Client::Crm::Contacts::Models::Filter` initialize method"
|
78
|
-
end
|
42
|
+
def valid?(value)
|
43
|
+
!value || allowable_values.include?(value)
|
44
|
+
end
|
45
|
+
end
|
79
46
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
+
def self.attribute_map
|
49
|
+
{
|
50
|
+
:'property_name' => :'propertyName',
|
51
|
+
:'operator' => :'operator',
|
52
|
+
:'value' => :'value'
|
53
|
+
}
|
54
|
+
end
|
87
55
|
|
88
|
-
|
89
|
-
|
90
|
-
|
56
|
+
# Attribute type mapping.
|
57
|
+
def self.openapi_types
|
58
|
+
{
|
59
|
+
:'property_name' => :'String',
|
60
|
+
:'operator' => :'String',
|
61
|
+
:'value' => :'String'
|
62
|
+
}
|
63
|
+
end
|
91
64
|
|
92
|
-
|
93
|
-
|
94
|
-
|
65
|
+
# List of attributes with nullable: true
|
66
|
+
def self.openapi_nullable
|
67
|
+
Set.new([
|
68
|
+
])
|
69
|
+
end
|
95
70
|
|
96
|
-
|
97
|
-
|
98
|
-
|
71
|
+
# Initializes the object
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
73
|
+
def initialize(attributes = {})
|
74
|
+
if (!attributes.is_a?(Hash))
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Contacts::Filter` initialize method"
|
76
|
+
end
|
77
|
+
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Contacts::Filter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
99
82
|
end
|
83
|
+
h[k.to_sym] = v
|
84
|
+
}
|
100
85
|
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
invalid_properties = Array.new
|
105
|
-
if @property_name.nil?
|
106
|
-
invalid_properties.push('invalid value for "property_name", property_name cannot be nil.')
|
107
|
-
end
|
86
|
+
if attributes.key?(:'property_name')
|
87
|
+
self.property_name = attributes[:'property_name']
|
88
|
+
end
|
108
89
|
|
109
|
-
|
110
|
-
|
111
|
-
|
90
|
+
if attributes.key?(:'operator')
|
91
|
+
self.operator = attributes[:'operator']
|
92
|
+
end
|
112
93
|
|
113
|
-
|
114
|
-
|
94
|
+
if attributes.key?(:'value')
|
95
|
+
self.value = attributes[:'value']
|
96
|
+
end
|
97
|
+
end
|
115
98
|
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
true
|
124
|
-
end
|
99
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
100
|
+
# @return Array for valid properties with the reasons
|
101
|
+
def list_invalid_properties
|
102
|
+
invalid_properties = Array.new
|
103
|
+
if @property_name.nil?
|
104
|
+
invalid_properties.push('invalid value for "property_name", property_name cannot be nil.')
|
105
|
+
end
|
125
106
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "ROLLING_DATE_RANGE", "TIME_UNIT_TO_DATE", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
|
130
|
-
unless validator.valid?(operator)
|
131
|
-
fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
|
132
|
-
end
|
133
|
-
@operator = operator
|
134
|
-
end
|
107
|
+
if @operator.nil?
|
108
|
+
invalid_properties.push('invalid value for "operator", operator cannot be nil.')
|
109
|
+
end
|
135
110
|
|
136
|
-
|
137
|
-
|
138
|
-
def ==(o)
|
139
|
-
return true if self.equal?(o)
|
140
|
-
self.class == o.class &&
|
141
|
-
property_name == o.property_name &&
|
142
|
-
operator == o.operator &&
|
143
|
-
value == o.value
|
144
|
-
end
|
111
|
+
invalid_properties
|
112
|
+
end
|
145
113
|
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
114
|
+
# Check to see if the all the properties in the model are valid
|
115
|
+
# @return true if the model is valid
|
116
|
+
def valid?
|
117
|
+
return false if @property_name.nil?
|
118
|
+
return false if @operator.nil?
|
119
|
+
operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "ROLLING_DATE_RANGE", "TIME_UNIT_TO_DATE", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
|
120
|
+
return false unless operator_validator.valid?(@operator)
|
121
|
+
true
|
122
|
+
end
|
151
123
|
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
124
|
+
# Custom attribute writer method checking allowed values (enum).
|
125
|
+
# @param [Object] operator Object to be assigned
|
126
|
+
def operator=(operator)
|
127
|
+
validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "ROLLING_DATE_RANGE", "TIME_UNIT_TO_DATE", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
|
128
|
+
unless validator.valid?(operator)
|
129
|
+
fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
|
130
|
+
end
|
131
|
+
@operator = operator
|
132
|
+
end
|
157
133
|
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
134
|
+
# Checks equality by comparing each attribute.
|
135
|
+
# @param [Object] Object to be compared
|
136
|
+
def ==(o)
|
137
|
+
return true if self.equal?(o)
|
138
|
+
self.class == o.class &&
|
139
|
+
property_name == o.property_name &&
|
140
|
+
operator == o.operator &&
|
141
|
+
value == o.value
|
142
|
+
end
|
164
143
|
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
144
|
+
# @see the `==` method
|
145
|
+
# @param [Object] Object to be compared
|
146
|
+
def eql?(o)
|
147
|
+
self == o
|
148
|
+
end
|
149
|
+
|
150
|
+
# Calculates hash code according to all attributes.
|
151
|
+
# @return [Integer] Hash code
|
152
|
+
def hash
|
153
|
+
[property_name, operator, value].hash
|
154
|
+
end
|
155
|
+
|
156
|
+
# Builds the object from hash
|
157
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
158
|
+
# @return [Object] Returns the model itself
|
159
|
+
def self.build_from_hash(attributes)
|
160
|
+
new.build_from_hash(attributes)
|
161
|
+
end
|
162
|
+
|
163
|
+
# Builds the object from hash
|
164
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
165
|
+
# @return [Object] Returns the model itself
|
166
|
+
def build_from_hash(attributes)
|
167
|
+
return nil unless attributes.is_a?(Hash)
|
168
|
+
self.class.openapi_types.each_pair do |key, type|
|
169
|
+
if type =~ /\AArray<(.*)>/i
|
170
|
+
# check to ensure the input is an array given that the attribute
|
171
|
+
# is documented as an array but the input is not
|
172
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
173
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
180
174
|
end
|
175
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
176
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
177
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
178
|
+
end
|
181
179
|
|
182
|
-
|
183
|
-
|
180
|
+
self
|
181
|
+
end
|
184
182
|
|
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
|
-
end
|
220
|
-
end
|
221
|
-
else # model
|
222
|
-
Hubspot::Client::Crm::Contacts::Models.const_get(type).build_from_hash(value)
|
183
|
+
# Deserializes the data based on type
|
184
|
+
# @param string type Data type
|
185
|
+
# @param string value Value to be deserialized
|
186
|
+
# @return [Object] Deserialized data
|
187
|
+
def _deserialize(type, value)
|
188
|
+
case type.to_sym
|
189
|
+
when :DateTime
|
190
|
+
DateTime.parse(value)
|
191
|
+
when :Date
|
192
|
+
Date.parse(value)
|
193
|
+
when :String
|
194
|
+
value.to_s
|
195
|
+
when :Integer
|
196
|
+
value.to_i
|
197
|
+
when :Float
|
198
|
+
value.to_f
|
199
|
+
when :Boolean
|
200
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
201
|
+
true
|
202
|
+
else
|
203
|
+
false
|
204
|
+
end
|
205
|
+
when :Object
|
206
|
+
# generic object (usually a Hash), return directly
|
207
|
+
value
|
208
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
209
|
+
inner_type = Regexp.last_match[:inner_type]
|
210
|
+
value.map { |v| _deserialize(inner_type, v) }
|
211
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
212
|
+
k_type = Regexp.last_match[:k_type]
|
213
|
+
v_type = Regexp.last_match[:v_type]
|
214
|
+
{}.tap do |hash|
|
215
|
+
value.each do |k, v|
|
216
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
223
217
|
end
|
224
218
|
end
|
219
|
+
else # model
|
220
|
+
Hubspot::Crm::Contacts.const_get(type).build_from_hash(value)
|
221
|
+
end
|
222
|
+
end
|
225
223
|
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
224
|
+
# Returns the string representation of the object
|
225
|
+
# @return [String] String presentation of the object
|
226
|
+
def to_s
|
227
|
+
to_hash.to_s
|
228
|
+
end
|
231
229
|
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
230
|
+
# to_body is an alias to to_hash (backward compatibility)
|
231
|
+
# @return [Hash] Returns the object in the form of hash
|
232
|
+
def to_body
|
233
|
+
to_hash
|
234
|
+
end
|
237
235
|
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
end
|
248
|
-
|
249
|
-
hash[param] = _to_hash(value)
|
250
|
-
end
|
251
|
-
hash
|
236
|
+
# Returns the object in the form of hash
|
237
|
+
# @return [Hash] Returns the object in the form of hash
|
238
|
+
def to_hash
|
239
|
+
hash = {}
|
240
|
+
self.class.attribute_map.each_pair do |attr, param|
|
241
|
+
value = self.send(attr)
|
242
|
+
if value.nil?
|
243
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
244
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
252
245
|
end
|
246
|
+
|
247
|
+
hash[param] = _to_hash(value)
|
248
|
+
end
|
249
|
+
hash
|
250
|
+
end
|
253
251
|
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
end
|
265
|
-
elsif value.respond_to? :to_hash
|
266
|
-
value.to_hash
|
267
|
-
else
|
268
|
-
value
|
269
|
-
end
|
252
|
+
# Outputs non-array value in the form of hash
|
253
|
+
# For object, use to_hash. Otherwise, just return the value
|
254
|
+
# @param [Object] value Any valid value
|
255
|
+
# @return [Hash] Returns the value in the form of hash
|
256
|
+
def _to_hash(value)
|
257
|
+
if value.is_a?(Array)
|
258
|
+
value.compact.map { |v| _to_hash(v) }
|
259
|
+
elsif value.is_a?(Hash)
|
260
|
+
{}.tap do |hash|
|
261
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
270
262
|
end
|
263
|
+
elsif value.respond_to? :to_hash
|
264
|
+
value.to_hash
|
265
|
+
else
|
266
|
+
value
|
271
267
|
end
|
272
268
|
end
|
273
269
|
end
|