whoisfreaks 0.10.0 → 0.12.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14c281fb4f9f95e1f8e0c0a295f757870423ae16df233e1beabdca5cd0c16a8a
4
- data.tar.gz: 9bc90592deb3704f4f907e5b054f1feb25e97bdc23dbbd331ae724129eb5a7aa
3
+ metadata.gz: 2ef26878ec0f7d28c768f4184cae6668a8a600f0d4171e0bfdf7f35bba18807d
4
+ data.tar.gz: 8349b1355389edbda6d7b4ad24d01a709c7ab649b2f3521e76289d99398261f3
5
5
  SHA512:
6
- metadata.gz: d9a6ad6df03730ad2fe6d2ff49962068160b0174be4c127d0d89bc3f9d415b7216853c79b845ca2aeac777013eebd7824e8e61bb691f802edf82a0a03e465d7b
7
- data.tar.gz: a5be87eaed9a890e4d9af54cdbb26ea11faa3893cfd3432842e965c20fa02a3b39f535d229fdb8a429340b1e74350dc7f84f05390ce14bd9ee31cb886278fd58
6
+ metadata.gz: 249cf3d6951bd3bac6e9db9e2588445d5fb738ffa88b7d4a0206b4d42558a13cffb0f4788ad173206b003cb302a4800d80e565764cdf4b2273d6817f72c33f4d
7
+ data.tar.gz: '038a9e6bd06af8bb705d8e8b3236fda5f1f5e584f9d884c48451d03077b7e0eb8184fac24484bc900177243eed74fa3d30d3721d2093de2f9d2b107108e6b571'
data/README.md CHANGED
@@ -17,7 +17,7 @@ All requests require an `apiKey` query parameter.
17
17
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
18
18
 
19
19
  - API version: 1.0.0
20
- - Package version: 0.10.0
20
+ - Package version: 0.12.0
21
21
  - Generator version: 7.11.0
22
22
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
23
23
  For more information, please visit [https://whoisfreaks.com](https://whoisfreaks.com)
@@ -35,16 +35,16 @@ gem build whoisfreaks.gemspec
35
35
  Then either install the gem locally:
36
36
 
37
37
  ```shell
38
- gem install ./whoisfreaks-0.10.0.gem
38
+ gem install ./whoisfreaks-0.12.0.gem
39
39
  ```
40
40
 
41
- (for development, run `gem install --dev ./whoisfreaks-0.10.0.gem` to install the development dependencies)
41
+ (for development, run `gem install --dev ./whoisfreaks-0.12.0.gem` to install the development dependencies)
42
42
 
43
43
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
44
44
 
45
45
  Finally add this to the Gemfile:
46
46
 
47
- gem 'whoisfreaks', '~> 0.10.0'
47
+ gem 'whoisfreaks', '~> 0.12.0'
48
48
 
49
49
  ### Install from Git
50
50
 
@@ -168,7 +168,6 @@ Class | Method | HTTP request | Description
168
168
  - [WhoisFreaks::BulkDomainAvailabilityRequest](docs/BulkDomainAvailabilityRequest.md)
169
169
  - [WhoisFreaks::BulkDomainAvailabilityResponse](docs/BulkDomainAvailabilityResponse.md)
170
170
  - [WhoisFreaks::BulkGeolocationRequest](docs/BulkGeolocationRequest.md)
171
- - [WhoisFreaks::BulkIpReputationRequest](docs/BulkIpReputationRequest.md)
172
171
  - [WhoisFreaks::BulkWhoisItem](docs/BulkWhoisItem.md)
173
172
  - [WhoisFreaks::BulkWhoisRequest](docs/BulkWhoisRequest.md)
174
173
  - [WhoisFreaks::BulkWhoisResponse](docs/BulkWhoisResponse.md)
@@ -11,5 +11,5 @@ Generator version: 7.11.0
11
11
  =end
12
12
 
13
13
  module WhoisFreaks
14
- VERSION = '0.10.0'
14
+ VERSION = '0.12.0'
15
15
  end
data/lib/whoisfreaks.rb CHANGED
@@ -27,7 +27,6 @@ require 'whoisfreaks/models/bulk_dns_response'
27
27
  require 'whoisfreaks/models/bulk_domain_availability_request'
28
28
  require 'whoisfreaks/models/bulk_domain_availability_response'
29
29
  require 'whoisfreaks/models/bulk_geolocation_request'
30
- require 'whoisfreaks/models/bulk_ip_reputation_request'
31
30
  require 'whoisfreaks/models/bulk_whois_item'
32
31
  require 'whoisfreaks/models/bulk_whois_request'
33
32
  require 'whoisfreaks/models/bulk_whois_response'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whoisfreaks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -104,7 +104,6 @@ files:
104
104
  - docs/BulkDomainAvailabilityRequest.md
105
105
  - docs/BulkDomainAvailabilityResponse.md
106
106
  - docs/BulkGeolocationRequest.md
107
- - docs/BulkIpReputationRequest.md
108
107
  - docs/BulkWhoisItem.md
109
108
  - docs/BulkWhoisRequest.md
110
109
  - docs/BulkWhoisResponse.md
@@ -230,7 +229,6 @@ files:
230
229
  - lib/whoisfreaks/models/bulk_domain_availability_request.rb
231
230
  - lib/whoisfreaks/models/bulk_domain_availability_response.rb
232
231
  - lib/whoisfreaks/models/bulk_geolocation_request.rb
233
- - lib/whoisfreaks/models/bulk_ip_reputation_request.rb
234
232
  - lib/whoisfreaks/models/bulk_whois_item.rb
235
233
  - lib/whoisfreaks/models/bulk_whois_request.rb
236
234
  - lib/whoisfreaks/models/bulk_whois_response.rb
@@ -333,7 +331,6 @@ files:
333
331
  - spec/models/bulk_domain_availability_request_spec.rb
334
332
  - spec/models/bulk_domain_availability_response_spec.rb
335
333
  - spec/models/bulk_geolocation_request_spec.rb
336
- - spec/models/bulk_ip_reputation_request_spec.rb
337
334
  - spec/models/bulk_whois_item_spec.rb
338
335
  - spec/models/bulk_whois_request_spec.rb
339
336
  - spec/models/bulk_whois_response_spec.rb
@@ -495,7 +492,6 @@ test_files:
495
492
  - spec/models/ssl_alternate_names_spec.rb
496
493
  - spec/models/pivot_match_spec.rb
497
494
  - spec/models/asn_whois_response_spec.rb
498
- - spec/models/bulk_ip_reputation_request_spec.rb
499
495
  - spec/models/irt_spec.rb
500
496
  - spec/models/asn_peer_spec.rb
501
497
  - spec/models/error_response_spec.rb
@@ -1,18 +0,0 @@
1
- # WhoisFreaks::BulkIpReputationRequest
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **ips** | **Array<String>** | | [optional] |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'whoisfreaks'
13
-
14
- instance = WhoisFreaks::BulkIpReputationRequest.new(
15
- ips: null
16
- )
17
- ```
18
-
@@ -1,216 +0,0 @@
1
- =begin
2
- #WhoisFreaks API
3
-
4
- #Complete WhoisFreaks API — WHOIS, DNS, SSL, Geolocation, Typosquatting, IP Intelligence, Domain Reputation, and bulk database downloads. ## Authentication All requests require an `apiKey` query parameter. ## Resources - Docs: https://whoisfreaks.com/documentation - Billing: https://billing.whoisfreaks.com - Support: support@whoisfreaks.com
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: support@whoisfreaks.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module WhoisFreaks
17
- class BulkIpReputationRequest
18
- attr_accessor :ips
19
-
20
- # Attribute mapping from ruby-style variable name to JSON key.
21
- def self.attribute_map
22
- {
23
- :'ips' => :'ips'
24
- }
25
- end
26
-
27
- # Returns all the JSON keys this model knows about
28
- def self.acceptable_attributes
29
- attribute_map.values
30
- end
31
-
32
- # Attribute type mapping.
33
- def self.openapi_types
34
- {
35
- :'ips' => :'Array<String>'
36
- }
37
- end
38
-
39
- # List of attributes with nullable: true
40
- def self.openapi_nullable
41
- Set.new([
42
- ])
43
- end
44
-
45
- # Initializes the object
46
- # @param [Hash] attributes Model attributes in the form of hash
47
- def initialize(attributes = {})
48
- if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `WhoisFreaks::BulkIpReputationRequest` initialize method"
50
- end
51
-
52
- # check to see if the attribute exists and convert string to symbol for hash key
53
- attributes = attributes.each_with_object({}) { |(k, v), h|
54
- if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `WhoisFreaks::BulkIpReputationRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
- end
57
- h[k.to_sym] = v
58
- }
59
-
60
- if attributes.key?(:'ips')
61
- if (value = attributes[:'ips']).is_a?(Array)
62
- self.ips = value
63
- end
64
- end
65
- end
66
-
67
- # Show invalid properties with the reasons. Usually used together with valid?
68
- # @return Array for valid properties with the reasons
69
- def list_invalid_properties
70
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
71
- invalid_properties = Array.new
72
- invalid_properties
73
- end
74
-
75
- # Check to see if the all the properties in the model are valid
76
- # @return true if the model is valid
77
- def valid?
78
- warn '[DEPRECATED] the `valid?` method is obsolete'
79
- true
80
- end
81
-
82
- # Checks equality by comparing each attribute.
83
- # @param [Object] Object to be compared
84
- def ==(o)
85
- return true if self.equal?(o)
86
- self.class == o.class &&
87
- ips == o.ips
88
- end
89
-
90
- # @see the `==` method
91
- # @param [Object] Object to be compared
92
- def eql?(o)
93
- self == o
94
- end
95
-
96
- # Calculates hash code according to all attributes.
97
- # @return [Integer] Hash code
98
- def hash
99
- [ips].hash
100
- end
101
-
102
- # Builds the object from hash
103
- # @param [Hash] attributes Model attributes in the form of hash
104
- # @return [Object] Returns the model itself
105
- def self.build_from_hash(attributes)
106
- return nil unless attributes.is_a?(Hash)
107
- attributes = attributes.transform_keys(&:to_sym)
108
- transformed_hash = {}
109
- openapi_types.each_pair do |key, type|
110
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
111
- transformed_hash["#{key}"] = nil
112
- elsif type =~ /\AArray<(.*)>/i
113
- # check to ensure the input is an array given that the attribute
114
- # is documented as an array but the input is not
115
- if attributes[attribute_map[key]].is_a?(Array)
116
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
117
- end
118
- elsif !attributes[attribute_map[key]].nil?
119
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
120
- end
121
- end
122
- new(transformed_hash)
123
- end
124
-
125
- # Deserializes the data based on type
126
- # @param string type Data type
127
- # @param string value Value to be deserialized
128
- # @return [Object] Deserialized data
129
- def self._deserialize(type, value)
130
- case type.to_sym
131
- when :Time
132
- Time.parse(value)
133
- when :Date
134
- Date.parse(value)
135
- when :String
136
- value.to_s
137
- when :Integer
138
- value.to_i
139
- when :Float
140
- value.to_f
141
- when :Boolean
142
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
- true
144
- else
145
- false
146
- end
147
- when :Object
148
- # generic object (usually a Hash), return directly
149
- value
150
- when /\AArray<(?<inner_type>.+)>\z/
151
- inner_type = Regexp.last_match[:inner_type]
152
- value.map { |v| _deserialize(inner_type, v) }
153
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
- k_type = Regexp.last_match[:k_type]
155
- v_type = Regexp.last_match[:v_type]
156
- {}.tap do |hash|
157
- value.each do |k, v|
158
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
- end
160
- end
161
- else # model
162
- # models (e.g. Pet) or oneOf
163
- klass = WhoisFreaks.const_get(type)
164
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
165
- end
166
- end
167
-
168
- # Returns the string representation of the object
169
- # @return [String] String presentation of the object
170
- def to_s
171
- to_hash.to_s
172
- end
173
-
174
- # to_body is an alias to to_hash (backward compatibility)
175
- # @return [Hash] Returns the object in the form of hash
176
- def to_body
177
- to_hash
178
- end
179
-
180
- # Returns the object in the form of hash
181
- # @return [Hash] Returns the object in the form of hash
182
- def to_hash
183
- hash = {}
184
- self.class.attribute_map.each_pair do |attr, param|
185
- value = self.send(attr)
186
- if value.nil?
187
- is_nullable = self.class.openapi_nullable.include?(attr)
188
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
189
- end
190
-
191
- hash[param] = _to_hash(value)
192
- end
193
- hash
194
- end
195
-
196
- # Outputs non-array value in the form of hash
197
- # For object, use to_hash. Otherwise, just return the value
198
- # @param [Object] value Any valid value
199
- # @return [Hash] Returns the value in the form of hash
200
- def _to_hash(value)
201
- if value.is_a?(Array)
202
- value.compact.map { |v| _to_hash(v) }
203
- elsif value.is_a?(Hash)
204
- {}.tap do |hash|
205
- value.each { |k, v| hash[k] = _to_hash(v) }
206
- end
207
- elsif value.respond_to? :to_hash
208
- value.to_hash
209
- else
210
- value
211
- end
212
- end
213
-
214
- end
215
-
216
- end
@@ -1,36 +0,0 @@
1
- =begin
2
- #WhoisFreaks API
3
-
4
- #Complete WhoisFreaks API — WHOIS, DNS, SSL, Geolocation, Typosquatting, IP Intelligence, Domain Reputation, and bulk database downloads. ## Authentication All requests require an `apiKey` query parameter. ## Resources - Docs: https://whoisfreaks.com/documentation - Billing: https://billing.whoisfreaks.com - Support: support@whoisfreaks.com
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: support@whoisfreaks.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for WhoisFreaks::BulkIpReputationRequest
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe WhoisFreaks::BulkIpReputationRequest do
21
- let(:instance) { WhoisFreaks::BulkIpReputationRequest.new }
22
-
23
- describe 'test an instance of BulkIpReputationRequest' do
24
- it 'should create an instance of BulkIpReputationRequest' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(WhoisFreaks::BulkIpReputationRequest)
27
- end
28
- end
29
-
30
- describe 'test attribute "ips"' do
31
- it 'should work' do
32
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
- end
34
- end
35
-
36
- end