cloudmersive-validate-api-client 2.1.1 → 2.1.6

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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +34 -4
  3. data/docs/AddressApi.md +55 -0
  4. data/docs/BotCheckResponse.md +8 -0
  5. data/docs/DateTimeApi.md +222 -0
  6. data/docs/DateTimeNaturalLanguageParseRequest.md +8 -0
  7. data/docs/DateTimeNowResult.md +10 -0
  8. data/docs/DateTimeStandardizedParseRequest.md +9 -0
  9. data/docs/DateTimeStandardizedParseResponse.md +16 -0
  10. data/docs/DomainApi.md +168 -3
  11. data/docs/EmailApi.md +3 -3
  12. data/docs/GetPublicHolidaysRequest.md +9 -0
  13. data/docs/IPAddressApi.md +169 -4
  14. data/docs/IPIntelligenceResponse.md +16 -0
  15. data/docs/IPReverseDNSLookupResponse.md +9 -0
  16. data/docs/NormalizeAddressResponse.md +18 -0
  17. data/docs/PublicHolidayOccurrence.md +12 -0
  18. data/docs/PublicHolidaysResponse.md +9 -0
  19. data/docs/TextInputApi.md +57 -2
  20. data/docs/UrlSsrfRequestBatch.md +8 -0
  21. data/docs/UrlSsrfRequestFull.md +9 -0
  22. data/docs/UrlSsrfResponseBatch.md +8 -0
  23. data/docs/UrlSsrfResponseFull.md +9 -0
  24. data/docs/ValidateUrlResponseSyntaxOnly.md +1 -0
  25. data/docs/XssProtectionBatchRequest.md +8 -0
  26. data/docs/XssProtectionBatchResponse.md +8 -0
  27. data/docs/XssProtectionRequestItem.md +8 -0
  28. data/lib/cloudmersive-validate-api-client.rb +19 -0
  29. data/lib/cloudmersive-validate-api-client/api/address_api.rb +54 -0
  30. data/lib/cloudmersive-validate-api-client/api/date_time_api.rb +231 -0
  31. data/lib/cloudmersive-validate-api-client/api/domain_api.rb +165 -3
  32. data/lib/cloudmersive-validate-api-client/api/email_api.rb +3 -3
  33. data/lib/cloudmersive-validate-api-client/api/ip_address_api.rb +166 -4
  34. data/lib/cloudmersive-validate-api-client/api/text_input_api.rb +56 -2
  35. data/lib/cloudmersive-validate-api-client/models/bot_check_response.rb +186 -0
  36. data/lib/cloudmersive-validate-api-client/models/date_time_natural_language_parse_request.rb +186 -0
  37. data/lib/cloudmersive-validate-api-client/models/date_time_now_result.rb +206 -0
  38. data/lib/cloudmersive-validate-api-client/models/date_time_standardized_parse_request.rb +196 -0
  39. data/lib/cloudmersive-validate-api-client/models/date_time_standardized_parse_response.rb +266 -0
  40. data/lib/cloudmersive-validate-api-client/models/geolocate_response.rb +1 -1
  41. data/lib/cloudmersive-validate-api-client/models/get_public_holidays_request.rb +196 -0
  42. data/lib/cloudmersive-validate-api-client/models/ip_intelligence_response.rb +266 -0
  43. data/lib/cloudmersive-validate-api-client/models/ip_reverse_dns_lookup_response.rb +196 -0
  44. data/lib/cloudmersive-validate-api-client/models/normalize_address_response.rb +286 -0
  45. data/lib/cloudmersive-validate-api-client/models/public_holiday_occurrence.rb +226 -0
  46. data/lib/cloudmersive-validate-api-client/models/public_holidays_response.rb +198 -0
  47. data/lib/cloudmersive-validate-api-client/models/url_ssrf_request_batch.rb +188 -0
  48. data/lib/cloudmersive-validate-api-client/models/url_ssrf_request_full.rb +198 -0
  49. data/lib/cloudmersive-validate-api-client/models/url_ssrf_response_batch.rb +188 -0
  50. data/lib/cloudmersive-validate-api-client/models/url_ssrf_response_full.rb +196 -0
  51. data/lib/cloudmersive-validate-api-client/models/validate_url_response_syntax_only.rb +14 -4
  52. data/lib/cloudmersive-validate-api-client/models/xss_protection_batch_request.rb +188 -0
  53. data/lib/cloudmersive-validate-api-client/models/xss_protection_batch_response.rb +188 -0
  54. data/lib/cloudmersive-validate-api-client/models/xss_protection_request_item.rb +186 -0
  55. data/lib/cloudmersive-validate-api-client/version.rb +1 -1
  56. data/spec/api/address_api_spec.rb +12 -0
  57. data/spec/api/date_time_api_spec.rb +82 -0
  58. data/spec/api/domain_api_spec.rb +36 -0
  59. data/spec/api/ip_address_api_spec.rb +36 -0
  60. data/spec/api/text_input_api_spec.rb +12 -0
  61. data/spec/models/bot_check_response_spec.rb +41 -0
  62. data/spec/models/date_time_natural_language_parse_request_spec.rb +41 -0
  63. data/spec/models/date_time_now_result_spec.rb +53 -0
  64. data/spec/models/date_time_standardized_parse_request_spec.rb +47 -0
  65. data/spec/models/date_time_standardized_parse_response_spec.rb +89 -0
  66. data/spec/models/get_public_holidays_request_spec.rb +47 -0
  67. data/spec/models/ip_intelligence_response_spec.rb +89 -0
  68. data/spec/models/ip_reverse_dns_lookup_response_spec.rb +47 -0
  69. data/spec/models/normalize_address_response_spec.rb +101 -0
  70. data/spec/models/public_holiday_occurrence_spec.rb +65 -0
  71. data/spec/models/public_holidays_response_spec.rb +47 -0
  72. data/spec/models/url_ssrf_request_batch_spec.rb +41 -0
  73. data/spec/models/url_ssrf_request_full_spec.rb +47 -0
  74. data/spec/models/url_ssrf_response_batch_spec.rb +41 -0
  75. data/spec/models/url_ssrf_response_full_spec.rb +47 -0
  76. data/spec/models/validate_url_response_syntax_only_spec.rb +6 -0
  77. data/spec/models/xss_protection_batch_request_spec.rb +41 -0
  78. data/spec/models/xss_protection_batch_response_spec.rb +41 -0
  79. data/spec/models/xss_protection_request_item_spec.rb +41 -0
  80. metadata +59 -2
@@ -53,7 +53,7 @@ module CloudmersiveValidateApiClient
53
53
  # HTTP header 'Accept' (if needed)
54
54
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
55
55
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
57
57
 
58
58
  # form parameters
59
59
  form_params = {}
@@ -73,6 +73,60 @@ module CloudmersiveValidateApiClient
73
73
  end
74
74
  return data, status_code, headers
75
75
  end
76
+ # Get top-level domain name from URL
77
+ # Gets the top-level domain name from a URL, such as mydomain.com.
78
+ # @param request Input URL information
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [ValidateUrlResponseSyntaxOnly]
81
+ def domain_get_top_level_domain_from_url(request, opts = {})
82
+ data, _status_code, _headers = domain_get_top_level_domain_from_url_with_http_info(request, opts)
83
+ data
84
+ end
85
+
86
+ # Get top-level domain name from URL
87
+ # Gets the top-level domain name from a URL, such as mydomain.com.
88
+ # @param request Input URL information
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [Array<(ValidateUrlResponseSyntaxOnly, Fixnum, Hash)>] ValidateUrlResponseSyntaxOnly data, response status code and response headers
91
+ def domain_get_top_level_domain_from_url_with_http_info(request, opts = {})
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug 'Calling API: DomainApi.domain_get_top_level_domain_from_url ...'
94
+ end
95
+ # verify the required parameter 'request' is set
96
+ if @api_client.config.client_side_validation && request.nil?
97
+ fail ArgumentError, "Missing the required parameter 'request' when calling DomainApi.domain_get_top_level_domain_from_url"
98
+ end
99
+ # resource path
100
+ local_var_path = '/validate/domain/url/get-top-level-domain'
101
+
102
+ # query parameters
103
+ query_params = {}
104
+
105
+ # header parameters
106
+ header_params = {}
107
+ # HTTP header 'Accept' (if needed)
108
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
109
+ # HTTP header 'Content-Type'
110
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
111
+
112
+ # form parameters
113
+ form_params = {}
114
+
115
+ # http body (model)
116
+ post_body = @api_client.object_to_http_body(request)
117
+ auth_names = ['Apikey']
118
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
119
+ :header_params => header_params,
120
+ :query_params => query_params,
121
+ :form_params => form_params,
122
+ :body => post_body,
123
+ :auth_names => auth_names,
124
+ :return_type => 'ValidateUrlResponseSyntaxOnly')
125
+ if @api_client.config.debugging
126
+ @api_client.config.logger.debug "API called: DomainApi#domain_get_top_level_domain_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
127
+ end
128
+ return data, status_code, headers
129
+ end
76
130
  # Get WHOIS information for a domain
77
131
  # Validate whether a domain name exists, and also return the full WHOIS record for that domain name. WHOIS records include all the registration details of the domain name, such as information about the domain's owners.
78
132
  # @param domain Domain name to check, for example \&quot;cloudmersive.com\&quot;. The input is a string so be sure to enclose it in double-quotes.
@@ -107,7 +161,7 @@ module CloudmersiveValidateApiClient
107
161
  # HTTP header 'Accept' (if needed)
108
162
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
109
163
  # HTTP header 'Content-Type'
110
- header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
164
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
111
165
 
112
166
  # form parameters
113
167
  form_params = {}
@@ -161,7 +215,7 @@ module CloudmersiveValidateApiClient
161
215
  # HTTP header 'Accept' (if needed)
162
216
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
163
217
  # HTTP header 'Content-Type'
164
- header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
218
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
165
219
 
166
220
  # form parameters
167
221
  form_params = {}
@@ -181,6 +235,114 @@ module CloudmersiveValidateApiClient
181
235
  end
182
236
  return data, status_code, headers
183
237
  end
238
+ # Check a URL for SSRF threats
239
+ # Checks if an input URL is at risk of being an SSRF (Server-side request forgery) threat or attack.
240
+ # @param request Input URL request
241
+ # @param [Hash] opts the optional parameters
242
+ # @return [UrlSsrfResponseFull]
243
+ def domain_ssrf_check(request, opts = {})
244
+ data, _status_code, _headers = domain_ssrf_check_with_http_info(request, opts)
245
+ data
246
+ end
247
+
248
+ # Check a URL for SSRF threats
249
+ # Checks if an input URL is at risk of being an SSRF (Server-side request forgery) threat or attack.
250
+ # @param request Input URL request
251
+ # @param [Hash] opts the optional parameters
252
+ # @return [Array<(UrlSsrfResponseFull, Fixnum, Hash)>] UrlSsrfResponseFull data, response status code and response headers
253
+ def domain_ssrf_check_with_http_info(request, opts = {})
254
+ if @api_client.config.debugging
255
+ @api_client.config.logger.debug 'Calling API: DomainApi.domain_ssrf_check ...'
256
+ end
257
+ # verify the required parameter 'request' is set
258
+ if @api_client.config.client_side_validation && request.nil?
259
+ fail ArgumentError, "Missing the required parameter 'request' when calling DomainApi.domain_ssrf_check"
260
+ end
261
+ # resource path
262
+ local_var_path = '/validate/domain/url/ssrf-threat-check'
263
+
264
+ # query parameters
265
+ query_params = {}
266
+
267
+ # header parameters
268
+ header_params = {}
269
+ # HTTP header 'Accept' (if needed)
270
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
271
+ # HTTP header 'Content-Type'
272
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
273
+
274
+ # form parameters
275
+ form_params = {}
276
+
277
+ # http body (model)
278
+ post_body = @api_client.object_to_http_body(request)
279
+ auth_names = ['Apikey']
280
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
281
+ :header_params => header_params,
282
+ :query_params => query_params,
283
+ :form_params => form_params,
284
+ :body => post_body,
285
+ :auth_names => auth_names,
286
+ :return_type => 'UrlSsrfResponseFull')
287
+ if @api_client.config.debugging
288
+ @api_client.config.logger.debug "API called: DomainApi#domain_ssrf_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
289
+ end
290
+ return data, status_code, headers
291
+ end
292
+ # Check a URL for SSRF threats in batches
293
+ # Batch-checks if input URLs are at risk of being an SSRF (Server-side request forgery) threat or attack.
294
+ # @param request Input URL request as a batch of multiple URLs
295
+ # @param [Hash] opts the optional parameters
296
+ # @return [UrlSsrfResponseBatch]
297
+ def domain_ssrf_check_batch(request, opts = {})
298
+ data, _status_code, _headers = domain_ssrf_check_batch_with_http_info(request, opts)
299
+ data
300
+ end
301
+
302
+ # Check a URL for SSRF threats in batches
303
+ # Batch-checks if input URLs are at risk of being an SSRF (Server-side request forgery) threat or attack.
304
+ # @param request Input URL request as a batch of multiple URLs
305
+ # @param [Hash] opts the optional parameters
306
+ # @return [Array<(UrlSsrfResponseBatch, Fixnum, Hash)>] UrlSsrfResponseBatch data, response status code and response headers
307
+ def domain_ssrf_check_batch_with_http_info(request, opts = {})
308
+ if @api_client.config.debugging
309
+ @api_client.config.logger.debug 'Calling API: DomainApi.domain_ssrf_check_batch ...'
310
+ end
311
+ # verify the required parameter 'request' is set
312
+ if @api_client.config.client_side_validation && request.nil?
313
+ fail ArgumentError, "Missing the required parameter 'request' when calling DomainApi.domain_ssrf_check_batch"
314
+ end
315
+ # resource path
316
+ local_var_path = '/validate/domain/url/ssrf-threat-check/batch'
317
+
318
+ # query parameters
319
+ query_params = {}
320
+
321
+ # header parameters
322
+ header_params = {}
323
+ # HTTP header 'Accept' (if needed)
324
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
325
+ # HTTP header 'Content-Type'
326
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
327
+
328
+ # form parameters
329
+ form_params = {}
330
+
331
+ # http body (model)
332
+ post_body = @api_client.object_to_http_body(request)
333
+ auth_names = ['Apikey']
334
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
335
+ :header_params => header_params,
336
+ :query_params => query_params,
337
+ :form_params => form_params,
338
+ :body => post_body,
339
+ :auth_names => auth_names,
340
+ :return_type => 'UrlSsrfResponseBatch')
341
+ if @api_client.config.debugging
342
+ @api_client.config.logger.debug "API called: DomainApi#domain_ssrf_check_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
343
+ end
344
+ return data, status_code, headers
345
+ end
184
346
  # Validate a URL fully
185
347
  # Validate whether a URL is syntactically valid (does not check endpoint for validity), whether it exists, and whether the endpoint is up and passes virus scan checks. Accepts various types of input and produces a well-formed URL as output.
186
348
  # @param request Input URL request
@@ -53,7 +53,7 @@ module CloudmersiveValidateApiClient
53
53
  # HTTP header 'Accept' (if needed)
54
54
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
55
55
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
57
57
 
58
58
  # form parameters
59
59
  form_params = {}
@@ -107,7 +107,7 @@ module CloudmersiveValidateApiClient
107
107
  # HTTP header 'Accept' (if needed)
108
108
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
109
109
  # HTTP header 'Content-Type'
110
- header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
110
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
111
111
 
112
112
  # form parameters
113
113
  form_params = {}
@@ -161,7 +161,7 @@ module CloudmersiveValidateApiClient
161
161
  # HTTP header 'Accept' (if needed)
162
162
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
163
163
  # HTTP header 'Content-Type'
164
- header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
164
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
165
165
 
166
166
  # form parameters
167
167
  form_params = {}
@@ -53,7 +53,7 @@ module CloudmersiveValidateApiClient
53
53
  # HTTP header 'Accept' (if needed)
54
54
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
55
55
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
57
57
 
58
58
  # form parameters
59
59
  form_params = {}
@@ -73,6 +73,114 @@ module CloudmersiveValidateApiClient
73
73
  end
74
74
  return data, status_code, headers
75
75
  end
76
+ # Get intelligence on an IP address
77
+ # Identify key intelligence about an IP address, including if it is a known threat IP, known bot, Tor exit node, as well as the location of the IP address.
78
+ # @param value IP address to process, e.g. \&quot;55.55.55.55\&quot;. The input is a string so be sure to enclose it in double-quotes.
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [IPIntelligenceResponse]
81
+ def i_p_address_ip_intelligence(value, opts = {})
82
+ data, _status_code, _headers = i_p_address_ip_intelligence_with_http_info(value, opts)
83
+ data
84
+ end
85
+
86
+ # Get intelligence on an IP address
87
+ # Identify key intelligence about an IP address, including if it is a known threat IP, known bot, Tor exit node, as well as the location of the IP address.
88
+ # @param value IP address to process, e.g. \&quot;55.55.55.55\&quot;. The input is a string so be sure to enclose it in double-quotes.
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [Array<(IPIntelligenceResponse, Fixnum, Hash)>] IPIntelligenceResponse data, response status code and response headers
91
+ def i_p_address_ip_intelligence_with_http_info(value, opts = {})
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug 'Calling API: IPAddressApi.i_p_address_ip_intelligence ...'
94
+ end
95
+ # verify the required parameter 'value' is set
96
+ if @api_client.config.client_side_validation && value.nil?
97
+ fail ArgumentError, "Missing the required parameter 'value' when calling IPAddressApi.i_p_address_ip_intelligence"
98
+ end
99
+ # resource path
100
+ local_var_path = '/validate/ip/intelligence'
101
+
102
+ # query parameters
103
+ query_params = {}
104
+
105
+ # header parameters
106
+ header_params = {}
107
+ # HTTP header 'Accept' (if needed)
108
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
109
+ # HTTP header 'Content-Type'
110
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
111
+
112
+ # form parameters
113
+ form_params = {}
114
+
115
+ # http body (model)
116
+ post_body = @api_client.object_to_http_body(value)
117
+ auth_names = ['Apikey']
118
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
119
+ :header_params => header_params,
120
+ :query_params => query_params,
121
+ :form_params => form_params,
122
+ :body => post_body,
123
+ :auth_names => auth_names,
124
+ :return_type => 'IPIntelligenceResponse')
125
+ if @api_client.config.debugging
126
+ @api_client.config.logger.debug "API called: IPAddressApi#i_p_address_ip_intelligence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
127
+ end
128
+ return data, status_code, headers
129
+ end
130
+ # Check if IP address is a Bot client
131
+ # Check if the input IP address is a Bot, robot, or otherwise a non-user entity. Leverages real-time signals to check against known high-probability bots..
132
+ # @param value IP address to check, e.g. \&quot;55.55.55.55\&quot;. The input is a string so be sure to enclose it in double-quotes.
133
+ # @param [Hash] opts the optional parameters
134
+ # @return [BotCheckResponse]
135
+ def i_p_address_is_bot(value, opts = {})
136
+ data, _status_code, _headers = i_p_address_is_bot_with_http_info(value, opts)
137
+ data
138
+ end
139
+
140
+ # Check if IP address is a Bot client
141
+ # Check if the input IP address is a Bot, robot, or otherwise a non-user entity. Leverages real-time signals to check against known high-probability bots..
142
+ # @param value IP address to check, e.g. \&quot;55.55.55.55\&quot;. The input is a string so be sure to enclose it in double-quotes.
143
+ # @param [Hash] opts the optional parameters
144
+ # @return [Array<(BotCheckResponse, Fixnum, Hash)>] BotCheckResponse data, response status code and response headers
145
+ def i_p_address_is_bot_with_http_info(value, opts = {})
146
+ if @api_client.config.debugging
147
+ @api_client.config.logger.debug 'Calling API: IPAddressApi.i_p_address_is_bot ...'
148
+ end
149
+ # verify the required parameter 'value' is set
150
+ if @api_client.config.client_side_validation && value.nil?
151
+ fail ArgumentError, "Missing the required parameter 'value' when calling IPAddressApi.i_p_address_is_bot"
152
+ end
153
+ # resource path
154
+ local_var_path = '/validate/ip/is-bot'
155
+
156
+ # query parameters
157
+ query_params = {}
158
+
159
+ # header parameters
160
+ header_params = {}
161
+ # HTTP header 'Accept' (if needed)
162
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
163
+ # HTTP header 'Content-Type'
164
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
165
+
166
+ # form parameters
167
+ form_params = {}
168
+
169
+ # http body (model)
170
+ post_body = @api_client.object_to_http_body(value)
171
+ auth_names = ['Apikey']
172
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
173
+ :header_params => header_params,
174
+ :query_params => query_params,
175
+ :form_params => form_params,
176
+ :body => post_body,
177
+ :auth_names => auth_names,
178
+ :return_type => 'BotCheckResponse')
179
+ if @api_client.config.debugging
180
+ @api_client.config.logger.debug "API called: IPAddressApi#i_p_address_is_bot\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
181
+ end
182
+ return data, status_code, headers
183
+ end
76
184
  # Check if IP address is a known threat
77
185
  # Check if the input IP address is a known threat IP address. Checks against known bad IPs, botnets, compromised servers, and other lists of threats.
78
186
  # @param value IP address to check, e.g. \&quot;55.55.55.55\&quot;. The input is a string so be sure to enclose it in double-quotes.
@@ -107,7 +215,7 @@ module CloudmersiveValidateApiClient
107
215
  # HTTP header 'Accept' (if needed)
108
216
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
109
217
  # HTTP header 'Content-Type'
110
- header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
218
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
111
219
 
112
220
  # form parameters
113
221
  form_params = {}
@@ -161,7 +269,7 @@ module CloudmersiveValidateApiClient
161
269
  # HTTP header 'Accept' (if needed)
162
270
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
163
271
  # HTTP header 'Content-Type'
164
- header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
272
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
165
273
 
166
274
  # form parameters
167
275
  form_params = {}
@@ -215,7 +323,7 @@ module CloudmersiveValidateApiClient
215
323
  # HTTP header 'Accept' (if needed)
216
324
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
217
325
  # HTTP header 'Content-Type'
218
- header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
326
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
219
327
 
220
328
  # form parameters
221
329
  form_params = {}
@@ -235,5 +343,59 @@ module CloudmersiveValidateApiClient
235
343
  end
236
344
  return data, status_code, headers
237
345
  end
346
+ # Perform a reverse domain name (DNS) lookup on an IP address
347
+ # Gets the domain name, if any, associated with the IP address.
348
+ # @param value IP address to check, e.g. \&quot;55.55.55.55\&quot;. The input is a string so be sure to enclose it in double-quotes.
349
+ # @param [Hash] opts the optional parameters
350
+ # @return [IPReverseDNSLookupResponse]
351
+ def i_p_address_reverse_domain_lookup(value, opts = {})
352
+ data, _status_code, _headers = i_p_address_reverse_domain_lookup_with_http_info(value, opts)
353
+ data
354
+ end
355
+
356
+ # Perform a reverse domain name (DNS) lookup on an IP address
357
+ # Gets the domain name, if any, associated with the IP address.
358
+ # @param value IP address to check, e.g. \&quot;55.55.55.55\&quot;. The input is a string so be sure to enclose it in double-quotes.
359
+ # @param [Hash] opts the optional parameters
360
+ # @return [Array<(IPReverseDNSLookupResponse, Fixnum, Hash)>] IPReverseDNSLookupResponse data, response status code and response headers
361
+ def i_p_address_reverse_domain_lookup_with_http_info(value, opts = {})
362
+ if @api_client.config.debugging
363
+ @api_client.config.logger.debug 'Calling API: IPAddressApi.i_p_address_reverse_domain_lookup ...'
364
+ end
365
+ # verify the required parameter 'value' is set
366
+ if @api_client.config.client_side_validation && value.nil?
367
+ fail ArgumentError, "Missing the required parameter 'value' when calling IPAddressApi.i_p_address_reverse_domain_lookup"
368
+ end
369
+ # resource path
370
+ local_var_path = '/validate/ip/reverse-domain-lookup'
371
+
372
+ # query parameters
373
+ query_params = {}
374
+
375
+ # header parameters
376
+ header_params = {}
377
+ # HTTP header 'Accept' (if needed)
378
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
379
+ # HTTP header 'Content-Type'
380
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
381
+
382
+ # form parameters
383
+ form_params = {}
384
+
385
+ # http body (model)
386
+ post_body = @api_client.object_to_http_body(value)
387
+ auth_names = ['Apikey']
388
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
389
+ :header_params => header_params,
390
+ :query_params => query_params,
391
+ :form_params => form_params,
392
+ :body => post_body,
393
+ :auth_names => auth_names,
394
+ :return_type => 'IPReverseDNSLookupResponse')
395
+ if @api_client.config.debugging
396
+ @api_client.config.logger.debug "API called: IPAddressApi#i_p_address_reverse_domain_lookup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
397
+ end
398
+ return data, status_code, headers
399
+ end
238
400
  end
239
401
  end
@@ -53,7 +53,7 @@ module CloudmersiveValidateApiClient
53
53
  # HTTP header 'Accept' (if needed)
54
54
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
55
55
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
57
57
 
58
58
  # form parameters
59
59
  form_params = {}
@@ -73,6 +73,60 @@ module CloudmersiveValidateApiClient
73
73
  end
74
74
  return data, status_code, headers
75
75
  end
76
+ # Check and protect multiple text inputs for Cross-Site-Scripting (XSS) attacks in batch
77
+ # Detects XSS (Cross-Site-Scripting) attacks from multiple text input. Output preverses order of input items.
78
+ # @param value User-facing text input.
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [XssProtectionBatchResponse]
81
+ def text_input_check_xss_batch(value, opts = {})
82
+ data, _status_code, _headers = text_input_check_xss_batch_with_http_info(value, opts)
83
+ data
84
+ end
85
+
86
+ # Check and protect multiple text inputs for Cross-Site-Scripting (XSS) attacks in batch
87
+ # Detects XSS (Cross-Site-Scripting) attacks from multiple text input. Output preverses order of input items.
88
+ # @param value User-facing text input.
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [Array<(XssProtectionBatchResponse, Fixnum, Hash)>] XssProtectionBatchResponse data, response status code and response headers
91
+ def text_input_check_xss_batch_with_http_info(value, opts = {})
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug 'Calling API: TextInputApi.text_input_check_xss_batch ...'
94
+ end
95
+ # verify the required parameter 'value' is set
96
+ if @api_client.config.client_side_validation && value.nil?
97
+ fail ArgumentError, "Missing the required parameter 'value' when calling TextInputApi.text_input_check_xss_batch"
98
+ end
99
+ # resource path
100
+ local_var_path = '/validate/text-input/check-and-protect/xss/batch'
101
+
102
+ # query parameters
103
+ query_params = {}
104
+
105
+ # header parameters
106
+ header_params = {}
107
+ # HTTP header 'Accept' (if needed)
108
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
109
+ # HTTP header 'Content-Type'
110
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
111
+
112
+ # form parameters
113
+ form_params = {}
114
+
115
+ # http body (model)
116
+ post_body = @api_client.object_to_http_body(value)
117
+ auth_names = ['Apikey']
118
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
119
+ :header_params => header_params,
120
+ :query_params => query_params,
121
+ :form_params => form_params,
122
+ :body => post_body,
123
+ :auth_names => auth_names,
124
+ :return_type => 'XssProtectionBatchResponse')
125
+ if @api_client.config.debugging
126
+ @api_client.config.logger.debug "API called: TextInputApi#text_input_check_xss_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
127
+ end
128
+ return data, status_code, headers
129
+ end
76
130
  # Protect text input from Cross-Site-Scripting (XSS) attacks through normalization
77
131
  # Detects and removes XSS (Cross-Site-Scripting) attacks from text input through normalization. Returns the normalized result, as well as information on whether the original input contained an XSS risk.
78
132
  # @param value User-facing text input.
@@ -107,7 +161,7 @@ module CloudmersiveValidateApiClient
107
161
  # HTTP header 'Accept' (if needed)
108
162
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
109
163
  # HTTP header 'Content-Type'
110
- header_params['Content-Type'] = @api_client.select_header_content_type(['text/javascript', 'application/json', 'text/json'])
164
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json'])
111
165
 
112
166
  # form parameters
113
167
  form_params = {}