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,206 +13,202 @@ OpenAPI Generator version: 4.2.2
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module Hubspot
|
16
|
-
module
|
17
|
-
module
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
}
|
28
|
-
end
|
16
|
+
module Crm
|
17
|
+
module Products
|
18
|
+
class SimplePublicObjectInput
|
19
|
+
attr_accessor :properties
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'properties' => :'properties'
|
25
|
+
}
|
26
|
+
end
|
29
27
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
28
|
+
# Attribute type mapping.
|
29
|
+
def self.openapi_types
|
30
|
+
{
|
31
|
+
:'properties' => :'Hash<String, String>'
|
32
|
+
}
|
33
|
+
end
|
36
34
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
35
|
+
# List of attributes with nullable: true
|
36
|
+
def self.openapi_nullable
|
37
|
+
Set.new([
|
38
|
+
])
|
39
|
+
end
|
42
40
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
41
|
+
# Initializes the object
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
+
def initialize(attributes = {})
|
44
|
+
if (!attributes.is_a?(Hash))
|
45
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Products::SimplePublicObjectInput` initialize method"
|
46
|
+
end
|
49
47
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
end
|
55
|
-
h[k.to_sym] = v
|
56
|
-
}
|
57
|
-
|
58
|
-
if attributes.key?(:'properties')
|
59
|
-
if (value = attributes[:'properties']).is_a?(Hash)
|
60
|
-
self.properties = value
|
61
|
-
end
|
62
|
-
end
|
48
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
49
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
50
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
51
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Products::SimplePublicObjectInput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
52
|
end
|
53
|
+
h[k.to_sym] = v
|
54
|
+
}
|
64
55
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
invalid_properties = Array.new
|
69
|
-
if @properties.nil?
|
70
|
-
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
71
|
-
end
|
72
|
-
|
73
|
-
invalid_properties
|
56
|
+
if attributes.key?(:'properties')
|
57
|
+
if (value = attributes[:'properties']).is_a?(Hash)
|
58
|
+
self.properties = value
|
74
59
|
end
|
60
|
+
end
|
61
|
+
end
|
75
62
|
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
63
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
64
|
+
# @return Array for valid properties with the reasons
|
65
|
+
def list_invalid_properties
|
66
|
+
invalid_properties = Array.new
|
67
|
+
if @properties.nil?
|
68
|
+
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
69
|
+
end
|
82
70
|
|
83
|
-
|
84
|
-
|
85
|
-
def ==(o)
|
86
|
-
return true if self.equal?(o)
|
87
|
-
self.class == o.class &&
|
88
|
-
properties == o.properties
|
89
|
-
end
|
71
|
+
invalid_properties
|
72
|
+
end
|
90
73
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
74
|
+
# Check to see if the all the properties in the model are valid
|
75
|
+
# @return true if the model is valid
|
76
|
+
def valid?
|
77
|
+
return false if @properties.nil?
|
78
|
+
true
|
79
|
+
end
|
96
80
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
81
|
+
# Checks equality by comparing each attribute.
|
82
|
+
# @param [Object] Object to be compared
|
83
|
+
def ==(o)
|
84
|
+
return true if self.equal?(o)
|
85
|
+
self.class == o.class &&
|
86
|
+
properties == o.properties
|
87
|
+
end
|
102
88
|
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
89
|
+
# @see the `==` method
|
90
|
+
# @param [Object] Object to be compared
|
91
|
+
def eql?(o)
|
92
|
+
self == o
|
93
|
+
end
|
94
|
+
|
95
|
+
# Calculates hash code according to all attributes.
|
96
|
+
# @return [Integer] Hash code
|
97
|
+
def hash
|
98
|
+
[properties].hash
|
99
|
+
end
|
100
|
+
|
101
|
+
# Builds the object from hash
|
102
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
+
# @return [Object] Returns the model itself
|
104
|
+
def self.build_from_hash(attributes)
|
105
|
+
new.build_from_hash(attributes)
|
106
|
+
end
|
109
107
|
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
end
|
122
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
123
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
124
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
108
|
+
# Builds the object from hash
|
109
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
110
|
+
# @return [Object] Returns the model itself
|
111
|
+
def build_from_hash(attributes)
|
112
|
+
return nil unless attributes.is_a?(Hash)
|
113
|
+
self.class.openapi_types.each_pair do |key, type|
|
114
|
+
if type =~ /\AArray<(.*)>/i
|
115
|
+
# check to ensure the input is an array given that the attribute
|
116
|
+
# is documented as an array but the input is not
|
117
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
118
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
125
119
|
end
|
120
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
121
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
122
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
123
|
+
end
|
126
124
|
|
127
|
-
|
128
|
-
|
125
|
+
self
|
126
|
+
end
|
129
127
|
|
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
|
-
end
|
165
|
-
end
|
166
|
-
else # model
|
167
|
-
Hubspot::Client::Crm::Products::Models.const_get(type).build_from_hash(value)
|
128
|
+
# Deserializes the data based on type
|
129
|
+
# @param string type Data type
|
130
|
+
# @param string value Value to be deserialized
|
131
|
+
# @return [Object] Deserialized data
|
132
|
+
def _deserialize(type, value)
|
133
|
+
case type.to_sym
|
134
|
+
when :DateTime
|
135
|
+
DateTime.parse(value)
|
136
|
+
when :Date
|
137
|
+
Date.parse(value)
|
138
|
+
when :String
|
139
|
+
value.to_s
|
140
|
+
when :Integer
|
141
|
+
value.to_i
|
142
|
+
when :Float
|
143
|
+
value.to_f
|
144
|
+
when :Boolean
|
145
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
146
|
+
true
|
147
|
+
else
|
148
|
+
false
|
149
|
+
end
|
150
|
+
when :Object
|
151
|
+
# generic object (usually a Hash), return directly
|
152
|
+
value
|
153
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
154
|
+
inner_type = Regexp.last_match[:inner_type]
|
155
|
+
value.map { |v| _deserialize(inner_type, v) }
|
156
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
157
|
+
k_type = Regexp.last_match[:k_type]
|
158
|
+
v_type = Regexp.last_match[:v_type]
|
159
|
+
{}.tap do |hash|
|
160
|
+
value.each do |k, v|
|
161
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
168
162
|
end
|
169
163
|
end
|
164
|
+
else # model
|
165
|
+
Hubspot::Crm::Products.const_get(type).build_from_hash(value)
|
166
|
+
end
|
167
|
+
end
|
170
168
|
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
169
|
+
# Returns the string representation of the object
|
170
|
+
# @return [String] String presentation of the object
|
171
|
+
def to_s
|
172
|
+
to_hash.to_s
|
173
|
+
end
|
176
174
|
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
175
|
+
# to_body is an alias to to_hash (backward compatibility)
|
176
|
+
# @return [Hash] Returns the object in the form of hash
|
177
|
+
def to_body
|
178
|
+
to_hash
|
179
|
+
end
|
182
180
|
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
181
|
+
# Returns the object in the form of hash
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_hash
|
184
|
+
hash = {}
|
185
|
+
self.class.attribute_map.each_pair do |attr, param|
|
186
|
+
value = self.send(attr)
|
187
|
+
if value.nil?
|
188
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
189
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
190
|
+
end
|
191
|
+
|
192
|
+
hash[param] = _to_hash(value)
|
193
|
+
end
|
194
|
+
hash
|
195
|
+
end
|
198
196
|
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
end
|
215
|
-
end
|
197
|
+
# Outputs non-array value in the form of hash
|
198
|
+
# For object, use to_hash. Otherwise, just return the value
|
199
|
+
# @param [Object] value Any valid value
|
200
|
+
# @return [Hash] Returns the value in the form of hash
|
201
|
+
def _to_hash(value)
|
202
|
+
if value.is_a?(Array)
|
203
|
+
value.compact.map { |v| _to_hash(v) }
|
204
|
+
elsif value.is_a?(Hash)
|
205
|
+
{}.tap do |hash|
|
206
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
207
|
+
end
|
208
|
+
elsif value.respond_to? :to_hash
|
209
|
+
value.to_hash
|
210
|
+
else
|
211
|
+
value
|
216
212
|
end
|
217
213
|
end
|
218
214
|
end
|
@@ -13,214 +13,210 @@ OpenAPI Generator version: 4.2.2
|
|
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
|
-
if @api_client.config.debugging
|
219
|
-
@api_client.config.logger.debug "API called: BatchApi#read_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
220
|
-
end
|
221
|
-
return data, status_code, headers
|
222
|
-
end
|
16
|
+
module Crm
|
17
|
+
module Properties
|
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 properties
|
25
|
+
# Archive a provided list of properties. This method will return a 204 No Content response on success regardless of the initial state of the property (e.g. active, already archived, non-existent).
|
26
|
+
# @param object_type [String]
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @option opts [BatchInputPropertyName] :batch_input_property_name
|
29
|
+
# @return [nil]
|
30
|
+
def archive_batch(object_type, opts = {})
|
31
|
+
archive_batch_with_http_info(object_type, opts)
|
32
|
+
nil
|
33
|
+
end
|
34
|
+
|
35
|
+
# Archive a batch of properties
|
36
|
+
# Archive a provided list of properties. This method will return a 204 No Content response on success regardless of the initial state of the property (e.g. active, already archived, non-existent).
|
37
|
+
# @param object_type [String]
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [BatchInputPropertyName] :batch_input_property_name
|
40
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
41
|
+
def archive_batch_with_http_info(object_type, opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.archive_batch ...'
|
44
|
+
end
|
45
|
+
# verify the required parameter 'object_type' is set
|
46
|
+
if @api_client.config.client_side_validation && object_type.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'object_type' when calling BatchApi.archive_batch"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '/crm/v3/properties/{objectType}/batch/archive'.sub('{' + 'objectType' + '}', CGI.escape(object_type.to_s).gsub('%2F', '/'))
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = opts[:query_params] || {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = opts[:header_params] || {}
|
57
|
+
# HTTP header 'Accept' (if needed)
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
59
|
+
# HTTP header 'Content-Type'
|
60
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
61
|
+
|
62
|
+
# form parameters
|
63
|
+
form_params = opts[:form_params] || {}
|
64
|
+
|
65
|
+
# http body (model)
|
66
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'batch_input_property_name'])
|
67
|
+
|
68
|
+
# return_type
|
69
|
+
return_type = opts[:return_type]
|
70
|
+
|
71
|
+
# auth_names
|
72
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
73
|
+
|
74
|
+
new_options = opts.merge(
|
75
|
+
:header_params => header_params,
|
76
|
+
:query_params => query_params,
|
77
|
+
:form_params => form_params,
|
78
|
+
:body => post_body,
|
79
|
+
:auth_names => auth_names,
|
80
|
+
:return_type => return_type
|
81
|
+
)
|
82
|
+
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug "API called: BatchApi#archive_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
89
|
+
|
90
|
+
# Create a batch of properties
|
91
|
+
# Create a batch of properties using the same rules as when creating an individual property.
|
92
|
+
# @param object_type [String]
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @option opts [BatchInputPropertyCreate] :batch_input_property_create
|
95
|
+
# @return [BatchResponseProperty]
|
96
|
+
def create_batch(object_type, opts = {})
|
97
|
+
data, _status_code, _headers = create_batch_with_http_info(object_type, opts)
|
98
|
+
data
|
99
|
+
end
|
100
|
+
|
101
|
+
# Create a batch of properties
|
102
|
+
# Create a batch of properties using the same rules as when creating an individual property.
|
103
|
+
# @param object_type [String]
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @option opts [BatchInputPropertyCreate] :batch_input_property_create
|
106
|
+
# @return [Array<(BatchResponseProperty, Integer, Hash)>] BatchResponseProperty data, response status code and response headers
|
107
|
+
def create_batch_with_http_info(object_type, opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.create_batch ...'
|
110
|
+
end
|
111
|
+
# verify the required parameter 'object_type' is set
|
112
|
+
if @api_client.config.client_side_validation && object_type.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'object_type' when calling BatchApi.create_batch"
|
114
|
+
end
|
115
|
+
# resource path
|
116
|
+
local_var_path = '/crm/v3/properties/{objectType}/batch/create'.sub('{' + 'objectType' + '}', CGI.escape(object_type.to_s).gsub('%2F', '/'))
|
117
|
+
|
118
|
+
# query parameters
|
119
|
+
query_params = opts[:query_params] || {}
|
120
|
+
|
121
|
+
# header parameters
|
122
|
+
header_params = opts[:header_params] || {}
|
123
|
+
# HTTP header 'Accept' (if needed)
|
124
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
125
|
+
# HTTP header 'Content-Type'
|
126
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
127
|
+
|
128
|
+
# form parameters
|
129
|
+
form_params = opts[:form_params] || {}
|
130
|
+
|
131
|
+
# http body (model)
|
132
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'batch_input_property_create'])
|
133
|
+
|
134
|
+
# return_type
|
135
|
+
return_type = opts[:return_type] || 'BatchResponseProperty'
|
136
|
+
|
137
|
+
# auth_names
|
138
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
139
|
+
|
140
|
+
new_options = opts.merge(
|
141
|
+
:header_params => header_params,
|
142
|
+
:query_params => query_params,
|
143
|
+
:form_params => form_params,
|
144
|
+
:body => post_body,
|
145
|
+
:auth_names => auth_names,
|
146
|
+
:return_type => return_type
|
147
|
+
)
|
148
|
+
|
149
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
150
|
+
if @api_client.config.debugging
|
151
|
+
@api_client.config.logger.debug "API called: BatchApi#create_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
152
|
+
end
|
153
|
+
return data, status_code, headers
|
154
|
+
end
|
155
|
+
|
156
|
+
# Read a batch of properties
|
157
|
+
# Read a provided list of properties.
|
158
|
+
# @param object_type [String]
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @option opts [BatchReadInputPropertyName] :batch_read_input_property_name
|
161
|
+
# @return [BatchResponseProperty]
|
162
|
+
def read_batch(object_type, opts = {})
|
163
|
+
data, _status_code, _headers = read_batch_with_http_info(object_type, opts)
|
164
|
+
data
|
165
|
+
end
|
166
|
+
|
167
|
+
# Read a batch of properties
|
168
|
+
# Read a provided list of properties.
|
169
|
+
# @param object_type [String]
|
170
|
+
# @param [Hash] opts the optional parameters
|
171
|
+
# @option opts [BatchReadInputPropertyName] :batch_read_input_property_name
|
172
|
+
# @return [Array<(BatchResponseProperty, Integer, Hash)>] BatchResponseProperty data, response status code and response headers
|
173
|
+
def read_batch_with_http_info(object_type, opts = {})
|
174
|
+
if @api_client.config.debugging
|
175
|
+
@api_client.config.logger.debug 'Calling API: BatchApi.read_batch ...'
|
176
|
+
end
|
177
|
+
# verify the required parameter 'object_type' is set
|
178
|
+
if @api_client.config.client_side_validation && object_type.nil?
|
179
|
+
fail ArgumentError, "Missing the required parameter 'object_type' when calling BatchApi.read_batch"
|
180
|
+
end
|
181
|
+
# resource path
|
182
|
+
local_var_path = '/crm/v3/properties/{objectType}/batch/read'.sub('{' + 'objectType' + '}', CGI.escape(object_type.to_s).gsub('%2F', '/'))
|
183
|
+
|
184
|
+
# query parameters
|
185
|
+
query_params = opts[:query_params] || {}
|
186
|
+
|
187
|
+
# header parameters
|
188
|
+
header_params = opts[:header_params] || {}
|
189
|
+
# HTTP header 'Accept' (if needed)
|
190
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
191
|
+
# HTTP header 'Content-Type'
|
192
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
193
|
+
|
194
|
+
# form parameters
|
195
|
+
form_params = opts[:form_params] || {}
|
196
|
+
|
197
|
+
# http body (model)
|
198
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'batch_read_input_property_name'])
|
199
|
+
|
200
|
+
# return_type
|
201
|
+
return_type = opts[:return_type] || 'BatchResponseProperty'
|
202
|
+
|
203
|
+
# auth_names
|
204
|
+
auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
|
205
|
+
|
206
|
+
new_options = opts.merge(
|
207
|
+
:header_params => header_params,
|
208
|
+
:query_params => query_params,
|
209
|
+
:form_params => form_params,
|
210
|
+
:body => post_body,
|
211
|
+
:auth_names => auth_names,
|
212
|
+
:return_type => return_type
|
213
|
+
)
|
214
|
+
|
215
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
216
|
+
if @api_client.config.debugging
|
217
|
+
@api_client.config.logger.debug "API called: BatchApi#read_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
223
218
|
end
|
219
|
+
return data, status_code, headers
|
224
220
|
end
|
225
221
|
end
|
226
222
|
end
|