internetdata 2.2.0 → 2.3.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 +4 -4
- data/README.md +17 -0
- data/lib/internetdata/api/database_v2_api.rb +5 -5
- data/lib/internetdata/api_client.rb +3 -3
- data/lib/internetdata/api_error.rb +3 -3
- data/lib/internetdata/api_model_base.rb +3 -3
- data/lib/internetdata/client.rb +5 -2
- data/lib/internetdata/configuration.rb +3 -3
- data/lib/internetdata/errors.rb +55 -13
- data/lib/internetdata/models/database.rb +8 -8
- data/lib/internetdata/models/database_checksums_response.rb +3 -3
- data/lib/internetdata/models/database_format.rb +3 -3
- data/lib/internetdata/models/database_list.rb +3 -3
- data/lib/internetdata/models/database_metadata.rb +3 -3
- data/lib/internetdata/models/database_metadata_column.rb +3 -3
- data/lib/internetdata/models/database_version.rb +3 -3
- data/lib/internetdata/models/db_checksums.rb +3 -3
- data/lib/internetdata/models/device_authorization.rb +282 -0
- data/lib/internetdata/models/download.rb +3 -3
- data/lib/internetdata/models/download_list.rb +3 -3
- data/lib/internetdata/models/error_envelope.rb +3 -3
- data/lib/internetdata/models/oauth_metadata.rb +309 -0
- data/lib/internetdata/models/standing.rb +3 -3
- data/lib/internetdata/models/token_response.rb +258 -0
- data/lib/internetdata/oauth_api.rb +166 -0
- data/lib/internetdata/transport.rb +63 -0
- data/lib/internetdata/version.rb +1 -1
- data/lib/internetdata.rb +1 -0
- metadata +5 -1
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#InternetData API
|
|
3
|
+
|
|
4
|
+
#The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2026.09.21
|
|
7
|
+
Contact: support@internetdata.io
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module InternetData
|
|
17
|
+
class DeviceAuthorization < ApiModelBase
|
|
18
|
+
# Yours. Poll with it; never show it to anyone.
|
|
19
|
+
attr_accessor :device_code
|
|
20
|
+
|
|
21
|
+
# Short and typable. This is what the person confirms.
|
|
22
|
+
attr_accessor :user_code
|
|
23
|
+
|
|
24
|
+
attr_accessor :verification_uri
|
|
25
|
+
|
|
26
|
+
# The same page with the code already filled in.
|
|
27
|
+
attr_accessor :verification_uri_complete
|
|
28
|
+
|
|
29
|
+
# Seconds until both codes expire.
|
|
30
|
+
attr_accessor :expires_in
|
|
31
|
+
|
|
32
|
+
# Seconds between polls.
|
|
33
|
+
attr_accessor :interval
|
|
34
|
+
|
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
|
+
def self.attribute_map
|
|
37
|
+
{
|
|
38
|
+
:'device_code' => :'device_code',
|
|
39
|
+
:'user_code' => :'user_code',
|
|
40
|
+
:'verification_uri' => :'verification_uri',
|
|
41
|
+
:'verification_uri_complete' => :'verification_uri_complete',
|
|
42
|
+
:'expires_in' => :'expires_in',
|
|
43
|
+
:'interval' => :'interval'
|
|
44
|
+
}
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Returns attribute mapping this model knows about
|
|
48
|
+
def self.acceptable_attribute_map
|
|
49
|
+
attribute_map
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Returns all the JSON keys this model knows about
|
|
53
|
+
def self.acceptable_attributes
|
|
54
|
+
acceptable_attribute_map.values
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Attribute type mapping.
|
|
58
|
+
def self.openapi_types
|
|
59
|
+
{
|
|
60
|
+
:'device_code' => :'String',
|
|
61
|
+
:'user_code' => :'String',
|
|
62
|
+
:'verification_uri' => :'String',
|
|
63
|
+
:'verification_uri_complete' => :'String',
|
|
64
|
+
:'expires_in' => :'Integer',
|
|
65
|
+
:'interval' => :'Integer'
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# List of attributes with nullable: true
|
|
70
|
+
def self.openapi_nullable
|
|
71
|
+
Set.new([
|
|
72
|
+
])
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Initializes the object
|
|
76
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
77
|
+
def initialize(attributes = {})
|
|
78
|
+
if (!attributes.is_a?(Hash))
|
|
79
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `InternetData::DeviceAuthorization` initialize method"
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
83
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
84
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
85
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
86
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `InternetData::DeviceAuthorization`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
87
|
+
end
|
|
88
|
+
h[k.to_sym] = v
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'device_code')
|
|
92
|
+
self.device_code = attributes[:'device_code']
|
|
93
|
+
else
|
|
94
|
+
self.device_code = nil
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'user_code')
|
|
98
|
+
self.user_code = attributes[:'user_code']
|
|
99
|
+
else
|
|
100
|
+
self.user_code = nil
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'verification_uri')
|
|
104
|
+
self.verification_uri = attributes[:'verification_uri']
|
|
105
|
+
else
|
|
106
|
+
self.verification_uri = nil
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'verification_uri_complete')
|
|
110
|
+
self.verification_uri_complete = attributes[:'verification_uri_complete']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'expires_in')
|
|
114
|
+
self.expires_in = attributes[:'expires_in']
|
|
115
|
+
else
|
|
116
|
+
self.expires_in = nil
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'interval')
|
|
120
|
+
self.interval = attributes[:'interval']
|
|
121
|
+
else
|
|
122
|
+
self.interval = nil
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
127
|
+
# @return Array for valid properties with the reasons
|
|
128
|
+
def list_invalid_properties
|
|
129
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
130
|
+
invalid_properties = Array.new
|
|
131
|
+
if @device_code.nil?
|
|
132
|
+
invalid_properties.push('invalid value for "device_code", device_code cannot be nil.')
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if @user_code.nil?
|
|
136
|
+
invalid_properties.push('invalid value for "user_code", user_code cannot be nil.')
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if @verification_uri.nil?
|
|
140
|
+
invalid_properties.push('invalid value for "verification_uri", verification_uri cannot be nil.')
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
if @expires_in.nil?
|
|
144
|
+
invalid_properties.push('invalid value for "expires_in", expires_in cannot be nil.')
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if @interval.nil?
|
|
148
|
+
invalid_properties.push('invalid value for "interval", interval cannot be nil.')
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
invalid_properties
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Check to see if the all the properties in the model are valid
|
|
155
|
+
# @return true if the model is valid
|
|
156
|
+
def valid?
|
|
157
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
158
|
+
return false if @device_code.nil?
|
|
159
|
+
return false if @user_code.nil?
|
|
160
|
+
return false if @verification_uri.nil?
|
|
161
|
+
return false if @expires_in.nil?
|
|
162
|
+
return false if @interval.nil?
|
|
163
|
+
true
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Custom attribute writer method with validation
|
|
167
|
+
# @param [Object] device_code Value to be assigned
|
|
168
|
+
def device_code=(device_code)
|
|
169
|
+
if device_code.nil?
|
|
170
|
+
fail ArgumentError, 'device_code cannot be nil'
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
@device_code = device_code
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Custom attribute writer method with validation
|
|
177
|
+
# @param [Object] user_code Value to be assigned
|
|
178
|
+
def user_code=(user_code)
|
|
179
|
+
if user_code.nil?
|
|
180
|
+
fail ArgumentError, 'user_code cannot be nil'
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
@user_code = user_code
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Custom attribute writer method with validation
|
|
187
|
+
# @param [Object] verification_uri Value to be assigned
|
|
188
|
+
def verification_uri=(verification_uri)
|
|
189
|
+
if verification_uri.nil?
|
|
190
|
+
fail ArgumentError, 'verification_uri cannot be nil'
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
@verification_uri = verification_uri
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Custom attribute writer method with validation
|
|
197
|
+
# @param [Object] expires_in Value to be assigned
|
|
198
|
+
def expires_in=(expires_in)
|
|
199
|
+
if expires_in.nil?
|
|
200
|
+
fail ArgumentError, 'expires_in cannot be nil'
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
@expires_in = expires_in
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Custom attribute writer method with validation
|
|
207
|
+
# @param [Object] interval Value to be assigned
|
|
208
|
+
def interval=(interval)
|
|
209
|
+
if interval.nil?
|
|
210
|
+
fail ArgumentError, 'interval cannot be nil'
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
@interval = interval
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Checks equality by comparing each attribute.
|
|
217
|
+
# @param [Object] Object to be compared
|
|
218
|
+
def ==(o)
|
|
219
|
+
return true if self.equal?(o)
|
|
220
|
+
self.class == o.class &&
|
|
221
|
+
device_code == o.device_code &&
|
|
222
|
+
user_code == o.user_code &&
|
|
223
|
+
verification_uri == o.verification_uri &&
|
|
224
|
+
verification_uri_complete == o.verification_uri_complete &&
|
|
225
|
+
expires_in == o.expires_in &&
|
|
226
|
+
interval == o.interval
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# @see the `==` method
|
|
230
|
+
# @param [Object] Object to be compared
|
|
231
|
+
def eql?(o)
|
|
232
|
+
self == o
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Calculates hash code according to all attributes.
|
|
236
|
+
# @return [Integer] Hash code
|
|
237
|
+
def hash
|
|
238
|
+
[device_code, user_code, verification_uri, verification_uri_complete, expires_in, interval].hash
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Builds the object from hash
|
|
242
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
243
|
+
# @return [Object] Returns the model itself
|
|
244
|
+
def self.build_from_hash(attributes)
|
|
245
|
+
return nil unless attributes.is_a?(Hash)
|
|
246
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
247
|
+
transformed_hash = {}
|
|
248
|
+
openapi_types.each_pair do |key, type|
|
|
249
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
250
|
+
transformed_hash["#{key}"] = nil
|
|
251
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
252
|
+
# check to ensure the input is an array given that the attribute
|
|
253
|
+
# is documented as an array but the input is not
|
|
254
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
255
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
256
|
+
end
|
|
257
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
258
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
new(transformed_hash)
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# Returns the object in the form of hash
|
|
265
|
+
# @return [Hash] Returns the object in the form of hash
|
|
266
|
+
def to_hash
|
|
267
|
+
hash = {}
|
|
268
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
269
|
+
value = self.send(attr)
|
|
270
|
+
if value.nil?
|
|
271
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
272
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
hash[param] = _to_hash(value)
|
|
276
|
+
end
|
|
277
|
+
hash
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#InternetData API
|
|
3
3
|
|
|
4
|
-
#The InternetData API
|
|
4
|
+
#The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.09.
|
|
7
|
-
Contact:
|
|
6
|
+
The version of the OpenAPI document: 2026.09.21
|
|
7
|
+
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#InternetData API
|
|
3
3
|
|
|
4
|
-
#The InternetData API
|
|
4
|
+
#The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.09.
|
|
7
|
-
Contact:
|
|
6
|
+
The version of the OpenAPI document: 2026.09.21
|
|
7
|
+
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#InternetData API
|
|
3
3
|
|
|
4
|
-
#The InternetData API
|
|
4
|
+
#The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.09.
|
|
7
|
-
Contact:
|
|
6
|
+
The version of the OpenAPI document: 2026.09.21
|
|
7
|
+
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
10
10
|
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#InternetData API
|
|
3
|
+
|
|
4
|
+
#The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2026.09.21
|
|
7
|
+
Contact: support@internetdata.io
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module InternetData
|
|
17
|
+
class OauthMetadata < ApiModelBase
|
|
18
|
+
attr_accessor :issuer
|
|
19
|
+
|
|
20
|
+
attr_accessor :authorization_endpoint
|
|
21
|
+
|
|
22
|
+
attr_accessor :token_endpoint
|
|
23
|
+
|
|
24
|
+
attr_accessor :device_authorization_endpoint
|
|
25
|
+
|
|
26
|
+
attr_accessor :revocation_endpoint
|
|
27
|
+
|
|
28
|
+
attr_accessor :scopes_supported
|
|
29
|
+
|
|
30
|
+
attr_accessor :response_types_supported
|
|
31
|
+
|
|
32
|
+
attr_accessor :grant_types_supported
|
|
33
|
+
|
|
34
|
+
attr_accessor :code_challenge_methods_supported
|
|
35
|
+
|
|
36
|
+
# Always `none`. Every client is public and has no secret.
|
|
37
|
+
attr_accessor :token_endpoint_auth_methods_supported
|
|
38
|
+
|
|
39
|
+
# RFC 9207. A redirect back from the authorization endpoint carries `iss`.
|
|
40
|
+
attr_accessor :authorization_response_iss_parameter_supported
|
|
41
|
+
|
|
42
|
+
attr_accessor :service_documentation
|
|
43
|
+
|
|
44
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
|
+
def self.attribute_map
|
|
46
|
+
{
|
|
47
|
+
:'issuer' => :'issuer',
|
|
48
|
+
:'authorization_endpoint' => :'authorization_endpoint',
|
|
49
|
+
:'token_endpoint' => :'token_endpoint',
|
|
50
|
+
:'device_authorization_endpoint' => :'device_authorization_endpoint',
|
|
51
|
+
:'revocation_endpoint' => :'revocation_endpoint',
|
|
52
|
+
:'scopes_supported' => :'scopes_supported',
|
|
53
|
+
:'response_types_supported' => :'response_types_supported',
|
|
54
|
+
:'grant_types_supported' => :'grant_types_supported',
|
|
55
|
+
:'code_challenge_methods_supported' => :'code_challenge_methods_supported',
|
|
56
|
+
:'token_endpoint_auth_methods_supported' => :'token_endpoint_auth_methods_supported',
|
|
57
|
+
:'authorization_response_iss_parameter_supported' => :'authorization_response_iss_parameter_supported',
|
|
58
|
+
:'service_documentation' => :'service_documentation'
|
|
59
|
+
}
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Returns attribute mapping this model knows about
|
|
63
|
+
def self.acceptable_attribute_map
|
|
64
|
+
attribute_map
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Returns all the JSON keys this model knows about
|
|
68
|
+
def self.acceptable_attributes
|
|
69
|
+
acceptable_attribute_map.values
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Attribute type mapping.
|
|
73
|
+
def self.openapi_types
|
|
74
|
+
{
|
|
75
|
+
:'issuer' => :'String',
|
|
76
|
+
:'authorization_endpoint' => :'String',
|
|
77
|
+
:'token_endpoint' => :'String',
|
|
78
|
+
:'device_authorization_endpoint' => :'String',
|
|
79
|
+
:'revocation_endpoint' => :'String',
|
|
80
|
+
:'scopes_supported' => :'Array<String>',
|
|
81
|
+
:'response_types_supported' => :'Array<String>',
|
|
82
|
+
:'grant_types_supported' => :'Array<String>',
|
|
83
|
+
:'code_challenge_methods_supported' => :'Array<String>',
|
|
84
|
+
:'token_endpoint_auth_methods_supported' => :'Array<String>',
|
|
85
|
+
:'authorization_response_iss_parameter_supported' => :'Boolean',
|
|
86
|
+
:'service_documentation' => :'String'
|
|
87
|
+
}
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# List of attributes with nullable: true
|
|
91
|
+
def self.openapi_nullable
|
|
92
|
+
Set.new([
|
|
93
|
+
])
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Initializes the object
|
|
97
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
98
|
+
def initialize(attributes = {})
|
|
99
|
+
if (!attributes.is_a?(Hash))
|
|
100
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `InternetData::OauthMetadata` initialize method"
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
104
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
105
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
106
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
107
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `InternetData::OauthMetadata`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
108
|
+
end
|
|
109
|
+
h[k.to_sym] = v
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'issuer')
|
|
113
|
+
self.issuer = attributes[:'issuer']
|
|
114
|
+
else
|
|
115
|
+
self.issuer = nil
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'authorization_endpoint')
|
|
119
|
+
self.authorization_endpoint = attributes[:'authorization_endpoint']
|
|
120
|
+
else
|
|
121
|
+
self.authorization_endpoint = nil
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if attributes.key?(:'token_endpoint')
|
|
125
|
+
self.token_endpoint = attributes[:'token_endpoint']
|
|
126
|
+
else
|
|
127
|
+
self.token_endpoint = nil
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'device_authorization_endpoint')
|
|
131
|
+
self.device_authorization_endpoint = attributes[:'device_authorization_endpoint']
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:'revocation_endpoint')
|
|
135
|
+
self.revocation_endpoint = attributes[:'revocation_endpoint']
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'scopes_supported')
|
|
139
|
+
if (value = attributes[:'scopes_supported']).is_a?(Array)
|
|
140
|
+
self.scopes_supported = value
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if attributes.key?(:'response_types_supported')
|
|
145
|
+
if (value = attributes[:'response_types_supported']).is_a?(Array)
|
|
146
|
+
self.response_types_supported = value
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if attributes.key?(:'grant_types_supported')
|
|
151
|
+
if (value = attributes[:'grant_types_supported']).is_a?(Array)
|
|
152
|
+
self.grant_types_supported = value
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if attributes.key?(:'code_challenge_methods_supported')
|
|
157
|
+
if (value = attributes[:'code_challenge_methods_supported']).is_a?(Array)
|
|
158
|
+
self.code_challenge_methods_supported = value
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if attributes.key?(:'token_endpoint_auth_methods_supported')
|
|
163
|
+
if (value = attributes[:'token_endpoint_auth_methods_supported']).is_a?(Array)
|
|
164
|
+
self.token_endpoint_auth_methods_supported = value
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.key?(:'authorization_response_iss_parameter_supported')
|
|
169
|
+
self.authorization_response_iss_parameter_supported = attributes[:'authorization_response_iss_parameter_supported']
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'service_documentation')
|
|
173
|
+
self.service_documentation = attributes[:'service_documentation']
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
178
|
+
# @return Array for valid properties with the reasons
|
|
179
|
+
def list_invalid_properties
|
|
180
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
181
|
+
invalid_properties = Array.new
|
|
182
|
+
if @issuer.nil?
|
|
183
|
+
invalid_properties.push('invalid value for "issuer", issuer cannot be nil.')
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if @authorization_endpoint.nil?
|
|
187
|
+
invalid_properties.push('invalid value for "authorization_endpoint", authorization_endpoint cannot be nil.')
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if @token_endpoint.nil?
|
|
191
|
+
invalid_properties.push('invalid value for "token_endpoint", token_endpoint cannot be nil.')
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
invalid_properties
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Check to see if the all the properties in the model are valid
|
|
198
|
+
# @return true if the model is valid
|
|
199
|
+
def valid?
|
|
200
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
201
|
+
return false if @issuer.nil?
|
|
202
|
+
return false if @authorization_endpoint.nil?
|
|
203
|
+
return false if @token_endpoint.nil?
|
|
204
|
+
true
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Custom attribute writer method with validation
|
|
208
|
+
# @param [Object] issuer Value to be assigned
|
|
209
|
+
def issuer=(issuer)
|
|
210
|
+
if issuer.nil?
|
|
211
|
+
fail ArgumentError, 'issuer cannot be nil'
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
@issuer = issuer
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Custom attribute writer method with validation
|
|
218
|
+
# @param [Object] authorization_endpoint Value to be assigned
|
|
219
|
+
def authorization_endpoint=(authorization_endpoint)
|
|
220
|
+
if authorization_endpoint.nil?
|
|
221
|
+
fail ArgumentError, 'authorization_endpoint cannot be nil'
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
@authorization_endpoint = authorization_endpoint
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Custom attribute writer method with validation
|
|
228
|
+
# @param [Object] token_endpoint Value to be assigned
|
|
229
|
+
def token_endpoint=(token_endpoint)
|
|
230
|
+
if token_endpoint.nil?
|
|
231
|
+
fail ArgumentError, 'token_endpoint cannot be nil'
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
@token_endpoint = token_endpoint
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Checks equality by comparing each attribute.
|
|
238
|
+
# @param [Object] Object to be compared
|
|
239
|
+
def ==(o)
|
|
240
|
+
return true if self.equal?(o)
|
|
241
|
+
self.class == o.class &&
|
|
242
|
+
issuer == o.issuer &&
|
|
243
|
+
authorization_endpoint == o.authorization_endpoint &&
|
|
244
|
+
token_endpoint == o.token_endpoint &&
|
|
245
|
+
device_authorization_endpoint == o.device_authorization_endpoint &&
|
|
246
|
+
revocation_endpoint == o.revocation_endpoint &&
|
|
247
|
+
scopes_supported == o.scopes_supported &&
|
|
248
|
+
response_types_supported == o.response_types_supported &&
|
|
249
|
+
grant_types_supported == o.grant_types_supported &&
|
|
250
|
+
code_challenge_methods_supported == o.code_challenge_methods_supported &&
|
|
251
|
+
token_endpoint_auth_methods_supported == o.token_endpoint_auth_methods_supported &&
|
|
252
|
+
authorization_response_iss_parameter_supported == o.authorization_response_iss_parameter_supported &&
|
|
253
|
+
service_documentation == o.service_documentation
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# @see the `==` method
|
|
257
|
+
# @param [Object] Object to be compared
|
|
258
|
+
def eql?(o)
|
|
259
|
+
self == o
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Calculates hash code according to all attributes.
|
|
263
|
+
# @return [Integer] Hash code
|
|
264
|
+
def hash
|
|
265
|
+
[issuer, authorization_endpoint, token_endpoint, device_authorization_endpoint, revocation_endpoint, scopes_supported, response_types_supported, grant_types_supported, code_challenge_methods_supported, token_endpoint_auth_methods_supported, authorization_response_iss_parameter_supported, service_documentation].hash
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Builds the object from hash
|
|
269
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
270
|
+
# @return [Object] Returns the model itself
|
|
271
|
+
def self.build_from_hash(attributes)
|
|
272
|
+
return nil unless attributes.is_a?(Hash)
|
|
273
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
274
|
+
transformed_hash = {}
|
|
275
|
+
openapi_types.each_pair do |key, type|
|
|
276
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
277
|
+
transformed_hash["#{key}"] = nil
|
|
278
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
279
|
+
# check to ensure the input is an array given that the attribute
|
|
280
|
+
# is documented as an array but the input is not
|
|
281
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
282
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
283
|
+
end
|
|
284
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
285
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
286
|
+
end
|
|
287
|
+
end
|
|
288
|
+
new(transformed_hash)
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# Returns the object in the form of hash
|
|
292
|
+
# @return [Hash] Returns the object in the form of hash
|
|
293
|
+
def to_hash
|
|
294
|
+
hash = {}
|
|
295
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
296
|
+
value = self.send(attr)
|
|
297
|
+
if value.nil?
|
|
298
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
299
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
hash[param] = _to_hash(value)
|
|
303
|
+
end
|
|
304
|
+
hash
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#InternetData API
|
|
3
3
|
|
|
4
|
-
#The InternetData API
|
|
4
|
+
#The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.09.
|
|
7
|
-
Contact:
|
|
6
|
+
The version of the OpenAPI document: 2026.09.21
|
|
7
|
+
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
10
10
|
|