aspose_email_cloud 19.11.0 → 19.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose-email-cloud.rb +43 -1
  3. data/lib/aspose-email-cloud/api/email_api.rb +221 -100
  4. data/lib/aspose-email-cloud/api_client.rb +4 -3
  5. data/lib/aspose-email-cloud/configuration.rb +4 -0
  6. data/lib/aspose-email-cloud/models/account_base_request.rb +123 -113
  7. data/lib/aspose-email-cloud/models/add_attachment_request.rb +86 -82
  8. data/lib/aspose-email-cloud/models/ai_bcr_base64_image.rb +228 -0
  9. data/lib/aspose-email-cloud/models/ai_bcr_base64_rq.rb +225 -0
  10. data/lib/aspose-email-cloud/models/ai_bcr_image.rb +215 -0
  11. data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +228 -0
  12. data/lib/aspose-email-cloud/models/ai_bcr_ocr_data.rb +253 -0
  13. data/lib/aspose-email-cloud/models/ai_bcr_ocr_data_part.rb +297 -0
  14. data/lib/aspose-email-cloud/models/ai_bcr_options.rb +223 -0
  15. data/lib/aspose-email-cloud/models/ai_bcr_parse_storage_rq.rb +248 -0
  16. data/lib/aspose-email-cloud/models/ai_bcr_rq.rb +210 -0
  17. data/lib/aspose-email-cloud/models/ai_bcr_storage_image_rq.rb +230 -0
  18. data/lib/aspose-email-cloud/models/ai_name_component.rb +264 -0
  19. data/lib/aspose-email-cloud/models/ai_name_cultural_context.rb +267 -0
  20. data/lib/aspose-email-cloud/models/ai_name_extracted.rb +230 -0
  21. data/lib/aspose-email-cloud/models/ai_name_extracted_component.rb +228 -0
  22. data/lib/aspose-email-cloud/models/ai_name_formatted.rb +223 -0
  23. data/lib/aspose-email-cloud/models/ai_name_gender_hypothesis.rb +233 -0
  24. data/lib/aspose-email-cloud/models/ai_name_match_result.rb +230 -0
  25. data/lib/aspose-email-cloud/models/ai_name_mismatch.rb +246 -0
  26. data/lib/aspose-email-cloud/models/ai_name_parsed_match_rq.rb +263 -0
  27. data/lib/aspose-email-cloud/models/ai_name_parsed_rq.rb +243 -0
  28. data/lib/aspose-email-cloud/models/ai_name_weighted.rb +228 -0
  29. data/lib/aspose-email-cloud/models/ai_name_weighted_variants.rb +225 -0
  30. data/lib/aspose-email-cloud/models/append_email_account_base_request.rb +178 -163
  31. data/lib/aspose-email-cloud/models/append_email_base_request.rb +196 -179
  32. data/lib/aspose-email-cloud/models/append_email_mime_base_request.rb +215 -198
  33. data/lib/aspose-email-cloud/models/base_object.rb +9 -5
  34. data/lib/aspose-email-cloud/models/create_email_request.rb +91 -87
  35. data/lib/aspose-email-cloud/models/create_folder_base_request.rb +173 -160
  36. data/lib/aspose-email-cloud/models/delete_folder_base_request.rb +178 -165
  37. data/lib/aspose-email-cloud/models/delete_message_base_request.rb +178 -165
  38. data/lib/aspose-email-cloud/models/disc_usage.rb +96 -92
  39. data/lib/aspose-email-cloud/models/email_account_request.rb +257 -205
  40. data/lib/aspose-email-cloud/models/email_document.rb +93 -89
  41. data/lib/aspose-email-cloud/models/email_document_response.rb +73 -71
  42. data/lib/aspose-email-cloud/models/email_properties.rb +93 -88
  43. data/lib/aspose-email-cloud/models/email_property.rb +128 -119
  44. data/lib/aspose-email-cloud/models/email_property_response.rb +73 -71
  45. data/lib/aspose-email-cloud/models/error.rb +112 -104
  46. data/lib/aspose-email-cloud/models/error_details.rb +91 -87
  47. data/lib/aspose-email-cloud/models/file_version.rb +166 -152
  48. data/lib/aspose-email-cloud/models/file_versions.rb +75 -73
  49. data/lib/aspose-email-cloud/models/files_list.rb +75 -73
  50. data/lib/aspose-email-cloud/models/files_upload_result.rb +90 -86
  51. data/lib/aspose-email-cloud/models/hierarchical_object.rb +13 -7
  52. data/lib/aspose-email-cloud/models/hierarchical_object_request.rb +91 -87
  53. data/lib/aspose-email-cloud/models/hierarchical_object_response.rb +86 -82
  54. data/lib/aspose-email-cloud/models/indexed_hierarchical_object.rb +17 -9
  55. data/lib/aspose-email-cloud/models/indexed_primitive_object.rb +17 -9
  56. data/lib/aspose-email-cloud/models/link.rb +112 -104
  57. data/lib/aspose-email-cloud/models/list_response_of_ai_bcr_ocr_data.rb +211 -0
  58. data/lib/aspose-email-cloud/models/list_response_of_ai_name_component.rb +211 -0
  59. data/lib/aspose-email-cloud/models/list_response_of_ai_name_extracted.rb +211 -0
  60. data/lib/aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis.rb +211 -0
  61. data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object.rb +211 -0
  62. data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object_response.rb +74 -71
  63. data/lib/aspose-email-cloud/models/list_response_of_mail_server_folder.rb +74 -71
  64. data/lib/aspose-email-cloud/models/list_response_of_storage_file_location.rb +211 -0
  65. data/lib/aspose-email-cloud/models/list_response_of_string.rb +74 -71
  66. data/lib/aspose-email-cloud/models/mail_server_folder.rb +86 -82
  67. data/lib/aspose-email-cloud/models/mime_response.rb +73 -71
  68. data/lib/aspose-email-cloud/models/object_exist.rb +96 -92
  69. data/lib/aspose-email-cloud/models/primitive_object.rb +13 -7
  70. data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +4 -4
  71. data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +6 -11
  72. data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +4 -4
  73. data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +4 -4
  74. data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb +75 -0
  75. data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +75 -0
  76. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +75 -0
  77. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +75 -0
  78. data/lib/aspose-email-cloud/models/requests/ai_name_complete_request_data.rb +91 -0
  79. data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +75 -0
  80. data/lib/aspose-email-cloud/models/requests/ai_name_expand_request_data.rb +91 -0
  81. data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +75 -0
  82. data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +94 -0
  83. data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +75 -0
  84. data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +91 -0
  85. data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +75 -0
  86. data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +99 -0
  87. data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +91 -0
  88. data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +91 -0
  89. data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +2 -2
  90. data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +2 -2
  91. data/lib/aspose-email-cloud/models/requests/copy_file_request_data.rb +5 -5
  92. data/lib/aspose-email-cloud/models/requests/copy_folder_request_data.rb +4 -4
  93. data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +3 -3
  94. data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +5 -10
  95. data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +2 -2
  96. data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +3 -3
  97. data/lib/aspose-email-cloud/models/requests/create_folder_request_data.rb +2 -2
  98. data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +3 -3
  99. data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +5 -5
  100. data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +7 -12
  101. data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +2 -2
  102. data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +2 -2
  103. data/lib/aspose-email-cloud/models/requests/delete_file_request_data.rb +3 -3
  104. data/lib/aspose-email-cloud/models/requests/delete_folder_request_data.rb +3 -3
  105. data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +4 -4
  106. data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +3 -3
  107. data/lib/aspose-email-cloud/models/requests/download_file_request_data.rb +3 -3
  108. data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +7 -7
  109. data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +5 -5
  110. data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +5 -5
  111. data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +4 -4
  112. data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +7 -12
  113. data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +7 -12
  114. data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +6 -11
  115. data/lib/aspose-email-cloud/models/requests/get_disc_usage_request_data.rb +1 -1
  116. data/lib/aspose-email-cloud/models/requests/get_email_attachment_request_data.rb +5 -5
  117. data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +5 -5
  118. data/lib/aspose-email-cloud/models/requests/get_email_request_data.rb +4 -4
  119. data/lib/aspose-email-cloud/models/requests/get_file_versions_request_data.rb +2 -2
  120. data/lib/aspose-email-cloud/models/requests/get_files_list_request_data.rb +2 -2
  121. data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +5 -5
  122. data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +4 -4
  123. data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +5 -5
  124. data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +4 -4
  125. data/lib/aspose-email-cloud/models/requests/list_email_folders_request_data.rb +7 -7
  126. data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +10 -10
  127. data/lib/aspose-email-cloud/models/requests/move_file_request_data.rb +5 -5
  128. data/lib/aspose-email-cloud/models/requests/move_folder_request_data.rb +4 -4
  129. data/lib/aspose-email-cloud/models/requests/object_exists_request_data.rb +3 -3
  130. data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +2 -2
  131. data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +2 -2
  132. data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +2 -2
  133. data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +2 -2
  134. data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +5 -5
  135. data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +2 -2
  136. data/lib/aspose-email-cloud/models/requests/storage_exists_request_data.rb +1 -1
  137. data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +3 -3
  138. data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +5 -10
  139. data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +3 -3
  140. data/lib/aspose-email-cloud/models/requests/upload_file_request_data.rb +3 -3
  141. data/lib/aspose-email-cloud/models/save_email_account_request.rb +294 -240
  142. data/lib/aspose-email-cloud/models/save_o_auth_email_account_request.rb +368 -310
  143. data/lib/aspose-email-cloud/models/send_email_base_request.rb +141 -130
  144. data/lib/aspose-email-cloud/models/send_email_mime_base_request.rb +160 -149
  145. data/lib/aspose-email-cloud/models/set_email_property_request.rb +91 -87
  146. data/lib/aspose-email-cloud/models/set_message_read_flag_account_base_request.rb +178 -165
  147. data/lib/aspose-email-cloud/models/storage_exist.rb +78 -76
  148. data/lib/aspose-email-cloud/models/storage_file.rb +135 -125
  149. data/lib/aspose-email-cloud/models/storage_file_location.rb +123 -117
  150. data/lib/aspose-email-cloud/models/storage_folder_location.rb +86 -82
  151. data/lib/aspose-email-cloud/models/value_response.rb +73 -71
  152. data/lib/aspose-email-cloud/version.rb +1 -1
  153. metadata +45 -3
  154. data/lib/aspose-email-cloud/models/contact_format.rb +0 -45
@@ -27,81 +27,83 @@
27
27
  require 'date'
28
28
 
29
29
  module AsposeEmailCloud
30
- # Storage exists
31
- class StorageExist
32
- # Shows that the storage exists.
33
- attr_accessor :exists
34
-
35
- # Attribute mapping from ruby-style variable name to JSON key.
36
- def self.attribute_map
37
- {
38
- :'exists' => :'exists'
39
- }
40
- end
41
-
42
- # Attribute type mapping.
43
- def self.swagger_types
44
- {
45
- :'exists' => :'BOOLEAN'
46
- }
47
- end
48
-
49
- # Initializes the object
50
- # @param [Hash] attributes Model attributes in the form of hash
51
- def initialize(attributes = {})
52
- return unless attributes.is_a?(Hash)
53
-
54
- # convert string to symbol for hash key
55
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
56
-
57
- if attributes.has_key?(:'exists')
58
- self.exists = attributes[:'exists']
59
- end
60
- end
61
-
62
- # Initializes the object
63
- def initialize(exists=nil)
64
- self.exists = exists
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
- if @exists.nil?
72
- invalid_properties.push('invalid value for "exists", exists cannot be nil.')
73
- end
74
-
75
- invalid_properties
76
- end
77
-
78
- # Check to see if the all the properties in the model are valid
79
- # @return true if the model is valid
80
- def valid?
81
- return false if @exists.nil?
82
- true
83
- end
84
-
85
- # Checks equality by comparing each attribute.
86
- # @param [Object] Object to be compared
87
- def ==(o)
88
- return true if self.equal?(o)
89
- self.class == o.class &&
90
- exists == o.exists
91
- end
92
-
93
- # @see the `==` method
94
- # @param [Object] Object to be compared
95
- def eql?(o)
96
- self == o
97
- end
98
-
99
- # Calculates hash code according to all attributes.
100
- # @return [Fixnum] Hash code
101
- def hash
102
- [exists].hash
103
- end
104
-
30
+ # Storage exists
31
+ class StorageExist
32
+ # Shows that the storage exists.
33
+ # @return [BOOLEAN]
34
+ attr_accessor :exists
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+ :'exists' => :'exists'
40
+ }
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ def self.swagger_types
45
+ {
46
+ :'exists' => :'BOOLEAN'
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?(:'exists')
59
+ self.exists = attributes[:'exists']
60
+ end
61
+ end
62
+
63
+ # Initializes the object
64
+ # @param [BOOLEAN] exists Shows that the storage exists.
65
+ def initialize(exists=nil)
66
+ self.exists = exists if exists
67
+ end
68
+
69
+ # Show invalid properties with the reasons. Usually used together with valid?
70
+ # @return Array for valid properties with the reasons
71
+ def list_invalid_properties
72
+ invalid_properties = Array.new
73
+ if @exists.nil?
74
+ invalid_properties.push('invalid value for "exists", exists cannot be nil.')
75
+ end
76
+
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ return false if @exists.nil?
84
+ true
85
+ end
86
+
87
+ # Checks equality by comparing each attribute.
88
+ # @param [Object] Object to be compared
89
+ def ==(o)
90
+ return true if self.equal?(o)
91
+ self.class == o.class &&
92
+ exists == o.exists
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Fixnum] Hash code
103
+ def hash
104
+ [exists].hash
105
+ end
106
+
105
107
  # Builds the object from hash
106
108
  # @param [Hash] attributes Model attributes in the form of hash
107
109
  # @return [Object] Returns the model itself
@@ -208,6 +210,6 @@ module AsposeEmailCloud
208
210
  value
209
211
  end
210
212
  end
211
-
213
+
212
214
  end
213
215
  end
@@ -27,130 +27,140 @@
27
27
  require 'date'
28
28
 
29
29
  module AsposeEmailCloud
30
- # File or folder information
31
- class StorageFile
32
- # File or folder name.
33
- attr_accessor :name
34
-
35
- # True if it is a folder.
36
- attr_accessor :is_folder
37
-
38
- # File or folder last modified DateTime.
39
- attr_accessor :modified_date
40
-
41
- # File or folder size.
42
- attr_accessor :size
43
-
44
- # File or folder path.
45
- attr_accessor :path
46
-
47
- # Attribute mapping from ruby-style variable name to JSON key.
48
- def self.attribute_map
49
- {
50
- :'name' => :'name',
51
- :'is_folder' => :'isFolder',
52
- :'modified_date' => :'modifiedDate',
53
- :'size' => :'size',
54
- :'path' => :'path'
55
- }
56
- end
57
-
58
- # Attribute type mapping.
59
- def self.swagger_types
60
- {
61
- :'name' => :'String',
62
- :'is_folder' => :'BOOLEAN',
63
- :'modified_date' => :'DateTime',
64
- :'size' => :'Integer',
65
- :'path' => :'String'
66
- }
67
- end
68
-
69
- # Initializes the object
70
- # @param [Hash] attributes Model attributes in the form of hash
71
- def initialize(attributes = {})
72
- return unless attributes.is_a?(Hash)
73
-
74
- # convert string to symbol for hash key
75
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
76
-
77
- if attributes.has_key?(:'name')
78
- self.name = attributes[:'name']
79
- end
80
-
81
- if attributes.has_key?(:'isFolder')
82
- self.is_folder = attributes[:'isFolder']
83
- end
84
-
85
- if attributes.has_key?(:'modifiedDate')
86
- self.modified_date = attributes[:'modifiedDate']
87
- end
88
-
89
- if attributes.has_key?(:'size')
90
- self.size = attributes[:'size']
91
- end
92
-
93
- if attributes.has_key?(:'path')
94
- self.path = attributes[:'path']
95
- end
96
- end
97
-
98
- # Initializes the object
99
- def initialize(name=nil, is_folder=nil, modified_date=nil, size=nil, path=nil)
100
- self.name = name
101
- self.is_folder = is_folder
102
- self.modified_date = modified_date
103
- self.size = size
104
- self.path = path
105
- end
106
-
107
- # Show invalid properties with the reasons. Usually used together with valid?
108
- # @return Array for valid properties with the reasons
109
- def list_invalid_properties
110
- invalid_properties = Array.new
111
- if @is_folder.nil?
112
- invalid_properties.push('invalid value for "is_folder", is_folder cannot be nil.')
113
- end
114
-
115
- if @size.nil?
116
- invalid_properties.push('invalid value for "size", size cannot be nil.')
117
- end
118
-
119
- invalid_properties
120
- end
121
-
122
- # Check to see if the all the properties in the model are valid
123
- # @return true if the model is valid
124
- def valid?
125
- return false if @is_folder.nil?
126
- return false if @size.nil?
127
- true
128
- end
129
-
130
- # Checks equality by comparing each attribute.
131
- # @param [Object] Object to be compared
132
- def ==(o)
133
- return true if self.equal?(o)
134
- self.class == o.class &&
135
- name == o.name &&
136
- is_folder == o.is_folder &&
137
- modified_date == o.modified_date &&
138
- size == o.size &&
139
- path == o.path
140
- end
141
-
142
- # @see the `==` method
143
- # @param [Object] Object to be compared
144
- def eql?(o)
145
- self == o
146
- end
147
-
148
- # Calculates hash code according to all attributes.
149
- # @return [Fixnum] Hash code
150
- def hash
151
- [name, is_folder, modified_date, size, path].hash
152
- end
153
-
30
+ # File or folder information
31
+ class StorageFile
32
+ # File or folder name.
33
+ # @return [String]
34
+ attr_accessor :name
35
+
36
+ # True if it is a folder.
37
+ # @return [BOOLEAN]
38
+ attr_accessor :is_folder
39
+
40
+ # File or folder last modified DateTime.
41
+ # @return [DateTime]
42
+ attr_accessor :modified_date
43
+
44
+ # File or folder size.
45
+ # @return [Integer]
46
+ attr_accessor :size
47
+
48
+ # File or folder path.
49
+ # @return [String]
50
+ attr_accessor :path
51
+
52
+ # Attribute mapping from ruby-style variable name to JSON key.
53
+ def self.attribute_map
54
+ {
55
+ :'name' => :'name',
56
+ :'is_folder' => :'isFolder',
57
+ :'modified_date' => :'modifiedDate',
58
+ :'size' => :'size',
59
+ :'path' => :'path'
60
+ }
61
+ end
62
+
63
+ # Attribute type mapping.
64
+ def self.swagger_types
65
+ {
66
+ :'name' => :'String',
67
+ :'is_folder' => :'BOOLEAN',
68
+ :'modified_date' => :'DateTime',
69
+ :'size' => :'Integer',
70
+ :'path' => :'String'
71
+ }
72
+ end
73
+
74
+ # Initializes the object
75
+ # @param [Hash] attributes Model attributes in the form of hash
76
+ def initialize(attributes = {})
77
+ return unless attributes.is_a?(Hash)
78
+
79
+ # convert string to symbol for hash key
80
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
81
+
82
+ if attributes.has_key?(:'name')
83
+ self.name = attributes[:'name']
84
+ end
85
+
86
+ if attributes.has_key?(:'isFolder')
87
+ self.is_folder = attributes[:'isFolder']
88
+ end
89
+
90
+ if attributes.has_key?(:'modifiedDate')
91
+ self.modified_date = attributes[:'modifiedDate']
92
+ end
93
+
94
+ if attributes.has_key?(:'size')
95
+ self.size = attributes[:'size']
96
+ end
97
+
98
+ if attributes.has_key?(:'path')
99
+ self.path = attributes[:'path']
100
+ end
101
+ end
102
+
103
+ # Initializes the object
104
+ # @param [String] name File or folder name.
105
+ # @param [BOOLEAN] is_folder True if it is a folder.
106
+ # @param [DateTime] modified_date File or folder last modified DateTime.
107
+ # @param [Integer] size File or folder size.
108
+ # @param [String] path File or folder path.
109
+ def initialize(name=nil, is_folder=nil, modified_date=nil, size=nil, path=nil)
110
+ self.name = name if name
111
+ self.is_folder = is_folder if is_folder
112
+ self.modified_date = modified_date if modified_date
113
+ self.size = size if size
114
+ self.path = path if path
115
+ end
116
+
117
+ # Show invalid properties with the reasons. Usually used together with valid?
118
+ # @return Array for valid properties with the reasons
119
+ def list_invalid_properties
120
+ invalid_properties = Array.new
121
+ if @is_folder.nil?
122
+ invalid_properties.push('invalid value for "is_folder", is_folder cannot be nil.')
123
+ end
124
+
125
+ if @size.nil?
126
+ invalid_properties.push('invalid value for "size", size cannot be nil.')
127
+ end
128
+
129
+ invalid_properties
130
+ end
131
+
132
+ # Check to see if the all the properties in the model are valid
133
+ # @return true if the model is valid
134
+ def valid?
135
+ return false if @is_folder.nil?
136
+ return false if @size.nil?
137
+ true
138
+ end
139
+
140
+ # Checks equality by comparing each attribute.
141
+ # @param [Object] Object to be compared
142
+ def ==(o)
143
+ return true if self.equal?(o)
144
+ self.class == o.class &&
145
+ name == o.name &&
146
+ is_folder == o.is_folder &&
147
+ modified_date == o.modified_date &&
148
+ size == o.size &&
149
+ path == o.path
150
+ end
151
+
152
+ # @see the `==` method
153
+ # @param [Object] Object to be compared
154
+ def eql?(o)
155
+ self == o
156
+ end
157
+
158
+ # Calculates hash code according to all attributes.
159
+ # @return [Fixnum] Hash code
160
+ def hash
161
+ [name, is_folder, modified_date, size, path].hash
162
+ end
163
+
154
164
  # Builds the object from hash
155
165
  # @param [Hash] attributes Model attributes in the form of hash
156
166
  # @return [Object] Returns the model itself
@@ -257,6 +267,6 @@ module AsposeEmailCloud
257
267
  value
258
268
  end
259
269
  end
260
-
270
+
261
271
  end
262
272
  end
@@ -27,122 +27,128 @@
27
27
  require 'date'
28
28
 
29
29
  module AsposeEmailCloud
30
- # A storage file location information
31
- class StorageFileLocation
32
- # A storage name
33
- attr_accessor :storage
34
-
35
- # A path to a folder in specified storage
36
- attr_accessor :folder_path
37
-
38
- # A file name in storage
39
- attr_accessor :file_name
40
-
41
- # Attribute mapping from ruby-style variable name to JSON key.
42
- def self.attribute_map
43
- {
44
- :'storage' => :'storage',
45
- :'folder_path' => :'folderPath',
46
- :'file_name' => :'fileName'
47
- }
48
- end
49
-
50
- # Attribute type mapping.
51
- def self.swagger_types
52
- {
53
- :'storage' => :'String',
54
- :'folder_path' => :'String',
55
- :'file_name' => :'String'
56
- }
57
- end
58
-
59
- # Initializes the object
60
- # @param [Hash] attributes Model attributes in the form of hash
61
- def initialize(attributes = {})
62
- return unless attributes.is_a?(Hash)
63
-
64
- # convert string to symbol for hash key
65
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
66
-
67
- if attributes.has_key?(:'storage')
68
- self.storage = attributes[:'storage']
69
- end
70
-
71
- if attributes.has_key?(:'folderPath')
72
- self.folder_path = attributes[:'folderPath']
73
- end
74
-
75
- if attributes.has_key?(:'fileName')
76
- self.file_name = attributes[:'fileName']
77
- end
78
- end
79
-
80
- # Initializes the object
81
- def initialize(storage=nil, folder_path=nil, file_name=nil)
82
- self.storage = storage
83
- self.folder_path = folder_path
84
- self.file_name = file_name
85
- end
86
-
87
- # Show invalid properties with the reasons. Usually used together with valid?
88
- # @return Array for valid properties with the reasons
89
- def list_invalid_properties
90
- invalid_properties = Array.new
91
- if @file_name.nil?
92
- invalid_properties.push('invalid value for "file_name", file_name cannot be nil.')
93
- end
94
-
95
- if @file_name.to_s.length < 1
96
- invalid_properties.push('invalid value for "file_name", the character length must be great than or equal to 1.')
97
- end
98
-
99
- invalid_properties
100
- end
101
-
102
- # Check to see if the all the properties in the model are valid
103
- # @return true if the model is valid
104
- def valid?
105
- return false if @file_name.nil?
106
- return false if @file_name.to_s.length < 1
107
- true
108
- end
109
-
110
- # Custom attribute writer method with validation
111
- # @param [Object] file_name Value to be assigned
112
- def file_name=(file_name)
113
- if file_name.nil?
114
- fail ArgumentError, 'file_name cannot be nil'
115
- end
116
-
117
- if file_name.to_s.length < 1
118
- fail ArgumentError, 'invalid value for "file_name", the character length must be great than or equal to 1.'
119
- end
120
-
121
- @file_name = file_name
122
- end
123
-
124
- # Checks equality by comparing each attribute.
125
- # @param [Object] Object to be compared
126
- def ==(o)
127
- return true if self.equal?(o)
128
- self.class == o.class &&
129
- storage == o.storage &&
130
- folder_path == o.folder_path &&
131
- file_name == o.file_name
132
- end
133
-
134
- # @see the `==` method
135
- # @param [Object] Object to be compared
136
- def eql?(o)
137
- self == o
138
- end
139
-
140
- # Calculates hash code according to all attributes.
141
- # @return [Fixnum] Hash code
142
- def hash
143
- [storage, folder_path, file_name].hash
144
- end
145
-
30
+ # A storage file location information
31
+ class StorageFileLocation
32
+ # A storage name
33
+ # @return [String]
34
+ attr_accessor :storage
35
+
36
+ # A path to a folder in specified storage
37
+ # @return [String]
38
+ attr_accessor :folder_path
39
+
40
+ # A file name in storage
41
+ # @return [String]
42
+ attr_accessor :file_name
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ def self.attribute_map
46
+ {
47
+ :'storage' => :'storage',
48
+ :'folder_path' => :'folderPath',
49
+ :'file_name' => :'fileName'
50
+ }
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.swagger_types
55
+ {
56
+ :'storage' => :'String',
57
+ :'folder_path' => :'String',
58
+ :'file_name' => :'String'
59
+ }
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ return unless attributes.is_a?(Hash)
66
+
67
+ # convert string to symbol for hash key
68
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
69
+
70
+ if attributes.has_key?(:'storage')
71
+ self.storage = attributes[:'storage']
72
+ end
73
+
74
+ if attributes.has_key?(:'folderPath')
75
+ self.folder_path = attributes[:'folderPath']
76
+ end
77
+
78
+ if attributes.has_key?(:'fileName')
79
+ self.file_name = attributes[:'fileName']
80
+ end
81
+ end
82
+
83
+ # Initializes the object
84
+ # @param [String] storage A storage name
85
+ # @param [String] folder_path A path to a folder in specified storage
86
+ # @param [String] file_name A file name in storage
87
+ def initialize(storage=nil, folder_path=nil, file_name=nil)
88
+ self.storage = storage if storage
89
+ self.folder_path = folder_path if folder_path
90
+ self.file_name = file_name if file_name
91
+ end
92
+
93
+ # Show invalid properties with the reasons. Usually used together with valid?
94
+ # @return Array for valid properties with the reasons
95
+ def list_invalid_properties
96
+ invalid_properties = Array.new
97
+ if @file_name.nil?
98
+ invalid_properties.push('invalid value for "file_name", file_name cannot be nil.')
99
+ end
100
+
101
+ if @file_name.to_s.length < 1
102
+ invalid_properties.push('invalid value for "file_name", the character length must be great than or equal to 1.')
103
+ end
104
+
105
+ invalid_properties
106
+ end
107
+
108
+ # Check to see if the all the properties in the model are valid
109
+ # @return true if the model is valid
110
+ def valid?
111
+ return false if @file_name.nil?
112
+ return false if @file_name.to_s.length < 1
113
+ true
114
+ end
115
+
116
+ # Custom attribute writer method with validation
117
+ # @param [Object] file_name Value to be assigned
118
+ def file_name=(file_name)
119
+ if file_name.nil?
120
+ fail ArgumentError, 'file_name cannot be nil'
121
+ end
122
+
123
+ if file_name.to_s.length < 1
124
+ fail ArgumentError, 'invalid value for "file_name", the character length must be great than or equal to 1.'
125
+ end
126
+
127
+ @file_name = file_name
128
+ end
129
+
130
+ # Checks equality by comparing each attribute.
131
+ # @param [Object] Object to be compared
132
+ def ==(o)
133
+ return true if self.equal?(o)
134
+ self.class == o.class &&
135
+ storage == o.storage &&
136
+ folder_path == o.folder_path &&
137
+ file_name == o.file_name
138
+ end
139
+
140
+ # @see the `==` method
141
+ # @param [Object] Object to be compared
142
+ def eql?(o)
143
+ self == o
144
+ end
145
+
146
+ # Calculates hash code according to all attributes.
147
+ # @return [Fixnum] Hash code
148
+ def hash
149
+ [storage, folder_path, file_name].hash
150
+ end
151
+
146
152
  # Builds the object from hash
147
153
  # @param [Hash] attributes Model attributes in the form of hash
148
154
  # @return [Object] Returns the model itself
@@ -249,6 +255,6 @@ module AsposeEmailCloud
249
255
  value
250
256
  end
251
257
  end
252
-
258
+
253
259
  end
254
260
  end