late-sdk 0.0.759 → 0.0.761
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/docs/ThreadsPlatformData.md +2 -0
- data/lib/zernio-sdk/models/threads_platform_data.rb +30 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +4 -0
- data/spec/models/threads_platform_data_spec.rb +6 -0
- data/zernio-sdk-0.0.761.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.759.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8684484b38374bc00e94c878eda42c9f7a98a5e277c1936c37b12216eb8bcee5
|
|
4
|
+
data.tar.gz: '08d6c6c4b343ea5211183cc19f8c1243ffa90c76eac3d871477fb9d7f78a9894'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c99fe7a7747dfa48107c0ff4398c96a0f1c8cd2858b901f55225c39f7b3c1210c42a575d9fc4b538303712667c62a8029384c5553881d088ac1ebfd40d478efe
|
|
7
|
+
data.tar.gz: 751974b2550150e71b58db83bfd88d20327e75f2775d8d58d3913ab88bba73fc328d339abe36b6f0300d386d040f09c40c1974bc2db9d941092542370656d01e
|
data/docs/ThreadsPlatformData.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **topic_tag** | **String** | Topic tag for post categorization and discoverability on Threads. Must be 1-50 characters, cannot contain periods (.) or ampersands (&). Overrides auto-extraction from content hashtags when provided. | [optional] |
|
|
8
|
+
| **first_comment** | **String** | Optional first comment to post immediately after publishing, as a reply to the published post. With threadItems, it replies to the root post. Up to 500 characters (the Threads post limit). The reply is itself a Threads post, so it consumes one of the 250 posts a profile may publish per 24 hours. | [optional] |
|
|
8
9
|
| **thread_items** | [**Array<TwitterPlatformDataThreadItemsInner>**](TwitterPlatformDataThreadItemsInner.md) | Complete sequence of posts in a Threads thread. The first item becomes the root post, subsequent items are chained as replies. When threadItems is provided, the top-level content field is used only for display and search purposes, it is NOT published. You must include your first post as threadItems[0]. | [optional] |
|
|
9
10
|
|
|
10
11
|
## Example
|
|
@@ -14,6 +15,7 @@ require 'zernio-sdk'
|
|
|
14
15
|
|
|
15
16
|
instance = Zernio::ThreadsPlatformData.new(
|
|
16
17
|
topic_tag: null,
|
|
18
|
+
first_comment: null,
|
|
17
19
|
thread_items: null
|
|
18
20
|
)
|
|
19
21
|
```
|
|
@@ -19,6 +19,9 @@ module Zernio
|
|
|
19
19
|
# Topic tag for post categorization and discoverability on Threads. Must be 1-50 characters, cannot contain periods (.) or ampersands (&). Overrides auto-extraction from content hashtags when provided.
|
|
20
20
|
attr_accessor :topic_tag
|
|
21
21
|
|
|
22
|
+
# Optional first comment to post immediately after publishing, as a reply to the published post. With threadItems, it replies to the root post. Up to 500 characters (the Threads post limit). The reply is itself a Threads post, so it consumes one of the 250 posts a profile may publish per 24 hours.
|
|
23
|
+
attr_accessor :first_comment
|
|
24
|
+
|
|
22
25
|
# Complete sequence of posts in a Threads thread. The first item becomes the root post, subsequent items are chained as replies. When threadItems is provided, the top-level content field is used only for display and search purposes, it is NOT published. You must include your first post as threadItems[0].
|
|
23
26
|
attr_accessor :thread_items
|
|
24
27
|
|
|
@@ -26,6 +29,7 @@ module Zernio
|
|
|
26
29
|
def self.attribute_map
|
|
27
30
|
{
|
|
28
31
|
:'topic_tag' => :'topic_tag',
|
|
32
|
+
:'first_comment' => :'firstComment',
|
|
29
33
|
:'thread_items' => :'threadItems'
|
|
30
34
|
}
|
|
31
35
|
end
|
|
@@ -44,6 +48,7 @@ module Zernio
|
|
|
44
48
|
def self.openapi_types
|
|
45
49
|
{
|
|
46
50
|
:'topic_tag' => :'String',
|
|
51
|
+
:'first_comment' => :'String',
|
|
47
52
|
:'thread_items' => :'Array<TwitterPlatformDataThreadItemsInner>'
|
|
48
53
|
}
|
|
49
54
|
end
|
|
@@ -74,6 +79,10 @@ module Zernio
|
|
|
74
79
|
self.topic_tag = attributes[:'topic_tag']
|
|
75
80
|
end
|
|
76
81
|
|
|
82
|
+
if attributes.key?(:'first_comment')
|
|
83
|
+
self.first_comment = attributes[:'first_comment']
|
|
84
|
+
end
|
|
85
|
+
|
|
77
86
|
if attributes.key?(:'thread_items')
|
|
78
87
|
if (value = attributes[:'thread_items']).is_a?(Array)
|
|
79
88
|
self.thread_items = value
|
|
@@ -94,6 +103,10 @@ module Zernio
|
|
|
94
103
|
invalid_properties.push('invalid value for "topic_tag", the character length must be greater than or equal to 1.')
|
|
95
104
|
end
|
|
96
105
|
|
|
106
|
+
if !@first_comment.nil? && @first_comment.to_s.length > 500
|
|
107
|
+
invalid_properties.push('invalid value for "first_comment", the character length must be smaller than or equal to 500.')
|
|
108
|
+
end
|
|
109
|
+
|
|
97
110
|
invalid_properties
|
|
98
111
|
end
|
|
99
112
|
|
|
@@ -103,6 +116,7 @@ module Zernio
|
|
|
103
116
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
104
117
|
return false if !@topic_tag.nil? && @topic_tag.to_s.length > 50
|
|
105
118
|
return false if !@topic_tag.nil? && @topic_tag.to_s.length < 1
|
|
119
|
+
return false if !@first_comment.nil? && @first_comment.to_s.length > 500
|
|
106
120
|
true
|
|
107
121
|
end
|
|
108
122
|
|
|
@@ -124,12 +138,27 @@ module Zernio
|
|
|
124
138
|
@topic_tag = topic_tag
|
|
125
139
|
end
|
|
126
140
|
|
|
141
|
+
# Custom attribute writer method with validation
|
|
142
|
+
# @param [Object] first_comment Value to be assigned
|
|
143
|
+
def first_comment=(first_comment)
|
|
144
|
+
if first_comment.nil?
|
|
145
|
+
fail ArgumentError, 'first_comment cannot be nil'
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if first_comment.to_s.length > 500
|
|
149
|
+
fail ArgumentError, 'invalid value for "first_comment", the character length must be smaller than or equal to 500.'
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
@first_comment = first_comment
|
|
153
|
+
end
|
|
154
|
+
|
|
127
155
|
# Checks equality by comparing each attribute.
|
|
128
156
|
# @param [Object] Object to be compared
|
|
129
157
|
def ==(o)
|
|
130
158
|
return true if self.equal?(o)
|
|
131
159
|
self.class == o.class &&
|
|
132
160
|
topic_tag == o.topic_tag &&
|
|
161
|
+
first_comment == o.first_comment &&
|
|
133
162
|
thread_items == o.thread_items
|
|
134
163
|
end
|
|
135
164
|
|
|
@@ -142,7 +171,7 @@ module Zernio
|
|
|
142
171
|
# Calculates hash code according to all attributes.
|
|
143
172
|
# @return [Integer] Hash code
|
|
144
173
|
def hash
|
|
145
|
-
[topic_tag, thread_items].hash
|
|
174
|
+
[topic_tag, first_comment, thread_items].hash
|
|
146
175
|
end
|
|
147
176
|
|
|
148
177
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -5337,6 +5337,10 @@ components:
|
|
|
5337
5337
|
minLength: 1
|
|
5338
5338
|
maxLength: 50
|
|
5339
5339
|
description: Topic tag for post categorization and discoverability on Threads. Must be 1-50 characters, cannot contain periods (.) or ampersands (&). Overrides auto-extraction from content hashtags when provided.
|
|
5340
|
+
firstComment:
|
|
5341
|
+
type: string
|
|
5342
|
+
maxLength: 500
|
|
5343
|
+
description: 'Optional first comment to post immediately after publishing, as a reply to the published post. With threadItems, it replies to the root post. Up to 500 characters (the Threads post limit). The reply is itself a Threads post, so it consumes one of the 250 posts a profile may publish per 24 hours.'
|
|
5340
5344
|
threadItems:
|
|
5341
5345
|
type: array
|
|
5342
5346
|
description: >
|
|
@@ -33,6 +33,12 @@ describe Zernio::ThreadsPlatformData do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
describe 'test attribute "first_comment"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
36
42
|
describe 'test attribute "thread_items"' do
|
|
37
43
|
it 'should work' do
|
|
38
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: late-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.761
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -5434,7 +5434,7 @@ files:
|
|
|
5434
5434
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
5435
5435
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
5436
5436
|
- spec/spec_helper.rb
|
|
5437
|
-
- zernio-sdk-0.0.
|
|
5437
|
+
- zernio-sdk-0.0.761.gem
|
|
5438
5438
|
- zernio-sdk.gemspec
|
|
5439
5439
|
homepage: https://openapi-generator.tech
|
|
5440
5440
|
licenses:
|
data/zernio-sdk-0.0.759.gem
DELETED
|
Binary file
|