ultracart_api 4.1.183 → 4.1.185
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 +40 -2
- data/docs/AutoOrderApi.md +28 -1
- data/docs/OrderApi.md +107 -3
- data/docs/SfvbApi.md +941 -50
- data/docs/SfvbLibraryAiReview.md +28 -0
- data/docs/SfvbLibraryContentManifest.md +26 -0
- data/docs/SfvbLibraryDeleteResult.md +20 -0
- data/docs/SfvbLibraryEntry.md +28 -0
- data/docs/SfvbLibraryEntryRequest.md +30 -0
- data/docs/SfvbLibraryFacet.md +2 -2
- data/docs/SfvbLibraryHistoryEntry.md +24 -0
- data/docs/SfvbLibraryHistoryResponse.md +18 -0
- data/docs/SfvbLibraryInstallConflict.md +22 -0
- data/docs/SfvbLibraryInstallReceipt.md +32 -0
- data/docs/SfvbLibraryInstallRecord.md +32 -0
- data/docs/SfvbLibraryInstallRequest.md +22 -0
- data/docs/SfvbLibraryInstallsResponse.md +18 -0
- data/docs/SfvbLibraryParameter.md +26 -0
- data/docs/SfvbLibraryPublishRequest.md +20 -0
- data/docs/SfvbLibraryScreenshotRequest.md +22 -0
- data/docs/SfvbLibraryShareRequest.md +18 -0
- data/docs/SfvbLibraryShareTarget.md +20 -0
- data/docs/SfvbLibraryShareTargetsResponse.md +18 -0
- data/docs/SfvbLibraryTaxonomy.md +24 -0
- data/docs/SfvbLibraryTaxonomyCatalog.md +18 -0
- data/docs/SfvbLibraryUnshareResult.md +22 -0
- data/docs/SfvbWhoamiResponse.md +2 -0
- data/lib/ultracart_api/api/sfvb_api.rb +1334 -118
- data/lib/ultracart_api/models/sfvb_library_ai_review.rb +304 -0
- data/lib/ultracart_api/models/sfvb_library_content_manifest.rb +259 -0
- data/lib/ultracart_api/models/sfvb_library_delete_result.rb +264 -0
- data/lib/ultracart_api/models/sfvb_library_entry.rb +177 -1
- data/lib/ultracart_api/models/sfvb_library_entry_request.rb +280 -0
- data/lib/ultracart_api/models/sfvb_library_facet.rb +2 -2
- data/lib/ultracart_api/models/sfvb_library_history_entry.rb +250 -0
- data/lib/ultracart_api/models/sfvb_library_history_response.rb +222 -0
- data/lib/ultracart_api/models/sfvb_library_install_conflict.rb +240 -0
- data/lib/ultracart_api/models/sfvb_library_install_receipt.rb +297 -0
- data/lib/ultracart_api/models/sfvb_library_install_record.rb +290 -0
- data/lib/ultracart_api/models/sfvb_library_install_request.rb +274 -0
- data/lib/ultracart_api/models/sfvb_library_installs_response.rb +222 -0
- data/lib/ultracart_api/models/sfvb_library_parameter.rb +260 -0
- data/lib/ultracart_api/models/sfvb_library_publish_request.rb +264 -0
- data/lib/ultracart_api/models/sfvb_library_screenshot_request.rb +274 -0
- data/lib/ultracart_api/models/sfvb_library_share_request.rb +220 -0
- data/lib/ultracart_api/models/sfvb_library_share_target.rb +230 -0
- data/lib/ultracart_api/models/sfvb_library_share_targets_response.rb +222 -0
- data/lib/ultracart_api/models/sfvb_library_taxonomy.rb +258 -0
- data/lib/ultracart_api/models/sfvb_library_taxonomy_catalog.rb +220 -0
- data/lib/ultracart_api/models/sfvb_library_unshare_result.rb +242 -0
- data/lib/ultracart_api/models/sfvb_whoami_response.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +20 -0
- metadata +41 -1
|
@@ -0,0 +1,264 @@
|
|
|
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 SfvbLibraryDeleteResult
|
|
18
|
+
# The entry.
|
|
19
|
+
attr_accessor :library_oid
|
|
20
|
+
|
|
21
|
+
# deleted when the entry was private and never published or installed, so it is gone. retired when it had been published or installed, so it was kept for the storefronts that use it and taken out of search.
|
|
22
|
+
attr_accessor :result
|
|
23
|
+
|
|
24
|
+
class EnumAttributeValidator
|
|
25
|
+
attr_reader :datatype
|
|
26
|
+
attr_reader :allowable_values
|
|
27
|
+
|
|
28
|
+
def initialize(datatype, allowable_values)
|
|
29
|
+
@allowable_values = allowable_values.map do |value|
|
|
30
|
+
case datatype.to_s
|
|
31
|
+
when /Integer/i
|
|
32
|
+
value.to_i
|
|
33
|
+
when /Float/i
|
|
34
|
+
value.to_f
|
|
35
|
+
else
|
|
36
|
+
value
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def valid?(value)
|
|
42
|
+
!value || allowable_values.include?(value)
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
47
|
+
def self.attribute_map
|
|
48
|
+
{
|
|
49
|
+
:'library_oid' => :'library_oid',
|
|
50
|
+
:'result' => :'result'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Returns all the JSON keys this model knows about
|
|
55
|
+
def self.acceptable_attributes
|
|
56
|
+
attribute_map.values
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Attribute type mapping.
|
|
60
|
+
def self.openapi_types
|
|
61
|
+
{
|
|
62
|
+
:'library_oid' => :'Integer',
|
|
63
|
+
:'result' => :'String'
|
|
64
|
+
}
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# List of attributes with nullable: true
|
|
68
|
+
def self.openapi_nullable
|
|
69
|
+
Set.new([
|
|
70
|
+
])
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Initializes the object
|
|
74
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
75
|
+
def initialize(attributes = {})
|
|
76
|
+
if (!attributes.is_a?(Hash))
|
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbLibraryDeleteResult` initialize method"
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
82
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbLibraryDeleteResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
84
|
+
end
|
|
85
|
+
h[k.to_sym] = v
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'library_oid')
|
|
89
|
+
self.library_oid = attributes[:'library_oid']
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'result')
|
|
93
|
+
self.result = attributes[:'result']
|
|
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
|
+
invalid_properties = Array.new
|
|
101
|
+
invalid_properties
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Check to see if the all the properties in the model are valid
|
|
105
|
+
# @return true if the model is valid
|
|
106
|
+
def valid?
|
|
107
|
+
result_validator = EnumAttributeValidator.new('String', ["deleted", "retired"])
|
|
108
|
+
return false unless result_validator.valid?(@result)
|
|
109
|
+
true
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
113
|
+
# @param [Object] result Object to be assigned
|
|
114
|
+
def result=(result)
|
|
115
|
+
validator = EnumAttributeValidator.new('String', ["deleted", "retired"])
|
|
116
|
+
unless validator.valid?(result)
|
|
117
|
+
fail ArgumentError, "invalid value for \"result\", must be one of #{validator.allowable_values}."
|
|
118
|
+
end
|
|
119
|
+
@result = result
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Checks equality by comparing each attribute.
|
|
123
|
+
# @param [Object] Object to be compared
|
|
124
|
+
def ==(o)
|
|
125
|
+
return true if self.equal?(o)
|
|
126
|
+
self.class == o.class &&
|
|
127
|
+
library_oid == o.library_oid &&
|
|
128
|
+
result == o.result
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# @see the `==` method
|
|
132
|
+
# @param [Object] Object to be compared
|
|
133
|
+
def eql?(o)
|
|
134
|
+
self == o
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Calculates hash code according to all attributes.
|
|
138
|
+
# @return [Integer] Hash code
|
|
139
|
+
def hash
|
|
140
|
+
[library_oid, result].hash
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Builds the object from hash
|
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
145
|
+
# @return [Object] Returns the model itself
|
|
146
|
+
def self.build_from_hash(attributes)
|
|
147
|
+
new.build_from_hash(attributes)
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Builds the object from hash
|
|
151
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
152
|
+
# @return [Object] Returns the model itself
|
|
153
|
+
def build_from_hash(attributes)
|
|
154
|
+
return nil unless attributes.is_a?(Hash)
|
|
155
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
156
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
157
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
158
|
+
self.send("#{key}=", nil)
|
|
159
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
160
|
+
# check to ensure the input is an array given that the attribute
|
|
161
|
+
# is documented as an array but the input is not
|
|
162
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
163
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
164
|
+
end
|
|
165
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
166
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
self
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Deserializes the data based on type
|
|
174
|
+
# @param string type Data type
|
|
175
|
+
# @param string value Value to be deserialized
|
|
176
|
+
# @return [Object] Deserialized data
|
|
177
|
+
def _deserialize(type, value)
|
|
178
|
+
case type.to_sym
|
|
179
|
+
when :Time
|
|
180
|
+
Time.parse(value)
|
|
181
|
+
when :Date
|
|
182
|
+
Date.parse(value)
|
|
183
|
+
when :String
|
|
184
|
+
value.to_s
|
|
185
|
+
when :Integer
|
|
186
|
+
value.to_i
|
|
187
|
+
when :Float
|
|
188
|
+
value.to_f
|
|
189
|
+
when :Boolean
|
|
190
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
191
|
+
true
|
|
192
|
+
else
|
|
193
|
+
false
|
|
194
|
+
end
|
|
195
|
+
when :Object
|
|
196
|
+
# generic object (usually a Hash), return directly
|
|
197
|
+
value
|
|
198
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
199
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
200
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
201
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
202
|
+
k_type = Regexp.last_match[:k_type]
|
|
203
|
+
v_type = Regexp.last_match[:v_type]
|
|
204
|
+
{}.tap do |hash|
|
|
205
|
+
value.each do |k, v|
|
|
206
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
else # model
|
|
210
|
+
# models (e.g. Pet) or oneOf
|
|
211
|
+
klass = UltracartClient.const_get(type)
|
|
212
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Returns the string representation of the object
|
|
217
|
+
# @return [String] String presentation of the object
|
|
218
|
+
def to_s
|
|
219
|
+
to_hash.to_s
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
223
|
+
# @return [Hash] Returns the object in the form of hash
|
|
224
|
+
def to_body
|
|
225
|
+
to_hash
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# Returns the object in the form of hash
|
|
229
|
+
# @return [Hash] Returns the object in the form of hash
|
|
230
|
+
def to_hash
|
|
231
|
+
hash = {}
|
|
232
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
233
|
+
value = self.send(attr)
|
|
234
|
+
if value.nil?
|
|
235
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
236
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
hash[param] = _to_hash(value)
|
|
240
|
+
end
|
|
241
|
+
hash
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Outputs non-array value in the form of hash
|
|
245
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
246
|
+
# @param [Object] value Any valid value
|
|
247
|
+
# @return [Hash] Returns the value in the form of hash
|
|
248
|
+
def _to_hash(value)
|
|
249
|
+
if value.is_a?(Array)
|
|
250
|
+
value.compact.map { |v| _to_hash(v) }
|
|
251
|
+
elsif value.is_a?(Hash)
|
|
252
|
+
{}.tap do |hash|
|
|
253
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
254
|
+
end
|
|
255
|
+
elsif value.respond_to? :to_hash
|
|
256
|
+
value.to_hash
|
|
257
|
+
else
|
|
258
|
+
value
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
end
|
|
@@ -21,9 +21,17 @@ module UltracartClient
|
|
|
21
21
|
# The fragment's CJSON. Omitted from search results to keep them terse; fetch a single entry to get it.
|
|
22
22
|
attr_accessor :cjson
|
|
23
23
|
|
|
24
|
+
attr_accessor :content_manifest
|
|
25
|
+
|
|
24
26
|
# What this fragment is for.
|
|
25
27
|
attr_accessor :description
|
|
26
28
|
|
|
29
|
+
# Hash of the draft's writable fields. Send it back as If-Match to update, delete or publish. Present only for the owner.
|
|
30
|
+
attr_accessor :hash_sha256
|
|
31
|
+
|
|
32
|
+
# When the draft was last saved, ISO 8601.
|
|
33
|
+
attr_accessor :last_modified_dts
|
|
34
|
+
|
|
27
35
|
# Library entry oid.
|
|
28
36
|
attr_accessor :library_oid
|
|
29
37
|
|
|
@@ -33,34 +41,102 @@ module UltracartClient
|
|
|
33
41
|
# True when the calling user owns this entry.
|
|
34
42
|
attr_accessor :owned
|
|
35
43
|
|
|
44
|
+
# Named values the fragment expects the installer to supply.
|
|
45
|
+
attr_accessor :parameters
|
|
46
|
+
|
|
47
|
+
# The latest published revision, or null when the entry has never been published.
|
|
48
|
+
attr_accessor :published_revision_number
|
|
49
|
+
|
|
36
50
|
# Storefront file paths this fragment references. Installing the fragment copies them into the storefront; reading it does not.
|
|
37
51
|
attr_accessor :referenced_files
|
|
38
52
|
|
|
53
|
+
# True when the owner deleted an entry that had been published or installed. It is kept so existing installs still resolve, and it leaves search.
|
|
54
|
+
attr_accessor :retired
|
|
55
|
+
|
|
56
|
+
# The revision returned. For the owner this is the draft, which every save increments. For anyone else it is the published revision.
|
|
57
|
+
attr_accessor :revision_number
|
|
58
|
+
|
|
59
|
+
# Screenshot height in pixels.
|
|
60
|
+
attr_accessor :screenshot_height
|
|
61
|
+
|
|
39
62
|
# S3 listing key for the large screenshot, when one has been generated.
|
|
40
63
|
attr_accessor :screenshot_key
|
|
41
64
|
|
|
65
|
+
# Hash of the uploaded screenshot.
|
|
66
|
+
attr_accessor :screenshot_sha256
|
|
67
|
+
|
|
68
|
+
# True on an update that changed the fragment of an entry with a screenshot. Retake it and set it again with the library screenshot endpoint.
|
|
69
|
+
attr_accessor :screenshot_stale
|
|
70
|
+
|
|
71
|
+
# Screenshot width in pixels.
|
|
72
|
+
attr_accessor :screenshot_width
|
|
73
|
+
|
|
42
74
|
# True when the entry is shared across the merchant account.
|
|
43
75
|
attr_accessor :share_with_account
|
|
44
76
|
|
|
77
|
+
# Linked accounts the entry is shared with. Present only for the owner.
|
|
78
|
+
attr_accessor :shared_with
|
|
79
|
+
|
|
80
|
+
attr_accessor :taxonomy
|
|
81
|
+
|
|
45
82
|
# S3 listing key for the medium thumbnail, when one has been generated. Thumbnails are produced asynchronously and can lag a save by a minute or two.
|
|
46
83
|
attr_accessor :thumbnail_key
|
|
47
84
|
|
|
85
|
+
# private, shared or public.
|
|
86
|
+
attr_accessor :visibility
|
|
87
|
+
|
|
48
88
|
# Element type at the root of the fragment.
|
|
49
89
|
attr_accessor :widget_type
|
|
50
90
|
|
|
91
|
+
class EnumAttributeValidator
|
|
92
|
+
attr_reader :datatype
|
|
93
|
+
attr_reader :allowable_values
|
|
94
|
+
|
|
95
|
+
def initialize(datatype, allowable_values)
|
|
96
|
+
@allowable_values = allowable_values.map do |value|
|
|
97
|
+
case datatype.to_s
|
|
98
|
+
when /Integer/i
|
|
99
|
+
value.to_i
|
|
100
|
+
when /Float/i
|
|
101
|
+
value.to_f
|
|
102
|
+
else
|
|
103
|
+
value
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
def valid?(value)
|
|
109
|
+
!value || allowable_values.include?(value)
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
51
113
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
114
|
def self.attribute_map
|
|
53
115
|
{
|
|
54
116
|
:'bookmarked' => :'bookmarked',
|
|
55
117
|
:'cjson' => :'cjson',
|
|
118
|
+
:'content_manifest' => :'content_manifest',
|
|
56
119
|
:'description' => :'description',
|
|
120
|
+
:'hash_sha256' => :'hash_sha256',
|
|
121
|
+
:'last_modified_dts' => :'last_modified_dts',
|
|
57
122
|
:'library_oid' => :'library_oid',
|
|
58
123
|
:'name' => :'name',
|
|
59
124
|
:'owned' => :'owned',
|
|
125
|
+
:'parameters' => :'parameters',
|
|
126
|
+
:'published_revision_number' => :'published_revision_number',
|
|
60
127
|
:'referenced_files' => :'referenced_files',
|
|
128
|
+
:'retired' => :'retired',
|
|
129
|
+
:'revision_number' => :'revision_number',
|
|
130
|
+
:'screenshot_height' => :'screenshot_height',
|
|
61
131
|
:'screenshot_key' => :'screenshot_key',
|
|
132
|
+
:'screenshot_sha256' => :'screenshot_sha256',
|
|
133
|
+
:'screenshot_stale' => :'screenshot_stale',
|
|
134
|
+
:'screenshot_width' => :'screenshot_width',
|
|
62
135
|
:'share_with_account' => :'share_with_account',
|
|
136
|
+
:'shared_with' => :'shared_with',
|
|
137
|
+
:'taxonomy' => :'taxonomy',
|
|
63
138
|
:'thumbnail_key' => :'thumbnail_key',
|
|
139
|
+
:'visibility' => :'visibility',
|
|
64
140
|
:'widget_type' => :'widget_type'
|
|
65
141
|
}
|
|
66
142
|
end
|
|
@@ -75,14 +151,28 @@ module UltracartClient
|
|
|
75
151
|
{
|
|
76
152
|
:'bookmarked' => :'Boolean',
|
|
77
153
|
:'cjson' => :'String',
|
|
154
|
+
:'content_manifest' => :'SfvbLibraryContentManifest',
|
|
78
155
|
:'description' => :'String',
|
|
156
|
+
:'hash_sha256' => :'String',
|
|
157
|
+
:'last_modified_dts' => :'String',
|
|
79
158
|
:'library_oid' => :'Integer',
|
|
80
159
|
:'name' => :'String',
|
|
81
160
|
:'owned' => :'Boolean',
|
|
161
|
+
:'parameters' => :'Array<SfvbLibraryParameter>',
|
|
162
|
+
:'published_revision_number' => :'Integer',
|
|
82
163
|
:'referenced_files' => :'Array<String>',
|
|
164
|
+
:'retired' => :'Boolean',
|
|
165
|
+
:'revision_number' => :'Integer',
|
|
166
|
+
:'screenshot_height' => :'Integer',
|
|
83
167
|
:'screenshot_key' => :'String',
|
|
168
|
+
:'screenshot_sha256' => :'String',
|
|
169
|
+
:'screenshot_stale' => :'Boolean',
|
|
170
|
+
:'screenshot_width' => :'Integer',
|
|
84
171
|
:'share_with_account' => :'Boolean',
|
|
172
|
+
:'shared_with' => :'Array<SfvbLibraryShareTarget>',
|
|
173
|
+
:'taxonomy' => :'SfvbLibraryTaxonomy',
|
|
85
174
|
:'thumbnail_key' => :'String',
|
|
175
|
+
:'visibility' => :'String',
|
|
86
176
|
:'widget_type' => :'String'
|
|
87
177
|
}
|
|
88
178
|
end
|
|
@@ -116,10 +206,22 @@ module UltracartClient
|
|
|
116
206
|
self.cjson = attributes[:'cjson']
|
|
117
207
|
end
|
|
118
208
|
|
|
209
|
+
if attributes.key?(:'content_manifest')
|
|
210
|
+
self.content_manifest = attributes[:'content_manifest']
|
|
211
|
+
end
|
|
212
|
+
|
|
119
213
|
if attributes.key?(:'description')
|
|
120
214
|
self.description = attributes[:'description']
|
|
121
215
|
end
|
|
122
216
|
|
|
217
|
+
if attributes.key?(:'hash_sha256')
|
|
218
|
+
self.hash_sha256 = attributes[:'hash_sha256']
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if attributes.key?(:'last_modified_dts')
|
|
222
|
+
self.last_modified_dts = attributes[:'last_modified_dts']
|
|
223
|
+
end
|
|
224
|
+
|
|
123
225
|
if attributes.key?(:'library_oid')
|
|
124
226
|
self.library_oid = attributes[:'library_oid']
|
|
125
227
|
end
|
|
@@ -132,24 +234,72 @@ module UltracartClient
|
|
|
132
234
|
self.owned = attributes[:'owned']
|
|
133
235
|
end
|
|
134
236
|
|
|
237
|
+
if attributes.key?(:'parameters')
|
|
238
|
+
if (value = attributes[:'parameters']).is_a?(Array)
|
|
239
|
+
self.parameters = value
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
if attributes.key?(:'published_revision_number')
|
|
244
|
+
self.published_revision_number = attributes[:'published_revision_number']
|
|
245
|
+
end
|
|
246
|
+
|
|
135
247
|
if attributes.key?(:'referenced_files')
|
|
136
248
|
if (value = attributes[:'referenced_files']).is_a?(Array)
|
|
137
249
|
self.referenced_files = value
|
|
138
250
|
end
|
|
139
251
|
end
|
|
140
252
|
|
|
253
|
+
if attributes.key?(:'retired')
|
|
254
|
+
self.retired = attributes[:'retired']
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
if attributes.key?(:'revision_number')
|
|
258
|
+
self.revision_number = attributes[:'revision_number']
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if attributes.key?(:'screenshot_height')
|
|
262
|
+
self.screenshot_height = attributes[:'screenshot_height']
|
|
263
|
+
end
|
|
264
|
+
|
|
141
265
|
if attributes.key?(:'screenshot_key')
|
|
142
266
|
self.screenshot_key = attributes[:'screenshot_key']
|
|
143
267
|
end
|
|
144
268
|
|
|
269
|
+
if attributes.key?(:'screenshot_sha256')
|
|
270
|
+
self.screenshot_sha256 = attributes[:'screenshot_sha256']
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
if attributes.key?(:'screenshot_stale')
|
|
274
|
+
self.screenshot_stale = attributes[:'screenshot_stale']
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
if attributes.key?(:'screenshot_width')
|
|
278
|
+
self.screenshot_width = attributes[:'screenshot_width']
|
|
279
|
+
end
|
|
280
|
+
|
|
145
281
|
if attributes.key?(:'share_with_account')
|
|
146
282
|
self.share_with_account = attributes[:'share_with_account']
|
|
147
283
|
end
|
|
148
284
|
|
|
285
|
+
if attributes.key?(:'shared_with')
|
|
286
|
+
if (value = attributes[:'shared_with']).is_a?(Array)
|
|
287
|
+
self.shared_with = value
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
if attributes.key?(:'taxonomy')
|
|
292
|
+
self.taxonomy = attributes[:'taxonomy']
|
|
293
|
+
end
|
|
294
|
+
|
|
149
295
|
if attributes.key?(:'thumbnail_key')
|
|
150
296
|
self.thumbnail_key = attributes[:'thumbnail_key']
|
|
151
297
|
end
|
|
152
298
|
|
|
299
|
+
if attributes.key?(:'visibility')
|
|
300
|
+
self.visibility = attributes[:'visibility']
|
|
301
|
+
end
|
|
302
|
+
|
|
153
303
|
if attributes.key?(:'widget_type')
|
|
154
304
|
self.widget_type = attributes[:'widget_type']
|
|
155
305
|
end
|
|
@@ -165,9 +315,21 @@ module UltracartClient
|
|
|
165
315
|
# Check to see if the all the properties in the model are valid
|
|
166
316
|
# @return true if the model is valid
|
|
167
317
|
def valid?
|
|
318
|
+
visibility_validator = EnumAttributeValidator.new('String', ["private", "shared", "public"])
|
|
319
|
+
return false unless visibility_validator.valid?(@visibility)
|
|
168
320
|
true
|
|
169
321
|
end
|
|
170
322
|
|
|
323
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
324
|
+
# @param [Object] visibility Object to be assigned
|
|
325
|
+
def visibility=(visibility)
|
|
326
|
+
validator = EnumAttributeValidator.new('String', ["private", "shared", "public"])
|
|
327
|
+
unless validator.valid?(visibility)
|
|
328
|
+
fail ArgumentError, "invalid value for \"visibility\", must be one of #{validator.allowable_values}."
|
|
329
|
+
end
|
|
330
|
+
@visibility = visibility
|
|
331
|
+
end
|
|
332
|
+
|
|
171
333
|
# Checks equality by comparing each attribute.
|
|
172
334
|
# @param [Object] Object to be compared
|
|
173
335
|
def ==(o)
|
|
@@ -175,14 +337,28 @@ module UltracartClient
|
|
|
175
337
|
self.class == o.class &&
|
|
176
338
|
bookmarked == o.bookmarked &&
|
|
177
339
|
cjson == o.cjson &&
|
|
340
|
+
content_manifest == o.content_manifest &&
|
|
178
341
|
description == o.description &&
|
|
342
|
+
hash_sha256 == o.hash_sha256 &&
|
|
343
|
+
last_modified_dts == o.last_modified_dts &&
|
|
179
344
|
library_oid == o.library_oid &&
|
|
180
345
|
name == o.name &&
|
|
181
346
|
owned == o.owned &&
|
|
347
|
+
parameters == o.parameters &&
|
|
348
|
+
published_revision_number == o.published_revision_number &&
|
|
182
349
|
referenced_files == o.referenced_files &&
|
|
350
|
+
retired == o.retired &&
|
|
351
|
+
revision_number == o.revision_number &&
|
|
352
|
+
screenshot_height == o.screenshot_height &&
|
|
183
353
|
screenshot_key == o.screenshot_key &&
|
|
354
|
+
screenshot_sha256 == o.screenshot_sha256 &&
|
|
355
|
+
screenshot_stale == o.screenshot_stale &&
|
|
356
|
+
screenshot_width == o.screenshot_width &&
|
|
184
357
|
share_with_account == o.share_with_account &&
|
|
358
|
+
shared_with == o.shared_with &&
|
|
359
|
+
taxonomy == o.taxonomy &&
|
|
185
360
|
thumbnail_key == o.thumbnail_key &&
|
|
361
|
+
visibility == o.visibility &&
|
|
186
362
|
widget_type == o.widget_type
|
|
187
363
|
end
|
|
188
364
|
|
|
@@ -195,7 +371,7 @@ module UltracartClient
|
|
|
195
371
|
# Calculates hash code according to all attributes.
|
|
196
372
|
# @return [Integer] Hash code
|
|
197
373
|
def hash
|
|
198
|
-
[bookmarked, cjson, description, library_oid, name, owned, referenced_files, screenshot_key, share_with_account, thumbnail_key, widget_type].hash
|
|
374
|
+
[bookmarked, cjson, content_manifest, description, hash_sha256, last_modified_dts, library_oid, name, owned, parameters, published_revision_number, referenced_files, retired, revision_number, screenshot_height, screenshot_key, screenshot_sha256, screenshot_stale, screenshot_width, share_with_account, shared_with, taxonomy, thumbnail_key, visibility, widget_type].hash
|
|
199
375
|
end
|
|
200
376
|
|
|
201
377
|
# Builds the object from hash
|