zm-ruby-client 3.0.1 → 3.1.0

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.
Files changed (229) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +96 -0
  3. data/README.md +128 -27
  4. data/VERSION +1 -1
  5. data/lib/zm/client/account/account.rb +12 -19
  6. data/lib/zm/client/account/account_aliases_collection.rb +6 -4
  7. data/lib/zm/client/account/account_dls_membership_collection.rb +4 -3
  8. data/lib/zm/client/account/account_dls_owner_collection.rb +3 -2
  9. data/lib/zm/client/account/account_jsns_builder.rb +10 -10
  10. data/lib/zm/client/account/accounts_collection.rb +27 -16
  11. data/lib/zm/client/ace/ace.rb +3 -6
  12. data/lib/zm/client/ace/ace_jsns_builder.rb +6 -6
  13. data/lib/zm/client/appointment/appointment.rb +32 -14
  14. data/lib/zm/client/appointment/appointment_jsns_builder.rb +5 -5
  15. data/lib/zm/client/appointment/appointment_jsns_initializer.rb +6 -1
  16. data/lib/zm/client/appointment/appointments_collection.rb +12 -9
  17. data/lib/zm/client/backup/backup.rb +5 -2
  18. data/lib/zm/client/backup/backups_collection.rb +3 -2
  19. data/lib/zm/client/base/account_objects_collection.rb +1 -0
  20. data/lib/zm/client/base/account_search_objects_collection.rb +6 -6
  21. data/lib/zm/client/base/admin_objects_collection.rb +60 -7
  22. data/lib/zm/client/base/base_account_jsns_builder.rb +89 -87
  23. data/lib/zm/client/base/base_jsns_builder.rb +3 -3
  24. data/lib/zm/client/base/base_jsns_initializer.rb +20 -15
  25. data/lib/zm/client/base/mailbox_infos_collection.rb +92 -90
  26. data/lib/zm/client/base/mailbox_object.rb +49 -160
  27. data/lib/zm/client/base/mailbox_prefs_collection.rb +54 -52
  28. data/lib/zm/client/base/object.rb +19 -2
  29. data/lib/zm/client/base/objects_collection.rb +10 -10
  30. data/lib/zm/client/base/zimbra_attribute.rb +28 -42
  31. data/lib/zm/client/base/zimbra_attributes_collection.rb +38 -24
  32. data/lib/zm/client/{cluster/batch_request.rb → batch_request.rb} +1 -1
  33. data/lib/zm/client/cluster/cluster.rb +24 -61
  34. data/lib/zm/client/cluster/cluster_config.rb +35 -15
  35. data/lib/zm/client/contact/contact.rb +15 -13
  36. data/lib/zm/client/contact/contact_jsns_builder.rb +9 -6
  37. data/lib/zm/client/contact/contact_jsns_initializer.rb +2 -2
  38. data/lib/zm/client/contact/contact_member.rb +3 -3
  39. data/lib/zm/client/contact/contact_members_collection.rb +3 -3
  40. data/lib/zm/client/contact/contacts_builder.rb +1 -1
  41. data/lib/zm/client/contact/contacts_collection.rb +2 -2
  42. data/lib/zm/client/contact/group_contact_jsns_builder.rb +18 -14
  43. data/lib/zm/client/contact/mod_group_contact.rb +12 -8
  44. data/lib/zm/client/cos/cos.rb +15 -31
  45. data/lib/zm/client/cos/cos_jsns_builder.rb +21 -21
  46. data/lib/zm/client/cos/coses_collection.rb +11 -6
  47. data/lib/zm/client/datasource/datasource.rb +3 -9
  48. data/lib/zm/client/datasource/datasource_jsns_builder.rb +4 -4
  49. data/lib/zm/client/datasource/datasources_builder.rb +1 -1
  50. data/lib/zm/client/datasource/datasources_collection.rb +2 -2
  51. data/lib/zm/client/deprecated_constants.rb +36 -0
  52. data/lib/zm/client/distributionlist/distributionlist.rb +15 -47
  53. data/lib/zm/client/distributionlist/distributionlist_aces_collection.rb +4 -4
  54. data/lib/zm/client/distributionlist/distributionlist_aliases_collection.rb +7 -5
  55. data/lib/zm/client/distributionlist/distributionlist_jsns_builder.rb +29 -41
  56. data/lib/zm/client/distributionlist/distributionlist_jsns_initializer.rb +14 -3
  57. data/lib/zm/client/distributionlist/distributionlist_members_collection.rb +14 -10
  58. data/lib/zm/client/distributionlist/distributionlist_owners_collection.rb +13 -13
  59. data/lib/zm/client/distributionlist/distributionlists_collection.rb +15 -7
  60. data/lib/zm/client/distributionlist/dls_membership_collection.rb +8 -6
  61. data/lib/zm/client/document/document.rb +5 -11
  62. data/lib/zm/client/document/document_jsns_builder.rb +2 -2
  63. data/lib/zm/client/document/documents_collection.rb +4 -4
  64. data/lib/zm/client/domain/domain.rb +8 -25
  65. data/lib/zm/client/domain/domain_jsns_builder.rb +13 -13
  66. data/lib/zm/client/domain/domains_collection.rb +13 -6
  67. data/lib/zm/client/filter_rules/filter_rules_collection.rb +1 -1
  68. data/lib/zm/client/filter_rules/outgoing_filter_rules_collection.rb +1 -1
  69. data/lib/zm/client/folder/folder.rb +34 -21
  70. data/lib/zm/client/folder/folder_default.rb +39 -0
  71. data/lib/zm/client/folder/folder_grant_jsns_builder.rb +3 -3
  72. data/lib/zm/client/folder/folder_grants_collection.rb +1 -1
  73. data/lib/zm/client/folder/folder_jsns_builder.rb +12 -12
  74. data/lib/zm/client/folder/folder_jsns_initializer.rb +1 -1
  75. data/lib/zm/client/folder/folder_retention_policies_collection.rb +6 -2
  76. data/lib/zm/client/folder/folder_view.rb +15 -0
  77. data/lib/zm/client/folder/folders_jsns_builder.rb +1 -1
  78. data/lib/zm/client/folder/mod_document_folder.rb +16 -12
  79. data/lib/zm/client/identity/identities_collection.rb +1 -1
  80. data/lib/zm/client/identity/identity.rb +3 -9
  81. data/lib/zm/client/identity/identity_jsns_builder.rb +8 -8
  82. data/lib/zm/client/{base/ldap_filter.rb → ldap_filter.rb} +1 -1
  83. data/lib/zm/client/license/licenses_collection.rb +1 -1
  84. data/lib/zm/client/mailbox/mailbox_item_concern.rb +0 -2
  85. data/lib/zm/client/message/message.rb +14 -19
  86. data/lib/zm/client/message/message_attachments_collection.rb +39 -0
  87. data/lib/zm/client/message/message_flags_collection.rb +130 -0
  88. data/lib/zm/client/message/message_jsns_builder.rb +4 -8
  89. data/lib/zm/client/message/message_jsns_initializer.rb +4 -4
  90. data/lib/zm/client/message/message_recipients.rb +19 -43
  91. data/lib/zm/client/message/messages_collection.rb +20 -4
  92. data/lib/zm/client/mountpoint/{mountpoint.rb → mount_point.rb} +4 -10
  93. data/lib/zm/client/mountpoint/{mountpoint_jsns_builder.rb → mount_point_jsns_builder.rb} +3 -3
  94. data/lib/zm/client/mountpoint/{mountpoint_jsns_initializer.rb → mount_point_jsns_initializer.rb} +1 -1
  95. data/lib/zm/client/mountpoint/{mountpoints_builder.rb → mount_points_builder.rb} +1 -1
  96. data/lib/zm/client/mta_queue/mta_queue.rb +4 -16
  97. data/lib/zm/client/mta_queue/mta_queue_action.rb +12 -0
  98. data/lib/zm/client/mta_queue/mta_queue_jsns_builder.rb +7 -7
  99. data/lib/zm/client/mta_queue/mta_queue_name.rb +14 -0
  100. data/lib/zm/client/mta_queue/mta_queues_collection.rb +4 -3
  101. data/lib/zm/client/mta_queue_item/mta_queue_items_collection.rb +1 -0
  102. data/lib/zm/client/recipient.rb +21 -0
  103. data/lib/zm/client/{common/recipients.rb → recipients.rb} +0 -16
  104. data/lib/zm/client/resource/resource.rb +3 -7
  105. data/lib/zm/client/resource/resource_jsns_builder.rb +13 -13
  106. data/lib/zm/client/resource/resources_collection.rb +20 -7
  107. data/lib/zm/client/search_folder/search_folder.rb +4 -11
  108. data/lib/zm/client/search_folder/search_folder_jsns_builder.rb +6 -6
  109. data/lib/zm/client/search_folder/search_folders_collection.rb +1 -1
  110. data/lib/zm/client/server/server.rb +16 -22
  111. data/lib/zm/client/server/server_services.rb +26 -0
  112. data/lib/zm/client/server/servers_collection.rb +6 -6
  113. data/lib/zm/client/share/share.rb +2 -5
  114. data/lib/zm/client/share/shares_builder.rb +1 -1
  115. data/lib/zm/client/share/shares_collection.rb +5 -4
  116. data/lib/zm/client/signature/signature.rb +7 -13
  117. data/lib/zm/client/signature/signature_jsns_builder.rb +13 -13
  118. data/lib/zm/client/signature/signature_jsns_initializer.rb +2 -2
  119. data/lib/zm/client/signature/signatures_collection.rb +1 -1
  120. data/lib/zm/client/tag/account_object_tags_collection.rb +45 -47
  121. data/lib/zm/client/tag/tag.rb +3 -9
  122. data/lib/zm/client/tag/tag_jsns_builder.rb +3 -3
  123. data/lib/zm/client/tag/tags_builder.rb +1 -1
  124. data/lib/zm/client/tag/tags_collection.rb +2 -2
  125. data/lib/zm/client/task/task.rb +2 -2
  126. data/lib/zm/client/task/tasks_collection.rb +2 -2
  127. data/lib/zm/client/token.rb +4 -1
  128. data/lib/zm/client/upload.rb +179 -1
  129. data/lib/zm/client/{common/utils.rb → utils.rb} +6 -3
  130. data/lib/zm/client/zm_logger.rb +1 -1
  131. data/lib/zm/client.rb +227 -10
  132. data/lib/zm/connector/network_error_handler.rb +18 -0
  133. data/lib/zm/{client/connector → connector}/rest_connector.rb +46 -40
  134. data/lib/zm/{client/connector/soap_account.rb → connector/soap_account_connector.rb} +15 -17
  135. data/lib/zm/{client/connector/soap_admin.rb → connector/soap_admin_connector.rb} +3 -5
  136. data/lib/zm/connector/soap_base_connector.rb +115 -0
  137. data/lib/zm/connector.rb +13 -0
  138. data/lib/zm/error/auth_error.rb +8 -0
  139. data/lib/zm/error/connection_error.rb +8 -0
  140. data/lib/zm/error/rest_error.rb +8 -0
  141. data/lib/zm/{client/connector → error}/soap_error.rb +1 -10
  142. data/lib/zm/error/zm_error.rb +8 -0
  143. data/lib/zm/error.rb +11 -0
  144. data/lib/zm/relationship/has_many.rb +22 -0
  145. data/lib/zm/relationship/jsns_builder.rb +21 -0
  146. data/lib/zm/relationship/relationship.rb +113 -0
  147. data/lib/zm/relationship/schema.rb +32 -0
  148. data/lib/zm/relationship.rb +5 -0
  149. data/lib/zm/{client/soap_request → soap_request}/request_methods_admin.rb +11 -5
  150. data/lib/zm/{client/soap_request → soap_request}/request_methods_mailbox.rb +1 -1
  151. data/lib/zm/{client/soap_request/account_soap_constants.rb → soap_request/soap_account_constants.rb} +1 -1
  152. data/lib/zm/{client/soap_request/admin_soap_constants.rb → soap_request/soap_admin_constants.rb} +1 -1
  153. data/lib/zm/{client/soap_request → soap_request}/soap_constants.rb +1 -1
  154. data/lib/zm/{client/soap_request → soap_request}/soap_context.rb +13 -5
  155. data/lib/zm/{client/soap_request → soap_request}/soap_element.rb +1 -1
  156. data/lib/zm/{client/soap_request/mail_soap_constants.rb → soap_request/soap_mail_constants.rb} +1 -1
  157. data/lib/zm/soap_request.rb +14 -0
  158. data/lib/zm/support/cache/entry.rb +3 -3
  159. data/lib/zm/support/cache/file_store.rb +4 -6
  160. data/lib/zm/support/cache/null_store.rb +2 -4
  161. data/lib/zm/support/cache/store.rb +17 -9
  162. data/lib/zm/support/cache.rb +13 -8
  163. data/lib/zm/support.rb +7 -0
  164. data/lib/zm/{modules → utils}/belongs_to_folder.rb +1 -1
  165. data/lib/zm/{modules → utils}/belongs_to_tag.rb +2 -2
  166. data/lib/zm/utils/content_part.rb +9 -0
  167. data/lib/zm/utils/content_type.rb +11 -0
  168. data/lib/zm/{modules → utils}/has_soap_admin_connector.rb +1 -1
  169. data/lib/zm/utils/inspector.rb +26 -0
  170. data/lib/zm/utils/log_filter.rb +30 -0
  171. data/lib/zm/utils/missing_method_static_collection.rb +17 -0
  172. data/lib/zm/utils/regex.rb +11 -0
  173. data/lib/zm/utils/search_utils.rb +13 -0
  174. data/lib/zm/utils.rb +16 -0
  175. data/lib/zm-ruby-client.rb +12 -0
  176. data/sig/zm/client/admin_objects.rbs +261 -0
  177. data/sig/zm/client/base.rbs +191 -0
  178. data/sig/zm/client/cluster.rbs +152 -0
  179. data/sig/zm/client/mailbox.rbs +766 -0
  180. data/sig/zm/error.rbs +23 -0
  181. metadata +99 -91
  182. data/.gitignore +0 -59
  183. data/.rubocop.yml +0 -6
  184. data/.ruby-version +0 -1
  185. data/Gemfile +0 -11
  186. data/SECURITY.md +0 -21
  187. data/bin/console +0 -11
  188. data/lib/zm/client/account.rb +0 -9
  189. data/lib/zm/client/ace.rb +0 -7
  190. data/lib/zm/client/appointment.rb +0 -7
  191. data/lib/zm/client/backup.rb +0 -6
  192. data/lib/zm/client/base.rb +0 -21
  193. data/lib/zm/client/cluster.rb +0 -4
  194. data/lib/zm/client/common/message.rb +0 -10
  195. data/lib/zm/client/common.rb +0 -5
  196. data/lib/zm/client/connector/soap_base.rb +0 -104
  197. data/lib/zm/client/constant.rb +0 -229
  198. data/lib/zm/client/contact.rb +0 -11
  199. data/lib/zm/client/cos.rb +0 -10
  200. data/lib/zm/client/datasource.rb +0 -7
  201. data/lib/zm/client/distributionlist.rb +0 -8
  202. data/lib/zm/client/document.rb +0 -7
  203. data/lib/zm/client/domain.rb +0 -10
  204. data/lib/zm/client/filter_rule.rb +0 -7
  205. data/lib/zm/client/folder.rb +0 -14
  206. data/lib/zm/client/identity.rb +0 -7
  207. data/lib/zm/client/license.rb +0 -5
  208. data/lib/zm/client/message/attachments_collection.rb +0 -55
  209. data/lib/zm/client/message/message_flags.rb +0 -115
  210. data/lib/zm/client/message.rb +0 -10
  211. data/lib/zm/client/mountpoint.rb +0 -7
  212. data/lib/zm/client/mta_queue.rb +0 -7
  213. data/lib/zm/client/mta_queue_item.rb +0 -6
  214. data/lib/zm/client/resource.rb +0 -7
  215. data/lib/zm/client/search_folder.rb +0 -7
  216. data/lib/zm/client/server.rb +0 -7
  217. data/lib/zm/client/share.rb +0 -7
  218. data/lib/zm/client/signature.rb +0 -7
  219. data/lib/zm/client/soap_request.rb +0 -11
  220. data/lib/zm/client/tag.rb +0 -8
  221. data/lib/zm/client/task.rb +0 -6
  222. data/lib/zm/client/upload/upload.rb +0 -160
  223. data/lib/zm/modules/base.rb +0 -9
  224. data/lib/zm/modules/common/zimbra-attrs.json +0 -58
  225. data/lib/zm/modules/inspector.rb +0 -24
  226. data/lib/zm/modules/missing_method_static_collection.rb +0 -13
  227. data/lib/zm/modules/zm_model.rb +0 -43
  228. data/zm-ruby-client.gemspec +0 -27
  229. /data/lib/zm/client/mountpoint/{mountpoints_collection.rb → mount_points_collection.rb} +0 -0
data/sig/zm/error.rbs ADDED
@@ -0,0 +1,23 @@
1
+ module Zm
2
+ module Error
3
+ class ZmError < StandardError
4
+ end
5
+
6
+ class SoapError < StandardError
7
+ attr_reader reason: String?
8
+ attr_reader code: String?
9
+
10
+ def initialize: (Hash[Symbol, untyped] soapbody) -> void
11
+ end
12
+
13
+ class AuthError < SoapError
14
+ end
15
+
16
+ class RestError < StandardError
17
+ end
18
+
19
+ # Raised on connection failure, timeout or SSL error, the Faraday error is kept as cause.
20
+ class ConnectionError < ZmError
21
+ end
22
+ end
23
+ end
metadata CHANGED
@@ -1,90 +1,98 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zm-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxime Désécot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-21 00:00:00.000000000 Z
11
+ date: 2026-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: csv
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.15.0
19
+ version: '3.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.15.0
26
+ version: '3.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.14'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.14'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: faraday-multipart
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.1'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: logger
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.6'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.6'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: msgpack
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - ">="
73
+ - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: 1.8.0
75
+ version: '1.8'
62
76
  type: :runtime
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - ">="
80
+ - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: 1.8.0
69
- description: Zimbra Soap Librairy using SOAP Json interface
82
+ version: '1.8'
83
+ description: Ruby library to manage Zimbra and Carbonio through their SOAP (JSON)
84
+ and REST APIs
70
85
  email: maxime.desecot@gmail.com
71
86
  executables: []
72
87
  extensions: []
73
88
  extra_rdoc_files: []
74
89
  files:
75
- - ".gitignore"
76
- - ".rubocop.yml"
77
- - ".ruby-version"
78
90
  - CHANGELOG.md
79
- - Gemfile
80
91
  - LICENSE
81
92
  - README.md
82
- - SECURITY.md
83
93
  - VERSION
84
- - bin/console
85
94
  - lib/zm-ruby-client.rb
86
95
  - lib/zm/client.rb
87
- - lib/zm/client/account.rb
88
96
  - lib/zm/client/account/account.rb
89
97
  - lib/zm/client/account/account_aliases_collection.rb
90
98
  - lib/zm/client/account/account_dls_membership_collection.rb
@@ -93,31 +101,26 @@ files:
93
101
  - lib/zm/client/account/account_jsns_initializer.rb
94
102
  - lib/zm/client/account/accounts_builder.rb
95
103
  - lib/zm/client/account/accounts_collection.rb
96
- - lib/zm/client/ace.rb
97
104
  - lib/zm/client/ace/ace.rb
98
105
  - lib/zm/client/ace/ace_jsns_builder.rb
99
106
  - lib/zm/client/ace/ace_jsns_initializer.rb
100
107
  - lib/zm/client/ace/aces_builder.rb
101
108
  - lib/zm/client/ace/aces_collection.rb
102
- - lib/zm/client/appointment.rb
103
109
  - lib/zm/client/appointment/appointment.rb
104
110
  - lib/zm/client/appointment/appointment_jsns_builder.rb
105
111
  - lib/zm/client/appointment/appointment_jsns_initializer.rb
106
112
  - lib/zm/client/appointment/appointments_builder.rb
107
113
  - lib/zm/client/appointment/appointments_collection.rb
108
- - lib/zm/client/backup.rb
109
114
  - lib/zm/client/backup/backup.rb
110
115
  - lib/zm/client/backup/backup_jsns_initializer.rb
111
116
  - lib/zm/client/backup/backups_builder.rb
112
117
  - lib/zm/client/backup/backups_collection.rb
113
- - lib/zm/client/base.rb
114
118
  - lib/zm/client/base/account_objects_collection.rb
115
119
  - lib/zm/client/base/account_search_objects_collection.rb
116
120
  - lib/zm/client/base/admin_objects_collection.rb
117
121
  - lib/zm/client/base/base_account_jsns_builder.rb
118
122
  - lib/zm/client/base/base_jsns_builder.rb
119
123
  - lib/zm/client/base/base_jsns_initializer.rb
120
- - lib/zm/client/base/ldap_filter.rb
121
124
  - lib/zm/client/base/mailbox_infos_collection.rb
122
125
  - lib/zm/client/base/mailbox_object.rb
123
126
  - lib/zm/client/base/mailbox_prefs_collection.rb
@@ -126,21 +129,9 @@ files:
126
129
  - lib/zm/client/base/objects_collection.rb
127
130
  - lib/zm/client/base/zimbra_attribute.rb
128
131
  - lib/zm/client/base/zimbra_attributes_collection.rb
129
- - lib/zm/client/cluster.rb
130
- - lib/zm/client/cluster/batch_request.rb
132
+ - lib/zm/client/batch_request.rb
131
133
  - lib/zm/client/cluster/cluster.rb
132
134
  - lib/zm/client/cluster/cluster_config.rb
133
- - lib/zm/client/common.rb
134
- - lib/zm/client/common/message.rb
135
- - lib/zm/client/common/recipients.rb
136
- - lib/zm/client/common/utils.rb
137
- - lib/zm/client/connector/rest_connector.rb
138
- - lib/zm/client/connector/soap_account.rb
139
- - lib/zm/client/connector/soap_admin.rb
140
- - lib/zm/client/connector/soap_base.rb
141
- - lib/zm/client/connector/soap_error.rb
142
- - lib/zm/client/constant.rb
143
- - lib/zm/client/contact.rb
144
135
  - lib/zm/client/contact/contact.rb
145
136
  - lib/zm/client/contact/contact_jsns_builder.rb
146
137
  - lib/zm/client/contact/contact_jsns_initializer.rb
@@ -150,7 +141,6 @@ files:
150
141
  - lib/zm/client/contact/contacts_collection.rb
151
142
  - lib/zm/client/contact/group_contact_jsns_builder.rb
152
143
  - lib/zm/client/contact/mod_group_contact.rb
153
- - lib/zm/client/cos.rb
154
144
  - lib/zm/client/cos/cos.rb
155
145
  - lib/zm/client/cos/cos_accounts_collection.rb
156
146
  - lib/zm/client/cos/cos_domains_collection.rb
@@ -159,13 +149,12 @@ files:
159
149
  - lib/zm/client/cos/cos_servers_collection.rb
160
150
  - lib/zm/client/cos/coses_builder.rb
161
151
  - lib/zm/client/cos/coses_collection.rb
162
- - lib/zm/client/datasource.rb
163
152
  - lib/zm/client/datasource/datasource.rb
164
153
  - lib/zm/client/datasource/datasource_jsns_builder.rb
165
154
  - lib/zm/client/datasource/datasource_jsns_initializer.rb
166
155
  - lib/zm/client/datasource/datasources_builder.rb
167
156
  - lib/zm/client/datasource/datasources_collection.rb
168
- - lib/zm/client/distributionlist.rb
157
+ - lib/zm/client/deprecated_constants.rb
169
158
  - lib/zm/client/distributionlist/distributionlist.rb
170
159
  - lib/zm/client/distributionlist/distributionlist_aces_collection.rb
171
160
  - lib/zm/client/distributionlist/distributionlist_aliases_collection.rb
@@ -176,13 +165,11 @@ files:
176
165
  - lib/zm/client/distributionlist/distributionlists_builder.rb
177
166
  - lib/zm/client/distributionlist/distributionlists_collection.rb
178
167
  - lib/zm/client/distributionlist/dls_membership_collection.rb
179
- - lib/zm/client/document.rb
180
168
  - lib/zm/client/document/document.rb
181
169
  - lib/zm/client/document/document_jsns_builder.rb
182
170
  - lib/zm/client/document/document_jsns_initializer.rb
183
171
  - lib/zm/client/document/documents_builder.rb
184
172
  - lib/zm/client/document/documents_collection.rb
185
- - lib/zm/client/domain.rb
186
173
  - lib/zm/client/domain/domain.rb
187
174
  - lib/zm/client/domain/domain_accounts_collection.rb
188
175
  - lib/zm/client/domain/domain_distributionlists_collection.rb
@@ -191,14 +178,13 @@ files:
191
178
  - lib/zm/client/domain/domain_resources_collection.rb
192
179
  - lib/zm/client/domain/domains_builder.rb
193
180
  - lib/zm/client/domain/domains_collection.rb
194
- - lib/zm/client/filter_rule.rb
195
181
  - lib/zm/client/filter_rules/filter_rule.rb
196
182
  - lib/zm/client/filter_rules/filter_rule_jsns_initializer.rb
197
183
  - lib/zm/client/filter_rules/filter_rules_builder.rb
198
184
  - lib/zm/client/filter_rules/filter_rules_collection.rb
199
185
  - lib/zm/client/filter_rules/outgoing_filter_rules_collection.rb
200
- - lib/zm/client/folder.rb
201
186
  - lib/zm/client/folder/folder.rb
187
+ - lib/zm/client/folder/folder_default.rb
202
188
  - lib/zm/client/folder/folder_grant.rb
203
189
  - lib/zm/client/folder/folder_grant_jsns_builder.rb
204
190
  - lib/zm/client/folder/folder_grants_collection.rb
@@ -206,113 +192,117 @@ files:
206
192
  - lib/zm/client/folder/folder_jsns_initializer.rb
207
193
  - lib/zm/client/folder/folder_retention_policies_collection.rb
208
194
  - lib/zm/client/folder/folder_retention_policy.rb
195
+ - lib/zm/client/folder/folder_view.rb
209
196
  - lib/zm/client/folder/folders_builder.rb
210
197
  - lib/zm/client/folder/folders_collection.rb
211
198
  - lib/zm/client/folder/folders_jsns_builder.rb
212
199
  - lib/zm/client/folder/mod_document_folder.rb
213
- - lib/zm/client/identity.rb
214
200
  - lib/zm/client/identity/identities_builder.rb
215
201
  - lib/zm/client/identity/identities_collection.rb
216
202
  - lib/zm/client/identity/identity.rb
217
203
  - lib/zm/client/identity/identity_jsns_builder.rb
218
204
  - lib/zm/client/identity/identity_jsns_initializer.rb
219
- - lib/zm/client/license.rb
205
+ - lib/zm/client/ldap_filter.rb
220
206
  - lib/zm/client/license/license.rb
221
207
  - lib/zm/client/license/license_jsns_initializer.rb
222
208
  - lib/zm/client/license/licenses_collection.rb
223
209
  - lib/zm/client/mailbox/mailbox_item_concern.rb
224
210
  - lib/zm/client/mailbox/mailbox_item_id.rb
225
- - lib/zm/client/message.rb
226
- - lib/zm/client/message/attachments_collection.rb
227
211
  - lib/zm/client/message/message.rb
228
- - lib/zm/client/message/message_flags.rb
212
+ - lib/zm/client/message/message_attachments_collection.rb
213
+ - lib/zm/client/message/message_flags_collection.rb
229
214
  - lib/zm/client/message/message_jsns_builder.rb
230
215
  - lib/zm/client/message/message_jsns_initializer.rb
231
216
  - lib/zm/client/message/message_recipients.rb
232
217
  - lib/zm/client/message/messages_builder.rb
233
218
  - lib/zm/client/message/messages_collection.rb
234
- - lib/zm/client/mountpoint.rb
235
- - lib/zm/client/mountpoint/mountpoint.rb
236
- - lib/zm/client/mountpoint/mountpoint_jsns_builder.rb
237
- - lib/zm/client/mountpoint/mountpoint_jsns_initializer.rb
238
- - lib/zm/client/mountpoint/mountpoints_builder.rb
239
- - lib/zm/client/mountpoint/mountpoints_collection.rb
240
- - lib/zm/client/mta_queue.rb
219
+ - lib/zm/client/mountpoint/mount_point.rb
220
+ - lib/zm/client/mountpoint/mount_point_jsns_builder.rb
221
+ - lib/zm/client/mountpoint/mount_point_jsns_initializer.rb
222
+ - lib/zm/client/mountpoint/mount_points_builder.rb
223
+ - lib/zm/client/mountpoint/mount_points_collection.rb
241
224
  - lib/zm/client/mta_queue/mta_queue.rb
225
+ - lib/zm/client/mta_queue/mta_queue_action.rb
242
226
  - lib/zm/client/mta_queue/mta_queue_jsns_builder.rb
243
227
  - lib/zm/client/mta_queue/mta_queue_jsns_initializer.rb
228
+ - lib/zm/client/mta_queue/mta_queue_name.rb
244
229
  - lib/zm/client/mta_queue/mta_queues_builder.rb
245
230
  - lib/zm/client/mta_queue/mta_queues_collection.rb
246
- - lib/zm/client/mta_queue_item.rb
247
231
  - lib/zm/client/mta_queue_item/mta_queue_item.rb
248
232
  - lib/zm/client/mta_queue_item/mta_queue_item_jsns_initializer.rb
249
233
  - lib/zm/client/mta_queue_item/mta_queue_items_builder.rb
250
234
  - lib/zm/client/mta_queue_item/mta_queue_items_collection.rb
251
- - lib/zm/client/resource.rb
235
+ - lib/zm/client/recipient.rb
236
+ - lib/zm/client/recipients.rb
252
237
  - lib/zm/client/resource/resource.rb
253
238
  - lib/zm/client/resource/resource_jsns_builder.rb
254
239
  - lib/zm/client/resource/resource_jsns_initializer.rb
255
240
  - lib/zm/client/resource/resources_builder.rb
256
241
  - lib/zm/client/resource/resources_collection.rb
257
- - lib/zm/client/search_folder.rb
258
242
  - lib/zm/client/search_folder/search_folder.rb
259
243
  - lib/zm/client/search_folder/search_folder_jsns_builder.rb
260
244
  - lib/zm/client/search_folder/search_folder_jsns_initializer.rb
261
245
  - lib/zm/client/search_folder/search_folders_builder.rb
262
246
  - lib/zm/client/search_folder/search_folders_collection.rb
263
- - lib/zm/client/server.rb
264
247
  - lib/zm/client/server/server.rb
265
248
  - lib/zm/client/server/server_accounts_collection.rb
266
249
  - lib/zm/client/server/server_jsns_initializer.rb
250
+ - lib/zm/client/server/server_services.rb
267
251
  - lib/zm/client/server/servers_builder.rb
268
252
  - lib/zm/client/server/servers_collection.rb
269
- - lib/zm/client/share.rb
270
253
  - lib/zm/client/share/share.rb
271
254
  - lib/zm/client/share/share_jsns_initializer.rb
272
255
  - lib/zm/client/share/share_mountpoints_collection.rb
273
256
  - lib/zm/client/share/shares_builder.rb
274
257
  - lib/zm/client/share/shares_collection.rb
275
- - lib/zm/client/signature.rb
276
258
  - lib/zm/client/signature/signature.rb
277
259
  - lib/zm/client/signature/signature_jsns_builder.rb
278
260
  - lib/zm/client/signature/signature_jsns_initializer.rb
279
261
  - lib/zm/client/signature/signatures_builder.rb
280
262
  - lib/zm/client/signature/signatures_collection.rb
281
- - lib/zm/client/soap_request.rb
282
- - lib/zm/client/soap_request/account_soap_constants.rb
283
- - lib/zm/client/soap_request/admin_soap_constants.rb
284
- - lib/zm/client/soap_request/mail_soap_constants.rb
285
- - lib/zm/client/soap_request/request_methods_admin.rb
286
- - lib/zm/client/soap_request/request_methods_mailbox.rb
287
- - lib/zm/client/soap_request/soap_constants.rb
288
- - lib/zm/client/soap_request/soap_context.rb
289
- - lib/zm/client/soap_request/soap_element.rb
290
- - lib/zm/client/tag.rb
291
263
  - lib/zm/client/tag/account_object_tags_collection.rb
292
264
  - lib/zm/client/tag/tag.rb
293
265
  - lib/zm/client/tag/tag_jsns_builder.rb
294
266
  - lib/zm/client/tag/tag_jsns_initializer.rb
295
267
  - lib/zm/client/tag/tags_builder.rb
296
268
  - lib/zm/client/tag/tags_collection.rb
297
- - lib/zm/client/task.rb
298
269
  - lib/zm/client/task/task.rb
299
270
  - lib/zm/client/task/task_jsns_initializer.rb
300
271
  - lib/zm/client/task/tasks_builder.rb
301
272
  - lib/zm/client/task/tasks_collection.rb
302
273
  - lib/zm/client/token.rb
303
274
  - lib/zm/client/upload.rb
304
- - lib/zm/client/upload/upload.rb
275
+ - lib/zm/client/utils.rb
305
276
  - lib/zm/client/version.rb
306
277
  - lib/zm/client/zm_logger.rb
307
- - lib/zm/modules/base.rb
308
- - lib/zm/modules/belongs_to_folder.rb
309
- - lib/zm/modules/belongs_to_tag.rb
278
+ - lib/zm/connector.rb
279
+ - lib/zm/connector/network_error_handler.rb
280
+ - lib/zm/connector/rest_connector.rb
281
+ - lib/zm/connector/soap_account_connector.rb
282
+ - lib/zm/connector/soap_admin_connector.rb
283
+ - lib/zm/connector/soap_base_connector.rb
284
+ - lib/zm/error.rb
285
+ - lib/zm/error/auth_error.rb
286
+ - lib/zm/error/connection_error.rb
287
+ - lib/zm/error/rest_error.rb
288
+ - lib/zm/error/soap_error.rb
289
+ - lib/zm/error/zm_error.rb
310
290
  - lib/zm/modules/common/zimbra-attrs.csv
311
- - lib/zm/modules/common/zimbra-attrs.json
312
- - lib/zm/modules/has_soap_admin_connector.rb
313
- - lib/zm/modules/inspector.rb
314
- - lib/zm/modules/missing_method_static_collection.rb
315
- - lib/zm/modules/zm_model.rb
291
+ - lib/zm/relationship.rb
292
+ - lib/zm/relationship/has_many.rb
293
+ - lib/zm/relationship/jsns_builder.rb
294
+ - lib/zm/relationship/relationship.rb
295
+ - lib/zm/relationship/schema.rb
296
+ - lib/zm/soap_request.rb
297
+ - lib/zm/soap_request/request_methods_admin.rb
298
+ - lib/zm/soap_request/request_methods_mailbox.rb
299
+ - lib/zm/soap_request/soap_account_constants.rb
300
+ - lib/zm/soap_request/soap_admin_constants.rb
301
+ - lib/zm/soap_request/soap_constants.rb
302
+ - lib/zm/soap_request/soap_context.rb
303
+ - lib/zm/soap_request/soap_element.rb
304
+ - lib/zm/soap_request/soap_mail_constants.rb
305
+ - lib/zm/support.rb
316
306
  - lib/zm/support/cache.rb
317
307
  - lib/zm/support/cache/entry.rb
318
308
  - lib/zm/support/cache/file_store.rb
@@ -320,12 +310,30 @@ files:
320
310
  - lib/zm/support/cache/request_strategy.rb
321
311
  - lib/zm/support/cache/store.rb
322
312
  - lib/zm/support/cache/strategy.rb
313
+ - lib/zm/utils.rb
314
+ - lib/zm/utils/belongs_to_folder.rb
315
+ - lib/zm/utils/belongs_to_tag.rb
316
+ - lib/zm/utils/content_part.rb
317
+ - lib/zm/utils/content_type.rb
318
+ - lib/zm/utils/has_soap_admin_connector.rb
319
+ - lib/zm/utils/inspector.rb
320
+ - lib/zm/utils/log_filter.rb
321
+ - lib/zm/utils/missing_method_static_collection.rb
322
+ - lib/zm/utils/regex.rb
323
+ - lib/zm/utils/search_utils.rb
323
324
  - lib/zm/utils/thread_pool.rb
324
- - zm-ruby-client.gemspec
325
+ - sig/zm/client/admin_objects.rbs
326
+ - sig/zm/client/base.rbs
327
+ - sig/zm/client/cluster.rbs
328
+ - sig/zm/client/mailbox.rbs
329
+ - sig/zm/error.rbs
325
330
  homepage: https://github.com/RaoH37/zm-ruby-client
326
331
  licenses:
327
332
  - GPL-3.0-only
328
333
  metadata:
334
+ source_code_uri: https://github.com/RaoH37/zm-ruby-client
335
+ changelog_uri: https://github.com/RaoH37/zm-ruby-client/blob/master/CHANGELOG.md
336
+ bug_tracker_uri: https://github.com/RaoH37/zm-ruby-client/issues
329
337
  rubygems_mfa_required: 'true'
330
338
  post_install_message:
331
339
  rdoc_options: []
@@ -335,15 +343,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
335
343
  requirements:
336
344
  - - ">="
337
345
  - !ruby/object:Gem::Version
338
- version: '3.2'
346
+ version: '3.3'
339
347
  required_rubygems_version: !ruby/object:Gem::Requirement
340
348
  requirements:
341
349
  - - ">="
342
350
  - !ruby/object:Gem::Version
343
- version: 1.8.11
351
+ version: '0'
344
352
  requirements: []
345
- rubygems_version: 3.4.19
353
+ rubygems_version: 3.5.22
346
354
  signing_key:
347
355
  specification_version: 4
348
- summary: zm-ruby-client
356
+ summary: Ruby client for the Zimbra and Carbonio SOAP and REST APIs
349
357
  test_files: []
data/.gitignore DELETED
@@ -1,59 +0,0 @@
1
- *.gem
2
- *.rbc
3
- *.lock
4
- /TODO.md
5
- /.config
6
- /coverage/
7
- /InstalledFiles
8
- /pkg/
9
- /spec/reports/
10
- /spec/examples.txt
11
- /test/tmp/
12
- /test/fixtures/
13
- /test/version_tmp/
14
- /tmp/
15
- /demo/
16
- /.idea
17
- /zm-ruby-client.iml
18
-
19
- #/examples
20
- /vendor
21
-
22
- # Used by dotenv library to load environment variables.
23
- # .env
24
-
25
- ## Specific to RubyMotion:
26
- .dat*
27
- .repl_history
28
- build/
29
- *.bridgesupport
30
- build-iPhoneOS/
31
- build-iPhoneSimulator/
32
-
33
- ## Specific to RubyMotion (use of CocoaPods):
34
- #
35
- # We recommend against adding the Pods directory to your .gitignore. However
36
- # you should judge for yourself, the pros and cons are mentioned at:
37
- # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
38
- #
39
- # vendor/Pods/
40
-
41
- ## Documentation cache and generated files:
42
- /.yardoc/
43
- /_yardoc/
44
- /doc/
45
- /rdoc/
46
-
47
- ## Environment normalization:
48
- /.bundle/
49
- /vendor/bundle
50
- /lib/bundler/man/
51
-
52
- # for a library or gem, you might want to ignore these files since the code is
53
- # intended to run in multiple environments; otherwise, check them in:
54
- # Gemfile.lock
55
- # .ruby-version
56
- # .ruby-gemset
57
-
58
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
59
- .rvmrc
data/.rubocop.yml DELETED
@@ -1,6 +0,0 @@
1
- AllCops:
2
- NewCops: enable
3
- TargetRubyVersion: 3.2
4
-
5
- Layout/LineLength:
6
- Max: 120
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 3.2.9
data/Gemfile DELETED
@@ -1,11 +0,0 @@
1
- source 'https://rubygems.org'
2
- git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
-
4
- gemspec
5
-
6
- group :development do
7
- gem "rubocop"
8
- gem "solargraph"
9
- gem "yard"
10
- gem "benchmark-ips"
11
- end
data/SECURITY.md DELETED
@@ -1,21 +0,0 @@
1
- # Security Policy
2
-
3
- ## Supported Versions
4
-
5
- Use this section to tell people about which versions of your project are
6
- currently being supported with security updates.
7
-
8
- | Version | Supported |
9
- | ------- | ------------------ |
10
- | 5.1.x | :white_check_mark: |
11
- | 5.0.x | :x: |
12
- | 4.0.x | :white_check_mark: |
13
- | < 4.0 | :x: |
14
-
15
- ## Reporting a Vulnerability
16
-
17
- Use this section to tell people how to report a vulnerability.
18
-
19
- Tell them where to go, how often they can expect to get an update on a
20
- reported vulnerability, what to expect if the vulnerability is accepted or
21
- declined, etc.
data/bin/console DELETED
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- lib = File.expand_path('../lib/', __dir__)
5
- $LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
6
-
7
- require 'zm-ruby-client'
8
- puts "Zm::Client.version=#{Zm::Client.version}"
9
-
10
- require 'irb'
11
- IRB.start(__FILE__)
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'zm/client/account/account'
4
- require 'zm/client/account/account_jsns_initializer'
5
- require 'zm/client/account/account_jsns_builder'
6
- require 'zm/client/account/accounts_builder'
7
- require 'zm/client/account/accounts_collection'
8
- require 'zm/client/account/account_dls_membership_collection'
9
- require 'zm/client/account/account_dls_owner_collection'
data/lib/zm/client/ace.rb DELETED
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'zm/client/ace/ace'
4
- require 'zm/client/ace/ace_jsns_builder'
5
- require 'zm/client/ace/ace_jsns_initializer'
6
- require 'zm/client/ace/aces_builder'
7
- require 'zm/client/ace/aces_collection'
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'zm/client/appointment/appointment'
4
- require 'zm/client/appointment/appointment_jsns_builder'
5
- require 'zm/client/appointment/appointment_jsns_initializer'
6
- require 'zm/client/appointment/appointments_builder'
7
- require 'zm/client/appointment/appointments_collection'
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'zm/client/backup/backup'
4
- require 'zm/client/backup/backup_jsns_initializer'
5
- require 'zm/client/backup/backups_builder'
6
- require 'zm/client/backup/backups_collection'
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'faraday'
4
- require 'openssl'
5
-
6
- require 'zm/modules/base'
7
-
8
- require 'zm/client/base/zimbra_attributes_collection'
9
- require 'zm/client/base/object'
10
- require 'zm/client/base/base_account_jsns_builder'
11
- require 'zm/client/base/base_jsns_builder'
12
- require 'zm/client/base/base_jsns_initializer'
13
- require 'zm/client/base/objects_builder'
14
- require 'zm/client/base/objects_collection'
15
- require 'zm/client/base/admin_objects_collection'
16
- require 'zm/client/base/account_objects_collection'
17
- require 'zm/client/base/account_search_objects_collection'
18
- require 'zm/client/base/ldap_filter'
19
- require 'zm/client/base/mailbox_object'
20
- require 'zm/client/base/mailbox_infos_collection'
21
- require 'zm/client/base/mailbox_prefs_collection'
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'zm/client/cluster/cluster_config'
4
- require 'zm/client/cluster/cluster'
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Zm
4
- module Client
5
- # message content
6
- class BodyMail
7
- attr_accessor :text, :html
8
- end
9
- end
10
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'zm/client/common/utils'
4
- require 'zm/client/common/recipients'
5
- require 'zm/client/common/message'