comet_backup_ruby_sdk 1.6.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +5 -0
  4. data/CHANGELOG.md +35 -0
  5. data/Gemfile +0 -0
  6. data/Gemfile.lock +3 -3
  7. data/LICENSE +0 -0
  8. data/README.md +1 -1
  9. data/RELEASING.md +4 -3
  10. data/Rakefile +0 -0
  11. data/comet_backup_ruby_sdk.gemspec +2 -2
  12. data/lib/comet/api_response_error.rb +0 -0
  13. data/lib/comet/comet_server.rb +140 -2
  14. data/lib/comet/definitions.rb +50 -4
  15. data/lib/comet/models/add_bucket_response_message.rb +0 -0
  16. data/lib/comet/models/admin_account_properties_response.rb +0 -0
  17. data/lib/comet/models/admin_email_options.rb +0 -0
  18. data/lib/comet/models/admin_resource_response.rb +0 -0
  19. data/lib/comet/models/admin_security_options.rb +0 -0
  20. data/lib/comet/models/admin_u2fregistration.rb +0 -0
  21. data/lib/comet/models/admin_user_permissions.rb +0 -0
  22. data/lib/comet/models/available_download.rb +0 -0
  23. data/lib/comet/models/azure_destination_location.rb +0 -0
  24. data/lib/comet/models/b2destination_location.rb +8 -0
  25. data/lib/comet/models/b2storage_extra_info.rb +0 -0
  26. data/lib/comet/models/b2transaction_totals.rb +0 -0
  27. data/lib/comet/models/b2virtual_storage_role_settings.rb +6 -0
  28. data/lib/comet/models/backup_job_advanced_options.rb +0 -0
  29. data/lib/comet/models/backup_job_detail.rb +0 -0
  30. data/lib/comet/models/backup_job_progress.rb +0 -0
  31. data/lib/comet/models/backup_rule_config.rb +0 -0
  32. data/lib/comet/models/backup_rule_event_triggers.rb +0 -0
  33. data/lib/comet/models/branding_options.rb +0 -0
  34. data/lib/comet/models/branding_properties.rb +0 -0
  35. data/lib/comet/models/browse_disk_drives_response.rb +0 -0
  36. data/lib/comet/models/browse_edbresponse.rb +0 -0
  37. data/lib/comet/models/browse_hvresponse.rb +0 -0
  38. data/lib/comet/models/browse_office_365objects_response.rb +0 -0
  39. data/lib/comet/models/browse_sqlserver_response.rb +0 -0
  40. data/lib/comet/models/browse_vssresponse.rb +0 -0
  41. data/lib/comet/models/bucket_properties.rb +0 -0
  42. data/lib/comet/models/bucket_usage_info.rb +0 -0
  43. data/lib/comet/models/comet_apiresponse_message.rb +0 -0
  44. data/lib/comet/models/comet_destination_location.rb +0 -0
  45. data/lib/comet/models/constellation_check_report.rb +0 -0
  46. data/lib/comet/models/constellation_stats.rb +0 -0
  47. data/lib/comet/models/constellation_status_apiresponse.rb +0 -0
  48. data/lib/comet/models/content_measurement.rb +0 -0
  49. data/lib/comet/models/content_measurement_component.rb +0 -0
  50. data/lib/comet/models/create_group_policy_response.rb +0 -0
  51. data/lib/comet/models/custom_remote_bucket_settings.rb +0 -0
  52. data/lib/comet/models/default_email_report_policy.rb +0 -0
  53. data/lib/comet/models/default_source_with_osrestriction.rb +0 -0
  54. data/lib/comet/models/destination_config.rb +0 -0
  55. data/lib/comet/models/destination_location.rb +0 -0
  56. data/lib/comet/models/destination_statistics.rb +0 -0
  57. data/lib/comet/models/device_config.rb +22 -0
  58. data/lib/comet/models/disk_drive.rb +0 -0
  59. data/lib/comet/models/dispatcher_admin_sources_response.rb +0 -0
  60. data/lib/comet/models/dispatcher_stored_objects_response.rb +0 -0
  61. data/lib/comet/models/dispatcher_vault_snapshots_response.rb +0 -0
  62. data/lib/comet/models/dispatcher_windisk_snapshot_response.rb +99 -0
  63. data/lib/comet/models/edbfile_info.rb +0 -0
  64. data/lib/comet/models/email_options.rb +0 -0
  65. data/lib/comet/models/email_report_config.rb +0 -0
  66. data/lib/comet/models/email_report_generated_preview.rb +25 -0
  67. data/lib/comet/models/external_ldapauthentication_source_settings.rb +0 -0
  68. data/lib/comet/models/extra_file_exclusion.rb +0 -0
  69. data/lib/comet/models/ftpdestination_location.rb +0 -0
  70. data/lib/comet/models/get_group_policy_response.rb +0 -0
  71. data/lib/comet/models/get_profile_and_hash_response_message.rb +0 -0
  72. data/lib/comet/models/get_profile_hash_response_message.rb +0 -0
  73. data/lib/comet/models/group_policy.rb +0 -0
  74. data/lib/comet/models/hyper_vmachine_info.rb +0 -0
  75. data/lib/comet/models/install_creds.rb +0 -0
  76. data/lib/comet/models/install_token.rb +0 -0
  77. data/lib/comet/models/install_token_response.rb +0 -0
  78. data/lib/comet/models/job_entry.rb +0 -0
  79. data/lib/comet/models/live_user_connection.rb +11 -0
  80. data/lib/comet/models/local_destination_location.rb +0 -0
  81. data/lib/comet/models/mac_oscode_sign_properties.rb +0 -0
  82. data/lib/comet/models/mongo_dbconnection.rb +0 -0
  83. data/lib/comet/models/mssqlconnection.rb +0 -0
  84. data/lib/comet/models/my_sqlconnection.rb +39 -0
  85. data/lib/comet/models/new_bucket_detail.rb +0 -0
  86. data/lib/comet/models/news_entry.rb +0 -0
  87. data/lib/comet/models/office_365connection.rb +8 -0
  88. data/lib/comet/models/office_365credential.rb +0 -0
  89. data/lib/comet/models/office_365custom_setting.rb +0 -0
  90. data/lib/comet/models/office_365object_info.rb +0 -0
  91. data/lib/comet/models/organization.rb +0 -0
  92. data/lib/comet/models/organization_response.rb +0 -0
  93. data/lib/comet/models/osinfo.rb +0 -0
  94. data/lib/comet/models/partition.rb +0 -0
  95. data/lib/comet/models/private_branding_properties.rb +0 -0
  96. data/lib/comet/models/protected_item_engine_type_policy.rb +0 -0
  97. data/lib/comet/models/public_branding_properties.rb +0 -0
  98. data/lib/comet/models/register_office_application_begin_response.rb +0 -0
  99. data/lib/comet/models/register_office_application_check_response.rb +0 -0
  100. data/lib/comet/models/remote_server_address.rb +0 -0
  101. data/lib/comet/models/remote_storage_option.rb +0 -0
  102. data/lib/comet/models/replicator_state_apiresponse.rb +0 -0
  103. data/lib/comet/models/request_storage_vault_response_message.rb +0 -0
  104. data/lib/comet/models/restore_job_advanced_options.rb +0 -0
  105. data/lib/comet/models/retention_policy.rb +0 -0
  106. data/lib/comet/models/retention_range.rb +0 -0
  107. data/lib/comet/models/s3destination_location.rb +0 -0
  108. data/lib/comet/models/schedule_config.rb +0 -0
  109. data/lib/comet/models/search_clause.rb +0 -0
  110. data/lib/comet/models/self_backup_statistics.rb +0 -0
  111. data/lib/comet/models/server_config_options_branding_fragment.rb +0 -0
  112. data/lib/comet/models/server_config_options_software_build_role_fragment.rb +0 -0
  113. data/lib/comet/models/server_meta_branding_properties.rb +9 -0
  114. data/lib/comet/models/server_meta_version_info.rb +0 -0
  115. data/lib/comet/models/session_key_regenerated_response.rb +0 -0
  116. data/lib/comet/models/sftpdestination_location.rb +0 -0
  117. data/lib/comet/models/size_measurement.rb +0 -0
  118. data/lib/comet/models/software_build_role_options.rb +0 -0
  119. data/lib/comet/models/software_update_news_response.rb +0 -0
  120. data/lib/comet/models/source_basic_info.rb +0 -0
  121. data/lib/comet/models/source_config.rb +0 -0
  122. data/lib/comet/models/source_include_pattern.rb +0 -0
  123. data/lib/comet/models/source_statistics.rb +0 -0
  124. data/lib/comet/models/spanned_destination_location.rb +0 -0
  125. data/lib/comet/models/spanned_storage_extra_info.rb +0 -0
  126. data/lib/comet/models/sshconnection.rb +0 -0
  127. data/lib/comet/models/stat_result.rb +0 -0
  128. data/lib/comet/models/storage_free_space_info.rb +0 -0
  129. data/lib/comet/models/storage_vault_provider_policy.rb +0 -0
  130. data/lib/comet/models/stored_object.rb +0 -0
  131. data/lib/comet/models/streamable_event.rb +0 -0
  132. data/lib/comet/models/swift_destination_location.rb +0 -0
  133. data/lib/comet/models/test_response.rb +0 -0
  134. data/lib/comet/models/totp_regenerated_response.rb +0 -0
  135. data/lib/comet/models/u2fregister_request.rb +0 -0
  136. data/lib/comet/models/u2fregistered_key.rb +0 -0
  137. data/lib/comet/models/u2fregistration_challenge_response.rb +0 -0
  138. data/lib/comet/models/u2fsign_request.rb +0 -0
  139. data/lib/comet/models/u2fsign_response.rb +0 -0
  140. data/lib/comet/models/uninstall_config.rb +0 -0
  141. data/lib/comet/models/update_campaign_device_status.rb +0 -0
  142. data/lib/comet/models/update_campaign_options.rb +0 -0
  143. data/lib/comet/models/update_campaign_properties.rb +0 -0
  144. data/lib/comet/models/update_campaign_status.rb +0 -0
  145. data/lib/comet/models/update_campaign_status_device_entry.rb +0 -0
  146. data/lib/comet/models/user_custom_email_settings.rb +0 -0
  147. data/lib/comet/models/user_on_server.rb +0 -0
  148. data/lib/comet/models/user_policy.rb +0 -0
  149. data/lib/comet/models/user_profile_config.rb +0 -0
  150. data/lib/comet/models/user_profile_fragment.rb +0 -0
  151. data/lib/comet/models/vault_snapshot.rb +0 -0
  152. data/lib/comet/models/vsscomponent.rb +0 -0
  153. data/lib/comet/models/vsswriter_info.rb +0 -0
  154. data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +0 -0
  155. data/lib/comet/models/web_interface_branding_properties.rb +0 -0
  156. data/lib/comet/models/webhook_option.rb +16 -0
  157. data/lib/comet/models/win_smbauth.rb +0 -0
  158. data/lib/comet/models/windows_code_sign_properties.rb +0 -0
  159. data/lib/comet_backup_ruby_sdk.rb +4 -0
  160. metadata +10 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7343bc96e2ac87ca1b4ff694fbe25e01c6cca99b8dfe6da063050ab3c462530
4
- data.tar.gz: ce7ea45a2480321db18a7bc3758d742464810d8feb1c6e2a652df13365404c92
3
+ metadata.gz: 1351a43776da0134fbbc0f29301c07bf21684f24fad024a2b24311c6c5f1993b
4
+ data.tar.gz: a21014914d06619f590dce35f990036d4369a76287a6d654a5565fb373ebf003
5
5
  SHA512:
6
- metadata.gz: 420c4b3892475409d56b1cc64a6a90e9d06ad8dcc4ad7ec3550ad0b861a5ad14807b0f21f4c4bfa542ff010b6beb833a91e627195c8ba215badc7528f7861072
7
- data.tar.gz: 19ff57505c136f8d4150987cdd05c7d2133f7541c30256b579b46d83ae373847ea6a1af86c5b2cf2f0f61d672eeb3cff806bd0795d1d27762375df13b371a5f4
6
+ metadata.gz: 6c1267509de43041f58a02f46edd7aeb2d57eb7a464b5ba018d86398132bff04f94a5cc75bd6f04942a04fdd08a3a7e558c31cea467aae5090f192a75cb11a07
7
+ data.tar.gz: 8f5b8df8f2d55019e6ca2efd9ad5025d5d31e9bb00babd2fc82c3aeb3a434f4e6f790385cd8643170b4eb69ba2f30cb6d6fc4f59460f5177865f01678ec0ac08
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ *.gem
data/.rubocop.yml CHANGED
@@ -23,3 +23,8 @@ Layout/EmptyLinesAroundClassBody:
23
23
  # with the times when we do need multi-line bodies
24
24
  Style/IfUnlessModifier:
25
25
  Enabled: false
26
+
27
+ # allow rocket hashes
28
+
29
+ Style/HashSyntax:
30
+ EnforcedStyle: no_mixed_keys
data/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2021-11-24 v3.18.0
4
+ - Based on 21.9.12
5
+ - Add support for Thai and Danish localizations
6
+ - Add From and To fields to the EmailReportGenerated API
7
+ - Add `AdminDispatcherEmailPreview` api method for requesting the HTML content of an email
8
+ - Add `ImageEtag` field to the response of the ServerMetaBrandingProperties endpoint.
9
+ - Add support for new engine properties on the Office365 backup type.
10
+ - Add `AdminDispatcherOffice365ListVirtualAccounts` api method for requesting Objects that Office365 is capable of backing up.
11
+
12
+ ## 2021-10-21 1.9.0
13
+ - Based on 21.9.7
14
+ - Add Support for `HideFiles` parameter in B2 Destination Locations
15
+ - Add support for `RegistrationTime` to `DeviceConfig`
16
+ - Upgrade MYSQL to support new TLS connection options
17
+ - Add support for new API: `AdminMetaReadAllLogsRequest` and `AdminDispatcherRequestWindiskSnapshot`
18
+
19
+ ## 2021-09-14 1.8.0
20
+ - Based on Comet 21.9.2
21
+ - Support new `custom_headers` field on the `WebhookOption` class for specifying custom HTTP headers
22
+ to be sent in webhook POST requests from Comet Server
23
+
24
+ ## 2021-09-08 v1.7.0
25
+ - Based on Comet 21.9.1
26
+ - Support new `device_timezone` field on the `DeviceConfig` class.
27
+ - Add `admin_dispatcher_ping_destination` api method
28
+ - Add support for new retention range type constants: `RETENTIONRANGE_LAST_X_BACKUPS_ONE_FOR_EACH_DAY`
29
+ - Add support for new retention range type constants: `RETENTIONRANGE_LAST_X_BACKUPS_ONE_FOR_EACH_WEEK`
30
+ - Add support for new retention range type constants: `RETENTIONRANGE_LAST_X_BACKUPS_ONE_FOR_EACH_MONTH`
31
+ - Add support for Microsoft Office 365 Sharepoiint constant `STOREDOBJECTTYPE_MSSITELISTDRIVEENTITY`
32
+ - Add Microsoft Office 365 Region cloud region constants `OFFICE_365_REGION_PUBLIC`
33
+ - Add Microsoft Office 365 Region cloud region constants `OFFICE_365_REGION_CHINA`
34
+ - Add Microsoft Office 365 Region cloud region constants `OFFICE_365_REGION_GERMANY`
35
+ - Add Microsoft Office 365 Region cloud region constants `OFFICE_365_REGION_US_GOVT`
36
+ - Add Microsoft Office 365 Region cloud region constants `OFFICE_365_REGION_US_DOD`
37
+
3
38
  ## 2021-07-01 v1.6.0
4
39
  - Based on Comet 21.6.6
5
40
  - Support new `DefaultSourceWithOSRestriction` and `LastSuccessfulBackupJob` fields
data/Gemfile CHANGED
File without changes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- comet_backup_ruby_sdk (1.6.0)
4
+ comet_backup_ruby_sdk (1.10.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -33,11 +33,11 @@ PLATFORMS
33
33
  ruby
34
34
 
35
35
  DEPENDENCIES
36
- bundler (~> 1.17)
36
+ bundler (~> 2.1.4)
37
37
  comet_backup_ruby_sdk!
38
38
  minitest (~> 5.14)
39
39
  rake (~> 13.0)
40
40
  rubocop (~> 0.88)
41
41
 
42
42
  BUNDLED WITH
43
- 1.17.2
43
+ 2.1.4
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
@@ -84,7 +84,7 @@ end
84
84
  ```ruby
85
85
  bundle exec rake rubocop
86
86
 
87
- COMETSERVER_ADDRESS='http://127.0.0.1:8060' \
87
+ COMETSERVER_ADDRESS='http://127.0.0.1:8060' \
88
88
  COMETSERVER_ADMINUSER=admin \
89
89
  COMETSERVER_ADMINPASS=admin \
90
90
  bundle exec rake test
data/RELEASING.md CHANGED
@@ -1,12 +1,13 @@
1
1
  # Procedure for releasing gem package updates
2
2
 
3
+ 0. As a cygwin user, with docker installed; `docker run -it -v "c://cygwin64/$PWD":/app -w /app ruby:2.7 bash` will get you with a suitable ruby environment for testing/building and releasing this package9.
3
4
  1. All tests passing
4
5
  2. Update changelog in `CHANGELOG.md`
5
6
  3. Update version number in `comet_backup_ruby_sdk.gemspec`
6
7
  4. `bundle install`
7
8
  - Should update our internal version in Gemfile.lock
8
- 4. `gem build comet_backup_ruby_sdk.gemspec`
9
+ 5. `gem build comet_backup_ruby_sdk.gemspec`
9
10
  - Should be warning-free
10
- 5. Git tag
11
+ 6. Git tag
11
12
  - Respect semver
12
- 6. `gem push comet_backup_ruby_sdk-1.x.x.gem`
13
+ 7. `gem push comet_backup_ruby_sdk-1.x.x.gem`
data/Rakefile CHANGED
File without changes
@@ -12,7 +12,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
12
12
 
13
13
  Gem::Specification.new do |spec|
14
14
  spec.name = 'comet_backup_ruby_sdk'
15
- spec.version = '1.6.0'
15
+ spec.version = '1.10.0'
16
16
  spec.authors = ['Comet Licensing Ltd.']
17
17
  spec.email = ['hello@cometbackup.com']
18
18
 
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  end
29
29
  spec.require_paths = ['lib']
30
30
 
31
- spec.add_development_dependency 'bundler', '~> 1.17'
31
+ spec.add_development_dependency 'bundler', '~> 2.1.4'
32
32
  spec.add_development_dependency 'minitest', '~> 5.14'
33
33
  spec.add_development_dependency 'rake', '~> 13.0'
34
34
  spec.add_development_dependency 'rubocop', '~> 0.88'
File without changes
@@ -808,6 +808,7 @@ module Comet
808
808
  # This does not remove any storage buckets. Unused storage buckets will be cleaned up by the Constellation Role.
809
809
  # Any stored data can not be decrypted without the user profile. Misuse can cause data loss!
810
810
  # This also allows to uninstall software from active devices under the user account
811
+ # This also removes all job history for the user account.
811
812
  #
812
813
  # You must supply administrator authentication credentials to use this API.
813
814
  # This API requires the Auth Role to be enabled.
@@ -1000,6 +1001,42 @@ module Comet
1000
1001
  ret
1001
1002
  end
1002
1003
 
1004
+ # AdminDispatcherEmailPreview
1005
+ #
1006
+ # Request HTML content of an email.
1007
+ # The remote device must have given consent for an MSP to browse their mail
1008
+ #
1009
+ # You must supply administrator authentication credentials to use this API.
1010
+ # This API requires the Auth Role to be enabled.
1011
+ #
1012
+ # @param [String] target_id The live connection GUID
1013
+ # @param [String] snapshot where the email belongs to
1014
+ # @param [String] destination The Storage Vault ID
1015
+ # @param [String] path of the email to view
1016
+ # @return [Comet::EmailReportGeneratedPreview]
1017
+ def admin_dispatcher_email_preview(target_id, snapshot, destination, path)
1018
+ submit_params = {}
1019
+ raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
1020
+
1021
+ submit_params['TargetID'] = target_id
1022
+ raise TypeError, "'snapshot' expected String, got #{snapshot.class}" unless snapshot.is_a? String
1023
+
1024
+ submit_params['Snapshot'] = snapshot
1025
+ raise TypeError, "'destination' expected String, got #{destination.class}" unless destination.is_a? String
1026
+
1027
+ submit_params['Destination'] = destination
1028
+ raise TypeError, "'path' expected String, got #{path.class}" unless path.is_a? String
1029
+
1030
+ submit_params['Path'] = path
1031
+
1032
+ body = perform_request('api/v1/admin/dispatcher/email-preview', submit_params)
1033
+ json_body = JSON.parse body
1034
+ check_status json_body
1035
+ ret = Comet::EmailReportGeneratedPreview.new
1036
+ ret.from_hash(json_body)
1037
+ ret
1038
+ end
1039
+
1003
1040
  # AdminDispatcherImportApply
1004
1041
  #
1005
1042
  # Instruct a live connected device to import settings from an installed product.
@@ -1076,6 +1113,61 @@ module Comet
1076
1113
  ret
1077
1114
  end
1078
1115
 
1116
+ # AdminDispatcherOffice365ListVirtualAccounts
1117
+ #
1118
+ # Request a list of Office365 Resources (groups, sites, teams groups and users).
1119
+ # The remote device must have given consent for an MSP to browse their files.
1120
+ #
1121
+ # You must supply administrator authentication credentials to use this API.
1122
+ # This API requires the Auth Role to be enabled.
1123
+ #
1124
+ # @param [String] target_id The live connection GUID
1125
+ # @param [Comet::Office365Credential] credentials The Office365 account credential
1126
+ # @return [Comet::BrowseOffice365ListVirtualAccountsResponse]
1127
+ def admin_dispatcher_office_365list_virtual_accounts(target_id, credentials)
1128
+ submit_params = {}
1129
+ raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
1130
+
1131
+ submit_params['TargetID'] = target_id
1132
+ raise TypeError, "'credentials' expected Comet::Office365Credential, got #{credentials.class}" unless credentials.is_a? Comet::Office365Credential
1133
+
1134
+ submit_params['Credentials'] = credentials.to_json
1135
+
1136
+ body = perform_request('api/v1/admin/dispatcher/office365-list-virtual-accounts', submit_params)
1137
+ json_body = JSON.parse body
1138
+ check_status json_body
1139
+ ret = Comet::BrowseOffice365ListVirtualAccountsResponse.new
1140
+ ret.from_hash(json_body)
1141
+ ret
1142
+ end
1143
+
1144
+ # AdminDispatcherPingDestination
1145
+ #
1146
+ # Test the connection to the storage bucket.
1147
+ #
1148
+ # You must supply administrator authentication credentials to use this API.
1149
+ # This API requires the Auth Role to be enabled.
1150
+ #
1151
+ # @param [String] target_id The live connection GUID
1152
+ # @param [Comet::DestinationLocation] extra_data The destination location settings
1153
+ # @return [Comet::CometAPIResponseMessage]
1154
+ def admin_dispatcher_ping_destination(target_id, extra_data)
1155
+ submit_params = {}
1156
+ raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
1157
+
1158
+ submit_params['TargetID'] = target_id
1159
+ raise TypeError, "'extra_data' expected Comet::DestinationLocation, got #{extra_data.class}" unless extra_data.is_a? Comet::DestinationLocation
1160
+
1161
+ submit_params['ExtraData'] = extra_data.to_json
1162
+
1163
+ body = perform_request('api/v1/admin/dispatcher/ping-destination', submit_params)
1164
+ json_body = JSON.parse body
1165
+ check_status json_body
1166
+ ret = Comet::CometAPIResponseMessage.new
1167
+ ret.from_hash(json_body)
1168
+ ret
1169
+ end
1170
+
1079
1171
  # AdminDispatcherRefetchProfile
1080
1172
  #
1081
1173
  # Instruct a live connected device to refresh their profile.
@@ -1535,6 +1627,37 @@ module Comet
1535
1627
  ret
1536
1628
  end
1537
1629
 
1630
+ # AdminDispatcherRequestWindiskSnapshot
1631
+ #
1632
+ # Request a Disk Image snapshot with the windiskbrowse-style from a live connected device.
1633
+ #
1634
+ # You must supply administrator authentication credentials to use this API.
1635
+ # This API requires the Auth Role to be enabled.
1636
+ #
1637
+ # @param [String] target_id The live connection GUID
1638
+ # @param [String] destination The Storage Vault ID
1639
+ # @param [String] snapshot_id The Snapshot ID
1640
+ # @return [Comet::DispatcherWindiskSnapshotResponse]
1641
+ def admin_dispatcher_request_windisk_snapshot(target_id, destination, snapshot_id)
1642
+ submit_params = {}
1643
+ raise TypeError, "'target_id' expected String, got #{target_id.class}" unless target_id.is_a? String
1644
+
1645
+ submit_params['TargetID'] = target_id
1646
+ raise TypeError, "'destination' expected String, got #{destination.class}" unless destination.is_a? String
1647
+
1648
+ submit_params['Destination'] = destination
1649
+ raise TypeError, "'snapshot_id' expected String, got #{snapshot_id.class}" unless snapshot_id.is_a? String
1650
+
1651
+ submit_params['SnapshotID'] = snapshot_id
1652
+
1653
+ body = perform_request('api/v1/admin/dispatcher/request-windisk-snapshot', submit_params)
1654
+ json_body = JSON.parse body
1655
+ check_status json_body
1656
+ ret = Comet::DispatcherWindiskSnapshotResponse.new
1657
+ ret.from_hash(json_body)
1658
+ ret
1659
+ end
1660
+
1538
1661
  # AdminDispatcherRunBackup
1539
1662
  #
1540
1663
  # Instruct a live connected device to run a scheduled backup.
@@ -2111,6 +2234,7 @@ module Comet
2111
2234
  # Cancel a running job.
2112
2235
  # A request is sent to the live-connected device, asking it to cancel the operation. This may fail if there is no live-connection.
2113
2236
  # Only jobs from Comet 18.3.5 or newer can be cancelled. A job can only be cancelled if it has a non-empty CancellationID field in its properties.
2237
+ # If the device is running Comet 21.9.5 or later, this API will wait up to ten seconds for a confirmation from the client.
2114
2238
  #
2115
2239
  # You must supply administrator authentication credentials to use this API.
2116
2240
  # This API requires the Auth Role to be enabled.
@@ -2290,6 +2414,20 @@ module Comet
2290
2414
  ret
2291
2415
  end
2292
2416
 
2417
+ # AdminMetaReadAllLogs
2418
+ #
2419
+ # Get a ZIP file of all of the server's log files.
2420
+ # On non-Windows platforms, log content uses LF line endings. On Windows, Comet changed from LF to CRLF line endings in 18.3.2.
2421
+ # This API does not automatically convert line endings; around the 18.3.2 timeframe, log content may even contain mixed line-endings.
2422
+ #
2423
+ # You must supply administrator authentication credentials to use this API.
2424
+ # This API is only available for administrator accounts in the top-level Organization, not in any other Organization.
2425
+ #
2426
+ # @return [String]
2427
+ def admin_meta_read_all_logs
2428
+ perform_request('api/v1/admin/meta/read-all-logs')
2429
+ end
2430
+
2293
2431
  # AdminMetaReadLogs
2294
2432
  #
2295
2433
  # Get log file content.
@@ -3455,7 +3593,7 @@ module Comet
3455
3593
 
3456
3594
  ret_error = Comet::CometAPIResponseMessage.new
3457
3595
  ret_error.from_hash(obj)
3458
- raise Comet::APIResponseError.new(ret_error)
3596
+ raise Comet::APIResponseError.new(ret_error), 'Comet API response status was not OK'
3459
3597
  end
3460
3598
 
3461
3599
  # Perform a synchronous HTTP request.
@@ -3492,7 +3630,7 @@ module Comet
3492
3630
 
3493
3631
  form_params = []
3494
3632
  params.each do |k, v|
3495
- form_params.append [k, v, {:filename => k}]
3633
+ form_params.append [k, v, { :filename => k }]
3496
3634
  end
3497
3635
  req.set_form(form_params, 'multipart/form-data')
3498
3636
 
@@ -155,6 +155,24 @@ module Comet
155
155
 
156
156
  MONGODB_DEFAULT_PORT = 27_017
157
157
 
158
+ SERVICE_CALENDAR = 1
159
+
160
+ SERVICE_CONTACT = 2
161
+
162
+ SERVICE_MAIL = 4
163
+
164
+ SERVICE_SHAREPOINT = 8
165
+
166
+ SERVICE_ONEDRIVE = 16
167
+
168
+ MIXED_VIRTUAL_ACCOUNT_TYPE_USER = 1
169
+
170
+ MIXED_VIRTUAL_ACCOUNT_TYPE_GROUP = 2
171
+
172
+ MIXED_VIRTUAL_ACCOUNT_TYPE_TEAM_GROUP = 3
173
+
174
+ MIXED_VIRTUAL_ACCOUNT_TYPE_SHAREPOINT_ONLY = 4
175
+
158
176
  # RestoreType:
159
177
  RESTORETYPE_INVALID = -1
160
178
 
@@ -224,8 +242,17 @@ module Comet
224
242
  # RetentionRangeType: Uses Weeks, WeekOffset
225
243
  RETENTIONRANGE_FIRST_JOB_FOR_LAST_X_WEEKS = 906
226
244
 
245
+ # RetentionRangeType: Uses Jobs
246
+ RETENTIONRANGE_LAST_X_BACKUPS_ONE_FOR_EACH_DAY = 907
247
+
248
+ # RetentionRangeType: Uses Jobs
249
+ RETENTIONRANGE_LAST_X_BACKUPS_ONE_FOR_EACH_WEEK = 908
250
+
251
+ # RetentionRangeType: Uses Jobs
252
+ RETENTIONRANGE_LAST_X_BACKUPS_ONE_FOR_EACH_MONTH = 909
253
+
227
254
  # RetentionRangeType:
228
- RETENTIONRANGE__HIGHEST = 906
255
+ RETENTIONRANGE__HIGHEST = 909
229
256
 
230
257
  RETENTIONRANGE_MAXINT = 1_125_899_906_842_624
231
258
 
@@ -362,6 +389,9 @@ module Comet
362
389
  # StoredObjectType:
363
390
  STOREDOBJECTTYPE_MSSITEITEMENTITY = 'mssiteitementity'
364
391
 
392
+ # StoredObjectType:
393
+ STOREDOBJECTTYPE_MSSITELISTDRIVEENTITY = 'mssitelistdriveentity'
394
+
365
395
  # ExtraFileExclusionOSRestriction:
366
396
  OS_ANY = 0
367
397
 
@@ -400,13 +430,13 @@ module Comet
400
430
 
401
431
  DEFAULT_TIMEZONE = 'UTC'
402
432
 
403
- APPLICATION_VERSION = '21.6.6'
433
+ APPLICATION_VERSION = '21.9.12'
404
434
 
405
435
  APPLICATION_VERSION_MAJOR = 21
406
436
 
407
- APPLICATION_VERSION_MINOR = 6
437
+ APPLICATION_VERSION_MINOR = 9
408
438
 
409
- APPLICATION_VERSION_REVISION = 6
439
+ APPLICATION_VERSION_REVISION = 12
410
440
 
411
441
  RELEASE_CODENAME = 'Voyager'
412
442
 
@@ -579,6 +609,9 @@ module Comet
579
609
  # MacOSCodesignLevel:
580
610
  MACOSCODESIGN_LEVEL_SIGN_NOTARISE_STAPLE = 2
581
611
 
612
+ # StreamableEventType:
613
+ SEVT__MIN = 4000
614
+
582
615
  # StreamableEventType: Event is emitted when the webhook is registered, or when the server starts up. The Data associated is ServerMetaVersionInfo
583
616
  SEVT_META_HELLO = 4000
584
617
 
@@ -600,4 +633,17 @@ module Comet
600
633
  # StreamableEventType: Data is the string bucket ref
601
634
  SEVT_BUCKET_NEW = 4300
602
635
 
636
+ # StreamableEventType:
637
+ SEVT__MAX = 4999
638
+
639
+ OFFICE365_REGION_PUBLIC = 'GlobalPublicCloud'
640
+
641
+ OFFICE365_REGION_CHINA = 'ChinaCloud'
642
+
643
+ OFFICE365_REGION_GERMANY = 'GermanCloud'
644
+
645
+ OFFICE365_REGION_US_GOVT = 'USGovtGccCloud'
646
+
647
+ OFFICE365_REGION_US_DOD = 'USGovtGccDoDCloud'
648
+
603
649
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -29,6 +29,9 @@ module Comet
29
29
  # @type [Number] max_connections
30
30
  attr_accessor :max_connections
31
31
 
32
+ # @type [Boolean] hide_deleted_files
33
+ attr_accessor :hide_deleted_files
34
+
32
35
  # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
33
36
  attr_accessor :unknown_json_fields
34
37
 
@@ -78,6 +81,8 @@ module Comet
78
81
  raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
79
82
 
80
83
  @max_connections = v
84
+ when 'HideDeletedFiles'
85
+ @hide_deleted_files = v
81
86
  else
82
87
  @unknown_json_fields[k] = v
83
88
  end
@@ -102,6 +107,9 @@ module Comet
102
107
  unless @max_connections.nil?
103
108
  ret['MaxConnections'] = @max_connections
104
109
  end
110
+ unless @hide_deleted_files.nil?
111
+ ret['HideDeletedFiles'] = @hide_deleted_files
112
+ end
105
113
  @unknown_json_fields.each do |k, v|
106
114
  ret[k] = v
107
115
  end
File without changes
File without changes
@@ -23,6 +23,9 @@ module Comet
23
23
  # @type [String] app_key
24
24
  attr_accessor :app_key
25
25
 
26
+ # @type [Boolean] hide_deleted_files
27
+ attr_accessor :hide_deleted_files
28
+
26
29
  # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
27
30
  attr_accessor :unknown_json_fields
28
31
 
@@ -62,6 +65,8 @@ module Comet
62
65
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
63
66
 
64
67
  @app_key = v
68
+ when 'HideDeletedFiles'
69
+ @hide_deleted_files = v
65
70
  else
66
71
  @unknown_json_fields[k] = v
67
72
  end
@@ -74,6 +79,7 @@ module Comet
74
79
  ret['MasterBucket'] = @master_bucket
75
80
  ret['KeyID'] = @key_id
76
81
  ret['AppKey'] = @app_key
82
+ ret['HideDeletedFiles'] = @hide_deleted_files
77
83
  @unknown_json_fields.each do |k, v|
78
84
  ret[k] = v
79
85
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes