whoisfreaks 0.2.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 (257) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +229 -0
  5. data/Rakefile +10 -0
  6. data/docs/ASNWHOISApi.md +85 -0
  7. data/docs/AccountApi.md +213 -0
  8. data/docs/AccountUsageResponse.md +22 -0
  9. data/docs/AccountUsageResponseApiCredits.md +20 -0
  10. data/docs/AccountUsageResponseApiSubscription.md +26 -0
  11. data/docs/AsnWhoisResponse.md +28 -0
  12. data/docs/AsnWhoisResponseAutNumsInner.md +26 -0
  13. data/docs/AsnWhoisResponseOrganization.md +24 -0
  14. data/docs/BulkDomainAvailabilityRequest.md +20 -0
  15. data/docs/BulkDomainAvailabilityV2Item.md +22 -0
  16. data/docs/BulkDomainAvailabilityV2Response.md +18 -0
  17. data/docs/BulkGeolocationRequest.md +18 -0
  18. data/docs/BulkWhois200Response.md +18 -0
  19. data/docs/BulkWhoisRequest.md +18 -0
  20. data/docs/Contact.md +38 -0
  21. data/docs/DNSApi.md +335 -0
  22. data/docs/DatabaseFileStatus.md +24 -0
  23. data/docs/DatabaseFileStatusNewlyValue.md +20 -0
  24. data/docs/DatabasesASNWHOISApi.md +153 -0
  25. data/docs/DatabasesDNSApi.md +235 -0
  26. data/docs/DatabasesExpiringDroppedApi.md +395 -0
  27. data/docs/DatabasesIPGeolocationApi.md +299 -0
  28. data/docs/DatabasesIPSecurityApi.md +153 -0
  29. data/docs/DatabasesIPWHOISApi.md +153 -0
  30. data/docs/DatabasesNewlyRegisteredApi.md +551 -0
  31. data/docs/DatabasesSubdomainsApi.md +235 -0
  32. data/docs/DatabasesWHOISApi.md +235 -0
  33. data/docs/DnsBulk200Response.md +18 -0
  34. data/docs/DnsBulkRequest.md +20 -0
  35. data/docs/DnsRecord.md +34 -0
  36. data/docs/DnsResponse.md +26 -0
  37. data/docs/DomainAvailabilityApi.md +169 -0
  38. data/docs/DomainAvailabilityV2Item.md +20 -0
  39. data/docs/DomainAvailabilityV2Response.md +18 -0
  40. data/docs/DomainReputationApi.md +85 -0
  41. data/docs/DomainReputationDgaFeatures.md +30 -0
  42. data/docs/DomainReputationDgaScore.md +26 -0
  43. data/docs/DomainReputationEvidenceSummary.md +18 -0
  44. data/docs/DomainReputationIndicators.md +34 -0
  45. data/docs/DomainReputationInput.md +18 -0
  46. data/docs/DomainReputationIntelligence.md +32 -0
  47. data/docs/DomainReputationPivotMatch.md +24 -0
  48. data/docs/DomainReputationRelatedIoc.md +22 -0
  49. data/docs/DomainReputationResponse.md +36 -0
  50. data/docs/DomainReputationRiskCategory.md +30 -0
  51. data/docs/DomainReputationSignal.md +28 -0
  52. data/docs/DomainReputationSignals.md +22 -0
  53. data/docs/DomainReputationTrustSignals.md +24 -0
  54. data/docs/ErrorResponse.md +26 -0
  55. data/docs/GeolocationApi.md +155 -0
  56. data/docs/GeolocationAsn.md +26 -0
  57. data/docs/GeolocationLocation.md +38 -0
  58. data/docs/GeolocationResponse.md +24 -0
  59. data/docs/GeolocationResponseCurrency.md +22 -0
  60. data/docs/GeolocationResponseNetwork.md +18 -0
  61. data/docs/HistoricalDnsResponse.md +24 -0
  62. data/docs/IPReputationApi.md +155 -0
  63. data/docs/IPWHOISApi.md +85 -0
  64. data/docs/IpReputationResponse.md +24 -0
  65. data/docs/IpReputationSecurity.md +42 -0
  66. data/docs/IpWhoisResponse.md +30 -0
  67. data/docs/IpWhoisResponseAbuseContactsInner.md +22 -0
  68. data/docs/IpWhoisResponseInetNumsInner.md +28 -0
  69. data/docs/IpWhoisResponseOrganization.md +26 -0
  70. data/docs/Registrar.md +30 -0
  71. data/docs/ReverseDnsResponse.md +24 -0
  72. data/docs/ReverseWhoisResponse.md +24 -0
  73. data/docs/SSLApi.md +89 -0
  74. data/docs/SnapshotStatus.md +26 -0
  75. data/docs/SslCertificate.md +34 -0
  76. data/docs/SslResponse.md +22 -0
  77. data/docs/Subdomain.md +24 -0
  78. data/docs/SubdomainsApi.md +93 -0
  79. data/docs/SubdomainsResponse.md +30 -0
  80. data/docs/TyposquattingApi.md +87 -0
  81. data/docs/TyposquattingDomain.md +26 -0
  82. data/docs/TyposquattingResponse.md +30 -0
  83. data/docs/WHOISApi.md +257 -0
  84. data/docs/WhoisHistoricalOrReverse200Response.md +49 -0
  85. data/docs/WhoisHistoricalResponse.md +24 -0
  86. data/docs/WhoisResponse.md +50 -0
  87. data/git_push.sh +57 -0
  88. data/lib/whoisfreaks/api/account_api.rb +207 -0
  89. data/lib/whoisfreaks/api/asnwhois_api.rb +100 -0
  90. data/lib/whoisfreaks/api/databases_asnwhois_api.rb +157 -0
  91. data/lib/whoisfreaks/api/databases_dns_api.rb +223 -0
  92. data/lib/whoisfreaks/api/databases_expiring_dropped_api.rb +377 -0
  93. data/lib/whoisfreaks/api/databases_ip_geolocation_api.rb +292 -0
  94. data/lib/whoisfreaks/api/databases_ip_security_api.rb +157 -0
  95. data/lib/whoisfreaks/api/databases_ipwhois_api.rb +157 -0
  96. data/lib/whoisfreaks/api/databases_newly_registered_api.rb +517 -0
  97. data/lib/whoisfreaks/api/databases_subdomains_api.rb +223 -0
  98. data/lib/whoisfreaks/api/databases_whois_api.rb +223 -0
  99. data/lib/whoisfreaks/api/dns_api.rb +379 -0
  100. data/lib/whoisfreaks/api/domain_availability_api.rb +199 -0
  101. data/lib/whoisfreaks/api/domain_reputation_api.rb +100 -0
  102. data/lib/whoisfreaks/api/geolocation_api.rb +168 -0
  103. data/lib/whoisfreaks/api/ip_reputation_api.rb +168 -0
  104. data/lib/whoisfreaks/api/ipwhois_api.rb +100 -0
  105. data/lib/whoisfreaks/api/ssl_api.rb +106 -0
  106. data/lib/whoisfreaks/api/subdomains_api.rb +116 -0
  107. data/lib/whoisfreaks/api/typosquatting_api.rb +95 -0
  108. data/lib/whoisfreaks/api/whois_api.rb +293 -0
  109. data/lib/whoisfreaks/api_client.rb +437 -0
  110. data/lib/whoisfreaks/api_error.rb +58 -0
  111. data/lib/whoisfreaks/configuration.rb +588 -0
  112. data/lib/whoisfreaks/models/account_usage_response.rb +232 -0
  113. data/lib/whoisfreaks/models/account_usage_response_api_credits.rb +223 -0
  114. data/lib/whoisfreaks/models/account_usage_response_api_subscription.rb +250 -0
  115. data/lib/whoisfreaks/models/asn_whois_response.rb +261 -0
  116. data/lib/whoisfreaks/models/asn_whois_response_aut_nums_inner.rb +252 -0
  117. data/lib/whoisfreaks/models/asn_whois_response_organization.rb +243 -0
  118. data/lib/whoisfreaks/models/bulk_domain_availability_request.rb +268 -0
  119. data/lib/whoisfreaks/models/bulk_domain_availability_v2_item.rb +268 -0
  120. data/lib/whoisfreaks/models/bulk_domain_availability_v2_response.rb +217 -0
  121. data/lib/whoisfreaks/models/bulk_geolocation_request.rb +242 -0
  122. data/lib/whoisfreaks/models/bulk_whois200_response.rb +216 -0
  123. data/lib/whoisfreaks/models/bulk_whois_request.rb +242 -0
  124. data/lib/whoisfreaks/models/contact.rb +304 -0
  125. data/lib/whoisfreaks/models/database_file_status.rb +243 -0
  126. data/lib/whoisfreaks/models/database_file_status_newly_value.rb +223 -0
  127. data/lib/whoisfreaks/models/dns_bulk200_response.rb +216 -0
  128. data/lib/whoisfreaks/models/dns_bulk_request.rb +227 -0
  129. data/lib/whoisfreaks/models/dns_record.rb +286 -0
  130. data/lib/whoisfreaks/models/dns_response.rb +254 -0
  131. data/lib/whoisfreaks/models/domain_availability_v2_item.rb +260 -0
  132. data/lib/whoisfreaks/models/domain_availability_v2_response.rb +217 -0
  133. data/lib/whoisfreaks/models/domain_reputation_dga_features.rb +268 -0
  134. data/lib/whoisfreaks/models/domain_reputation_dga_score.rb +312 -0
  135. data/lib/whoisfreaks/models/domain_reputation_evidence_summary.rb +216 -0
  136. data/lib/whoisfreaks/models/domain_reputation_indicators.rb +286 -0
  137. data/lib/whoisfreaks/models/domain_reputation_input.rb +215 -0
  138. data/lib/whoisfreaks/models/domain_reputation_intelligence.rb +317 -0
  139. data/lib/whoisfreaks/models/domain_reputation_pivot_match.rb +304 -0
  140. data/lib/whoisfreaks/models/domain_reputation_related_ioc.rb +294 -0
  141. data/lib/whoisfreaks/models/domain_reputation_response.rb +297 -0
  142. data/lib/whoisfreaks/models/domain_reputation_risk_category.rb +349 -0
  143. data/lib/whoisfreaks/models/domain_reputation_signal.rb +333 -0
  144. data/lib/whoisfreaks/models/domain_reputation_signals.rb +238 -0
  145. data/lib/whoisfreaks/models/domain_reputation_trust_signals.rb +303 -0
  146. data/lib/whoisfreaks/models/error_response.rb +250 -0
  147. data/lib/whoisfreaks/models/geolocation_asn.rb +250 -0
  148. data/lib/whoisfreaks/models/geolocation_location.rb +304 -0
  149. data/lib/whoisfreaks/models/geolocation_response.rb +241 -0
  150. data/lib/whoisfreaks/models/geolocation_response_currency.rb +232 -0
  151. data/lib/whoisfreaks/models/geolocation_response_network.rb +214 -0
  152. data/lib/whoisfreaks/models/historical_dns_response.rb +243 -0
  153. data/lib/whoisfreaks/models/ip_reputation_response.rb +241 -0
  154. data/lib/whoisfreaks/models/ip_reputation_security.rb +322 -0
  155. data/lib/whoisfreaks/models/ip_whois_response.rb +272 -0
  156. data/lib/whoisfreaks/models/ip_whois_response_abuse_contacts_inner.rb +234 -0
  157. data/lib/whoisfreaks/models/ip_whois_response_inet_nums_inner.rb +261 -0
  158. data/lib/whoisfreaks/models/ip_whois_response_organization.rb +252 -0
  159. data/lib/whoisfreaks/models/registrar.rb +268 -0
  160. data/lib/whoisfreaks/models/reverse_dns_response.rb +243 -0
  161. data/lib/whoisfreaks/models/reverse_whois_response.rb +243 -0
  162. data/lib/whoisfreaks/models/snapshot_status.rb +250 -0
  163. data/lib/whoisfreaks/models/ssl_certificate.rb +320 -0
  164. data/lib/whoisfreaks/models/ssl_response.rb +234 -0
  165. data/lib/whoisfreaks/models/subdomain.rb +241 -0
  166. data/lib/whoisfreaks/models/subdomains_response.rb +270 -0
  167. data/lib/whoisfreaks/models/typosquatting_domain.rb +250 -0
  168. data/lib/whoisfreaks/models/typosquatting_response.rb +270 -0
  169. data/lib/whoisfreaks/models/whois_historical_or_reverse200_response.rb +105 -0
  170. data/lib/whoisfreaks/models/whois_historical_response.rb +277 -0
  171. data/lib/whoisfreaks/models/whois_response.rb +362 -0
  172. data/lib/whoisfreaks/version.rb +15 -0
  173. data/lib/whoisfreaks.rb +120 -0
  174. data/spec/api/account_api_spec.rb +70 -0
  175. data/spec/api/asnwhois_api_spec.rb +49 -0
  176. data/spec/api/databases_asnwhois_api_spec.rb +60 -0
  177. data/spec/api/databases_dns_api_spec.rb +74 -0
  178. data/spec/api/databases_expiring_dropped_api_spec.rb +104 -0
  179. data/spec/api/databases_ip_geolocation_api_spec.rb +85 -0
  180. data/spec/api/databases_ip_security_api_spec.rb +60 -0
  181. data/spec/api/databases_ipwhois_api_spec.rb +60 -0
  182. data/spec/api/databases_newly_registered_api_spec.rb +132 -0
  183. data/spec/api/databases_subdomains_api_spec.rb +74 -0
  184. data/spec/api/databases_whois_api_spec.rb +74 -0
  185. data/spec/api/dns_api_spec.rb +99 -0
  186. data/spec/api/domain_availability_api_spec.rb +66 -0
  187. data/spec/api/domain_reputation_api_spec.rb +49 -0
  188. data/spec/api/geolocation_api_spec.rb +61 -0
  189. data/spec/api/ip_reputation_api_spec.rb +61 -0
  190. data/spec/api/ipwhois_api_spec.rb +49 -0
  191. data/spec/api/ssl_api_spec.rb +51 -0
  192. data/spec/api/subdomains_api_spec.rb +53 -0
  193. data/spec/api/typosquatting_api_spec.rb +50 -0
  194. data/spec/api/whois_api_spec.rb +85 -0
  195. data/spec/models/account_usage_response_api_credits_spec.rb +42 -0
  196. data/spec/models/account_usage_response_api_subscription_spec.rb +60 -0
  197. data/spec/models/account_usage_response_spec.rb +48 -0
  198. data/spec/models/asn_whois_response_aut_nums_inner_spec.rb +60 -0
  199. data/spec/models/asn_whois_response_organization_spec.rb +54 -0
  200. data/spec/models/asn_whois_response_spec.rb +66 -0
  201. data/spec/models/bulk_domain_availability_request_spec.rb +42 -0
  202. data/spec/models/bulk_domain_availability_v2_item_spec.rb +52 -0
  203. data/spec/models/bulk_domain_availability_v2_response_spec.rb +36 -0
  204. data/spec/models/bulk_geolocation_request_spec.rb +36 -0
  205. data/spec/models/bulk_whois200_response_spec.rb +36 -0
  206. data/spec/models/bulk_whois_request_spec.rb +36 -0
  207. data/spec/models/contact_spec.rb +96 -0
  208. data/spec/models/database_file_status_newly_value_spec.rb +42 -0
  209. data/spec/models/database_file_status_spec.rb +54 -0
  210. data/spec/models/dns_bulk200_response_spec.rb +36 -0
  211. data/spec/models/dns_bulk_request_spec.rb +42 -0
  212. data/spec/models/dns_record_spec.rb +84 -0
  213. data/spec/models/dns_response_spec.rb +60 -0
  214. data/spec/models/domain_availability_v2_item_spec.rb +46 -0
  215. data/spec/models/domain_availability_v2_response_spec.rb +36 -0
  216. data/spec/models/domain_reputation_dga_features_spec.rb +72 -0
  217. data/spec/models/domain_reputation_dga_score_spec.rb +64 -0
  218. data/spec/models/domain_reputation_evidence_summary_spec.rb +36 -0
  219. data/spec/models/domain_reputation_indicators_spec.rb +84 -0
  220. data/spec/models/domain_reputation_input_spec.rb +36 -0
  221. data/spec/models/domain_reputation_intelligence_spec.rb +82 -0
  222. data/spec/models/domain_reputation_pivot_match_spec.rb +58 -0
  223. data/spec/models/domain_reputation_related_ioc_spec.rb +52 -0
  224. data/spec/models/domain_reputation_response_spec.rb +90 -0
  225. data/spec/models/domain_reputation_risk_category_spec.rb +80 -0
  226. data/spec/models/domain_reputation_signal_spec.rb +74 -0
  227. data/spec/models/domain_reputation_signals_spec.rb +48 -0
  228. data/spec/models/domain_reputation_trust_signals_spec.rb +58 -0
  229. data/spec/models/error_response_spec.rb +60 -0
  230. data/spec/models/geolocation_asn_spec.rb +60 -0
  231. data/spec/models/geolocation_location_spec.rb +96 -0
  232. data/spec/models/geolocation_response_currency_spec.rb +48 -0
  233. data/spec/models/geolocation_response_network_spec.rb +36 -0
  234. data/spec/models/geolocation_response_spec.rb +54 -0
  235. data/spec/models/historical_dns_response_spec.rb +54 -0
  236. data/spec/models/ip_reputation_response_spec.rb +54 -0
  237. data/spec/models/ip_reputation_security_spec.rb +108 -0
  238. data/spec/models/ip_whois_response_abuse_contacts_inner_spec.rb +48 -0
  239. data/spec/models/ip_whois_response_inet_nums_inner_spec.rb +66 -0
  240. data/spec/models/ip_whois_response_organization_spec.rb +60 -0
  241. data/spec/models/ip_whois_response_spec.rb +72 -0
  242. data/spec/models/registrar_spec.rb +72 -0
  243. data/spec/models/reverse_dns_response_spec.rb +54 -0
  244. data/spec/models/reverse_whois_response_spec.rb +54 -0
  245. data/spec/models/snapshot_status_spec.rb +60 -0
  246. data/spec/models/ssl_certificate_spec.rb +88 -0
  247. data/spec/models/ssl_response_spec.rb +48 -0
  248. data/spec/models/subdomain_spec.rb +54 -0
  249. data/spec/models/subdomains_response_spec.rb +72 -0
  250. data/spec/models/typosquatting_domain_spec.rb +60 -0
  251. data/spec/models/typosquatting_response_spec.rb +72 -0
  252. data/spec/models/whois_historical_or_reverse200_response_spec.rb +32 -0
  253. data/spec/models/whois_historical_response_spec.rb +58 -0
  254. data/spec/models/whois_response_spec.rb +132 -0
  255. data/spec/spec_helper.rb +111 -0
  256. data/whoisfreaks.gemspec +41 -0
  257. metadata +451 -0
@@ -0,0 +1,26 @@
1
+ # WhoisFreaks::AsnWhoisResponseAutNumsInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **aut_num** | **String** | | [optional] |
8
+ | **as_name** | **String** | | [optional] |
9
+ | **description** | **Array<String>** | | [optional] |
10
+ | **status** | **String** | | [optional] |
11
+ | **date_created** | **String** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'whoisfreaks'
17
+
18
+ instance = WhoisFreaks::AsnWhoisResponseAutNumsInner.new(
19
+ aut_num: null,
20
+ as_name: null,
21
+ description: null,
22
+ status: null,
23
+ date_created: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,24 @@
1
+ # WhoisFreaks::AsnWhoisResponseOrganization
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **handle** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+ | **type** | **String** | | [optional] |
10
+ | **country** | **Array<String>** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'whoisfreaks'
16
+
17
+ instance = WhoisFreaks::AsnWhoisResponseOrganization.new(
18
+ handle: null,
19
+ name: null,
20
+ type: null,
21
+ country: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,20 @@
1
+ # WhoisFreaks::BulkDomainAvailabilityRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **domain_names** | **Array<String>** | Mode 1 — list of full domain names. Cannot be used with tld. | [optional] |
8
+ | **tld** | **Array<String>** | Mode 2 — TLDs to check against the domain query param. Cannot be used with domainNames. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'whoisfreaks'
14
+
15
+ instance = WhoisFreaks::BulkDomainAvailabilityRequest.new(
16
+ domain_names: null,
17
+ tld: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,22 @@
1
+ # WhoisFreaks::BulkDomainAvailabilityV2Item
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **domain** | **String** | | [optional] |
8
+ | **availability** | **String** | | [optional] |
9
+ | **status** | **Boolean** | Whether the registry lookup succeeded. false => treat availability as UNKNOWN. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'whoisfreaks'
15
+
16
+ instance = WhoisFreaks::BulkDomainAvailabilityV2Item.new(
17
+ domain: google.us,
18
+ availability: UNAVAILABLE,
19
+ status: true
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # WhoisFreaks::BulkDomainAvailabilityV2Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **bulk_domain_availability_response** | [**Array<BulkDomainAvailabilityV2Item>**](BulkDomainAvailabilityV2Item.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'whoisfreaks'
13
+
14
+ instance = WhoisFreaks::BulkDomainAvailabilityV2Response.new(
15
+ bulk_domain_availability_response: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # WhoisFreaks::BulkGeolocationRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **ips** | **Array<String>** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'whoisfreaks'
13
+
14
+ instance = WhoisFreaks::BulkGeolocationRequest.new(
15
+ ips: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # WhoisFreaks::BulkWhois200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **bulk_whois_response** | [**Array<WhoisResponse>**](WhoisResponse.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'whoisfreaks'
13
+
14
+ instance = WhoisFreaks::BulkWhois200Response.new(
15
+ bulk_whois_response: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # WhoisFreaks::BulkWhoisRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **domain_names** | **Array<String>** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'whoisfreaks'
13
+
14
+ instance = WhoisFreaks::BulkWhoisRequest.new(
15
+ domain_names: null
16
+ )
17
+ ```
18
+
data/docs/Contact.md ADDED
@@ -0,0 +1,38 @@
1
+ # WhoisFreaks::Contact
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **handle** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+ | **company** | **String** | | [optional] |
10
+ | **street** | **String** | | [optional] |
11
+ | **city** | **String** | | [optional] |
12
+ | **state** | **String** | | [optional] |
13
+ | **zip_code** | **String** | | [optional] |
14
+ | **country_name** | **String** | | [optional] |
15
+ | **country_code** | **String** | | [optional] |
16
+ | **email_address** | **String** | | [optional] |
17
+ | **phone** | **String** | | [optional] |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'whoisfreaks'
23
+
24
+ instance = WhoisFreaks::Contact.new(
25
+ handle: null,
26
+ name: null,
27
+ company: null,
28
+ street: null,
29
+ city: null,
30
+ state: null,
31
+ zip_code: null,
32
+ country_name: null,
33
+ country_code: null,
34
+ email_address: null,
35
+ phone: null
36
+ )
37
+ ```
38
+
data/docs/DNSApi.md ADDED
@@ -0,0 +1,335 @@
1
+ # WhoisFreaks::DNSApi
2
+
3
+ All URIs are relative to *https://api.whoisfreaks.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**dns_bulk**](DNSApi.md#dns_bulk) | **POST** /v2.0/dns/bulk/live | Bulk DNS Lookup |
8
+ | [**dns_historical**](DNSApi.md#dns_historical) | **GET** /v2.0/dns/historical | Historical DNS Lookup |
9
+ | [**dns_live**](DNSApi.md#dns_live) | **GET** /v2.0/dns/live | Live DNS Lookup |
10
+ | [**dns_reverse**](DNSApi.md#dns_reverse) | **GET** /v2.1/dns/reverse | Reverse DNS Lookup |
11
+
12
+
13
+ ## dns_bulk
14
+
15
+ > <DnsBulk200Response> dns_bulk(api_key, type, dns_bulk_request, opts)
16
+
17
+ Bulk DNS Lookup
18
+
19
+ Up to 100 domains + 100 IPs in one request.
20
+
21
+ ### Examples
22
+
23
+ ```ruby
24
+ require 'time'
25
+ require 'whoisfreaks'
26
+ # setup authorization
27
+ WhoisFreaks.configure do |config|
28
+ # Configure API key authorization: ApiKeyAuth
29
+ config.api_key['apiKey'] = 'YOUR API KEY'
30
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
31
+ # config.api_key_prefix['apiKey'] = 'Bearer'
32
+ end
33
+
34
+ api_instance = WhoisFreaks::DNSApi.new
35
+ api_key = 'api_key_example' # String | Your WHOISFreaks API key
36
+ type = 'type_example' # String |
37
+ dns_bulk_request = WhoisFreaks::DnsBulkRequest.new # DnsBulkRequest |
38
+ opts = {
39
+ format: 'json' # String |
40
+ }
41
+
42
+ begin
43
+ # Bulk DNS Lookup
44
+ result = api_instance.dns_bulk(api_key, type, dns_bulk_request, opts)
45
+ p result
46
+ rescue WhoisFreaks::ApiError => e
47
+ puts "Error when calling DNSApi->dns_bulk: #{e}"
48
+ end
49
+ ```
50
+
51
+ #### Using the dns_bulk_with_http_info variant
52
+
53
+ This returns an Array which contains the response data, status code and headers.
54
+
55
+ > <Array(<DnsBulk200Response>, Integer, Hash)> dns_bulk_with_http_info(api_key, type, dns_bulk_request, opts)
56
+
57
+ ```ruby
58
+ begin
59
+ # Bulk DNS Lookup
60
+ data, status_code, headers = api_instance.dns_bulk_with_http_info(api_key, type, dns_bulk_request, opts)
61
+ p status_code # => 2xx
62
+ p headers # => { ... }
63
+ p data # => <DnsBulk200Response>
64
+ rescue WhoisFreaks::ApiError => e
65
+ puts "Error when calling DNSApi->dns_bulk_with_http_info: #{e}"
66
+ end
67
+ ```
68
+
69
+ ### Parameters
70
+
71
+ | Name | Type | Description | Notes |
72
+ | ---- | ---- | ----------- | ----- |
73
+ | **api_key** | **String** | Your WHOISFreaks API key | |
74
+ | **type** | **String** | | [default to &#39;all&#39;] |
75
+ | **dns_bulk_request** | [**DnsBulkRequest**](DnsBulkRequest.md) | | |
76
+ | **format** | **String** | | [optional][default to &#39;json&#39;] |
77
+
78
+ ### Return type
79
+
80
+ [**DnsBulk200Response**](DnsBulk200Response.md)
81
+
82
+ ### Authorization
83
+
84
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
85
+
86
+ ### HTTP request headers
87
+
88
+ - **Content-Type**: application/json
89
+ - **Accept**: application/json
90
+
91
+
92
+ ## dns_historical
93
+
94
+ > <HistoricalDnsResponse> dns_historical(api_key, domain_name, type, opts)
95
+
96
+ Historical DNS Lookup
97
+
98
+ All historical DNS records. 2 credits per page (100 records/page).
99
+
100
+ ### Examples
101
+
102
+ ```ruby
103
+ require 'time'
104
+ require 'whoisfreaks'
105
+ # setup authorization
106
+ WhoisFreaks.configure do |config|
107
+ # Configure API key authorization: ApiKeyAuth
108
+ config.api_key['apiKey'] = 'YOUR API KEY'
109
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
110
+ # config.api_key_prefix['apiKey'] = 'Bearer'
111
+ end
112
+
113
+ api_instance = WhoisFreaks::DNSApi.new
114
+ api_key = 'api_key_example' # String | Your WHOISFreaks API key
115
+ domain_name = 'domain_name_example' # String |
116
+ type = 'type_example' # String |
117
+ opts = {
118
+ page: 56, # Integer |
119
+ format: 'json' # String |
120
+ }
121
+
122
+ begin
123
+ # Historical DNS Lookup
124
+ result = api_instance.dns_historical(api_key, domain_name, type, opts)
125
+ p result
126
+ rescue WhoisFreaks::ApiError => e
127
+ puts "Error when calling DNSApi->dns_historical: #{e}"
128
+ end
129
+ ```
130
+
131
+ #### Using the dns_historical_with_http_info variant
132
+
133
+ This returns an Array which contains the response data, status code and headers.
134
+
135
+ > <Array(<HistoricalDnsResponse>, Integer, Hash)> dns_historical_with_http_info(api_key, domain_name, type, opts)
136
+
137
+ ```ruby
138
+ begin
139
+ # Historical DNS Lookup
140
+ data, status_code, headers = api_instance.dns_historical_with_http_info(api_key, domain_name, type, opts)
141
+ p status_code # => 2xx
142
+ p headers # => { ... }
143
+ p data # => <HistoricalDnsResponse>
144
+ rescue WhoisFreaks::ApiError => e
145
+ puts "Error when calling DNSApi->dns_historical_with_http_info: #{e}"
146
+ end
147
+ ```
148
+
149
+ ### Parameters
150
+
151
+ | Name | Type | Description | Notes |
152
+ | ---- | ---- | ----------- | ----- |
153
+ | **api_key** | **String** | Your WHOISFreaks API key | |
154
+ | **domain_name** | **String** | | |
155
+ | **type** | **String** | | [default to &#39;all&#39;] |
156
+ | **page** | **Integer** | | [optional][default to 1] |
157
+ | **format** | **String** | | [optional][default to &#39;json&#39;] |
158
+
159
+ ### Return type
160
+
161
+ [**HistoricalDnsResponse**](HistoricalDnsResponse.md)
162
+
163
+ ### Authorization
164
+
165
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
166
+
167
+ ### HTTP request headers
168
+
169
+ - **Content-Type**: Not defined
170
+ - **Accept**: application/json
171
+
172
+
173
+ ## dns_live
174
+
175
+ > <DnsResponse> dns_live(api_key, type, opts)
176
+
177
+ Live DNS Lookup
178
+
179
+ Real-time DNS record lookup. 1 credit per query.
180
+
181
+ ### Examples
182
+
183
+ ```ruby
184
+ require 'time'
185
+ require 'whoisfreaks'
186
+ # setup authorization
187
+ WhoisFreaks.configure do |config|
188
+ # Configure API key authorization: ApiKeyAuth
189
+ config.api_key['apiKey'] = 'YOUR API KEY'
190
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
191
+ # config.api_key_prefix['apiKey'] = 'Bearer'
192
+ end
193
+
194
+ api_instance = WhoisFreaks::DNSApi.new
195
+ api_key = 'api_key_example' # String | Your WHOISFreaks API key
196
+ type = 'type_example' # String | all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME
197
+ opts = {
198
+ domain_name: 'domain_name_example', # String |
199
+ ip_address: 'ip_address_example', # String | Use for PTR lookups
200
+ format: 'json' # String |
201
+ }
202
+
203
+ begin
204
+ # Live DNS Lookup
205
+ result = api_instance.dns_live(api_key, type, opts)
206
+ p result
207
+ rescue WhoisFreaks::ApiError => e
208
+ puts "Error when calling DNSApi->dns_live: #{e}"
209
+ end
210
+ ```
211
+
212
+ #### Using the dns_live_with_http_info variant
213
+
214
+ This returns an Array which contains the response data, status code and headers.
215
+
216
+ > <Array(<DnsResponse>, Integer, Hash)> dns_live_with_http_info(api_key, type, opts)
217
+
218
+ ```ruby
219
+ begin
220
+ # Live DNS Lookup
221
+ data, status_code, headers = api_instance.dns_live_with_http_info(api_key, type, opts)
222
+ p status_code # => 2xx
223
+ p headers # => { ... }
224
+ p data # => <DnsResponse>
225
+ rescue WhoisFreaks::ApiError => e
226
+ puts "Error when calling DNSApi->dns_live_with_http_info: #{e}"
227
+ end
228
+ ```
229
+
230
+ ### Parameters
231
+
232
+ | Name | Type | Description | Notes |
233
+ | ---- | ---- | ----------- | ----- |
234
+ | **api_key** | **String** | Your WHOISFreaks API key | |
235
+ | **type** | **String** | all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME | [default to &#39;all&#39;] |
236
+ | **domain_name** | **String** | | [optional] |
237
+ | **ip_address** | **String** | Use for PTR lookups | [optional] |
238
+ | **format** | **String** | | [optional][default to &#39;json&#39;] |
239
+
240
+ ### Return type
241
+
242
+ [**DnsResponse**](DnsResponse.md)
243
+
244
+ ### Authorization
245
+
246
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
247
+
248
+ ### HTTP request headers
249
+
250
+ - **Content-Type**: Not defined
251
+ - **Accept**: application/json
252
+
253
+
254
+ ## dns_reverse
255
+
256
+ > <ReverseDnsResponse> dns_reverse(api_key, value, type, opts)
257
+
258
+ Reverse DNS Lookup
259
+
260
+ Search domains by IP or DNS value. 5 credits per page.
261
+
262
+ ### Examples
263
+
264
+ ```ruby
265
+ require 'time'
266
+ require 'whoisfreaks'
267
+ # setup authorization
268
+ WhoisFreaks.configure do |config|
269
+ # Configure API key authorization: ApiKeyAuth
270
+ config.api_key['apiKey'] = 'YOUR API KEY'
271
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
272
+ # config.api_key_prefix['apiKey'] = 'Bearer'
273
+ end
274
+
275
+ api_instance = WhoisFreaks::DNSApi.new
276
+ api_key = 'api_key_example' # String | Your WHOISFreaks API key
277
+ value = 'value_example' # String | IP, CIDR, or record value
278
+ type = 'a' # String |
279
+ opts = {
280
+ exact: true, # Boolean |
281
+ page: 56, # Integer |
282
+ format: 'json' # String |
283
+ }
284
+
285
+ begin
286
+ # Reverse DNS Lookup
287
+ result = api_instance.dns_reverse(api_key, value, type, opts)
288
+ p result
289
+ rescue WhoisFreaks::ApiError => e
290
+ puts "Error when calling DNSApi->dns_reverse: #{e}"
291
+ end
292
+ ```
293
+
294
+ #### Using the dns_reverse_with_http_info variant
295
+
296
+ This returns an Array which contains the response data, status code and headers.
297
+
298
+ > <Array(<ReverseDnsResponse>, Integer, Hash)> dns_reverse_with_http_info(api_key, value, type, opts)
299
+
300
+ ```ruby
301
+ begin
302
+ # Reverse DNS Lookup
303
+ data, status_code, headers = api_instance.dns_reverse_with_http_info(api_key, value, type, opts)
304
+ p status_code # => 2xx
305
+ p headers # => { ... }
306
+ p data # => <ReverseDnsResponse>
307
+ rescue WhoisFreaks::ApiError => e
308
+ puts "Error when calling DNSApi->dns_reverse_with_http_info: #{e}"
309
+ end
310
+ ```
311
+
312
+ ### Parameters
313
+
314
+ | Name | Type | Description | Notes |
315
+ | ---- | ---- | ----------- | ----- |
316
+ | **api_key** | **String** | Your WHOISFreaks API key | |
317
+ | **value** | **String** | IP, CIDR, or record value | |
318
+ | **type** | **String** | | |
319
+ | **exact** | **Boolean** | | [optional][default to true] |
320
+ | **page** | **Integer** | | [optional][default to 1] |
321
+ | **format** | **String** | | [optional][default to &#39;json&#39;] |
322
+
323
+ ### Return type
324
+
325
+ [**ReverseDnsResponse**](ReverseDnsResponse.md)
326
+
327
+ ### Authorization
328
+
329
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
330
+
331
+ ### HTTP request headers
332
+
333
+ - **Content-Type**: Not defined
334
+ - **Accept**: application/json
335
+
@@ -0,0 +1,24 @@
1
+ # WhoisFreaks::DatabaseFileStatus
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **newly** | [**Hash&lt;String, DatabaseFileStatusNewlyValue&gt;**](DatabaseFileStatusNewlyValue.md) | | [optional] |
8
+ | **expired** | [**DatabaseFileStatusNewlyValue**](DatabaseFileStatusNewlyValue.md) | | [optional] |
9
+ | **dropped** | [**DatabaseFileStatusNewlyValue**](DatabaseFileStatusNewlyValue.md) | | [optional] |
10
+ | **database_updates** | **Object** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'whoisfreaks'
16
+
17
+ instance = WhoisFreaks::DatabaseFileStatus.new(
18
+ newly: null,
19
+ expired: null,
20
+ dropped: null,
21
+ database_updates: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,20 @@
1
+ # WhoisFreaks::DatabaseFileStatusNewlyValue
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **last_update** | **String** | | [optional] |
8
+ | **available_from** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'whoisfreaks'
14
+
15
+ instance = WhoisFreaks::DatabaseFileStatusNewlyValue.new(
16
+ last_update: null,
17
+ available_from: null
18
+ )
19
+ ```
20
+