aspose_words_cloud 19.10.0 → 19.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aspose_words_cloud/api/words_api.rb +21 -15
- data/lib/aspose_words_cloud/models/error_details.rb +12 -12
- data/lib/aspose_words_cloud/models/requests/DeleteBorderRequest.rb +5 -5
- data/lib/aspose_words_cloud/models/requests/GetBorderRequest.rb +5 -5
- data/lib/aspose_words_cloud/models/requests/UpdateBorderRequest.rb +5 -5
- data/lib/aspose_words_cloud/models/requests/UploadFileRequest.rb +4 -4
- data/lib/aspose_words_cloud/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86635c4f5ada805d0eef2ec48db14fa1ce976957d82a9bb234a4fba46cb953bd
|
4
|
+
data.tar.gz: 11a9226a41bfdd053866e246103508487eb6fa42ea23c1e7266dafee56d1e782
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0abbb18a1d7937e9149b89917218e7f6af658a262a6f76310a23b461f3094059934bedc3513b9b8432e11d066a275d4eabd529ad570f7149fac2f7e744ec570a
|
7
|
+
data.tar.gz: 192b1e96319d71723245ead1fa57af0b5d338a0823a0c0306fc93c7df3a1da40a16d6b5e9c2ba9353e950c366b4ebe8e50f8a9b07ae42ea4cfcba1a5b4d05987
|
@@ -900,13 +900,15 @@ module AsposeWordsCloud
|
|
900
900
|
raise ArgumentError, 'Missing the required parameter name when calling WordsApi.delete_border' if @api_client.config.client_side_validation && request.name.nil?
|
901
901
|
# verify the required parameter 'node_path' is set
|
902
902
|
raise ArgumentError, 'Missing the required parameter node_path when calling WordsApi.delete_border' if @api_client.config.client_side_validation && request.node_path.nil?
|
903
|
-
# verify the required parameter '
|
904
|
-
raise ArgumentError, 'Missing the required parameter
|
903
|
+
# verify the required parameter 'border_type' is set
|
904
|
+
raise ArgumentError, 'Missing the required parameter border_type when calling WordsApi.delete_border' if @api_client.config.client_side_validation && request.border_type.nil?
|
905
|
+
# verify enum value
|
906
|
+
raise ArgumentError, 'invalid value for border_type, must be one of Bottom, Left, Right, Top, Horizontal, Vertical, DiagonalDown, DiagonalUp, None' if @api_client.config.client_side_validation && !['Bottom', 'Left', 'Right', 'Top', 'Horizontal', 'Vertical', 'DiagonalDown', 'DiagonalUp', 'None'].include?(request.border_type)
|
905
907
|
# resource path
|
906
|
-
local_var_path = '/words/{name}/{nodePath}/borders/{
|
908
|
+
local_var_path = '/words/{name}/{nodePath}/borders/{borderType}'
|
907
909
|
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
908
910
|
local_var_path = local_var_path.sub('{' + downcase_first_letter('NodePath') + '}', request.node_path.to_s)
|
909
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('
|
911
|
+
local_var_path = local_var_path.sub('{' + downcase_first_letter('BorderType') + '}', request.border_type.to_s)
|
910
912
|
|
911
913
|
# query parameters
|
912
914
|
query_params = {}
|
@@ -4088,13 +4090,15 @@ module AsposeWordsCloud
|
|
4088
4090
|
raise ArgumentError, 'Missing the required parameter name when calling WordsApi.get_border' if @api_client.config.client_side_validation && request.name.nil?
|
4089
4091
|
# verify the required parameter 'node_path' is set
|
4090
4092
|
raise ArgumentError, 'Missing the required parameter node_path when calling WordsApi.get_border' if @api_client.config.client_side_validation && request.node_path.nil?
|
4091
|
-
# verify the required parameter '
|
4092
|
-
raise ArgumentError, 'Missing the required parameter
|
4093
|
+
# verify the required parameter 'border_type' is set
|
4094
|
+
raise ArgumentError, 'Missing the required parameter border_type when calling WordsApi.get_border' if @api_client.config.client_side_validation && request.border_type.nil?
|
4095
|
+
# verify enum value
|
4096
|
+
raise ArgumentError, 'invalid value for border_type, must be one of Bottom, Left, Right, Top, Horizontal, Vertical, DiagonalDown, DiagonalUp, None' if @api_client.config.client_side_validation && !['Bottom', 'Left', 'Right', 'Top', 'Horizontal', 'Vertical', 'DiagonalDown', 'DiagonalUp', 'None'].include?(request.border_type)
|
4093
4097
|
# resource path
|
4094
|
-
local_var_path = '/words/{name}/{nodePath}/borders/{
|
4098
|
+
local_var_path = '/words/{name}/{nodePath}/borders/{borderType}'
|
4095
4099
|
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
4096
4100
|
local_var_path = local_var_path.sub('{' + downcase_first_letter('NodePath') + '}', request.node_path.to_s)
|
4097
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('
|
4101
|
+
local_var_path = local_var_path.sub('{' + downcase_first_letter('BorderType') + '}', request.border_type.to_s)
|
4098
4102
|
|
4099
4103
|
# query parameters
|
4100
4104
|
query_params = {}
|
@@ -13169,13 +13173,15 @@ module AsposeWordsCloud
|
|
13169
13173
|
raise ArgumentError, 'Missing the required parameter border_properties when calling WordsApi.update_border' if @api_client.config.client_side_validation && request.border_properties.nil?
|
13170
13174
|
# verify the required parameter 'node_path' is set
|
13171
13175
|
raise ArgumentError, 'Missing the required parameter node_path when calling WordsApi.update_border' if @api_client.config.client_side_validation && request.node_path.nil?
|
13172
|
-
# verify the required parameter '
|
13173
|
-
raise ArgumentError, 'Missing the required parameter
|
13176
|
+
# verify the required parameter 'border_type' is set
|
13177
|
+
raise ArgumentError, 'Missing the required parameter border_type when calling WordsApi.update_border' if @api_client.config.client_side_validation && request.border_type.nil?
|
13178
|
+
# verify enum value
|
13179
|
+
raise ArgumentError, 'invalid value for border_type, must be one of Bottom, Left, Right, Top, Horizontal, Vertical, DiagonalDown, DiagonalUp, None' if @api_client.config.client_side_validation && !['Bottom', 'Left', 'Right', 'Top', 'Horizontal', 'Vertical', 'DiagonalDown', 'DiagonalUp', 'None'].include?(request.border_type)
|
13174
13180
|
# resource path
|
13175
|
-
local_var_path = '/words/{name}/{nodePath}/borders/{
|
13181
|
+
local_var_path = '/words/{name}/{nodePath}/borders/{borderType}'
|
13176
13182
|
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
13177
13183
|
local_var_path = local_var_path.sub('{' + downcase_first_letter('NodePath') + '}', request.node_path.to_s)
|
13178
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('
|
13184
|
+
local_var_path = local_var_path.sub('{' + downcase_first_letter('BorderType') + '}', request.border_type.to_s)
|
13179
13185
|
|
13180
13186
|
# query parameters
|
13181
13187
|
query_params = {}
|
@@ -14891,8 +14897,8 @@ module AsposeWordsCloud
|
|
14891
14897
|
raise ArgumentError, 'Incorrect request type' unless request.is_a? UploadFileRequest
|
14892
14898
|
|
14893
14899
|
@api_client.config.logger.debug 'Calling API: WordsApi.upload_file ...' if @api_client.config.debugging
|
14894
|
-
# verify the required parameter '
|
14895
|
-
raise ArgumentError, 'Missing the required parameter
|
14900
|
+
# verify the required parameter 'file_content' is set
|
14901
|
+
raise ArgumentError, 'Missing the required parameter file_content when calling WordsApi.upload_file' if @api_client.config.client_side_validation && request.file_content.nil?
|
14896
14902
|
# verify the required parameter 'path' is set
|
14897
14903
|
raise ArgumentError, 'Missing the required parameter path when calling WordsApi.upload_file' if @api_client.config.client_side_validation && request.path.nil?
|
14898
14904
|
# resource path
|
@@ -14916,7 +14922,7 @@ module AsposeWordsCloud
|
|
14916
14922
|
|
14917
14923
|
# form parameters
|
14918
14924
|
form_params = {}
|
14919
|
-
form_params[downcase_first_letter('
|
14925
|
+
form_params[downcase_first_letter('FileContent')] = request.file_content
|
14920
14926
|
|
14921
14927
|
# http body (model)
|
14922
14928
|
post_body = nil
|
@@ -31,18 +31,18 @@ module AsposeWordsCloud
|
|
31
31
|
|
32
32
|
# The error details
|
33
33
|
class ErrorDetails
|
34
|
-
# The request id
|
34
|
+
# The request id.
|
35
35
|
attr_accessor :request_id
|
36
36
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
37
|
+
# Error datetime.
|
38
|
+
attr_accessor :error_date_time
|
39
39
|
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
44
|
:'request_id' => :'RequestId',
|
45
|
-
:'
|
45
|
+
:'error_date_time' => :'ErrorDateTime'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -50,7 +50,7 @@ module AsposeWordsCloud
|
|
50
50
|
def self.swagger_types
|
51
51
|
{
|
52
52
|
:'request_id' => :'String',
|
53
|
-
:'
|
53
|
+
:'error_date_time' => :'DateTime'
|
54
54
|
}
|
55
55
|
end
|
56
56
|
|
@@ -66,8 +66,8 @@ module AsposeWordsCloud
|
|
66
66
|
self.request_id = attributes[:'RequestId']
|
67
67
|
end
|
68
68
|
|
69
|
-
if attributes.key?(:'
|
70
|
-
self.
|
69
|
+
if attributes.key?(:'ErrorDateTime')
|
70
|
+
self.error_date_time = attributes[:'ErrorDateTime']
|
71
71
|
end
|
72
72
|
|
73
73
|
end
|
@@ -76,8 +76,8 @@ module AsposeWordsCloud
|
|
76
76
|
# @return Array for valid properies with the reasons
|
77
77
|
def list_invalid_properties
|
78
78
|
invalid_properties = []
|
79
|
-
if @
|
80
|
-
invalid_properties.push("invalid value for '
|
79
|
+
if @error_date_time.nil?
|
80
|
+
invalid_properties.push("invalid value for 'error_date_time', error_date_time cannot be nil.")
|
81
81
|
end
|
82
82
|
|
83
83
|
return invalid_properties
|
@@ -86,7 +86,7 @@ module AsposeWordsCloud
|
|
86
86
|
# Check to see if the all the properties in the model are valid
|
87
87
|
# @return true if the model is valid
|
88
88
|
def valid?
|
89
|
-
return false if @
|
89
|
+
return false if @error_date_time.nil?
|
90
90
|
return true
|
91
91
|
end
|
92
92
|
|
@@ -96,7 +96,7 @@ module AsposeWordsCloud
|
|
96
96
|
return true if self.equal?(other)
|
97
97
|
self.class == other.class &&
|
98
98
|
request_id == other.request_id &&
|
99
|
-
|
99
|
+
error_date_time == other.error_date_time
|
100
100
|
end
|
101
101
|
|
102
102
|
# @see the `==` method
|
@@ -108,7 +108,7 @@ module AsposeWordsCloud
|
|
108
108
|
# Calculates hash code according to all attributes.
|
109
109
|
# @return [Fixnum] Hash code
|
110
110
|
def hash
|
111
|
-
[request_id,
|
111
|
+
[request_id, error_date_time].hash
|
112
112
|
end
|
113
113
|
|
114
114
|
# Builds the object from hash
|
@@ -36,8 +36,8 @@ module AsposeWordsCloud
|
|
36
36
|
attr_accessor :name
|
37
37
|
# Path to the node with border(node should be paragraph, cell or row).
|
38
38
|
attr_accessor :node_path
|
39
|
-
#
|
40
|
-
attr_accessor :
|
39
|
+
# Border type.
|
40
|
+
attr_accessor :border_type
|
41
41
|
# Original document folder.
|
42
42
|
attr_accessor :folder
|
43
43
|
# Original document storage.
|
@@ -57,7 +57,7 @@ module AsposeWordsCloud
|
|
57
57
|
# Initializes a new instance.
|
58
58
|
# @param name The document name.
|
59
59
|
# @param node_path Path to the node with border(node should be paragraph, cell or row).
|
60
|
-
# @param
|
60
|
+
# @param border_type Border type.
|
61
61
|
# @param folder Original document folder.
|
62
62
|
# @param storage Original document storage.
|
63
63
|
# @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
@@ -65,10 +65,10 @@ module AsposeWordsCloud
|
|
65
65
|
# @param dest_file_name Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
|
66
66
|
# @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
|
67
67
|
# @param revision_date_time The date and time to use for revisions.
|
68
|
-
def initialize(name, node_path,
|
68
|
+
def initialize(name, node_path, border_type, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
|
69
69
|
self.name = name
|
70
70
|
self.node_path = node_path
|
71
|
-
self.
|
71
|
+
self.border_type = border_type
|
72
72
|
self.folder = folder
|
73
73
|
self.storage = storage
|
74
74
|
self.load_encoding = load_encoding
|
@@ -36,8 +36,8 @@ module AsposeWordsCloud
|
|
36
36
|
attr_accessor :name
|
37
37
|
# Path to the node with border(node should be paragraph, cell or row).
|
38
38
|
attr_accessor :node_path
|
39
|
-
#
|
40
|
-
attr_accessor :
|
39
|
+
# Border type.
|
40
|
+
attr_accessor :border_type
|
41
41
|
# Original document folder.
|
42
42
|
attr_accessor :folder
|
43
43
|
# Original document storage.
|
@@ -51,15 +51,15 @@ module AsposeWordsCloud
|
|
51
51
|
# Initializes a new instance.
|
52
52
|
# @param name The document name.
|
53
53
|
# @param node_path Path to the node with border(node should be paragraph, cell or row).
|
54
|
-
# @param
|
54
|
+
# @param border_type Border type.
|
55
55
|
# @param folder Original document folder.
|
56
56
|
# @param storage Original document storage.
|
57
57
|
# @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
58
58
|
# @param password Password for opening an encrypted document.
|
59
|
-
def initialize(name, node_path,
|
59
|
+
def initialize(name, node_path, border_type, folder = nil, storage = nil, load_encoding = nil, password = nil)
|
60
60
|
self.name = name
|
61
61
|
self.node_path = node_path
|
62
|
-
self.
|
62
|
+
self.border_type = border_type
|
63
63
|
self.folder = folder
|
64
64
|
self.storage = storage
|
65
65
|
self.load_encoding = load_encoding
|
@@ -38,8 +38,8 @@ module AsposeWordsCloud
|
|
38
38
|
attr_accessor :border_properties
|
39
39
|
# Path to the node with border(node should be paragraph, cell or row).
|
40
40
|
attr_accessor :node_path
|
41
|
-
#
|
42
|
-
attr_accessor :
|
41
|
+
# Border type.
|
42
|
+
attr_accessor :border_type
|
43
43
|
# Original document folder.
|
44
44
|
attr_accessor :folder
|
45
45
|
# Original document storage.
|
@@ -60,7 +60,7 @@ module AsposeWordsCloud
|
|
60
60
|
# @param name The document name.
|
61
61
|
# @param border_properties Border properties.
|
62
62
|
# @param node_path Path to the node with border(node should be paragraph, cell or row).
|
63
|
-
# @param
|
63
|
+
# @param border_type Border type.
|
64
64
|
# @param folder Original document folder.
|
65
65
|
# @param storage Original document storage.
|
66
66
|
# @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
@@ -68,11 +68,11 @@ module AsposeWordsCloud
|
|
68
68
|
# @param dest_file_name Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
|
69
69
|
# @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
|
70
70
|
# @param revision_date_time The date and time to use for revisions.
|
71
|
-
def initialize(name, border_properties, node_path,
|
71
|
+
def initialize(name, border_properties, node_path, border_type, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
|
72
72
|
self.name = name
|
73
73
|
self.border_properties = border_properties
|
74
74
|
self.node_path = node_path
|
75
|
-
self.
|
75
|
+
self.border_type = border_type
|
76
76
|
self.folder = folder
|
77
77
|
self.storage = storage
|
78
78
|
self.load_encoding = load_encoding
|
@@ -33,7 +33,7 @@ module AsposeWordsCloud
|
|
33
33
|
class UploadFileRequest
|
34
34
|
|
35
35
|
# File to upload
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :file_content
|
37
37
|
# Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
|
38
38
|
attr_accessor :path
|
39
39
|
# Storage name
|
@@ -41,11 +41,11 @@ module AsposeWordsCloud
|
|
41
41
|
|
42
42
|
#
|
43
43
|
# Initializes a new instance.
|
44
|
-
# @param
|
44
|
+
# @param file_content File to upload
|
45
45
|
# @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
|
46
46
|
# @param storage_name Storage name
|
47
|
-
def initialize(
|
48
|
-
self.
|
47
|
+
def initialize(file_content, path, storage_name = nil)
|
48
|
+
self.file_content = file_content
|
49
49
|
self.path = path
|
50
50
|
self.storage_name = storage_name
|
51
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_words_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 19.
|
4
|
+
version: 19.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YaroslawEkimov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|