cloudmersive-convert-api-client 2.1.2 → 2.1.3
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/README.md +9 -4
- data/docs/DocxMetadataCustomProperty.md +13 -0
- data/docs/DocxSetCustomMetadataPropertiesRequest.md +10 -0
- data/docs/EditDocumentApi.md +110 -0
- data/docs/GetDocxMetadataPropertiesResponse.md +16 -0
- data/lib/cloudmersive-convert-api-client.rb +3 -0
- data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +109 -0
- data/lib/cloudmersive-convert-api-client/models/docx_metadata_custom_property.rb +236 -0
- data/lib/cloudmersive-convert-api-client/models/docx_set_custom_metadata_properties_request.rb +223 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_metadata_properties_response.rb +268 -0
- data/lib/cloudmersive-convert-api-client/version.rb +1 -1
- data/spec/api/edit_document_api_spec.rb +24 -0
- data/spec/models/docx_metadata_custom_property_spec.rb +71 -0
- data/spec/models/docx_set_custom_metadata_properties_request_spec.rb +53 -0
- data/spec/models/get_docx_metadata_properties_response_spec.rb +89 -0
- metadata +11 -2
@@ -200,6 +200,18 @@ describe 'EditDocumentApi' do
|
|
200
200
|
end
|
201
201
|
end
|
202
202
|
|
203
|
+
# unit tests for edit_document_docx_get_metadata_properties
|
204
|
+
# Get all metadata properties in Word DOCX document
|
205
|
+
# Returns all the metadata properties in an Office Word Document (docx)
|
206
|
+
# @param input_file Input file to perform the operation on.
|
207
|
+
# @param [Hash] opts the optional parameters
|
208
|
+
# @return [GetDocxMetadataPropertiesResponse]
|
209
|
+
describe 'edit_document_docx_get_metadata_properties test' do
|
210
|
+
it 'should work' do
|
211
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
203
215
|
# unit tests for edit_document_docx_get_sections
|
204
216
|
# Get sections from a Word DOCX document
|
205
217
|
# Returns the sections defined in the Word Document (DOCX) format file
|
@@ -404,6 +416,18 @@ describe 'EditDocumentApi' do
|
|
404
416
|
end
|
405
417
|
end
|
406
418
|
|
419
|
+
# unit tests for edit_document_docx_set_custom_metadata_properties
|
420
|
+
# Set custom property metadata properties in Word DOCX document
|
421
|
+
# Sets the custom property metadata for the metadata properties in an Office Word Document (docx)
|
422
|
+
# @param input
|
423
|
+
# @param [Hash] opts the optional parameters
|
424
|
+
# @return [String]
|
425
|
+
describe 'edit_document_docx_set_custom_metadata_properties test' do
|
426
|
+
it 'should work' do
|
427
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
428
|
+
end
|
429
|
+
end
|
430
|
+
|
407
431
|
# unit tests for edit_document_docx_set_footer
|
408
432
|
# Set the footer in a Word DOCX document
|
409
433
|
# Set the footer in a Word Document (DOCX). Call Finish Editing on the output URL to complete the operation.
|
@@ -0,0 +1,71 @@
|
|
1
|
+
=begin
|
2
|
+
#convertapi
|
3
|
+
|
4
|
+
#Convert API lets you effortlessly convert file formats and types.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveConvertApiClient::DocxMetadataCustomProperty
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'DocxMetadataCustomProperty' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveConvertApiClient::DocxMetadataCustomProperty.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of DocxMetadataCustomProperty' do
|
31
|
+
it 'should create an instance of DocxMetadataCustomProperty' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::DocxMetadataCustomProperty)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "property_name"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "property_data_type"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "string_value"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "integer_value"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "double_value"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "date_value"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
=begin
|
2
|
+
#convertapi
|
3
|
+
|
4
|
+
#Convert API lets you effortlessly convert file formats and types.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveConvertApiClient::DocxSetCustomMetadataPropertiesRequest
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'DocxSetCustomMetadataPropertiesRequest' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveConvertApiClient::DocxSetCustomMetadataPropertiesRequest.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of DocxSetCustomMetadataPropertiesRequest' do
|
31
|
+
it 'should create an instance of DocxSetCustomMetadataPropertiesRequest' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::DocxSetCustomMetadataPropertiesRequest)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "input_file_bytes"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "input_file_url"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "properties_to_set"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
=begin
|
2
|
+
#convertapi
|
3
|
+
|
4
|
+
#Convert API lets you effortlessly convert file formats and types.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveConvertApiClient::GetDocxMetadataPropertiesResponse
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'GetDocxMetadataPropertiesResponse' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveConvertApiClient::GetDocxMetadataPropertiesResponse.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of GetDocxMetadataPropertiesResponse' do
|
31
|
+
it 'should create an instance of GetDocxMetadataPropertiesResponse' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::GetDocxMetadataPropertiesResponse)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "company"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "manager"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "application_version"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "word_count"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "line_count"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "paragraph_count"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'test attribute "page_count"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
describe 'test attribute "custom_properties"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "successful"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudmersive-convert-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloudmersive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -257,12 +257,14 @@ files:
|
|
257
257
|
- "./docs/DocxInsertCommentOnParagraphRequest.md"
|
258
258
|
- "./docs/DocxInsertImageRequest.md"
|
259
259
|
- "./docs/DocxInsertImageResponse.md"
|
260
|
+
- "./docs/DocxMetadataCustomProperty.md"
|
260
261
|
- "./docs/DocxPage.md"
|
261
262
|
- "./docs/DocxParagraph.md"
|
262
263
|
- "./docs/DocxRemoveObjectRequest.md"
|
263
264
|
- "./docs/DocxRemoveObjectResponse.md"
|
264
265
|
- "./docs/DocxRun.md"
|
265
266
|
- "./docs/DocxSection.md"
|
267
|
+
- "./docs/DocxSetCustomMetadataPropertiesRequest.md"
|
266
268
|
- "./docs/DocxSetFooterAddPageNumberRequest.md"
|
267
269
|
- "./docs/DocxSetFooterRequest.md"
|
268
270
|
- "./docs/DocxSetFooterResponse.md"
|
@@ -308,6 +310,7 @@ files:
|
|
308
310
|
- "./docs/GetDocxHeadersAndFootersResponse.md"
|
309
311
|
- "./docs/GetDocxImagesRequest.md"
|
310
312
|
- "./docs/GetDocxImagesResponse.md"
|
313
|
+
- "./docs/GetDocxMetadataPropertiesResponse.md"
|
311
314
|
- "./docs/GetDocxPagesRequest.md"
|
312
315
|
- "./docs/GetDocxPagesResponse.md"
|
313
316
|
- "./docs/GetDocxSectionsRequest.md"
|
@@ -528,12 +531,14 @@ files:
|
|
528
531
|
- "./lib/cloudmersive-convert-api-client/models/docx_insert_comment_on_paragraph_request.rb"
|
529
532
|
- "./lib/cloudmersive-convert-api-client/models/docx_insert_image_request.rb"
|
530
533
|
- "./lib/cloudmersive-convert-api-client/models/docx_insert_image_response.rb"
|
534
|
+
- "./lib/cloudmersive-convert-api-client/models/docx_metadata_custom_property.rb"
|
531
535
|
- "./lib/cloudmersive-convert-api-client/models/docx_page.rb"
|
532
536
|
- "./lib/cloudmersive-convert-api-client/models/docx_paragraph.rb"
|
533
537
|
- "./lib/cloudmersive-convert-api-client/models/docx_remove_object_request.rb"
|
534
538
|
- "./lib/cloudmersive-convert-api-client/models/docx_remove_object_response.rb"
|
535
539
|
- "./lib/cloudmersive-convert-api-client/models/docx_run.rb"
|
536
540
|
- "./lib/cloudmersive-convert-api-client/models/docx_section.rb"
|
541
|
+
- "./lib/cloudmersive-convert-api-client/models/docx_set_custom_metadata_properties_request.rb"
|
537
542
|
- "./lib/cloudmersive-convert-api-client/models/docx_set_footer_add_page_number_request.rb"
|
538
543
|
- "./lib/cloudmersive-convert-api-client/models/docx_set_footer_request.rb"
|
539
544
|
- "./lib/cloudmersive-convert-api-client/models/docx_set_footer_response.rb"
|
@@ -575,6 +580,7 @@ files:
|
|
575
580
|
- "./lib/cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response.rb"
|
576
581
|
- "./lib/cloudmersive-convert-api-client/models/get_docx_images_request.rb"
|
577
582
|
- "./lib/cloudmersive-convert-api-client/models/get_docx_images_response.rb"
|
583
|
+
- "./lib/cloudmersive-convert-api-client/models/get_docx_metadata_properties_response.rb"
|
578
584
|
- "./lib/cloudmersive-convert-api-client/models/get_docx_pages_request.rb"
|
579
585
|
- "./lib/cloudmersive-convert-api-client/models/get_docx_pages_response.rb"
|
580
586
|
- "./lib/cloudmersive-convert-api-client/models/get_docx_sections_request.rb"
|
@@ -787,12 +793,14 @@ files:
|
|
787
793
|
- "./spec/models/docx_insert_comment_on_paragraph_request_spec.rb"
|
788
794
|
- "./spec/models/docx_insert_image_request_spec.rb"
|
789
795
|
- "./spec/models/docx_insert_image_response_spec.rb"
|
796
|
+
- "./spec/models/docx_metadata_custom_property_spec.rb"
|
790
797
|
- "./spec/models/docx_page_spec.rb"
|
791
798
|
- "./spec/models/docx_paragraph_spec.rb"
|
792
799
|
- "./spec/models/docx_remove_object_request_spec.rb"
|
793
800
|
- "./spec/models/docx_remove_object_response_spec.rb"
|
794
801
|
- "./spec/models/docx_run_spec.rb"
|
795
802
|
- "./spec/models/docx_section_spec.rb"
|
803
|
+
- "./spec/models/docx_set_custom_metadata_properties_request_spec.rb"
|
796
804
|
- "./spec/models/docx_set_footer_add_page_number_request_spec.rb"
|
797
805
|
- "./spec/models/docx_set_footer_request_spec.rb"
|
798
806
|
- "./spec/models/docx_set_footer_response_spec.rb"
|
@@ -834,6 +842,7 @@ files:
|
|
834
842
|
- "./spec/models/get_docx_headers_and_footers_response_spec.rb"
|
835
843
|
- "./spec/models/get_docx_images_request_spec.rb"
|
836
844
|
- "./spec/models/get_docx_images_response_spec.rb"
|
845
|
+
- "./spec/models/get_docx_metadata_properties_response_spec.rb"
|
837
846
|
- "./spec/models/get_docx_pages_request_spec.rb"
|
838
847
|
- "./spec/models/get_docx_pages_response_spec.rb"
|
839
848
|
- "./spec/models/get_docx_sections_request_spec.rb"
|