sdksio-verizon-apis-sdk 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +99 -86
- data/lib/verizon/client.rb +19 -16
- data/lib/verizon/configuration.rb +34 -83
- data/lib/verizon/controllers/account_devices_controller.rb +2 -2
- data/lib/verizon/controllers/account_requests_controller.rb +1 -1
- data/lib/verizon/controllers/account_subscriptions_controller.rb +1 -1
- data/lib/verizon/controllers/accounts_controller.rb +3 -3
- data/lib/verizon/controllers/anomaly_settings_controller.rb +3 -3
- data/lib/verizon/controllers/anomaly_triggers_controller.rb +5 -5
- data/lib/verizon/controllers/anomaly_triggers_v2_controller.rb +3 -3
- data/lib/verizon/controllers/billing_controller.rb +4 -4
- data/lib/verizon/controllers/campaigns_v2_controller.rb +7 -7
- data/lib/verizon/controllers/campaigns_v3_controller.rb +5 -5
- data/lib/verizon/controllers/client_logging_controller.rb +6 -6
- data/lib/verizon/controllers/cloud_connector_devices_controller.rb +6 -6
- data/lib/verizon/controllers/cloud_connector_subscriptions_controller.rb +3 -3
- data/lib/verizon/controllers/configuration_files_controller.rb +2 -2
- data/lib/verizon/controllers/connectivity_callbacks_controller.rb +3 -3
- data/lib/verizon/controllers/device_actions_controller.rb +3 -3
- data/lib/verizon/controllers/device_diagnostics_controller.rb +2 -2
- data/lib/verizon/controllers/device_groups_controller.rb +5 -5
- data/lib/verizon/controllers/device_location_callbacks_controller.rb +3 -3
- data/lib/verizon/controllers/device_management_controller.rb +29 -29
- data/lib/verizon/controllers/device_monitoring_controller.rb +7 -10
- data/lib/verizon/controllers/device_profile_management_controller.rb +4 -4
- data/lib/verizon/controllers/device_reports_controller.rb +3 -3
- data/lib/verizon/controllers/device_service_management_controller.rb +2 -2
- data/lib/verizon/controllers/device_sms_messaging_controller.rb +4 -4
- data/lib/verizon/controllers/devices_location_subscriptions_controller.rb +2 -2
- data/lib/verizon/controllers/devices_locations_controller.rb +7 -7
- data/lib/verizon/controllers/diagnostics_callbacks_controller.rb +3 -3
- data/lib/verizon/controllers/diagnostics_factory_reset_controller.rb +1 -1
- data/lib/verizon/controllers/diagnostics_history_controller.rb +1 -1
- data/lib/verizon/controllers/diagnostics_observations_controller.rb +2 -2
- data/lib/verizon/controllers/diagnostics_settings_controller.rb +1 -1
- data/lib/verizon/controllers/diagnostics_subscriptions_controller.rb +1 -1
- data/lib/verizon/controllers/euicc_device_profile_management_controller.rb +5 -5
- data/lib/verizon/controllers/exclusions_controller.rb +3 -3
- data/lib/verizon/controllers/firmware_v1_controller.rb +5 -5
- data/lib/verizon/controllers/firmware_v3_controller.rb +3 -3
- data/lib/verizon/controllers/fixed_wireless_qualification_controller.rb +1 -1
- data/lib/verizon/controllers/global_reporting_controller.rb +2 -2
- data/lib/verizon/controllers/hyper_precise_location_callbacks_controller.rb +3 -3
- data/lib/verizon/controllers/m_5g_edge_platforms_controller.rb +2 -2
- data/lib/verizon/controllers/m_v2_triggers_controller.rb +61 -0
- data/lib/verizon/controllers/managing_esim_profiles_controller.rb +6 -6
- data/lib/verizon/controllers/mec_controller.rb +7 -7
- data/lib/verizon/controllers/oauth_authorization_controller.rb +3 -3
- data/lib/verizon/controllers/performance_metrics_controller.rb +1 -1
- data/lib/verizon/controllers/promotion_period_information_controller.rb +4 -4
- data/lib/verizon/controllers/retrieve_the_triggers_controller.rb +4 -4
- data/lib/verizon/controllers/server_logging_controller.rb +1 -1
- data/lib/verizon/controllers/service_endpoints_controller.rb +6 -6
- data/lib/verizon/controllers/service_plans_controller.rb +1 -1
- data/lib/verizon/controllers/service_profiles_controller.rb +5 -5
- data/lib/verizon/controllers/session_management_controller.rb +3 -3
- data/lib/verizon/controllers/sim_actions_controller.rb +2 -2
- data/lib/verizon/controllers/sim_secure_for_io_t_licenses_controller.rb +2 -2
- data/lib/verizon/controllers/sms_controller.rb +3 -3
- data/lib/verizon/controllers/software_management_callbacks_v1_controller.rb +3 -3
- data/lib/verizon/controllers/software_management_callbacks_v2_controller.rb +4 -4
- data/lib/verizon/controllers/software_management_callbacks_v3_controller.rb +4 -4
- data/lib/verizon/controllers/software_management_licenses_v1_controller.rb +5 -5
- data/lib/verizon/controllers/software_management_licenses_v2_controller.rb +6 -6
- data/lib/verizon/controllers/software_management_licenses_v3_controller.rb +3 -3
- data/lib/verizon/controllers/software_management_reports_v1_controller.rb +3 -3
- data/lib/verizon/controllers/software_management_reports_v2_controller.rb +5 -5
- data/lib/verizon/controllers/software_management_reports_v3_controller.rb +3 -3
- data/lib/verizon/controllers/software_management_subscriptions_v1_controller.rb +2 -2
- data/lib/verizon/controllers/software_management_subscriptions_v2_controller.rb +1 -1
- data/lib/verizon/controllers/software_management_subscriptions_v3_controller.rb +1 -1
- data/lib/verizon/controllers/targets_controller.rb +4 -4
- data/lib/verizon/controllers/thing_space_quality_of_service_api_actions_controller.rb +2 -2
- data/lib/verizon/controllers/update_triggers_controller.rb +1 -1
- data/lib/verizon/controllers/usage_trigger_management_controller.rb +3 -3
- data/lib/verizon/controllers/wireless_network_performance_controller.rb +5 -5
- data/lib/verizon/exceptions/hyper_precise_location_result_exception.rb +5 -0
- data/lib/verizon/exceptions/rules_engine_rest_error_response_exception.rb +42 -0
- data/lib/verizon/http/auth/{oauth_2.rb → thingspace_oauth.rb} +18 -19
- data/lib/verizon/http/auth/vz_m2m_token.rb +42 -0
- data/lib/verizon/models/account_group_share.rb +55 -0
- data/lib/verizon/models/account_group_share_individual.rb +71 -0
- data/lib/verizon/models/action_account_group_share.rb +50 -0
- data/lib/verizon/models/aggregate_usage_item.rb +13 -2
- data/lib/verizon/models/change_plan.rb +69 -0
- data/lib/verizon/models/condition_account_group_share.rb +50 -0
- data/lib/verizon/models/create_trigger_request_options.rb +2 -2
- data/lib/verizon/models/create_trigger_v2_request.rb +113 -0
- data/lib/verizon/models/device_id_search.rb +6 -7
- data/lib/verizon/models/filter_criteria_account_group_share.rb +51 -0
- data/lib/verizon/models/notification.rb +14 -17
- data/lib/verizon/models/{oauth_scope_enum.rb → oauth_scope_thingspace_oauth_enum.rb} +18 -3
- data/lib/verizon/models/price_plan_trigger.rb +51 -0
- data/lib/verizon/models/request_body_for_usage.rb +12 -2
- data/lib/verizon/models/{usage_request_body.rb → request_body_for_usage1.rb} +6 -16
- data/lib/verizon/models/session_report.rb +15 -2
- data/lib/verizon/models/share_plan.rb +73 -0
- data/lib/verizon/models/sms_numbers.rb +60 -0
- data/lib/verizon/models/trigger_notification.rb +179 -0
- data/lib/verizon/models/trigger_type1.rb +2 -2
- data/lib/verizon/models/trigger_type2.rb +2 -2
- data/lib/verizon/models/trigger_type3.rb +2 -2
- data/lib/verizon/models/trigger_v2_response.rb +50 -0
- data/lib/verizon/models/triggers_list_options.rb +2 -2
- data/lib/verizon/models/update_trigger_request_options.rb +2 -2
- data/lib/verizon/models/update_trigger_v2_request.rb +123 -0
- data/lib/verizon.rb +20 -4
- metadata +21 -5
@@ -22,7 +22,7 @@ module Verizon
|
|
22
22
|
.header_param(new_parameter(x_request_id, key: 'X-Request-ID'))
|
23
23
|
.header_param(new_parameter('application/json', key: 'accept'))
|
24
24
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
25
|
-
.auth(
|
25
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
26
26
|
.response(new_response_handler
|
27
27
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
28
28
|
.deserialize_into(SecuritySuccessResult.method(:from_hash))
|
@@ -62,7 +62,7 @@ module Verizon
|
|
62
62
|
Server::M2M)
|
63
63
|
.header_param(new_parameter(x_request_id, key: 'X-Request-ID'))
|
64
64
|
.header_param(new_parameter('application/json', key: 'accept'))
|
65
|
-
.auth(
|
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(SecuritySuccessResult.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(
|
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))
|
@@ -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(
|
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(SMSMessagesQueryResult.method(:from_hash))
|
@@ -74,7 +74,7 @@ module Verizon
|
|
74
74
|
.template_param(new_parameter(aname, key: 'aname')
|
75
75
|
.should_encode(true))
|
76
76
|
.header_param(new_parameter('application/json', key: 'accept'))
|
77
|
-
.auth(
|
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(ConnectivityManagementSuccessResult.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(
|
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(RegisteredCallbacks.method(:from_hash))
|
@@ -50,7 +50,7 @@ module Verizon
|
|
50
50
|
.body_param(new_parameter(body))
|
51
51
|
.header_param(new_parameter('application/json', key: 'accept'))
|
52
52
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
53
|
-
.auth(
|
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(FotaV1CallbackRegistrationResult.method(:from_hash))
|
@@ -79,7 +79,7 @@ module Verizon
|
|
79
79
|
.template_param(new_parameter(service, key: 'service')
|
80
80
|
.should_encode(true))
|
81
81
|
.header_param(new_parameter('application/json', key: 'accept'))
|
82
|
-
.auth(
|
82
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
83
83
|
.response(new_response_handler
|
84
84
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
85
85
|
.deserialize_into(FotaV1SuccessResult.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(
|
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(CallbackSummary.method(:from_hash))
|
@@ -45,7 +45,7 @@ module Verizon
|
|
45
45
|
.body_param(new_parameter(body))
|
46
46
|
.header_param(new_parameter('application/json', key: 'accept'))
|
47
47
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
48
|
-
.auth(
|
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(FotaV2CallbackRegistrationResult.method(:from_hash))
|
@@ -73,7 +73,7 @@ module Verizon
|
|
73
73
|
.body_param(new_parameter(body))
|
74
74
|
.header_param(new_parameter('application/json', key: 'accept'))
|
75
75
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
76
|
-
.auth(
|
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(FotaV2CallbackRegistrationResult.method(:from_hash))
|
@@ -95,7 +95,7 @@ module Verizon
|
|
95
95
|
.template_param(new_parameter(account, key: 'account')
|
96
96
|
.should_encode(true))
|
97
97
|
.header_param(new_parameter('application/json', key: 'accept'))
|
98
|
-
.auth(
|
98
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
99
99
|
.response(new_response_handler
|
100
100
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
101
101
|
.deserialize_into(FotaV2SuccessResult.method(:from_hash))
|
@@ -17,7 +17,7 @@ module Verizon
|
|
17
17
|
.template_param(new_parameter(acc, key: 'acc')
|
18
18
|
.should_encode(true))
|
19
19
|
.header_param(new_parameter('application/json', key: 'accept'))
|
20
|
-
.auth(
|
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(FotaV3CallbackSummary.method(:from_hash))
|
@@ -45,7 +45,7 @@ module Verizon
|
|
45
45
|
.body_param(new_parameter(body))
|
46
46
|
.header_param(new_parameter('application/json', key: 'accept'))
|
47
47
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
48
|
-
.auth(
|
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(FotaV3CallbackRegistrationResult.method(:from_hash))
|
@@ -73,7 +73,7 @@ module Verizon
|
|
73
73
|
.body_param(new_parameter(body))
|
74
74
|
.header_param(new_parameter('application/json', key: 'accept'))
|
75
75
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
76
|
-
.auth(
|
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(FotaV3CallbackRegistrationResult.method(:from_hash))
|
@@ -95,7 +95,7 @@ module Verizon
|
|
95
95
|
.template_param(new_parameter(acc, key: 'acc')
|
96
96
|
.should_encode(true))
|
97
97
|
.header_param(new_parameter('application/json', key: 'accept'))
|
98
|
-
.auth(
|
98
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
99
99
|
.response(new_response_handler
|
100
100
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
101
101
|
.deserialize_into(FotaV3SuccessResult.method(:from_hash))
|
@@ -27,7 +27,7 @@ module Verizon
|
|
27
27
|
.body_param(new_parameter(body))
|
28
28
|
.header_param(new_parameter('application/json', key: 'accept'))
|
29
29
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
30
|
-
.auth(
|
30
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
31
31
|
.response(new_response_handler
|
32
32
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
33
33
|
.deserialize_into(V1LicensesAssignedRemovedResult.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(
|
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(V1LicensesAssignedRemovedResult.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(
|
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(V1ListOfLicensesToRemoveResult.method(:from_hash))
|
@@ -115,7 +115,7 @@ module Verizon
|
|
115
115
|
.template_param(new_parameter(account, key: 'account')
|
116
116
|
.should_encode(true))
|
117
117
|
.header_param(new_parameter('application/json', key: 'accept'))
|
118
|
-
.auth(
|
118
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
119
119
|
.response(new_response_handler
|
120
120
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
121
121
|
.deserialize_into(FotaV1SuccessResult.method(:from_hash))
|
@@ -148,7 +148,7 @@ module Verizon
|
|
148
148
|
.template_param(new_parameter(start_index, key: 'startIndex')
|
149
149
|
.should_encode(true))
|
150
150
|
.header_param(new_parameter('application/json', key: 'accept'))
|
151
|
-
.auth(
|
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(V1ListOfLicensesToRemove.method(:from_hash))
|
@@ -21,7 +21,7 @@ module Verizon
|
|
21
21
|
.should_encode(true))
|
22
22
|
.query_param(new_parameter(last_seen_device_id, key: 'lastSeenDeviceId'))
|
23
23
|
.header_param(new_parameter('application/json', key: 'accept'))
|
24
|
-
.auth(
|
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(V2LicenseSummary.method(:from_hash))
|
@@ -50,7 +50,7 @@ module Verizon
|
|
50
50
|
.body_param(new_parameter(body))
|
51
51
|
.header_param(new_parameter('application/json', key: 'accept'))
|
52
52
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
53
|
-
.auth(
|
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(V2LicensesAssignedRemovedResult.method(:from_hash))
|
@@ -79,7 +79,7 @@ module Verizon
|
|
79
79
|
.body_param(new_parameter(body))
|
80
80
|
.header_param(new_parameter('application/json', key: 'accept'))
|
81
81
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
82
|
-
.auth(
|
82
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
83
83
|
.response(new_response_handler
|
84
84
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
85
85
|
.deserialize_into(V2LicensesAssignedRemovedResult.method(:from_hash))
|
@@ -107,7 +107,7 @@ module Verizon
|
|
107
107
|
.should_encode(true))
|
108
108
|
.query_param(new_parameter(start_index, key: 'startIndex'))
|
109
109
|
.header_param(new_parameter('application/json', key: 'accept'))
|
110
|
-
.auth(
|
110
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
111
111
|
.response(new_response_handler
|
112
112
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
113
113
|
.deserialize_into(V2ListOfLicensesToRemove.method(:from_hash))
|
@@ -138,7 +138,7 @@ module Verizon
|
|
138
138
|
.body_param(new_parameter(body))
|
139
139
|
.header_param(new_parameter('application/json', key: 'accept'))
|
140
140
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
141
|
-
.auth(
|
141
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
142
142
|
.response(new_response_handler
|
143
143
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
144
144
|
.deserialize_into(V2ListOfLicensesToRemoveResult.method(:from_hash))
|
@@ -163,7 +163,7 @@ module Verizon
|
|
163
163
|
.template_param(new_parameter(account, key: 'account')
|
164
164
|
.should_encode(true))
|
165
165
|
.header_param(new_parameter('application/json', key: 'accept'))
|
166
|
-
.auth(
|
166
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
167
167
|
.response(new_response_handler
|
168
168
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
169
169
|
.deserialize_into(FotaV2SuccessResult.method(:from_hash))
|
@@ -21,7 +21,7 @@ module Verizon
|
|
21
21
|
.should_encode(true))
|
22
22
|
.query_param(new_parameter(last_seen_device_id, key: 'lastSeenDeviceId'))
|
23
23
|
.header_param(new_parameter('application/json', key: 'accept'))
|
24
|
-
.auth(
|
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(V3LicenseSummary.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(
|
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(V3LicenseAssignedRemovedResult.method(:from_hash))
|
@@ -75,7 +75,7 @@ module Verizon
|
|
75
75
|
.body_param(new_parameter(body))
|
76
76
|
.header_param(new_parameter('application/json', key: 'accept'))
|
77
77
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
78
|
-
.auth(
|
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(V3LicenseAssignedRemovedResult.method(:from_hash))
|
@@ -27,7 +27,7 @@ module Verizon
|
|
27
27
|
.template_param(new_parameter(start_index, key: 'startIndex')
|
28
28
|
.should_encode(true))
|
29
29
|
.header_param(new_parameter('application/json', key: 'accept'))
|
30
|
-
.auth(
|
30
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
31
31
|
.response(new_response_handler
|
32
32
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
33
33
|
.deserialize_into(DeviceListQueryResult.method(:from_hash))
|
@@ -62,7 +62,7 @@ module Verizon
|
|
62
62
|
.template_param(new_parameter(start_index, key: 'startIndex')
|
63
63
|
.should_encode(true))
|
64
64
|
.header_param(new_parameter('application/json', key: 'accept'))
|
65
|
-
.auth(
|
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(UpgradeListQueryResult.method(:from_hash))
|
@@ -90,7 +90,7 @@ module Verizon
|
|
90
90
|
.template_param(new_parameter(device_id, key: 'deviceId')
|
91
91
|
.should_encode(true))
|
92
92
|
.header_param(new_parameter('application/json', key: 'accept'))
|
93
|
-
.auth(
|
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(DeviceUpgradeHistory.method(:from_hash))
|
@@ -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(
|
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(SoftwarePackage.method(:from_hash))
|
@@ -55,7 +55,7 @@ module Verizon
|
|
55
55
|
.query_param(new_parameter(last_seen_device_id, key: 'lastSeenDeviceId'))
|
56
56
|
.query_param(new_parameter(distribution_type, key: 'distributionType'))
|
57
57
|
.header_param(new_parameter('application/json', key: 'accept'))
|
58
|
-
.auth(
|
58
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
59
59
|
.response(new_response_handler
|
60
60
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
61
61
|
.deserialize_into(V2AccountDeviceList.method(:from_hash))
|
@@ -82,7 +82,7 @@ module Verizon
|
|
82
82
|
.template_param(new_parameter(device_id, key: 'deviceId')
|
83
83
|
.should_encode(true))
|
84
84
|
.header_param(new_parameter('application/json', key: 'accept'))
|
85
|
-
.auth(
|
85
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
86
86
|
.response(new_response_handler
|
87
87
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
88
88
|
.deserialize_into(DeviceSoftwareUpgrade.method(:from_hash))
|
@@ -114,7 +114,7 @@ module Verizon
|
|
114
114
|
.query_param(new_parameter(campaign_status, key: 'campaignStatus'))
|
115
115
|
.query_param(new_parameter(last_seen_campaign_id, key: 'lastSeenCampaignId'))
|
116
116
|
.header_param(new_parameter('application/json', key: 'accept'))
|
117
|
-
.auth(
|
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(V2CampaignHistory.method(:from_hash))
|
@@ -145,7 +145,7 @@ module Verizon
|
|
145
145
|
.should_encode(true))
|
146
146
|
.query_param(new_parameter(last_seen_device_id, key: 'lastSeenDeviceId'))
|
147
147
|
.header_param(new_parameter('application/json', key: 'accept'))
|
148
|
-
.auth(
|
148
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
149
149
|
.response(new_response_handler
|
150
150
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
151
151
|
.deserialize_into(V2CampaignDevice.method(:from_hash))
|
@@ -26,7 +26,7 @@ module Verizon
|
|
26
26
|
.query_param(new_parameter(campaign_status, key: 'campaignStatus'))
|
27
27
|
.query_param(new_parameter(last_seen_campaign_id, key: 'lastSeenCampaignId'))
|
28
28
|
.header_param(new_parameter('application/json', key: 'accept'))
|
29
|
-
.auth(
|
29
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
30
30
|
.response(new_response_handler
|
31
31
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
32
32
|
.deserialize_into(V3CampaignHistory.method(:from_hash))
|
@@ -52,7 +52,7 @@ module Verizon
|
|
52
52
|
.template_param(new_parameter(device_id, key: 'deviceId')
|
53
53
|
.should_encode(true))
|
54
54
|
.header_param(new_parameter('application/json', key: 'accept'))
|
55
|
-
.auth(
|
55
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
56
56
|
.response(new_response_handler
|
57
57
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
58
58
|
.deserialize_into(DeviceFirmwareUpgrade.method(:from_hash))
|
@@ -84,7 +84,7 @@ module Verizon
|
|
84
84
|
.should_encode(true))
|
85
85
|
.query_param(new_parameter(last_seen_device_id, key: 'lastSeenDeviceId'))
|
86
86
|
.header_param(new_parameter('application/json', key: 'accept'))
|
87
|
-
.auth(
|
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(V3CampaignDevice.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(
|
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(V1AccountSubscription.method(:from_hash))
|
@@ -50,7 +50,7 @@ module Verizon
|
|
50
50
|
.template_param(new_parameter(start_index, key: 'startIndex')
|
51
51
|
.should_encode(true))
|
52
52
|
.header_param(new_parameter('application/json', key: 'accept'))
|
53
|
-
.auth(
|
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(AccountLicenseInfo.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(
|
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(FotaV2Subscription.method(:from_hash))
|
@@ -17,7 +17,7 @@ module Verizon
|
|
17
17
|
.template_param(new_parameter(acc, key: 'acc')
|
18
18
|
.should_encode(true))
|
19
19
|
.header_param(new_parameter('application/json', key: 'accept'))
|
20
|
-
.auth(
|
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(FotaV3Subscription.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(
|
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(Target.method(:from_hash))
|
@@ -41,7 +41,7 @@ module Verizon
|
|
41
41
|
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
42
42
|
.body_param(new_parameter(body))
|
43
43
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
44
|
-
.auth(
|
44
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
45
45
|
.response(new_response_handler
|
46
46
|
.is_response_void(true)
|
47
47
|
.is_api_response(true))
|
@@ -63,7 +63,7 @@ module Verizon
|
|
63
63
|
.body_param(new_parameter(body))
|
64
64
|
.header_param(new_parameter('application/json', key: 'accept'))
|
65
65
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
66
|
-
.auth(
|
66
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
67
67
|
.response(new_response_handler
|
68
68
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
69
69
|
.deserialize_into(Target.method(:from_hash))
|
@@ -111,7 +111,7 @@ module Verizon
|
|
111
111
|
.body_param(new_parameter(body))
|
112
112
|
.header_param(new_parameter('application/json', key: 'accept'))
|
113
113
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
114
|
-
.auth(
|
114
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
115
115
|
.response(new_response_handler
|
116
116
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
117
117
|
.deserialize_into(CreateIoTApplicationResponse.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(
|
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(M201success.method(:from_hash))
|
@@ -44,7 +44,7 @@ module Verizon
|
|
44
44
|
.query_param(new_parameter(account_name, key: 'accountName'))
|
45
45
|
.query_param(new_parameter(qos_subscription_id, key: 'qosSubscriptionId'))
|
46
46
|
.header_param(new_parameter('application/json', key: 'accept'))
|
47
|
-
.auth(
|
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(M201success.method(:from_hash))
|
@@ -18,7 +18,7 @@ module Verizon
|
|
18
18
|
.body_param(new_parameter(body))
|
19
19
|
.header_param(new_parameter('application/json', key: 'accept'))
|
20
20
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
21
|
-
.auth(
|
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(Success.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(
|
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(UsageTriggerResponse.method(:from_hash))
|
@@ -49,7 +49,7 @@ module Verizon
|
|
49
49
|
.body_param(new_parameter(body))
|
50
50
|
.header_param(new_parameter('application/json', key: 'accept'))
|
51
51
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
52
|
-
.auth(
|
52
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
53
53
|
.response(new_response_handler
|
54
54
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
55
55
|
.deserialize_into(UsageTriggerResponse.method(:from_hash))
|
@@ -75,7 +75,7 @@ module Verizon
|
|
75
75
|
.template_param(new_parameter(trigger_id, key: 'triggerId')
|
76
76
|
.should_encode(true))
|
77
77
|
.header_param(new_parameter('application/json', key: 'accept'))
|
78
|
-
.auth(
|
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(DeviceLocationSuccessResult.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(
|
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(WNPRequestResponse.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(
|
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(WNPRequestResponse.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(
|
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(WNPRequestResponse.method(:from_hash))
|
@@ -93,7 +93,7 @@ module Verizon
|
|
93
93
|
.body_param(new_parameter(body))
|
94
94
|
.header_param(new_parameter('application/json', key: 'accept'))
|
95
95
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
96
|
-
.auth(
|
96
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
97
97
|
.response(new_response_handler
|
98
98
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
99
99
|
.deserialize_into(WNPRequestResponse.method(:from_hash))
|
@@ -118,7 +118,7 @@ module Verizon
|
|
118
118
|
.body_param(new_parameter(body))
|
119
119
|
.header_param(new_parameter('application/json', key: 'accept'))
|
120
120
|
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
121
|
-
.auth(
|
121
|
+
.auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
|
122
122
|
.response(new_response_handler
|
123
123
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
124
124
|
.deserialize_into(WNPRequestResponse.method(:from_hash))
|
@@ -21,6 +21,10 @@ module Verizon
|
|
21
21
|
# @return [HyperPreciseLocationFault]
|
22
22
|
attr_accessor :fault
|
23
23
|
|
24
|
+
# Fault occurred while responding.
|
25
|
+
# @return [Object]
|
26
|
+
attr_accessor :example
|
27
|
+
|
24
28
|
# The constructor.
|
25
29
|
# @param [String] The reason for raising an exception.
|
26
30
|
# @param [HttpResponse] The HttpReponse of the API call.
|
@@ -37,6 +41,7 @@ module Verizon
|
|
37
41
|
@response_code = hash.key?('responseCode') ? hash['responseCode'] : SKIP
|
38
42
|
@message = hash.key?('message') ? hash['message'] : SKIP
|
39
43
|
@fault = HyperPreciseLocationFault.from_hash(hash['fault']) if hash['fault']
|
44
|
+
@example = hash.key?('example') ? hash['example'] : SKIP
|
40
45
|
end
|
41
46
|
end
|
42
47
|
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# verizon
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module Verizon
|
7
|
+
# RulesEngineRestErrorResponse class.
|
8
|
+
class RulesEngineRestErrorResponseException < 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
|
+
# TODO: Write general description for this method
|
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)
|
37
|
+
@error_code = hash.key?('errorCode') ? hash['errorCode'] : SKIP
|
38
|
+
@error_message = hash.key?('errorMessage') ? hash['errorMessage'] : SKIP
|
39
|
+
@error_url = hash.key?('errorUrl') ? hash['errorUrl'] : SKIP
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|