sdksio-verizon-apis-sdk 1.3.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +99 -86
  3. data/lib/verizon/client.rb +19 -16
  4. data/lib/verizon/configuration.rb +34 -82
  5. data/lib/verizon/controllers/account_devices_controller.rb +2 -2
  6. data/lib/verizon/controllers/account_requests_controller.rb +1 -1
  7. data/lib/verizon/controllers/account_subscriptions_controller.rb +1 -1
  8. data/lib/verizon/controllers/accounts_controller.rb +3 -3
  9. data/lib/verizon/controllers/anomaly_settings_controller.rb +3 -3
  10. data/lib/verizon/controllers/anomaly_triggers_controller.rb +5 -5
  11. data/lib/verizon/controllers/anomaly_triggers_v2_controller.rb +3 -3
  12. data/lib/verizon/controllers/billing_controller.rb +4 -4
  13. data/lib/verizon/controllers/campaigns_v2_controller.rb +7 -7
  14. data/lib/verizon/controllers/campaigns_v3_controller.rb +5 -5
  15. data/lib/verizon/controllers/client_logging_controller.rb +6 -6
  16. data/lib/verizon/controllers/cloud_connector_devices_controller.rb +6 -6
  17. data/lib/verizon/controllers/cloud_connector_subscriptions_controller.rb +3 -3
  18. data/lib/verizon/controllers/configuration_files_controller.rb +2 -2
  19. data/lib/verizon/controllers/connectivity_callbacks_controller.rb +3 -3
  20. data/lib/verizon/controllers/device_actions_controller.rb +3 -3
  21. data/lib/verizon/controllers/device_diagnostics_controller.rb +2 -2
  22. data/lib/verizon/controllers/device_groups_controller.rb +5 -5
  23. data/lib/verizon/controllers/device_location_callbacks_controller.rb +3 -3
  24. data/lib/verizon/controllers/device_management_controller.rb +29 -29
  25. data/lib/verizon/controllers/device_monitoring_controller.rb +7 -10
  26. data/lib/verizon/controllers/device_profile_management_controller.rb +4 -4
  27. data/lib/verizon/controllers/device_reports_controller.rb +3 -3
  28. data/lib/verizon/controllers/device_service_management_controller.rb +2 -2
  29. data/lib/verizon/controllers/device_sms_messaging_controller.rb +4 -4
  30. data/lib/verizon/controllers/devices_location_subscriptions_controller.rb +2 -2
  31. data/lib/verizon/controllers/devices_locations_controller.rb +7 -7
  32. data/lib/verizon/controllers/diagnostics_callbacks_controller.rb +3 -3
  33. data/lib/verizon/controllers/diagnostics_factory_reset_controller.rb +1 -1
  34. data/lib/verizon/controllers/diagnostics_history_controller.rb +1 -1
  35. data/lib/verizon/controllers/diagnostics_observations_controller.rb +2 -2
  36. data/lib/verizon/controllers/diagnostics_settings_controller.rb +1 -1
  37. data/lib/verizon/controllers/diagnostics_subscriptions_controller.rb +1 -1
  38. data/lib/verizon/controllers/euicc_device_profile_management_controller.rb +5 -5
  39. data/lib/verizon/controllers/exclusions_controller.rb +3 -3
  40. data/lib/verizon/controllers/firmware_v1_controller.rb +5 -5
  41. data/lib/verizon/controllers/firmware_v3_controller.rb +3 -3
  42. data/lib/verizon/controllers/fixed_wireless_qualification_controller.rb +1 -1
  43. data/lib/verizon/controllers/global_reporting_controller.rb +2 -2
  44. data/lib/verizon/controllers/hyper_precise_location_callbacks_controller.rb +3 -3
  45. data/lib/verizon/controllers/m_5g_edge_platforms_controller.rb +2 -2
  46. data/lib/verizon/controllers/m_v2_triggers_controller.rb +61 -0
  47. data/lib/verizon/controllers/managing_esim_profiles_controller.rb +6 -6
  48. data/lib/verizon/controllers/mec_controller.rb +7 -7
  49. data/lib/verizon/controllers/oauth_authorization_controller.rb +3 -3
  50. data/lib/verizon/controllers/performance_metrics_controller.rb +1 -1
  51. data/lib/verizon/controllers/promotion_period_information_controller.rb +4 -4
  52. data/lib/verizon/controllers/retrieve_the_triggers_controller.rb +4 -4
  53. data/lib/verizon/controllers/server_logging_controller.rb +1 -1
  54. data/lib/verizon/controllers/service_endpoints_controller.rb +6 -6
  55. data/lib/verizon/controllers/service_plans_controller.rb +1 -1
  56. data/lib/verizon/controllers/service_profiles_controller.rb +5 -5
  57. data/lib/verizon/controllers/session_management_controller.rb +3 -3
  58. data/lib/verizon/controllers/sim_actions_controller.rb +2 -2
  59. data/lib/verizon/controllers/sim_secure_for_io_t_licenses_controller.rb +2 -2
  60. data/lib/verizon/controllers/sms_controller.rb +3 -3
  61. data/lib/verizon/controllers/software_management_callbacks_v1_controller.rb +3 -3
  62. data/lib/verizon/controllers/software_management_callbacks_v2_controller.rb +4 -4
  63. data/lib/verizon/controllers/software_management_callbacks_v3_controller.rb +4 -4
  64. data/lib/verizon/controllers/software_management_licenses_v1_controller.rb +5 -5
  65. data/lib/verizon/controllers/software_management_licenses_v2_controller.rb +6 -6
  66. data/lib/verizon/controllers/software_management_licenses_v3_controller.rb +3 -3
  67. data/lib/verizon/controllers/software_management_reports_v1_controller.rb +3 -3
  68. data/lib/verizon/controllers/software_management_reports_v2_controller.rb +5 -5
  69. data/lib/verizon/controllers/software_management_reports_v3_controller.rb +3 -3
  70. data/lib/verizon/controllers/software_management_subscriptions_v1_controller.rb +2 -2
  71. data/lib/verizon/controllers/software_management_subscriptions_v2_controller.rb +1 -1
  72. data/lib/verizon/controllers/software_management_subscriptions_v3_controller.rb +1 -1
  73. data/lib/verizon/controllers/targets_controller.rb +4 -4
  74. data/lib/verizon/controllers/thing_space_quality_of_service_api_actions_controller.rb +2 -2
  75. data/lib/verizon/controllers/update_triggers_controller.rb +1 -1
  76. data/lib/verizon/controllers/usage_trigger_management_controller.rb +3 -3
  77. data/lib/verizon/controllers/wireless_network_performance_controller.rb +5 -5
  78. data/lib/verizon/exceptions/hyper_precise_location_result_exception.rb +5 -0
  79. data/lib/verizon/exceptions/rules_engine_rest_error_response_exception.rb +42 -0
  80. data/lib/verizon/http/auth/{oauth_2.rb → thingspace_oauth.rb} +18 -19
  81. data/lib/verizon/http/auth/vz_m2m_token.rb +42 -0
  82. data/lib/verizon/models/account_group_share.rb +55 -0
  83. data/lib/verizon/models/account_group_share_individual.rb +71 -0
  84. data/lib/verizon/models/action_account_group_share.rb +50 -0
  85. data/lib/verizon/models/aggregate_usage_item.rb +13 -2
  86. data/lib/verizon/models/change_plan.rb +69 -0
  87. data/lib/verizon/models/condition_account_group_share.rb +50 -0
  88. data/lib/verizon/models/create_trigger_request_options.rb +2 -2
  89. data/lib/verizon/models/create_trigger_v2_request.rb +113 -0
  90. data/lib/verizon/models/device_id_search.rb +6 -7
  91. data/lib/verizon/models/filter_criteria_account_group_share.rb +51 -0
  92. data/lib/verizon/models/notification.rb +14 -17
  93. data/lib/verizon/models/{oauth_scope_enum.rb → oauth_scope_thingspace_oauth_enum.rb} +18 -3
  94. data/lib/verizon/models/price_plan_trigger.rb +51 -0
  95. data/lib/verizon/models/request_body_for_usage.rb +12 -2
  96. data/lib/verizon/models/{usage_request_body.rb → request_body_for_usage1.rb} +6 -16
  97. data/lib/verizon/models/session_report.rb +15 -2
  98. data/lib/verizon/models/share_plan.rb +73 -0
  99. data/lib/verizon/models/sms_numbers.rb +60 -0
  100. data/lib/verizon/models/trigger_notification.rb +179 -0
  101. data/lib/verizon/models/trigger_type1.rb +2 -2
  102. data/lib/verizon/models/trigger_type2.rb +2 -2
  103. data/lib/verizon/models/trigger_type3.rb +2 -2
  104. data/lib/verizon/models/trigger_v2_response.rb +50 -0
  105. data/lib/verizon/models/triggers_list_options.rb +2 -2
  106. data/lib/verizon/models/update_trigger_request_options.rb +2 -2
  107. data/lib/verizon/models/update_trigger_v2_request.rb +123 -0
  108. data/lib/verizon.rb +23 -4
  109. metadata +21 -5
@@ -20,7 +20,7 @@ module Verizon
20
20
  .body_param(new_parameter(body))
21
21
  .header_param(new_parameter('application/json', key: 'accept'))
22
22
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
23
- .auth(Single.new('oAuth2')))
23
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
24
24
  .response(new_response_handler
25
25
  .deserializer(APIHelper.method(:custom_type_deserializer))
26
26
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -44,7 +44,7 @@ module Verizon
44
44
  .body_param(new_parameter(body))
45
45
  .header_param(new_parameter('application/json', key: 'accept'))
46
46
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
47
- .auth(Single.new('oAuth2')))
47
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
48
48
  .response(new_response_handler
49
49
  .deserializer(APIHelper.method(:custom_type_deserializer))
50
50
  .deserialize_into(AddDevicesResult.method(:from_hash))
@@ -71,7 +71,7 @@ module Verizon
71
71
  .body_param(new_parameter(body))
72
72
  .header_param(new_parameter('application/json', key: 'accept'))
73
73
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
74
- .auth(Single.new('oAuth2')))
74
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
75
75
  .response(new_response_handler
76
76
  .deserializer(APIHelper.method(:custom_type_deserializer))
77
77
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -97,7 +97,7 @@ module Verizon
97
97
  .body_param(new_parameter(body))
98
98
  .header_param(new_parameter('application/json', key: 'accept'))
99
99
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
100
- .auth(Single.new('oAuth2')))
100
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
101
101
  .response(new_response_handler
102
102
  .deserializer(APIHelper.method(:custom_type_deserializer))
103
103
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -124,7 +124,7 @@ module Verizon
124
124
  .body_param(new_parameter(body))
125
125
  .header_param(new_parameter('application/json', key: 'accept'))
126
126
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
127
- .auth(Single.new('oAuth2')))
127
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
128
128
  .response(new_response_handler
129
129
  .deserializer(APIHelper.method(:custom_type_deserializer))
130
130
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -148,7 +148,7 @@ module Verizon
148
148
  .body_param(new_parameter(body))
149
149
  .header_param(new_parameter('application/json', key: 'accept'))
150
150
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
151
- .auth(Single.new('oAuth2')))
151
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
152
152
  .response(new_response_handler
153
153
  .deserializer(APIHelper.method(:custom_type_deserializer))
154
154
  .deserialize_into(DeleteDevicesResult.method(:from_hash))
@@ -175,7 +175,7 @@ module Verizon
175
175
  .body_param(new_parameter(body))
176
176
  .header_param(new_parameter('application/json', key: 'accept'))
177
177
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
178
- .auth(Single.new('oAuth2')))
178
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
179
179
  .response(new_response_handler
180
180
  .deserializer(APIHelper.method(:custom_type_deserializer))
181
181
  .deserialize_into(AccountDeviceListResult.method(:from_hash))
@@ -200,7 +200,7 @@ module Verizon
200
200
  .body_param(new_parameter(body))
201
201
  .header_param(new_parameter('application/json', key: 'accept'))
202
202
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
203
- .auth(Single.new('oAuth2')))
203
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
204
204
  .response(new_response_handler
205
205
  .deserializer(APIHelper.method(:custom_type_deserializer))
206
206
  .deserialize_into(DeviceMismatchListResult.method(:from_hash))
@@ -225,7 +225,7 @@ module Verizon
225
225
  .body_param(new_parameter(body))
226
226
  .header_param(new_parameter('application/json', key: 'accept'))
227
227
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
228
- .auth(Single.new('oAuth2')))
228
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
229
229
  .response(new_response_handler
230
230
  .deserializer(APIHelper.method(:custom_type_deserializer))
231
231
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -250,7 +250,7 @@ module Verizon
250
250
  .body_param(new_parameter(body))
251
251
  .header_param(new_parameter('application/json', key: 'accept'))
252
252
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
253
- .auth(Single.new('oAuth2')))
253
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
254
254
  .response(new_response_handler
255
255
  .deserializer(APIHelper.method(:custom_type_deserializer))
256
256
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -274,7 +274,7 @@ module Verizon
274
274
  .body_param(new_parameter(body))
275
275
  .header_param(new_parameter('application/json', key: 'accept'))
276
276
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
277
- .auth(Single.new('oAuth2')))
277
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
278
278
  .response(new_response_handler
279
279
  .deserializer(APIHelper.method(:custom_type_deserializer))
280
280
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -298,7 +298,7 @@ module Verizon
298
298
  .body_param(new_parameter(body))
299
299
  .header_param(new_parameter('application/json', key: 'accept'))
300
300
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
301
- .auth(Single.new('oAuth2')))
301
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
302
302
  .response(new_response_handler
303
303
  .deserializer(APIHelper.method(:custom_type_deserializer))
304
304
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -322,7 +322,7 @@ module Verizon
322
322
  .body_param(new_parameter(body))
323
323
  .header_param(new_parameter('application/json', key: 'accept'))
324
324
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
325
- .auth(Single.new('oAuth2')))
325
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
326
326
  .response(new_response_handler
327
327
  .deserializer(APIHelper.method(:custom_type_deserializer))
328
328
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -347,7 +347,7 @@ module Verizon
347
347
  .body_param(new_parameter(body))
348
348
  .header_param(new_parameter('application/json', key: 'accept'))
349
349
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
350
- .auth(Single.new('oAuth2')))
350
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
351
351
  .response(new_response_handler
352
352
  .deserializer(APIHelper.method(:custom_type_deserializer))
353
353
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -373,7 +373,7 @@ module Verizon
373
373
  .body_param(new_parameter(body))
374
374
  .header_param(new_parameter('application/json', key: 'accept'))
375
375
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
376
- .auth(Single.new('oAuth2')))
376
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
377
377
  .response(new_response_handler
378
378
  .deserializer(APIHelper.method(:custom_type_deserializer))
379
379
  .deserialize_into(ConnectionHistoryResult.method(:from_hash))
@@ -398,7 +398,7 @@ module Verizon
398
398
  .body_param(new_parameter(body))
399
399
  .header_param(new_parameter('application/json', key: 'accept'))
400
400
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
401
- .auth(Single.new('oAuth2')))
401
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
402
402
  .response(new_response_handler
403
403
  .deserializer(APIHelper.method(:custom_type_deserializer))
404
404
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -423,7 +423,7 @@ module Verizon
423
423
  .body_param(new_parameter(body))
424
424
  .header_param(new_parameter('application/json', key: 'accept'))
425
425
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
426
- .auth(Single.new('oAuth2')))
426
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
427
427
  .response(new_response_handler
428
428
  .deserializer(APIHelper.method(:custom_type_deserializer))
429
429
  .deserialize_into(DeviceExtendedDiagnosticsResult.method(:from_hash))
@@ -448,7 +448,7 @@ module Verizon
448
448
  .body_param(new_parameter(body))
449
449
  .header_param(new_parameter('application/json', key: 'accept'))
450
450
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
451
- .auth(Single.new('oAuth2')))
451
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
452
452
  .response(new_response_handler
453
453
  .deserializer(APIHelper.method(:custom_type_deserializer))
454
454
  .deserialize_into(DeviceProvisioningHistoryListResult.method(:from_hash))
@@ -473,7 +473,7 @@ module Verizon
473
473
  .body_param(new_parameter(body))
474
474
  .header_param(new_parameter('application/json', key: 'accept'))
475
475
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
476
- .auth(Single.new('oAuth2')))
476
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
477
477
  .response(new_response_handler
478
478
  .deserializer(APIHelper.method(:custom_type_deserializer))
479
479
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -499,7 +499,7 @@ module Verizon
499
499
  .body_param(new_parameter(body))
500
500
  .header_param(new_parameter('application/json', key: 'accept'))
501
501
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
502
- .auth(Single.new('oAuth2')))
502
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
503
503
  .response(new_response_handler
504
504
  .deserializer(APIHelper.method(:custom_type_deserializer))
505
505
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -524,7 +524,7 @@ module Verizon
524
524
  .body_param(new_parameter(body))
525
525
  .header_param(new_parameter('application/json', key: 'accept'))
526
526
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
527
- .auth(Single.new('oAuth2')))
527
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
528
528
  .response(new_response_handler
529
529
  .deserializer(APIHelper.method(:custom_type_deserializer))
530
530
  .deserialize_into(DeviceUsageListResult.method(:from_hash))
@@ -549,7 +549,7 @@ module Verizon
549
549
  .body_param(new_parameter(body))
550
550
  .header_param(new_parameter('application/json', key: 'accept'))
551
551
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
552
- .auth(Single.new('oAuth2')))
552
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
553
553
  .response(new_response_handler
554
554
  .deserializer(APIHelper.method(:custom_type_deserializer))
555
555
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -579,7 +579,7 @@ module Verizon
579
579
  .body_param(new_parameter(body))
580
580
  .header_param(new_parameter('application/json', key: 'accept'))
581
581
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
582
- .auth(Single.new('oAuth2')))
582
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
583
583
  .response(new_response_handler
584
584
  .deserializer(APIHelper.method(:custom_type_deserializer))
585
585
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -603,7 +603,7 @@ module Verizon
603
603
  .body_param(new_parameter(body))
604
604
  .header_param(new_parameter('application/json', key: 'accept'))
605
605
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
606
- .auth(Single.new('oAuth2')))
606
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
607
607
  .response(new_response_handler
608
608
  .deserializer(APIHelper.method(:custom_type_deserializer))
609
609
  .deserialize_into(RequestResponse.method(:from_hash))
@@ -628,7 +628,7 @@ module Verizon
628
628
  .body_param(new_parameter(body))
629
629
  .header_param(new_parameter('application/json', key: 'accept'))
630
630
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
631
- .auth(Single.new('oAuth2')))
631
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
632
632
  .response(new_response_handler
633
633
  .deserializer(APIHelper.method(:custom_type_deserializer))
634
634
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -652,7 +652,7 @@ module Verizon
652
652
  .body_param(new_parameter(body))
653
653
  .header_param(new_parameter('application/json', key: 'accept'))
654
654
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
655
- .auth(Single.new('oAuth2')))
655
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
656
656
  .response(new_response_handler
657
657
  .deserializer(APIHelper.method(:custom_type_deserializer))
658
658
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -678,7 +678,7 @@ module Verizon
678
678
  .query_param(new_parameter(account_name, key: 'accountName'))
679
679
  .query_param(new_parameter(label_list, key: 'LabelList'))
680
680
  .header_param(new_parameter('application/json', key: 'accept'))
681
- .auth(Single.new('oAuth2')))
681
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
682
682
  .response(new_response_handler
683
683
  .deserializer(APIHelper.method(:custom_type_deserializer))
684
684
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -703,7 +703,7 @@ module Verizon
703
703
  .body_param(new_parameter(body))
704
704
  .header_param(new_parameter('application/json', key: 'accept'))
705
705
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
706
- .auth(Single.new('oAuth2')))
706
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
707
707
  .response(new_response_handler
708
708
  .deserializer(APIHelper.method(:custom_type_deserializer))
709
709
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -729,7 +729,7 @@ module Verizon
729
729
  .body_param(new_parameter(body))
730
730
  .header_param(new_parameter('application/json', key: 'accept'))
731
731
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
732
- .auth(Single.new('oAuth2')))
732
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
733
733
  .response(new_response_handler
734
734
  .deserializer(APIHelper.method(:custom_type_deserializer))
735
735
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -19,7 +19,7 @@ module Verizon
19
19
  .body_param(new_parameter(body))
20
20
  .header_param(new_parameter('application/json', key: 'accept'))
21
21
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
22
- .auth(Single.new('oAuth2')))
22
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
23
23
  .response(new_response_handler
24
24
  .deserializer(APIHelper.method(:custom_type_deserializer))
25
25
  .deserialize_into(RequestResponse.method(:from_hash))
@@ -31,21 +31,18 @@ module Verizon
31
31
  end
32
32
 
33
33
  # TODO: type endpoint description here
34
- # @param [String] account_name Required parameter: The numeric name of the
35
- # account.
36
- # @param [Array[String]] monitor_ids Required parameter: The array contains
37
- # the monitorIDs (UUID) for which the monitor is to be deleted.
34
+ # @param [StopMonitorRequest] body Optional parameter: Example:
38
35
  # @return [RequestResponse] response from the API call
39
- def stop_device_reachability(account_name,
40
- monitor_ids)
36
+ def stop_device_reachability(body: nil)
41
37
  new_api_call_builder
42
38
  .request(new_request_builder(HttpMethodEnum::DELETE,
43
39
  '/m2m/v1/diagnostics/basic/devicereachability',
44
40
  Server::THINGSPACE)
45
- .query_param(new_parameter(account_name, key: 'accountName'))
46
- .query_param(new_parameter(monitor_ids, key: 'monitorIds'))
41
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
42
+ .body_param(new_parameter(body))
47
43
  .header_param(new_parameter('application/json', key: 'accept'))
48
- .auth(Single.new('oAuth2')))
44
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
45
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
49
46
  .response(new_response_handler
50
47
  .deserializer(APIHelper.method(:custom_type_deserializer))
51
48
  .deserialize_into(RequestResponse.method(:from_hash))
@@ -19,7 +19,7 @@ module Verizon
19
19
  .body_param(new_parameter(body))
20
20
  .header_param(new_parameter('application/json', key: 'accept'))
21
21
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
22
- .auth(Single.new('oAuth2')))
22
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
23
23
  .response(new_response_handler
24
24
  .deserializer(APIHelper.method(:custom_type_deserializer))
25
25
  .deserialize_into(RequestResponse.method(:from_hash))
@@ -42,7 +42,7 @@ module Verizon
42
42
  .body_param(new_parameter(body))
43
43
  .header_param(new_parameter('application/json', key: 'accept'))
44
44
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
45
- .auth(Single.new('oAuth2')))
45
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
46
46
  .response(new_response_handler
47
47
  .deserializer(APIHelper.method(:custom_type_deserializer))
48
48
  .deserialize_into(RequestResponse.method(:from_hash))
@@ -66,7 +66,7 @@ module Verizon
66
66
  .body_param(new_parameter(body))
67
67
  .header_param(new_parameter('application/json', key: 'accept'))
68
68
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
69
- .auth(Single.new('oAuth2')))
69
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
70
70
  .response(new_response_handler
71
71
  .deserializer(APIHelper.method(:custom_type_deserializer))
72
72
  .deserialize_into(RequestResponse.method(:from_hash))
@@ -90,7 +90,7 @@ module Verizon
90
90
  .body_param(new_parameter(body))
91
91
  .header_param(new_parameter('application/json', key: 'accept'))
92
92
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
93
- .auth(Single.new('oAuth2')))
93
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
94
94
  .response(new_response_handler
95
95
  .deserializer(APIHelper.method(:custom_type_deserializer))
96
96
  .deserialize_into(RequestResponse.method(:from_hash))
@@ -21,7 +21,7 @@ module Verizon
21
21
  .body_param(new_parameter(body))
22
22
  .header_param(new_parameter('application/json', key: 'accept'))
23
23
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
24
- .auth(Single.new('oAuth2')))
24
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
25
25
  .response(new_response_handler
26
26
  .deserializer(APIHelper.method(:custom_type_deserializer))
27
27
  .deserialize_into(AggregateSessionReport.method(:from_hash))
@@ -62,7 +62,7 @@ module Verizon
62
62
  .body_param(new_parameter(body))
63
63
  .header_param(new_parameter('application/json', key: 'accept'))
64
64
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
65
- .auth(Single.new('oAuth2')))
65
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
66
66
  .response(new_response_handler
67
67
  .deserializer(APIHelper.method(:custom_type_deserializer))
68
68
  .deserialize_into(AggregatedReportCallbackResult.method(:from_hash))
@@ -102,7 +102,7 @@ module Verizon
102
102
  .body_param(new_parameter(body))
103
103
  .header_param(new_parameter('application/json', key: 'accept'))
104
104
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
105
- .auth(Single.new('oAuth2')))
105
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
106
106
  .response(new_response_handler
107
107
  .deserializer(APIHelper.method(:custom_type_deserializer))
108
108
  .deserialize_into(SessionReport.method(:from_hash))
@@ -21,7 +21,7 @@ module Verizon
21
21
  .query_param(new_parameter(imei, key: 'imei'))
22
22
  .query_param(new_parameter(account_number, key: 'accountNumber'))
23
23
  .header_param(new_parameter('application/json', key: 'accept'))
24
- .auth(Single.new('oAuth2')))
24
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
25
25
  .response(new_response_handler
26
26
  .deserializer(APIHelper.method(:custom_type_deserializer))
27
27
  .deserialize_into(BullseyeServiceResult.method(:from_hash))
@@ -60,7 +60,7 @@ module Verizon
60
60
  .body_param(new_parameter(body))
61
61
  .header_param(new_parameter('application/json', key: 'accept'))
62
62
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
63
- .auth(Single.new('oAuth2')))
63
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
64
64
  .response(new_response_handler
65
65
  .deserializer(APIHelper.method(:custom_type_deserializer))
66
66
  .deserialize_into(BullseyeServiceResult.method(:from_hash))
@@ -21,7 +21,7 @@ module Verizon
21
21
  .body_param(new_parameter(body))
22
22
  .header_param(new_parameter('application/json', key: 'accept'))
23
23
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
24
- .auth(Single.new('oAuth2')))
24
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
25
25
  .response(new_response_handler
26
26
  .deserializer(APIHelper.method(:custom_type_deserializer))
27
27
  .deserialize_into(GIORequestResponse.method(:from_hash))
@@ -48,7 +48,7 @@ module Verizon
48
48
  .should_encode(true))
49
49
  .query_param(new_parameter(mnext, key: 'next'))
50
50
  .header_param(new_parameter('application/json', key: 'accept'))
51
- .auth(Single.new('oAuth2')))
51
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
52
52
  .response(new_response_handler
53
53
  .deserializer(APIHelper.method(:custom_type_deserializer))
54
54
  .deserialize_into(SmsMessagesResponse.method(:from_hash))
@@ -70,7 +70,7 @@ module Verizon
70
70
  .template_param(new_parameter(account_name, key: 'accountName')
71
71
  .should_encode(true))
72
72
  .header_param(new_parameter('application/json', key: 'accept'))
73
- .auth(Single.new('oAuth2')))
73
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
74
74
  .response(new_response_handler
75
75
  .deserializer(APIHelper.method(:custom_type_deserializer))
76
76
  .deserialize_into(SuccessResponse.method(:from_hash))
@@ -94,7 +94,7 @@ module Verizon
94
94
  .body_param(new_parameter(body))
95
95
  .header_param(new_parameter('application/json', key: 'accept'))
96
96
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
97
- .auth(Single.new('oAuth2')))
97
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
98
98
  .response(new_response_handler
99
99
  .deserializer(APIHelper.method(:custom_type_deserializer))
100
100
  .deserialize_into(GIORequestResponse.method(:from_hash))
@@ -19,7 +19,7 @@ module Verizon
19
19
  .template_param(new_parameter(account, key: 'account')
20
20
  .should_encode(true))
21
21
  .header_param(new_parameter('application/json', key: 'accept'))
22
- .auth(Single.new('oAuth2')))
22
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
23
23
  .response(new_response_handler
24
24
  .deserializer(APIHelper.method(:custom_type_deserializer))
25
25
  .deserialize_into(DeviceLocationSubscription.method(:from_hash))
@@ -44,7 +44,7 @@ module Verizon
44
44
  .body_param(new_parameter(body))
45
45
  .header_param(new_parameter('application/json', key: 'accept'))
46
46
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
47
- .auth(Single.new('oAuth2')))
47
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
48
48
  .response(new_response_handler
49
49
  .deserializer(APIHelper.method(:json_deserialize))
50
50
  .is_api_response(true)
@@ -19,7 +19,7 @@ module Verizon
19
19
  .body_param(new_parameter(body))
20
20
  .header_param(new_parameter('application/json', key: 'accept'))
21
21
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
22
- .auth(Single.new('oAuth2')))
22
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
23
23
  .response(new_response_handler
24
24
  .deserializer(APIHelper.method(:custom_type_deserializer))
25
25
  .deserialize_into(Location.method(:from_hash))
@@ -47,7 +47,7 @@ module Verizon
47
47
  .body_param(new_parameter(body))
48
48
  .header_param(new_parameter('application/json', key: 'accept'))
49
49
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
50
- .auth(Single.new('oAuth2')))
50
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
51
51
  .response(new_response_handler
52
52
  .deserializer(APIHelper.method(:custom_type_deserializer))
53
53
  .deserialize_into(SynchronousLocationRequestResult.method(:from_hash))
@@ -74,7 +74,7 @@ module Verizon
74
74
  .template_param(new_parameter(txid, key: 'txid')
75
75
  .should_encode(true))
76
76
  .header_param(new_parameter('application/json', key: 'accept'))
77
- .auth(Single.new('oAuth2')))
77
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
78
78
  .response(new_response_handler
79
79
  .deserializer(APIHelper.method(:custom_type_deserializer))
80
80
  .deserialize_into(TransactionID.method(:from_hash))
@@ -98,7 +98,7 @@ module Verizon
98
98
  .body_param(new_parameter(body))
99
99
  .header_param(new_parameter('application/json', key: 'accept'))
100
100
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
101
- .auth(Single.new('oAuth2')))
101
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
102
102
  .response(new_response_handler
103
103
  .deserializer(APIHelper.method(:custom_type_deserializer))
104
104
  .deserialize_into(AsynchronousLocationRequestResult.method(:from_hash))
@@ -131,7 +131,7 @@ module Verizon
131
131
  .template_param(new_parameter(startindex, key: 'startindex')
132
132
  .should_encode(true))
133
133
  .header_param(new_parameter('application/json', key: 'accept'))
134
- .auth(Single.new('oAuth2')))
134
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
135
135
  .response(new_response_handler
136
136
  .deserializer(APIHelper.method(:custom_type_deserializer))
137
137
  .deserialize_into(LocationReport.method(:from_hash))
@@ -158,7 +158,7 @@ module Verizon
158
158
  .template_param(new_parameter(txid, key: 'txid')
159
159
  .should_encode(true))
160
160
  .header_param(new_parameter('application/json', key: 'accept'))
161
- .auth(Single.new('oAuth2')))
161
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
162
162
  .response(new_response_handler
163
163
  .deserializer(APIHelper.method(:custom_type_deserializer))
164
164
  .deserialize_into(LocationReportStatus.method(:from_hash))
@@ -186,7 +186,7 @@ module Verizon
186
186
  .template_param(new_parameter(txid, key: 'txid')
187
187
  .should_encode(true))
188
188
  .header_param(new_parameter('application/json', key: 'accept'))
189
- .auth(Single.new('oAuth2')))
189
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
190
190
  .response(new_response_handler
191
191
  .deserializer(APIHelper.method(:custom_type_deserializer))
192
192
  .deserialize_into(TransactionID.method(:from_hash))
@@ -17,7 +17,7 @@ module Verizon
17
17
  Server::DEVICE_DIAGNOSTICS)
18
18
  .query_param(new_parameter(account_name, key: 'accountName'))
19
19
  .header_param(new_parameter('application/json', key: 'accept'))
20
- .auth(Single.new('oAuth2')))
20
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
21
21
  .response(new_response_handler
22
22
  .deserializer(APIHelper.method(:custom_type_deserializer))
23
23
  .deserialize_into(DeviceDiagnosticsCallback.method(:from_hash))
@@ -43,7 +43,7 @@ module Verizon
43
43
  .body_param(new_parameter(body))
44
44
  .header_param(new_parameter('application/json', key: 'accept'))
45
45
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
46
- .auth(Single.new('oAuth2')))
46
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
47
47
  .response(new_response_handler
48
48
  .deserializer(APIHelper.method(:custom_type_deserializer))
49
49
  .deserialize_into(DeviceDiagnosticsCallback.method(:from_hash))
@@ -69,7 +69,7 @@ module Verizon
69
69
  .query_param(new_parameter(account_name, key: 'accountName'))
70
70
  .query_param(new_parameter(service_name, key: 'serviceName'))
71
71
  .header_param(new_parameter('application/json', key: 'accept'))
72
- .auth(Single.new('oAuth2')))
72
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
73
73
  .response(new_response_handler
74
74
  .deserializer(APIHelper.method(:custom_type_deserializer))
75
75
  .deserialize_into(DeviceDiagnosticsCallback.method(:from_hash))
@@ -20,7 +20,7 @@ module Verizon
20
20
  .body_param(new_parameter(body))
21
21
  .header_param(new_parameter('application/json', key: 'accept'))
22
22
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
23
- .auth(Single.new('oAuth2')))
23
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
24
24
  .response(new_response_handler
25
25
  .deserializer(APIHelper.method(:custom_type_deserializer))
26
26
  .deserialize_into(DiagnosticsObservationResult.method(:from_hash))
@@ -19,7 +19,7 @@ module Verizon
19
19
  .body_param(new_parameter(body))
20
20
  .header_param(new_parameter('application/json', key: 'accept'))
21
21
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
22
- .auth(Single.new('oAuth2')))
22
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
23
23
  .response(new_response_handler
24
24
  .deserializer(APIHelper.method(:custom_type_deserializer))
25
25
  .deserialize_into(History.method(:from_hash))
@@ -19,7 +19,7 @@ module Verizon
19
19
  .body_param(new_parameter(body))
20
20
  .header_param(new_parameter('application/json', key: 'accept'))
21
21
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
22
- .auth(Single.new('oAuth2')))
22
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
23
23
  .response(new_response_handler
24
24
  .deserializer(APIHelper.method(:custom_type_deserializer))
25
25
  .deserialize_into(DiagnosticsObservationResult.method(:from_hash))
@@ -45,7 +45,7 @@ module Verizon
45
45
  .query_param(new_parameter(transaction_id, key: 'transactionId'))
46
46
  .query_param(new_parameter(account_name, key: 'accountName'))
47
47
  .header_param(new_parameter('application/json', key: 'accept'))
48
- .auth(Single.new('oAuth2')))
48
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
49
49
  .response(new_response_handler
50
50
  .deserializer(APIHelper.method(:custom_type_deserializer))
51
51
  .deserialize_into(DiagnosticsObservationResult.method(:from_hash))
@@ -20,7 +20,7 @@ module Verizon
20
20
  .query_param(new_parameter(account_name, key: 'accountName'))
21
21
  .query_param(new_parameter(devices, key: 'devices'))
22
22
  .header_param(new_parameter('application/json', key: 'accept'))
23
- .auth(Single.new('oAuth2')))
23
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
24
24
  .response(new_response_handler
25
25
  .deserializer(APIHelper.method(:custom_type_deserializer))
26
26
  .deserialize_into(DiagnosticObservationSetting.method(:from_hash))
@@ -16,7 +16,7 @@ module Verizon
16
16
  Server::DEVICE_DIAGNOSTICS)
17
17
  .query_param(new_parameter(account_name, key: 'accountName'))
18
18
  .header_param(new_parameter('application/json', key: 'accept'))
19
- .auth(Single.new('oAuth2')))
19
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
20
20
  .response(new_response_handler
21
21
  .deserializer(APIHelper.method(:custom_type_deserializer))
22
22
  .deserialize_into(DiagnosticsSubscription.method(:from_hash))
@@ -19,7 +19,7 @@ module Verizon
19
19
  .body_param(new_parameter(body))
20
20
  .header_param(new_parameter('application/json', key: 'accept'))
21
21
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
22
- .auth(Single.new('oAuth2')))
22
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
23
23
  .response(new_response_handler
24
24
  .deserializer(APIHelper.method(:custom_type_deserializer))
25
25
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -44,7 +44,7 @@ module Verizon
44
44
  .body_param(new_parameter(body))
45
45
  .header_param(new_parameter('application/json', key: 'accept'))
46
46
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
47
- .auth(Single.new('oAuth2')))
47
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
48
48
  .response(new_response_handler
49
49
  .deserializer(APIHelper.method(:custom_type_deserializer))
50
50
  .deserialize_into(DeviceManagementResult.method(:from_hash))
@@ -67,7 +67,7 @@ module Verizon
67
67
  .body_param(new_parameter(body))
68
68
  .header_param(new_parameter('application/json', key: 'accept'))
69
69
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
70
- .auth(Single.new('oAuth2')))
70
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
71
71
  .response(new_response_handler
72
72
  .deserializer(APIHelper.method(:custom_type_deserializer))
73
73
  .deserialize_into(RequestResponse.method(:from_hash))
@@ -91,7 +91,7 @@ module Verizon
91
91
  .body_param(new_parameter(body))
92
92
  .header_param(new_parameter('application/json', key: 'accept'))
93
93
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
94
- .auth(Single.new('oAuth2')))
94
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
95
95
  .response(new_response_handler
96
96
  .deserializer(APIHelper.method(:custom_type_deserializer))
97
97
  .deserialize_into(RequestResponse.method(:from_hash))
@@ -116,7 +116,7 @@ module Verizon
116
116
  .body_param(new_parameter(body))
117
117
  .header_param(new_parameter('application/json', key: 'accept'))
118
118
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
119
- .auth(Single.new('oAuth2')))
119
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
120
120
  .response(new_response_handler
121
121
  .deserializer(APIHelper.method(:custom_type_deserializer))
122
122
  .deserialize_into(RequestResponse.method(:from_hash))