late-sdk 0.0.586 → 0.0.587

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.
@@ -0,0 +1,176 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5
+
6
+ The version of the OpenAPI document: 1.0.4
7
+ Contact: support@zernio.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Zernio
17
+ class SearchTweets200ResponseMeta < ApiModelBase
18
+ attr_accessor :result_count
19
+
20
+ attr_accessor :newest_id
21
+
22
+ attr_accessor :oldest_id
23
+
24
+ attr_accessor :platform
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'result_count' => :'resultCount',
30
+ :'newest_id' => :'newestId',
31
+ :'oldest_id' => :'oldestId',
32
+ :'platform' => :'platform'
33
+ }
34
+ end
35
+
36
+ # Returns attribute mapping this model knows about
37
+ def self.acceptable_attribute_map
38
+ attribute_map
39
+ end
40
+
41
+ # Returns all the JSON keys this model knows about
42
+ def self.acceptable_attributes
43
+ acceptable_attribute_map.values
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.openapi_types
48
+ {
49
+ :'result_count' => :'Integer',
50
+ :'newest_id' => :'String',
51
+ :'oldest_id' => :'String',
52
+ :'platform' => :'String'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ :'newest_id',
60
+ :'oldest_id',
61
+ ])
62
+ end
63
+
64
+ # Initializes the object
65
+ # @param [Hash] attributes Model attributes in the form of hash
66
+ def initialize(attributes = {})
67
+ if (!attributes.is_a?(Hash))
68
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::SearchTweets200ResponseMeta` initialize method"
69
+ end
70
+
71
+ # check to see if the attribute exists and convert string to symbol for hash key
72
+ acceptable_attribute_map = self.class.acceptable_attribute_map
73
+ attributes = attributes.each_with_object({}) { |(k, v), h|
74
+ if (!acceptable_attribute_map.key?(k.to_sym))
75
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::SearchTweets200ResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
76
+ end
77
+ h[k.to_sym] = v
78
+ }
79
+
80
+ if attributes.key?(:'result_count')
81
+ self.result_count = attributes[:'result_count']
82
+ end
83
+
84
+ if attributes.key?(:'newest_id')
85
+ self.newest_id = attributes[:'newest_id']
86
+ end
87
+
88
+ if attributes.key?(:'oldest_id')
89
+ self.oldest_id = attributes[:'oldest_id']
90
+ end
91
+
92
+ if attributes.key?(:'platform')
93
+ self.platform = attributes[:'platform']
94
+ end
95
+ end
96
+
97
+ # Show invalid properties with the reasons. Usually used together with valid?
98
+ # @return Array for valid properties with the reasons
99
+ def list_invalid_properties
100
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
101
+ invalid_properties = Array.new
102
+ invalid_properties
103
+ end
104
+
105
+ # Check to see if the all the properties in the model are valid
106
+ # @return true if the model is valid
107
+ def valid?
108
+ warn '[DEPRECATED] the `valid?` method is obsolete'
109
+ true
110
+ end
111
+
112
+ # Checks equality by comparing each attribute.
113
+ # @param [Object] Object to be compared
114
+ def ==(o)
115
+ return true if self.equal?(o)
116
+ self.class == o.class &&
117
+ result_count == o.result_count &&
118
+ newest_id == o.newest_id &&
119
+ oldest_id == o.oldest_id &&
120
+ platform == o.platform
121
+ end
122
+
123
+ # @see the `==` method
124
+ # @param [Object] Object to be compared
125
+ def eql?(o)
126
+ self == o
127
+ end
128
+
129
+ # Calculates hash code according to all attributes.
130
+ # @return [Integer] Hash code
131
+ def hash
132
+ [result_count, newest_id, oldest_id, platform].hash
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def self.build_from_hash(attributes)
139
+ return nil unless attributes.is_a?(Hash)
140
+ attributes = attributes.transform_keys(&:to_sym)
141
+ transformed_hash = {}
142
+ openapi_types.each_pair do |key, type|
143
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
144
+ transformed_hash["#{key}"] = nil
145
+ elsif type =~ /\AArray<(.*)>/i
146
+ # check to ensure the input is an array given that the attribute
147
+ # is documented as an array but the input is not
148
+ if attributes[attribute_map[key]].is_a?(Array)
149
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
150
+ end
151
+ elsif !attributes[attribute_map[key]].nil?
152
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
153
+ end
154
+ end
155
+ new(transformed_hash)
156
+ end
157
+
158
+ # Returns the object in the form of hash
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_hash
161
+ hash = {}
162
+ self.class.attribute_map.each_pair do |attr, param|
163
+ value = self.send(attr)
164
+ if value.nil?
165
+ is_nullable = self.class.openapi_nullable.include?(attr)
166
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
167
+ end
168
+
169
+ hash[param] = _to_hash(value)
170
+ end
171
+ hash
172
+ end
173
+
174
+ end
175
+
176
+ end
@@ -0,0 +1,248 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5
+
6
+ The version of the OpenAPI document: 1.0.4
7
+ Contact: support@zernio.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Zernio
17
+ class SearchTweets200ResponseTweetsInner < ApiModelBase
18
+ attr_accessor :id
19
+
20
+ attr_accessor :text
21
+
22
+ attr_accessor :created
23
+
24
+ attr_accessor :conversation_id
25
+
26
+ # Parent tweet ID when the result is itself a reply
27
+ attr_accessor :in_reply_to_tweet_id
28
+
29
+ attr_accessor :lang
30
+
31
+ attr_accessor :author
32
+
33
+ attr_accessor :like_count
34
+
35
+ attr_accessor :reply_count
36
+
37
+ attr_accessor :retweet_count
38
+
39
+ attr_accessor :quote_count
40
+
41
+ attr_accessor :platform
42
+
43
+ # Attribute mapping from ruby-style variable name to JSON key.
44
+ def self.attribute_map
45
+ {
46
+ :'id' => :'id',
47
+ :'text' => :'text',
48
+ :'created' => :'created',
49
+ :'conversation_id' => :'conversationId',
50
+ :'in_reply_to_tweet_id' => :'inReplyToTweetId',
51
+ :'lang' => :'lang',
52
+ :'author' => :'author',
53
+ :'like_count' => :'likeCount',
54
+ :'reply_count' => :'replyCount',
55
+ :'retweet_count' => :'retweetCount',
56
+ :'quote_count' => :'quoteCount',
57
+ :'platform' => :'platform'
58
+ }
59
+ end
60
+
61
+ # Returns attribute mapping this model knows about
62
+ def self.acceptable_attribute_map
63
+ attribute_map
64
+ end
65
+
66
+ # Returns all the JSON keys this model knows about
67
+ def self.acceptable_attributes
68
+ acceptable_attribute_map.values
69
+ end
70
+
71
+ # Attribute type mapping.
72
+ def self.openapi_types
73
+ {
74
+ :'id' => :'String',
75
+ :'text' => :'String',
76
+ :'created' => :'Time',
77
+ :'conversation_id' => :'String',
78
+ :'in_reply_to_tweet_id' => :'String',
79
+ :'lang' => :'String',
80
+ :'author' => :'SearchTweets200ResponseTweetsInnerAuthor',
81
+ :'like_count' => :'Integer',
82
+ :'reply_count' => :'Integer',
83
+ :'retweet_count' => :'Integer',
84
+ :'quote_count' => :'Integer',
85
+ :'platform' => :'String'
86
+ }
87
+ end
88
+
89
+ # List of attributes with nullable: true
90
+ def self.openapi_nullable
91
+ Set.new([
92
+ :'in_reply_to_tweet_id',
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 `Zernio::SearchTweets200ResponseTweetsInner` 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 `Zernio::SearchTweets200ResponseTweetsInner`. 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?(:'id')
113
+ self.id = attributes[:'id']
114
+ end
115
+
116
+ if attributes.key?(:'text')
117
+ self.text = attributes[:'text']
118
+ end
119
+
120
+ if attributes.key?(:'created')
121
+ self.created = attributes[:'created']
122
+ end
123
+
124
+ if attributes.key?(:'conversation_id')
125
+ self.conversation_id = attributes[:'conversation_id']
126
+ end
127
+
128
+ if attributes.key?(:'in_reply_to_tweet_id')
129
+ self.in_reply_to_tweet_id = attributes[:'in_reply_to_tweet_id']
130
+ end
131
+
132
+ if attributes.key?(:'lang')
133
+ self.lang = attributes[:'lang']
134
+ end
135
+
136
+ if attributes.key?(:'author')
137
+ self.author = attributes[:'author']
138
+ end
139
+
140
+ if attributes.key?(:'like_count')
141
+ self.like_count = attributes[:'like_count']
142
+ end
143
+
144
+ if attributes.key?(:'reply_count')
145
+ self.reply_count = attributes[:'reply_count']
146
+ end
147
+
148
+ if attributes.key?(:'retweet_count')
149
+ self.retweet_count = attributes[:'retweet_count']
150
+ end
151
+
152
+ if attributes.key?(:'quote_count')
153
+ self.quote_count = attributes[:'quote_count']
154
+ end
155
+
156
+ if attributes.key?(:'platform')
157
+ self.platform = attributes[:'platform']
158
+ end
159
+ end
160
+
161
+ # Show invalid properties with the reasons. Usually used together with valid?
162
+ # @return Array for valid properties with the reasons
163
+ def list_invalid_properties
164
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
165
+ invalid_properties = Array.new
166
+ invalid_properties
167
+ end
168
+
169
+ # Check to see if the all the properties in the model are valid
170
+ # @return true if the model is valid
171
+ def valid?
172
+ warn '[DEPRECATED] the `valid?` method is obsolete'
173
+ true
174
+ end
175
+
176
+ # Checks equality by comparing each attribute.
177
+ # @param [Object] Object to be compared
178
+ def ==(o)
179
+ return true if self.equal?(o)
180
+ self.class == o.class &&
181
+ id == o.id &&
182
+ text == o.text &&
183
+ created == o.created &&
184
+ conversation_id == o.conversation_id &&
185
+ in_reply_to_tweet_id == o.in_reply_to_tweet_id &&
186
+ lang == o.lang &&
187
+ author == o.author &&
188
+ like_count == o.like_count &&
189
+ reply_count == o.reply_count &&
190
+ retweet_count == o.retweet_count &&
191
+ quote_count == o.quote_count &&
192
+ platform == o.platform
193
+ end
194
+
195
+ # @see the `==` method
196
+ # @param [Object] Object to be compared
197
+ def eql?(o)
198
+ self == o
199
+ end
200
+
201
+ # Calculates hash code according to all attributes.
202
+ # @return [Integer] Hash code
203
+ def hash
204
+ [id, text, created, conversation_id, in_reply_to_tweet_id, lang, author, like_count, reply_count, retweet_count, quote_count, platform].hash
205
+ end
206
+
207
+ # Builds the object from hash
208
+ # @param [Hash] attributes Model attributes in the form of hash
209
+ # @return [Object] Returns the model itself
210
+ def self.build_from_hash(attributes)
211
+ return nil unless attributes.is_a?(Hash)
212
+ attributes = attributes.transform_keys(&:to_sym)
213
+ transformed_hash = {}
214
+ openapi_types.each_pair do |key, type|
215
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
216
+ transformed_hash["#{key}"] = nil
217
+ elsif type =~ /\AArray<(.*)>/i
218
+ # check to ensure the input is an array given that the attribute
219
+ # is documented as an array but the input is not
220
+ if attributes[attribute_map[key]].is_a?(Array)
221
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
222
+ end
223
+ elsif !attributes[attribute_map[key]].nil?
224
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
225
+ end
226
+ end
227
+ new(transformed_hash)
228
+ end
229
+
230
+ # Returns the object in the form of hash
231
+ # @return [Hash] Returns the object in the form of hash
232
+ def to_hash
233
+ hash = {}
234
+ self.class.attribute_map.each_pair do |attr, param|
235
+ value = self.send(attr)
236
+ if value.nil?
237
+ is_nullable = self.class.openapi_nullable.include?(attr)
238
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
239
+ end
240
+
241
+ hash[param] = _to_hash(value)
242
+ end
243
+ hash
244
+ end
245
+
246
+ end
247
+
248
+ end
@@ -0,0 +1,183 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5
+
6
+ The version of the OpenAPI document: 1.0.4
7
+ Contact: support@zernio.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Zernio
17
+ class SearchTweets200ResponseTweetsInnerAuthor < ApiModelBase
18
+ attr_accessor :id
19
+
20
+ attr_accessor :username
21
+
22
+ attr_accessor :display_name
23
+
24
+ attr_accessor :avatar
25
+
26
+ attr_accessor :verified_type
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'id' => :'id',
32
+ :'username' => :'username',
33
+ :'display_name' => :'displayName',
34
+ :'avatar' => :'avatar',
35
+ :'verified_type' => :'verifiedType'
36
+ }
37
+ end
38
+
39
+ # Returns attribute mapping this model knows about
40
+ def self.acceptable_attribute_map
41
+ attribute_map
42
+ end
43
+
44
+ # Returns all the JSON keys this model knows about
45
+ def self.acceptable_attributes
46
+ acceptable_attribute_map.values
47
+ end
48
+
49
+ # Attribute type mapping.
50
+ def self.openapi_types
51
+ {
52
+ :'id' => :'String',
53
+ :'username' => :'String',
54
+ :'display_name' => :'String',
55
+ :'avatar' => :'String',
56
+ :'verified_type' => :'String'
57
+ }
58
+ end
59
+
60
+ # List of attributes with nullable: true
61
+ def self.openapi_nullable
62
+ Set.new([
63
+ ])
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::SearchTweets200ResponseTweetsInnerAuthor` initialize method"
71
+ end
72
+
73
+ # check to see if the attribute exists and convert string to symbol for hash key
74
+ acceptable_attribute_map = self.class.acceptable_attribute_map
75
+ attributes = attributes.each_with_object({}) { |(k, v), h|
76
+ if (!acceptable_attribute_map.key?(k.to_sym))
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::SearchTweets200ResponseTweetsInnerAuthor`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
78
+ end
79
+ h[k.to_sym] = v
80
+ }
81
+
82
+ if attributes.key?(:'id')
83
+ self.id = attributes[:'id']
84
+ end
85
+
86
+ if attributes.key?(:'username')
87
+ self.username = attributes[:'username']
88
+ end
89
+
90
+ if attributes.key?(:'display_name')
91
+ self.display_name = attributes[:'display_name']
92
+ end
93
+
94
+ if attributes.key?(:'avatar')
95
+ self.avatar = attributes[:'avatar']
96
+ end
97
+
98
+ if attributes.key?(:'verified_type')
99
+ self.verified_type = attributes[:'verified_type']
100
+ end
101
+ end
102
+
103
+ # Show invalid properties with the reasons. Usually used together with valid?
104
+ # @return Array for valid properties with the reasons
105
+ def list_invalid_properties
106
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
107
+ invalid_properties = Array.new
108
+ invalid_properties
109
+ end
110
+
111
+ # Check to see if the all the properties in the model are valid
112
+ # @return true if the model is valid
113
+ def valid?
114
+ warn '[DEPRECATED] the `valid?` method is obsolete'
115
+ true
116
+ end
117
+
118
+ # Checks equality by comparing each attribute.
119
+ # @param [Object] Object to be compared
120
+ def ==(o)
121
+ return true if self.equal?(o)
122
+ self.class == o.class &&
123
+ id == o.id &&
124
+ username == o.username &&
125
+ display_name == o.display_name &&
126
+ avatar == o.avatar &&
127
+ verified_type == o.verified_type
128
+ end
129
+
130
+ # @see the `==` method
131
+ # @param [Object] Object to be compared
132
+ def eql?(o)
133
+ self == o
134
+ end
135
+
136
+ # Calculates hash code according to all attributes.
137
+ # @return [Integer] Hash code
138
+ def hash
139
+ [id, username, display_name, avatar, verified_type].hash
140
+ end
141
+
142
+ # Builds the object from hash
143
+ # @param [Hash] attributes Model attributes in the form of hash
144
+ # @return [Object] Returns the model itself
145
+ def self.build_from_hash(attributes)
146
+ return nil unless attributes.is_a?(Hash)
147
+ attributes = attributes.transform_keys(&:to_sym)
148
+ transformed_hash = {}
149
+ openapi_types.each_pair do |key, type|
150
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
151
+ transformed_hash["#{key}"] = nil
152
+ elsif type =~ /\AArray<(.*)>/i
153
+ # check to ensure the input is an array given that the attribute
154
+ # is documented as an array but the input is not
155
+ if attributes[attribute_map[key]].is_a?(Array)
156
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
157
+ end
158
+ elsif !attributes[attribute_map[key]].nil?
159
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
160
+ end
161
+ end
162
+ new(transformed_hash)
163
+ end
164
+
165
+ # Returns the object in the form of hash
166
+ # @return [Hash] Returns the object in the form of hash
167
+ def to_hash
168
+ hash = {}
169
+ self.class.attribute_map.each_pair do |attr, param|
170
+ value = self.send(attr)
171
+ if value.nil?
172
+ is_nullable = self.class.openapi_nullable.include?(attr)
173
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
174
+ end
175
+
176
+ hash[param] = _to_hash(value)
177
+ end
178
+ hash
179
+ end
180
+
181
+ end
182
+
183
+ end
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.586'
14
+ VERSION = '0.0.587'
15
15
  end
data/lib/zernio-sdk.rb CHANGED
@@ -1081,6 +1081,10 @@ require 'zernio-sdk/models/search_inbox_conversations200_response_meta'
1081
1081
  require 'zernio-sdk/models/search_inbox_conversations200_response_meta_accounts_skipped_inner'
1082
1082
  require 'zernio-sdk/models/search_inbox_conversations200_response_meta_failed_accounts_inner'
1083
1083
  require 'zernio-sdk/models/search_reddit200_response'
1084
+ require 'zernio-sdk/models/search_tweets200_response'
1085
+ require 'zernio-sdk/models/search_tweets200_response_meta'
1086
+ require 'zernio-sdk/models/search_tweets200_response_tweets_inner'
1087
+ require 'zernio-sdk/models/search_tweets200_response_tweets_inner_author'
1084
1088
  require 'zernio-sdk/models/select_facebook_page200_response'
1085
1089
  require 'zernio-sdk/models/select_facebook_page200_response_account'
1086
1090
  require 'zernio-sdk/models/select_facebook_page409_response'