Skip to content

Commit cce8d13

Browse files
SDK regenerated by CI server [ci skip]
1 parent e01f2e7 commit cce8d13

File tree

7 files changed

+53
-47
lines changed

7 files changed

+53
-47
lines changed

lib/aspose_words_cloud/api/words_api.rb

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -900,13 +900,15 @@ def delete_border(request)
900900
raise ArgumentError, 'Missing the required parameter name when calling WordsApi.delete_border' if @api_client.config.client_side_validation && request.name.nil?
901901
# verify the required parameter 'node_path' is set
902902
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 'index' is set
904-
raise ArgumentError, 'Missing the required parameter index when calling WordsApi.delete_border' if @api_client.config.client_side_validation && request.index.nil?
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)
905907
# resource path
906-
local_var_path = '/words/{name}/{nodePath}/borders/{index}'
908+
local_var_path = '/words/{name}/{nodePath}/borders/{borderType}'
907909
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
908910
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('Index') + '}', request.index.to_s)
911+
local_var_path = local_var_path.sub('{' + downcase_first_letter('BorderType') + '}', request.border_type.to_s)
910912

911913
# query parameters
912914
query_params = {}
@@ -4088,13 +4090,15 @@ def get_border(request)
40884090
raise ArgumentError, 'Missing the required parameter name when calling WordsApi.get_border' if @api_client.config.client_side_validation && request.name.nil?
40894091
# verify the required parameter 'node_path' is set
40904092
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 'index' is set
4092-
raise ArgumentError, 'Missing the required parameter index when calling WordsApi.get_border' if @api_client.config.client_side_validation && request.index.nil?
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)
40934097
# resource path
4094-
local_var_path = '/words/{name}/{nodePath}/borders/{index}'
4098+
local_var_path = '/words/{name}/{nodePath}/borders/{borderType}'
40954099
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
40964100
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('Index') + '}', request.index.to_s)
4101+
local_var_path = local_var_path.sub('{' + downcase_first_letter('BorderType') + '}', request.border_type.to_s)
40984102

40994103
# query parameters
41004104
query_params = {}
@@ -13169,13 +13173,15 @@ def update_border(request)
1316913173
raise ArgumentError, 'Missing the required parameter border_properties when calling WordsApi.update_border' if @api_client.config.client_side_validation && request.border_properties.nil?
1317013174
# verify the required parameter 'node_path' is set
1317113175
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 'index' is set
13173-
raise ArgumentError, 'Missing the required parameter index when calling WordsApi.update_border' if @api_client.config.client_side_validation && request.index.nil?
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)
1317413180
# resource path
13175-
local_var_path = '/words/{name}/{nodePath}/borders/{index}'
13181+
local_var_path = '/words/{name}/{nodePath}/borders/{borderType}'
1317613182
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
1317713183
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('Index') + '}', request.index.to_s)
13184+
local_var_path = local_var_path.sub('{' + downcase_first_letter('BorderType') + '}', request.border_type.to_s)
1317913185

1318013186
# query parameters
1318113187
query_params = {}
@@ -14891,8 +14897,8 @@ def upload_file(request)
1489114897
raise ArgumentError, 'Incorrect request type' unless request.is_a? UploadFileRequest
1489214898

1489314899
@api_client.config.logger.debug 'Calling API: WordsApi.upload_file ...' if @api_client.config.debugging
14894-
# verify the required parameter 'file' is set
14895-
raise ArgumentError, 'Missing the required parameter file when calling WordsApi.upload_file' if @api_client.config.client_side_validation && request.file.nil?
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?
1489614902
# verify the required parameter 'path' is set
1489714903
raise ArgumentError, 'Missing the required parameter path when calling WordsApi.upload_file' if @api_client.config.client_side_validation && request.path.nil?
1489814904
# resource path
@@ -14916,7 +14922,7 @@ def upload_file(request)
1491614922

1491714923
# form parameters
1491814924
form_params = {}
14919-
form_params[downcase_first_letter('File')] = request.file
14925+
form_params[downcase_first_letter('FileContent')] = request.file_content
1492014926

1492114927
# http body (model)
1492214928
post_body = nil

lib/aspose_words_cloud/models/error_details.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,26 @@ module AsposeWordsCloud
3131

3232
# The error details
3333
class ErrorDetails
34-
# The request id
34+
# The request id.
3535
attr_accessor :request_id
3636

37-
# Date
38-
attr_accessor :date
37+
# Error datetime.
38+
attr_accessor :error_date_time
3939

4040

4141
# Attribute mapping from ruby-style variable name to JSON key.
4242
def self.attribute_map
4343
{
4444
:'request_id' => :'RequestId',
45-
:'date' => :'Date'
45+
:'error_date_time' => :'ErrorDateTime'
4646
}
4747
end
4848

4949
# Attribute type mapping.
5050
def self.swagger_types
5151
{
5252
:'request_id' => :'String',
53-
:'date' => :'DateTime'
53+
:'error_date_time' => :'DateTime'
5454
}
5555
end
5656

@@ -66,8 +66,8 @@ def initialize(attributes = {})
6666
self.request_id = attributes[:'RequestId']
6767
end
6868

69-
if attributes.key?(:'Date')
70-
self.date = attributes[:'Date']
69+
if attributes.key?(:'ErrorDateTime')
70+
self.error_date_time = attributes[:'ErrorDateTime']
7171
end
7272

7373
end
@@ -76,8 +76,8 @@ def initialize(attributes = {})
7676
# @return Array for valid properies with the reasons
7777
def list_invalid_properties
7878
invalid_properties = []
79-
if @date.nil?
80-
invalid_properties.push("invalid value for 'date', date cannot be nil.")
79+
if @error_date_time.nil?
80+
invalid_properties.push("invalid value for 'error_date_time', error_date_time cannot be nil.")
8181
end
8282

8383
return invalid_properties
@@ -86,7 +86,7 @@ def list_invalid_properties
8686
# Check to see if the all the properties in the model are valid
8787
# @return true if the model is valid
8888
def valid?
89-
return false if @date.nil?
89+
return false if @error_date_time.nil?
9090
return true
9191
end
9292

@@ -96,7 +96,7 @@ def ==(other)
9696
return true if self.equal?(other)
9797
self.class == other.class &&
9898
request_id == other.request_id &&
99-
date == other.date
99+
error_date_time == other.error_date_time
100100
end
101101

102102
# @see the `==` method
@@ -108,7 +108,7 @@ def eql?(other)
108108
# Calculates hash code according to all attributes.
109109
# @return [Fixnum] Hash code
110110
def hash
111-
[request_id, date].hash
111+
[request_id, error_date_time].hash
112112
end
113113

114114
# Builds the object from hash

lib/aspose_words_cloud/models/requests/DeleteBorderRequest.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class DeleteBorderRequest
3636
attr_accessor :name
3737
# Path to the node with border(node should be paragraph, cell or row).
3838
attr_accessor :node_path
39-
# Object index.
40-
attr_accessor :index
39+
# Border type.
40+
attr_accessor :border_type
4141
# Original document folder.
4242
attr_accessor :folder
4343
# Original document storage.
@@ -57,18 +57,18 @@ class DeleteBorderRequest
5757
# Initializes a new instance.
5858
# @param name The document name.
5959
# @param node_path Path to the node with border(node should be paragraph, cell or row).
60-
# @param index Object index.
60+
# @param border_type Border type.
6161
# @param folder Original document folder.
6262
# @param storage Original document storage.
6363
# @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
6464
# @param password Password for opening an encrypted document.
6565
# @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.
6666
# @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.
6767
# @param revision_date_time The date and time to use for revisions.
68-
def initialize(name, node_path, index, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
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)
6969
self.name = name
7070
self.node_path = node_path
71-
self.index = index
71+
self.border_type = border_type
7272
self.folder = folder
7373
self.storage = storage
7474
self.load_encoding = load_encoding

lib/aspose_words_cloud/models/requests/GetBorderRequest.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class GetBorderRequest
3636
attr_accessor :name
3737
# Path to the node with border(node should be paragraph, cell or row).
3838
attr_accessor :node_path
39-
# Object index.
40-
attr_accessor :index
39+
# Border type.
40+
attr_accessor :border_type
4141
# Original document folder.
4242
attr_accessor :folder
4343
# Original document storage.
@@ -51,15 +51,15 @@ class GetBorderRequest
5151
# Initializes a new instance.
5252
# @param name The document name.
5353
# @param node_path Path to the node with border(node should be paragraph, cell or row).
54-
# @param index Object index.
54+
# @param border_type Border type.
5555
# @param folder Original document folder.
5656
# @param storage Original document storage.
5757
# @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
5858
# @param password Password for opening an encrypted document.
59-
def initialize(name, node_path, index, folder = nil, storage = nil, load_encoding = nil, password = nil)
59+
def initialize(name, node_path, border_type, folder = nil, storage = nil, load_encoding = nil, password = nil)
6060
self.name = name
6161
self.node_path = node_path
62-
self.index = index
62+
self.border_type = border_type
6363
self.folder = folder
6464
self.storage = storage
6565
self.load_encoding = load_encoding

lib/aspose_words_cloud/models/requests/UpdateBorderRequest.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class UpdateBorderRequest
3838
attr_accessor :border_properties
3939
# Path to the node with border(node should be paragraph, cell or row).
4040
attr_accessor :node_path
41-
# Object index.
42-
attr_accessor :index
41+
# Border type.
42+
attr_accessor :border_type
4343
# Original document folder.
4444
attr_accessor :folder
4545
# Original document storage.
@@ -60,19 +60,19 @@ class UpdateBorderRequest
6060
# @param name The document name.
6161
# @param border_properties Border properties.
6262
# @param node_path Path to the node with border(node should be paragraph, cell or row).
63-
# @param index Object index.
63+
# @param border_type Border type.
6464
# @param folder Original document folder.
6565
# @param storage Original document storage.
6666
# @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
6767
# @param password Password for opening an encrypted document.
6868
# @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.
6969
# @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.
7070
# @param revision_date_time The date and time to use for revisions.
71-
def initialize(name, border_properties, node_path, index, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
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)
7272
self.name = name
7373
self.border_properties = border_properties
7474
self.node_path = node_path
75-
self.index = index
75+
self.border_type = border_type
7676
self.folder = folder
7777
self.storage = storage
7878
self.load_encoding = load_encoding

lib/aspose_words_cloud/models/requests/UploadFileRequest.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ module AsposeWordsCloud
3333
class UploadFileRequest
3434

3535
# File to upload
36-
attr_accessor :file
36+
attr_accessor :file_content
3737
# 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.
3838
attr_accessor :path
3939
# Storage name
4040
attr_accessor :storage_name
4141

4242
#
4343
# Initializes a new instance.
44-
# @param file File to upload
44+
# @param file_content File to upload
4545
# @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.
4646
# @param storage_name Storage name
47-
def initialize(file, path, storage_name = nil)
48-
self.file = file
47+
def initialize(file_content, path, storage_name = nil)
48+
self.file_content = file_content
4949
self.path = path
5050
self.storage_name = storage_name
5151
end

lib/aspose_words_cloud/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
# --------------------------------------------------------------------------------------------------------------------
2626
#
2727
module AsposeWordsCloud
28-
VERSION = "19.10.0".freeze
28+
VERSION = "19.12.0".freeze
2929
end

0 commit comments

Comments
 (0)