groupdocs_viewer_cloud 18.11 → 19.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/groupdocs_viewer_cloud.rb +27 -32
- data/lib/groupdocs_viewer_cloud/api/file_api.rb +729 -0
- data/lib/groupdocs_viewer_cloud/api/folder_api.rb +694 -0
- data/lib/groupdocs_viewer_cloud/api/storage_api.rb +541 -0
- data/lib/groupdocs_viewer_cloud/api/viewer_api.rb +232 -5069
- data/lib/groupdocs_viewer_cloud/api_client.rb +5 -5
- data/lib/groupdocs_viewer_cloud/api_error.rb +6 -6
- data/lib/groupdocs_viewer_cloud/configuration.rb +4 -4
- data/lib/groupdocs_viewer_cloud/models/attachment_info.rb +22 -34
- data/lib/groupdocs_viewer_cloud/models/{html_page.rb → attachment_view.rb} +39 -33
- data/lib/groupdocs_viewer_cloud/models/cad_options.rb +44 -65
- data/lib/groupdocs_viewer_cloud/models/{font_family.rb → delete_view_options.rb} +25 -17
- data/lib/groupdocs_viewer_cloud/models/{reorder_options.rb → disc_usage.rb} +42 -34
- data/lib/groupdocs_viewer_cloud/models/email_options.rb +23 -25
- data/lib/groupdocs_viewer_cloud/models/{image_page_collection.rb → error.rb} +46 -40
- data/lib/groupdocs_viewer_cloud/models/{outlook_options.rb → error_details.rb} +40 -17
- data/lib/groupdocs_viewer_cloud/models/field_label.rb +20 -12
- data/lib/groupdocs_viewer_cloud/models/{transform_options_base.rb → file_info.rb} +49 -21
- data/lib/groupdocs_viewer_cloud/models/{html_attachment_page_collection.rb → file_version.rb} +91 -40
- data/lib/groupdocs_viewer_cloud/models/{page_info_collection.rb → file_versions.rb} +26 -18
- data/lib/groupdocs_viewer_cloud/models/{font_collection.rb → files_list.rb} +26 -18
- data/lib/groupdocs_viewer_cloud/models/{image_page.rb → files_upload_result.rb} +36 -24
- data/lib/groupdocs_viewer_cloud/models/format.rb +30 -22
- data/lib/groupdocs_viewer_cloud/models/{format_collection.rb → formats_result.rb} +19 -11
- data/lib/groupdocs_viewer_cloud/models/html_options.rb +108 -209
- data/lib/groupdocs_viewer_cloud/models/html_resource.rb +234 -0
- data/lib/groupdocs_viewer_cloud/models/image_options.rb +129 -163
- data/lib/groupdocs_viewer_cloud/models/{attachment_collection.rb → info_result.rb} +32 -32
- data/lib/groupdocs_viewer_cloud/models/{rotate_options.rb → object_exist.rb} +42 -34
- data/lib/groupdocs_viewer_cloud/models/page_info.rb +48 -55
- data/lib/groupdocs_viewer_cloud/models/{pdf_file_info.rb → page_view.rb} +53 -38
- data/lib/groupdocs_viewer_cloud/models/{project_options.rb → project_management_options.rb} +39 -21
- data/lib/groupdocs_viewer_cloud/models/render_options.rb +92 -146
- data/lib/groupdocs_viewer_cloud/models/resource.rb +30 -22
- data/lib/groupdocs_viewer_cloud/models/{row_info.rb → row.rb} +65 -37
- data/lib/groupdocs_viewer_cloud/models/{cells_options.rb → spreadsheet_options.rb} +95 -67
- data/lib/groupdocs_viewer_cloud/models/{attachment.rb → storage_exist.rb} +30 -27
- data/lib/groupdocs_viewer_cloud/models/{image_attachment_page_collection.rb → storage_file.rb} +66 -40
- data/lib/groupdocs_viewer_cloud/models/{document_info.rb → view_options.rb} +99 -105
- data/lib/groupdocs_viewer_cloud/models/{html_page_collection.rb → view_result.rb} +43 -33
- data/lib/groupdocs_viewer_cloud/models/watermark.rb +35 -22
- data/lib/groupdocs_viewer_cloud/version.rb +2 -2
- metadata +27 -110
- data/lib/groupdocs_viewer_cloud/models/document_info_options.rb +0 -358
- data/lib/groupdocs_viewer_cloud/models/file_response.rb +0 -196
- data/lib/groupdocs_viewer_cloud/models/pdf_file_options.rb +0 -358
- data/lib/groupdocs_viewer_cloud/models/pdf_options.rb +0 -236
- data/lib/groupdocs_viewer_cloud/models/render_options_base.rb +0 -358
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_attachment_pages_cache_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pages_cache_from_content_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pages_cache_from_url_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pages_cache_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pdf_file_from_content_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pdf_file_from_url_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pdf_file_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/html_delete_attachment_pages_cache_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/requests/html_delete_pages_cache_request.rb +0 -53
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_info_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_info_with_options_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_page_request.rb +0 -109
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_page_resource_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_pages_request.rb +0 -113
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachments_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_from_content_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_from_url_request.rb +0 -69
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_from_url_with_options_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_with_options_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_page_request.rb +0 -101
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_page_resource_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_pages_from_url_request.rb +0 -109
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_pages_request.rb +0 -105
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_pdf_file_from_url_request.rb +0 -77
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_pdf_file_request.rb +0 -73
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_zip_with_attachment_pages_request.rb +0 -113
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_zip_with_pages_request.rb +0 -105
- data/lib/groupdocs_viewer_cloud/models/requests/html_transform_pages_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_attachment_pages_cache_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pages_cache_from_content_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pages_cache_from_url_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pages_cache_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pdf_file_from_content_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pdf_file_from_url_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pdf_file_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/image_delete_attachment_pages_cache_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/requests/image_delete_pages_cache_request.rb +0 -53
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_info_request.rb +0 -69
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_info_with_options_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_page_request.rb +0 -105
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_pages_request.rb +0 -109
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachments_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_from_content_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_from_url_request.rb +0 -73
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_from_url_with_options_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_request.rb +0 -69
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_with_options_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_page_request.rb +0 -97
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_pages_from_url_request.rb +0 -105
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_pages_request.rb +0 -101
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_pdf_file_from_url_request.rb +0 -77
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_pdf_file_request.rb +0 -73
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_zip_with_attachment_pages_request.rb +0 -109
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_zip_with_pages_request.rb +0 -101
- data/lib/groupdocs_viewer_cloud/models/requests/image_transform_pages_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/resource_url.rb +0 -206
- data/lib/groupdocs_viewer_cloud/models/slides_options.rb +0 -206
- data/lib/groupdocs_viewer_cloud/models/tile.rb +0 -236
- data/lib/groupdocs_viewer_cloud/models/words_options.rb +0 -216
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="
|
4
|
-
# Copyright (c) 2003-
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="delete_view_options.rb">
|
4
|
+
# Copyright (c) 2003-2019 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -28,23 +28,23 @@
|
|
28
28
|
require 'date'
|
29
29
|
|
30
30
|
module GroupDocsViewerCloud
|
31
|
-
#
|
32
|
-
class
|
31
|
+
# Delete view options
|
32
|
+
class DeleteViewOptions
|
33
33
|
|
34
|
-
#
|
35
|
-
attr_accessor :
|
34
|
+
# File info
|
35
|
+
attr_accessor :file_info
|
36
36
|
|
37
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
38
|
def self.attribute_map
|
39
39
|
{
|
40
|
-
:'
|
40
|
+
:'file_info' => :'FileInfo'
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.swagger_types
|
46
46
|
{
|
47
|
-
:'
|
47
|
+
:'file_info' => :'FileInfo'
|
48
48
|
}
|
49
49
|
end
|
50
50
|
|
@@ -56,8 +56,8 @@ module GroupDocsViewerCloud
|
|
56
56
|
# convert string to symbol for hash key
|
57
57
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
58
58
|
|
59
|
-
if attributes.key?(:'
|
60
|
-
self.
|
59
|
+
if attributes.key?(:'FileInfo')
|
60
|
+
self.file_info = attributes[:'FileInfo']
|
61
61
|
end
|
62
62
|
|
63
63
|
end
|
@@ -80,7 +80,7 @@ module GroupDocsViewerCloud
|
|
80
80
|
def ==(other)
|
81
81
|
return true if self.equal?(other)
|
82
82
|
self.class == other.class &&
|
83
|
-
|
83
|
+
file_info == other.file_info
|
84
84
|
end
|
85
85
|
|
86
86
|
# @see the `==` method
|
@@ -92,7 +92,13 @@ module GroupDocsViewerCloud
|
|
92
92
|
# Calculates hash code according to all attributes.
|
93
93
|
# @return [Fixnum] Hash code
|
94
94
|
def hash
|
95
|
-
[
|
95
|
+
[file_info].hash
|
96
|
+
end
|
97
|
+
|
98
|
+
# Downcases first letter.
|
99
|
+
# @return downcased string
|
100
|
+
def uncap(str)
|
101
|
+
str[0, 1].downcase + str[1..-1]
|
96
102
|
end
|
97
103
|
|
98
104
|
# Builds the object from hash
|
@@ -101,14 +107,16 @@ module GroupDocsViewerCloud
|
|
101
107
|
def build_from_hash(attributes)
|
102
108
|
return nil unless attributes.is_a?(Hash)
|
103
109
|
self.class.swagger_types.each_pair do |key, type|
|
110
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
111
|
+
value = attributes[pname]
|
104
112
|
if type =~ /\AArray<(.*)>/i
|
105
113
|
# check to ensure the input is an array given that the the attribute
|
106
|
-
# is documented as an array but the input is not
|
107
|
-
if
|
108
|
-
self.send("#{key}=",
|
114
|
+
# is documented as an array but the input is not
|
115
|
+
if value.is_a?(Array)
|
116
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
109
117
|
end
|
110
|
-
elsif !
|
111
|
-
self.send("#{key}=", _deserialize(type,
|
118
|
+
elsif !value.nil?
|
119
|
+
self.send("#{key}=", _deserialize(type, value))
|
112
120
|
end
|
113
121
|
# or else data not found in attributes(hash), not an issue as the data can be optional
|
114
122
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="
|
4
|
-
# Copyright (c) 2003-
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="disc_usage.rb">
|
4
|
+
# Copyright (c) 2003-2019 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -28,33 +28,28 @@
|
|
28
28
|
require 'date'
|
29
29
|
|
30
30
|
module GroupDocsViewerCloud
|
31
|
-
#
|
32
|
-
class
|
31
|
+
# Class for disc space information.
|
32
|
+
class DiscUsage
|
33
33
|
|
34
|
-
#
|
35
|
-
attr_accessor :
|
34
|
+
# Application used disc space.
|
35
|
+
attr_accessor :used_size
|
36
36
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
39
|
-
|
40
|
-
# The position where page should be placed.
|
41
|
-
attr_accessor :new_position
|
37
|
+
# Total disc space.
|
38
|
+
attr_accessor :total_size
|
42
39
|
|
43
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
41
|
def self.attribute_map
|
45
42
|
{
|
46
|
-
:'
|
47
|
-
:'
|
48
|
-
:'new_position' => :'newPosition'
|
43
|
+
:'used_size' => :'UsedSize',
|
44
|
+
:'total_size' => :'TotalSize'
|
49
45
|
}
|
50
46
|
end
|
51
47
|
|
52
48
|
# Attribute type mapping.
|
53
49
|
def self.swagger_types
|
54
50
|
{
|
55
|
-
:'
|
56
|
-
:'
|
57
|
-
:'new_position' => :'Integer'
|
51
|
+
:'used_size' => :'Integer',
|
52
|
+
:'total_size' => :'Integer'
|
58
53
|
}
|
59
54
|
end
|
60
55
|
|
@@ -66,16 +61,12 @@ module GroupDocsViewerCloud
|
|
66
61
|
# convert string to symbol for hash key
|
67
62
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
68
63
|
|
69
|
-
if attributes.key?(:'
|
70
|
-
self.
|
71
|
-
end
|
72
|
-
|
73
|
-
if attributes.key?(:'password')
|
74
|
-
self.password = attributes[:'password']
|
64
|
+
if attributes.key?(:'UsedSize')
|
65
|
+
self.used_size = attributes[:'UsedSize']
|
75
66
|
end
|
76
67
|
|
77
|
-
if attributes.key?(:'
|
78
|
-
self.
|
68
|
+
if attributes.key?(:'TotalSize')
|
69
|
+
self.total_size = attributes[:'TotalSize']
|
79
70
|
end
|
80
71
|
|
81
72
|
end
|
@@ -84,12 +75,22 @@ module GroupDocsViewerCloud
|
|
84
75
|
# @return Array for valid properies with the reasons
|
85
76
|
def list_invalid_properties
|
86
77
|
invalid_properties = []
|
78
|
+
if @used_size.nil?
|
79
|
+
invalid_properties.push("invalid value for 'used_size', used_size cannot be nil.")
|
80
|
+
end
|
81
|
+
|
82
|
+
if @total_size.nil?
|
83
|
+
invalid_properties.push("invalid value for 'total_size', total_size cannot be nil.")
|
84
|
+
end
|
85
|
+
|
87
86
|
return invalid_properties
|
88
87
|
end
|
89
88
|
|
90
89
|
# Check to see if the all the properties in the model are valid
|
91
90
|
# @return true if the model is valid
|
92
91
|
def valid?
|
92
|
+
return false if @used_size.nil?
|
93
|
+
return false if @total_size.nil?
|
93
94
|
return true
|
94
95
|
end
|
95
96
|
|
@@ -98,9 +99,8 @@ module GroupDocsViewerCloud
|
|
98
99
|
def ==(other)
|
99
100
|
return true if self.equal?(other)
|
100
101
|
self.class == other.class &&
|
101
|
-
|
102
|
-
|
103
|
-
new_position == other.new_position
|
102
|
+
used_size == other.used_size &&
|
103
|
+
total_size == other.total_size
|
104
104
|
end
|
105
105
|
|
106
106
|
# @see the `==` method
|
@@ -112,7 +112,13 @@ module GroupDocsViewerCloud
|
|
112
112
|
# Calculates hash code according to all attributes.
|
113
113
|
# @return [Fixnum] Hash code
|
114
114
|
def hash
|
115
|
-
[
|
115
|
+
[used_size, total_size].hash
|
116
|
+
end
|
117
|
+
|
118
|
+
# Downcases first letter.
|
119
|
+
# @return downcased string
|
120
|
+
def uncap(str)
|
121
|
+
str[0, 1].downcase + str[1..-1]
|
116
122
|
end
|
117
123
|
|
118
124
|
# Builds the object from hash
|
@@ -121,14 +127,16 @@ module GroupDocsViewerCloud
|
|
121
127
|
def build_from_hash(attributes)
|
122
128
|
return nil unless attributes.is_a?(Hash)
|
123
129
|
self.class.swagger_types.each_pair do |key, type|
|
130
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
131
|
+
value = attributes[pname]
|
124
132
|
if type =~ /\AArray<(.*)>/i
|
125
133
|
# check to ensure the input is an array given that the the attribute
|
126
|
-
# is documented as an array but the input is not
|
127
|
-
if
|
128
|
-
self.send("#{key}=",
|
134
|
+
# is documented as an array but the input is not
|
135
|
+
if value.is_a?(Array)
|
136
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
129
137
|
end
|
130
|
-
elsif !
|
131
|
-
self.send("#{key}=", _deserialize(type,
|
138
|
+
elsif !value.nil?
|
139
|
+
self.send("#{key}=", _deserialize(type, value))
|
132
140
|
end
|
133
141
|
# or else data not found in attributes(hash), not an issue as the data can be optional
|
134
142
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="email_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2019 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -28,31 +28,26 @@
|
|
28
28
|
require 'date'
|
29
29
|
|
30
30
|
module GroupDocsViewerCloud
|
31
|
-
#
|
31
|
+
# Rendering options for Email file formats. Email file formats include files with extensions: .msg, .eml, .emlx, .ifc, .stl
|
32
32
|
class EmailOptions
|
33
33
|
|
34
|
-
# The document encoding e.g. \"utf-8\".
|
35
|
-
attr_accessor :encoding
|
36
|
-
|
37
34
|
# The size of the output page when rendering as PDF or image. Supported values {Unknown|Letter|Ledger|A0|A1|A2|A3}: 1. Unknown - the default, unspecified page size. 2. Letter - the size of the Letter page in points is 792x612. 3. Ledger - the size of the Letter page in points is 1224x792. 4. A0 - the size of the A0 page in points is 3371x2384. 5. A1 - the size of the A1 page in points is 2384x1685. 6. A2 - the size of the A2 page in points is 1684x1190. 7. A3 - the size of the A3 page in points is 1190x842. 8. A4 - the size of the A4 page in points is 842x595.
|
38
35
|
attr_accessor :page_size
|
39
36
|
|
40
|
-
# The list of supported email message field labels: 1. Field: \"Anniversary\" - default
|
37
|
+
# The list of supported email message field labels: 1. Field: \"Anniversary\" - default label is \"Anniversary\". 2. Field: \"Attachments\" - default label is \"Attachments\". 3. Field: \"Bcc\" - default label is \"Bcc\". 4. Field: \"Birthday\" - default label is \"Birthday\". 5. Field: \"Business\" - default label is \"Business\". 6. Field: \"BusinessAddress\" - default label is \"Business Address\". 7. Field: \"BusinessFax\" - default label is \"Business Fax\". 8. Field: \"BusinessHomepage\" - default label is \"BusinessHomePage\". 9. Field: \"Cc\" - default label is \"Cc\". 10. Field: \"Company\" - default label is \"Company\". 11. Field: \"Department\" - default label is \"Department\". 12. Field: \"Email\" - default label is \"Email\". 13. Field: \"EmailDisplayAs\" - default label is \"Email Display As\". 14. Field: \"Email2\" - default label is \"Email2\". 15. Field: \"Email2DisplayAs\" - default label is \"Email2 Display As\". 16. Field: \"Email3\" - default label is \"Email3\". 17. Field: \"Email3DisplayAs\" - default label is \"Email3 Display As\". 18. Field: \"End\" - default label is \"End\". 19. Field: \"FirstName\" - default label is \"First Name\". 20. Field: \"From\" - default label is \"From\". 21. Field: \"FullName\" - default label is \"Full Name\". 22. Field: \"Gender\" - default label is \"Gender\". 23. Field: \"Hobbies\" - default label is \"Hobbies\". 24. Field: \"Home\" - default label is \"Home\". 25. Field: \"HomeAddress\" - default label is \"Home Address\". 26. Field: \"Importance\" - default label is \"Importance\". 27. Field: \"JobTitle\" - default label is \"Job Title\". 28. Field: \"LastName\" - default label is \"Last Name\". 29. Field: \"Location\" - default label is \"Location\". 30. Field: \"MiddleName\" - default label is \"Middle Name\". 31. Field: \"Mobile\" - default label is \"Mobile\". 32. Field: \"Organizer\" - default label is \"Organizer\". 33. Field: \"OtherAddress\" - default label is \"Other Address\". 34. Field: \"PersonalHomepage\" - default label is \"PersonalHomePage\". 35. Field: \"Profession\" - default label is \"Profession\". 36. Field: \"Recurrence\" - default label is \"Recurrence\". 37. Field: \"RecurrencePattern\" - default label is \"Recurrence Pattern\". 38. Field: \"RequiredAttendees\" - default label is \"Required Attendees\". 39. Field: \"Sent\" - default label is \"Sent\". 40. Field: \"ShowTimeAs\" - default label is \"Show Time As\". 41. Field: \"SpousePartner\" - default label is \"Spouse/Partner\". 42. Field: \"Start\" - default label is \"Start\". 43. Field: \"Subject\" - default label is \"Subject\". 44. Field: \"To\" - default label is \"To\". 45. Field: \"UserField1\" - default label is \"User Field 1\". 46. Field: \"UserField2\" - default label is \"User Field 2\". 47. Field: \"UserField3\" - default label is \"User Field 3\". 48. Field: \"UserField4\" - default label is \"User Field 4\".
|
41
38
|
attr_accessor :field_labels
|
42
39
|
|
43
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
41
|
def self.attribute_map
|
45
42
|
{
|
46
|
-
:'
|
47
|
-
:'
|
48
|
-
:'field_labels' => :'fieldLabels'
|
43
|
+
:'page_size' => :'PageSize',
|
44
|
+
:'field_labels' => :'FieldLabels'
|
49
45
|
}
|
50
46
|
end
|
51
47
|
|
52
48
|
# Attribute type mapping.
|
53
49
|
def self.swagger_types
|
54
50
|
{
|
55
|
-
:'encoding' => :'String',
|
56
51
|
:'page_size' => :'String',
|
57
52
|
:'field_labels' => :'Array<FieldLabel>'
|
58
53
|
}
|
@@ -66,16 +61,12 @@ module GroupDocsViewerCloud
|
|
66
61
|
# convert string to symbol for hash key
|
67
62
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
68
63
|
|
69
|
-
if attributes.key?(:'
|
70
|
-
self.
|
71
|
-
end
|
72
|
-
|
73
|
-
if attributes.key?(:'pageSize')
|
74
|
-
self.page_size = attributes[:'pageSize']
|
64
|
+
if attributes.key?(:'PageSize')
|
65
|
+
self.page_size = attributes[:'PageSize']
|
75
66
|
end
|
76
67
|
|
77
|
-
if attributes.key?(:'
|
78
|
-
if (value = attributes[:'
|
68
|
+
if attributes.key?(:'FieldLabels')
|
69
|
+
if (value = attributes[:'FieldLabels']).is_a?(Array)
|
79
70
|
self.field_labels = value
|
80
71
|
end
|
81
72
|
end
|
@@ -100,7 +91,6 @@ module GroupDocsViewerCloud
|
|
100
91
|
def ==(other)
|
101
92
|
return true if self.equal?(other)
|
102
93
|
self.class == other.class &&
|
103
|
-
encoding == other.encoding &&
|
104
94
|
page_size == other.page_size &&
|
105
95
|
field_labels == other.field_labels
|
106
96
|
end
|
@@ -114,7 +104,13 @@ module GroupDocsViewerCloud
|
|
114
104
|
# Calculates hash code according to all attributes.
|
115
105
|
# @return [Fixnum] Hash code
|
116
106
|
def hash
|
117
|
-
[
|
107
|
+
[page_size, field_labels].hash
|
108
|
+
end
|
109
|
+
|
110
|
+
# Downcases first letter.
|
111
|
+
# @return downcased string
|
112
|
+
def uncap(str)
|
113
|
+
str[0, 1].downcase + str[1..-1]
|
118
114
|
end
|
119
115
|
|
120
116
|
# Builds the object from hash
|
@@ -123,14 +119,16 @@ module GroupDocsViewerCloud
|
|
123
119
|
def build_from_hash(attributes)
|
124
120
|
return nil unless attributes.is_a?(Hash)
|
125
121
|
self.class.swagger_types.each_pair do |key, type|
|
122
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
123
|
+
value = attributes[pname]
|
126
124
|
if type =~ /\AArray<(.*)>/i
|
127
125
|
# check to ensure the input is an array given that the the attribute
|
128
|
-
# is documented as an array but the input is not
|
129
|
-
if
|
130
|
-
self.send("#{key}=",
|
126
|
+
# is documented as an array but the input is not
|
127
|
+
if value.is_a?(Array)
|
128
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
131
129
|
end
|
132
|
-
elsif !
|
133
|
-
self.send("#{key}=", _deserialize(type,
|
130
|
+
elsif !value.nil?
|
131
|
+
self.send("#{key}=", _deserialize(type, value))
|
134
132
|
end
|
135
133
|
# or else data not found in attributes(hash), not an issue as the data can be optional
|
136
134
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="
|
4
|
-
# Copyright (c) 2003-
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="error.rb">
|
4
|
+
# Copyright (c) 2003-2019 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -28,38 +28,38 @@
|
|
28
28
|
require 'date'
|
29
29
|
|
30
30
|
module GroupDocsViewerCloud
|
31
|
-
#
|
32
|
-
class
|
31
|
+
# Error
|
32
|
+
class Error
|
33
33
|
|
34
|
-
#
|
35
|
-
attr_accessor :
|
34
|
+
# Code
|
35
|
+
attr_accessor :code
|
36
36
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
37
|
+
# Message
|
38
|
+
attr_accessor :message
|
39
39
|
|
40
|
-
#
|
41
|
-
attr_accessor :
|
40
|
+
# Description
|
41
|
+
attr_accessor :description
|
42
42
|
|
43
|
-
#
|
44
|
-
attr_accessor :
|
43
|
+
# Inner Error
|
44
|
+
attr_accessor :inner_error
|
45
45
|
|
46
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
47
|
def self.attribute_map
|
48
48
|
{
|
49
|
-
:'
|
50
|
-
:'
|
51
|
-
:'
|
52
|
-
:'
|
49
|
+
:'code' => :'Code',
|
50
|
+
:'message' => :'Message',
|
51
|
+
:'description' => :'Description',
|
52
|
+
:'inner_error' => :'InnerError'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.swagger_types
|
58
58
|
{
|
59
|
-
:'
|
60
|
-
:'
|
61
|
-
:'
|
62
|
-
:'
|
59
|
+
:'code' => :'String',
|
60
|
+
:'message' => :'String',
|
61
|
+
:'description' => :'String',
|
62
|
+
:'inner_error' => :'ErrorDetails'
|
63
63
|
}
|
64
64
|
end
|
65
65
|
|
@@ -71,22 +71,20 @@ module GroupDocsViewerCloud
|
|
71
71
|
# convert string to symbol for hash key
|
72
72
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
73
73
|
|
74
|
-
if attributes.key?(:'
|
75
|
-
self.
|
74
|
+
if attributes.key?(:'Code')
|
75
|
+
self.code = attributes[:'Code']
|
76
76
|
end
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
78
|
+
if attributes.key?(:'Message')
|
79
|
+
self.message = attributes[:'Message']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
self.
|
82
|
+
if attributes.key?(:'Description')
|
83
|
+
self.description = attributes[:'Description']
|
84
84
|
end
|
85
85
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
|
88
|
-
self.pages = value
|
89
|
-
end
|
86
|
+
if attributes.key?(:'InnerError')
|
87
|
+
self.inner_error = attributes[:'InnerError']
|
90
88
|
end
|
91
89
|
|
92
90
|
end
|
@@ -109,10 +107,10 @@ module GroupDocsViewerCloud
|
|
109
107
|
def ==(other)
|
110
108
|
return true if self.equal?(other)
|
111
109
|
self.class == other.class &&
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
110
|
+
code == other.code &&
|
111
|
+
message == other.message &&
|
112
|
+
description == other.description &&
|
113
|
+
inner_error == other.inner_error
|
116
114
|
end
|
117
115
|
|
118
116
|
# @see the `==` method
|
@@ -124,7 +122,13 @@ module GroupDocsViewerCloud
|
|
124
122
|
# Calculates hash code according to all attributes.
|
125
123
|
# @return [Fixnum] Hash code
|
126
124
|
def hash
|
127
|
-
[
|
125
|
+
[code, message, description, inner_error].hash
|
126
|
+
end
|
127
|
+
|
128
|
+
# Downcases first letter.
|
129
|
+
# @return downcased string
|
130
|
+
def uncap(str)
|
131
|
+
str[0, 1].downcase + str[1..-1]
|
128
132
|
end
|
129
133
|
|
130
134
|
# Builds the object from hash
|
@@ -133,14 +137,16 @@ module GroupDocsViewerCloud
|
|
133
137
|
def build_from_hash(attributes)
|
134
138
|
return nil unless attributes.is_a?(Hash)
|
135
139
|
self.class.swagger_types.each_pair do |key, type|
|
140
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
141
|
+
value = attributes[pname]
|
136
142
|
if type =~ /\AArray<(.*)>/i
|
137
143
|
# check to ensure the input is an array given that the the attribute
|
138
|
-
# is documented as an array but the input is not
|
139
|
-
if
|
140
|
-
self.send("#{key}=",
|
144
|
+
# is documented as an array but the input is not
|
145
|
+
if value.is_a?(Array)
|
146
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
141
147
|
end
|
142
|
-
elsif !
|
143
|
-
self.send("#{key}=", _deserialize(type,
|
148
|
+
elsif !value.nil?
|
149
|
+
self.send("#{key}=", _deserialize(type, value))
|
144
150
|
end
|
145
151
|
# or else data not found in attributes(hash), not an issue as the data can be optional
|
146
152
|
end
|