ultracart_api 4.1.176 → 4.1.178
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 +20 -2
- data/docs/SfvbApi.md +447 -0
- data/docs/SfvbBlogPostDetail.md +46 -0
- data/docs/SfvbBlogPostImage.md +32 -0
- data/docs/SfvbBlogPostImageRequest.md +28 -0
- data/docs/SfvbBlogPostRequest.md +34 -0
- data/docs/SfvbPageAttributeUpdate.md +1 -1
- data/docs/SfvbServerLog.md +38 -0
- data/docs/SfvbServerLogDetail.md +26 -0
- data/docs/SfvbServerLogEntry.md +24 -0
- data/docs/SfvbServerLogsResponse.md +26 -0
- data/lib/ultracart_api/api/sfvb_api.rb +607 -0
- data/lib/ultracart_api/models/sfvb_blog_post_detail.rb +364 -0
- data/lib/ultracart_api/models/sfvb_blog_post_image.rb +290 -0
- data/lib/ultracart_api/models/sfvb_blog_post_image_request.rb +270 -0
- data/lib/ultracart_api/models/sfvb_blog_post_request.rb +336 -0
- data/lib/ultracart_api/models/sfvb_page_attribute_update.rb +1 -1
- data/lib/ultracart_api/models/sfvb_server_log.rb +320 -0
- data/lib/ultracart_api/models/sfvb_server_log_detail.rb +261 -0
- data/lib/ultracart_api/models/sfvb_server_log_entry.rb +250 -0
- data/lib/ultracart_api/models/sfvb_server_logs_response.rb +262 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +8 -0
- metadata +18 -2
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#UltraCart Rest API V2
|
|
3
|
+
|
|
4
|
+
#UltraCart REST API Version 2
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
|
+
Contact: support@ultracart.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.0.1-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module UltracartClient
|
|
17
|
+
class SfvbServerLogEntry
|
|
18
|
+
# The area that wrote the line, such as VELOCITY, FLOW, CACHE or RUNTIME. Empty for SYSERR lines.
|
|
19
|
+
attr_accessor :category
|
|
20
|
+
|
|
21
|
+
# DEBUG, INFO, WARN, ERROR or SYSERR. SYSERR is an internal logging failure and counts as an error.
|
|
22
|
+
attr_accessor :level
|
|
23
|
+
|
|
24
|
+
# The line's own time as the log wrote it, yyyy/MM/dd hh.mm.ss on a 12 hour clock without AM or PM. Use the log start_date and the entry order for real timing.
|
|
25
|
+
attr_accessor :logged_at
|
|
26
|
+
|
|
27
|
+
# The line's text. A message that spanned several lines keeps its line breaks.
|
|
28
|
+
attr_accessor :message
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'category' => :'category',
|
|
34
|
+
:'level' => :'level',
|
|
35
|
+
:'logged_at' => :'logged_at',
|
|
36
|
+
:'message' => :'message'
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Returns all the JSON keys this model knows about
|
|
41
|
+
def self.acceptable_attributes
|
|
42
|
+
attribute_map.values
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
def self.openapi_types
|
|
47
|
+
{
|
|
48
|
+
:'category' => :'String',
|
|
49
|
+
:'level' => :'String',
|
|
50
|
+
:'logged_at' => :'String',
|
|
51
|
+
:'message' => :'String'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# List of attributes with nullable: true
|
|
56
|
+
def self.openapi_nullable
|
|
57
|
+
Set.new([
|
|
58
|
+
])
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Initializes the object
|
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
if (!attributes.is_a?(Hash))
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbServerLogEntry` initialize method"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
70
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbServerLogEntry`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
72
|
+
end
|
|
73
|
+
h[k.to_sym] = v
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'category')
|
|
77
|
+
self.category = attributes[:'category']
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'level')
|
|
81
|
+
self.level = attributes[:'level']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'logged_at')
|
|
85
|
+
self.logged_at = attributes[:'logged_at']
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'message')
|
|
89
|
+
self.message = attributes[:'message']
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
94
|
+
# @return Array for valid properties with the reasons
|
|
95
|
+
def list_invalid_properties
|
|
96
|
+
invalid_properties = Array.new
|
|
97
|
+
invalid_properties
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Check to see if the all the properties in the model are valid
|
|
101
|
+
# @return true if the model is valid
|
|
102
|
+
def valid?
|
|
103
|
+
true
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param [Object] Object to be compared
|
|
108
|
+
def ==(o)
|
|
109
|
+
return true if self.equal?(o)
|
|
110
|
+
self.class == o.class &&
|
|
111
|
+
category == o.category &&
|
|
112
|
+
level == o.level &&
|
|
113
|
+
logged_at == o.logged_at &&
|
|
114
|
+
message == o.message
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# @see the `==` method
|
|
118
|
+
# @param [Object] Object to be compared
|
|
119
|
+
def eql?(o)
|
|
120
|
+
self == o
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Calculates hash code according to all attributes.
|
|
124
|
+
# @return [Integer] Hash code
|
|
125
|
+
def hash
|
|
126
|
+
[category, level, logged_at, message].hash
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Builds the object from hash
|
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
|
+
# @return [Object] Returns the model itself
|
|
132
|
+
def self.build_from_hash(attributes)
|
|
133
|
+
new.build_from_hash(attributes)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Builds the object from hash
|
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
138
|
+
# @return [Object] Returns the model itself
|
|
139
|
+
def build_from_hash(attributes)
|
|
140
|
+
return nil unless attributes.is_a?(Hash)
|
|
141
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
142
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
143
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
144
|
+
self.send("#{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[self.class.attribute_map[key]].is_a?(Array)
|
|
149
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
150
|
+
end
|
|
151
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
152
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
self
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Deserializes the data based on type
|
|
160
|
+
# @param string type Data type
|
|
161
|
+
# @param string value Value to be deserialized
|
|
162
|
+
# @return [Object] Deserialized data
|
|
163
|
+
def _deserialize(type, value)
|
|
164
|
+
case type.to_sym
|
|
165
|
+
when :Time
|
|
166
|
+
Time.parse(value)
|
|
167
|
+
when :Date
|
|
168
|
+
Date.parse(value)
|
|
169
|
+
when :String
|
|
170
|
+
value.to_s
|
|
171
|
+
when :Integer
|
|
172
|
+
value.to_i
|
|
173
|
+
when :Float
|
|
174
|
+
value.to_f
|
|
175
|
+
when :Boolean
|
|
176
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
177
|
+
true
|
|
178
|
+
else
|
|
179
|
+
false
|
|
180
|
+
end
|
|
181
|
+
when :Object
|
|
182
|
+
# generic object (usually a Hash), return directly
|
|
183
|
+
value
|
|
184
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
185
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
186
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
187
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
188
|
+
k_type = Regexp.last_match[:k_type]
|
|
189
|
+
v_type = Regexp.last_match[:v_type]
|
|
190
|
+
{}.tap do |hash|
|
|
191
|
+
value.each do |k, v|
|
|
192
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
else # model
|
|
196
|
+
# models (e.g. Pet) or oneOf
|
|
197
|
+
klass = UltracartClient.const_get(type)
|
|
198
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Returns the string representation of the object
|
|
203
|
+
# @return [String] String presentation of the object
|
|
204
|
+
def to_s
|
|
205
|
+
to_hash.to_s
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
|
210
|
+
def to_body
|
|
211
|
+
to_hash
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Returns the object in the form of hash
|
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
|
216
|
+
def to_hash
|
|
217
|
+
hash = {}
|
|
218
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
219
|
+
value = self.send(attr)
|
|
220
|
+
if value.nil?
|
|
221
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
222
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
hash[param] = _to_hash(value)
|
|
226
|
+
end
|
|
227
|
+
hash
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Outputs non-array value in the form of hash
|
|
231
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
232
|
+
# @param [Object] value Any valid value
|
|
233
|
+
# @return [Hash] Returns the value in the form of hash
|
|
234
|
+
def _to_hash(value)
|
|
235
|
+
if value.is_a?(Array)
|
|
236
|
+
value.compact.map { |v| _to_hash(v) }
|
|
237
|
+
elsif value.is_a?(Hash)
|
|
238
|
+
{}.tap do |hash|
|
|
239
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
240
|
+
end
|
|
241
|
+
elsif value.respond_to? :to_hash
|
|
242
|
+
value.to_hash
|
|
243
|
+
else
|
|
244
|
+
value
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
end
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#UltraCart Rest API V2
|
|
3
|
+
|
|
4
|
+
#UltraCart REST API Version 2
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
|
+
Contact: support@ultracart.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.0.1-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module UltracartClient
|
|
17
|
+
class SfvbServerLogsResponse
|
|
18
|
+
# The most logs returned.
|
|
19
|
+
attr_accessor :limit
|
|
20
|
+
|
|
21
|
+
# Matching logs, newest first, without their text.
|
|
22
|
+
attr_accessor :logs
|
|
23
|
+
|
|
24
|
+
# True when older logs in the window were not read. Narrow since, or page by moving since back.
|
|
25
|
+
attr_accessor :more_available
|
|
26
|
+
|
|
27
|
+
# How many of the newest logs in the window were read to find these.
|
|
28
|
+
attr_accessor :searched
|
|
29
|
+
|
|
30
|
+
# The start of the window searched, ISO-8601 in UTC. Logs are kept for seven days.
|
|
31
|
+
attr_accessor :since
|
|
32
|
+
|
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
|
+
def self.attribute_map
|
|
35
|
+
{
|
|
36
|
+
:'limit' => :'limit',
|
|
37
|
+
:'logs' => :'logs',
|
|
38
|
+
:'more_available' => :'more_available',
|
|
39
|
+
:'searched' => :'searched',
|
|
40
|
+
:'since' => :'since'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Returns all the JSON keys this model knows about
|
|
45
|
+
def self.acceptable_attributes
|
|
46
|
+
attribute_map.values
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Attribute type mapping.
|
|
50
|
+
def self.openapi_types
|
|
51
|
+
{
|
|
52
|
+
:'limit' => :'Integer',
|
|
53
|
+
:'logs' => :'Array<SfvbServerLog>',
|
|
54
|
+
:'more_available' => :'Boolean',
|
|
55
|
+
:'searched' => :'Integer',
|
|
56
|
+
:'since' => :'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 `UltracartClient::SfvbServerLogsResponse` initialize method"
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
75
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbServerLogsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
77
|
+
end
|
|
78
|
+
h[k.to_sym] = v
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'limit')
|
|
82
|
+
self.limit = attributes[:'limit']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'logs')
|
|
86
|
+
if (value = attributes[:'logs']).is_a?(Array)
|
|
87
|
+
self.logs = value
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'more_available')
|
|
92
|
+
self.more_available = attributes[:'more_available']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'searched')
|
|
96
|
+
self.searched = attributes[:'searched']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'since')
|
|
100
|
+
self.since = attributes[:'since']
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
105
|
+
# @return Array for valid properties with the reasons
|
|
106
|
+
def list_invalid_properties
|
|
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
|
+
true
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Checks equality by comparing each attribute.
|
|
118
|
+
# @param [Object] Object to be compared
|
|
119
|
+
def ==(o)
|
|
120
|
+
return true if self.equal?(o)
|
|
121
|
+
self.class == o.class &&
|
|
122
|
+
limit == o.limit &&
|
|
123
|
+
logs == o.logs &&
|
|
124
|
+
more_available == o.more_available &&
|
|
125
|
+
searched == o.searched &&
|
|
126
|
+
since == o.since
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# @see the `==` method
|
|
130
|
+
# @param [Object] Object to be compared
|
|
131
|
+
def eql?(o)
|
|
132
|
+
self == o
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Calculates hash code according to all attributes.
|
|
136
|
+
# @return [Integer] Hash code
|
|
137
|
+
def hash
|
|
138
|
+
[limit, logs, more_available, searched, since].hash
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Builds the object from hash
|
|
142
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
143
|
+
# @return [Object] Returns the model itself
|
|
144
|
+
def self.build_from_hash(attributes)
|
|
145
|
+
new.build_from_hash(attributes)
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Builds the object from hash
|
|
149
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
150
|
+
# @return [Object] Returns the model itself
|
|
151
|
+
def build_from_hash(attributes)
|
|
152
|
+
return nil unless attributes.is_a?(Hash)
|
|
153
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
154
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
155
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
156
|
+
self.send("#{key}=", nil)
|
|
157
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
158
|
+
# check to ensure the input is an array given that the attribute
|
|
159
|
+
# is documented as an array but the input is not
|
|
160
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
161
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
162
|
+
end
|
|
163
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
164
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
self
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Deserializes the data based on type
|
|
172
|
+
# @param string type Data type
|
|
173
|
+
# @param string value Value to be deserialized
|
|
174
|
+
# @return [Object] Deserialized data
|
|
175
|
+
def _deserialize(type, value)
|
|
176
|
+
case type.to_sym
|
|
177
|
+
when :Time
|
|
178
|
+
Time.parse(value)
|
|
179
|
+
when :Date
|
|
180
|
+
Date.parse(value)
|
|
181
|
+
when :String
|
|
182
|
+
value.to_s
|
|
183
|
+
when :Integer
|
|
184
|
+
value.to_i
|
|
185
|
+
when :Float
|
|
186
|
+
value.to_f
|
|
187
|
+
when :Boolean
|
|
188
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
189
|
+
true
|
|
190
|
+
else
|
|
191
|
+
false
|
|
192
|
+
end
|
|
193
|
+
when :Object
|
|
194
|
+
# generic object (usually a Hash), return directly
|
|
195
|
+
value
|
|
196
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
197
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
198
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
199
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
200
|
+
k_type = Regexp.last_match[:k_type]
|
|
201
|
+
v_type = Regexp.last_match[:v_type]
|
|
202
|
+
{}.tap do |hash|
|
|
203
|
+
value.each do |k, v|
|
|
204
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
else # model
|
|
208
|
+
# models (e.g. Pet) or oneOf
|
|
209
|
+
klass = UltracartClient.const_get(type)
|
|
210
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Returns the string representation of the object
|
|
215
|
+
# @return [String] String presentation of the object
|
|
216
|
+
def to_s
|
|
217
|
+
to_hash.to_s
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
221
|
+
# @return [Hash] Returns the object in the form of hash
|
|
222
|
+
def to_body
|
|
223
|
+
to_hash
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Returns the object in the form of hash
|
|
227
|
+
# @return [Hash] Returns the object in the form of hash
|
|
228
|
+
def to_hash
|
|
229
|
+
hash = {}
|
|
230
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
231
|
+
value = self.send(attr)
|
|
232
|
+
if value.nil?
|
|
233
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
234
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
hash[param] = _to_hash(value)
|
|
238
|
+
end
|
|
239
|
+
hash
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# Outputs non-array value in the form of hash
|
|
243
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
244
|
+
# @param [Object] value Any valid value
|
|
245
|
+
# @return [Hash] Returns the value in the form of hash
|
|
246
|
+
def _to_hash(value)
|
|
247
|
+
if value.is_a?(Array)
|
|
248
|
+
value.compact.map { |v| _to_hash(v) }
|
|
249
|
+
elsif value.is_a?(Hash)
|
|
250
|
+
{}.tap do |hash|
|
|
251
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
252
|
+
end
|
|
253
|
+
elsif value.respond_to? :to_hash
|
|
254
|
+
value.to_hash
|
|
255
|
+
else
|
|
256
|
+
value
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
end
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -983,6 +983,10 @@ require 'ultracart_api/models/screen_recording_user_property'
|
|
|
983
983
|
require 'ultracart_api/models/screenshots_response'
|
|
984
984
|
require 'ultracart_api/models/self_config'
|
|
985
985
|
require 'ultracart_api/models/sfvb_blog_post'
|
|
986
|
+
require 'ultracart_api/models/sfvb_blog_post_detail'
|
|
987
|
+
require 'ultracart_api/models/sfvb_blog_post_image'
|
|
988
|
+
require 'ultracart_api/models/sfvb_blog_post_image_request'
|
|
989
|
+
require 'ultracart_api/models/sfvb_blog_post_request'
|
|
986
990
|
require 'ultracart_api/models/sfvb_blog_posts_response'
|
|
987
991
|
require 'ultracart_api/models/sfvb_compile_request'
|
|
988
992
|
require 'ultracart_api/models/sfvb_compile_response'
|
|
@@ -1062,6 +1066,10 @@ require 'ultracart_api/models/sfvb_preview_session_response'
|
|
|
1062
1066
|
require 'ultracart_api/models/sfvb_preview_url_response'
|
|
1063
1067
|
require 'ultracart_api/models/sfvb_render_request'
|
|
1064
1068
|
require 'ultracart_api/models/sfvb_render_response'
|
|
1069
|
+
require 'ultracart_api/models/sfvb_server_log'
|
|
1070
|
+
require 'ultracart_api/models/sfvb_server_log_detail'
|
|
1071
|
+
require 'ultracart_api/models/sfvb_server_log_entry'
|
|
1072
|
+
require 'ultracart_api/models/sfvb_server_logs_response'
|
|
1065
1073
|
require 'ultracart_api/models/sfvb_site_attribute'
|
|
1066
1074
|
require 'ultracart_api/models/sfvb_site_attribute_update'
|
|
1067
1075
|
require 'ultracart_api/models/sfvb_site_attribute_update_request'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ultracart_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.
|
|
4
|
+
version: 4.1.178
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -1045,6 +1045,10 @@ files:
|
|
|
1045
1045
|
- docs/SelfConfig.md
|
|
1046
1046
|
- docs/SfvbApi.md
|
|
1047
1047
|
- docs/SfvbBlogPost.md
|
|
1048
|
+
- docs/SfvbBlogPostDetail.md
|
|
1049
|
+
- docs/SfvbBlogPostImage.md
|
|
1050
|
+
- docs/SfvbBlogPostImageRequest.md
|
|
1051
|
+
- docs/SfvbBlogPostRequest.md
|
|
1048
1052
|
- docs/SfvbBlogPostsResponse.md
|
|
1049
1053
|
- docs/SfvbCompileRequest.md
|
|
1050
1054
|
- docs/SfvbCompileResponse.md
|
|
@@ -1124,6 +1128,10 @@ files:
|
|
|
1124
1128
|
- docs/SfvbPreviewUrlResponse.md
|
|
1125
1129
|
- docs/SfvbRenderRequest.md
|
|
1126
1130
|
- docs/SfvbRenderResponse.md
|
|
1131
|
+
- docs/SfvbServerLog.md
|
|
1132
|
+
- docs/SfvbServerLogDetail.md
|
|
1133
|
+
- docs/SfvbServerLogEntry.md
|
|
1134
|
+
- docs/SfvbServerLogsResponse.md
|
|
1127
1135
|
- docs/SfvbSiteAttribute.md
|
|
1128
1136
|
- docs/SfvbSiteAttributeUpdate.md
|
|
1129
1137
|
- docs/SfvbSiteAttributeUpdateRequest.md
|
|
@@ -2257,6 +2265,10 @@ files:
|
|
|
2257
2265
|
- lib/ultracart_api/models/screenshots_response.rb
|
|
2258
2266
|
- lib/ultracart_api/models/self_config.rb
|
|
2259
2267
|
- lib/ultracart_api/models/sfvb_blog_post.rb
|
|
2268
|
+
- lib/ultracart_api/models/sfvb_blog_post_detail.rb
|
|
2269
|
+
- lib/ultracart_api/models/sfvb_blog_post_image.rb
|
|
2270
|
+
- lib/ultracart_api/models/sfvb_blog_post_image_request.rb
|
|
2271
|
+
- lib/ultracart_api/models/sfvb_blog_post_request.rb
|
|
2260
2272
|
- lib/ultracart_api/models/sfvb_blog_posts_response.rb
|
|
2261
2273
|
- lib/ultracart_api/models/sfvb_compile_request.rb
|
|
2262
2274
|
- lib/ultracart_api/models/sfvb_compile_response.rb
|
|
@@ -2336,6 +2348,10 @@ files:
|
|
|
2336
2348
|
- lib/ultracart_api/models/sfvb_preview_url_response.rb
|
|
2337
2349
|
- lib/ultracart_api/models/sfvb_render_request.rb
|
|
2338
2350
|
- lib/ultracart_api/models/sfvb_render_response.rb
|
|
2351
|
+
- lib/ultracart_api/models/sfvb_server_log.rb
|
|
2352
|
+
- lib/ultracart_api/models/sfvb_server_log_detail.rb
|
|
2353
|
+
- lib/ultracart_api/models/sfvb_server_log_entry.rb
|
|
2354
|
+
- lib/ultracart_api/models/sfvb_server_logs_response.rb
|
|
2339
2355
|
- lib/ultracart_api/models/sfvb_site_attribute.rb
|
|
2340
2356
|
- lib/ultracart_api/models/sfvb_site_attribute_update.rb
|
|
2341
2357
|
- lib/ultracart_api/models/sfvb_site_attribute_update_request.rb
|