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
@@ -11,51 +11,49 @@ OpenAPI Generator version: 4.2.2
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module Hubspot
|
14
|
-
module
|
15
|
-
module
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
if arg.
|
27
|
-
|
28
|
-
super(arg[:message] || arg['message'])
|
29
|
-
else
|
30
|
-
super arg
|
31
|
-
end
|
32
|
-
|
33
|
-
arg.each do |k, v|
|
34
|
-
instance_variable_set "@#{k}", v
|
35
|
-
end
|
14
|
+
module Crm
|
15
|
+
module Objects
|
16
|
+
class ApiError < StandardError
|
17
|
+
attr_reader :code, :response_headers, :response_body
|
18
|
+
|
19
|
+
# Usage examples:
|
20
|
+
# ApiError.new
|
21
|
+
# ApiError.new("message")
|
22
|
+
# ApiError.new(:code => 500, :response_headers => {}, :response_body => "")
|
23
|
+
# ApiError.new(:code => 404, :message => "Not Found")
|
24
|
+
def initialize(arg = nil)
|
25
|
+
if arg.is_a? Hash
|
26
|
+
if arg.key?(:message) || arg.key?('message')
|
27
|
+
super(arg[:message] || arg['message'])
|
36
28
|
else
|
37
29
|
super arg
|
38
30
|
end
|
39
|
-
end
|
40
|
-
|
41
|
-
# Override to_s to display a friendly error message
|
42
|
-
def to_s
|
43
|
-
message
|
44
|
-
end
|
45
31
|
|
46
|
-
|
47
|
-
|
48
|
-
msg = "Error message: the server returns an error"
|
49
|
-
else
|
50
|
-
msg = @message
|
32
|
+
arg.each do |k, v|
|
33
|
+
instance_variable_set "@#{k}", v
|
51
34
|
end
|
35
|
+
else
|
36
|
+
super arg
|
37
|
+
end
|
38
|
+
end
|
52
39
|
|
53
|
-
|
54
|
-
|
55
|
-
|
40
|
+
# Override to_s to display a friendly error message
|
41
|
+
def to_s
|
42
|
+
message
|
43
|
+
end
|
56
44
|
|
57
|
-
|
45
|
+
def message
|
46
|
+
if @message.nil?
|
47
|
+
msg = "Error message: the server returns an error"
|
48
|
+
else
|
49
|
+
msg = @message
|
58
50
|
end
|
51
|
+
|
52
|
+
msg += "\nHTTP status code: #{code}" if code
|
53
|
+
msg += "\nResponse headers: #{response_headers}" if response_headers
|
54
|
+
msg += "\nResponse body: #{response_body}" if response_body
|
55
|
+
|
56
|
+
msg
|
59
57
|
end
|
60
58
|
end
|
61
59
|
end
|
@@ -11,248 +11,246 @@ OpenAPI Generator version: 4.2.2
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module Hubspot
|
14
|
-
module
|
15
|
-
module
|
16
|
-
|
17
|
-
|
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
|
-
end
|
14
|
+
module Crm
|
15
|
+
module Objects
|
16
|
+
class Configuration
|
17
|
+
# Defines url scheme
|
18
|
+
attr_accessor :scheme
|
19
|
+
|
20
|
+
# Defines url host
|
21
|
+
attr_accessor :host
|
22
|
+
|
23
|
+
# Defines url base path
|
24
|
+
attr_accessor :base_path
|
25
|
+
|
26
|
+
# Defines API keys used with API Key authentications.
|
27
|
+
#
|
28
|
+
# @return [Hash] key: parameter name, value: parameter value (API key)
|
29
|
+
#
|
30
|
+
# @example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string)
|
31
|
+
# config.api_key['api_key'] = 'xxx'
|
32
|
+
attr_accessor :api_key
|
33
|
+
|
34
|
+
# Defines API key prefixes used with API Key authentications.
|
35
|
+
#
|
36
|
+
# @return [Hash] key: parameter name, value: API key prefix
|
37
|
+
#
|
38
|
+
# @example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers)
|
39
|
+
# config.api_key_prefix['api_key'] = 'Token'
|
40
|
+
attr_accessor :api_key_prefix
|
41
|
+
|
42
|
+
# Defines the username used with HTTP basic authentication.
|
43
|
+
#
|
44
|
+
# @return [String]
|
45
|
+
attr_accessor :username
|
46
|
+
|
47
|
+
# Defines the password used with HTTP basic authentication.
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
attr_accessor :password
|
51
|
+
|
52
|
+
# Defines the access token (Bearer) used with OAuth2.
|
53
|
+
attr_accessor :access_token
|
54
|
+
|
55
|
+
# Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
|
56
|
+
# details will be logged with `logger.debug` (see the `logger` attribute).
|
57
|
+
# Default to false.
|
58
|
+
#
|
59
|
+
# @return [true, false]
|
60
|
+
attr_accessor :debugging
|
61
|
+
|
62
|
+
# Defines the logger used for debugging.
|
63
|
+
# Default to `Rails.logger` (when in Rails) or logging to STDOUT.
|
64
|
+
#
|
65
|
+
# @return [#debug]
|
66
|
+
attr_accessor :logger
|
67
|
+
|
68
|
+
# Defines the temporary folder to store downloaded files
|
69
|
+
# (for API endpoints that have file response).
|
70
|
+
# Default to use `Tempfile`.
|
71
|
+
#
|
72
|
+
# @return [String]
|
73
|
+
attr_accessor :temp_folder_path
|
74
|
+
|
75
|
+
# The time limit for HTTP request in seconds.
|
76
|
+
# Default to 0 (never times out).
|
77
|
+
attr_accessor :timeout
|
78
|
+
|
79
|
+
# Set this to false to skip client side validation in the operation.
|
80
|
+
# Default to true.
|
81
|
+
# @return [true, false]
|
82
|
+
attr_accessor :client_side_validation
|
83
|
+
|
84
|
+
### TLS/SSL setting
|
85
|
+
# Set this to false to skip verifying SSL certificate when calling API from https server.
|
86
|
+
# Default to true.
|
87
|
+
#
|
88
|
+
# @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
|
89
|
+
#
|
90
|
+
# @return [true, false]
|
91
|
+
attr_accessor :ssl_verify
|
92
|
+
|
93
|
+
### TLS/SSL setting
|
94
|
+
# Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html)
|
95
|
+
#
|
96
|
+
# @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
|
97
|
+
#
|
98
|
+
attr_accessor :ssl_verify_mode
|
99
|
+
|
100
|
+
### TLS/SSL setting
|
101
|
+
# Set this to customize the certificate file to verify the peer.
|
102
|
+
#
|
103
|
+
# @return [String] the path to the certificate file
|
104
|
+
attr_accessor :ssl_ca_file
|
105
|
+
|
106
|
+
### TLS/SSL setting
|
107
|
+
# Client certificate file (for client certificate)
|
108
|
+
attr_accessor :ssl_client_cert
|
109
|
+
|
110
|
+
### TLS/SSL setting
|
111
|
+
# Client private key file (for client certificate)
|
112
|
+
attr_accessor :ssl_client_key
|
113
|
+
|
114
|
+
# Set this to customize parameters encoding of array parameter with multi collectionFormat.
|
115
|
+
# Default to nil.
|
116
|
+
#
|
117
|
+
# @see The params_encoding option of Ethon. Related source code:
|
118
|
+
# https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96
|
119
|
+
attr_accessor :params_encoding
|
120
|
+
|
121
|
+
attr_accessor :inject_format
|
122
|
+
|
123
|
+
attr_accessor :force_ending_format
|
124
|
+
|
125
|
+
attr_accessor :error_handler
|
126
|
+
|
127
|
+
def initialize
|
128
|
+
@scheme = 'https'
|
129
|
+
@host = 'api.hubapi.com'
|
130
|
+
@base_path = ''
|
131
|
+
@api_key = {}
|
132
|
+
@api_key_prefix = {}
|
133
|
+
@timeout = 0
|
134
|
+
@client_side_validation = true
|
135
|
+
@ssl_verify = true
|
136
|
+
@ssl_verify_mode = nil
|
137
|
+
@ssl_ca_file = nil
|
138
|
+
@ssl_client_cert = nil
|
139
|
+
@ssl_client_key = nil
|
140
|
+
@debugging = false
|
141
|
+
@inject_format = false
|
142
|
+
@force_ending_format = false
|
143
|
+
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
144
|
+
# error_handler params: { 'status_code': { max_retries: ..., seconds_delay: ... }, ... }
|
145
|
+
@error_handler = {}
|
146
|
+
|
147
|
+
yield(self) if block_given?
|
148
|
+
end
|
150
149
|
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
150
|
+
# The default Configuration object.
|
151
|
+
def self.default
|
152
|
+
@@default ||= Configuration.new
|
153
|
+
end
|
155
154
|
|
156
|
-
|
157
|
-
|
158
|
-
|
155
|
+
def configure
|
156
|
+
yield(self) if block_given?
|
157
|
+
end
|
159
158
|
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
159
|
+
def scheme=(scheme)
|
160
|
+
# remove :// from scheme
|
161
|
+
@scheme = scheme.sub(/:\/\//, '')
|
162
|
+
end
|
164
163
|
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
164
|
+
def host=(host)
|
165
|
+
# remove http(s):// and anything after a slash
|
166
|
+
@host = host.sub(/https?:\/\//, '').split('/').first
|
167
|
+
end
|
169
168
|
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
169
|
+
def base_path=(base_path)
|
170
|
+
# Add leading and trailing slashes to base_path
|
171
|
+
@base_path = "/#{base_path}".gsub(/\/+/, '/')
|
172
|
+
@base_path = '' if @base_path == '/'
|
173
|
+
end
|
175
174
|
|
176
|
-
|
177
|
-
|
178
|
-
|
175
|
+
def base_url
|
176
|
+
"#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
|
177
|
+
end
|
179
178
|
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
end
|
179
|
+
# Gets API key (with prefix if set).
|
180
|
+
# @param [String] param_name the parameter name of API key auth
|
181
|
+
def api_key_with_prefix(param_name)
|
182
|
+
if @api_key_prefix[param_name]
|
183
|
+
"#{@api_key_prefix[param_name]} #{@api_key[param_name]}"
|
184
|
+
else
|
185
|
+
@api_key[param_name]
|
188
186
|
end
|
187
|
+
end
|
189
188
|
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
189
|
+
# Gets Basic Auth token string
|
190
|
+
def basic_auth_token
|
191
|
+
'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n")
|
192
|
+
end
|
193
|
+
|
194
|
+
# Returns Auth Settings hash for api client.
|
195
|
+
def auth_settings
|
196
|
+
{
|
197
|
+
'hapikey' =>
|
198
|
+
{
|
199
|
+
type: 'api_key',
|
200
|
+
in: 'query',
|
201
|
+
key: 'hapikey',
|
202
|
+
value: api_key_with_prefix('hapikey')
|
203
|
+
},
|
204
|
+
'oauth2' =>
|
205
|
+
{
|
206
|
+
type: 'oauth2',
|
207
|
+
in: 'header',
|
208
|
+
key: 'Authorization',
|
209
|
+
value: "Bearer #{access_token}"
|
210
|
+
},
|
211
|
+
}
|
212
|
+
end
|
194
213
|
|
195
|
-
|
196
|
-
|
214
|
+
# Returns an array of Server setting
|
215
|
+
def server_settings
|
216
|
+
[
|
197
217
|
{
|
198
|
-
|
199
|
-
|
200
|
-
type: 'api_key',
|
201
|
-
in: 'query',
|
202
|
-
key: 'hapikey',
|
203
|
-
value: api_key_with_prefix('hapikey')
|
204
|
-
},
|
205
|
-
'oauth2' =>
|
206
|
-
{
|
207
|
-
type: 'oauth2',
|
208
|
-
in: 'header',
|
209
|
-
key: 'Authorization',
|
210
|
-
value: "Bearer #{access_token}"
|
211
|
-
},
|
218
|
+
url: "https://api.hubapi.com/crm/v3/objects",
|
219
|
+
description: "No description provided",
|
212
220
|
}
|
213
|
-
|
221
|
+
]
|
222
|
+
end
|
214
223
|
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
}
|
222
|
-
]
|
223
|
-
end
|
224
|
+
# Returns URL based on server settings
|
225
|
+
#
|
226
|
+
# @param index array index of the server settings
|
227
|
+
# @param variables hash of variable and the corresponding value
|
228
|
+
def server_url(index, variables = {})
|
229
|
+
servers = server_settings
|
224
230
|
|
225
|
-
#
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
def server_url(index, variables = {})
|
230
|
-
servers = server_settings
|
231
|
+
# check array index out of bound
|
232
|
+
if (index < 0 || index >= servers.size)
|
233
|
+
fail ArgumentError, "Invalid index #{index} when selecting the server. Must be less than #{servers.size}"
|
234
|
+
end
|
231
235
|
|
232
|
-
|
233
|
-
|
234
|
-
fail ArgumentError, "Invalid index #{index} when selecting the server. Must be less than #{servers.size}"
|
235
|
-
end
|
236
|
+
server = servers[index]
|
237
|
+
url = server[:url]
|
236
238
|
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
if variables.key?(name)
|
243
|
-
if (server[:variables][name][:enum_values].include? variables[name])
|
244
|
-
url.gsub! "{" + name.to_s + "}", variables[name]
|
245
|
-
else
|
246
|
-
fail ArgumentError, "The variable `#{name}` in the server URL has invalid value #{variables[name]}. Must be #{server[:variables][name][:enum_values]}."
|
247
|
-
end
|
239
|
+
# go through variable and assign a value
|
240
|
+
server[:variables].each do |name, variable|
|
241
|
+
if variables.key?(name)
|
242
|
+
if (server[:variables][name][:enum_values].include? variables[name])
|
243
|
+
url.gsub! "{" + name.to_s + "}", variables[name]
|
248
244
|
else
|
249
|
-
#
|
250
|
-
url.gsub! "{" + name.to_s + "}", server[:variables][name][:default_value]
|
245
|
+
fail ArgumentError, "The variable `#{name}` in the server URL has invalid value #{variables[name]}. Must be #{server[:variables][name][:enum_values]}."
|
251
246
|
end
|
247
|
+
else
|
248
|
+
# use default value
|
249
|
+
url.gsub! "{" + name.to_s + "}", server[:variables][name][:default_value]
|
252
250
|
end
|
253
|
-
|
254
|
-
url
|
255
251
|
end
|
252
|
+
|
253
|
+
url
|
256
254
|
end
|
257
255
|
end
|
258
256
|
end
|