sdksio-verizon-apis-sdk 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (528) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +87 -85
  3. data/lib/verizon/client.rb +10 -4
  4. data/lib/verizon/controllers/account_devices_controller.rb +14 -14
  5. data/lib/verizon/controllers/account_requests_controller.rb +7 -7
  6. data/lib/verizon/controllers/account_subscriptions_controller.rb +25 -25
  7. data/lib/verizon/controllers/accounts_controller.rb +21 -21
  8. data/lib/verizon/controllers/anomaly_settings_controller.rb +21 -21
  9. data/lib/verizon/controllers/anomaly_triggers_controller.rb +109 -109
  10. data/lib/verizon/controllers/anomaly_triggers_v2_controller.rb +21 -21
  11. data/lib/verizon/controllers/base_controller.rb +9 -9
  12. data/lib/verizon/controllers/billing_controller.rb +28 -28
  13. data/lib/verizon/controllers/campaigns_v2_controller.rb +49 -49
  14. data/lib/verizon/controllers/campaigns_v3_controller.rb +47 -47
  15. data/lib/verizon/controllers/client_logging_controller.rb +43 -43
  16. data/lib/verizon/controllers/cloud_connector_devices_controller.rb +23 -23
  17. data/lib/verizon/controllers/cloud_connector_subscriptions_controller.rb +12 -12
  18. data/lib/verizon/controllers/configuration_files_controller.rb +14 -14
  19. data/lib/verizon/controllers/connectivity_callbacks_controller.rb +22 -22
  20. data/lib/verizon/controllers/device_actions_controller.rb +115 -22
  21. data/lib/verizon/controllers/device_diagnostics_controller.rb +14 -14
  22. data/lib/verizon/controllers/device_groups_controller.rb +36 -36
  23. data/lib/verizon/controllers/device_location_callbacks_controller.rb +60 -34
  24. data/lib/verizon/controllers/device_management_controller.rb +207 -207
  25. data/lib/verizon/controllers/device_monitoring_controller.rb +14 -14
  26. data/lib/verizon/controllers/device_profile_management_controller.rb +28 -28
  27. data/lib/verizon/controllers/device_reports_controller.rb +66 -66
  28. data/lib/verizon/controllers/device_service_management_controller.rb +44 -44
  29. data/lib/verizon/controllers/device_sms_messaging_controller.rb +28 -28
  30. data/lib/verizon/controllers/devices_location_subscriptions_controller.rb +17 -17
  31. data/lib/verizon/controllers/devices_locations_controller.rb +55 -82
  32. data/lib/verizon/controllers/diagnostics_callbacks_controller.rb +22 -22
  33. data/lib/verizon/controllers/diagnostics_factory_reset_controller.rb +7 -7
  34. data/lib/verizon/controllers/diagnostics_history_controller.rb +8 -8
  35. data/lib/verizon/controllers/diagnostics_observations_controller.rb +14 -14
  36. data/lib/verizon/controllers/diagnostics_settings_controller.rb +8 -8
  37. data/lib/verizon/controllers/diagnostics_subscriptions_controller.rb +7 -7
  38. data/lib/verizon/controllers/euicc_device_profile_management_controller.rb +35 -35
  39. data/lib/verizon/controllers/exclusions_controller.rb +101 -25
  40. data/lib/verizon/controllers/firmware_v1_controller.rb +48 -48
  41. data/lib/verizon/controllers/firmware_v3_controller.rb +22 -22
  42. data/lib/verizon/controllers/fixed_wireless_qualification_controller.rb +7 -7
  43. data/lib/verizon/controllers/global_reporting_controller.rb +59 -62
  44. data/lib/verizon/controllers/hyper_precise_location_callbacks_controller.rb +66 -66
  45. data/lib/verizon/controllers/m_5g_bi_device_actions_controller.rb +88 -0
  46. data/lib/verizon/controllers/m_5g_edge_platforms_controller.rb +26 -26
  47. data/lib/verizon/controllers/m_v2_triggers_controller.rb +14 -14
  48. data/lib/verizon/controllers/managing_esim_profiles_controller.rb +136 -42
  49. data/lib/verizon/controllers/oauth_authorization_controller.rb +10 -10
  50. data/lib/verizon/controllers/performance_metrics_controller.rb +22 -22
  51. data/lib/verizon/controllers/promotion_period_information_controller.rb +15 -15
  52. data/lib/verizon/controllers/{mec_controller.rb → pwn_controller.rb} +48 -49
  53. data/lib/verizon/controllers/retrieve_the_triggers_controller.rb +28 -28
  54. data/lib/verizon/controllers/server_logging_controller.rb +8 -8
  55. data/lib/verizon/controllers/service_endpoints_controller.rb +79 -79
  56. data/lib/verizon/controllers/service_plans_controller.rb +8 -8
  57. data/lib/verizon/controllers/service_profiles_controller.rb +65 -65
  58. data/lib/verizon/controllers/session_management_controller.rb +21 -21
  59. data/lib/verizon/controllers/sim_actions_controller.rb +94 -50
  60. data/lib/verizon/controllers/sim_secure_for_io_t_licenses_controller.rb +50 -50
  61. data/lib/verizon/controllers/sms_controller.rb +21 -21
  62. data/lib/verizon/controllers/software_management_callbacks_v1_controller.rb +22 -22
  63. data/lib/verizon/controllers/software_management_callbacks_v2_controller.rb +28 -28
  64. data/lib/verizon/controllers/software_management_callbacks_v3_controller.rb +28 -28
  65. data/lib/verizon/controllers/software_management_licenses_v1_controller.rb +35 -35
  66. data/lib/verizon/controllers/software_management_licenses_v2_controller.rb +42 -42
  67. data/lib/verizon/controllers/software_management_licenses_v3_controller.rb +21 -21
  68. data/lib/verizon/controllers/software_management_reports_v1_controller.rb +22 -22
  69. data/lib/verizon/controllers/software_management_reports_v2_controller.rb +37 -37
  70. data/lib/verizon/controllers/software_management_reports_v3_controller.rb +22 -22
  71. data/lib/verizon/controllers/software_management_subscriptions_v1_controller.rb +14 -14
  72. data/lib/verizon/controllers/software_management_subscriptions_v2_controller.rb +7 -7
  73. data/lib/verizon/controllers/software_management_subscriptions_v3_controller.rb +7 -7
  74. data/lib/verizon/controllers/targets_controller.rb +22 -21
  75. data/lib/verizon/controllers/thing_space_quality_of_service_api_actions_controller.rb +14 -14
  76. data/lib/verizon/controllers/update_triggers_controller.rb +7 -7
  77. data/lib/verizon/controllers/usage_trigger_management_controller.rb +21 -21
  78. data/lib/verizon/controllers/wireless_network_performance_controller.rb +37 -36
  79. data/lib/verizon/exceptions/connectivity_management_result_exception.rb +15 -15
  80. data/lib/verizon/exceptions/default_response_exception.rb +15 -15
  81. data/lib/verizon/exceptions/device_diagnostics_result_exception.rb +15 -15
  82. data/lib/verizon/exceptions/device_location_result_exception.rb +15 -15
  83. data/lib/verizon/exceptions/edge_discovery_result_exception.rb +15 -15
  84. data/lib/verizon/exceptions/edge_performance_result_exception.rb +15 -15
  85. data/lib/verizon/exceptions/esim_rest_error_response_exception.rb +15 -15
  86. data/lib/verizon/exceptions/fota_v1_result_exception.rb +15 -15
  87. data/lib/verizon/exceptions/fota_v2_result_exception.rb +15 -15
  88. data/lib/verizon/exceptions/fota_v3_result_exception.rb +15 -15
  89. data/lib/verizon/exceptions/gio_rest_error_response_exception.rb +15 -15
  90. data/lib/verizon/exceptions/hyper_precise_location_result_exception.rb +15 -20
  91. data/lib/verizon/exceptions/intelligence_result_exception.rb +15 -15
  92. data/lib/verizon/exceptions/m_5g_bi_rest_error_response_exception.rb +37 -0
  93. data/lib/verizon/exceptions/oauth_provider_exception.rb +15 -15
  94. data/lib/verizon/exceptions/ready_sim_rest_error_response_exception.rb +15 -15
  95. data/lib/verizon/exceptions/rest_error_response_exception.rb +15 -15
  96. data/lib/verizon/exceptions/rules_engine_rest_error_response_exception.rb +15 -15
  97. data/lib/verizon/exceptions/security_result_exception.rb +15 -15
  98. data/lib/verizon/exceptions/wnp_rest_error_response_exception.rb +15 -15
  99. data/lib/verizon/http/api_response.rb +10 -10
  100. data/lib/verizon/http/auth/thingspace_oauth.rb +56 -13
  101. data/lib/verizon/models/{request_body_for_usage1.rb → a_request_body_for_usage.rb} +4 -6
  102. data/lib/verizon/models/acceleration.rb +1 -3
  103. data/lib/verizon/models/account.rb +3 -7
  104. data/lib/verizon/models/account_consent_create.rb +59 -0
  105. data/lib/verizon/models/account_consent_update.rb +60 -0
  106. data/lib/verizon/models/account_details.rb +141 -0
  107. data/lib/verizon/models/account_device_list.rb +7 -8
  108. data/lib/verizon/models/account_device_list_request.rb +4 -11
  109. data/lib/verizon/models/account_device_list_result.rb +1 -2
  110. data/lib/verizon/models/account_group_share_individual.rb +1 -3
  111. data/lib/verizon/models/account_labels.rb +1 -2
  112. data/lib/verizon/models/account_lead.rb +1 -3
  113. data/lib/verizon/models/account_leads_result.rb +1 -2
  114. data/lib/verizon/models/account_license_device_list_item.rb +1 -2
  115. data/lib/verizon/models/account_license_info.rb +3 -6
  116. data/lib/verizon/models/account_service.rb +1 -3
  117. data/lib/verizon/models/activate_device_profile_request.rb +1 -3
  118. data/lib/verizon/models/add_devices_request.rb +2 -6
  119. data/lib/verizon/models/add_devices_result.rb +1 -2
  120. data/lib/verizon/models/address.rb +3 -10
  121. data/lib/verizon/models/address_item.rb +2 -7
  122. data/lib/verizon/models/aggregate_session_report.rb +1 -3
  123. data/lib/verizon/models/aggregate_session_report_request.rb +3 -8
  124. data/lib/verizon/models/aggregate_usage.rb +79 -0
  125. data/lib/verizon/models/aggregate_usage_error.rb +1 -3
  126. data/lib/verizon/models/aggregate_usage_item.rb +3 -15
  127. data/lib/verizon/models/aggregated_report_callback_result.rb +1 -2
  128. data/lib/verizon/models/anomaly_detection_request.rb +1 -2
  129. data/lib/verizon/models/anomaly_detection_settings.rb +1 -2
  130. data/lib/verizon/models/anomaly_trigger_request.rb +1 -2
  131. data/lib/verizon/models/anomaly_trigger_value.rb +3 -6
  132. data/lib/verizon/models/api_response_code.rb +1 -2
  133. data/lib/verizon/models/assign_license_request.rb +1 -3
  134. data/lib/verizon/models/associate_label_request.rb +1 -2
  135. data/lib/verizon/models/asynchronous_location_request_result.rb +1 -3
  136. data/lib/verizon/models/asynchronous_request_result.rb +1 -2
  137. data/lib/verizon/models/attribute_setting.rb +2 -6
  138. data/lib/verizon/models/bill_usage_request.rb +1 -3
  139. data/lib/verizon/models/billable_usage_report.rb +3 -6
  140. data/lib/verizon/models/billedusage_list_request.rb +1 -3
  141. data/lib/verizon/models/billing_cycle.rb +1 -2
  142. data/lib/verizon/models/bullseye_service_request.rb +1 -2
  143. data/lib/verizon/models/bullseye_service_result.rb +1 -2
  144. data/lib/verizon/models/callback_action_result.rb +1 -2
  145. data/lib/verizon/models/callback_created.rb +1 -3
  146. data/lib/verizon/models/callback_registered.rb +1 -2
  147. data/lib/verizon/models/callback_registration_request.rb +1 -3
  148. data/lib/verizon/models/callback_registration_result.rb +1 -2
  149. data/lib/verizon/models/campaign.rb +28 -12
  150. data/lib/verizon/models/campaign_firmware_upgrade.rb +24 -8
  151. data/lib/verizon/models/campaign_software.rb +6 -16
  152. data/lib/verizon/models/campaign_software_upgrade.rb +5 -12
  153. data/lib/verizon/models/carrier.rb +50 -0
  154. data/lib/verizon/models/carrier_actions_request.rb +2 -6
  155. data/lib/verizon/models/carrier_activate_request.rb +5 -12
  156. data/lib/verizon/models/carrier_deactivate_request.rb +3 -8
  157. data/lib/verizon/models/carrier_information.rb +1 -3
  158. data/lib/verizon/models/carrier_service_plan.rb +83 -0
  159. data/lib/verizon/models/change_configuration_request.rb +1 -2
  160. data/lib/verizon/models/change_configuration_response.rb +4 -12
  161. data/lib/verizon/models/change_device_id_request.rb +3 -8
  162. data/lib/verizon/models/change_plan.rb +1 -2
  163. data/lib/verizon/models/{change_pmec_device_i_paddress_request.rb → change_pwn_device_ipaddress_request.rb} +7 -8
  164. data/lib/verizon/models/{change_mec_device_ip_address_response.rb → change_pwn_device_ipaddress_response.rb} +3 -3
  165. data/lib/verizon/models/{change_pmec_device_profile_request.rb → change_pwn_device_profile_request.rb} +8 -10
  166. data/lib/verizon/models/{change_mec_device_profile_response.rb → change_pwn_device_profile_response.rb} +3 -3
  167. data/lib/verizon/models/{change_pmec_device_state_activate_request.rb → change_pwn_device_state_activate_request.rb} +8 -10
  168. data/lib/verizon/models/{change_pmec_device_i_paddress_bulk_request.rb → change_pwn_device_state_deactivate_request.rb} +7 -8
  169. data/lib/verizon/models/{change_mec_device_state_response.rb → change_pwn_device_state_response.rb} +3 -3
  170. data/lib/verizon/models/check_in_history_item.rb +2 -5
  171. data/lib/verizon/models/check_order_status_request.rb +1 -3
  172. data/lib/verizon/models/compute_resources_type.rb +1 -3
  173. data/lib/verizon/models/connection_event.rb +1 -2
  174. data/lib/verizon/models/connection_history_result.rb +1 -2
  175. data/lib/verizon/models/connectivity_management_callback.rb +2 -5
  176. data/lib/verizon/models/consent_delete_request.rb +1 -2
  177. data/lib/verizon/models/consent_request.rb +1 -3
  178. data/lib/verizon/models/consent_transaction_id.rb +60 -0
  179. data/lib/verizon/models/contact_info_update_request.rb +1 -2
  180. data/lib/verizon/models/coordinates.rb +1 -2
  181. data/lib/verizon/models/create_device_group_request.rb +2 -4
  182. data/lib/verizon/models/create_io_t_application_request.rb +4 -9
  183. data/lib/verizon/models/create_io_t_application_response.rb +1 -3
  184. data/lib/verizon/models/create_subscription_request.rb +4 -10
  185. data/lib/verizon/models/create_target_request.rb +4 -12
  186. data/lib/verizon/models/create_target_request_fields.rb +1 -2
  187. data/lib/verizon/models/create_trigger_request.rb +4 -9
  188. data/lib/verizon/models/create_trigger_request_options.rb +2 -5
  189. data/lib/verizon/models/create_trigger_v2_request.rb +3 -6
  190. data/lib/verizon/models/custom_fields.rb +1 -2
  191. data/lib/verizon/models/custom_fields_update_request.rb +3 -6
  192. data/lib/verizon/models/customer_name.rb +2 -5
  193. data/lib/verizon/models/daily_usage.rb +68 -0
  194. data/lib/verizon/models/daily_usage_history.rb +106 -0
  195. data/lib/verizon/models/daily_usage_item.rb +1 -3
  196. data/lib/verizon/models/daily_usage_response.rb +80 -0
  197. data/lib/verizon/models/data_percentage100_trigger_attribute.rb +1 -2
  198. data/lib/verizon/models/data_percentage50_trigger_attribute.rb +1 -2
  199. data/lib/verizon/models/data_percentage75_trigger_attribute.rb +1 -2
  200. data/lib/verizon/models/data_percentage90_trigger_attribute.rb +1 -2
  201. data/lib/verizon/models/data_trigger_request.rb +1 -3
  202. data/lib/verizon/models/date_filter.rb +1 -2
  203. data/lib/verizon/models/deactivate_device_profile_request.rb +2 -5
  204. data/lib/verizon/models/delete_devices_request.rb +1 -2
  205. data/lib/verizon/models/delete_devices_result.rb +1 -3
  206. data/lib/verizon/models/delete_service_profile_result.rb +1 -2
  207. data/lib/verizon/models/delete_subscription_request.rb +1 -2
  208. data/lib/verizon/models/delete_target_request.rb +1 -2
  209. data/lib/verizon/models/deregister_service_endpoint_result.rb +1 -2
  210. data/lib/verizon/models/device.rb +1 -2
  211. data/lib/verizon/models/device_activation_request.rb +1 -2
  212. data/lib/verizon/models/device_aggregate_usage_list_request.rb +2 -6
  213. data/lib/verizon/models/device_connection_list_request.rb +1 -3
  214. data/lib/verizon/models/device_cost_center_request.rb +3 -7
  215. data/lib/verizon/models/device_diagnostics_callback.rb +2 -5
  216. data/lib/verizon/models/device_extended_diagnostics_request.rb +1 -2
  217. data/lib/verizon/models/device_filter.rb +1 -3
  218. data/lib/verizon/models/device_filter_without_account.rb +1 -3
  219. data/lib/verizon/models/device_firmware_list.rb +1 -2
  220. data/lib/verizon/models/device_firmware_upgrade.rb +4 -10
  221. data/lib/verizon/models/device_firmware_version.rb +2 -5
  222. data/lib/verizon/models/device_firmware_version_update_result.rb +1 -2
  223. data/lib/verizon/models/device_group.rb +2 -4
  224. data/lib/verizon/models/device_group_devices_data.rb +1 -3
  225. data/lib/verizon/models/device_group_update_request.rb +2 -4
  226. data/lib/verizon/models/device_id.rb +1 -2
  227. data/lib/verizon/models/device_id2.rb +1 -2
  228. data/lib/verizon/models/device_id_search.rb +1 -3
  229. data/lib/verizon/models/{esi_msubrequest.rb → device_idarray.rb} +11 -22
  230. data/lib/verizon/models/device_identifier.rb +1 -3
  231. data/lib/verizon/models/device_info.rb +1 -3
  232. data/lib/verizon/models/device_labels.rb +1 -2
  233. data/lib/verizon/models/device_list2.rb +2 -2
  234. data/lib/verizon/models/{device_list7.rb → device_list_ip.rb} +11 -12
  235. data/lib/verizon/models/device_list_query_item.rb +3 -8
  236. data/lib/verizon/models/device_list_query_result.rb +2 -4
  237. data/lib/verizon/models/device_list_result.rb +1 -3
  238. data/lib/verizon/models/device_list_with_service_address.rb +69 -0
  239. data/lib/verizon/models/device_list_with_service_address1.rb +69 -0
  240. data/lib/verizon/models/device_location_callback.rb +1 -2
  241. data/lib/verizon/models/device_location_subscription.rb +1 -3
  242. data/lib/verizon/models/device_log.rb +2 -5
  243. data/lib/verizon/models/device_logging_status.rb +1 -2
  244. data/lib/verizon/models/device_mismatch_list_request.rb +1 -3
  245. data/lib/verizon/models/device_prl_list_request.rb +2 -5
  246. data/lib/verizon/models/device_profile_request.rb +1 -3
  247. data/lib/verizon/models/device_propertylocation.rb +1 -2
  248. data/lib/verizon/models/device_provisioning_history_list_request.rb +1 -3
  249. data/lib/verizon/models/device_provisioning_history_list_result.rb +1 -2
  250. data/lib/verizon/models/device_reset_request.rb +1 -3
  251. data/lib/verizon/models/device_service_information.rb +1 -3
  252. data/lib/verizon/models/device_service_request.rb +1 -2
  253. data/lib/verizon/models/device_software_upgrade.rb +2 -6
  254. data/lib/verizon/models/device_suspension_status_request.rb +1 -3
  255. data/lib/verizon/models/device_upgrade_history.rb +3 -9
  256. data/lib/verizon/models/device_upload_request.rb +2 -5
  257. data/lib/verizon/models/device_usage_list_request.rb +1 -4
  258. data/lib/verizon/models/device_usage_list_result.rb +1 -2
  259. data/lib/verizon/models/devices_consent_result.rb +2 -6
  260. data/lib/verizon/models/diagnostic_observation_setting.rb +1 -3
  261. data/lib/verizon/models/diagnostics_category.rb +1 -2
  262. data/lib/verizon/models/diagnostics_observation_result.rb +1 -3
  263. data/lib/verizon/models/diagnostics_subscription.rb +2 -6
  264. data/lib/verizon/models/download_time_window.rb +1 -2
  265. data/lib/verizon/models/enable_promo_exp1.rb +1 -2
  266. data/lib/verizon/models/engagement.rb +1 -3
  267. data/lib/verizon/models/esim_device_id.rb +1 -2
  268. data/lib/verizon/models/esim_device_list.rb +2 -2
  269. data/lib/verizon/models/esim_global_device_list.rb +103 -0
  270. data/lib/verizon/models/esim_profile_request.rb +2 -5
  271. data/lib/verizon/models/esim_profile_request2.rb +87 -0
  272. data/lib/verizon/models/esim_provhistory_request.rb +1 -3
  273. data/lib/verizon/models/extended_attribute.rb +60 -0
  274. data/lib/verizon/models/extended_attributes.rb +1 -2
  275. data/lib/verizon/models/fall_back.rb +69 -0
  276. data/lib/verizon/models/feature.rb +52 -0
  277. data/lib/verizon/models/find_device_by_property_response.rb +4 -13
  278. data/lib/verizon/models/firmware.rb +3 -8
  279. data/lib/verizon/models/firmware_campaign.rb +4 -12
  280. data/lib/verizon/models/firmware_package.rb +3 -8
  281. data/lib/verizon/models/firmware_upgrade.rb +2 -6
  282. data/lib/verizon/models/firmware_upgrade_change_request.rb +1 -2
  283. data/lib/verizon/models/firmware_upgrade_change_result.rb +1 -3
  284. data/lib/verizon/models/firmware_upgrade_device_list_item.rb +1 -3
  285. data/lib/verizon/models/firmware_upgrade_request.rb +13 -15
  286. data/lib/verizon/models/flow_info.rb +2 -4
  287. data/lib/verizon/models/fota_v1_callback_registration_request.rb +1 -4
  288. data/lib/verizon/models/fota_v1_callback_registration_result.rb +1 -2
  289. data/lib/verizon/models/fota_v2_subscription.rb +2 -4
  290. data/lib/verizon/models/fota_v3_subscription.rb +2 -4
  291. data/lib/verizon/models/get_account_device_consent.rb +71 -0
  292. data/lib/verizon/models/get_device_experience_score_bulk_request.rb +1 -2
  293. data/lib/verizon/models/get_device_experience_score_history_request.rb +1 -2
  294. data/lib/verizon/models/get_device_list_with_profiles_request.rb +2 -4
  295. data/lib/verizon/models/get_network_conditions_request.rb +1 -3
  296. data/lib/verizon/models/{get_mec_performance_consent_response.rb → get_pwn_performance_consent_response.rb} +4 -4
  297. data/lib/verizon/models/get_trigger_response.rb +6 -14
  298. data/lib/verizon/models/get_wireless_coverage_request.rb +2 -5
  299. data/lib/verizon/models/get_wireless_coverage_request_fwa.rb +2 -5
  300. data/lib/verizon/models/gio_deactivate_device_profile_request.rb +2 -5
  301. data/lib/verizon/models/gio_device_id.rb +1 -2
  302. data/lib/verizon/models/gio_profile_request.rb +1 -3
  303. data/lib/verizon/models/gio_sms_message.rb +1 -3
  304. data/lib/verizon/models/giosms_send_request.rb +3 -8
  305. data/lib/verizon/models/go_to_state_request.rb +12 -20
  306. data/lib/verizon/models/gpu.rb +2 -4
  307. data/lib/verizon/models/group_name.rb +50 -0
  308. data/lib/verizon/models/history.rb +1 -3
  309. data/lib/verizon/models/history_attribute_value.rb +1 -3
  310. data/lib/verizon/models/history_search_filter.rb +1 -3
  311. data/lib/verizon/models/history_search_limit_time.rb +1 -2
  312. data/lib/verizon/models/history_search_request.rb +1 -3
  313. data/lib/verizon/models/hyper_precise_location_callback.rb +1 -2
  314. data/lib/verizon/models/hyper_precise_location_fault.rb +1 -3
  315. data/lib/verizon/models/i_error_message.rb +2 -4
  316. data/lib/verizon/models/id.rb +1 -2
  317. data/lib/verizon/models/ip_pool.rb +1 -3
  318. data/lib/verizon/models/key_data_percentage50.rb +1 -2
  319. data/lib/verizon/models/keyschunk2.rb +4 -8
  320. data/lib/verizon/models/keysms_percentage50.rb +1 -2
  321. data/lib/verizon/models/kpi_info.rb +3 -8
  322. data/lib/verizon/models/kv_pair.rb +1 -2
  323. data/lib/verizon/models/label.rb +1 -2
  324. data/lib/verizon/models/license_device_id.rb +1 -2
  325. data/lib/verizon/models/license_device_list.rb +7 -8
  326. data/lib/verizon/models/list_all_service_endpoints_result.rb +1 -2
  327. data/lib/verizon/models/list_service_profiles_result.rb +1 -2
  328. data/lib/verizon/models/location.rb +1 -3
  329. data/lib/verizon/models/location_report.rb +2 -5
  330. data/lib/verizon/models/location_report_status.rb +1 -2
  331. data/lib/verizon/models/location_request.rb +1 -3
  332. data/lib/verizon/models/log_in_request.rb +1 -2
  333. data/lib/verizon/models/m_5g_bi_address.rb +115 -0
  334. data/lib/verizon/models/m_5g_bi_carrier_information.rb +50 -0
  335. data/lib/verizon/models/m_5g_bi_customer_name.rb +87 -0
  336. data/lib/verizon/models/m_5g_bi_request_response.rb +50 -0
  337. data/lib/verizon/models/m_5g_biaccount_nameobject.rb +202 -0
  338. data/lib/verizon/models/m_5g_biactivate_request.rb +112 -0
  339. data/lib/verizon/models/m_5g_biaddress_andcustomerinfo.rb +51 -0
  340. data/lib/verizon/models/m_5g_biaddress_andcustomerinfo2.rb +51 -0
  341. data/lib/verizon/models/{status.rb → m_5g_biattribute1.rb} +10 -10
  342. data/lib/verizon/models/m_5g_biattribute2.rb +59 -0
  343. data/lib/verizon/models/m_5g_bichange_request.rb +93 -0
  344. data/lib/verizon/models/m_5g_bidevice_detailsresponse.rb +68 -0
  345. data/lib/verizon/models/m_5g_bidevice_id.rb +50 -0
  346. data/lib/verizon/models/m_5g_bidevice_id1.rb +59 -0
  347. data/lib/verizon/models/m_5g_bidevice_idarray.rb +59 -0
  348. data/lib/verizon/models/m_5g_bikey_value1.rb +59 -0
  349. data/lib/verizon/models/m_5g_biprimary_placeofuse.rb +59 -0
  350. data/lib/verizon/models/managed_acc_added_list.rb +1 -2
  351. data/lib/verizon/models/managed_acc_provisioned_list.rb +1 -2
  352. data/lib/verizon/models/managed_account_cancel_request.rb +2 -4
  353. data/lib/verizon/models/managed_account_cancel_response.rb +2 -5
  354. data/lib/verizon/models/managed_accounts_add_request.rb +2 -4
  355. data/lib/verizon/models/managed_accounts_add_response.rb +1 -2
  356. data/lib/verizon/models/managed_accounts_get_all_response.rb +1 -2
  357. data/lib/verizon/models/managed_accounts_provision_request.rb +2 -4
  358. data/lib/verizon/models/managed_accounts_provision_response.rb +2 -5
  359. data/lib/verizon/models/mec_performance_metrics.rb +1 -3
  360. data/lib/verizon/models/mec_performance_query_result.rb +1 -2
  361. data/lib/verizon/models/mec_platform_resource.rb +2 -5
  362. data/lib/verizon/models/mec_platforms_additional_support_info.rb +1 -2
  363. data/lib/verizon/models/mismatched_device.rb +2 -6
  364. data/lib/verizon/models/move_device_request.rb +3 -7
  365. data/lib/verizon/models/network_resources_type.rb +2 -4
  366. data/lib/verizon/models/no_of_days_b4_promo_exp.rb +1 -2
  367. data/lib/verizon/models/notification.rb +4 -9
  368. data/lib/verizon/models/notification_report_request.rb +1 -3
  369. data/lib/verizon/models/notification_report_status_request.rb +1 -3
  370. data/lib/verizon/models/numerical_data.rb +1 -2
  371. data/lib/verizon/models/oauth_scope_thingspace_oauth_enum.rb +5 -5
  372. data/lib/verizon/models/oauth_token.rb +2 -6
  373. data/lib/verizon/models/observation_request.rb +2 -5
  374. data/lib/verizon/models/place_of_use.rb +1 -2
  375. data/lib/verizon/models/position_data.rb +2 -6
  376. data/lib/verizon/models/position_error.rb +1 -4
  377. data/lib/verizon/models/primary_place_of_use.rb +1 -2
  378. data/lib/verizon/models/profile_change_state_request.rb +1 -3
  379. data/lib/verizon/models/profile_request.rb +3 -7
  380. data/lib/verizon/models/profile_request2.rb +2 -5
  381. data/lib/verizon/models/profile_status_filter_enum.rb +38 -0
  382. data/lib/verizon/models/promo_alert.rb +1 -2
  383. data/lib/verizon/models/promo_alert1.rb +1 -2
  384. data/lib/verizon/models/promo_alert_trigger_request.rb +3 -6
  385. data/lib/verizon/models/property_device_id.rb +1 -2
  386. data/lib/verizon/models/provhistory_request.rb +1 -3
  387. data/lib/verizon/models/provisioning_history.rb +3 -8
  388. data/lib/verizon/models/provisioning_status_filter_enum.rb +62 -0
  389. data/lib/verizon/models/{mec_device_id.rb → pwn_device_id.rb} +4 -5
  390. data/lib/verizon/models/{mec_device_list.rb → pwn_device_list.rb} +5 -5
  391. data/lib/verizon/models/{mec_profile.rb → pwn_profile.rb} +4 -5
  392. data/lib/verizon/models/{mec_profile_list.rb → pwn_profile_list.rb} +5 -5
  393. data/lib/verizon/models/qos_device_id.rb +1 -2
  394. data/lib/verizon/models/qos_device_info.rb +1 -3
  395. data/lib/verizon/models/query_mec_performance_metrics_request.rb +1 -2
  396. data/lib/verizon/models/query_subscription_request.rb +1 -2
  397. data/lib/verizon/models/query_target_request.rb +1 -2
  398. data/lib/verizon/models/ready_sim_device_id.rb +1 -2
  399. data/lib/verizon/models/region.rb +2 -5
  400. data/lib/verizon/models/register_callback_request.rb +1 -4
  401. data/lib/verizon/models/registered_callbacks.rb +1 -4
  402. data/lib/verizon/models/remove_device_request.rb +1 -2
  403. data/lib/verizon/models/request_body_for_usage.rb +1 -3
  404. data/lib/verizon/models/request_trigger.rb +2 -5
  405. data/lib/verizon/models/resource_identifier.rb +1 -2
  406. data/lib/verizon/models/resources_edge_hosted_service.rb +2 -4
  407. data/lib/verizon/models/resources_edge_hosted_service_with_profile_id.rb +3 -6
  408. data/lib/verizon/models/resources_service_endpoint.rb +2 -5
  409. data/lib/verizon/models/resources_service_profile.rb +3 -6
  410. data/lib/verizon/models/resources_service_profile_with_id.rb +4 -8
  411. data/lib/verizon/models/response_to_usage_query.rb +1 -3
  412. data/lib/verizon/models/retrieve_monitors_request.rb +1 -3
  413. data/lib/verizon/models/retrieves_available_files_response.rb +3 -8
  414. data/lib/verizon/models/schedules_software_upgrade_request.rb +5 -11
  415. data/lib/verizon/models/search_device_by_property_fields.rb +3 -8
  416. data/lib/verizon/models/search_device_by_property_response.rb +5 -15
  417. data/lib/verizon/models/search_device_event_history_request.rb +2 -5
  418. data/lib/verizon/models/search_device_response.rb +4 -13
  419. data/lib/verizon/models/search_sensor_history_request.rb +2 -4
  420. data/lib/verizon/models/security_subscription.rb +3 -6
  421. data/lib/verizon/models/security_subscription_request.rb +1 -2
  422. data/lib/verizon/models/security_subscription_result.rb +1 -2
  423. data/lib/verizon/models/sensitivity_parameters.rb +2 -4
  424. data/lib/verizon/models/service_plan.rb +2 -5
  425. data/lib/verizon/models/service_plan_update_request.rb +4 -8
  426. data/lib/verizon/models/service_usage.rb +1 -2
  427. data/lib/verizon/models/session_report.rb +2 -17
  428. data/lib/verizon/models/session_report_request.rb +2 -6
  429. data/lib/verizon/models/session_trigger_request.rb +1 -2
  430. data/lib/verizon/models/set_fallback_attribute_request.rb +1 -3
  431. data/lib/verizon/models/share_plan.rb +1 -2
  432. data/lib/verizon/models/sms_event_history_request.rb +1 -3
  433. data/lib/verizon/models/sms_message.rb +1 -3
  434. data/lib/verizon/models/sms_messages_query_result.rb +1 -2
  435. data/lib/verizon/models/sms_messages_response.rb +1 -2
  436. data/lib/verizon/models/sms_number.rb +1 -2
  437. data/lib/verizon/models/sms_numbers.rb +1 -2
  438. data/lib/verizon/models/sms_options_send_request.rb +1 -2
  439. data/lib/verizon/models/sms_send_request.rb +2 -6
  440. data/lib/verizon/models/sms_trigger_request.rb +1 -3
  441. data/lib/verizon/models/software_package.rb +3 -7
  442. data/lib/verizon/models/state.rb +1 -2
  443. data/lib/verizon/models/status_list.rb +1 -3
  444. data/lib/verizon/models/status_response.rb +1 -3
  445. data/lib/verizon/models/stop_monitor_request.rb +1 -2
  446. data/lib/verizon/models/subrequest.rb +1 -2
  447. data/lib/verizon/models/subscribe_request.rb +1 -2
  448. data/lib/verizon/models/subscription.rb +7 -20
  449. data/lib/verizon/models/synchronous_location_request_result.rb +1 -2
  450. data/lib/verizon/models/target.rb +4 -12
  451. data/lib/verizon/models/target_authentication.rb +1 -2
  452. data/lib/verizon/models/target_authentication_body.rb +2 -5
  453. data/lib/verizon/models/target_authentication_body_headers.rb +1 -2
  454. data/lib/verizon/models/thingspace_device.rb +12 -19
  455. data/lib/verizon/models/trigger_attributes_options.rb +1 -2
  456. data/lib/verizon/models/trigger_notification.rb +4 -9
  457. data/lib/verizon/models/trigger_type1.rb +2 -5
  458. data/lib/verizon/models/trigger_type2.rb +1 -2
  459. data/lib/verizon/models/trigger_type3.rb +3 -6
  460. data/lib/verizon/models/triggers_list_options.rb +4 -8
  461. data/lib/verizon/models/triggervalues.rb +3 -7
  462. data/lib/verizon/models/triggervalues2.rb +3 -8
  463. data/lib/verizon/models/update_service_endpoint_result.rb +1 -2
  464. data/lib/verizon/models/update_service_profile_result.rb +1 -2
  465. data/lib/verizon/models/update_trigger_request.rb +5 -10
  466. data/lib/verizon/models/update_trigger_request_options.rb +3 -6
  467. data/lib/verizon/models/update_trigger_v2_request.rb +3 -7
  468. data/lib/verizon/models/upgrade_list_query_result.rb +1 -2
  469. data/lib/verizon/models/upload_and_schedule_file_request.rb +4 -10
  470. data/lib/verizon/models/upload_and_schedule_file_response.rb +8 -19
  471. data/lib/verizon/models/upload_configuration_files_response.rb +3 -8
  472. data/lib/verizon/models/uploads_activates_device_request.rb +3 -8
  473. data/lib/verizon/models/usage.rb +2 -5
  474. data/lib/verizon/models/usage_anomaly_attributes.rb +2 -4
  475. data/lib/verizon/models/usage_history.rb +2 -6
  476. data/lib/verizon/models/usage_trigger_add_request.rb +4 -8
  477. data/lib/verizon/models/usage_trigger_response.rb +5 -11
  478. data/lib/verizon/models/usage_trigger_update_request.rb +2 -4
  479. data/lib/verizon/models/v1_account_subscription.rb +2 -4
  480. data/lib/verizon/models/v1_device_list_item.rb +1 -3
  481. data/lib/verizon/models/v1_licenses_assigned_removed_result.rb +1 -3
  482. data/lib/verizon/models/v1_list_of_licenses_to_remove.rb +1 -3
  483. data/lib/verizon/models/v1_list_of_licenses_to_remove_request.rb +1 -2
  484. data/lib/verizon/models/v1_list_of_licenses_to_remove_result.rb +1 -2
  485. data/lib/verizon/models/v2_account_device.rb +5 -13
  486. data/lib/verizon/models/v2_account_device_list.rb +2 -5
  487. data/lib/verizon/models/v2_add_or_remove_device_request.rb +1 -2
  488. data/lib/verizon/models/v2_add_or_remove_device_result.rb +1 -3
  489. data/lib/verizon/models/v2_campaign_device.rb +2 -5
  490. data/lib/verizon/models/v2_campaign_history.rb +1 -2
  491. data/lib/verizon/models/v2_campaign_meta_info.rb +6 -16
  492. data/lib/verizon/models/v2_change_campaign_dates_request.rb +2 -5
  493. data/lib/verizon/models/v2_device_status.rb +1 -3
  494. data/lib/verizon/models/v2_license_device.rb +1 -2
  495. data/lib/verizon/models/v2_license_imei.rb +1 -2
  496. data/lib/verizon/models/v2_license_summary.rb +3 -6
  497. data/lib/verizon/models/v2_licenses_assigned_removed_result.rb +2 -4
  498. data/lib/verizon/models/v2_list_of_licenses_to_remove.rb +1 -3
  499. data/lib/verizon/models/v2_list_of_licenses_to_remove_request.rb +1 -3
  500. data/lib/verizon/models/v2_list_of_licenses_to_remove_result.rb +1 -2
  501. data/lib/verizon/models/v2_software_info.rb +1 -3
  502. data/lib/verizon/models/v2_time_window.rb +1 -2
  503. data/lib/verizon/models/v3_account_device.rb +5 -15
  504. data/lib/verizon/models/v3_account_device_list.rb +2 -5
  505. data/lib/verizon/models/v3_add_or_remove_device_request.rb +1 -2
  506. data/lib/verizon/models/v3_add_or_remove_device_result.rb +1 -3
  507. data/lib/verizon/models/v3_campaign_device.rb +2 -5
  508. data/lib/verizon/models/v3_campaign_history.rb +1 -2
  509. data/lib/verizon/models/v3_campaign_meta_info.rb +4 -11
  510. data/lib/verizon/models/v3_change_campaign_dates_request.rb +1 -2
  511. data/lib/verizon/models/v3_device.rb +6 -18
  512. data/lib/verizon/models/v3_device_list_item.rb +1 -3
  513. data/lib/verizon/models/v3_device_status.rb +2 -5
  514. data/lib/verizon/models/v3_license_assigned_removed_result.rb +1 -3
  515. data/lib/verizon/models/v3_license_device.rb +1 -2
  516. data/lib/verizon/models/v3_license_summary.rb +3 -6
  517. data/lib/verizon/models/v3_software_info.rb +1 -3
  518. data/lib/verizon/models/v3_time_window.rb +1 -2
  519. data/lib/verizon/utilities/file_wrapper.rb +9 -9
  520. data/lib/verizon.rb +59 -28
  521. metadata +65 -33
  522. data/lib/verizon/models/change_pmec_device_profile_bulk_request.rb +0 -75
  523. data/lib/verizon/models/change_pmec_device_state_bulk_activate_request.rb +0 -75
  524. data/lib/verizon/models/change_pmec_device_state_bulk_deactivate_request.rb +0 -66
  525. data/lib/verizon/models/change_pmec_device_state_deactivate_request.rb +0 -66
  526. data/lib/verizon/models/device_list1.rb +0 -75
  527. data/lib/verizon/models/esim_status_response.rb +0 -79
  528. data/lib/verizon/models/status1_enum.rb +0 -23
@@ -19,29 +19,24 @@ module Verizon
19
19
 
20
20
  # Fault occurred while responding.
21
21
  # @return [HyperPreciseLocationFault]
22
- attr_accessor :fault
23
-
24
- # Fault occurred while responding.
25
- # @return [Object]
26
- attr_accessor :example
27
-
28
- # The constructor.
29
- # @param [String] The reason for raising an exception.
30
- # @param [HttpResponse] The HttpReponse of the API call.
31
- def initialize(reason, response)
32
- super(reason, response)
33
- hash = APIHelper.json_deserialize(@response.raw_body)
34
- unbox(hash)
35
- end
36
-
37
- # Populates this object by extracting properties from a hash.
38
- # @param [Hash] The deserialized response sent by the server in the
39
- # response body.
40
- def unbox(hash)
22
+ attr_accessor :fault
23
+
24
+ # The constructor.
25
+ # @param [String] The reason for raising an exception.
26
+ # @param [HttpResponse] The HttpReponse of the API call.
27
+ def initialize(reason, response)
28
+ super(reason, response)
29
+ hash = APIHelper.json_deserialize(@response.raw_body)
30
+ unbox(hash)
31
+ end
32
+
33
+ # Populates this object by extracting properties from a hash.
34
+ # @param [Hash] The deserialized response sent by the server in the
35
+ # response body.
36
+ def unbox(hash)
41
37
  @response_code = hash.key?('responseCode') ? hash['responseCode'] : SKIP
42
38
  @message = hash.key?('message') ? hash['message'] : SKIP
43
39
  @fault = HyperPreciseLocationFault.from_hash(hash['fault']) if hash['fault']
44
- @example = hash.key?('example') ? hash['example'] : SKIP
45
40
  end
46
41
  end
47
42
  end
@@ -15,21 +15,21 @@ module Verizon
15
15
 
16
16
  # Error Message.
17
17
  # @return [String]
18
- attr_accessor :error_message
19
-
20
- # The constructor.
21
- # @param [String] The reason for raising an exception.
22
- # @param [HttpResponse] The HttpReponse of the API call.
23
- def initialize(reason, response)
24
- super(reason, response)
25
- hash = APIHelper.json_deserialize(@response.raw_body)
26
- unbox(hash)
27
- end
28
-
29
- # Populates this object by extracting properties from a hash.
30
- # @param [Hash] The deserialized response sent by the server in the
31
- # response body.
32
- def unbox(hash)
18
+ attr_accessor :error_message
19
+
20
+ # The constructor.
21
+ # @param [String] The reason for raising an exception.
22
+ # @param [HttpResponse] The HttpReponse of the API call.
23
+ def initialize(reason, response)
24
+ super(reason, response)
25
+ hash = APIHelper.json_deserialize(@response.raw_body)
26
+ unbox(hash)
27
+ end
28
+
29
+ # Populates this object by extracting properties from a hash.
30
+ # @param [Hash] The deserialized response sent by the server in the
31
+ # response body.
32
+ def unbox(hash)
33
33
  @error_code = hash.key?('errorCode') ? hash['errorCode'] : SKIP
34
34
  @error_message = hash.key?('errorMessage') ? hash['errorMessage'] : SKIP
35
35
  end
@@ -0,0 +1,37 @@
1
+ # verizon
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module Verizon
7
+ # 5gbiRestErrorResponse class.
8
+ class M5gBiRestErrorResponseException < APIException
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :error_code
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [String]
18
+ attr_accessor :error_message
19
+
20
+ # The constructor.
21
+ # @param [String] The reason for raising an exception.
22
+ # @param [HttpResponse] The HttpReponse of the API call.
23
+ def initialize(reason, response)
24
+ super(reason, response)
25
+ hash = APIHelper.json_deserialize(@response.raw_body)
26
+ unbox(hash)
27
+ end
28
+
29
+ # Populates this object by extracting properties from a hash.
30
+ # @param [Hash] The deserialized response sent by the server in the
31
+ # response body.
32
+ def unbox(hash)
33
+ @error_code = hash.key?('errorCode') ? hash['errorCode'] : SKIP
34
+ @error_message = hash.key?('errorMessage') ? hash['errorMessage'] : SKIP
35
+ end
36
+ end
37
+ end
@@ -24,21 +24,21 @@ module Verizon
24
24
  # about the error, used to provide the client developer with additional
25
25
  # information about the error.
26
26
  # @return [String]
27
- attr_accessor :error_uri
28
-
29
- # The constructor.
30
- # @param [String] The reason for raising an exception.
31
- # @param [HttpResponse] The HttpReponse of the API call.
32
- def initialize(reason, response)
33
- super(reason, response)
34
- hash = APIHelper.json_deserialize(@response.raw_body)
35
- unbox(hash)
36
- end
37
-
38
- # Populates this object by extracting properties from a hash.
39
- # @param [Hash] The deserialized response sent by the server in the
40
- # response body.
41
- def unbox(hash)
27
+ attr_accessor :error_uri
28
+
29
+ # The constructor.
30
+ # @param [String] The reason for raising an exception.
31
+ # @param [HttpResponse] The HttpReponse of the API call.
32
+ def initialize(reason, response)
33
+ super(reason, response)
34
+ hash = APIHelper.json_deserialize(@response.raw_body)
35
+ unbox(hash)
36
+ end
37
+
38
+ # Populates this object by extracting properties from a hash.
39
+ # @param [Hash] The deserialized response sent by the server in the
40
+ # response body.
41
+ def unbox(hash)
42
42
  @error = hash.key?('error') ? hash['error'] : nil
43
43
  @error_description =
44
44
  hash.key?('error_description') ? hash['error_description'] : SKIP
@@ -15,21 +15,21 @@ module Verizon
15
15
 
16
16
  # TODO: Write general description for this method
17
17
  # @return [String]
18
- attr_accessor :error_message
19
-
20
- # The constructor.
21
- # @param [String] The reason for raising an exception.
22
- # @param [HttpResponse] The HttpReponse of the API call.
23
- def initialize(reason, response)
24
- super(reason, response)
25
- hash = APIHelper.json_deserialize(@response.raw_body)
26
- unbox(hash)
27
- end
28
-
29
- # Populates this object by extracting properties from a hash.
30
- # @param [Hash] The deserialized response sent by the server in the
31
- # response body.
32
- def unbox(hash)
18
+ attr_accessor :error_message
19
+
20
+ # The constructor.
21
+ # @param [String] The reason for raising an exception.
22
+ # @param [HttpResponse] The HttpReponse of the API call.
23
+ def initialize(reason, response)
24
+ super(reason, response)
25
+ hash = APIHelper.json_deserialize(@response.raw_body)
26
+ unbox(hash)
27
+ end
28
+
29
+ # Populates this object by extracting properties from a hash.
30
+ # @param [Hash] The deserialized response sent by the server in the
31
+ # response body.
32
+ def unbox(hash)
33
33
  @error_code = hash.key?('errorCode') ? hash['errorCode'] : SKIP
34
34
  @error_message = hash.key?('errorMessage') ? hash['errorMessage'] : SKIP
35
35
  end
@@ -15,21 +15,21 @@ module Verizon
15
15
 
16
16
  # TODO: Write general description for this method
17
17
  # @return [String]
18
- attr_accessor :error_message
19
-
20
- # The constructor.
21
- # @param [String] The reason for raising an exception.
22
- # @param [HttpResponse] The HttpReponse of the API call.
23
- def initialize(reason, response)
24
- super(reason, response)
25
- hash = APIHelper.json_deserialize(@response.raw_body)
26
- unbox(hash)
27
- end
28
-
29
- # Populates this object by extracting properties from a hash.
30
- # @param [Hash] The deserialized response sent by the server in the
31
- # response body.
32
- def unbox(hash)
18
+ attr_accessor :error_message
19
+
20
+ # The constructor.
21
+ # @param [String] The reason for raising an exception.
22
+ # @param [HttpResponse] The HttpReponse of the API call.
23
+ def initialize(reason, response)
24
+ super(reason, response)
25
+ hash = APIHelper.json_deserialize(@response.raw_body)
26
+ unbox(hash)
27
+ end
28
+
29
+ # Populates this object by extracting properties from a hash.
30
+ # @param [Hash] The deserialized response sent by the server in the
31
+ # response body.
32
+ def unbox(hash)
33
33
  @error_code = hash.key?('errorCode') ? hash['errorCode'] : SKIP
34
34
  @error_message = hash.key?('errorMessage') ? hash['errorMessage'] : SKIP
35
35
  end
@@ -19,21 +19,21 @@ module Verizon
19
19
 
20
20
  # TODO: Write general description for this method
21
21
  # @return [String]
22
- attr_accessor :error_url
23
-
24
- # The constructor.
25
- # @param [String] The reason for raising an exception.
26
- # @param [HttpResponse] The HttpReponse of the API call.
27
- def initialize(reason, response)
28
- super(reason, response)
29
- hash = APIHelper.json_deserialize(@response.raw_body)
30
- unbox(hash)
31
- end
32
-
33
- # Populates this object by extracting properties from a hash.
34
- # @param [Hash] The deserialized response sent by the server in the
35
- # response body.
36
- def unbox(hash)
22
+ attr_accessor :error_url
23
+
24
+ # The constructor.
25
+ # @param [String] The reason for raising an exception.
26
+ # @param [HttpResponse] The HttpReponse of the API call.
27
+ def initialize(reason, response)
28
+ super(reason, response)
29
+ hash = APIHelper.json_deserialize(@response.raw_body)
30
+ unbox(hash)
31
+ end
32
+
33
+ # Populates this object by extracting properties from a hash.
34
+ # @param [Hash] The deserialized response sent by the server in the
35
+ # response body.
36
+ def unbox(hash)
37
37
  @error_code = hash.key?('errorCode') ? hash['errorCode'] : SKIP
38
38
  @error_message = hash.key?('errorMessage') ? hash['errorMessage'] : SKIP
39
39
  @error_url = hash.key?('errorUrl') ? hash['errorUrl'] : SKIP
@@ -19,21 +19,21 @@ module Verizon
19
19
 
20
20
  # TODO: Write general description for this method
21
21
  # @return [String]
22
- attr_accessor :error_url
23
-
24
- # The constructor.
25
- # @param [String] The reason for raising an exception.
26
- # @param [HttpResponse] The HttpReponse of the API call.
27
- def initialize(reason, response)
28
- super(reason, response)
29
- hash = APIHelper.json_deserialize(@response.raw_body)
30
- unbox(hash)
31
- end
32
-
33
- # Populates this object by extracting properties from a hash.
34
- # @param [Hash] The deserialized response sent by the server in the
35
- # response body.
36
- def unbox(hash)
22
+ attr_accessor :error_url
23
+
24
+ # The constructor.
25
+ # @param [String] The reason for raising an exception.
26
+ # @param [HttpResponse] The HttpReponse of the API call.
27
+ def initialize(reason, response)
28
+ super(reason, response)
29
+ hash = APIHelper.json_deserialize(@response.raw_body)
30
+ unbox(hash)
31
+ end
32
+
33
+ # Populates this object by extracting properties from a hash.
34
+ # @param [Hash] The deserialized response sent by the server in the
35
+ # response body.
36
+ def unbox(hash)
37
37
  @error_code = hash.key?('errorCode') ? hash['errorCode'] : SKIP
38
38
  @error_message = hash.key?('errorMessage') ? hash['errorMessage'] : SKIP
39
39
  @error_url = hash.key?('errorUrl') ? hash['errorUrl'] : SKIP
@@ -15,21 +15,21 @@ module Verizon
15
15
 
16
16
  # Error message details.
17
17
  # @return [String]
18
- attr_accessor :error_message
19
-
20
- # The constructor.
21
- # @param [String] The reason for raising an exception.
22
- # @param [HttpResponse] The HttpReponse of the API call.
23
- def initialize(reason, response)
24
- super(reason, response)
25
- hash = APIHelper.json_deserialize(@response.raw_body)
26
- unbox(hash)
27
- end
28
-
29
- # Populates this object by extracting properties from a hash.
30
- # @param [Hash] The deserialized response sent by the server in the
31
- # response body.
32
- def unbox(hash)
18
+ attr_accessor :error_message
19
+
20
+ # The constructor.
21
+ # @param [String] The reason for raising an exception.
22
+ # @param [HttpResponse] The HttpReponse of the API call.
23
+ def initialize(reason, response)
24
+ super(reason, response)
25
+ hash = APIHelper.json_deserialize(@response.raw_body)
26
+ unbox(hash)
27
+ end
28
+
29
+ # Populates this object by extracting properties from a hash.
30
+ # @param [Hash] The deserialized response sent by the server in the
31
+ # response body.
32
+ def unbox(hash)
33
33
  @error_code = hash.key?('errorCode') ? hash['errorCode'] : SKIP
34
34
  @error_message = hash.key?('errorMessage') ? hash['errorMessage'] : SKIP
35
35
  end
@@ -6,16 +6,16 @@
6
6
  module Verizon
7
7
  # Http response received.
8
8
  class ApiResponse < CoreLibrary::ApiResponse
9
-
10
-
11
- # The constructor
12
- # @param [HttpResponse] http_response The original, raw response from the api.
13
- # @param [Object] data The data field specified for the response.
14
- # @param [Array<String>] errors Any errors returned by the server.
15
- def initialize(http_response,
16
- data: nil,
17
- errors: nil)
18
- super
9
+
10
+
11
+ # The constructor
12
+ # @param [HttpResponse] http_response The original, raw response from the api.
13
+ # @param [Object] data The data field specified for the response.
14
+ # @param [Array<String>] errors Any errors returned by the server.
15
+ def initialize(http_response,
16
+ data: nil,
17
+ errors: nil)
18
+ super
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,6 @@ module Verizon
15
15
 
16
16
  # Initialization constructor.
17
17
  def initialize(thingspace_oauth_credentials, config)
18
- auth_params = {}
19
18
  @_oauth_client_id = thingspace_oauth_credentials.oauth_client_id unless
20
19
  thingspace_oauth_credentials.nil? || thingspace_oauth_credentials.oauth_client_id.nil?
21
20
  @_oauth_client_secret = thingspace_oauth_credentials.oauth_client_secret unless
@@ -24,16 +23,21 @@ module Verizon
24
23
  thingspace_oauth_credentials.nil? || thingspace_oauth_credentials.oauth_token.nil?
25
24
  @_oauth_scopes = thingspace_oauth_credentials.oauth_scopes unless
26
25
  thingspace_oauth_credentials.nil? || thingspace_oauth_credentials.oauth_scopes.nil?
26
+ @_oauth_clock_skew = thingspace_oauth_credentials.oauth_clock_skew unless
27
+ thingspace_oauth_credentials.nil? || thingspace_oauth_credentials.oauth_clock_skew.nil?
28
+ @_oauth_token_provider = thingspace_oauth_credentials.oauth_token_provider unless
29
+ thingspace_oauth_credentials.nil? || thingspace_oauth_credentials.oauth_token_provider.nil?
30
+ @_oauth_on_token_update = thingspace_oauth_credentials.oauth_on_token_update unless
31
+ thingspace_oauth_credentials.nil? || thingspace_oauth_credentials.oauth_on_token_update.nil?
27
32
  @_o_auth_api = OauthAuthorizationController.new(config)
28
- auth_params['Authorization'] = "Bearer #{@_oauth_token.access_token}" unless @_oauth_token.nil?
29
-
30
- super auth_params
33
+ super({})
31
34
  end
32
35
 
33
36
  # Validates the oAuth token.
34
37
  # @return [Boolean] true if the token is present and not expired.
35
38
  def valid
36
- !@_oauth_token.nil? && !token_expired?(@_oauth_token)
39
+ @_oauth_token = get_token_from_provider
40
+ @_oauth_token.is_a?(OAuthToken) && !token_expired?(@_oauth_token)
37
41
  end
38
42
 
39
43
  # Builds the basic auth header for endpoints in the OAuth Authorization Controller.
@@ -61,17 +65,45 @@ module Verizon
61
65
  # @param [OAuthToken] token The oAuth token instance.
62
66
  # @return [Boolean] true if the token's expiry exist and also the token is expired, false otherwise.
63
67
  def token_expired?(token)
64
- token.respond_to?('expiry') && AuthHelper.token_expired?(token.expiry)
68
+ token.respond_to?('expiry') && AuthHelper.token_expired?(token.expiry, @_oauth_clock_skew)
69
+ end
70
+
71
+ def apply(http_request)
72
+ auth_params = { 'Authorization' => "Bearer #{@_oauth_token.access_token}" }
73
+ AuthHelper.apply(auth_params, http_request.method(:add_header))
74
+ end
75
+
76
+ private
77
+
78
+ # This provides the OAuth Token from either the user configured callbacks or from default provider.
79
+ # @return [OAuthToken] The fetched oauth token.
80
+ def get_token_from_provider
81
+ return @_oauth_token if @_oauth_token && !token_expired?(@_oauth_token)
82
+
83
+ if @_o_auth_token_provider
84
+ o_auth_token = @_o_auth_token_provider.call(@_oauth_token, self)
85
+ @_o_auth_on_token_update&.call(o_auth_token)
86
+ return o_auth_token
87
+ end
88
+ begin
89
+ o_auth_token = fetch_token
90
+ @_o_auth_on_token_update&.call(o_auth_token)
91
+ o_auth_token
92
+ rescue ApiException
93
+ @_o_auth_token
94
+ end
65
95
  end
66
96
  end
67
97
 
68
98
  # Data class for ThingspaceOauthCredentials.
69
99
  class ThingspaceOauthCredentials
70
100
  attr_reader :oauth_client_id, :oauth_client_secret, :oauth_token,
71
- :oauth_scopes
101
+ :oauth_scopes, :oauth_token_provider, :oauth_on_token_update,
102
+ :oauth_clock_skew
72
103
 
73
104
  def initialize(oauth_client_id:, oauth_client_secret:, oauth_token: nil,
74
- oauth_scopes: nil)
105
+ oauth_scopes: nil, oauth_token_provider: nil,
106
+ oauth_on_token_update: nil, oauth_clock_skew: nil)
75
107
  raise ArgumentError, 'oauth_client_id cannot be nil' if oauth_client_id.nil?
76
108
  raise ArgumentError, 'oauth_client_secret cannot be nil' if oauth_client_secret.nil?
77
109
 
@@ -79,19 +111,30 @@ module Verizon
79
111
  @oauth_client_secret = oauth_client_secret
80
112
  @oauth_token = oauth_token
81
113
  @oauth_scopes = oauth_scopes
114
+ @oauth_token_provider = oauth_token_provider
115
+ @oauth_on_token_update = oauth_on_token_update
116
+ @oauth_clock_skew = oauth_clock_skew
82
117
  end
83
118
 
84
119
  def clone_with(oauth_client_id: nil, oauth_client_secret: nil,
85
- oauth_token: nil, oauth_scopes: nil)
120
+ oauth_token: nil, oauth_scopes: nil,
121
+ oauth_token_provider: nil, oauth_on_token_update: nil,
122
+ oauth_clock_skew: nil)
86
123
  oauth_client_id ||= self.oauth_client_id
87
124
  oauth_client_secret ||= self.oauth_client_secret
88
125
  oauth_token ||= self.oauth_token
89
126
  oauth_scopes ||= self.oauth_scopes
127
+ oauth_token_provider ||= self.oauth_token_provider
128
+ oauth_on_token_update ||= self.oauth_on_token_update
129
+ oauth_clock_skew ||= self.oauth_clock_skew
90
130
 
91
- ThingspaceOauthCredentials.new(oauth_client_id: oauth_client_id,
92
- oauth_client_secret: oauth_client_secret,
93
- oauth_token: oauth_token,
94
- oauth_scopes: oauth_scopes)
131
+ ThingspaceOauthCredentials.new(
132
+ oauth_client_id: oauth_client_id,
133
+ oauth_client_secret: oauth_client_secret, oauth_token: oauth_token,
134
+ oauth_scopes: oauth_scopes, oauth_token_provider: oauth_token_provider,
135
+ oauth_on_token_update: oauth_on_token_update,
136
+ oauth_clock_skew: oauth_clock_skew
137
+ )
95
138
  end
96
139
  end
97
140
  end
@@ -5,8 +5,8 @@
5
5
 
6
6
  require 'date'
7
7
  module Verizon
8
- # RequestBodyForUsage1 Model.
9
- class RequestBodyForUsage1 < BaseModel
8
+ # ARequestBodyForUsage Model.
9
+ class ARequestBodyForUsage < BaseModel
10
10
  SKIP = Object.new
11
11
  private_constant :SKIP
12
12
 
@@ -45,9 +45,7 @@ module Verizon
45
45
  []
46
46
  end
47
47
 
48
- def initialize(device_id = SKIP,
49
- start_time = SKIP,
50
- end_time = SKIP)
48
+ def initialize(device_id = SKIP, start_time = SKIP, end_time = SKIP)
51
49
  @device_id = device_id unless device_id == SKIP
52
50
  @start_time = start_time unless start_time == SKIP
53
51
  @end_time = end_time unless end_time == SKIP
@@ -80,7 +78,7 @@ module Verizon
80
78
  end
81
79
 
82
80
  # Create object from extracted values.
83
- RequestBodyForUsage1.new(device_id,
81
+ ARequestBodyForUsage.new(device_id,
84
82
  start_time,
85
83
  end_time)
86
84
  end
@@ -44,9 +44,7 @@ module Verizon
44
44
  []
45
45
  end
46
46
 
47
- def initialize(x = SKIP,
48
- y = SKIP,
49
- z = SKIP)
47
+ def initialize(x = SKIP, y = SKIP, z = SKIP)
50
48
  @x = x unless x == SKIP
51
49
  @y = y unless y == SKIP
52
50
  @z = z unless z == SKIP
@@ -76,13 +76,9 @@ module Verizon
76
76
  []
77
77
  end
78
78
 
79
- def initialize(account_name = SKIP,
80
- account_number = SKIP,
81
- organization_name = SKIP,
82
- is_provisioning_allowed = SKIP,
83
- carriers = SKIP,
84
- features = SKIP,
85
- i_p_pools = SKIP,
79
+ def initialize(account_name = SKIP, account_number = SKIP,
80
+ organization_name = SKIP, is_provisioning_allowed = SKIP,
81
+ carriers = SKIP, features = SKIP, i_p_pools = SKIP,
86
82
  service_plans = SKIP)
87
83
  @account_name = account_name unless account_name == SKIP
88
84
  @account_number = account_number unless account_number == SKIP
@@ -0,0 +1,59 @@
1
+ # verizon
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module Verizon
7
+ # AccountConsentCreate Model.
8
+ class AccountConsentCreate < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # An array of device identifiers
13
+ # @return [Array[Object]]
14
+ attr_accessor :device_list
15
+
16
+ # The numeric name of the account, including leading zeros.
17
+ # @return [String]
18
+ attr_accessor :account_name
19
+
20
+ # A mapping from model property names to API property names.
21
+ def self.names
22
+ @_hash = {} if @_hash.nil?
23
+ @_hash['device_list'] = 'deviceList'
24
+ @_hash['account_name'] = 'accountName'
25
+ @_hash
26
+ end
27
+
28
+ # An array for optional fields
29
+ def self.optionals
30
+ %w[
31
+ device_list
32
+ account_name
33
+ ]
34
+ end
35
+
36
+ # An array for nullable fields
37
+ def self.nullables
38
+ []
39
+ end
40
+
41
+ def initialize(device_list = SKIP, account_name = SKIP)
42
+ @device_list = device_list unless device_list == SKIP
43
+ @account_name = account_name unless account_name == SKIP
44
+ end
45
+
46
+ # Creates an instance of the object from a hash.
47
+ def self.from_hash(hash)
48
+ return nil unless hash
49
+
50
+ # Extract variables from the hash.
51
+ device_list = hash.key?('deviceList') ? hash['deviceList'] : SKIP
52
+ account_name = hash.key?('accountName') ? hash['accountName'] : SKIP
53
+
54
+ # Create object from extracted values.
55
+ AccountConsentCreate.new(device_list,
56
+ account_name)
57
+ end
58
+ end
59
+ end