aspose_slides_cloud 24.1.0 → 24.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +17 -15
- data/README.md +4 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +57 -0
- data/lib/aspose_slides_cloud/models/comment_author.rb +101 -0
- data/lib/aspose_slides_cloud/models/comment_authors.rb +93 -0
- data/lib/aspose_slides_cloud/type_registry.rb +3 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +2 -0
- data/spec/api/slides_api_spec.rb +114 -0
- data/spec/use_cases/comment_spec.rb +8 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43dc820762d0ae2925bf3b6f8c72a9a847e1bfa0730937a1378ab47b78b02e56
|
4
|
+
data.tar.gz: fae90830f26f69a0f4b5c941cec9b8b809c8c0bebebf62ba27ea09a6fa904295
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c8100c03463880500d4bf8e0d98c890247722b9c4c217191aade5ffe1c7ea1cd85898b33768e412551637867eff33719e10ed0ab67b02b39d235f437ca0e05d
|
7
|
+
data.tar.gz: 17aa7a9883ad52ea481b156a02fcea1741a8ca82ce59c3ae6a22d1e9d4a9bad1d4186003ebe15b2830ee5a5886b8a7dd5fb6433971352188b4107c692574b229
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
aspose_slides_cloud (24.
|
4
|
+
aspose_slides_cloud (24.2.0)
|
5
5
|
faraday (~> 1.0, >= 1.0.0)
|
6
6
|
faraday-httpclient (~> 1.0, >= 1.0.0)
|
7
7
|
httpclient (~> 2.2, >= 2.2.0)
|
@@ -17,9 +17,11 @@ GEM
|
|
17
17
|
ZenTest (>= 4.4.1)
|
18
18
|
autotest-growl (0.2.16)
|
19
19
|
autotest-rails-pure (4.1.2)
|
20
|
-
|
20
|
+
bigdecimal (3.1.6)
|
21
|
+
crack (1.0.0)
|
22
|
+
bigdecimal
|
21
23
|
rexml
|
22
|
-
diff-lcs (1.5.
|
24
|
+
diff-lcs (1.5.1)
|
23
25
|
faraday (1.10.3)
|
24
26
|
faraday-em_http (~> 1.0)
|
25
27
|
faraday-em_synchrony (~> 1.0)
|
@@ -46,23 +48,23 @@ GEM
|
|
46
48
|
hashdiff (1.1.0)
|
47
49
|
httpclient (2.8.3)
|
48
50
|
json (2.7.1)
|
49
|
-
multipart-post (2.
|
51
|
+
multipart-post (2.4.0)
|
50
52
|
public_suffix (5.0.4)
|
51
53
|
rake (12.3.3)
|
52
54
|
rexml (3.2.6)
|
53
|
-
rspec (3.
|
54
|
-
rspec-core (~> 3.
|
55
|
-
rspec-expectations (~> 3.
|
56
|
-
rspec-mocks (~> 3.
|
57
|
-
rspec-core (3.
|
58
|
-
rspec-support (~> 3.
|
59
|
-
rspec-expectations (3.
|
55
|
+
rspec (3.13.0)
|
56
|
+
rspec-core (~> 3.13.0)
|
57
|
+
rspec-expectations (~> 3.13.0)
|
58
|
+
rspec-mocks (~> 3.13.0)
|
59
|
+
rspec-core (3.13.0)
|
60
|
+
rspec-support (~> 3.13.0)
|
61
|
+
rspec-expectations (3.13.0)
|
60
62
|
diff-lcs (>= 1.2.0, < 2.0)
|
61
|
-
rspec-support (~> 3.
|
62
|
-
rspec-mocks (3.
|
63
|
+
rspec-support (~> 3.13.0)
|
64
|
+
rspec-mocks (3.13.0)
|
63
65
|
diff-lcs (>= 1.2.0, < 2.0)
|
64
|
-
rspec-support (~> 3.
|
65
|
-
rspec-support (3.
|
66
|
+
rspec-support (~> 3.13.0)
|
67
|
+
rspec-support (3.13.0)
|
66
68
|
rspec_junit_formatter (0.6.0)
|
67
69
|
rspec-core (>= 2, < 4, != 2.12.0)
|
68
70
|
ruby2_keywords (0.0.5)
|
data/README.md
CHANGED
@@ -27,6 +27,10 @@ You may want to check out Aspose free [Powerpoint to PDF](https://products.aspos
|
|
27
27
|
**Web:** HTML/HTML5
|
28
28
|
**Other:** MPEG4, SWF (export whole presentations)
|
29
29
|
|
30
|
+
## Enhancements in Version 24.2
|
31
|
+
|
32
|
+
* Added **GetCommentAuthors** method to get list of comment authors.
|
33
|
+
|
30
34
|
## Enhancements in Version 24.1
|
31
35
|
|
32
36
|
* Added **GetAvailableFonts** method to get list of installed system & custom fonts.
|
@@ -9052,6 +9052,63 @@ module AsposeSlidesCloud
|
|
9052
9052
|
:return_type => 'ColorScheme')
|
9053
9053
|
return data, status_code, headers
|
9054
9054
|
end
|
9055
|
+
# Lists comment authors.
|
9056
|
+
# @param name Document name.
|
9057
|
+
# @param password Document password.
|
9058
|
+
# @param folder Document folder.
|
9059
|
+
# @param storage Document storage.
|
9060
|
+
def get_comment_authors(name, password = nil, folder = nil, storage = nil)
|
9061
|
+
data, _status_code, _headers = get_comment_authors_with_http_info(name, password, folder, storage)
|
9062
|
+
data
|
9063
|
+
end
|
9064
|
+
|
9065
|
+
# Lists comment authors.
|
9066
|
+
# @param name Document name.
|
9067
|
+
# @param password Document password.
|
9068
|
+
# @param folder Document folder.
|
9069
|
+
# @param storage Document storage.
|
9070
|
+
def get_comment_authors_with_http_info(name, password = nil, folder = nil, storage = nil)
|
9071
|
+
if @api_client.config.debugging
|
9072
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.get_comment_authors ...'
|
9073
|
+
end
|
9074
|
+
|
9075
|
+
# verify the required parameter 'name' is set
|
9076
|
+
if @api_client.config.client_side_validation && name.nil?
|
9077
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.get_comment_authors"
|
9078
|
+
end
|
9079
|
+
# resource path
|
9080
|
+
local_var_path = '/slides/{name}/comments/authors'
|
9081
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
9082
|
+
|
9083
|
+
# query parameters
|
9084
|
+
query_params = {}
|
9085
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
9086
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
9087
|
+
|
9088
|
+
# header parameters
|
9089
|
+
header_params = {}
|
9090
|
+
# HTTP header 'Accept' (if needed)
|
9091
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
9092
|
+
# HTTP header 'Content-Type'
|
9093
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
9094
|
+
header_params[:'password'] = password unless password.nil?
|
9095
|
+
|
9096
|
+
# http body (model)
|
9097
|
+
post_body = nil
|
9098
|
+
|
9099
|
+
# form parameters
|
9100
|
+
post_files = []
|
9101
|
+
|
9102
|
+
auth_names = ['JWT']
|
9103
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
9104
|
+
:header_params => header_params,
|
9105
|
+
:query_params => query_params,
|
9106
|
+
:body => post_body,
|
9107
|
+
:files => post_files,
|
9108
|
+
:auth_names => auth_names,
|
9109
|
+
:return_type => 'CommentAuthors')
|
9110
|
+
return data, status_code, headers
|
9111
|
+
end
|
9055
9112
|
# Get disc usage
|
9056
9113
|
# @param storage_name Storage name
|
9057
9114
|
def get_disc_usage(storage_name = nil)
|
@@ -0,0 +1,101 @@
|
|
1
|
+
=begin
|
2
|
+
Copyright (c) 2019 Aspose Pty Ltd
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
12
|
+
copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
SOFTWARE.
|
21
|
+
=end
|
22
|
+
|
23
|
+
require 'date'
|
24
|
+
|
25
|
+
module AsposeSlidesCloud
|
26
|
+
# Represents a comment author
|
27
|
+
class CommentAuthor < BaseObject
|
28
|
+
# Name
|
29
|
+
attr_accessor :name
|
30
|
+
|
31
|
+
# Initials
|
32
|
+
attr_accessor :initials
|
33
|
+
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
35
|
+
def self.attribute_map
|
36
|
+
{
|
37
|
+
:'name' => :'Name',
|
38
|
+
:'initials' => :'Initials',
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.swagger_types
|
44
|
+
{
|
45
|
+
:'name' => :'String',
|
46
|
+
:'initials' => :'String',
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
return unless attributes.is_a?(Hash)
|
54
|
+
|
55
|
+
# convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
57
|
+
|
58
|
+
if attributes.has_key?(:'Name')
|
59
|
+
self.name = attributes[:'Name']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'Initials')
|
63
|
+
self.initials = attributes[:'Initials']
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
+
# @return Array for valid properties with the reasons
|
69
|
+
def list_invalid_properties
|
70
|
+
invalid_properties = Array.new
|
71
|
+
invalid_properties
|
72
|
+
end
|
73
|
+
|
74
|
+
# Check to see if the all the properties in the model are valid
|
75
|
+
# @return true if the model is valid
|
76
|
+
def valid?
|
77
|
+
true
|
78
|
+
end
|
79
|
+
|
80
|
+
# Checks equality by comparing each attribute.
|
81
|
+
# @param [Object] Object to be compared
|
82
|
+
def ==(o)
|
83
|
+
return true if self.equal?(o)
|
84
|
+
self.class == o.class &&
|
85
|
+
name == o.name &&
|
86
|
+
initials == o.initials
|
87
|
+
end
|
88
|
+
|
89
|
+
# @see the `==` method
|
90
|
+
# @param [Object] Object to be compared
|
91
|
+
def eql?(o)
|
92
|
+
self == o
|
93
|
+
end
|
94
|
+
|
95
|
+
# Calculates hash code according to all attributes.
|
96
|
+
# @return [Fixnum] Hash code
|
97
|
+
def hash
|
98
|
+
[name, initials].hash
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
=begin
|
2
|
+
Copyright (c) 2019 Aspose Pty Ltd
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
12
|
+
copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
SOFTWARE.
|
21
|
+
=end
|
22
|
+
|
23
|
+
require 'date'
|
24
|
+
|
25
|
+
module AsposeSlidesCloud
|
26
|
+
# Represents comments collection of slide
|
27
|
+
class CommentAuthors < ResourceBase
|
28
|
+
# Slide comment list.
|
29
|
+
attr_accessor :list
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
super.merge({
|
34
|
+
:'list' => :'List',
|
35
|
+
})
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.swagger_types
|
40
|
+
super.merge({
|
41
|
+
:'list' => :'Array<CommentAuthor>',
|
42
|
+
})
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
super
|
49
|
+
|
50
|
+
if attributes.has_key?(:'List')
|
51
|
+
if (value = attributes[:'List']).is_a?(Array)
|
52
|
+
self.list = value
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
58
|
+
# @return Array for valid properties with the reasons
|
59
|
+
def list_invalid_properties
|
60
|
+
invalid_properties = super
|
61
|
+
invalid_properties
|
62
|
+
end
|
63
|
+
|
64
|
+
# Check to see if the all the properties in the model are valid
|
65
|
+
# @return true if the model is valid
|
66
|
+
def valid?
|
67
|
+
return false if !super
|
68
|
+
true
|
69
|
+
end
|
70
|
+
|
71
|
+
# Checks equality by comparing each attribute.
|
72
|
+
# @param [Object] Object to be compared
|
73
|
+
def ==(o)
|
74
|
+
return true if self.equal?(o)
|
75
|
+
self.class == o.class &&
|
76
|
+
self_uri == o.self_uri &&
|
77
|
+
alternate_links == o.alternate_links &&
|
78
|
+
list == o.list
|
79
|
+
end
|
80
|
+
|
81
|
+
# @see the `==` method
|
82
|
+
# @param [Object] Object to be compared
|
83
|
+
def eql?(o)
|
84
|
+
self == o
|
85
|
+
end
|
86
|
+
|
87
|
+
# Calculates hash code according to all attributes.
|
88
|
+
# @return [Fixnum] Hash code
|
89
|
+
def hash
|
90
|
+
[self_uri, alternate_links, list].hash
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -106,6 +106,7 @@ module AsposeSlidesCloud
|
|
106
106
|
:'ColorChangeEffect' => :'ImageTransformEffect',
|
107
107
|
:'ColorReplaceEffect' => :'ImageTransformEffect',
|
108
108
|
:'ColorScheme' => :'ResourceBase',
|
109
|
+
:'CommentAuthors' => :'ResourceBase',
|
109
110
|
:'Connector' => :'GeometryShape',
|
110
111
|
:'CubicBezierToPathSegment' => :'PathSegment',
|
111
112
|
:'DelimiterElement' => :'MathElement',
|
@@ -285,6 +286,8 @@ module AsposeSlidesCloud
|
|
285
286
|
:'ColorChangeEffect' => { :'Type' => 'ColorChange', },
|
286
287
|
:'ColorReplaceEffect' => { :'Type' => 'ColorReplace', },
|
287
288
|
:'ColorScheme' => { },
|
289
|
+
:'CommentAuthor' => { },
|
290
|
+
:'CommentAuthors' => { },
|
288
291
|
:'CommonSlideViewProperties' => { },
|
289
292
|
:'Connector' => { :'Type' => 'Connector', },
|
290
293
|
:'CubicBezierToPathSegment' => { :'Type' => 'CubicBezierTo', },
|
data/lib/aspose_slides_cloud.rb
CHANGED
@@ -84,6 +84,8 @@ require 'aspose_slides_cloud/models/close_path_segment'
|
|
84
84
|
require 'aspose_slides_cloud/models/color_change_effect'
|
85
85
|
require 'aspose_slides_cloud/models/color_replace_effect'
|
86
86
|
require 'aspose_slides_cloud/models/color_scheme'
|
87
|
+
require 'aspose_slides_cloud/models/comment_author'
|
88
|
+
require 'aspose_slides_cloud/models/comment_authors'
|
87
89
|
require 'aspose_slides_cloud/models/common_slide_view_properties'
|
88
90
|
require 'aspose_slides_cloud/models/connector'
|
89
91
|
require 'aspose_slides_cloud/models/cubic_bezier_to_path_segment'
|
data/spec/api/slides_api_spec.rb
CHANGED
@@ -24563,6 +24563,120 @@ describe 'SlidesApi' do
|
|
24563
24563
|
end
|
24564
24564
|
end
|
24565
24565
|
|
24566
|
+
# unit tests for get_comment_authors
|
24567
|
+
# Lists comment authors.
|
24568
|
+
# @param name Document name.
|
24569
|
+
# @param [Hash] opts the optional parameters
|
24570
|
+
# @option opts [String] :password Document password.
|
24571
|
+
# @option opts [String] :folder Document folder.
|
24572
|
+
# @option opts [String] :storage Document storage.
|
24573
|
+
# @return [CommentAuthors]
|
24574
|
+
describe 'get_comment_authors test' do
|
24575
|
+
it 'should work' do
|
24576
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'GetCommentAuthors', 'String')
|
24577
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'GetCommentAuthors', 'String')
|
24578
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'GetCommentAuthors', 'String')
|
24579
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'GetCommentAuthors', 'String')
|
24580
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetCommentAuthors', nil, nil)
|
24581
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_comment_authors_with_http_info(paramname, parampassword, paramfolder, paramstorage)
|
24582
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', nil, nil, nil)
|
24583
|
+
expect(c).to eq(code)
|
24584
|
+
expect(o).not_to be_nil
|
24585
|
+
end
|
24586
|
+
|
24587
|
+
it 'invalid name' do
|
24588
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'GetCommentAuthors', 'String')
|
24589
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'GetCommentAuthors', 'String')
|
24590
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'GetCommentAuthors', 'String')
|
24591
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'GetCommentAuthors', 'String')
|
24592
|
+
paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'GetCommentAuthors', paramname, 'String')
|
24593
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetCommentAuthors', 'name', paramname)
|
24594
|
+
begin
|
24595
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.get_comment_authors_with_http_info(paramname, parampassword, paramfolder, paramstorage)
|
24596
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('GetCommentAuthors', 'name')
|
24597
|
+
fail "An exception expected"
|
24598
|
+
end
|
24599
|
+
rescue AsposeSlidesCloud::ApiError => e
|
24600
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'name', paramname, 'String')
|
24601
|
+
expect(e.code).to eq(code)
|
24602
|
+
expect(e.response_body).to include(message)
|
24603
|
+
rescue ArgumentError => e
|
24604
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'name', paramname, 'String')
|
24605
|
+
expect(400).to eq(code)
|
24606
|
+
expect(e.message).to include(message)
|
24607
|
+
end
|
24608
|
+
end
|
24609
|
+
|
24610
|
+
it 'invalid password' do
|
24611
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'GetCommentAuthors', 'String')
|
24612
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'GetCommentAuthors', 'String')
|
24613
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'GetCommentAuthors', 'String')
|
24614
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'GetCommentAuthors', 'String')
|
24615
|
+
parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'GetCommentAuthors', parampassword, 'String')
|
24616
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetCommentAuthors', 'password', parampassword)
|
24617
|
+
begin
|
24618
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.get_comment_authors_with_http_info(paramname, parampassword, paramfolder, paramstorage)
|
24619
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('GetCommentAuthors', 'password')
|
24620
|
+
fail "An exception expected"
|
24621
|
+
end
|
24622
|
+
rescue AsposeSlidesCloud::ApiError => e
|
24623
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'password', parampassword, 'String')
|
24624
|
+
expect(e.code).to eq(code)
|
24625
|
+
expect(e.response_body).to include(message)
|
24626
|
+
rescue ArgumentError => e
|
24627
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'password', parampassword, 'String')
|
24628
|
+
expect(400).to eq(code)
|
24629
|
+
expect(e.message).to include(message)
|
24630
|
+
end
|
24631
|
+
end
|
24632
|
+
|
24633
|
+
it 'invalid folder' do
|
24634
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'GetCommentAuthors', 'String')
|
24635
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'GetCommentAuthors', 'String')
|
24636
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'GetCommentAuthors', 'String')
|
24637
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'GetCommentAuthors', 'String')
|
24638
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'GetCommentAuthors', paramfolder, 'String')
|
24639
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetCommentAuthors', 'folder', paramfolder)
|
24640
|
+
begin
|
24641
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.get_comment_authors_with_http_info(paramname, parampassword, paramfolder, paramstorage)
|
24642
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('GetCommentAuthors', 'folder')
|
24643
|
+
fail "An exception expected"
|
24644
|
+
end
|
24645
|
+
rescue AsposeSlidesCloud::ApiError => e
|
24646
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'folder', paramfolder, 'String')
|
24647
|
+
expect(e.code).to eq(code)
|
24648
|
+
expect(e.response_body).to include(message)
|
24649
|
+
rescue ArgumentError => e
|
24650
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'folder', paramfolder, 'String')
|
24651
|
+
expect(400).to eq(code)
|
24652
|
+
expect(e.message).to include(message)
|
24653
|
+
end
|
24654
|
+
end
|
24655
|
+
|
24656
|
+
it 'invalid storage' do
|
24657
|
+
paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'GetCommentAuthors', 'String')
|
24658
|
+
parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'GetCommentAuthors', 'String')
|
24659
|
+
paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'GetCommentAuthors', 'String')
|
24660
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'GetCommentAuthors', 'String')
|
24661
|
+
paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'GetCommentAuthors', paramstorage, 'String')
|
24662
|
+
AsposeSlidesCloud::SpecUtils.initialize('GetCommentAuthors', 'storage', paramstorage)
|
24663
|
+
begin
|
24664
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.get_comment_authors_with_http_info(paramname, parampassword, paramfolder, paramstorage)
|
24665
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('GetCommentAuthors', 'storage')
|
24666
|
+
fail "An exception expected"
|
24667
|
+
end
|
24668
|
+
rescue AsposeSlidesCloud::ApiError => e
|
24669
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'storage', paramstorage, 'String')
|
24670
|
+
expect(e.code).to eq(code)
|
24671
|
+
expect(e.response_body).to include(message)
|
24672
|
+
rescue ArgumentError => e
|
24673
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetCommentAuthors', 'storage', paramstorage, 'String')
|
24674
|
+
expect(400).to eq(code)
|
24675
|
+
expect(e.message).to include(message)
|
24676
|
+
end
|
24677
|
+
end
|
24678
|
+
end
|
24679
|
+
|
24566
24680
|
# unit tests for get_disc_usage
|
24567
24681
|
# Get disc usage
|
24568
24682
|
# @param [Hash] opts the optional parameters
|
@@ -155,5 +155,13 @@ describe 'UseCases' do
|
|
155
155
|
expect(response.list.length).to eq(1)
|
156
156
|
expect(response.list[0].type).to eq("Modern")
|
157
157
|
end
|
158
|
+
|
159
|
+
it "get comment authors" do
|
160
|
+
folder_name = "TempSlidesSDK"
|
161
|
+
file_name = "test.pptx"
|
162
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
163
|
+
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_comment_authors(file_name, "password", folder_name)
|
164
|
+
expect(response.list.length).to eq(1)
|
165
|
+
end
|
158
166
|
end
|
159
167
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_slides_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 24.
|
4
|
+
version: 24.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Putrov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -325,6 +325,8 @@ files:
|
|
325
325
|
- lib/aspose_slides_cloud/models/color_change_effect.rb
|
326
326
|
- lib/aspose_slides_cloud/models/color_replace_effect.rb
|
327
327
|
- lib/aspose_slides_cloud/models/color_scheme.rb
|
328
|
+
- lib/aspose_slides_cloud/models/comment_author.rb
|
329
|
+
- lib/aspose_slides_cloud/models/comment_authors.rb
|
328
330
|
- lib/aspose_slides_cloud/models/common_slide_view_properties.rb
|
329
331
|
- lib/aspose_slides_cloud/models/connector.rb
|
330
332
|
- lib/aspose_slides_cloud/models/cubic_bezier_to_path_segment.rb
|