groupdocs_comparison_cloud 19.5 → 20.5
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/lib/groupdocs_comparison_cloud.rb +6 -3
- data/lib/groupdocs_comparison_cloud/api/compare_api.rb +11 -11
- data/lib/groupdocs_comparison_cloud/api/file_api.rb +7 -7
- data/lib/groupdocs_comparison_cloud/api/folder_api.rb +7 -7
- data/lib/groupdocs_comparison_cloud/api/info_api.rb +98 -1
- data/lib/groupdocs_comparison_cloud/api/storage_api.rb +5 -5
- data/lib/groupdocs_comparison_cloud/api_client.rb +1 -1
- data/lib/groupdocs_comparison_cloud/api_error.rb +7 -4
- data/lib/groupdocs_comparison_cloud/configuration.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/change_info.rb +109 -11
- data/lib/groupdocs_comparison_cloud/models/comparison_options.rb +298 -0
- data/lib/groupdocs_comparison_cloud/models/diagram_master_setting.rb +5 -35
- data/lib/groupdocs_comparison_cloud/models/disc_usage.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/error.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/error_details.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/file_info.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/file_version.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/file_versions.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/files_list.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/files_upload_result.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/format.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/formats_result.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/info_result.rb +254 -0
- data/lib/groupdocs_comparison_cloud/models/items_style.rb +21 -6
- data/lib/groupdocs_comparison_cloud/models/link.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/metadata.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/object_exist.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/{options.rb → page_info.rb} +41 -38
- data/lib/groupdocs_comparison_cloud/models/rectangle.rb +264 -0
- data/lib/groupdocs_comparison_cloud/models/settings.rb +203 -28
- data/lib/groupdocs_comparison_cloud/models/{original_size.rb → size.rb} +6 -6
- data/lib/groupdocs_comparison_cloud/models/storage_exist.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/storage_file.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/style_change_info.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/updates_options.rb +55 -3
- data/lib/groupdocs_comparison_cloud/version.rb +2 -2
- metadata +7 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="
|
4
|
-
# Copyright (c) 2003-
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="size.rb">
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -28,13 +28,13 @@
|
|
28
28
|
require 'date'
|
29
29
|
|
30
30
|
module GroupDocsComparisonCloud
|
31
|
-
#
|
32
|
-
class
|
31
|
+
# Item size
|
32
|
+
class Size
|
33
33
|
|
34
|
-
# Width of
|
34
|
+
# Width of item
|
35
35
|
attr_accessor :width
|
36
36
|
|
37
|
-
# Height of
|
37
|
+
# Height of item
|
38
38
|
attr_accessor :height
|
39
39
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="storage_exist.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="storage_file.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="style_change_info.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="updates_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -40,11 +40,35 @@ module GroupDocsComparisonCloud
|
|
40
40
|
# Comparison settings
|
41
41
|
attr_accessor :settings
|
42
42
|
|
43
|
+
# Changes type. Used only for Changes resource(/comparison/changes)
|
44
|
+
attr_accessor :change_type
|
45
|
+
|
43
46
|
# Path to the resultant document (if not specified the document will not be saved)
|
44
47
|
attr_accessor :output_path
|
45
48
|
|
46
|
-
# Changes to apply or reject. Used only for
|
49
|
+
# Changes to apply or reject. Used only for updates resource (/comparison/updates)
|
47
50
|
attr_accessor :changes
|
51
|
+
class EnumAttributeValidator
|
52
|
+
attr_reader :datatype
|
53
|
+
attr_reader :allowable_values
|
54
|
+
|
55
|
+
def initialize(datatype, allowable_values)
|
56
|
+
@allowable_values = allowable_values.map do |value|
|
57
|
+
case datatype.to_s
|
58
|
+
when /Integer/i
|
59
|
+
value.to_i
|
60
|
+
when /Float/i
|
61
|
+
value.to_f
|
62
|
+
else
|
63
|
+
value
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
def valid?(value)
|
69
|
+
!value || allowable_values.include?(value)
|
70
|
+
end
|
71
|
+
end
|
48
72
|
|
49
73
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
74
|
def self.attribute_map
|
@@ -52,6 +76,7 @@ module GroupDocsComparisonCloud
|
|
52
76
|
:'source_file' => :'SourceFile',
|
53
77
|
:'target_files' => :'TargetFiles',
|
54
78
|
:'settings' => :'Settings',
|
79
|
+
:'change_type' => :'ChangeType',
|
55
80
|
:'output_path' => :'OutputPath',
|
56
81
|
:'changes' => :'Changes'
|
57
82
|
}
|
@@ -63,6 +88,7 @@ module GroupDocsComparisonCloud
|
|
63
88
|
:'source_file' => :'FileInfo',
|
64
89
|
:'target_files' => :'Array<FileInfo>',
|
65
90
|
:'settings' => :'Settings',
|
91
|
+
:'change_type' => :'String',
|
66
92
|
:'output_path' => :'String',
|
67
93
|
:'changes' => :'Array<ChangeInfo>'
|
68
94
|
}
|
@@ -90,6 +116,10 @@ module GroupDocsComparisonCloud
|
|
90
116
|
self.settings = attributes[:'Settings']
|
91
117
|
end
|
92
118
|
|
119
|
+
if attributes.key?(:'ChangeType')
|
120
|
+
self.change_type = attributes[:'ChangeType']
|
121
|
+
end
|
122
|
+
|
93
123
|
if attributes.key?(:'OutputPath')
|
94
124
|
self.output_path = attributes[:'OutputPath']
|
95
125
|
end
|
@@ -106,15 +136,36 @@ module GroupDocsComparisonCloud
|
|
106
136
|
# @return Array for valid properies with the reasons
|
107
137
|
def list_invalid_properties
|
108
138
|
invalid_properties = []
|
139
|
+
if @change_type.nil?
|
140
|
+
invalid_properties.push("invalid value for 'change_type', change_type cannot be nil.")
|
141
|
+
end
|
142
|
+
|
109
143
|
return invalid_properties
|
110
144
|
end
|
111
145
|
|
112
146
|
# Check to see if the all the properties in the model are valid
|
113
147
|
# @return true if the model is valid
|
114
148
|
def valid?
|
149
|
+
return false if @change_type.nil?
|
150
|
+
change_type_validator = EnumAttributeValidator.new('String', ["None", "Modified", "Inserted", "Deleted", "Added", "NotModified", "StyleChanged", "Resized", "Moved", "MovedAndResized", "ShiftedAndResized"])
|
151
|
+
return false unless change_type_validator.valid?(@change_type)
|
115
152
|
return true
|
116
153
|
end
|
117
154
|
|
155
|
+
# Custom attribute writer method checking allowed values (enum).
|
156
|
+
# @param [Object] change_type Object to be assigned
|
157
|
+
def change_type=(change_type)
|
158
|
+
validator = EnumAttributeValidator.new('String', ["None", "Modified", "Inserted", "Deleted", "Added", "NotModified", "StyleChanged", "Resized", "Moved", "MovedAndResized", "ShiftedAndResized"])
|
159
|
+
if change_type.to_i == 0
|
160
|
+
unless validator.valid?(change_type)
|
161
|
+
raise ArgumentError, "invalid value for 'change_type', must be one of #{validator.allowable_values}."
|
162
|
+
end
|
163
|
+
@change_type = change_type
|
164
|
+
else
|
165
|
+
@change_type = validator.allowable_values[change_type.to_i]
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
118
169
|
# Checks equality by comparing each attribute.
|
119
170
|
# @param [Object] Object to be compared
|
120
171
|
def ==(other)
|
@@ -123,6 +174,7 @@ module GroupDocsComparisonCloud
|
|
123
174
|
source_file == other.source_file &&
|
124
175
|
target_files == other.target_files &&
|
125
176
|
settings == other.settings &&
|
177
|
+
change_type == other.change_type &&
|
126
178
|
output_path == other.output_path &&
|
127
179
|
changes == other.changes
|
128
180
|
end
|
@@ -136,7 +188,7 @@ module GroupDocsComparisonCloud
|
|
136
188
|
# Calculates hash code according to all attributes.
|
137
189
|
# @return [Fixnum] Hash code
|
138
190
|
def hash
|
139
|
-
[source_file, target_files, settings, output_path, changes].hash
|
191
|
+
[source_file, target_files, settings, change_type, output_path, changes].hash
|
140
192
|
end
|
141
193
|
|
142
194
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="version.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -25,5 +25,5 @@
|
|
25
25
|
# --------------------------------------------------------------------------------------------------------------------
|
26
26
|
#
|
27
27
|
module GroupDocsComparisonCloud
|
28
|
-
VERSION = "
|
28
|
+
VERSION = "20.5".freeze
|
29
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: groupdocs_comparison_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '
|
4
|
+
version: '20.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GroupDocs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -94,6 +94,7 @@ files:
|
|
94
94
|
- lib/groupdocs_comparison_cloud/api_error.rb
|
95
95
|
- lib/groupdocs_comparison_cloud/configuration.rb
|
96
96
|
- lib/groupdocs_comparison_cloud/models/change_info.rb
|
97
|
+
- lib/groupdocs_comparison_cloud/models/comparison_options.rb
|
97
98
|
- lib/groupdocs_comparison_cloud/models/diagram_master_setting.rb
|
98
99
|
- lib/groupdocs_comparison_cloud/models/disc_usage.rb
|
99
100
|
- lib/groupdocs_comparison_cloud/models/error.rb
|
@@ -105,13 +106,15 @@ files:
|
|
105
106
|
- lib/groupdocs_comparison_cloud/models/files_upload_result.rb
|
106
107
|
- lib/groupdocs_comparison_cloud/models/format.rb
|
107
108
|
- lib/groupdocs_comparison_cloud/models/formats_result.rb
|
109
|
+
- lib/groupdocs_comparison_cloud/models/info_result.rb
|
108
110
|
- lib/groupdocs_comparison_cloud/models/items_style.rb
|
109
111
|
- lib/groupdocs_comparison_cloud/models/link.rb
|
110
112
|
- lib/groupdocs_comparison_cloud/models/metadata.rb
|
111
113
|
- lib/groupdocs_comparison_cloud/models/object_exist.rb
|
112
|
-
- lib/groupdocs_comparison_cloud/models/
|
113
|
-
- lib/groupdocs_comparison_cloud/models/
|
114
|
+
- lib/groupdocs_comparison_cloud/models/page_info.rb
|
115
|
+
- lib/groupdocs_comparison_cloud/models/rectangle.rb
|
114
116
|
- lib/groupdocs_comparison_cloud/models/settings.rb
|
117
|
+
- lib/groupdocs_comparison_cloud/models/size.rb
|
115
118
|
- lib/groupdocs_comparison_cloud/models/storage_exist.rb
|
116
119
|
- lib/groupdocs_comparison_cloud/models/storage_file.rb
|
117
120
|
- lib/groupdocs_comparison_cloud/models/style_change_info.rb
|