zernio-sdk 0.0.804 → 0.0.805
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/PostCreateResponse.md +3 -1
- data/lib/zernio-sdk/models/post_create_response.rb +16 -4
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +5 -0
- data/spec/models/post_create_response_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a9c0311e691e62d3d1908979e431b1fd20cc96104498915152eeca7ffaa0c02b
|
|
4
|
+
data.tar.gz: 9de3e3fd9be90e23b659acb68ba846ed04c896c4480a38ec3b9e5ff422742dde
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5fc8be5fe853af39bf12ad30d25e9f68086ef6482cd97a3aa937edbbf0d17f5eb231fa0e3f3a3a201fd506803da9b89188d5b39e9c2d5c0e15e3b13707458c0b
|
|
7
|
+
data.tar.gz: 6ce4ac7116f9d4f93fcd04084d6a8727d3f8c993e3e7ab01cb1bb912a7dab0b10a3b40b4e99120f13a90116a6b66c67a755bf6a5db7b3e1650d8ed3a0cd5194e
|
data/docs/PostCreateResponse.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **message** | **String** | | [optional] |
|
|
8
8
|
| **post** | [**Post**](Post.md) | | [optional] |
|
|
9
|
+
| **warnings** | **Array<String>** | Advisory notices about a post that was still created: media truncated for a platform, a recycling caveat, or a field that was ignored because it sat outside platforms[].platformSpecificData. Absent when there are none. | [optional] |
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
@@ -14,7 +15,8 @@ require 'zernio-sdk'
|
|
|
14
15
|
|
|
15
16
|
instance = Zernio::PostCreateResponse.new(
|
|
16
17
|
message: null,
|
|
17
|
-
post: null
|
|
18
|
+
post: null,
|
|
19
|
+
warnings: null
|
|
18
20
|
)
|
|
19
21
|
```
|
|
20
22
|
|
|
@@ -19,11 +19,15 @@ module Zernio
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :post
|
|
21
21
|
|
|
22
|
+
# Advisory notices about a post that was still created: media truncated for a platform, a recycling caveat, or a field that was ignored because it sat outside platforms[].platformSpecificData. Absent when there are none.
|
|
23
|
+
attr_accessor :warnings
|
|
24
|
+
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
26
|
def self.attribute_map
|
|
24
27
|
{
|
|
25
28
|
:'message' => :'message',
|
|
26
|
-
:'post' => :'post'
|
|
29
|
+
:'post' => :'post',
|
|
30
|
+
:'warnings' => :'warnings'
|
|
27
31
|
}
|
|
28
32
|
end
|
|
29
33
|
|
|
@@ -41,7 +45,8 @@ module Zernio
|
|
|
41
45
|
def self.openapi_types
|
|
42
46
|
{
|
|
43
47
|
:'message' => :'String',
|
|
44
|
-
:'post' => :'Post'
|
|
48
|
+
:'post' => :'Post',
|
|
49
|
+
:'warnings' => :'Array<String>'
|
|
45
50
|
}
|
|
46
51
|
end
|
|
47
52
|
|
|
@@ -74,6 +79,12 @@ module Zernio
|
|
|
74
79
|
if attributes.key?(:'post')
|
|
75
80
|
self.post = attributes[:'post']
|
|
76
81
|
end
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'warnings')
|
|
84
|
+
if (value = attributes[:'warnings']).is_a?(Array)
|
|
85
|
+
self.warnings = value
|
|
86
|
+
end
|
|
87
|
+
end
|
|
77
88
|
end
|
|
78
89
|
|
|
79
90
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -97,7 +108,8 @@ module Zernio
|
|
|
97
108
|
return true if self.equal?(o)
|
|
98
109
|
self.class == o.class &&
|
|
99
110
|
message == o.message &&
|
|
100
|
-
post == o.post
|
|
111
|
+
post == o.post &&
|
|
112
|
+
warnings == o.warnings
|
|
101
113
|
end
|
|
102
114
|
|
|
103
115
|
# @see the `==` method
|
|
@@ -109,7 +121,7 @@ module Zernio
|
|
|
109
121
|
# Calculates hash code according to all attributes.
|
|
110
122
|
# @return [Integer] Hash code
|
|
111
123
|
def hash
|
|
112
|
-
[message, post].hash
|
|
124
|
+
[message, post, warnings].hash
|
|
113
125
|
end
|
|
114
126
|
|
|
115
127
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -7577,6 +7577,11 @@ components:
|
|
|
7577
7577
|
type: string
|
|
7578
7578
|
post:
|
|
7579
7579
|
$ref: '#/components/schemas/Post'
|
|
7580
|
+
warnings:
|
|
7581
|
+
type: array
|
|
7582
|
+
description: 'Advisory notices about a post that was still created: media truncated for a platform, a recycling caveat, or a field that was ignored because it sat outside platforms[].platformSpecificData. Absent when there are none.'
|
|
7583
|
+
items:
|
|
7584
|
+
type: string
|
|
7580
7585
|
PostUpdateResponse:
|
|
7581
7586
|
type: object
|
|
7582
7587
|
properties:
|