ipgeolocation_sdk 1.0.0 → 2.0.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.
Files changed (228) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +288 -2003
  4. data/lib/ipgeolocation_sdk/client.rb +223 -0
  5. data/lib/ipgeolocation_sdk/client_config.rb +102 -0
  6. data/lib/ipgeolocation_sdk/enums.rb +110 -0
  7. data/lib/ipgeolocation_sdk/errors.rb +38 -0
  8. data/lib/ipgeolocation_sdk/json_output.rb +30 -0
  9. data/lib/ipgeolocation_sdk/models.rb +186 -0
  10. data/lib/ipgeolocation_sdk/request_models.rb +175 -0
  11. data/lib/ipgeolocation_sdk/serde.rb +433 -0
  12. data/lib/ipgeolocation_sdk/transport.rb +109 -0
  13. data/lib/ipgeolocation_sdk/value_object.rb +60 -0
  14. data/lib/ipgeolocation_sdk/version.rb +1 -13
  15. data/lib/ipgeolocation_sdk.rb +19 -101
  16. metadata +29 -310
  17. data/Gemfile +0 -9
  18. data/Rakefile +0 -10
  19. data/docs/ASNConnection.md +0 -22
  20. data/docs/ASNDetails.md +0 -48
  21. data/docs/ASNLookupApi.md +0 -89
  22. data/docs/ASNResponse.md +0 -20
  23. data/docs/ASNResponseXML.md +0 -20
  24. data/docs/ASNResponseXMLAsn.md +0 -48
  25. data/docs/Abuse.md +0 -40
  26. data/docs/AbuseContactApi.md +0 -85
  27. data/docs/AbuseResponse.md +0 -20
  28. data/docs/AbuseResponseXML.md +0 -20
  29. data/docs/Astronomy.md +0 -68
  30. data/docs/AstronomyApi.md +0 -97
  31. data/docs/AstronomyEvening.md +0 -36
  32. data/docs/AstronomyLocation.md +0 -50
  33. data/docs/AstronomyMorning.md +0 -36
  34. data/docs/AstronomyResponse.md +0 -22
  35. data/docs/AstronomyXMLResponse.md +0 -22
  36. data/docs/BulkIPGeolocation.md +0 -42
  37. data/docs/BulkIPSecurity.md +0 -42
  38. data/docs/CountryMetadata.md +0 -22
  39. data/docs/Currency.md +0 -22
  40. data/docs/ErrorResponse.md +0 -18
  41. data/docs/ErrorXMLResponse.md +0 -18
  42. data/docs/ErrorXMLResponseArray.md +0 -18
  43. data/docs/GeolocationResponse.md +0 -38
  44. data/docs/GeolocationXMLResponse.md +0 -38
  45. data/docs/GeolocationXMLResponseArray.md +0 -38
  46. data/docs/GetBulkIpGeolocation200ResponseInner1.md +0 -49
  47. data/docs/GetBulkIpGeolocationRequest.md +0 -18
  48. data/docs/GetBulkIpSecurityInfo200ResponseInner1.md +0 -49
  49. data/docs/IPLocationApi.md +0 -175
  50. data/docs/Location.md +0 -58
  51. data/docs/LocationMinimal.md +0 -52
  52. data/docs/Network.md +0 -22
  53. data/docs/NetworkAsn.md +0 -38
  54. data/docs/NetworkCompany.md +0 -22
  55. data/docs/NetworkMinimal.md +0 -20
  56. data/docs/NetworkMinimalAsn.md +0 -22
  57. data/docs/NetworkMinimalCompany.md +0 -18
  58. data/docs/ParseBulkUserAgentStringsRequest.md +0 -18
  59. data/docs/ParseUserAgentStringRequest.md +0 -18
  60. data/docs/Security.md +0 -38
  61. data/docs/SecurityAPIResponse.md +0 -34
  62. data/docs/SecurityAPIXMLResponse.md +0 -34
  63. data/docs/SecurityAPIXMLResponseArray.md +0 -34
  64. data/docs/SecurityApi.md +0 -175
  65. data/docs/TimeConversionApi.md +0 -109
  66. data/docs/TimeConversionResponse.md +0 -24
  67. data/docs/TimeConversionXMLResponse.md +0 -24
  68. data/docs/TimeZone.md +0 -36
  69. data/docs/TimeZoneDetailedResponse.md +0 -26
  70. data/docs/TimeZoneDetailedXMLResponse.md +0 -26
  71. data/docs/TimeZoneDstEnd.md +0 -28
  72. data/docs/TimeZoneDstStart.md +0 -28
  73. data/docs/TimezoneAirport.md +0 -40
  74. data/docs/TimezoneApi.md +0 -99
  75. data/docs/TimezoneDetail.md +0 -56
  76. data/docs/TimezoneDetailDstEnd.md +0 -28
  77. data/docs/TimezoneDetailDstStart.md +0 -28
  78. data/docs/TimezoneLocation.md +0 -48
  79. data/docs/TimezoneLocode.md +0 -32
  80. data/docs/UserAgentApi.md +0 -235
  81. data/docs/UserAgentData.md +0 -32
  82. data/docs/UserAgentDataDevice.md +0 -24
  83. data/docs/UserAgentDataEngine.md +0 -24
  84. data/docs/UserAgentDataOperatingSystem.md +0 -26
  85. data/docs/UserAgentXMLData.md +0 -32
  86. data/docs/UserAgentXMLDataArray.md +0 -32
  87. data/git_push.sh +0 -57
  88. data/ipgeolocation_sdk.gemspec +0 -29
  89. data/lib/ipgeolocation_sdk/api/abuse_contact_api.rb +0 -86
  90. data/lib/ipgeolocation_sdk/api/asn_lookup_api.rb +0 -92
  91. data/lib/ipgeolocation_sdk/api/astronomy_api.rb +0 -116
  92. data/lib/ipgeolocation_sdk/api/ip_geolocation_api.rb +0 -186
  93. data/lib/ipgeolocation_sdk/api/ip_security_api.rb +0 -184
  94. data/lib/ipgeolocation_sdk/api/time_conversion_api.rb +0 -122
  95. data/lib/ipgeolocation_sdk/api/timezone_api.rb +0 -113
  96. data/lib/ipgeolocation_sdk/api/user_agent_api.rb +0 -158
  97. data/lib/ipgeolocation_sdk/api_client.rb +0 -393
  98. data/lib/ipgeolocation_sdk/api_error.rb +0 -58
  99. data/lib/ipgeolocation_sdk/configuration.rb +0 -308
  100. data/lib/ipgeolocation_sdk/models/abuse.rb +0 -305
  101. data/lib/ipgeolocation_sdk/models/abuse_response.rb +0 -229
  102. data/lib/ipgeolocation_sdk/models/abuse_response_xml.rb +0 -229
  103. data/lib/ipgeolocation_sdk/models/asn_connection.rb +0 -238
  104. data/lib/ipgeolocation_sdk/models/asn_response.rb +0 -230
  105. data/lib/ipgeolocation_sdk/models/asn_response_asn.rb +0 -368
  106. data/lib/ipgeolocation_sdk/models/asn_response_xml.rb +0 -229
  107. data/lib/ipgeolocation_sdk/models/asn_response_xml_asn.rb +0 -364
  108. data/lib/ipgeolocation_sdk/models/astronomy.rb +0 -445
  109. data/lib/ipgeolocation_sdk/models/astronomy_evening.rb +0 -301
  110. data/lib/ipgeolocation_sdk/models/astronomy_location.rb +0 -364
  111. data/lib/ipgeolocation_sdk/models/astronomy_morning.rb +0 -301
  112. data/lib/ipgeolocation_sdk/models/astronomy_response.rb +0 -238
  113. data/lib/ipgeolocation_sdk/models/astronomy_xml_response.rb +0 -238
  114. data/lib/ipgeolocation_sdk/models/bulk_ip_geolocation.rb +0 -113
  115. data/lib/ipgeolocation_sdk/models/bulk_ip_security.rb +0 -113
  116. data/lib/ipgeolocation_sdk/models/country_metadata.rb +0 -240
  117. data/lib/ipgeolocation_sdk/models/currency.rb +0 -238
  118. data/lib/ipgeolocation_sdk/models/error_response.rb +0 -220
  119. data/lib/ipgeolocation_sdk/models/error_xml_response.rb +0 -220
  120. data/lib/ipgeolocation_sdk/models/error_xml_response_array.rb +0 -220
  121. data/lib/ipgeolocation_sdk/models/geolocation_response.rb +0 -310
  122. data/lib/ipgeolocation_sdk/models/geolocation_xml_response.rb +0 -310
  123. data/lib/ipgeolocation_sdk/models/geolocation_xml_response_array.rb +0 -310
  124. data/lib/ipgeolocation_sdk/models/get_bulk_ip_geolocation200_response_inner1.rb +0 -105
  125. data/lib/ipgeolocation_sdk/models/get_bulk_ip_geolocation_request.rb +0 -241
  126. data/lib/ipgeolocation_sdk/models/get_bulk_ip_security_info200_response_inner1.rb +0 -105
  127. data/lib/ipgeolocation_sdk/models/location.rb +0 -400
  128. data/lib/ipgeolocation_sdk/models/location_minimal.rb +0 -373
  129. data/lib/ipgeolocation_sdk/models/network.rb +0 -238
  130. data/lib/ipgeolocation_sdk/models/network_asn.rb +0 -310
  131. data/lib/ipgeolocation_sdk/models/network_company.rb +0 -238
  132. data/lib/ipgeolocation_sdk/models/network_minimal.rb +0 -229
  133. data/lib/ipgeolocation_sdk/models/network_minimal_asn.rb +0 -238
  134. data/lib/ipgeolocation_sdk/models/network_minimal_company.rb +0 -220
  135. data/lib/ipgeolocation_sdk/models/parse_bulk_user_agent_strings_request.rb +0 -222
  136. data/lib/ipgeolocation_sdk/models/parse_user_agent_string_request.rb +0 -220
  137. data/lib/ipgeolocation_sdk/models/security.rb +0 -310
  138. data/lib/ipgeolocation_sdk/models/security_api_response.rb +0 -292
  139. data/lib/ipgeolocation_sdk/models/security_apixml_response.rb +0 -292
  140. data/lib/ipgeolocation_sdk/models/security_apixml_response_array.rb +0 -292
  141. data/lib/ipgeolocation_sdk/models/time_conversion_response.rb +0 -247
  142. data/lib/ipgeolocation_sdk/models/time_conversion_xml_response.rb +0 -247
  143. data/lib/ipgeolocation_sdk/models/time_zone.rb +0 -301
  144. data/lib/ipgeolocation_sdk/models/time_zone_detailed_response.rb +0 -256
  145. data/lib/ipgeolocation_sdk/models/time_zone_detailed_xml_response.rb +0 -256
  146. data/lib/ipgeolocation_sdk/models/time_zone_dst_end.rb +0 -265
  147. data/lib/ipgeolocation_sdk/models/time_zone_dst_start.rb +0 -265
  148. data/lib/ipgeolocation_sdk/models/timezone_airport.rb +0 -319
  149. data/lib/ipgeolocation_sdk/models/timezone_detail.rb +0 -391
  150. data/lib/ipgeolocation_sdk/models/timezone_detail_dst_end.rb +0 -265
  151. data/lib/ipgeolocation_sdk/models/timezone_detail_dst_start.rb +0 -265
  152. data/lib/ipgeolocation_sdk/models/timezone_location.rb +0 -355
  153. data/lib/ipgeolocation_sdk/models/timezone_locode.rb +0 -283
  154. data/lib/ipgeolocation_sdk/models/user_agent_data.rb +0 -283
  155. data/lib/ipgeolocation_sdk/models/user_agent_data_device.rb +0 -247
  156. data/lib/ipgeolocation_sdk/models/user_agent_data_engine.rb +0 -247
  157. data/lib/ipgeolocation_sdk/models/user_agent_data_operating_system.rb +0 -256
  158. data/lib/ipgeolocation_sdk/models/user_agent_xml_data.rb +0 -283
  159. data/lib/ipgeolocation_sdk/models/user_agent_xml_data_array.rb +0 -283
  160. data/spec/api/abuse_contact_api_spec.rb +0 -48
  161. data/spec/api/asn_lookup_api_spec.rb +0 -50
  162. data/spec/api/astronomy_api_spec.rb +0 -54
  163. data/spec/api/ip_location_api_spec.rb +0 -67
  164. data/spec/api/security_api_spec.rb +0 -67
  165. data/spec/api/time_conversion_api_spec.rb +0 -60
  166. data/spec/api/timezone_api_spec.rb +0 -56
  167. data/spec/api/user_agent_api_spec.rb +0 -74
  168. data/spec/models/abuse_response_spec.rb +0 -42
  169. data/spec/models/abuse_response_xml_spec.rb +0 -42
  170. data/spec/models/abuse_spec.rb +0 -90
  171. data/spec/models/asn_connection_spec.rb +0 -48
  172. data/spec/models/asn_response_asn_spec.rb +0 -126
  173. data/spec/models/asn_response_spec.rb +0 -42
  174. data/spec/models/asn_response_xml_asn_spec.rb +0 -126
  175. data/spec/models/asn_response_xml_spec.rb +0 -42
  176. data/spec/models/astronomy_evening_spec.rb +0 -90
  177. data/spec/models/astronomy_location_spec.rb +0 -132
  178. data/spec/models/astronomy_morning_spec.rb +0 -90
  179. data/spec/models/astronomy_response_spec.rb +0 -48
  180. data/spec/models/astronomy_spec.rb +0 -186
  181. data/spec/models/astronomy_xml_response_spec.rb +0 -48
  182. data/spec/models/country_metadata_spec.rb +0 -48
  183. data/spec/models/currency_spec.rb +0 -48
  184. data/spec/models/error_response_spec.rb +0 -36
  185. data/spec/models/error_xml_response_array_spec.rb +0 -36
  186. data/spec/models/error_xml_response_spec.rb +0 -36
  187. data/spec/models/geolocation_response_spec.rb +0 -96
  188. data/spec/models/geolocation_xml_response_array_spec.rb +0 -96
  189. data/spec/models/geolocation_xml_response_spec.rb +0 -96
  190. data/spec/models/get_bulk_ip_geolocation200_response_inner1_spec.rb +0 -32
  191. data/spec/models/get_bulk_ip_geolocation200_response_inner_spec.rb +0 -32
  192. data/spec/models/get_bulk_ip_geolocation_request_spec.rb +0 -36
  193. data/spec/models/get_bulk_ip_security_info200_response_inner1_spec.rb +0 -32
  194. data/spec/models/get_bulk_ip_security_info200_response_inner_spec.rb +0 -32
  195. data/spec/models/location_minimal_spec.rb +0 -138
  196. data/spec/models/location_spec.rb +0 -156
  197. data/spec/models/network_asn_spec.rb +0 -96
  198. data/spec/models/network_company_spec.rb +0 -48
  199. data/spec/models/network_minimal_asn_spec.rb +0 -48
  200. data/spec/models/network_minimal_company_spec.rb +0 -36
  201. data/spec/models/network_minimal_spec.rb +0 -42
  202. data/spec/models/network_spec.rb +0 -48
  203. data/spec/models/parse_bulk_user_agent_strings_request_spec.rb +0 -36
  204. data/spec/models/parse_user_agent_string_request_spec.rb +0 -36
  205. data/spec/models/security_api_response_spec.rb +0 -84
  206. data/spec/models/security_apixml_response_array_spec.rb +0 -84
  207. data/spec/models/security_apixml_response_spec.rb +0 -84
  208. data/spec/models/security_spec.rb +0 -96
  209. data/spec/models/time_conversion_response_spec.rb +0 -54
  210. data/spec/models/time_conversion_xml_response_spec.rb +0 -54
  211. data/spec/models/time_zone_detailed_response_spec.rb +0 -60
  212. data/spec/models/time_zone_detailed_xml_response_spec.rb +0 -60
  213. data/spec/models/time_zone_dst_end_spec.rb +0 -66
  214. data/spec/models/time_zone_dst_start_spec.rb +0 -66
  215. data/spec/models/time_zone_spec.rb +0 -90
  216. data/spec/models/timezone_airport_spec.rb +0 -102
  217. data/spec/models/timezone_detail_dst_end_spec.rb +0 -66
  218. data/spec/models/timezone_detail_dst_start_spec.rb +0 -66
  219. data/spec/models/timezone_detail_spec.rb +0 -150
  220. data/spec/models/timezone_location_spec.rb +0 -126
  221. data/spec/models/timezone_locode_spec.rb +0 -78
  222. data/spec/models/user_agent_data_device_spec.rb +0 -54
  223. data/spec/models/user_agent_data_engine_spec.rb +0 -54
  224. data/spec/models/user_agent_data_operating_system_spec.rb +0 -60
  225. data/spec/models/user_agent_data_spec.rb +0 -78
  226. data/spec/models/user_agent_xml_data_array_spec.rb +0 -78
  227. data/spec/models/user_agent_xml_data_spec.rb +0 -78
  228. data/spec/spec_helper.rb +0 -111
data/docs/Abuse.md DELETED
@@ -1,40 +0,0 @@
1
- # IpgeolocationSdk::Abuse
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **route** | **String** | | [optional] |
8
- | **country** | **String** | | [optional] |
9
- | **handle** | **String** | | [optional] |
10
- | **name** | **String** | | [optional] |
11
- | **organization** | **String** | | [optional] |
12
- | **role** | **String** | | [optional] |
13
- | **kind** | **String** | | [optional] |
14
- | **address** | **String** | | [optional] |
15
- | **emails** | **Array<String>** | | [optional] |
16
- | **phone_numbers** | **Array<String>** | | [optional] |
17
-
18
- ## Example
19
-
20
- ```ruby
21
- require 'ipgeolocation_sdk'
22
-
23
- instance = IpgeolocationSdk::Abuse.new(
24
- route: 8.8.8.0/24,
25
- country: US,
26
- handle: ABUSE5250-ARIN,
27
- name: Abuse,
28
- organization: Abuse,
29
- role: abuse,
30
- kind: group,
31
- address: 1600 Amphitheatre Parkway
32
- Mountain View
33
- CA
34
- 94043
35
- United States,
36
- emails: ["network-abuse@google.com"],
37
- phone_numbers: ["+1-650-253-0000"]
38
- )
39
- ```
40
-
@@ -1,85 +0,0 @@
1
- # IpgeolocationSdk::AbuseContactApi
2
-
3
- All URIs are relative to *https://api.ipgeolocation.io/v2*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**get_abuse_contact_info**](AbuseContactApi.md#get_abuse_contact_info) | **GET** /abuse | |
8
-
9
-
10
- ## get_abuse_contact_info
11
-
12
- > <AbuseResponse> get_abuse_contact_info(opts)
13
-
14
-
15
-
16
- The Abuse Contact API provides essential contact information to report abusive activity associated with IP addresses. By querying an IP address (IPv4 or IPv6), users receive detailed abuse contact data, including the responsible organization, abuse handling role, contact emails, phone numbers, and registered address. This enables users to swiftly take action to report and mitigate threats such as spam, DDoS attacks, and phishing. In addition to abuse-specific contacts, the API also includes registration metadata like the registered country and abuse handle. This empowers cybersecurity teams, hosting providers, and compliance entities to take appropriate legal or administrative action.
17
-
18
- ### Examples
19
-
20
- ```ruby
21
- require 'time'
22
- require 'ipgeolocation_sdk'
23
- # setup authorization
24
- IpgeolocationSdk.configure do |config|
25
- # Configure API key authorization: ApiKeyAuth
26
- config.api_key['apiKey'] = 'YOUR API KEY'
27
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
- # config.api_key_prefix['apiKey'] = 'Bearer'
29
- end
30
-
31
- api_instance = IpgeolocationSdk::AbuseContactApi.new
32
- opts = {
33
- ip: '8.8.8.8', # String | query parameter 'ip'.
34
- excludes: 'abuse.handle,abuse.emails', # String | You can exclude specific fields from the API response (except the ip field) by listing them in the excludes parameter as a comma-separated list. For example, you want to remove emails and handle from api response, you can put the keys in excludes parameter like this.
35
- fields: 'abuse.role,abuse.emails' # String | You can customize the API response by using the fields parameter to include only the specific data you need. For example, to retrieve only the role and emails, specify these keys in the fields parameter as shown below.
36
- }
37
-
38
- begin
39
-
40
- result = api_instance.get_abuse_contact_info(opts)
41
- p result
42
- rescue IpgeolocationSdk::ApiError => e
43
- puts "Error when calling AbuseContactApi->get_abuse_contact_info: #{e}"
44
- end
45
- ```
46
-
47
- #### Using the get_abuse_contact_info_with_http_info variant
48
-
49
- This returns an Array which contains the response data, status code and headers.
50
-
51
- > <Array(<AbuseResponse>, Integer, Hash)> get_abuse_contact_info_with_http_info(opts)
52
-
53
- ```ruby
54
- begin
55
-
56
- data, status_code, headers = api_instance.get_abuse_contact_info_with_http_info(opts)
57
- p status_code # => 2xx
58
- p headers # => { ... }
59
- p data # => <AbuseResponse>
60
- rescue IpgeolocationSdk::ApiError => e
61
- puts "Error when calling AbuseContactApi->get_abuse_contact_info_with_http_info: #{e}"
62
- end
63
- ```
64
-
65
- ### Parameters
66
-
67
- | Name | Type | Description | Notes |
68
- | ---- | ---- | ----------- | ----- |
69
- | **ip** | **String** | query parameter &#39;ip&#39;. | [optional] |
70
- | **excludes** | **String** | You can exclude specific fields from the API response (except the ip field) by listing them in the excludes parameter as a comma-separated list. For example, you want to remove emails and handle from api response, you can put the keys in excludes parameter like this. | [optional] |
71
- | **fields** | **String** | You can customize the API response by using the fields parameter to include only the specific data you need. For example, to retrieve only the role and emails, specify these keys in the fields parameter as shown below. | [optional] |
72
-
73
- ### Return type
74
-
75
- [**AbuseResponse**](AbuseResponse.md)
76
-
77
- ### Authorization
78
-
79
- [ApiKeyAuth](../README.md#ApiKeyAuth)
80
-
81
- ### HTTP request headers
82
-
83
- - **Content-Type**: Not defined
84
- - **Accept**: application/json, application/xml
85
-
@@ -1,20 +0,0 @@
1
- # IpgeolocationSdk::AbuseResponse
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **ip** | **String** | | [optional] |
8
- | **abuse** | [**Abuse**](Abuse.md) | | [optional] |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'ipgeolocation_sdk'
14
-
15
- instance = IpgeolocationSdk::AbuseResponse.new(
16
- ip: 8.8.8.8,
17
- abuse: null
18
- )
19
- ```
20
-
@@ -1,20 +0,0 @@
1
- # IpgeolocationSdk::AbuseResponseXML
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **ip** | **String** | | [optional] |
8
- | **abuse** | [**Abuse**](Abuse.md) | | [optional] |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'ipgeolocation_sdk'
14
-
15
- instance = IpgeolocationSdk::AbuseResponseXML.new(
16
- ip: 8.8.8.8,
17
- abuse: null
18
- )
19
- ```
20
-
data/docs/Astronomy.md DELETED
@@ -1,68 +0,0 @@
1
- # IpgeolocationSdk::Astronomy
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **time_zone** | **String** | | [optional] |
8
- | **date** | **String** | | [optional] |
9
- | **current_time** | **String** | | [optional] |
10
- | **mid_night** | **String** | | [optional] |
11
- | **night_end** | **String** | | [optional] |
12
- | **morning** | [**AstronomyMorning**](AstronomyMorning.md) | | [optional] |
13
- | **sunrise** | **String** | | [optional] |
14
- | **sunset** | **String** | | [optional] |
15
- | **evening** | [**AstronomyEvening**](AstronomyEvening.md) | | [optional] |
16
- | **night_begin** | **String** | | [optional] |
17
- | **sun_status** | **String** | | [optional] |
18
- | **solar_noon** | **String** | | [optional] |
19
- | **day_length** | **String** | | [optional] |
20
- | **sun_altitude** | **Float** | | [optional] |
21
- | **sun_distance** | **Float** | | [optional] |
22
- | **sun_azimuth** | **Float** | | [optional] |
23
- | **moon_phase** | **String** | | [optional] |
24
- | **moonrise** | **String** | | [optional] |
25
- | **moonset** | **String** | | [optional] |
26
- | **moon_status** | **String** | | [optional] |
27
- | **moon_altitude** | **Float** | | [optional] |
28
- | **moon_distance** | **Float** | | [optional] |
29
- | **moon_azimuth** | **Float** | | [optional] |
30
- | **moon_parallactic_angle** | **Float** | | [optional] |
31
- | **moon_illumination_percentage** | **String** | | [optional] |
32
- | **moon_angle** | **Float** | | [optional] |
33
-
34
- ## Example
35
-
36
- ```ruby
37
- require 'ipgeolocation_sdk'
38
-
39
- instance = IpgeolocationSdk::Astronomy.new(
40
- time_zone: America/Los_Angeles,
41
- date: 2025-07-17,
42
- current_time: 08:03:36.532,
43
- mid_night: 01:02,
44
- night_end: 03:40,
45
- morning: null,
46
- sunrise: 05:39,
47
- sunset: 20:24,
48
- evening: null,
49
- night_begin: 22:23,
50
- sun_status: -,
51
- solar_noon: 13:02,
52
- day_length: 14:45,
53
- sun_altitude: 24.957683470850487,
54
- sun_distance: 152059278.3394745,
55
- sun_azimuth: 82.93803947255543,
56
- moon_phase: LAST_QUARTER,
57
- moonrise: -:-,
58
- moonset: 13:04,
59
- moon_status: -,
60
- moon_altitude: 50.865120808868284,
61
- moon_distance: 371690.2207058187,
62
- moon_azimuth: 224.27457358894264,
63
- moon_parallactic_angle: 32.4113797557535,
64
- moon_illumination_percentage: -55.99,
65
- moon_angle: 263.11859022190265
66
- )
67
- ```
68
-
data/docs/AstronomyApi.md DELETED
@@ -1,97 +0,0 @@
1
- # IpgeolocationSdk::AstronomyApi
2
-
3
- All URIs are relative to *https://api.ipgeolocation.io/v2*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**get_astronomy_details**](AstronomyApi.md#get_astronomy_details) | **GET** /astronomy | |
8
-
9
-
10
- ## get_astronomy_details
11
-
12
- > <AstronomyResponse> get_astronomy_details(opts)
13
-
14
-
15
-
16
- The Astronomy API provides the location-based rise and set times for the Sun and Moon along with the current position, distance from earth, and azimuth of the Sun and the Moon for a specific date at the queried time.
17
-
18
- ### Examples
19
-
20
- ```ruby
21
- require 'time'
22
- require 'ipgeolocation_sdk'
23
- # setup authorization
24
- IpgeolocationSdk.configure do |config|
25
- # Configure API key authorization: ApiKeyAuth
26
- config.api_key['apiKey'] = 'YOUR API KEY'
27
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
- # config.api_key_prefix['apiKey'] = 'Bearer'
29
- end
30
-
31
- api_instance = IpgeolocationSdk::AstronomyApi.new
32
- opts = {
33
- ip: '8.8.8.8', # String | query paramter 'ip'. If not provided, will be your network IP
34
- location: 'New York, US', # String | query paramter 'location'. If not provided, will be your ip location
35
- lat: '40.76473', # String | query paramter 'lat'.
36
- long: '-74.00084', # String | query paramter 'long'.
37
- time_zone: 'Europe/London', # String |
38
- date: '2025-04-22', # String | The date (YYYY-MM-DD) to lookup for. default will be the current date
39
- elevation: 9, # Float | query parameter 'elevation'
40
- output: 'json', # String | Desired output format.
41
- lang: 'en' # String | By default, the API responds in English. You can change the response language by passing the language code as a query parameter `lang`. Multi language feature is available only for `paid users`.
42
- }
43
-
44
- begin
45
-
46
- result = api_instance.get_astronomy_details(opts)
47
- p result
48
- rescue IpgeolocationSdk::ApiError => e
49
- puts "Error when calling AstronomyApi->get_astronomy_details: #{e}"
50
- end
51
- ```
52
-
53
- #### Using the get_astronomy_details_with_http_info variant
54
-
55
- This returns an Array which contains the response data, status code and headers.
56
-
57
- > <Array(<AstronomyResponse>, Integer, Hash)> get_astronomy_details_with_http_info(opts)
58
-
59
- ```ruby
60
- begin
61
-
62
- data, status_code, headers = api_instance.get_astronomy_details_with_http_info(opts)
63
- p status_code # => 2xx
64
- p headers # => { ... }
65
- p data # => <AstronomyResponse>
66
- rescue IpgeolocationSdk::ApiError => e
67
- puts "Error when calling AstronomyApi->get_astronomy_details_with_http_info: #{e}"
68
- end
69
- ```
70
-
71
- ### Parameters
72
-
73
- | Name | Type | Description | Notes |
74
- | ---- | ---- | ----------- | ----- |
75
- | **ip** | **String** | query paramter &#39;ip&#39;. If not provided, will be your network IP | [optional] |
76
- | **location** | **String** | query paramter &#39;location&#39;. If not provided, will be your ip location | [optional] |
77
- | **lat** | **String** | query paramter &#39;lat&#39;. | [optional] |
78
- | **long** | **String** | query paramter &#39;long&#39;. | [optional] |
79
- | **time_zone** | **String** | | [optional] |
80
- | **date** | **String** | The date (YYYY-MM-DD) to lookup for. default will be the current date | [optional] |
81
- | **elevation** | **Float** | query parameter &#39;elevation&#39; | [optional] |
82
- | **output** | **String** | Desired output format. | [optional] |
83
- | **lang** | **String** | By default, the API responds in English. You can change the response language by passing the language code as a query parameter &#x60;lang&#x60;. Multi language feature is available only for &#x60;paid users&#x60;. | [optional] |
84
-
85
- ### Return type
86
-
87
- [**AstronomyResponse**](AstronomyResponse.md)
88
-
89
- ### Authorization
90
-
91
- [ApiKeyAuth](../README.md#ApiKeyAuth)
92
-
93
- ### HTTP request headers
94
-
95
- - **Content-Type**: Not defined
96
- - **Accept**: application/json, application/xml
97
-
@@ -1,36 +0,0 @@
1
- # IpgeolocationSdk::AstronomyEvening
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **golden_hour_begin** | **String** | | [optional] |
8
- | **golden_hour_end** | **String** | | [optional] |
9
- | **blue_hour_begin** | **String** | | [optional] |
10
- | **blue_hour_end** | **String** | | [optional] |
11
- | **civil_twilight_begin** | **String** | | [optional] |
12
- | **civil_twilight_end** | **String** | | [optional] |
13
- | **nautical_twilight_begin** | **String** | | [optional] |
14
- | **nautical_twilight_end** | **String** | | [optional] |
15
- | **astronomical_twilight_begin** | **String** | | [optional] |
16
- | **astronomical_twilight_end** | **String** | | [optional] |
17
-
18
- ## Example
19
-
20
- ```ruby
21
- require 'ipgeolocation_sdk'
22
-
23
- instance = IpgeolocationSdk::AstronomyEvening.new(
24
- golden_hour_begin: 19:44,
25
- golden_hour_end: 20:44,
26
- blue_hour_begin: 20:44,
27
- blue_hour_end: 21:09,
28
- civil_twilight_begin: 20:24,
29
- civil_twilight_end: 20:56,
30
- nautical_twilight_begin: 20:56,
31
- nautical_twilight_end: 21:37,
32
- astronomical_twilight_begin: 21:37,
33
- astronomical_twilight_end: 22:23
34
- )
35
- ```
36
-
@@ -1,50 +0,0 @@
1
- # IpgeolocationSdk::AstronomyLocation
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **location_string** | **String** | | [optional] |
8
- | **continent_code** | **String** | | [optional] |
9
- | **continent_name** | **String** | | [optional] |
10
- | **country_code2** | **String** | | [optional] |
11
- | **country_code3** | **String** | | [optional] |
12
- | **country_name** | **String** | | [optional] |
13
- | **country_name_official** | **String** | | [optional] |
14
- | **is_eu** | **Boolean** | | [optional] |
15
- | **state_prov** | **String** | | [optional] |
16
- | **state_code** | **String** | | [optional] |
17
- | **district** | **String** | | [optional] |
18
- | **city** | **String** | | [optional] |
19
- | **locality** | **String** | | [optional] |
20
- | **zipcode** | **String** | | [optional] |
21
- | **latitude** | **String** | | [optional] |
22
- | **longitude** | **String** | | [optional] |
23
- | **elevation** | **String** | | [optional] |
24
-
25
- ## Example
26
-
27
- ```ruby
28
- require 'ipgeolocation_sdk'
29
-
30
- instance = IpgeolocationSdk::AstronomyLocation.new(
31
- location_string: Londong, UK,
32
- continent_code: OC,
33
- continent_name: Oceania,
34
- country_code2: AU,
35
- country_code3: AUS,
36
- country_name: Australia,
37
- country_name_official: Commonwealth of Australia,
38
- is_eu: false,
39
- state_prov: Queensland,
40
- state_code: AU-QLD,
41
- district: South Brisbane,
42
- city: Brisbane,
43
- locality: ,
44
- zipcode: 4101,
45
- latitude: -27.47306,
46
- longitude: 153.01421,
47
- elevation: 36.6
48
- )
49
- ```
50
-
@@ -1,36 +0,0 @@
1
- # IpgeolocationSdk::AstronomyMorning
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **astronomical_twilight_begin** | **String** | | [optional] |
8
- | **astronomical_twilight_end** | **String** | | [optional] |
9
- | **nautical_twilight_begin** | **String** | | [optional] |
10
- | **nautical_twilight_end** | **String** | | [optional] |
11
- | **civil_twilight_begin** | **String** | | [optional] |
12
- | **civil_twilight_end** | **String** | | [optional] |
13
- | **blue_hour_begin** | **String** | | [optional] |
14
- | **blue_hour_end** | **String** | | [optional] |
15
- | **golden_hour_begin** | **String** | | [optional] |
16
- | **golden_hour_end** | **String** | | [optional] |
17
-
18
- ## Example
19
-
20
- ```ruby
21
- require 'ipgeolocation_sdk'
22
-
23
- instance = IpgeolocationSdk::AstronomyMorning.new(
24
- astronomical_twilight_begin: 03:40,
25
- astronomical_twilight_end: 04:27,
26
- nautical_twilight_begin: 04:27,
27
- nautical_twilight_end: 05:07,
28
- civil_twilight_begin: 05:07,
29
- civil_twilight_end: 05:39,
30
- blue_hour_begin: 04:54,
31
- blue_hour_end: 05:20,
32
- golden_hour_begin: 05:20,
33
- golden_hour_end: 06:19
34
- )
35
- ```
36
-
@@ -1,22 +0,0 @@
1
- # IpgeolocationSdk::AstronomyResponse
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **ip** | **String** | | [optional] |
8
- | **location** | [**AstronomyLocation**](AstronomyLocation.md) | | [optional] |
9
- | **astronomy** | [**Astronomy**](Astronomy.md) | | [optional] |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'ipgeolocation_sdk'
15
-
16
- instance = IpgeolocationSdk::AstronomyResponse.new(
17
- ip: 8.8.8.8,
18
- location: null,
19
- astronomy: null
20
- )
21
- ```
22
-
@@ -1,22 +0,0 @@
1
- # IpgeolocationSdk::AstronomyXMLResponse
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **ip** | **String** | | [optional] |
8
- | **location** | [**TimezoneLocation**](TimezoneLocation.md) | | [optional] |
9
- | **astronomy** | [**Astronomy**](Astronomy.md) | | [optional] |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'ipgeolocation_sdk'
15
-
16
- instance = IpgeolocationSdk::AstronomyXMLResponse.new(
17
- ip: 8.8.8.8,
18
- location: null,
19
- astronomy: null
20
- )
21
- ```
22
-
@@ -1,42 +0,0 @@
1
- # IpgeolocationSdk::BulkIPGeolocation
2
-
3
- ## Class instance methods
4
-
5
- ### `openapi_one_of`
6
-
7
- Returns the list of classes defined in oneOf.
8
-
9
- #### Example
10
-
11
- ```ruby
12
- require 'ipgeolocation_sdk'
13
- ```
14
-
15
- ### build
16
-
17
- Find the appropriate object from the `the provided method is_error and is_success` and casts the data into it.
18
-
19
- #### Example
20
-
21
- ```ruby
22
- require 'ipgeolocation_sdk'
23
-
24
- IpgeolocationSdk::BulkIPGeolocation.build(data)
25
- # => #<ErrorResponse:0x00007fdd4aab02a0>
26
-
27
- IpgeolocationSdk::BulkIPGeolocation.build(data_that_doesnt_match)
28
- # => nil
29
- ```
30
-
31
- #### Parameters
32
-
33
- | Name | Type | Description |
34
- | ---- | ---- | ----------- |
35
- | **data** | **Mixed** | data to be matched against the list of oneOf items |
36
-
37
- #### Return type
38
-
39
- - `ErrorResponse`
40
- - `GeolocationResponse`
41
- - `nil` (if no type matches)
42
-
@@ -1,42 +0,0 @@
1
- # IpgeolocationSdk::BulkIPSecurity
2
-
3
- ## Class instance methods
4
-
5
- ### `openapi_one_of`
6
-
7
- Returns the list of classes defined in oneOf.
8
-
9
- #### Example
10
-
11
- ```ruby
12
- require 'ipgeolocation_sdk'
13
- ```
14
-
15
- ### build
16
-
17
- Find the appropriate object from the `openapi_one_of` list and casts the data into it.
18
-
19
- #### Example
20
-
21
- ```ruby
22
- require 'ipgeolocation_sdk'
23
-
24
- IpgeolocationSdk::BulkIPSecurity.build(data)
25
- # => #<ErrorResponse:0x00007fdd4aab02a0>
26
-
27
- IpgeolocationSdk::BulkIPSecurity.build(data_that_doesnt_match)
28
- # => nil
29
- ```
30
-
31
- #### Parameters
32
-
33
- | Name | Type | Description |
34
- | ---- | ---- | ----------- |
35
- | **data** | **Mixed** | data to be matched against the list of oneOf items |
36
-
37
- #### Return type
38
-
39
- - `ErrorResponse`
40
- - `SecurityAPIResponse`
41
- - `nil` (if no type matches)
42
-
@@ -1,22 +0,0 @@
1
- # IpgeolocationSdk::CountryMetadata
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **calling_code** | **String** | | [optional] |
8
- | **tld** | **String** | | [optional] |
9
- | **languages** | **Array&lt;String&gt;** | | [optional] |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'ipgeolocation_sdk'
15
-
16
- instance = IpgeolocationSdk::CountryMetadata.new(
17
- calling_code: +1,
18
- tld: .us,
19
- languages: [&quot;en-US&quot;,&quot;es-US&quot;,&quot;haw&quot;,&quot;fr&quot;]
20
- )
21
- ```
22
-
data/docs/Currency.md DELETED
@@ -1,22 +0,0 @@
1
- # IpgeolocationSdk::Currency
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **code** | **String** | | [optional] |
8
- | **name** | **String** | | [optional] |
9
- | **symbol** | **String** | | [optional] |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'ipgeolocation_sdk'
15
-
16
- instance = IpgeolocationSdk::Currency.new(
17
- code: USD,
18
- name: US Dollar,
19
- symbol: $
20
- )
21
- ```
22
-
@@ -1,18 +0,0 @@
1
- # IpgeolocationSdk::ErrorResponse
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **message** | **String** | | [optional] |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'ipgeolocation_sdk'
13
-
14
- instance = IpgeolocationSdk::ErrorResponse.new(
15
- message: The message showing the error
16
- )
17
- ```
18
-
@@ -1,18 +0,0 @@
1
- # IpgeolocationSdk::ErrorXMLResponse
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **message** | **String** | | [optional] |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'ipgeolocation_sdk'
13
-
14
- instance = IpgeolocationSdk::ErrorXMLResponse.new(
15
- message: The Message showing the error
16
- )
17
- ```
18
-