aspose_imaging_cloud 20.7 → 20.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/aspose-imaging-cloud.rb +1 -0
- data/lib/aspose-imaging-cloud/api/imaging_api.rb +1 -1
- data/lib/aspose-imaging-cloud/api_client.rb +1 -1
- data/lib/aspose-imaging-cloud/models/eps_properties.rb +241 -0
- data/lib/aspose-imaging-cloud/models/imaging_response.rb +11 -1
- data/lib/aspose-imaging-cloud/models/requests/get_available_labels_request.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90e22614499953c33cc3dac218ecca3f1e4b3771a01b023ddd7fc8260f46677a
|
4
|
+
data.tar.gz: 58cfb883bde337ef54ff26f532bb133265d4980d6fb3168166ebcc4f9db475d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3afd212cd24083765361735ebf4a343e1fee3f8a30cbd6aed54cf79c8dc1e2f04cc6f59b7ea81668152280322e903724ef4b5c0f55ec389ba22147d07c37d685
|
7
|
+
data.tar.gz: 0dd2ebc618ebbdcb351b71f65f408508089d57570422a13fd4aecb79b02133b7069697d0f1dd876e8e2e20ac4702df172d8e5d9e215dc3220a70bc3e77c95ced
|
data/README.md
CHANGED
data/lib/aspose-imaging-cloud.rb
CHANGED
@@ -39,6 +39,7 @@ require_relative './aspose-imaging-cloud/models/dicom_properties'
|
|
39
39
|
require_relative './aspose-imaging-cloud/models/disc_usage'
|
40
40
|
require_relative './aspose-imaging-cloud/models/djvu_properties'
|
41
41
|
require_relative './aspose-imaging-cloud/models/dng_properties'
|
42
|
+
require_relative './aspose-imaging-cloud/models/eps_properties'
|
42
43
|
require_relative './aspose-imaging-cloud/models/error'
|
43
44
|
require_relative './aspose-imaging-cloud/models/error_details'
|
44
45
|
require_relative './aspose-imaging-cloud/models/exif_data'
|
@@ -446,7 +446,7 @@ module AsposeImagingCloud
|
|
446
446
|
make_request(http_request, :GET, 'SearchResultsSet')
|
447
447
|
end
|
448
448
|
|
449
|
-
#
|
449
|
+
# Gets available labels for selected object detection method.
|
450
450
|
# @param [get_available_labelsRequest] request Request object.
|
451
451
|
# @return [AvailableLabelsList]
|
452
452
|
def get_available_labels(request)
|
@@ -0,0 +1,241 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="eps_properties.rb">
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
|
+
# </copyright>
|
5
|
+
# <summary>
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
7
|
+
# copy of this software and associated documentation files (the "Software"),
|
8
|
+
# to deal in the Software without restriction, including without limitation
|
9
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
10
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
11
|
+
# Software is furnished to do so, subject to the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
14
|
+
# all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22
|
+
# DEALINGS IN THE SOFTWARE.
|
23
|
+
# </summary>
|
24
|
+
# ----------------------------------------------------------------------------
|
25
|
+
|
26
|
+
|
27
|
+
require 'date'
|
28
|
+
|
29
|
+
module AsposeImagingCloud
|
30
|
+
class EpsProperties
|
31
|
+
# Gets the BoundingBox.
|
32
|
+
attr_accessor :bounding_box_string
|
33
|
+
|
34
|
+
# Gets the CreationDate.
|
35
|
+
attr_accessor :creation_date_string
|
36
|
+
|
37
|
+
# Gets the Creator.
|
38
|
+
attr_accessor :creator
|
39
|
+
|
40
|
+
# Gets the PostScript version.
|
41
|
+
attr_accessor :post_script_version
|
42
|
+
|
43
|
+
# Gets the Title.
|
44
|
+
attr_accessor :title
|
45
|
+
|
46
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
47
|
+
def self.attribute_map
|
48
|
+
{
|
49
|
+
:'bounding_box_string' => :'BoundingBoxString',
|
50
|
+
:'creation_date_string' => :'CreationDateString',
|
51
|
+
:'creator' => :'Creator',
|
52
|
+
:'post_script_version' => :'PostScriptVersion',
|
53
|
+
:'title' => :'Title'
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# Attribute type mapping.
|
58
|
+
def self.swagger_types
|
59
|
+
{
|
60
|
+
:'bounding_box_string' => :'String',
|
61
|
+
:'creation_date_string' => :'String',
|
62
|
+
:'creator' => :'String',
|
63
|
+
:'post_script_version' => :'String',
|
64
|
+
:'title' => :'String'
|
65
|
+
}
|
66
|
+
end
|
67
|
+
|
68
|
+
# Initializes the object
|
69
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
70
|
+
def initialize(attributes = {})
|
71
|
+
return unless attributes.is_a?(Hash)
|
72
|
+
|
73
|
+
# convert string to symbol for hash key
|
74
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
75
|
+
|
76
|
+
if attributes.has_key?(:'BoundingBoxString')
|
77
|
+
self.bounding_box_string = attributes[:'BoundingBoxString']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.has_key?(:'CreationDateString')
|
81
|
+
self.creation_date_string = attributes[:'CreationDateString']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.has_key?(:'Creator')
|
85
|
+
self.creator = attributes[:'Creator']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.has_key?(:'PostScriptVersion')
|
89
|
+
self.post_script_version = attributes[:'PostScriptVersion']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.has_key?(:'Title')
|
93
|
+
self.title = attributes[:'Title']
|
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
|
+
true
|
108
|
+
end
|
109
|
+
|
110
|
+
# Checks equality by comparing each attribute.
|
111
|
+
# @param [Object] Object to be compared
|
112
|
+
def ==(o)
|
113
|
+
return true if self.equal?(o)
|
114
|
+
self.class == o.class &&
|
115
|
+
bounding_box_string == o.bounding_box_string &&
|
116
|
+
creation_date_string == o.creation_date_string &&
|
117
|
+
creator == o.creator &&
|
118
|
+
post_script_version == o.post_script_version &&
|
119
|
+
title == o.title
|
120
|
+
end
|
121
|
+
|
122
|
+
# @see the `==` method
|
123
|
+
# @param [Object] Object to be compared
|
124
|
+
def eql?(o)
|
125
|
+
self == o
|
126
|
+
end
|
127
|
+
|
128
|
+
# Calculates hash code according to all attributes.
|
129
|
+
# @return [Fixnum] Hash code
|
130
|
+
def hash
|
131
|
+
[bounding_box_string, creation_date_string, creator, post_script_version, title].hash
|
132
|
+
end
|
133
|
+
|
134
|
+
# Builds the object from hash
|
135
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
136
|
+
# @return [Object] Returns the model itself
|
137
|
+
def build_from_hash(attributes)
|
138
|
+
return nil unless attributes.is_a?(Hash)
|
139
|
+
self.class.swagger_types.each_pair do |key, type|
|
140
|
+
attribute_key = self.class.attribute_map[key]
|
141
|
+
attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
|
142
|
+
if type =~ /\AArray<(.*)>/i
|
143
|
+
# check to ensure the input is an array given that the the attribute
|
144
|
+
# is documented as an array but the input is not
|
145
|
+
if attributes[attribute_key].is_a?(Array)
|
146
|
+
self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
|
147
|
+
end
|
148
|
+
elsif !attributes[attribute_key].nil?
|
149
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
|
150
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
151
|
+
end
|
152
|
+
|
153
|
+
self
|
154
|
+
end
|
155
|
+
|
156
|
+
# Deserializes the data based on type
|
157
|
+
# @param string type Data type
|
158
|
+
# @param string value Value to be deserialized
|
159
|
+
# @return [Object] Deserialized data
|
160
|
+
def _deserialize(type, value)
|
161
|
+
case type.to_sym
|
162
|
+
when :DateTime
|
163
|
+
DateTime.parse(value)
|
164
|
+
when :Date
|
165
|
+
Date.parse(value)
|
166
|
+
when :String
|
167
|
+
value.to_s
|
168
|
+
when :Integer
|
169
|
+
value.to_i
|
170
|
+
when :Float
|
171
|
+
value.to_f
|
172
|
+
when :BOOLEAN
|
173
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
174
|
+
true
|
175
|
+
else
|
176
|
+
false
|
177
|
+
end
|
178
|
+
when :Object
|
179
|
+
# generic object (usually a Hash), return directly
|
180
|
+
value
|
181
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
182
|
+
inner_type = Regexp.last_match[:inner_type]
|
183
|
+
value.map { |v| _deserialize(inner_type, v) }
|
184
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
185
|
+
k_type = Regexp.last_match[:k_type]
|
186
|
+
v_type = Regexp.last_match[:v_type]
|
187
|
+
{}.tap do |hash|
|
188
|
+
value.each do |k, v|
|
189
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
else # model
|
193
|
+
temp_model = AsposeImagingCloud.const_get(type).new
|
194
|
+
temp_model.build_from_hash(value)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# Returns the string representation of the object
|
199
|
+
# @return [String] String presentation of the object
|
200
|
+
def to_s
|
201
|
+
to_hash.to_s
|
202
|
+
end
|
203
|
+
|
204
|
+
# to_body is an alias to to_hash (backward compatibility)
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
206
|
+
def to_body
|
207
|
+
to_hash
|
208
|
+
end
|
209
|
+
|
210
|
+
# Returns the object in the form of hash
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
212
|
+
def to_hash
|
213
|
+
hash = {}
|
214
|
+
self.class.attribute_map.each_pair do |attr, param|
|
215
|
+
value = self.send(attr)
|
216
|
+
next if value.nil?
|
217
|
+
hash[param] = _to_hash(value)
|
218
|
+
end
|
219
|
+
hash
|
220
|
+
end
|
221
|
+
|
222
|
+
# Outputs non-array value in the form of hash
|
223
|
+
# For object, use to_hash. Otherwise, just return the value
|
224
|
+
# @param [Object] value Any valid value
|
225
|
+
# @return [Hash] Returns the value in the form of hash
|
226
|
+
def _to_hash(value)
|
227
|
+
if value.is_a?(Array)
|
228
|
+
value.compact.map { |v| _to_hash(v) }
|
229
|
+
elsif value.is_a?(Hash)
|
230
|
+
{}.tap do |hash|
|
231
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
232
|
+
end
|
233
|
+
elsif value.respond_to? :to_hash
|
234
|
+
value.to_hash
|
235
|
+
else
|
236
|
+
value
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
end
|
241
|
+
end
|
@@ -77,6 +77,9 @@ module AsposeImagingCloud
|
|
77
77
|
# Gets or sets the SVG properties.
|
78
78
|
attr_accessor :svg_properties
|
79
79
|
|
80
|
+
# Gets or sets the EPS properties.
|
81
|
+
attr_accessor :eps_properties
|
82
|
+
|
80
83
|
# Gets or sets the horizontal resolution of an image.
|
81
84
|
attr_accessor :horizontal_resolution
|
82
85
|
|
@@ -105,6 +108,7 @@ module AsposeImagingCloud
|
|
105
108
|
:'dng_properties' => :'DngProperties',
|
106
109
|
:'odg_properties' => :'OdgProperties',
|
107
110
|
:'svg_properties' => :'SvgProperties',
|
111
|
+
:'eps_properties' => :'EpsProperties',
|
108
112
|
:'horizontal_resolution' => :'HorizontalResolution',
|
109
113
|
:'vertical_resolution' => :'VerticalResolution',
|
110
114
|
:'is_cached' => :'IsCached'
|
@@ -130,6 +134,7 @@ module AsposeImagingCloud
|
|
130
134
|
:'dng_properties' => :'DngProperties',
|
131
135
|
:'odg_properties' => :'OdgProperties',
|
132
136
|
:'svg_properties' => :'SvgProperties',
|
137
|
+
:'eps_properties' => :'EpsProperties',
|
133
138
|
:'horizontal_resolution' => :'Float',
|
134
139
|
:'vertical_resolution' => :'Float',
|
135
140
|
:'is_cached' => :'BOOLEAN'
|
@@ -208,6 +213,10 @@ module AsposeImagingCloud
|
|
208
213
|
self.svg_properties = attributes[:'SvgProperties']
|
209
214
|
end
|
210
215
|
|
216
|
+
if attributes.has_key?(:'EpsProperties')
|
217
|
+
self.eps_properties = attributes[:'EpsProperties']
|
218
|
+
end
|
219
|
+
|
211
220
|
if attributes.has_key?(:'HorizontalResolution')
|
212
221
|
self.horizontal_resolution = attributes[:'HorizontalResolution']
|
213
222
|
end
|
@@ -285,6 +294,7 @@ module AsposeImagingCloud
|
|
285
294
|
dng_properties == o.dng_properties &&
|
286
295
|
odg_properties == o.odg_properties &&
|
287
296
|
svg_properties == o.svg_properties &&
|
297
|
+
eps_properties == o.eps_properties &&
|
288
298
|
horizontal_resolution == o.horizontal_resolution &&
|
289
299
|
vertical_resolution == o.vertical_resolution &&
|
290
300
|
is_cached == o.is_cached
|
@@ -299,7 +309,7 @@ module AsposeImagingCloud
|
|
299
309
|
# Calculates hash code according to all attributes.
|
300
310
|
# @return [Fixnum] Hash code
|
301
311
|
def hash
|
302
|
-
[height, width, bits_per_pixel, bmp_properties, gif_properties, jpeg_properties, png_properties, tiff_properties, psd_properties, djvu_properties, web_p_properties, jpeg2000_properties, dicom_properties, dng_properties, odg_properties, svg_properties, horizontal_resolution, vertical_resolution, is_cached].hash
|
312
|
+
[height, width, bits_per_pixel, bmp_properties, gif_properties, jpeg_properties, png_properties, tiff_properties, psd_properties, djvu_properties, web_p_properties, jpeg2000_properties, dicom_properties, dng_properties, odg_properties, svg_properties, eps_properties, horizontal_resolution, vertical_resolution, is_cached].hash
|
303
313
|
end
|
304
314
|
|
305
315
|
# Builds the object from hash
|
@@ -31,7 +31,7 @@ module AsposeImagingCloud
|
|
31
31
|
# Request model for get_available_labels operation.
|
32
32
|
class GetAvailableLabelsRequest < ImagingRequest
|
33
33
|
|
34
|
-
#
|
34
|
+
# Gets available labels for selected object detection method.
|
35
35
|
# @param [String] method Object detection method
|
36
36
|
def initialize(method)
|
37
37
|
@method = method
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_imaging_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '20.
|
4
|
+
version: '20.8'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergei Zubov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
|
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- lib/aspose-imaging-cloud/models/disc_usage.rb
|
46
46
|
- lib/aspose-imaging-cloud/models/djvu_properties.rb
|
47
47
|
- lib/aspose-imaging-cloud/models/dng_properties.rb
|
48
|
+
- lib/aspose-imaging-cloud/models/eps_properties.rb
|
48
49
|
- lib/aspose-imaging-cloud/models/error.rb
|
49
50
|
- lib/aspose-imaging-cloud/models/error_details.rb
|
50
51
|
- lib/aspose-imaging-cloud/models/exif_data.rb
|