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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc89700e1f9b43ab0a396c6d263ffcc33a56316f17f88c98c90a2fe6e562c741
4
- data.tar.gz: eb17f42e06ee9f8d9b0b541380b5ade43c642204ec289c5381f1785f36bc4f19
3
+ metadata.gz: 6dc1f2f09378d7b08bdbd55fcc673daa17ceac467203e04adfaf4f4b19bc1f19
4
+ data.tar.gz: a435511004a106b73ca74158639f74f1cb80b6e78b736c1687b0c9c7ad79c90f
5
5
  SHA512:
6
- metadata.gz: 0075b030e2bbe1f92efdba934f5e8ad82038fd36e9af30b6ac9cfe251500f98d98b8c53a033b6bcca0fef7b2347d755bbc11913a89fc2d7f9300274035087e85
7
- data.tar.gz: f81886f49d05a4f3d7bdc77f38ed4c1418a39d7b6a2c383504fd374d3ee6ffc7af72167f1016599c1ddd54cefeedf2c9a4b9a9eeaa74b95adbca9469773226e5
6
+ metadata.gz: 8066f9aff5f840721787e95bd6d1ab9b93adf0a1d6a184176f9cd585e162a40a4f91abfba5461d0b3b72ebaf34cb5925ed55debb760bf993b71c816e6e7ff5c6
7
+ data.tar.gz: 1352980ba713b1afc77bc9c2752a1010943d0a59bef82b8016ac3c9470b7d5f5b4fb703cae6d67e0d00cc788cc20e6027c82294e337344611e3c6ba1369e7e00
data/README.md CHANGED
@@ -12,26 +12,25 @@ Verizon Terms of Service: [https://www.verizon.com/business/5g-edge-portal/legal
12
12
  Install the gem from the command line:
13
13
 
14
14
  ```ruby
15
- gem install sdksio-verizon-apis-sdk -v 1.3.0
15
+ gem install sdksio-verizon-apis-sdk -v 1.5.0
16
16
  ```
17
17
 
18
18
  Or add the gem to your Gemfile and run `bundle`:
19
19
 
20
20
  ```ruby
21
- gem 'sdksio-verizon-apis-sdk', '1.3.0'
21
+ gem 'sdksio-verizon-apis-sdk', '1.5.0'
22
22
  ```
23
23
 
24
- For additional gem details, see the [RubyGems page for the sdksio-verizon-apis-sdk gem](https://rubygems.org/gems/sdksio-verizon-apis-sdk/versions/1.3.0).
24
+ For additional gem details, see the [RubyGems page for the sdksio-verizon-apis-sdk gem](https://rubygems.org/gems/sdksio-verizon-apis-sdk/versions/1.5.0).
25
25
 
26
26
  ## Initialize the API Client
27
27
 
28
- **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/client.md)
28
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/client.md)
29
29
 
30
30
  The following parameters are configurable for the API Client:
31
31
 
32
32
  | Parameter | Type | Description |
33
33
  | --- | --- | --- |
34
- | `vz_m2m_token` | `String` | M2M Session Token ([How to generate an M2M session token?](page:getting-started/5g-edge-developer-creds-token#obtaining-a-vz-m2m-session-token-programmatically)) |
35
34
  | `environment` | `Environment` | The API environment. <br> **Default: `Environment.PRODUCTION`** |
36
35
  | `connection` | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
37
36
  | `adapter` | `Faraday::Adapter` | The Faraday adapter object passed by the SDK user for performing http requests |
@@ -42,21 +41,22 @@ The following parameters are configurable for the API Client:
42
41
  | `retry_statuses` | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
43
42
  | `retry_methods` | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
44
43
  | `http_callback` | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
45
- | `client_credentials_auth_credentials` | [`ClientCredentialsAuthCredentials`](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/$a/https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/oauth-2-client-credentials-grant.md) | The credential object for OAuth 2 Client Credentials Grant |
44
+ | `thingspace_oauth_credentials` | [`ThingspaceOauthCredentials`](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/$a/https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/oauth-2-client-credentials-grant.md) | The credential object for OAuth 2 Client Credentials Grant |
45
+ | `vz_m2m_token_credentials` | [`VZM2mTokenCredentials`](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/$a/https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/custom-header-signature.md) | The credential object for Custom Header Signature |
46
46
 
47
47
  The API client can be initialized as follows:
48
48
 
49
49
  ```ruby
50
50
  client = Verizon::Client.new(
51
- vz_m2m_token: 'VZ-M2M-Token',
52
- client_credentials_auth_credentials: ClientCredentialsAuthCredentials.new(
51
+ thingspace_oauth_credentials: ThingspaceOauthCredentials.new(
53
52
  oauth_client_id: 'OAuthClientId',
54
53
  oauth_client_secret: 'OAuthClientSecret',
55
54
  oauth_scopes: [
56
- OauthScopeEnum::DISCOVERYREAD,
57
- OauthScopeEnum::SERVICEPROFILEREAD
55
+ OauthScopeThingspaceOauthEnum::DISCOVERYREAD,
56
+ OauthScopeThingspaceOauthEnum::SERVICEPROFILEREAD
58
57
  ]
59
58
  ),
59
+ vz_m2m_token_credentials: VZM2mTokenCredentials.new(),
60
60
  environment: Environment::PRODUCTION
61
61
  )
62
62
  ```
@@ -73,90 +73,103 @@ API calls return an `ApiResponse` object that includes the following fields:
73
73
  | `errors` | Errors, if they exist |
74
74
  | `data` | The deserialized body of the HTTP response |
75
75
 
76
+ ## Environments
77
+
78
+ The SDK can be configured to use a different environment for making API calls. Available environments are:
79
+
80
+ ### Fields
81
+
82
+ | Name | Description |
83
+ | --- | --- |
84
+ | Production | **Default** |
85
+ | Mock server for limited availability, see quick start | - |
86
+
76
87
  ## Authorization
77
88
 
78
89
  This API uses the following authentication schemes.
79
90
 
80
- * [`oAuth2 (OAuth 2 Client Credentials Grant)`](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/$a/https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/oauth-2-client-credentials-grant.md)
91
+ * [`thingspace_oauth (OAuth 2 Client Credentials Grant)`](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/$a/https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/oauth-2-client-credentials-grant.md)
92
+ * [`VZ-M2M-Token (Custom Header Signature)`](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/$a/https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/custom-header-signature.md)
81
93
 
82
94
  ## List of APIs
83
95
 
84
- * [5G Edge Platforms](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/5g-edge-platforms.md)
85
- * [Service Endpoints](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/service-endpoints.md)
86
- * [Service Profiles](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/service-profiles.md)
87
- * [Device Management](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/device-management.md)
88
- * [Device Groups](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/device-groups.md)
89
- * [Session Management](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/session-management.md)
90
- * [Connectivity Callbacks](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/connectivity-callbacks.md)
91
- * [Account Requests](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/account-requests.md)
92
- * [Service Plans](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/service-plans.md)
93
- * [Device Diagnostics](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/device-diagnostics.md)
94
- * [Device Profile Management](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/device-profile-management.md)
95
- * [Device Monitoring](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/device-monitoring.md)
96
- * [E UICC Device Profile Management](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/e-uicc-device-profile-management.md)
97
- * [Devices Locations](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/devices-locations.md)
98
- * [Devices Location Subscriptions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/devices-location-subscriptions.md)
99
- * [Device Location Callbacks](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/device-location-callbacks.md)
100
- * [Usage Trigger Management](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/usage-trigger-management.md)
101
- * [Software Management Subscriptions V1](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/software-management-subscriptions-v1.md)
102
- * [Software Management Licenses V1](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/software-management-licenses-v1.md)
103
- * [Firmware V1](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/firmware-v1.md)
104
- * [Software Management Callbacks V1](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/software-management-callbacks-v1.md)
105
- * [Software Management Reports V1](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/software-management-reports-v1.md)
106
- * [Software Management Subscriptions V2](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/software-management-subscriptions-v2.md)
107
- * [Software Management Licenses V2](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/software-management-licenses-v2.md)
108
- * [Campaigns V2](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/campaigns-v2.md)
109
- * [Software Management Callbacks V2](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/software-management-callbacks-v2.md)
110
- * [Software Management Reports V2](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/software-management-reports-v2.md)
111
- * [Client Logging](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/client-logging.md)
112
- * [Server Logging](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/server-logging.md)
113
- * [Configuration Files](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/configuration-files.md)
114
- * [Software Management Subscriptions V3](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/software-management-subscriptions-v3.md)
115
- * [Software Management Licenses V3](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/software-management-licenses-v3.md)
116
- * [Campaigns V3](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/campaigns-v3.md)
117
- * [Software Management Reports V3](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/software-management-reports-v3.md)
118
- * [Firmware V3](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/firmware-v3.md)
119
- * [Account Devices](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/account-devices.md)
120
- * [Software Management Callbacks V3](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/software-management-callbacks-v3.md)
121
- * [SIM Securefor Io T Licenses](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/sim-securefor-io-t-licenses.md)
122
- * [Account Subscriptions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/account-subscriptions.md)
123
- * [Performance Metrics](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/performance-metrics.md)
124
- * [Diagnostics Subscriptions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/diagnostics-subscriptions.md)
125
- * [Diagnostics Observations](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/diagnostics-observations.md)
126
- * [Diagnostics History](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/diagnostics-history.md)
127
- * [Diagnostics Settings](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/diagnostics-settings.md)
128
- * [Diagnostics Callbacks](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/diagnostics-callbacks.md)
129
- * [Diagnostics Factory Reset](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/diagnostics-factory-reset.md)
130
- * [Cloud Connector Subscriptions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/cloud-connector-subscriptions.md)
131
- * [Cloud Connector Devices](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/cloud-connector-devices.md)
132
- * [Device Service Management](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/device-service-management.md)
133
- * [Device Reports](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/device-reports.md)
134
- * [Hyper Precise Location Callbacks](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/hyper-precise-location-callbacks.md)
135
- * [Anomaly Settings](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/anomaly-settings.md)
136
- * [Anomaly Triggers](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/anomaly-triggers.md)
137
- * [Anomaly Triggers V2](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/anomaly-triggers-v2.md)
138
- * [Wireless Network Performance](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/wireless-network-performance.md)
139
- * [Fixed Wireless Qualification](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/fixed-wireless-qualification.md)
140
- * [Managinge SIM Profiles](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/managinge-sim-profiles.md)
141
- * [Device SMS Messaging](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/device-sms-messaging.md)
142
- * [Device Actions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/device-actions.md)
143
- * [Thing Space Qualityof Service API Actions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/thing-space-qualityof-service-api-actions.md)
144
- * [Promotion Period Information](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/promotion-period-information.md)
145
- * [Retrievethe Triggers](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/retrievethe-triggers.md)
146
- * [Update Triggers](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/update-triggers.md)
147
- * [SIM Actions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/sim-actions.md)
148
- * [Global Reporting](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/global-reporting.md)
149
- * [OAuth Authorization](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/oauth-authorization.md)
150
- * [Accounts](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/accounts.md)
151
- * [SMS](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/sms.md)
152
- * [Exclusions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/exclusions.md)
153
- * [Billing](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/billing.md)
154
- * [Targets](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/targets.md)
155
- * [MEC](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/controllers/mec.md)
96
+ * [5G Edge Platforms](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/5g-edge-platforms.md)
97
+ * [Service Endpoints](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/service-endpoints.md)
98
+ * [Service Profiles](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/service-profiles.md)
99
+ * [Device Management](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/device-management.md)
100
+ * [Device Groups](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/device-groups.md)
101
+ * [Session Management](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/session-management.md)
102
+ * [Connectivity Callbacks](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/connectivity-callbacks.md)
103
+ * [Account Requests](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/account-requests.md)
104
+ * [Service Plans](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/service-plans.md)
105
+ * [Device Diagnostics](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/device-diagnostics.md)
106
+ * [Device Profile Management](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/device-profile-management.md)
107
+ * [Device Monitoring](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/device-monitoring.md)
108
+ * [E UICC Device Profile Management](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/e-uicc-device-profile-management.md)
109
+ * [Devices Locations](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/devices-locations.md)
110
+ * [Devices Location Subscriptions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/devices-location-subscriptions.md)
111
+ * [Device Location Callbacks](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/device-location-callbacks.md)
112
+ * [Usage Trigger Management](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/usage-trigger-management.md)
113
+ * [Software Management Subscriptions V1](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/software-management-subscriptions-v1.md)
114
+ * [Software Management Licenses V1](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/software-management-licenses-v1.md)
115
+ * [Firmware V1](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/firmware-v1.md)
116
+ * [Software Management Callbacks V1](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/software-management-callbacks-v1.md)
117
+ * [Software Management Reports V1](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/software-management-reports-v1.md)
118
+ * [Software Management Subscriptions V2](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/software-management-subscriptions-v2.md)
119
+ * [Software Management Licenses V2](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/software-management-licenses-v2.md)
120
+ * [Campaigns V2](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/campaigns-v2.md)
121
+ * [Software Management Callbacks V2](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/software-management-callbacks-v2.md)
122
+ * [Software Management Reports V2](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/software-management-reports-v2.md)
123
+ * [Client Logging](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/client-logging.md)
124
+ * [Server Logging](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/server-logging.md)
125
+ * [Configuration Files](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/configuration-files.md)
126
+ * [Software Management Subscriptions V3](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/software-management-subscriptions-v3.md)
127
+ * [Software Management Licenses V3](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/software-management-licenses-v3.md)
128
+ * [Campaigns V3](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/campaigns-v3.md)
129
+ * [Software Management Reports V3](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/software-management-reports-v3.md)
130
+ * [Firmware V3](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/firmware-v3.md)
131
+ * [Account Devices](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/account-devices.md)
132
+ * [Software Management Callbacks V3](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/software-management-callbacks-v3.md)
133
+ * [SIM Securefor Io T Licenses](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/sim-securefor-io-t-licenses.md)
134
+ * [Account Subscriptions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/account-subscriptions.md)
135
+ * [Performance Metrics](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/performance-metrics.md)
136
+ * [Diagnostics Subscriptions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/diagnostics-subscriptions.md)
137
+ * [Diagnostics Observations](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/diagnostics-observations.md)
138
+ * [Diagnostics History](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/diagnostics-history.md)
139
+ * [Diagnostics Settings](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/diagnostics-settings.md)
140
+ * [Diagnostics Callbacks](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/diagnostics-callbacks.md)
141
+ * [Diagnostics Factory Reset](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/diagnostics-factory-reset.md)
142
+ * [Cloud Connector Subscriptions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/cloud-connector-subscriptions.md)
143
+ * [Cloud Connector Devices](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/cloud-connector-devices.md)
144
+ * [Device Service Management](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/device-service-management.md)
145
+ * [Device Reports](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/device-reports.md)
146
+ * [Hyper Precise Location Callbacks](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/hyper-precise-location-callbacks.md)
147
+ * [Anomaly Settings](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/anomaly-settings.md)
148
+ * [Anomaly Triggers](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/anomaly-triggers.md)
149
+ * [Anomaly Triggers V2](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/anomaly-triggers-v2.md)
150
+ * [Wireless Network Performance](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/wireless-network-performance.md)
151
+ * [Fixed Wireless Qualification](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/fixed-wireless-qualification.md)
152
+ * [Managinge SIM Profiles](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/managinge-sim-profiles.md)
153
+ * [Device SMS Messaging](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/device-sms-messaging.md)
154
+ * [Device Actions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/device-actions.md)
155
+ * [Thing Space Qualityof Service API Actions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/thing-space-qualityof-service-api-actions.md)
156
+ * [Promotion Period Information](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/promotion-period-information.md)
157
+ * [Retrievethe Triggers](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/retrievethe-triggers.md)
158
+ * [Update Triggers](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/update-triggers.md)
159
+ * [SIM Actions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/sim-actions.md)
160
+ * [Global Reporting](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/global-reporting.md)
161
+ * [OAuth Authorization](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/oauth-authorization.md)
162
+ * [Accounts](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/accounts.md)
163
+ * [SMS](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/sms.md)
164
+ * [Exclusions](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/exclusions.md)
165
+ * [Billing](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/billing.md)
166
+ * [Targets](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/targets.md)
167
+ * [MEC](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/mec.md)
168
+ * [V2 Triggers](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/controllers/v2-triggers.md)
156
169
 
157
170
  ## Classes Documentation
158
171
 
159
- * [Utility Classes](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/utility-classes.md)
160
- * [HttpResponse](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/http-response.md)
161
- * [HttpRequest](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.3.0/doc/http-request.md)
172
+ * [Utility Classes](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/utility-classes.md)
173
+ * [HttpResponse](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/http-response.md)
174
+ * [HttpRequest](https://www.github.com/sdks-io/verizon-apis-ruby-sdk/tree/1.5.0/doc/http-request.md)
162
175
 
@@ -9,9 +9,9 @@ module Verizon
9
9
  include CoreLibrary
10
10
  attr_reader :config, :auth_managers
11
11
 
12
- # Returns the configured authentication oAuth2 instance.
13
- def oauth_2
14
- @auth_managers['oAuth2']
12
+ # Returns the configured authentication thingspace_oauth instance.
13
+ def thingspace_oauth
14
+ @auth_managers['thingspace_oauth']
15
15
  end
16
16
 
17
17
  # Access to m_5g_edge_platforms controller.
@@ -440,6 +440,12 @@ module Verizon
440
440
  @global_reporting ||= GlobalReportingController.new @global_configuration
441
441
  end
442
442
 
443
+ # Access to m_v2_triggers controller.
444
+ # @return [MV2TriggersController] Returns the controller instance.
445
+ def m_v2_triggers
446
+ @m_v2_triggers ||= MV2TriggersController.new @global_configuration
447
+ end
448
+
443
449
  # Access to oauth_authorization controller.
444
450
  # @return [OauthAuthorizationController] Returns the controller instance.
445
451
  def oauth_authorization
@@ -451,10 +457,8 @@ module Verizon
451
457
  max_retries: 0, retry_interval: 1, backoff_factor: 2,
452
458
  retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
453
459
  retry_methods: %i[get put], http_callback: nil,
454
- environment: Environment::PRODUCTION, oauth_client_id: nil,
455
- oauth_client_secret: nil, oauth_token: nil, oauth_scopes: nil,
456
- client_credentials_auth_credentials: nil, vz_m2m_token: 'TODO: Replace',
457
- config: nil
460
+ environment: Environment::PRODUCTION, thingspace_oauth_credentials: nil,
461
+ vz_m2m_token_credentials: nil, config: nil
458
462
  )
459
463
  @config = if config.nil?
460
464
  Configuration.new(
@@ -463,11 +467,9 @@ module Verizon
463
467
  backoff_factor: backoff_factor,
464
468
  retry_statuses: retry_statuses,
465
469
  retry_methods: retry_methods, http_callback: http_callback,
466
- environment: environment, oauth_client_id: oauth_client_id,
467
- oauth_client_secret: oauth_client_secret,
468
- oauth_token: oauth_token, oauth_scopes: oauth_scopes,
469
- client_credentials_auth_credentials: client_credentials_auth_credentials,
470
- vz_m2m_token: vz_m2m_token
470
+ environment: environment,
471
+ thingspace_oauth_credentials: thingspace_oauth_credentials,
472
+ vz_m2m_token_credentials: vz_m2m_token_credentials
471
473
  )
472
474
  else
473
475
  config
@@ -477,7 +479,6 @@ module Verizon
477
479
  .base_uri_executor(@config.method(:get_base_uri))
478
480
  .global_errors(BaseController::GLOBAL_ERRORS)
479
481
  .user_agent(BaseController.user_agent)
480
- .global_header('VZ-M2M-Token', @config.vz_m2m_token)
481
482
 
482
483
  initialize_auth_managers(@global_configuration)
483
484
  @global_configuration = @global_configuration.auth_managers(@auth_managers)
@@ -488,9 +489,11 @@ module Verizon
488
489
  def initialize_auth_managers(global_config)
489
490
  @auth_managers = {}
490
491
  http_client_config = global_config.client_configuration
491
- %w[oAuth2].each { |auth| @auth_managers[auth] = nil }
492
- @auth_managers['oAuth2'] = Oauth2.new(http_client_config.client_credentials_auth_credentials,
493
- global_config)
492
+ %w[thingspace_oauth VZ-M2M-Token].each { |auth| @auth_managers[auth] = nil }
493
+ @auth_managers['thingspace_oauth'] = ThingspaceOauth.new(
494
+ http_client_config.thingspace_oauth_credentials, global_config
495
+ )
496
+ @auth_managers['VZ-M2M-Token'] = VZM2mToken.new(http_client_config.vz_m2m_token_credentials)
494
497
  end
495
498
  end
496
499
  end
@@ -7,7 +7,8 @@ module Verizon
7
7
  # An enum for SDK environments.
8
8
  class Environment
9
9
  ENVIRONMENT = [
10
- PRODUCTION = 'Production'.freeze
10
+ PRODUCTION = 'Production'.freeze,
11
+ MOCK_SERVER_FOR_LIMITED_AVAILABILITY_SEE_QUICK_START = 'Mock server for limited availability, see quick start'.freeze
11
12
  ].freeze
12
13
  end
13
14
 
@@ -35,24 +36,9 @@ module Verizon
35
36
  # All configuration including auth info and base URI for the API access
36
37
  # are configured in this class.
37
38
  class Configuration < CoreLibrary::HttpClientConfiguration
38
- def oauth_client_id
39
- @client_credentials_auth_credentials.oauth_client_id
40
- end
41
-
42
- def oauth_client_secret
43
- @client_credentials_auth_credentials.oauth_client_secret
44
- end
45
-
46
- def oauth_token
47
- @client_credentials_auth_credentials.oauth_token
48
- end
49
-
50
- def oauth_scopes
51
- @client_credentials_auth_credentials.oauth_scopes
52
- end
53
-
54
39
  # The attribute readers for properties.
55
- attr_reader :environment, :client_credentials_auth_credentials, :vz_m2m_token
40
+ attr_reader :environment, :thingspace_oauth_credentials,
41
+ :vz_m2m_token_credentials
56
42
 
57
43
  class << self
58
44
  attr_reader :environments
@@ -63,9 +49,8 @@ module Verizon
63
49
  max_retries: 0, retry_interval: 1, backoff_factor: 2,
64
50
  retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
65
51
  retry_methods: %i[get put], http_callback: nil,
66
- environment: Environment::PRODUCTION, oauth_client_id: nil,
67
- oauth_client_secret: nil, oauth_token: nil, oauth_scopes: nil,
68
- client_credentials_auth_credentials: nil, vz_m2m_token: 'TODO: Replace'
52
+ environment: Environment::PRODUCTION, thingspace_oauth_credentials: nil,
53
+ vz_m2m_token_credentials: nil
69
54
  )
70
55
 
71
56
  super connection: connection, adapter: adapter, timeout: timeout,
@@ -76,30 +61,11 @@ module Verizon
76
61
  # Current API environment
77
62
  @environment = String(environment)
78
63
 
79
- # OAuth 2 Client ID
80
- @oauth_client_id = oauth_client_id
81
-
82
- # OAuth 2 Client Secret
83
- @oauth_client_secret = oauth_client_secret
84
-
85
- # Object for storing information about the OAuth token
86
- @oauth_token = if oauth_token.is_a? OauthToken
87
- OauthToken.from_hash oauth_token.to_hash
88
- else
89
- oauth_token
90
- end
64
+ # The object holding OAuth 2 Client Credentials Grant credentials
65
+ @thingspace_oauth_credentials = thingspace_oauth_credentials
91
66
 
92
- # List of scopes that apply to the OAuth token
93
- @oauth_scopes = oauth_scopes
94
-
95
- # M2M Session Token ([How to generate an M2M session token?](page:getting-started/5g-edge-developer-creds-token#obtaining-a-vz-m2m-session-token-programmatically))
96
- @vz_m2m_token = vz_m2m_token
97
-
98
- # Initializing OAuth 2 Client Credentials Grant credentials with the provided auth parameters
99
- @client_credentials_auth_credentials = create_auth_credentials_object(
100
- oauth_client_id, oauth_client_secret, oauth_token, oauth_scopes,
101
- client_credentials_auth_credentials
102
- )
67
+ # The object holding Custom Header Signature credentials
68
+ @vz_m2m_token_credentials = vz_m2m_token_credentials
103
69
 
104
70
  # The Http Client to use for making requests.
105
71
  set_http_client CoreLibrary::FaradayClient.new(self)
@@ -108,10 +74,8 @@ module Verizon
108
74
  def clone_with(connection: nil, adapter: nil, timeout: nil,
109
75
  max_retries: nil, retry_interval: nil, backoff_factor: nil,
110
76
  retry_statuses: nil, retry_methods: nil, http_callback: nil,
111
- environment: nil, oauth_client_id: nil,
112
- oauth_client_secret: nil, oauth_token: nil,
113
- oauth_scopes: nil, client_credentials_auth_credentials: nil,
114
- vz_m2m_token: nil)
77
+ environment: nil, thingspace_oauth_credentials: nil,
78
+ vz_m2m_token_credentials: nil)
115
79
  connection ||= self.connection
116
80
  adapter ||= self.adapter
117
81
  timeout ||= self.timeout
@@ -122,49 +86,20 @@ module Verizon
122
86
  retry_methods ||= self.retry_methods
123
87
  http_callback ||= self.http_callback
124
88
  environment ||= self.environment
125
- vz_m2m_token ||= self.vz_m2m_token
126
- client_credentials_auth_credentials = create_auth_credentials_object(
127
- oauth_client_id, oauth_client_secret, oauth_token, oauth_scopes,
128
- client_credentials_auth_credentials || self.client_credentials_auth_credentials
129
- )
89
+ thingspace_oauth_credentials ||= self.thingspace_oauth_credentials
90
+ vz_m2m_token_credentials ||= self.vz_m2m_token_credentials
130
91
 
131
92
  Configuration.new(
132
93
  connection: connection, adapter: adapter, timeout: timeout,
133
94
  max_retries: max_retries, retry_interval: retry_interval,
134
95
  backoff_factor: backoff_factor, retry_statuses: retry_statuses,
135
96
  retry_methods: retry_methods, http_callback: http_callback,
136
- environment: environment, vz_m2m_token: vz_m2m_token,
137
- client_credentials_auth_credentials: client_credentials_auth_credentials
97
+ environment: environment,
98
+ thingspace_oauth_credentials: thingspace_oauth_credentials,
99
+ vz_m2m_token_credentials: vz_m2m_token_credentials
138
100
  )
139
101
  end
140
102
 
141
- def create_auth_credentials_object(oauth_client_id, oauth_client_secret,
142
- oauth_token, oauth_scopes,
143
- client_credentials_auth_credentials)
144
- return client_credentials_auth_credentials if oauth_client_id.nil? &&
145
- oauth_client_secret.nil? &&
146
- oauth_token.nil? &&
147
- oauth_scopes.nil?
148
-
149
- warn('The \'oauth_client_id\', \'oauth_client_secret\', \'oauth_token\','\
150
- ' \'oauth_scopes\' params are deprecated. Use \'client_credentials_'\
151
- 'auth_credentials\' param instead.')
152
-
153
- unless client_credentials_auth_credentials.nil?
154
- return client_credentials_auth_credentials.clone_with(
155
- oauth_client_id: oauth_client_id,
156
- oauth_client_secret: oauth_client_secret,
157
- oauth_token: oauth_token,
158
- oauth_scopes: oauth_scopes
159
- )
160
- end
161
-
162
- ClientCredentialsAuthCredentials.new(
163
- oauth_client_id: oauth_client_id,
164
- oauth_client_secret: oauth_client_secret, oauth_token: oauth_token,
165
- oauth_scopes: oauth_scopes
166
- )
167
- end
168
103
 
169
104
  # All the environments the SDK can run in.
170
105
  ENVIRONMENTS = {
@@ -184,6 +119,23 @@ module Verizon
184
119
  Server::HYPER_PRECISE_LOCATION => 'https://thingspace.verizon.com/api/hyper-precise/v1',
185
120
  Server::SERVICES => 'https://5gedge.verizon.com/api/mec/services',
186
121
  Server::QUALITY_OF_SERVICE => 'https://thingspace.verizon.com/api/m2m/v1/devices'
122
+ },
123
+ Environment::MOCK_SERVER_FOR_LIMITED_AVAILABILITY_SEE_QUICK_START => {
124
+ Server::EDGE_DISCOVERY => 'https://mock.thingspace.verizon.com/api/mec/eds',
125
+ Server::THINGSPACE => 'https://mock.thingspace.verizon.com/api',
126
+ Server::OAUTH_SERVER => 'https://mock.thingspace.verizon.com/api/ts/v1',
127
+ Server::M2M => 'https://mock.thingspace.verizon.com/api/m2m',
128
+ Server::DEVICE_LOCATION => 'https://mock.thingspace.verizon.com/api/loc/v1',
129
+ Server::SUBSCRIPTION_SERVER => 'https://mock.thingspace.verizon.com/api/subsc/v1',
130
+ Server::SOFTWARE_MANAGEMENT_V1 => 'https://mock.thingspace.verizon.com/api/fota/v1',
131
+ Server::SOFTWARE_MANAGEMENT_V2 => 'https://mock.thingspace.verizon.com/api/fota/v2',
132
+ Server::SOFTWARE_MANAGEMENT_V3 => 'https://mock.thingspace.verizon.com/api/fota/v3',
133
+ Server::PERFORMANCE => 'https://mock.thingspace.verizon.com/api/mec',
134
+ Server::DEVICE_DIAGNOSTICS => 'https://mock.thingspace.verizon.com/api/diagnostics/v1',
135
+ Server::CLOUD_CONNECTOR => 'https://mock.thingspace.verizon.com/api/cc/v1',
136
+ Server::HYPER_PRECISE_LOCATION => 'https://mock.thingspace.verizon.com/api/hyper-precise/v1',
137
+ Server::SERVICES => 'https://mock.thingspace.verizon.com/api/mec/services',
138
+ Server::QUALITY_OF_SERVICE => 'https://mock.thingspace.verizon.com/api/m2m/v1/devices'
187
139
  }
188
140
  }.freeze
189
141
 
@@ -26,7 +26,7 @@ module Verizon
26
26
  .query_param(new_parameter(last_seen_device_id, key: 'lastSeenDeviceId'))
27
27
  .query_param(new_parameter(protocol, key: 'protocol'))
28
28
  .header_param(new_parameter('application/json', key: 'accept'))
29
- .auth(Single.new('oAuth2')))
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(V3AccountDeviceList.method(:from_hash))
@@ -54,7 +54,7 @@ module Verizon
54
54
  .body_param(new_parameter(body))
55
55
  .header_param(new_parameter('application/json', key: 'accept'))
56
56
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
57
- .auth(Single.new('oAuth2')))
57
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
58
58
  .response(new_response_handler
59
59
  .deserializer(APIHelper.method(:custom_type_deserializer))
60
60
  .deserialize_into(DeviceListResult.method(:from_hash))
@@ -23,7 +23,7 @@ module Verizon
23
23
  .template_param(new_parameter(request_id, key: 'requestId')
24
24
  .should_encode(true))
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(AsynchronousRequestResult.method(:from_hash))
@@ -24,7 +24,7 @@ module Verizon
24
24
  .header_param(new_parameter(x_request_id, key: 'X-Request-ID'))
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(SecuritySubscriptionResult.method(:from_hash))
@@ -17,7 +17,7 @@ module Verizon
17
17
  .template_param(new_parameter(aname, key: 'aname')
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(Account.method(:from_hash))
@@ -40,7 +40,7 @@ module Verizon
40
40
  .template_param(new_parameter(aname, key: 'aname')
41
41
  .should_encode(true))
42
42
  .header_param(new_parameter('application/json', key: 'accept'))
43
- .auth(Single.new('oAuth2')))
43
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
44
44
  .response(new_response_handler
45
45
  .deserializer(APIHelper.method(:custom_type_deserializer))
46
46
  .deserialize_into(AccountStatesAndServices.method(:from_hash))
@@ -68,7 +68,7 @@ module Verizon
68
68
  .should_encode(true))
69
69
  .query_param(new_parameter(mnext, key: 'next'))
70
70
  .header_param(new_parameter('application/json', key: 'accept'))
71
- .auth(Single.new('oAuth2')))
71
+ .auth(And.new('thingspace_oauth', 'VZ-M2M-Token')))
72
72
  .response(new_response_handler
73
73
  .deserializer(APIHelper.method(:custom_type_deserializer))
74
74
  .deserialize_into(AccountLeadsResult.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(IntelligenceSuccessResult.method(:from_hash))
@@ -43,7 +43,7 @@ module Verizon
43
43
  .template_param(new_parameter(account_name, key: 'accountName')
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(AnomalyDetectionSettings.method(:from_hash))
@@ -66,7 +66,7 @@ module Verizon
66
66
  .template_param(new_parameter(account_name, key: 'accountName')
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(IntelligenceSuccessResult.method(:from_hash))