comet_backup_ruby_sdk 2.26.0 → 2.27.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/api_response_error.rb +0 -0
- data/lib/comet/comet_server.rb +27 -1
- data/lib/comet/definitions.rb +36 -15
- data/lib/comet/models/add_bucket_response_message.rb +0 -0
- data/lib/comet/models/admin_account_properties_response.rb +0 -0
- data/lib/comet/models/admin_email_options.rb +0 -0
- data/lib/comet/models/admin_resource_response.rb +0 -0
- data/lib/comet/models/admin_security_options.rb +0 -0
- data/lib/comet/models/admin_u2fregistration.rb +0 -0
- data/lib/comet/models/admin_user_permissions.rb +9 -0
- data/lib/comet/models/admin_web_authn_registration.rb +0 -0
- data/lib/comet/models/allowed_admin_user.rb +0 -0
- data/lib/comet/models/amazon_awsvirtual_storage_role_settings.rb +14 -0
- data/lib/comet/models/authentication_role_options.rb +0 -0
- data/lib/comet/models/available_download.rb +0 -0
- data/lib/comet/models/azure_destination_location.rb +0 -0
- data/lib/comet/models/b2destination_location.rb +0 -0
- data/lib/comet/models/b2storage_extra_info.rb +0 -0
- data/lib/comet/models/b2transaction_totals.rb +0 -0
- data/lib/comet/models/b2virtual_storage_role_settings.rb +0 -0
- data/lib/comet/models/backup_job_advanced_options.rb +0 -0
- data/lib/comet/models/backup_job_detail.rb +0 -0
- data/lib/comet/models/backup_job_progress.rb +0 -0
- data/lib/comet/models/backup_rule_config.rb +0 -0
- data/lib/comet/models/backup_rule_event_triggers.rb +0 -0
- data/lib/comet/models/branding_options.rb +0 -0
- data/lib/comet/models/branding_properties.rb +0 -0
- data/lib/comet/models/browse_disk_drives_response.rb +0 -0
- data/lib/comet/models/browse_edbresponse.rb +0 -0
- data/lib/comet/models/browse_hvresponse.rb +0 -0
- data/lib/comet/models/browse_office_365list_virtual_accounts_response.rb +0 -0
- data/lib/comet/models/browse_office_365objects_response.rb +0 -0
- data/lib/comet/models/browse_sqlserver_response.rb +0 -0
- data/lib/comet/models/browse_vmware_response.rb +0 -0
- data/lib/comet/models/browse_vssresponse.rb +0 -0
- data/lib/comet/models/bucket_properties.rb +0 -0
- data/lib/comet/models/bucket_usage_info.rb +0 -0
- data/lib/comet/models/comet_apiresponse_message.rb +0 -0
- data/lib/comet/models/comet_destination_location.rb +0 -0
- data/lib/comet/models/constellation_check_report.rb +0 -0
- data/lib/comet/models/constellation_role_options.rb +0 -0
- data/lib/comet/models/constellation_stats.rb +0 -0
- data/lib/comet/models/constellation_status_apiresponse.rb +0 -0
- data/lib/comet/models/content_measurement.rb +0 -0
- data/lib/comet/models/content_measurement_component.rb +0 -0
- data/lib/comet/models/count_jobs_response.rb +0 -0
- data/lib/comet/models/create_group_policy_response.rb +0 -0
- data/lib/comet/models/custom_remote_bucket_settings.rb +0 -0
- data/lib/comet/models/days_of_week_config.rb +0 -0
- data/lib/comet/models/default_email_report_policy.rb +0 -0
- data/lib/comet/models/default_source_with_osrestriction.rb +0 -0
- data/lib/comet/models/destination_config.rb +18 -0
- data/lib/comet/models/destination_location.rb +8 -0
- data/lib/comet/models/destination_statistics.rb +0 -0
- data/lib/comet/models/device_config.rb +0 -0
- data/lib/comet/models/disk_drive.rb +0 -0
- data/lib/comet/models/dispatcher_admin_sources_response.rb +0 -0
- data/lib/comet/models/dispatcher_stored_objects_response.rb +0 -0
- data/lib/comet/models/dispatcher_vault_snapshots_response.rb +0 -0
- data/lib/comet/models/dispatcher_windisk_snapshot_response.rb +0 -0
- data/lib/comet/models/edbfile_info.rb +0 -0
- data/lib/comet/models/email_options.rb +0 -0
- data/lib/comet/models/email_report_config.rb +0 -0
- data/lib/comet/models/email_report_generated_preview.rb +0 -0
- data/lib/comet/models/email_reporting_option.rb +0 -0
- data/lib/comet/models/external_authentication_source.rb +31 -1
- data/lib/comet/models/external_authentication_source_display.rb +0 -0
- data/lib/comet/models/external_authentication_source_response.rb +0 -0
- data/lib/comet/models/external_ldapauthentication_source_server.rb +0 -0
- data/lib/comet/models/external_ldapauthentication_source_settings.rb +0 -0
- data/lib/comet/models/extra_file_exclusion.rb +0 -0
- data/lib/comet/models/file_option.rb +0 -0
- data/lib/comet/models/ftpdestination_location.rb +0 -0
- data/lib/comet/models/get_group_policy_response.rb +0 -0
- data/lib/comet/models/get_profile_and_hash_response_message.rb +0 -0
- data/lib/comet/models/get_profile_hash_response_message.rb +0 -0
- data/lib/comet/models/global_override_options.rb +0 -0
- data/lib/comet/models/group_policy.rb +0 -0
- data/lib/comet/models/hour_sched_config.rb +0 -0
- data/lib/comet/models/httpconnector_options.rb +0 -0
- data/lib/comet/models/hyper_vmachine_info.rb +0 -0
- data/lib/comet/models/impossible_cloud_iamtemplate_settings.rb +131 -0
- data/lib/comet/models/impossible_cloud_partner_template_settings.rb +85 -0
- data/lib/comet/models/install_creds.rb +0 -0
- data/lib/comet/models/install_token.rb +0 -0
- data/lib/comet/models/install_token_response.rb +0 -0
- data/lib/comet/models/job_entry.rb +0 -0
- data/lib/comet/models/license_options.rb +0 -0
- data/lib/comet/models/live_user_connection.rb +0 -0
- data/lib/comet/models/local_destination_location.rb +0 -0
- data/lib/comet/models/local_storage_directory.rb +0 -0
- data/lib/comet/models/mac_oscode_sign_properties.rb +0 -0
- data/lib/comet/models/mongo_dbconnection.rb +0 -0
- data/lib/comet/models/mssqlconnection.rb +0 -0
- data/lib/comet/models/mssqllogin_args.rb +0 -0
- data/lib/comet/models/my_sqlconnection.rb +0 -0
- data/lib/comet/models/new_bucket_detail.rb +0 -0
- data/lib/comet/models/news_entry.rb +0 -0
- data/lib/comet/models/object_lock_storage_template_settings.rb +101 -0
- data/lib/comet/models/office_365connection.rb +0 -0
- data/lib/comet/models/office_365credential.rb +0 -0
- data/lib/comet/models/office_365custom_setting.rb +0 -0
- data/lib/comet/models/office_365custom_setting_v2.rb +0 -0
- data/lib/comet/models/office_365mixed_virtual_account.rb +0 -0
- data/lib/comet/models/office_365object_info.rb +0 -0
- data/lib/comet/models/oidc_claim.rb +0 -0
- data/lib/comet/models/oidc_config.rb +0 -0
- data/lib/comet/models/organization.rb +0 -0
- data/lib/comet/models/organization_login_urlresponse.rb +0 -0
- data/lib/comet/models/organization_response.rb +0 -0
- data/lib/comet/models/osinfo.rb +0 -0
- data/lib/comet/models/partition.rb +0 -0
- data/lib/comet/models/private_branding_properties.rb +0 -0
- data/lib/comet/models/protected_item_engine_type_policy.rb +0 -0
- data/lib/comet/models/psaconfig.rb +0 -0
- data/lib/comet/models/psagrouped_by.rb +0 -0
- data/lib/comet/models/public_branding_properties.rb +0 -0
- data/lib/comet/models/ratelimit_options.rb +0 -0
- data/lib/comet/models/ratelimit_rule.rb +0 -0
- data/lib/comet/models/register_office_application_begin_response.rb +0 -0
- data/lib/comet/models/register_office_application_check_response.rb +0 -0
- data/lib/comet/models/registration_lobby_connection.rb +0 -0
- data/lib/comet/models/remote_server_address.rb +31 -1
- data/lib/comet/models/remote_storage_option.rb +31 -1
- data/lib/comet/models/replica_server.rb +31 -1
- data/lib/comet/models/replicator_state_apiresponse.rb +0 -0
- data/lib/comet/models/request_storage_vault_response_message.rb +0 -0
- data/lib/comet/models/restore_job_advanced_options.rb +7 -0
- data/lib/comet/models/retention_policy.rb +0 -0
- data/lib/comet/models/retention_range.rb +0 -0
- data/lib/comet/models/s3destination_location.rb +0 -0
- data/lib/comet/models/s3generic_virtual_storage_role.rb +28 -0
- data/lib/comet/models/schedule_config.rb +0 -0
- data/lib/comet/models/search_clause.rb +0 -0
- data/lib/comet/models/search_result_file_info.rb +0 -0
- data/lib/comet/models/search_snapshots_response.rb +0 -0
- data/lib/comet/models/self_backup_export_options.rb +0 -0
- data/lib/comet/models/self_backup_options.rb +0 -0
- data/lib/comet/models/self_backup_statistics.rb +0 -0
- data/lib/comet/models/self_backup_target.rb +0 -0
- data/lib/comet/models/server_config_options.rb +0 -0
- data/lib/comet/models/server_config_options_branding_fragment.rb +0 -0
- data/lib/comet/models/server_config_options_software_build_role_fragment.rb +0 -0
- data/lib/comet/models/server_meta_branding_properties.rb +0 -0
- data/lib/comet/models/server_meta_version_info.rb +0 -0
- data/lib/comet/models/session_key_regenerated_response.rb +0 -0
- data/lib/comet/models/session_options.rb +0 -0
- data/lib/comet/models/sftpdestination_location.rb +0 -0
- data/lib/comet/models/single_field_source.rb +0 -0
- data/lib/comet/models/size_measurement.rb +0 -0
- data/lib/comet/models/smbdestination_location.rb +109 -0
- data/lib/comet/models/software_build_role_options.rb +0 -0
- data/lib/comet/models/software_update_news_response.rb +0 -0
- data/lib/comet/models/source_basic_info.rb +0 -0
- data/lib/comet/models/source_config.rb +2 -0
- data/lib/comet/models/source_include_pattern.rb +0 -0
- data/lib/comet/models/source_statistics.rb +0 -0
- data/lib/comet/models/spanned_destination_location.rb +0 -0
- data/lib/comet/models/spanned_storage_extra_info.rb +0 -0
- data/lib/comet/models/sshconnection.rb +0 -0
- data/lib/comet/models/stat_result.rb +0 -0
- data/lib/comet/models/storage_free_space_info.rb +0 -0
- data/lib/comet/models/storage_role_options.rb +0 -0
- data/lib/comet/models/storage_vault_provider_policy.rb +0 -0
- data/lib/comet/models/stored_object.rb +0 -0
- data/lib/comet/models/storj_destination_location.rb +0 -0
- data/lib/comet/models/storj_virtual_storage_role_setting.rb +0 -0
- data/lib/comet/models/streamable_event.rb +0 -0
- data/lib/comet/models/swift_destination_location.rb +0 -0
- data/lib/comet/models/test_response.rb +0 -0
- data/lib/comet/models/time_span.rb +0 -0
- data/lib/comet/models/totp_regenerated_response.rb +0 -0
- data/lib/comet/models/u2fregister_request.rb +0 -0
- data/lib/comet/models/u2fregistered_key.rb +0 -0
- data/lib/comet/models/u2fregistration_challenge_response.rb +0 -0
- data/lib/comet/models/u2fsign_request.rb +0 -0
- data/lib/comet/models/u2fsign_response.rb +0 -0
- data/lib/comet/models/uninstall_config.rb +0 -0
- data/lib/comet/models/update_campaign_device_status.rb +0 -0
- data/lib/comet/models/update_campaign_options.rb +0 -0
- data/lib/comet/models/update_campaign_properties.rb +0 -0
- data/lib/comet/models/update_campaign_status.rb +0 -0
- data/lib/comet/models/update_campaign_status_device_entry.rb +0 -0
- data/lib/comet/models/user_custom_email_settings.rb +0 -0
- data/lib/comet/models/user_on_server.rb +0 -0
- data/lib/comet/models/user_policy.rb +0 -0
- data/lib/comet/models/user_profile_config.rb +0 -0
- data/lib/comet/models/user_profile_fragment.rb +0 -0
- data/lib/comet/models/user_server_config.rb +0 -0
- data/lib/comet/models/vault_snapshot.rb +0 -0
- data/lib/comet/models/vmdksnapshot_view_options.rb +0 -0
- data/lib/comet/models/vmware_connection.rb +0 -0
- data/lib/comet/models/vmware_machine_info.rb +0 -0
- data/lib/comet/models/vsphere_connection.rb +0 -0
- data/lib/comet/models/vsscomponent.rb +0 -0
- data/lib/comet/models/vsswriter_info.rb +0 -0
- data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +15 -0
- data/lib/comet/models/web_authn_authenticator_selection.rb +0 -0
- data/lib/comet/models/web_authn_credential.rb +0 -0
- data/lib/comet/models/web_authn_credential_assertion.rb +0 -0
- data/lib/comet/models/web_authn_credential_descriptor.rb +0 -0
- data/lib/comet/models/web_authn_credential_entity.rb +0 -0
- data/lib/comet/models/web_authn_credential_parameter.rb +0 -0
- data/lib/comet/models/web_authn_public_key_credential_creation_options.rb +0 -0
- data/lib/comet/models/web_authn_public_key_credential_request_options.rb +0 -0
- data/lib/comet/models/web_authn_registration_challenge_response.rb +0 -0
- data/lib/comet/models/web_authn_relying_party_entity.rb +0 -0
- data/lib/comet/models/web_authn_sign_request.rb +0 -0
- data/lib/comet/models/web_authn_sign_response.rb +0 -0
- data/lib/comet/models/web_authn_user_entity.rb +0 -0
- data/lib/comet/models/web_dav_destination_location.rb +0 -0
- data/lib/comet/models/web_interface_branding_properties.rb +0 -0
- data/lib/comet/models/webhook_option.rb +0 -0
- data/lib/comet/models/win_smbauth.rb +0 -0
- data/lib/comet/models/windows_code_sign_properties.rb +0 -0
- data/lib/comet_backup_ruby_sdk.rb +4 -0
- metadata +6 -2
|
@@ -18,12 +18,15 @@ module Comet
|
|
|
18
18
|
# @type [String] description
|
|
19
19
|
attr_accessor :description
|
|
20
20
|
|
|
21
|
+
# For use with Comet Server (Storage Role / Auth Role)
|
|
21
22
|
# @type [String] remote_address
|
|
22
23
|
attr_accessor :remote_address
|
|
23
24
|
|
|
25
|
+
# For use with Comet Server (Storage Role / Auth Role)
|
|
24
26
|
# @type [String] username
|
|
25
27
|
attr_accessor :username
|
|
26
28
|
|
|
29
|
+
# For use with Comet Server (Storage Role / Auth Role)
|
|
27
30
|
# @type [String] password
|
|
28
31
|
attr_accessor :password
|
|
29
32
|
|
|
@@ -33,25 +36,38 @@ module Comet
|
|
|
33
36
|
# @type [Comet::OidcConfig] oidc
|
|
34
37
|
attr_accessor :oidc
|
|
35
38
|
|
|
39
|
+
# Backblaze B2 (Storage Template / Constellation)
|
|
36
40
|
# @type [Comet::B2VirtualStorageRoleSettings] b2
|
|
37
41
|
attr_accessor :b2
|
|
38
42
|
|
|
43
|
+
# Wasabi, or Comet Storage powered by Wasabi (Storage Template / Constellation)
|
|
39
44
|
# @type [Comet::WasabiVirtualStorageRoleSettings] wasabi
|
|
40
45
|
attr_accessor :wasabi
|
|
41
46
|
|
|
47
|
+
# Custom Remote Bucket HTTP protocol (Storage Template)
|
|
42
48
|
# @type [Comet::CustomRemoteBucketSettings] custom
|
|
43
49
|
attr_accessor :custom
|
|
44
50
|
|
|
51
|
+
# IDrive e2, or Custom IAM-compatible (Storage Template / Constellation)
|
|
45
52
|
# @type [Comet::S3GenericVirtualStorageRole] s3
|
|
46
53
|
attr_accessor :s3
|
|
47
54
|
|
|
48
|
-
# Amazon AWS
|
|
55
|
+
# Amazon AWS (Storage Template / Constellation)
|
|
49
56
|
# @type [Comet::AmazonAWSVirtualStorageRoleSettings] aws
|
|
50
57
|
attr_accessor :aws
|
|
51
58
|
|
|
59
|
+
# Storj (Storage Template / Constellation)
|
|
52
60
|
# @type [Comet::StorjVirtualStorageRoleSetting] storj
|
|
53
61
|
attr_accessor :storj
|
|
54
62
|
|
|
63
|
+
# Impossible Cloud Partner API (Storage Template / Constellation)
|
|
64
|
+
# @type [Comet::ImpossibleCloudPartnerTemplateSettings] imp_partner
|
|
65
|
+
attr_accessor :imp_partner
|
|
66
|
+
|
|
67
|
+
# Impossible Cloud IAM API (Storage Template / Constellation)
|
|
68
|
+
# @type [Comet::ImpossibleCloudIAMTemplateSettings] imp_user
|
|
69
|
+
attr_accessor :imp_user
|
|
70
|
+
|
|
55
71
|
# @type [String] replica_deletion_strategy
|
|
56
72
|
attr_accessor :replica_deletion_strategy
|
|
57
73
|
|
|
@@ -76,6 +92,8 @@ module Comet
|
|
|
76
92
|
@s3 = Comet::S3GenericVirtualStorageRole.new
|
|
77
93
|
@aws = Comet::AmazonAWSVirtualStorageRoleSettings.new
|
|
78
94
|
@storj = Comet::StorjVirtualStorageRoleSetting.new
|
|
95
|
+
@imp_partner = Comet::ImpossibleCloudPartnerTemplateSettings.new
|
|
96
|
+
@imp_user = Comet::ImpossibleCloudIAMTemplateSettings.new
|
|
79
97
|
@replica_deletion_strategy = ''
|
|
80
98
|
@unknown_json_fields = {}
|
|
81
99
|
end
|
|
@@ -137,6 +155,12 @@ module Comet
|
|
|
137
155
|
when 'Storj'
|
|
138
156
|
@storj = Comet::StorjVirtualStorageRoleSetting.new
|
|
139
157
|
@storj.from_hash(v)
|
|
158
|
+
when 'ImpPartner'
|
|
159
|
+
@imp_partner = Comet::ImpossibleCloudPartnerTemplateSettings.new
|
|
160
|
+
@imp_partner.from_hash(v)
|
|
161
|
+
when 'ImpUser'
|
|
162
|
+
@imp_user = Comet::ImpossibleCloudIAMTemplateSettings.new
|
|
163
|
+
@imp_user.from_hash(v)
|
|
140
164
|
when 'ReplicaDeletionStrategy'
|
|
141
165
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
142
166
|
|
|
@@ -185,6 +209,12 @@ module Comet
|
|
|
185
209
|
unless @storj.nil?
|
|
186
210
|
ret['Storj'] = @storj
|
|
187
211
|
end
|
|
212
|
+
unless @imp_partner.nil?
|
|
213
|
+
ret['ImpPartner'] = @imp_partner
|
|
214
|
+
end
|
|
215
|
+
unless @imp_user.nil?
|
|
216
|
+
ret['ImpUser'] = @imp_user
|
|
217
|
+
end
|
|
188
218
|
unless @replica_deletion_strategy.nil?
|
|
189
219
|
ret['ReplicaDeletionStrategy'] = @replica_deletion_strategy
|
|
190
220
|
end
|
|
File without changes
|
|
File without changes
|
|
@@ -24,6 +24,10 @@ module Comet
|
|
|
24
24
|
# @type [Boolean] overwrite_if_newer
|
|
25
25
|
attr_accessor :overwrite_if_newer
|
|
26
26
|
|
|
27
|
+
# For RESTORETYPE_FILE. If set, OverwriteExistingFiles must be true
|
|
28
|
+
# @type [Boolean] overwrite_if_different_content
|
|
29
|
+
attr_accessor :overwrite_if_different_content
|
|
30
|
+
|
|
27
31
|
# For RESTORETYPE_FILE. If set, DestPath must be blank
|
|
28
32
|
# @type [Boolean] dest_is_original_location
|
|
29
33
|
attr_accessor :dest_is_original_location
|
|
@@ -143,6 +147,8 @@ module Comet
|
|
|
143
147
|
@overwrite_existing_files = v
|
|
144
148
|
when 'OverwriteIfNewer'
|
|
145
149
|
@overwrite_if_newer = v
|
|
150
|
+
when 'OverwriteIfDifferentContent'
|
|
151
|
+
@overwrite_if_different_content = v
|
|
146
152
|
when 'DestIsOriginalLocation'
|
|
147
153
|
@dest_is_original_location = v
|
|
148
154
|
when 'DestPath'
|
|
@@ -218,6 +224,7 @@ module Comet
|
|
|
218
224
|
ret['Type'] = @type
|
|
219
225
|
ret['OverwriteExistingFiles'] = @overwrite_existing_files
|
|
220
226
|
ret['OverwriteIfNewer'] = @overwrite_if_newer
|
|
227
|
+
ret['OverwriteIfDifferentContent'] = @overwrite_if_different_content
|
|
221
228
|
ret['DestIsOriginalLocation'] = @dest_is_original_location
|
|
222
229
|
ret['DestPath'] = @dest_path
|
|
223
230
|
ret['ExactDestPaths'] = @exact_dest_paths
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -12,12 +12,21 @@ module Comet
|
|
|
12
12
|
# S3GenericVirtualStorageRole is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
13
|
class S3GenericVirtualStorageRole
|
|
14
14
|
|
|
15
|
+
# The URL for S3 API calls (e.g. "s3.amazonaws.com")
|
|
15
16
|
# @type [String] s3endpoint
|
|
16
17
|
attr_accessor :s3endpoint
|
|
17
18
|
|
|
19
|
+
# The URL for IAM API calls (e.g. "iam.amazonaws.com")
|
|
18
20
|
# @type [String] iamendpoint
|
|
19
21
|
attr_accessor :iamendpoint
|
|
20
22
|
|
|
23
|
+
# If set, the Storage Template will generate Storage Vaults pointing to a subdirectory within this
|
|
24
|
+
# bucket. A single dynamic IAM policy will cover all created Storage Vaults.
|
|
25
|
+
# This is preferable for platforms that have limits on the total number of IAM policies. However, it
|
|
26
|
+
# requires a high level of IAM compatibility.
|
|
27
|
+
# If left blank, the Storage Template will generate Storage Vaults pointing to new, separate S3
|
|
28
|
+
# buckets each time. An additional IAM policy is created for each new Storage Vault.
|
|
29
|
+
# This is preferable for platforms that have a lower level of IAM compatibility.
|
|
21
30
|
# @type [String] master_bucket
|
|
22
31
|
attr_accessor :master_bucket
|
|
23
32
|
|
|
@@ -28,17 +37,30 @@ module Comet
|
|
|
28
37
|
attr_accessor :secret_key
|
|
29
38
|
|
|
30
39
|
# @type [Boolean] use_object_lock__legacy__do_not_use
|
|
40
|
+
# @deprecated This member has been deprecated since Comet version 23.x.x
|
|
31
41
|
attr_accessor :use_object_lock__legacy__do_not_use
|
|
32
42
|
|
|
43
|
+
# Control whether the resulting Storage Vaults are configured for Object Lock. One of the
|
|
44
|
+
# OBJECT_LOCK_ constants
|
|
33
45
|
# @type [Number] object_lock_mode
|
|
34
46
|
attr_accessor :object_lock_mode
|
|
35
47
|
|
|
36
48
|
# @type [Number] object_lock_days
|
|
37
49
|
attr_accessor :object_lock_days
|
|
38
50
|
|
|
51
|
+
# Control whether the "Allow removal of deleted files" checkbox is enabled for Storage Vaults
|
|
52
|
+
# generated from this Storage Template.
|
|
53
|
+
# When configuring a Storage Template from the Comet Server web interface, this field is set
|
|
54
|
+
# automatically for Storage Templates using Object Lock.
|
|
39
55
|
# @type [Boolean] remove_deleted
|
|
40
56
|
attr_accessor :remove_deleted
|
|
41
57
|
|
|
58
|
+
# Optional. The region to be used for new buckets. If blank, uses the default region for the
|
|
59
|
+
# S3-compatible provider (e.g. us-east-1).
|
|
60
|
+
# This field is available in Comet 24.3.1 and later.
|
|
61
|
+
# @type [String] region
|
|
62
|
+
attr_accessor :region
|
|
63
|
+
|
|
42
64
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
43
65
|
attr_accessor :unknown_json_fields
|
|
44
66
|
|
|
@@ -54,6 +76,7 @@ module Comet
|
|
|
54
76
|
@secret_key = ''
|
|
55
77
|
@object_lock_mode = 0
|
|
56
78
|
@object_lock_days = 0
|
|
79
|
+
@region = ''
|
|
57
80
|
@unknown_json_fields = {}
|
|
58
81
|
end
|
|
59
82
|
|
|
@@ -102,6 +125,10 @@ module Comet
|
|
|
102
125
|
@object_lock_days = v
|
|
103
126
|
when 'RemoveDeleted'
|
|
104
127
|
@remove_deleted = v
|
|
128
|
+
when 'Region'
|
|
129
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
130
|
+
|
|
131
|
+
@region = v
|
|
105
132
|
else
|
|
106
133
|
@unknown_json_fields[k] = v
|
|
107
134
|
end
|
|
@@ -120,6 +147,7 @@ module Comet
|
|
|
120
147
|
ret['ObjectLockMode'] = @object_lock_mode
|
|
121
148
|
ret['ObjectLockDays'] = @object_lock_days
|
|
122
149
|
ret['RemoveDeleted'] = @remove_deleted
|
|
150
|
+
ret['Region'] = @region
|
|
123
151
|
@unknown_json_fields.each do |k, v|
|
|
124
152
|
ret[k] = v
|
|
125
153
|
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
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2020-2024 Comet Licensing Ltd.
|
|
4
|
+
# Please see the LICENSE file for usage information.
|
|
5
|
+
#
|
|
6
|
+
# SPDX-License-Identifier: MIT
|
|
7
|
+
|
|
8
|
+
require 'json'
|
|
9
|
+
|
|
10
|
+
module Comet
|
|
11
|
+
|
|
12
|
+
# SMBDestinationLocation is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
class SMBDestinationLocation
|
|
14
|
+
|
|
15
|
+
# @type [String] smbserver
|
|
16
|
+
attr_accessor :smbserver
|
|
17
|
+
|
|
18
|
+
# @type [String] smbshare
|
|
19
|
+
attr_accessor :smbshare
|
|
20
|
+
|
|
21
|
+
# @type [String] smbdirectory
|
|
22
|
+
attr_accessor :smbdirectory
|
|
23
|
+
|
|
24
|
+
# @type [String] smbusername
|
|
25
|
+
attr_accessor :smbusername
|
|
26
|
+
|
|
27
|
+
# @type [String] smbpassword
|
|
28
|
+
attr_accessor :smbpassword
|
|
29
|
+
|
|
30
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
|
31
|
+
attr_accessor :unknown_json_fields
|
|
32
|
+
|
|
33
|
+
def initialize
|
|
34
|
+
clear
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def clear
|
|
38
|
+
@smbserver = ''
|
|
39
|
+
@smbshare = ''
|
|
40
|
+
@smbdirectory = ''
|
|
41
|
+
@smbusername = ''
|
|
42
|
+
@smbpassword = ''
|
|
43
|
+
@unknown_json_fields = {}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# @param [String] json_string The complete object in JSON format
|
|
47
|
+
def from_json(json_string)
|
|
48
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
|
49
|
+
|
|
50
|
+
from_hash(JSON.parse(json_string))
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
|
54
|
+
def from_hash(obj)
|
|
55
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
|
56
|
+
|
|
57
|
+
obj.each do |k, v|
|
|
58
|
+
case k
|
|
59
|
+
when 'SMBServer'
|
|
60
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
61
|
+
|
|
62
|
+
@smbserver = v
|
|
63
|
+
when 'SMBShare'
|
|
64
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
65
|
+
|
|
66
|
+
@smbshare = v
|
|
67
|
+
when 'SMBDirectory'
|
|
68
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
69
|
+
|
|
70
|
+
@smbdirectory = v
|
|
71
|
+
when 'SMBUsername'
|
|
72
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
73
|
+
|
|
74
|
+
@smbusername = v
|
|
75
|
+
when 'SMBPassword'
|
|
76
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
77
|
+
|
|
78
|
+
@smbpassword = v
|
|
79
|
+
else
|
|
80
|
+
@unknown_json_fields[k] = v
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
86
|
+
def to_hash
|
|
87
|
+
ret = {}
|
|
88
|
+
ret['SMBServer'] = @smbserver
|
|
89
|
+
ret['SMBShare'] = @smbshare
|
|
90
|
+
ret['SMBDirectory'] = @smbdirectory
|
|
91
|
+
ret['SMBUsername'] = @smbusername
|
|
92
|
+
ret['SMBPassword'] = @smbpassword
|
|
93
|
+
@unknown_json_fields.each do |k, v|
|
|
94
|
+
ret[k] = v
|
|
95
|
+
end
|
|
96
|
+
ret
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# @return [Hash] The complete object as a Ruby hash
|
|
100
|
+
def to_h
|
|
101
|
+
to_hash
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# @return [String] The complete object as a JSON string
|
|
105
|
+
def to_json(options = {})
|
|
106
|
+
to_hash.to_json(options)
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -59,6 +59,8 @@ module Comet
|
|
|
59
59
|
# - USE_WIN_VSS: If present, the 'Take filesystem snapshot' checkbox is checked
|
|
60
60
|
# - CONFIRM_EFS: If present, the 'Dismiss EFS warning' checkbox is checked
|
|
61
61
|
# - RESCAN_UNCHANGED: If present, the 'Rescan unchanged files' checkbox is checked
|
|
62
|
+
# - EXTRA_ATTRIBUTES: If present, the 'Back up extra system permissions and attributes' checkbox is
|
|
63
|
+
# checked
|
|
62
64
|
#
|
|
63
65
|
# For engine1/mssql, Comet understands the following EngineProp keys:
|
|
64
66
|
#
|
|
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
|
|
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
|
|
@@ -10,8 +10,16 @@ require 'json'
|
|
|
10
10
|
module Comet
|
|
11
11
|
|
|
12
12
|
# WasabiVirtualStorageRoleSettings is a typed class wrapper around the underlying Comet Server API data structure.
|
|
13
|
+
# This is an alias type for AmazonAWSVirtualStorageRoleSettings.
|
|
13
14
|
class WasabiVirtualStorageRoleSettings
|
|
14
15
|
|
|
16
|
+
# If set, the Storage Template will generate Storage Vaults pointing to a subdirectory within this
|
|
17
|
+
# bucket. A single dynamic IAM policy will cover all created Storage Vaults.
|
|
18
|
+
# This is preferable for platforms that have limits on the total number of IAM policies. However, it
|
|
19
|
+
# requires a high level of IAM compatibility.
|
|
20
|
+
# If left blank, the Storage Template will generate Storage Vaults pointing to new, separate S3
|
|
21
|
+
# buckets each time. An additional IAM policy is created for each new Storage Vault.
|
|
22
|
+
# This is preferable for platforms that have a lower level of IAM compatibility.
|
|
15
23
|
# @type [String] master_bucket
|
|
16
24
|
attr_accessor :master_bucket
|
|
17
25
|
|
|
@@ -22,14 +30,21 @@ module Comet
|
|
|
22
30
|
attr_accessor :secret_key
|
|
23
31
|
|
|
24
32
|
# @type [Boolean] use_object_lock__legacy__do_not_use
|
|
33
|
+
# @deprecated This member has been deprecated since Comet version 23.x.x
|
|
25
34
|
attr_accessor :use_object_lock__legacy__do_not_use
|
|
26
35
|
|
|
36
|
+
# Control whether the resulting Storage Vaults are configured for Object Lock. One of the
|
|
37
|
+
# OBJECT_LOCK_ constants
|
|
27
38
|
# @type [Number] object_lock_mode
|
|
28
39
|
attr_accessor :object_lock_mode
|
|
29
40
|
|
|
30
41
|
# @type [Number] object_lock_days
|
|
31
42
|
attr_accessor :object_lock_days
|
|
32
43
|
|
|
44
|
+
# Control whether the "Allow removal of deleted files" checkbox is enabled for Storage Vaults
|
|
45
|
+
# generated from this Storage Template.
|
|
46
|
+
# When configuring a Storage Template from the Comet Server web interface, this field is set
|
|
47
|
+
# automatically for Storage Templates using Object Lock.
|
|
33
48
|
# @type [Boolean] remove_deleted
|
|
34
49
|
attr_accessor :remove_deleted
|
|
35
50
|
|
|
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
|
|
@@ -86,6 +86,8 @@ require_relative 'comet/models/group_policy'
|
|
|
86
86
|
require_relative 'comet/models/hour_sched_config'
|
|
87
87
|
require_relative 'comet/models/httpconnector_options'
|
|
88
88
|
require_relative 'comet/models/hyper_vmachine_info'
|
|
89
|
+
require_relative 'comet/models/impossible_cloud_iamtemplate_settings'
|
|
90
|
+
require_relative 'comet/models/impossible_cloud_partner_template_settings'
|
|
89
91
|
require_relative 'comet/models/install_creds'
|
|
90
92
|
require_relative 'comet/models/install_token'
|
|
91
93
|
require_relative 'comet/models/install_token_response'
|
|
@@ -101,6 +103,7 @@ require_relative 'comet/models/mssqllogin_args'
|
|
|
101
103
|
require_relative 'comet/models/my_sqlconnection'
|
|
102
104
|
require_relative 'comet/models/new_bucket_detail'
|
|
103
105
|
require_relative 'comet/models/news_entry'
|
|
106
|
+
require_relative 'comet/models/object_lock_storage_template_settings'
|
|
104
107
|
require_relative 'comet/models/office_365connection'
|
|
105
108
|
require_relative 'comet/models/office_365credential'
|
|
106
109
|
require_relative 'comet/models/office_365custom_setting'
|
|
@@ -152,6 +155,7 @@ require_relative 'comet/models/session_options'
|
|
|
152
155
|
require_relative 'comet/models/sftpdestination_location'
|
|
153
156
|
require_relative 'comet/models/single_field_source'
|
|
154
157
|
require_relative 'comet/models/size_measurement'
|
|
158
|
+
require_relative 'comet/models/smbdestination_location'
|
|
155
159
|
require_relative 'comet/models/software_build_role_options'
|
|
156
160
|
require_relative 'comet/models/software_update_news_response'
|
|
157
161
|
require_relative 'comet/models/source_basic_info'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: comet_backup_ruby_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.27.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Comet Licensing Ltd.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-04-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -164,6 +164,8 @@ files:
|
|
|
164
164
|
- lib/comet/models/hour_sched_config.rb
|
|
165
165
|
- lib/comet/models/httpconnector_options.rb
|
|
166
166
|
- lib/comet/models/hyper_vmachine_info.rb
|
|
167
|
+
- lib/comet/models/impossible_cloud_iamtemplate_settings.rb
|
|
168
|
+
- lib/comet/models/impossible_cloud_partner_template_settings.rb
|
|
167
169
|
- lib/comet/models/install_creds.rb
|
|
168
170
|
- lib/comet/models/install_token.rb
|
|
169
171
|
- lib/comet/models/install_token_response.rb
|
|
@@ -179,6 +181,7 @@ files:
|
|
|
179
181
|
- lib/comet/models/my_sqlconnection.rb
|
|
180
182
|
- lib/comet/models/new_bucket_detail.rb
|
|
181
183
|
- lib/comet/models/news_entry.rb
|
|
184
|
+
- lib/comet/models/object_lock_storage_template_settings.rb
|
|
182
185
|
- lib/comet/models/office_365connection.rb
|
|
183
186
|
- lib/comet/models/office_365credential.rb
|
|
184
187
|
- lib/comet/models/office_365custom_setting.rb
|
|
@@ -230,6 +233,7 @@ files:
|
|
|
230
233
|
- lib/comet/models/sftpdestination_location.rb
|
|
231
234
|
- lib/comet/models/single_field_source.rb
|
|
232
235
|
- lib/comet/models/size_measurement.rb
|
|
236
|
+
- lib/comet/models/smbdestination_location.rb
|
|
233
237
|
- lib/comet/models/software_build_role_options.rb
|
|
234
238
|
- lib/comet/models/software_update_news_response.rb
|
|
235
239
|
- lib/comet/models/source_basic_info.rb
|