aspose_words_cloud 19.9.0 → 19.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa8aefaf0f60691baf044062f6f2224c4be2a83dc87018e6e1f378b9fa2d7ceb
4
- data.tar.gz: 25bbcb9e8fe254b8a54e78f3dcbab7c67fc0ece518bb5f4b01c2910b1cc23b64
3
+ metadata.gz: c48039afeed21b1974135ba8d02d9cf4a87a171f91d0258e11a99ca3c96676bc
4
+ data.tar.gz: 0f5e0dac06aee9411c0ade9d64c3cfb6441d65d6b7a22ba8ddb317aba44aad21
5
5
  SHA512:
6
- metadata.gz: b378fe616d52e4500112755f3104c780275bb9ac985fa82400bacf01b85f9cc20bf8f02b5d30b43162791810d5d3ee6b170f37c996fa3f9ecf836169e8349b34
7
- data.tar.gz: ae38992102fbe4561fca12ba521cb5c1516a5d06f0f10960199dfc8c3a04c49aa80325b723c92bfc142ac656730e43ee4fdd64001287d9eb308a078c273b47bf
6
+ metadata.gz: ee84be5853c0b0f37817f110a273509c8060ec09fa9b81c620cbb06efc86440a4e021392e4efcf5acc40f01b0b8063baceda0bb9c39dcec5d5afe8923f6bdd32
7
+ data.tar.gz: 10339c3eae1a1a69dd70ca8c855d3debe52be7b08da9755b812a132603a36d518fb483989564ceaaa4f7c5b4e57103106d840420f9c925b45379d81ba2b50015
@@ -149,7 +149,6 @@ require_relative 'aspose_words_cloud/models/save_response'
149
149
  require_relative 'aspose_words_cloud/models/search_response'
150
150
  require_relative 'aspose_words_cloud/models/search_results_collection'
151
151
  require_relative 'aspose_words_cloud/models/section'
152
- require_relative 'aspose_words_cloud/models/section_link'
153
152
  require_relative 'aspose_words_cloud/models/section_link_collection'
154
153
  require_relative 'aspose_words_cloud/models/section_link_collection_response'
155
154
  require_relative 'aspose_words_cloud/models/section_page_setup_response'
@@ -189,6 +188,7 @@ require_relative 'aspose_words_cloud/models/pcl_save_options_data'
189
188
  require_relative 'aspose_words_cloud/models/pdf_save_options_data'
190
189
  require_relative 'aspose_words_cloud/models/ps_save_options_data'
191
190
  require_relative 'aspose_words_cloud/models/run_link'
191
+ require_relative 'aspose_words_cloud/models/section_link'
192
192
  require_relative 'aspose_words_cloud/models/svg_save_options_data'
193
193
  require_relative 'aspose_words_cloud/models/table'
194
194
  require_relative 'aspose_words_cloud/models/table_cell'
@@ -878,7 +878,7 @@ module AsposeWordsCloud
878
878
  end
879
879
 
880
880
  # Resets border properties to default values.
881
- # 'nodePath' should refer to node with cell or row.
881
+ # 'nodePath' should refer to paragraph, cell or row.
882
882
  # @param request DeleteBorderRequest
883
883
  # @return [BorderResponse]
884
884
  def delete_border(request)
@@ -888,7 +888,7 @@ module AsposeWordsCloud
888
888
  end
889
889
 
890
890
  # Resets border properties to default values.
891
- # 'nodePath' should refer to node with cell or row.
891
+ # 'nodePath' should refer to paragraph, cell or row.
892
892
  # @param request DeleteBorderRequest
893
893
  # @return [Array<(BorderResponse, Fixnum, Hash)>]
894
894
  # BorderResponse data, response status code and response headers
@@ -974,7 +974,7 @@ module AsposeWordsCloud
974
974
  end
975
975
 
976
976
  # Resets borders properties to default values.
977
- # 'nodePath' should refer to node with cell or row.
977
+ # 'nodePath' should refer to paragraph, cell or row.
978
978
  # @param request DeleteBordersRequest
979
979
  # @return [BordersResponse]
980
980
  def delete_borders(request)
@@ -984,7 +984,7 @@ module AsposeWordsCloud
984
984
  end
985
985
 
986
986
  # Resets borders properties to default values.
987
- # &#39;nodePath&#39; should refer to node with cell or row.
987
+ # &#39;nodePath&#39; should refer to paragraph, cell or row.
988
988
  # @param request DeleteBordersRequest
989
989
  # @return [Array<(BordersResponse, Fixnum, Hash)>]
990
990
  # BordersResponse data, response status code and response headers
@@ -3057,6 +3057,98 @@ module AsposeWordsCloud
3057
3057
  [data, status_code, headers]
3058
3058
  end
3059
3059
 
3060
+ # Removes section from document.
3061
+ #
3062
+ # @param request DeleteSectionRequest
3063
+ # @return [nil]
3064
+ def delete_section(request)
3065
+ data, _status_code, _headers = delete_section_with_http_info(request)
3066
+ request_token if _status_code == 401
3067
+ nil
3068
+ end
3069
+
3070
+ # Removes section from document.
3071
+ #
3072
+ # @param request DeleteSectionRequest
3073
+ # @return [Array<(nil, Fixnum, Hash)>]
3074
+ # nil, response status code and response headers
3075
+ private def delete_section_with_http_info(request)
3076
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? DeleteSectionRequest
3077
+
3078
+ @api_client.config.logger.debug 'Calling API: WordsApi.delete_section ...' if @api_client.config.debugging
3079
+ # verify the required parameter 'name' is set
3080
+ raise ArgumentError, 'Missing the required parameter name when calling WordsApi.delete_section' if @api_client.config.client_side_validation && request.name.nil?
3081
+ # verify the required parameter 'section_index' is set
3082
+ raise ArgumentError, 'Missing the required parameter section_index when calling WordsApi.delete_section' if @api_client.config.client_side_validation && request.section_index.nil?
3083
+ # resource path
3084
+ local_var_path = '/words/{name}/sections/{sectionIndex}'
3085
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
3086
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('SectionIndex') + '}', request.section_index.to_s)
3087
+
3088
+ # query parameters
3089
+ query_params = {}
3090
+ if local_var_path.include? downcase_first_letter('Folder')
3091
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
3092
+ else
3093
+ query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
3094
+ end
3095
+ if local_var_path.include? downcase_first_letter('Storage')
3096
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
3097
+ else
3098
+ query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
3099
+ end
3100
+ if local_var_path.include? downcase_first_letter('LoadEncoding')
3101
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('LoadEncoding') + '}', request.load_encoding.to_s)
3102
+ else
3103
+ query_params[downcase_first_letter('LoadEncoding')] = request.load_encoding unless request.load_encoding.nil?
3104
+ end
3105
+ if local_var_path.include? downcase_first_letter('Password')
3106
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
3107
+ else
3108
+ query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
3109
+ end
3110
+ if local_var_path.include? downcase_first_letter('DestFileName')
3111
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('DestFileName') + '}', request.dest_file_name.to_s)
3112
+ else
3113
+ query_params[downcase_first_letter('DestFileName')] = request.dest_file_name unless request.dest_file_name.nil?
3114
+ end
3115
+ if local_var_path.include? downcase_first_letter('RevisionAuthor')
3116
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('RevisionAuthor') + '}', request.revision_author.to_s)
3117
+ else
3118
+ query_params[downcase_first_letter('RevisionAuthor')] = request.revision_author unless request.revision_author.nil?
3119
+ end
3120
+ if local_var_path.include? downcase_first_letter('RevisionDateTime')
3121
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('RevisionDateTime') + '}', request.revision_date_time.to_s)
3122
+ else
3123
+ query_params[downcase_first_letter('RevisionDateTime')] = request.revision_date_time unless request.revision_date_time.nil?
3124
+ end
3125
+
3126
+ # header parameters
3127
+ header_params = {}
3128
+ # HTTP header 'Accept' (if needed)
3129
+ header_params['Accept'] = @api_client.select_header_accept(['application/xml', 'application/json'])
3130
+ # HTTP header 'Content-Type'
3131
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/xml', 'application/json'])
3132
+
3133
+ # form parameters
3134
+ form_params = {}
3135
+
3136
+ # http body (model)
3137
+ post_body = nil
3138
+ auth_names = ['JWT']
3139
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
3140
+ header_params: header_params,
3141
+ query_params: query_params,
3142
+ form_params: form_params,
3143
+ body: post_body,
3144
+ auth_names: auth_names)
3145
+ if @api_client.config.debugging
3146
+ @api_client.config.logger.debug "API called:
3147
+ WordsApi#delete_section\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3148
+ end
3149
+ [data, status_code, headers]
3150
+ end
3151
+
3060
3152
  # Deletes a table.
3061
3153
  #
3062
3154
  # @param request DeleteTableRequest
@@ -3974,7 +4066,7 @@ module AsposeWordsCloud
3974
4066
  end
3975
4067
 
3976
4068
  # Returns a border.
3977
- # 'nodePath' should refer to node with cell or row.
4069
+ # 'nodePath' should refer to paragraph, cell or row.
3978
4070
  # @param request GetBorderRequest
3979
4071
  # @return [BorderResponse]
3980
4072
  def get_border(request)
@@ -3984,7 +4076,7 @@ module AsposeWordsCloud
3984
4076
  end
3985
4077
 
3986
4078
  # Returns a border.
3987
- # &#39;nodePath&#39; should refer to node with cell or row.
4079
+ # &#39;nodePath&#39; should refer to paragraph, cell or row.
3988
4080
  # @param request GetBorderRequest
3989
4081
  # @return [Array<(BorderResponse, Fixnum, Hash)>]
3990
4082
  # BorderResponse data, response status code and response headers
@@ -4055,7 +4147,7 @@ module AsposeWordsCloud
4055
4147
  end
4056
4148
 
4057
4149
  # Returns a collection of borders.
4058
- # 'nodePath' should refer to node with cell or row.
4150
+ # 'nodePath' should refer to paragraph, cell or row.
4059
4151
  # @param request GetBordersRequest
4060
4152
  # @return [BordersResponse]
4061
4153
  def get_borders(request)
@@ -4065,7 +4157,7 @@ module AsposeWordsCloud
4065
4157
  end
4066
4158
 
4067
4159
  # Returns a collection of borders.
4068
- # &#39;nodePath&#39; should refer to node with cell or row.
4160
+ # &#39;nodePath&#39; should refer to paragraph, cell or row.
4069
4161
  # @param request GetBordersRequest
4070
4162
  # @return [Array<(BordersResponse, Fixnum, Hash)>]
4071
4163
  # BordersResponse data, response status code and response headers
@@ -13053,7 +13145,7 @@ module AsposeWordsCloud
13053
13145
  end
13054
13146
 
13055
13147
  # Updates border properties.
13056
- # 'nodePath' should refer to node with cell or row.
13148
+ # 'nodePath' should refer to paragraph, cell or row.
13057
13149
  # @param request UpdateBorderRequest
13058
13150
  # @return [BorderResponse]
13059
13151
  def update_border(request)
@@ -13063,7 +13155,7 @@ module AsposeWordsCloud
13063
13155
  end
13064
13156
 
13065
13157
  # Updates border properties.
13066
- # &#39;nodePath&#39; should refer to node with cell or row.
13158
+ # &#39;nodePath&#39; should refer to paragraph, cell or row.
13067
13159
  # @param request UpdateBorderRequest
13068
13160
  # @return [Array<(BorderResponse, Fixnum, Hash)>]
13069
13161
  # BorderResponse data, response status code and response headers
@@ -58,6 +58,9 @@ module AsposeWordsCloud
58
58
  # Gets or sets a value determining if fields should be updated before saving the document to a fixed page format. Default value for this property is. true
59
59
  attr_accessor :update_fields
60
60
 
61
+ # Gets or sets When false, small metafiles are not compressed for performance reason. Default value is true, all metafiles are compressed regardless of its size.
62
+ attr_accessor :always_compress_metafiles
63
+
61
64
  # Gets or sets password.
62
65
  attr_accessor :password
63
66
 
@@ -80,6 +83,7 @@ module AsposeWordsCloud
80
83
  :'update_last_saved_time_property' => :'UpdateLastSavedTimeProperty',
81
84
  :'update_sdt_content' => :'UpdateSdtContent',
82
85
  :'update_fields' => :'UpdateFields',
86
+ :'always_compress_metafiles' => :'AlwaysCompressMetafiles',
83
87
  :'password' => :'Password',
84
88
  :'save_picture_bullet' => :'SavePictureBullet',
85
89
  :'save_routing_slip' => :'SaveRoutingSlip'
@@ -98,6 +102,7 @@ module AsposeWordsCloud
98
102
  :'update_last_saved_time_property' => :'BOOLEAN',
99
103
  :'update_sdt_content' => :'BOOLEAN',
100
104
  :'update_fields' => :'BOOLEAN',
105
+ :'always_compress_metafiles' => :'BOOLEAN',
101
106
  :'password' => :'String',
102
107
  :'save_picture_bullet' => :'BOOLEAN',
103
108
  :'save_routing_slip' => :'BOOLEAN'
@@ -148,6 +153,10 @@ module AsposeWordsCloud
148
153
  self.update_fields = attributes[:'UpdateFields']
149
154
  end
150
155
 
156
+ if attributes.key?(:'AlwaysCompressMetafiles')
157
+ self.always_compress_metafiles = attributes[:'AlwaysCompressMetafiles']
158
+ end
159
+
151
160
  if attributes.key?(:'Password')
152
161
  self.password = attributes[:'Password']
153
162
  end
@@ -189,6 +198,7 @@ module AsposeWordsCloud
189
198
  update_last_saved_time_property == other.update_last_saved_time_property &&
190
199
  update_sdt_content == other.update_sdt_content &&
191
200
  update_fields == other.update_fields &&
201
+ always_compress_metafiles == other.always_compress_metafiles &&
192
202
  password == other.password &&
193
203
  save_picture_bullet == other.save_picture_bullet &&
194
204
  save_routing_slip == other.save_routing_slip
@@ -203,7 +213,7 @@ module AsposeWordsCloud
203
213
  # Calculates hash code according to all attributes.
204
214
  # @return [Fixnum] Hash code
205
215
  def hash
206
- [color_mode, save_format, file_name, dml_rendering_mode, dml_effects_rendering_mode, zip_output, update_last_saved_time_property, update_sdt_content, update_fields, password, save_picture_bullet, save_routing_slip].hash
216
+ [color_mode, save_format, file_name, dml_rendering_mode, dml_effects_rendering_mode, zip_output, update_last_saved_time_property, update_sdt_content, update_fields, always_compress_metafiles, password, save_picture_bullet, save_routing_slip].hash
207
217
  end
208
218
 
209
219
  # Builds the object from hash
@@ -37,6 +37,9 @@ module AsposeWordsCloud
37
37
  # Gets or sets paragraph's text.
38
38
  attr_accessor :type
39
39
 
40
+ # Gets or sets child nodes.
41
+ attr_accessor :child_nodes
42
+
40
43
  # Gets or sets link to DrawingObjects resource.
41
44
  attr_accessor :drawing_objects
42
45
 
@@ -70,6 +73,7 @@ module AsposeWordsCloud
70
73
  {
71
74
  :'link' => :'link',
72
75
  :'type' => :'Type',
76
+ :'child_nodes' => :'ChildNodes',
73
77
  :'drawing_objects' => :'DrawingObjects',
74
78
  :'paragraphs' => :'Paragraphs'
75
79
  }
@@ -80,6 +84,7 @@ module AsposeWordsCloud
80
84
  {
81
85
  :'link' => :'WordsApiLink',
82
86
  :'type' => :'String',
87
+ :'child_nodes' => :'Array<NodeLink>',
83
88
  :'drawing_objects' => :'LinkElement',
84
89
  :'paragraphs' => :'LinkElement'
85
90
  }
@@ -101,6 +106,12 @@ module AsposeWordsCloud
101
106
  self.type = attributes[:'Type']
102
107
  end
103
108
 
109
+ if attributes.key?(:'ChildNodes')
110
+ if (value = attributes[:'ChildNodes']).is_a?(Array)
111
+ self.child_nodes = value
112
+ end
113
+ end
114
+
104
115
  if attributes.key?(:'DrawingObjects')
105
116
  self.drawing_objects = attributes[:'DrawingObjects']
106
117
  end
@@ -147,6 +158,7 @@ module AsposeWordsCloud
147
158
  self.class == other.class &&
148
159
  link == other.link &&
149
160
  type == other.type &&
161
+ child_nodes == other.child_nodes &&
150
162
  drawing_objects == other.drawing_objects &&
151
163
  paragraphs == other.paragraphs
152
164
  end
@@ -160,7 +172,7 @@ module AsposeWordsCloud
160
172
  # Calculates hash code according to all attributes.
161
173
  # @return [Fixnum] Hash code
162
174
  def hash
163
- [link, type, drawing_objects, paragraphs].hash
175
+ [link, type, child_nodes, drawing_objects, paragraphs].hash
164
176
  end
165
177
 
166
178
  # Builds the object from hash
@@ -52,6 +52,9 @@ module AsposeWordsCloud
52
52
  # Gets or sets the value (in points) for a first line or hanging indent. Use a positive value to set a first-line indent, and use a negative value to set a hanging indent.
53
53
  attr_accessor :first_line_indent
54
54
 
55
+ # Gets or sets True when the paragraph is an item in a bulleted or numbered list.
56
+ attr_accessor :is_list_item
57
+
55
58
  # Gets or sets true if all lines in the paragraph are to remain on the same page.
56
59
  attr_accessor :keep_together
57
60
 
@@ -141,6 +144,7 @@ module AsposeWordsCloud
141
144
  :'bidi' => :'Bidi',
142
145
  :'drop_cap_position' => :'DropCapPosition',
143
146
  :'first_line_indent' => :'FirstLineIndent',
147
+ :'is_list_item' => :'IsListItem',
144
148
  :'keep_together' => :'KeepTogether',
145
149
  :'keep_with_next' => :'KeepWithNext',
146
150
  :'left_indent' => :'LeftIndent',
@@ -173,6 +177,7 @@ module AsposeWordsCloud
173
177
  :'bidi' => :'BOOLEAN',
174
178
  :'drop_cap_position' => :'String',
175
179
  :'first_line_indent' => :'Float',
180
+ :'is_list_item' => :'BOOLEAN',
176
181
  :'keep_together' => :'BOOLEAN',
177
182
  :'keep_with_next' => :'BOOLEAN',
178
183
  :'left_indent' => :'Float',
@@ -231,6 +236,10 @@ module AsposeWordsCloud
231
236
  self.first_line_indent = attributes[:'FirstLineIndent']
232
237
  end
233
238
 
239
+ if attributes.key?(:'IsListItem')
240
+ self.is_list_item = attributes[:'IsListItem']
241
+ end
242
+
234
243
  if attributes.key?(:'KeepTogether')
235
244
  self.keep_together = attributes[:'KeepTogether']
236
245
  end
@@ -414,6 +423,7 @@ module AsposeWordsCloud
414
423
  bidi == other.bidi &&
415
424
  drop_cap_position == other.drop_cap_position &&
416
425
  first_line_indent == other.first_line_indent &&
426
+ is_list_item == other.is_list_item &&
417
427
  keep_together == other.keep_together &&
418
428
  keep_with_next == other.keep_with_next &&
419
429
  left_indent == other.left_indent &&
@@ -444,7 +454,7 @@ module AsposeWordsCloud
444
454
  # Calculates hash code according to all attributes.
445
455
  # @return [Fixnum] Hash code
446
456
  def hash
447
- [link, add_space_between_far_east_and_alpha, add_space_between_far_east_and_digit, alignment, bidi, drop_cap_position, first_line_indent, keep_together, keep_with_next, left_indent, line_spacing, line_spacing_rule, lines_to_drop, no_space_between_paragraphs_of_same_style, outline_level, page_break_before, right_indent, space_after, space_after_auto, space_before, space_before_auto, style_identifier, style_name, suppress_auto_hyphens, suppress_line_numbers, widow_control].hash
457
+ [link, add_space_between_far_east_and_alpha, add_space_between_far_east_and_digit, alignment, bidi, drop_cap_position, first_line_indent, is_list_item, keep_together, keep_with_next, left_indent, line_spacing, line_spacing_rule, lines_to_drop, no_space_between_paragraphs_of_same_style, outline_level, page_break_before, right_indent, space_after, space_after_auto, space_before, space_before_auto, style_identifier, style_name, suppress_auto_hyphens, suppress_line_numbers, widow_control].hash
448
458
  end
449
459
 
450
460
  # Builds the object from hash
@@ -34,18 +34,44 @@ module AsposeWordsCloud
34
34
  # Gets or sets range's text.
35
35
  attr_accessor :text
36
36
 
37
+ # Gets or sets range's text type.
38
+ attr_accessor :text_type
39
+
40
+ class EnumAttributeValidator
41
+ attr_reader :datatype
42
+ attr_reader :allowable_values
43
+
44
+ def initialize(datatype, allowable_values)
45
+ @allowable_values = allowable_values.map do |value|
46
+ case datatype.to_s
47
+ when /Integer/i
48
+ value.to_i
49
+ when /Float/i
50
+ value.to_f
51
+ else
52
+ value
53
+ end
54
+ end
55
+ end
56
+
57
+ def valid?(value)
58
+ !value || allowable_values.include?(value)
59
+ end
60
+ end
37
61
 
38
62
  # Attribute mapping from ruby-style variable name to JSON key.
39
63
  def self.attribute_map
40
64
  {
41
- :'text' => :'Text'
65
+ :'text' => :'Text',
66
+ :'text_type' => :'TextType'
42
67
  }
43
68
  end
44
69
 
45
70
  # Attribute type mapping.
46
71
  def self.swagger_types
47
72
  {
48
- :'text' => :'String'
73
+ :'text' => :'String',
74
+ :'text_type' => :'String'
49
75
  }
50
76
  end
51
77
 
@@ -61,6 +87,10 @@ module AsposeWordsCloud
61
87
  self.text = attributes[:'Text']
62
88
  end
63
89
 
90
+ if attributes.key?(:'TextType')
91
+ self.text_type = attributes[:'TextType']
92
+ end
93
+
64
94
  end
65
95
 
66
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -73,15 +103,32 @@ module AsposeWordsCloud
73
103
  # Check to see if the all the properties in the model are valid
74
104
  # @return true if the model is valid
75
105
  def valid?
106
+ text_type_validator = EnumAttributeValidator.new('String', ["Text", "Html"])
107
+ return false unless text_type_validator.valid?(@text_type)
76
108
  return true
77
109
  end
78
110
 
111
+ # Custom attribute writer method checking allowed values (enum).
112
+ # @param [Object] text_type Object to be assigned
113
+ def text_type=(text_type)
114
+ validator = EnumAttributeValidator.new('String', ["Text", "Html"])
115
+ if text_type.to_i == 0
116
+ unless validator.valid?(text_type)
117
+ raise ArgumentError, "invalid value for 'text_type', must be one of #{validator.allowable_values}."
118
+ end
119
+ @text_type = text_type
120
+ else
121
+ @text_type = validator.allowable_values[text_type.to_i]
122
+ end
123
+ end
124
+
79
125
  # Checks equality by comparing each attribute.
80
126
  # @param [Object] Object to be compared
81
127
  def ==(other)
82
128
  return true if self.equal?(other)
83
129
  self.class == other.class &&
84
- text == other.text
130
+ text == other.text &&
131
+ text_type == other.text_type
85
132
  end
86
133
 
87
134
  # @see the `==` method
@@ -93,7 +140,7 @@ module AsposeWordsCloud
93
140
  # Calculates hash code according to all attributes.
94
141
  # @return [Fixnum] Hash code
95
142
  def hash
96
- [text].hash
143
+ [text, text_type].hash
97
144
  end
98
145
 
99
146
  # Builds the object from hash
@@ -34,7 +34,7 @@ module AsposeWordsCloud
34
34
 
35
35
  # The document name.
36
36
  attr_accessor :name
37
- # Path to the node with border(node should be cell or row).
37
+ # Path to the node with border(node should be paragraph, cell or row).
38
38
  attr_accessor :node_path
39
39
  # Object index.
40
40
  attr_accessor :index
@@ -56,7 +56,7 @@ module AsposeWordsCloud
56
56
  #
57
57
  # Initializes a new instance.
58
58
  # @param name The document name.
59
- # @param node_path Path to the node with border(node should be cell or row).
59
+ # @param node_path Path to the node with border(node should be paragraph, cell or row).
60
60
  # @param index Object index.
61
61
  # @param folder Original document folder.
62
62
  # @param storage Original document storage.
@@ -34,7 +34,7 @@ module AsposeWordsCloud
34
34
 
35
35
  # The document name.
36
36
  attr_accessor :name
37
- # Path to the node with borders(node should be cell or row).
37
+ # Path to the node with borders(node should be paragraph, cell or row).
38
38
  attr_accessor :node_path
39
39
  # Original document folder.
40
40
  attr_accessor :folder
@@ -54,7 +54,7 @@ module AsposeWordsCloud
54
54
  #
55
55
  # Initializes a new instance.
56
56
  # @param name The document name.
57
- # @param node_path Path to the node with borders(node should be cell or row).
57
+ # @param node_path Path to the node with borders(node should be paragraph, cell or row).
58
58
  # @param folder Original document folder.
59
59
  # @param storage Original document storage.
60
60
  # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
@@ -0,0 +1,77 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="DeleteSectionRequest.rb">
4
+ # Copyright (c) 2019 Aspose.Words for Cloud
5
+ # </copyright>
6
+ # <summary>
7
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ # of this software and associated documentation files (the "Software"), to deal
9
+ # in the Software without restriction, including without limitation the rights
10
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ # copies of the Software, and to permit persons to whom the Software is
12
+ # furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in all
15
+ # copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ # SOFTWARE.
24
+ # </summary>
25
+ # --------------------------------------------------------------------------------------------------------------------
26
+ #
27
+
28
+ module AsposeWordsCloud
29
+
30
+ #
31
+ # Request model for delete_section operation.
32
+ #
33
+ class DeleteSectionRequest
34
+
35
+ # The document name.
36
+ attr_accessor :name
37
+ # Section index.
38
+ attr_accessor :section_index
39
+ # Original document folder.
40
+ attr_accessor :folder
41
+ # Original document storage.
42
+ attr_accessor :storage
43
+ # Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
44
+ attr_accessor :load_encoding
45
+ # Password for opening an encrypted document.
46
+ attr_accessor :password
47
+ # 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.
48
+ attr_accessor :dest_file_name
49
+ # 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.
50
+ attr_accessor :revision_author
51
+ # The date and time to use for revisions.
52
+ attr_accessor :revision_date_time
53
+
54
+ #
55
+ # Initializes a new instance.
56
+ # @param name The document name.
57
+ # @param section_index Section index.
58
+ # @param folder Original document folder.
59
+ # @param storage Original document storage.
60
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
61
+ # @param password Password for opening an encrypted document.
62
+ # @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.
63
+ # @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.
64
+ # @param revision_date_time The date and time to use for revisions.
65
+ def initialize(name, section_index, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
66
+ self.name = name
67
+ self.section_index = section_index
68
+ self.folder = folder
69
+ self.storage = storage
70
+ self.load_encoding = load_encoding
71
+ self.password = password
72
+ self.dest_file_name = dest_file_name
73
+ self.revision_author = revision_author
74
+ self.revision_date_time = revision_date_time
75
+ end
76
+ end
77
+ end
@@ -34,7 +34,7 @@ module AsposeWordsCloud
34
34
 
35
35
  # The document name.
36
36
  attr_accessor :name
37
- # Path to the node with border(node should be cell or row).
37
+ # Path to the node with border(node should be paragraph, cell or row).
38
38
  attr_accessor :node_path
39
39
  # Object index.
40
40
  attr_accessor :index
@@ -50,7 +50,7 @@ module AsposeWordsCloud
50
50
  #
51
51
  # Initializes a new instance.
52
52
  # @param name The document name.
53
- # @param node_path Path to the node with border(node should be cell or row).
53
+ # @param node_path Path to the node with border(node should be paragraph, cell or row).
54
54
  # @param index Object index.
55
55
  # @param folder Original document folder.
56
56
  # @param storage Original document storage.
@@ -34,7 +34,7 @@ module AsposeWordsCloud
34
34
 
35
35
  # The document name.
36
36
  attr_accessor :name
37
- # Path to the node with borders (node should be cell or row).
37
+ # Path to the node with borders (node should be paragraph, cell or row).
38
38
  attr_accessor :node_path
39
39
  # Original document folder.
40
40
  attr_accessor :folder
@@ -48,7 +48,7 @@ module AsposeWordsCloud
48
48
  #
49
49
  # Initializes a new instance.
50
50
  # @param name The document name.
51
- # @param node_path Path to the node with borders (node should be cell or row).
51
+ # @param node_path Path to the node with borders (node should be paragraph, cell or row).
52
52
  # @param folder Original document folder.
53
53
  # @param storage Original document storage.
54
54
  # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
@@ -34,7 +34,7 @@ module AsposeWordsCloud
34
34
 
35
35
  # The document.
36
36
  attr_accessor :name
37
- # The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
37
+ # The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
38
38
  attr_accessor :range_start_identifier
39
39
  # The range end identifier.
40
40
  attr_accessor :range_end_identifier
@@ -50,7 +50,7 @@ module AsposeWordsCloud
50
50
  #
51
51
  # Initializes a new instance.
52
52
  # @param name The document.
53
- # @param range_start_identifier The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
53
+ # @param range_start_identifier The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
54
54
  # @param range_end_identifier The range end identifier.
55
55
  # @param folder Original document folder.
56
56
  # @param storage Original document storage.
@@ -34,7 +34,7 @@ module AsposeWordsCloud
34
34
 
35
35
  # The document.
36
36
  attr_accessor :name
37
- # The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
37
+ # The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
38
38
  attr_accessor :range_start_identifier
39
39
  # The range end identifier.
40
40
  attr_accessor :range_end_identifier
@@ -52,7 +52,7 @@ module AsposeWordsCloud
52
52
  #
53
53
  # Initializes a new instance.
54
54
  # @param name The document.
55
- # @param range_start_identifier The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
55
+ # @param range_start_identifier The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
56
56
  # @param range_end_identifier The range end identifier.
57
57
  # @param folder Original document folder.
58
58
  # @param storage Original document storage.
@@ -34,7 +34,7 @@ module AsposeWordsCloud
34
34
 
35
35
  # The document.
36
36
  attr_accessor :name
37
- # The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
37
+ # The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
38
38
  attr_accessor :range_start_identifier
39
39
  # Model with text for replacement.
40
40
  attr_accessor :range_text
@@ -54,7 +54,7 @@ module AsposeWordsCloud
54
54
  #
55
55
  # Initializes a new instance.
56
56
  # @param name The document.
57
- # @param range_start_identifier The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
57
+ # @param range_start_identifier The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
58
58
  # @param range_text Model with text for replacement.
59
59
  # @param range_end_identifier The range end identifier.
60
60
  # @param folder Original document folder.
@@ -34,7 +34,7 @@ module AsposeWordsCloud
34
34
 
35
35
  # The document.
36
36
  attr_accessor :name
37
- # The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
37
+ # The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
38
38
  attr_accessor :range_start_identifier
39
39
  # Parameters of a new document.
40
40
  attr_accessor :document_parameters
@@ -52,7 +52,7 @@ module AsposeWordsCloud
52
52
  #
53
53
  # Initializes a new instance.
54
54
  # @param name The document.
55
- # @param range_start_identifier The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
55
+ # @param range_start_identifier The range start identifier. Identifier is the value of the \"nodeId\" field, which every document node has, extended with the prefix \"id\". It looks like \"id0.0.7\". Also values like \"image5\" and \"table3\" can be used as an identifier for images and tables, where the number is an index of the image/table.
56
56
  # @param document_parameters Parameters of a new document.
57
57
  # @param range_end_identifier The range end identifier.
58
58
  # @param folder Original document folder.
@@ -36,7 +36,7 @@ module AsposeWordsCloud
36
36
  attr_accessor :name
37
37
  # Border properties.
38
38
  attr_accessor :border_properties
39
- # Path to the node with border(node should be cell or row).
39
+ # Path to the node with border(node should be paragraph, cell or row).
40
40
  attr_accessor :node_path
41
41
  # Object index.
42
42
  attr_accessor :index
@@ -59,7 +59,7 @@ module AsposeWordsCloud
59
59
  # Initializes a new instance.
60
60
  # @param name The document name.
61
61
  # @param border_properties Border properties.
62
- # @param node_path Path to the node with border(node should be cell or row).
62
+ # @param node_path Path to the node with border(node should be paragraph, cell or row).
63
63
  # @param index Object index.
64
64
  # @param folder Original document folder.
65
65
  # @param storage Original document storage.
@@ -34,18 +34,23 @@ module AsposeWordsCloud
34
34
  # Gets or sets link to the document.
35
35
  attr_accessor :link
36
36
 
37
+ # Gets or sets node id.
38
+ attr_accessor :node_id
39
+
37
40
 
38
41
  # Attribute mapping from ruby-style variable name to JSON key.
39
42
  def self.attribute_map
40
43
  {
41
- :'link' => :'link'
44
+ :'link' => :'link',
45
+ :'node_id' => :'NodeId'
42
46
  }
43
47
  end
44
48
 
45
49
  # Attribute type mapping.
46
50
  def self.swagger_types
47
51
  {
48
- :'link' => :'WordsApiLink'
52
+ :'link' => :'WordsApiLink',
53
+ :'node_id' => :'String'
49
54
  }
50
55
  end
51
56
 
@@ -61,6 +66,10 @@ module AsposeWordsCloud
61
66
  self.link = attributes[:'link']
62
67
  end
63
68
 
69
+ if attributes.key?(:'NodeId')
70
+ self.node_id = attributes[:'NodeId']
71
+ end
72
+
64
73
  end
65
74
 
66
75
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -81,7 +90,8 @@ module AsposeWordsCloud
81
90
  def ==(other)
82
91
  return true if self.equal?(other)
83
92
  self.class == other.class &&
84
- link == other.link
93
+ link == other.link &&
94
+ node_id == other.node_id
85
95
  end
86
96
 
87
97
  # @see the `==` method
@@ -93,7 +103,7 @@ module AsposeWordsCloud
93
103
  # Calculates hash code according to all attributes.
94
104
  # @return [Fixnum] Hash code
95
105
  def hash
96
- [link].hash
106
+ [link, node_id].hash
97
107
  end
98
108
 
99
109
  # Builds the object from hash
@@ -25,5 +25,5 @@
25
25
  # --------------------------------------------------------------------------------------------------------------------
26
26
  #
27
27
  module AsposeWordsCloud
28
- VERSION = "19.9.0".freeze
28
+ VERSION = "19.10.0".freeze
29
29
  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.9.0
4
+ version: 19.10.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-10-23 00:00:00.000000000 Z
11
+ date: 2019-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -250,6 +250,7 @@ files:
250
250
  - lib/aspose_words_cloud/models/requests/DeleteParagraphRequest.rb
251
251
  - lib/aspose_words_cloud/models/requests/DeleteParagraphWithoutNodePathRequest.rb
252
252
  - lib/aspose_words_cloud/models/requests/DeleteRunRequest.rb
253
+ - lib/aspose_words_cloud/models/requests/DeleteSectionRequest.rb
253
254
  - lib/aspose_words_cloud/models/requests/DeleteTableCellRequest.rb
254
255
  - lib/aspose_words_cloud/models/requests/DeleteTableRequest.rb
255
256
  - lib/aspose_words_cloud/models/requests/DeleteTableRowRequest.rb