sdksio-verizon-apis-sdk 1.4.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 -83
  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 +20 -4
  109. metadata +21 -5
@@ -14,7 +14,7 @@ module Verizon
14
14
  '/m2m/v1/triggers',
15
15
  Server::THINGSPACE)
16
16
  .header_param(new_parameter('application/json', key: 'accept'))
17
- .auth(Single.new('oAuth2')))
17
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
18
18
  .response(new_response_handler
19
19
  .deserializer(APIHelper.method(:custom_type_deserializer))
20
20
  .deserialize_into(GetTriggerResponseList.method(:from_hash))
@@ -57,7 +57,7 @@ module Verizon
57
57
  .body_param(new_parameter(body))
58
58
  .header_param(new_parameter('application/json', key: 'accept'))
59
59
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
60
- .auth(Single.new('oAuth2')))
60
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
61
61
  .response(new_response_handler
62
62
  .deserializer(APIHelper.method(:custom_type_deserializer))
63
63
  .deserialize_into(AnomalyDetectionTrigger.method(:from_hash))
@@ -99,7 +99,7 @@ module Verizon
99
99
  .body_param(new_parameter(body))
100
100
  .header_param(new_parameter('application/json', key: 'accept'))
101
101
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
102
- .auth(Single.new('oAuth2')))
102
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
103
103
  .response(new_response_handler
104
104
  .deserializer(APIHelper.method(:custom_type_deserializer))
105
105
  .deserialize_into(AnomalyDetectionTrigger.method(:from_hash))
@@ -139,7 +139,7 @@ module Verizon
139
139
  .template_param(new_parameter(trigger_id, key: 'triggerId')
140
140
  .should_encode(true))
141
141
  .header_param(new_parameter('application/json', key: 'accept'))
142
- .auth(Single.new('oAuth2')))
142
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
143
143
  .response(new_response_handler
144
144
  .deserializer(APIHelper.method(:custom_type_deserializer))
145
145
  .deserialize_into(GetTriggerResponseList.method(:from_hash))
@@ -181,7 +181,7 @@ module Verizon
181
181
  .template_param(new_parameter(trigger_id, key: 'triggerId')
182
182
  .should_encode(true))
183
183
  .header_param(new_parameter('application/json', key: 'accept'))
184
- .auth(Single.new('oAuth2')))
184
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
185
185
  .response(new_response_handler
186
186
  .deserializer(APIHelper.method(:custom_type_deserializer))
187
187
  .deserialize_into(AnomalyDetectionTrigger.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(AnomalyDetectionTrigger.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(IntelligenceSuccessResult.method(:from_hash))
@@ -66,7 +66,7 @@ module Verizon
66
66
  .template_param(new_parameter(trigger_id, key: 'triggerId')
67
67
  .should_encode(true))
68
68
  .header_param(new_parameter('application/json', key: 'accept'))
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(AnomalyTriggerResult.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(ManagedAccountsAddResponse.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(ManagedAccountsProvisionResponse.method(:from_hash))
@@ -69,7 +69,7 @@ module Verizon
69
69
  .body_param(new_parameter(body))
70
70
  .header_param(new_parameter('application/json', key: 'accept'))
71
71
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
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(ManagedAccountCancelResponse.method(:from_hash))
@@ -97,7 +97,7 @@ module Verizon
97
97
  .template_param(new_parameter(service_name, key: 'serviceName')
98
98
  .should_encode(true))
99
99
  .header_param(new_parameter('application/json', key: 'accept'))
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(ManagedAccountsGetAllResponse.method(:from_hash))
@@ -23,7 +23,7 @@ module Verizon
23
23
  .body_param(new_parameter(body))
24
24
  .header_param(new_parameter('application/json', key: 'accept'))
25
25
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
26
- .auth(Single.new('oAuth2')))
26
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
27
27
  .response(new_response_handler
28
28
  .deserializer(APIHelper.method(:custom_type_deserializer))
29
29
  .deserialize_into(CampaignSoftware.method(:from_hash))
@@ -50,7 +50,7 @@ module Verizon
50
50
  .template_param(new_parameter(campaign_id, key: 'campaignId')
51
51
  .should_encode(true))
52
52
  .header_param(new_parameter('application/json', key: 'accept'))
53
- .auth(Single.new('oAuth2')))
53
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
54
54
  .response(new_response_handler
55
55
  .deserializer(APIHelper.method(:custom_type_deserializer))
56
56
  .deserialize_into(CampaignSoftware.method(:from_hash))
@@ -84,7 +84,7 @@ module Verizon
84
84
  .body_param(new_parameter(body))
85
85
  .header_param(new_parameter('application/json', key: 'accept'))
86
86
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
87
- .auth(Single.new('oAuth2')))
87
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
88
88
  .response(new_response_handler
89
89
  .deserializer(APIHelper.method(:custom_type_deserializer))
90
90
  .deserialize_into(V2AddOrRemoveDeviceResult.method(:from_hash))
@@ -112,7 +112,7 @@ module Verizon
112
112
  .template_param(new_parameter(campaign_id, key: 'campaignId')
113
113
  .should_encode(true))
114
114
  .header_param(new_parameter('application/json', key: 'accept'))
115
- .auth(Single.new('oAuth2')))
115
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
116
116
  .response(new_response_handler
117
117
  .deserializer(APIHelper.method(:custom_type_deserializer))
118
118
  .deserialize_into(FotaV2SuccessResult.method(:from_hash))
@@ -146,7 +146,7 @@ module Verizon
146
146
  .body_param(new_parameter(body))
147
147
  .header_param(new_parameter('application/json', key: 'accept'))
148
148
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
149
- .auth(Single.new('oAuth2')))
149
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
150
150
  .response(new_response_handler
151
151
  .deserializer(APIHelper.method(:custom_type_deserializer))
152
152
  .deserialize_into(CampaignSoftware.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(UploadAndScheduleFileResponse.method(:from_hash))
@@ -204,7 +204,7 @@ module Verizon
204
204
  .body_param(new_parameter(body))
205
205
  .header_param(new_parameter('application/json', key: 'accept'))
206
206
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
207
- .auth(Single.new('oAuth2')))
207
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
208
208
  .response(new_response_handler
209
209
  .deserializer(APIHelper.method(:custom_type_deserializer))
210
210
  .deserialize_into(UploadAndScheduleFileResponse.method(:from_hash))
@@ -24,7 +24,7 @@ module Verizon
24
24
  .body_param(new_parameter(body))
25
25
  .header_param(new_parameter('application/json', key: 'accept'))
26
26
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
27
- .auth(Single.new('oAuth2')))
27
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
28
28
  .response(new_response_handler
29
29
  .deserializer(APIHelper.method(:custom_type_deserializer))
30
30
  .deserialize_into(FirmwareCampaign.method(:from_hash))
@@ -58,7 +58,7 @@ module Verizon
58
58
  .body_param(new_parameter(body))
59
59
  .header_param(new_parameter('application/json', key: 'accept'))
60
60
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
61
- .auth(Single.new('oAuth2')))
61
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
62
62
  .response(new_response_handler
63
63
  .deserializer(APIHelper.method(:custom_type_deserializer))
64
64
  .deserialize_into(V3AddOrRemoveDeviceResult.method(:from_hash))
@@ -92,7 +92,7 @@ module Verizon
92
92
  .body_param(new_parameter(body))
93
93
  .header_param(new_parameter('application/json', key: 'accept'))
94
94
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
95
- .auth(Single.new('oAuth2')))
95
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
96
96
  .response(new_response_handler
97
97
  .deserializer(APIHelper.method(:custom_type_deserializer))
98
98
  .deserialize_into(FirmwareCampaign.method(:from_hash))
@@ -120,7 +120,7 @@ module Verizon
120
120
  .template_param(new_parameter(campaign_id, key: 'campaignId')
121
121
  .should_encode(true))
122
122
  .header_param(new_parameter('application/json', key: 'accept'))
123
- .auth(Single.new('oAuth2')))
123
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
124
124
  .response(new_response_handler
125
125
  .deserializer(APIHelper.method(:custom_type_deserializer))
126
126
  .deserialize_into(Campaign.method(:from_hash))
@@ -148,7 +148,7 @@ module Verizon
148
148
  .template_param(new_parameter(campaign_id, key: 'campaignId')
149
149
  .should_encode(true))
150
150
  .header_param(new_parameter('application/json', key: 'accept'))
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(FotaV3SuccessResult.method(:from_hash))
@@ -18,7 +18,7 @@ module Verizon
18
18
  .template_param(new_parameter(account, key: 'account')
19
19
  .should_encode(true))
20
20
  .header_param(new_parameter('application/json', key: 'accept'))
21
- .auth(Single.new('oAuth2')))
21
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
22
22
  .response(new_response_handler
23
23
  .deserializer(APIHelper.method(:custom_type_deserializer))
24
24
  .deserialize_into(DeviceLoggingStatus.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(DeviceLoggingStatus.method(:from_hash))
@@ -72,7 +72,7 @@ module Verizon
72
72
  .template_param(new_parameter(account, key: 'account')
73
73
  .should_encode(true))
74
74
  .query_param(new_parameter(device_ids, key: 'deviceIds'))
75
- .auth(Single.new('oAuth2')))
75
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
76
76
  .response(new_response_handler
77
77
  .is_response_void(true)
78
78
  .is_api_response(true)
@@ -97,7 +97,7 @@ module Verizon
97
97
  .template_param(new_parameter(device_id, key: 'deviceId')
98
98
  .should_encode(true))
99
99
  .header_param(new_parameter('application/json', key: 'accept'))
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(DeviceLoggingStatus.method(:from_hash))
@@ -122,7 +122,7 @@ module Verizon
122
122
  .should_encode(true))
123
123
  .template_param(new_parameter(device_id, key: 'deviceId')
124
124
  .should_encode(true))
125
- .auth(Single.new('oAuth2')))
125
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
126
126
  .response(new_response_handler
127
127
  .is_response_void(true)
128
128
  .is_api_response(true)
@@ -147,7 +147,7 @@ module Verizon
147
147
  .template_param(new_parameter(device_id, key: 'deviceId')
148
148
  .should_encode(true))
149
149
  .header_param(new_parameter('application/json', key: 'accept'))
150
- .auth(Single.new('oAuth2')))
150
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
151
151
  .response(new_response_handler
152
152
  .deserializer(APIHelper.method(:custom_type_deserializer))
153
153
  .deserialize_into(DeviceLog.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(ChangeConfigurationResponse.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(FindDeviceByPropertyResponseList.method(:from_hash))
@@ -64,7 +64,7 @@ module Verizon
64
64
  .body_param(new_parameter(body))
65
65
  .header_param(new_parameter('application/json', key: 'accept'))
66
66
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
67
- .auth(Single.new('oAuth2')))
67
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
68
68
  .response(new_response_handler
69
69
  .deserializer(APIHelper.method(:custom_type_deserializer))
70
70
  .deserialize_into(SearchDeviceByPropertyResponseList.method(:from_hash))
@@ -87,7 +87,7 @@ module Verizon
87
87
  .body_param(new_parameter(body))
88
88
  .header_param(new_parameter('application/json', key: 'accept'))
89
89
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
90
- .auth(Single.new('oAuth2')))
90
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
91
91
  .response(new_response_handler
92
92
  .deserializer(APIHelper.method(:custom_type_deserializer))
93
93
  .deserialize_into(SearchDeviceEventHistoryResponseList.method(:from_hash))
@@ -114,7 +114,7 @@ module Verizon
114
114
  .body_param(new_parameter(body))
115
115
  .header_param(new_parameter('application/json', key: 'accept'))
116
116
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
117
- .auth(Single.new('oAuth2')))
117
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
118
118
  .response(new_response_handler
119
119
  .deserializer(APIHelper.method(:custom_type_deserializer))
120
120
  .deserialize_into(SearchSensorHistoryResponseList.method(:from_hash))
@@ -134,7 +134,7 @@ module Verizon
134
134
  .header_param(new_parameter('application/json', key: 'Content-Type'))
135
135
  .body_param(new_parameter(body))
136
136
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
137
- .auth(Single.new('oAuth2')))
137
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
138
138
  .response(new_response_handler
139
139
  .is_response_void(true)
140
140
  .is_api_response(true))
@@ -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(Subscription.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(Subscription.method(:from_hash))
@@ -63,7 +63,7 @@ module Verizon
63
63
  .header_param(new_parameter('application/json', key: 'Content-Type'))
64
64
  .body_param(new_parameter(body))
65
65
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
66
- .auth(Single.new('oAuth2')))
66
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
67
67
  .response(new_response_handler
68
68
  .is_response_void(true)
69
69
  .is_api_response(true))
@@ -23,7 +23,7 @@ module Verizon
23
23
  .should_encode(true))
24
24
  .query_param(new_parameter(distribution_type, key: 'distributionType'))
25
25
  .header_param(new_parameter('application/json', key: 'accept'))
26
- .auth(Single.new('oAuth2')))
26
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
27
27
  .response(new_response_handler
28
28
  .deserializer(APIHelper.method(:custom_type_deserializer))
29
29
  .deserialize_into(RetrievesAvailableFilesResponseList.method(:from_hash))
@@ -66,7 +66,7 @@ module Verizon
66
66
  .form_param(new_parameter(model, key: 'model'))
67
67
  .form_param(new_parameter(local_target_path, key: 'localTargetPath'))
68
68
  .header_param(new_parameter('application/json', key: 'accept'))
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(UploadConfigurationFilesResponse.method(:from_hash))
@@ -18,7 +18,7 @@ module Verizon
18
18
  .template_param(new_parameter(aname, key: 'aname')
19
19
  .should_encode(true))
20
20
  .header_param(new_parameter('application/json', key: 'accept'))
21
- .auth(Single.new('oAuth2')))
21
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
22
22
  .response(new_response_handler
23
23
  .deserializer(APIHelper.method(:custom_type_deserializer))
24
24
  .deserialize_into(ConnectivityManagementCallback.method(:from_hash))
@@ -48,7 +48,7 @@ module Verizon
48
48
  .body_param(new_parameter(body))
49
49
  .header_param(new_parameter('application/json', key: 'accept'))
50
50
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
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(CallbackActionResult.method(:from_hash))
@@ -75,7 +75,7 @@ module Verizon
75
75
  .template_param(new_parameter(sname, key: 'sname')
76
76
  .should_encode(true))
77
77
  .header_param(new_parameter('application/json', key: 'accept'))
78
- .auth(Single.new('oAuth2')))
78
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
79
79
  .response(new_response_handler
80
80
  .deserializer(APIHelper.method(:custom_type_deserializer))
81
81
  .deserialize_into(CallbackActionResult.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(GIORequestResponse.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(GIORequestResponse.method(:from_hash))
@@ -70,7 +70,7 @@ module Verizon
70
70
  .template_param(new_parameter(request_id, key: 'requestID')
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(StatusResponse.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(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))
@@ -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(ConnectivityManagementSuccessResult.method(:from_hash))
@@ -43,7 +43,7 @@ module Verizon
43
43
  .template_param(new_parameter(aname, key: 'aname')
44
44
  .should_encode(true))
45
45
  .header_param(new_parameter('application/json', key: 'accept'))
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(DeviceGroup.method(:from_hash))
@@ -76,7 +76,7 @@ module Verizon
76
76
  .should_encode(true))
77
77
  .query_param(new_parameter(mnext, key: 'next'))
78
78
  .header_param(new_parameter('application/json', key: 'accept'))
79
- .auth(Single.new('oAuth2')))
79
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
80
80
  .response(new_response_handler
81
81
  .deserializer(APIHelper.method(:custom_type_deserializer))
82
82
  .deserialize_into(DeviceGroupDevicesData.method(:from_hash))
@@ -109,7 +109,7 @@ module Verizon
109
109
  .body_param(new_parameter(body))
110
110
  .header_param(new_parameter('application/json', key: 'accept'))
111
111
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
112
- .auth(Single.new('oAuth2')))
112
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
113
113
  .response(new_response_handler
114
114
  .deserializer(APIHelper.method(:custom_type_deserializer))
115
115
  .deserialize_into(ConnectivityManagementSuccessResult.method(:from_hash))
@@ -136,7 +136,7 @@ module Verizon
136
136
  .template_param(new_parameter(gname, key: 'gname')
137
137
  .should_encode(true))
138
138
  .header_param(new_parameter('application/json', key: 'accept'))
139
- .auth(Single.new('oAuth2')))
139
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
140
140
  .response(new_response_handler
141
141
  .deserializer(APIHelper.method(:custom_type_deserializer))
142
142
  .deserialize_into(ConnectivityManagementSuccessResult.method(:from_hash))
@@ -17,7 +17,7 @@ module Verizon
17
17
  .template_param(new_parameter(account, key: 'account')
18
18
  .should_encode(true))
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(DeviceLocationCallback.method(:from_hash))
@@ -46,7 +46,7 @@ module Verizon
46
46
  .body_param(new_parameter(body))
47
47
  .header_param(new_parameter('application/json', key: 'accept'))
48
48
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
49
- .auth(Single.new('oAuth2')))
49
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
50
50
  .response(new_response_handler
51
51
  .deserializer(APIHelper.method(:custom_type_deserializer))
52
52
  .deserialize_into(CallbackRegistrationResult.method(:from_hash))
@@ -73,7 +73,7 @@ module Verizon
73
73
  .template_param(new_parameter(service, key: 'service')
74
74
  .should_encode(true))
75
75
  .header_param(new_parameter('application/json', key: 'accept'))
76
- .auth(Single.new('oAuth2')))
76
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
77
77
  .response(new_response_handler
78
78
  .deserializer(APIHelper.method(:custom_type_deserializer))
79
79
  .deserialize_into(DeviceLocationSuccessResult.method(:from_hash))