cloudmersive-validate-api-client 2.1.5 → 2.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f896a47826183614618fd426ca8a512d17bdb280e1896d7028808b92e5745df
4
- data.tar.gz: d0b93394baf070b8d91989afd8fd25bcd6419b13268c82a0a79338db62831b60
3
+ metadata.gz: afffb6db20490e6875a2912aae61a195e915e7f227a408a19b8dfc8116bf8c97
4
+ data.tar.gz: bd4588635ccdea19658f9cf1becebc2f21fe7316c73a2439a3438719c5d1570a
5
5
  SHA512:
6
- metadata.gz: a03bb74df4fd2297b9a17ba954b4d1bdde7d000e14beb289e06ba83008e998b6ec55f92325102e33b6b841f10ffc493cd58acd2cd06b3d42d400737c4df6db0d
7
- data.tar.gz: 2a105cc05b48b0badedbdba89322982781b8b0ba5ea5ddd50cc98693f367594fdac80be03bd6a13e41c4fa6ce08bd100b2e57edc6ff1bf10614b4e1fc9d9698c
6
+ metadata.gz: 8e4bb3b1b307b45ee352fd353330b5fb40c2eae83e6de7731936fb8f929e704a836f019dbd152926595cd31cafeb6226972d2c32466ce4ed2a0108391bfc567b
7
+ data.tar.gz: cf5ed08ccb9440cfcc3ccb1ce2ff197a63e1e6b9adc5893381d77d1e1041c6a57ea1a27800fba11dcd95a2225cfe6dc5bddc8935f6159b57e0044b8476ddefcf
data/README.md CHANGED
@@ -7,7 +7,7 @@ The validation APIs help you validate data. Check if an E-mail address is real.
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 2.1.5
10
+ - Package version: 2.1.6
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build cloudmersive-validate-api-client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./cloudmersive-validate-api-client-2.1.5.gem
26
+ gem install ./cloudmersive-validate-api-client-2.1.6.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-validate-api-client-2.1.5.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-validate-api-client-2.1.6.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'cloudmersive-validate-api-client', '~> 2.1.5'
34
+ gem 'cloudmersive-validate-api-client', '~> 2.1.6'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -102,8 +102,11 @@ Class | Method | HTTP request | Description
102
102
  *CloudmersiveValidateApiClient::DateTimeApi* | [**date_time_parse_natural_language_date_time**](docs/DateTimeApi.md#date_time_parse_natural_language_date_time) | **POST** /validate/date-time/parse/date-time/natural-language | Parses a free-form natural language date and time string into a date and time
103
103
  *CloudmersiveValidateApiClient::DateTimeApi* | [**date_time_parse_standard_date_time**](docs/DateTimeApi.md#date_time_parse_standard_date_time) | **POST** /validate/date-time/parse/date-time/structured | Parses a standardized date and time string into a date and time
104
104
  *CloudmersiveValidateApiClient::DomainApi* | [**domain_check**](docs/DomainApi.md#domain_check) | **POST** /validate/domain/check | Validate a domain name
105
+ *CloudmersiveValidateApiClient::DomainApi* | [**domain_get_top_level_domain_from_url**](docs/DomainApi.md#domain_get_top_level_domain_from_url) | **POST** /validate/domain/url/get-top-level-domain | Get top-level domain name from URL
105
106
  *CloudmersiveValidateApiClient::DomainApi* | [**domain_post**](docs/DomainApi.md#domain_post) | **POST** /validate/domain/whois | Get WHOIS information for a domain
106
107
  *CloudmersiveValidateApiClient::DomainApi* | [**domain_quality_score**](docs/DomainApi.md#domain_quality_score) | **POST** /validate/domain/quality-score | Validate a domain name's quality score
108
+ *CloudmersiveValidateApiClient::DomainApi* | [**domain_ssrf_check**](docs/DomainApi.md#domain_ssrf_check) | **POST** /validate/domain/url/ssrf-threat-check | Check a URL for SSRF threats
109
+ *CloudmersiveValidateApiClient::DomainApi* | [**domain_ssrf_check_batch**](docs/DomainApi.md#domain_ssrf_check_batch) | **POST** /validate/domain/url/ssrf-threat-check/batch | Check a URL for SSRF threats in batches
107
110
  *CloudmersiveValidateApiClient::DomainApi* | [**domain_url_full**](docs/DomainApi.md#domain_url_full) | **POST** /validate/domain/url/full | Validate a URL fully
108
111
  *CloudmersiveValidateApiClient::DomainApi* | [**domain_url_syntax_only**](docs/DomainApi.md#domain_url_syntax_only) | **POST** /validate/domain/url/syntax-only | Validate a URL syntactically
109
112
  *CloudmersiveValidateApiClient::EmailApi* | [**email_address_get_servers**](docs/EmailApi.md#email_address_get_servers) | **POST** /validate/email/address/servers | Partially check whether an email address is valid
@@ -173,6 +176,10 @@ Class | Method | HTTP request | Description
173
176
  - [CloudmersiveValidateApiClient::ReverseGeocodeAddressResponse](docs/ReverseGeocodeAddressResponse.md)
174
177
  - [CloudmersiveValidateApiClient::Timezone](docs/Timezone.md)
175
178
  - [CloudmersiveValidateApiClient::TorNodeResponse](docs/TorNodeResponse.md)
179
+ - [CloudmersiveValidateApiClient::UrlSsrfRequestBatch](docs/UrlSsrfRequestBatch.md)
180
+ - [CloudmersiveValidateApiClient::UrlSsrfRequestFull](docs/UrlSsrfRequestFull.md)
181
+ - [CloudmersiveValidateApiClient::UrlSsrfResponseBatch](docs/UrlSsrfResponseBatch.md)
182
+ - [CloudmersiveValidateApiClient::UrlSsrfResponseFull](docs/UrlSsrfResponseFull.md)
176
183
  - [CloudmersiveValidateApiClient::UserAgentValidateRequest](docs/UserAgentValidateRequest.md)
177
184
  - [CloudmersiveValidateApiClient::UserAgentValidateResponse](docs/UserAgentValidateResponse.md)
178
185
  - [CloudmersiveValidateApiClient::ValidateAddressRequest](docs/ValidateAddressRequest.md)
data/docs/DomainApi.md CHANGED
@@ -5,8 +5,11 @@ All URIs are relative to *https://api.cloudmersive.com*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**domain_check**](DomainApi.md#domain_check) | **POST** /validate/domain/check | Validate a domain name
8
+ [**domain_get_top_level_domain_from_url**](DomainApi.md#domain_get_top_level_domain_from_url) | **POST** /validate/domain/url/get-top-level-domain | Get top-level domain name from URL
8
9
  [**domain_post**](DomainApi.md#domain_post) | **POST** /validate/domain/whois | Get WHOIS information for a domain
9
10
  [**domain_quality_score**](DomainApi.md#domain_quality_score) | **POST** /validate/domain/quality-score | Validate a domain name's quality score
11
+ [**domain_ssrf_check**](DomainApi.md#domain_ssrf_check) | **POST** /validate/domain/url/ssrf-threat-check | Check a URL for SSRF threats
12
+ [**domain_ssrf_check_batch**](DomainApi.md#domain_ssrf_check_batch) | **POST** /validate/domain/url/ssrf-threat-check/batch | Check a URL for SSRF threats in batches
10
13
  [**domain_url_full**](DomainApi.md#domain_url_full) | **POST** /validate/domain/url/full | Validate a URL fully
11
14
  [**domain_url_syntax_only**](DomainApi.md#domain_url_syntax_only) | **POST** /validate/domain/url/syntax-only | Validate a URL syntactically
12
15
 
@@ -65,6 +68,60 @@ Name | Type | Description | Notes
65
68
 
66
69
 
67
70
 
71
+ # **domain_get_top_level_domain_from_url**
72
+ > ValidateUrlResponseSyntaxOnly domain_get_top_level_domain_from_url(request)
73
+
74
+ Get top-level domain name from URL
75
+
76
+ Gets the top-level domain name from a URL, such as mydomain.com.
77
+
78
+ ### Example
79
+ ```ruby
80
+ # load the gem
81
+ require 'cloudmersive-validate-api-client'
82
+ # setup authorization
83
+ CloudmersiveValidateApiClient.configure do |config|
84
+ # Configure API key authorization: Apikey
85
+ config.api_key['Apikey'] = 'YOUR API KEY'
86
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
87
+ #config.api_key_prefix['Apikey'] = 'Bearer'
88
+ end
89
+
90
+ api_instance = CloudmersiveValidateApiClient::DomainApi.new
91
+
92
+ request = CloudmersiveValidateApiClient::ValidateUrlRequestSyntaxOnly.new # ValidateUrlRequestSyntaxOnly | Input URL information
93
+
94
+
95
+ begin
96
+ #Get top-level domain name from URL
97
+ result = api_instance.domain_get_top_level_domain_from_url(request)
98
+ p result
99
+ rescue CloudmersiveValidateApiClient::ApiError => e
100
+ puts "Exception when calling DomainApi->domain_get_top_level_domain_from_url: #{e}"
101
+ end
102
+ ```
103
+
104
+ ### Parameters
105
+
106
+ Name | Type | Description | Notes
107
+ ------------- | ------------- | ------------- | -------------
108
+ **request** | [**ValidateUrlRequestSyntaxOnly**](ValidateUrlRequestSyntaxOnly.md)| Input URL information |
109
+
110
+ ### Return type
111
+
112
+ [**ValidateUrlResponseSyntaxOnly**](ValidateUrlResponseSyntaxOnly.md)
113
+
114
+ ### Authorization
115
+
116
+ [Apikey](../README.md#Apikey)
117
+
118
+ ### HTTP request headers
119
+
120
+ - **Content-Type**: application/json, text/json
121
+ - **Accept**: application/json, text/json, application/xml, text/xml
122
+
123
+
124
+
68
125
  # **domain_post**
69
126
  > WhoisResponse domain_post(domain)
70
127
 
@@ -173,6 +230,114 @@ Name | Type | Description | Notes
173
230
 
174
231
 
175
232
 
233
+ # **domain_ssrf_check**
234
+ > UrlSsrfResponseFull domain_ssrf_check(request)
235
+
236
+ Check a URL for SSRF threats
237
+
238
+ Checks if an input URL is at risk of being an SSRF (Server-side request forgery) threat or attack.
239
+
240
+ ### Example
241
+ ```ruby
242
+ # load the gem
243
+ require 'cloudmersive-validate-api-client'
244
+ # setup authorization
245
+ CloudmersiveValidateApiClient.configure do |config|
246
+ # Configure API key authorization: Apikey
247
+ config.api_key['Apikey'] = 'YOUR API KEY'
248
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
249
+ #config.api_key_prefix['Apikey'] = 'Bearer'
250
+ end
251
+
252
+ api_instance = CloudmersiveValidateApiClient::DomainApi.new
253
+
254
+ request = CloudmersiveValidateApiClient::UrlSsrfRequestFull.new # UrlSsrfRequestFull | Input URL request
255
+
256
+
257
+ begin
258
+ #Check a URL for SSRF threats
259
+ result = api_instance.domain_ssrf_check(request)
260
+ p result
261
+ rescue CloudmersiveValidateApiClient::ApiError => e
262
+ puts "Exception when calling DomainApi->domain_ssrf_check: #{e}"
263
+ end
264
+ ```
265
+
266
+ ### Parameters
267
+
268
+ Name | Type | Description | Notes
269
+ ------------- | ------------- | ------------- | -------------
270
+ **request** | [**UrlSsrfRequestFull**](UrlSsrfRequestFull.md)| Input URL request |
271
+
272
+ ### Return type
273
+
274
+ [**UrlSsrfResponseFull**](UrlSsrfResponseFull.md)
275
+
276
+ ### Authorization
277
+
278
+ [Apikey](../README.md#Apikey)
279
+
280
+ ### HTTP request headers
281
+
282
+ - **Content-Type**: application/json, text/json
283
+ - **Accept**: application/json, text/json, application/xml, text/xml
284
+
285
+
286
+
287
+ # **domain_ssrf_check_batch**
288
+ > UrlSsrfResponseBatch domain_ssrf_check_batch(request)
289
+
290
+ Check a URL for SSRF threats in batches
291
+
292
+ Batch-checks if input URLs are at risk of being an SSRF (Server-side request forgery) threat or attack.
293
+
294
+ ### Example
295
+ ```ruby
296
+ # load the gem
297
+ require 'cloudmersive-validate-api-client'
298
+ # setup authorization
299
+ CloudmersiveValidateApiClient.configure do |config|
300
+ # Configure API key authorization: Apikey
301
+ config.api_key['Apikey'] = 'YOUR API KEY'
302
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
303
+ #config.api_key_prefix['Apikey'] = 'Bearer'
304
+ end
305
+
306
+ api_instance = CloudmersiveValidateApiClient::DomainApi.new
307
+
308
+ request = CloudmersiveValidateApiClient::UrlSsrfRequestBatch.new # UrlSsrfRequestBatch | Input URL request as a batch of multiple URLs
309
+
310
+
311
+ begin
312
+ #Check a URL for SSRF threats in batches
313
+ result = api_instance.domain_ssrf_check_batch(request)
314
+ p result
315
+ rescue CloudmersiveValidateApiClient::ApiError => e
316
+ puts "Exception when calling DomainApi->domain_ssrf_check_batch: #{e}"
317
+ end
318
+ ```
319
+
320
+ ### Parameters
321
+
322
+ Name | Type | Description | Notes
323
+ ------------- | ------------- | ------------- | -------------
324
+ **request** | [**UrlSsrfRequestBatch**](UrlSsrfRequestBatch.md)| Input URL request as a batch of multiple URLs |
325
+
326
+ ### Return type
327
+
328
+ [**UrlSsrfResponseBatch**](UrlSsrfResponseBatch.md)
329
+
330
+ ### Authorization
331
+
332
+ [Apikey](../README.md#Apikey)
333
+
334
+ ### HTTP request headers
335
+
336
+ - **Content-Type**: application/json, text/json
337
+ - **Accept**: application/json, text/json, application/xml, text/xml
338
+
339
+
340
+
176
341
  # **domain_url_full**
177
342
  > ValidateUrlResponseFull domain_url_full(request)
178
343
 
@@ -0,0 +1,8 @@
1
+ # CloudmersiveValidateApiClient::UrlSsrfRequestBatch
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **input_items** | [**Array<UrlSsrfRequestFull>**](UrlSsrfRequestFull.md) | Input URLs to check for SSRF threats | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveValidateApiClient::UrlSsrfRequestFull
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **url** | **String** | URL to validate | [optional]
7
+ **blocked_domains** | **Array<String>** | Top level domains that you do not want to allow access to, e.g. mydomain.com - will block all subdomains as well | [optional]
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # CloudmersiveValidateApiClient::UrlSsrfResponseBatch
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **output_items** | [**Array<UrlSsrfResponseFull>**](UrlSsrfResponseFull.md) | Results of the operation, with indexes matched to input values | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveValidateApiClient::UrlSsrfResponseFull
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **clean_url** | **BOOLEAN** | True if the URL is clean, false if it is at risk of containing an SSRF threat or attack | [optional]
7
+ **threat_level** | **String** | Threat level of the URL; possible values are High, Medium, Low and None | [optional]
8
+
9
+
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **valid_url** | **BOOLEAN** | True if the URL is valid, false otherwise | [optional]
7
7
  **well_formed_url** | **String** | Well-formed version of the URL | [optional]
8
+ **top_level_domain_name** | **String** | The top-level domain name of the URL, e.g. mydomain.com | [optional]
8
9
 
9
10
 
@@ -58,6 +58,10 @@ require 'cloudmersive-validate-api-client/models/reverse_geocode_address_request
58
58
  require 'cloudmersive-validate-api-client/models/reverse_geocode_address_response'
59
59
  require 'cloudmersive-validate-api-client/models/timezone'
60
60
  require 'cloudmersive-validate-api-client/models/tor_node_response'
61
+ require 'cloudmersive-validate-api-client/models/url_ssrf_request_batch'
62
+ require 'cloudmersive-validate-api-client/models/url_ssrf_request_full'
63
+ require 'cloudmersive-validate-api-client/models/url_ssrf_response_batch'
64
+ require 'cloudmersive-validate-api-client/models/url_ssrf_response_full'
61
65
  require 'cloudmersive-validate-api-client/models/user_agent_validate_request'
62
66
  require 'cloudmersive-validate-api-client/models/user_agent_validate_response'
63
67
  require 'cloudmersive-validate-api-client/models/validate_address_request'
@@ -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.
@@ -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