comet_backup_ruby_sdk 2.5.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -2
- 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 +71 -1
- data/lib/comet/definitions.rb +425 -401
- 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 +0 -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 +21 -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 +82 -0
- data/lib/comet/models/branding_properties.rb +64 -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_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 +15 -0
- data/lib/comet/models/destination_location.rb +15 -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 +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/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 +18 -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/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/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/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 +64 -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/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/remote_server_address.rb +0 -0
- data/lib/comet/models/remote_storage_option.rb +0 -0
- data/lib/comet/models/replica_server.rb +0 -0
- 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 +0 -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 +15 -0
- data/lib/comet/models/s3generic_virtual_storage_role.rb +21 -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 +136 -0
- data/lib/comet/models/search_snapshots_response.rb +104 -0
- data/lib/comet/models/self_backup_export_options.rb +6 -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 +6 -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 +9 -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/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 +0 -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/vsscomponent.rb +0 -0
- data/lib/comet/models/vsswriter_info.rb +0 -0
- data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +21 -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_interface_branding_properties.rb +18 -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 +64 -0
- data/lib/comet_backup_ruby_sdk.rb +2 -0
- metadata +4 -2
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
|
data/lib/comet/models/osinfo.rb
CHANGED
File without changes
|
File without changes
|
@@ -39,6 +39,9 @@ module Comet
|
|
39
39
|
# @type [String] package_identifier
|
40
40
|
attr_accessor :package_identifier
|
41
41
|
|
42
|
+
# @type [Number] windows_code_sign_method
|
43
|
+
attr_accessor :windows_code_sign_method
|
44
|
+
|
42
45
|
# @type [String] windows_code_sign_pkcs12file_path
|
43
46
|
attr_accessor :windows_code_sign_pkcs12file_path
|
44
47
|
|
@@ -55,6 +58,7 @@ module Comet
|
|
55
58
|
attr_accessor :windows_code_sign_pkcs11module
|
56
59
|
|
57
60
|
# @type [String] windows_code_sign_pkcs11certfile
|
61
|
+
# @deprecated This member has been deprecated since Comet version 22.12.7
|
58
62
|
attr_accessor :windows_code_sign_pkcs11certfile
|
59
63
|
|
60
64
|
# @type [String] windows_code_sign_pkcs11key_id
|
@@ -66,6 +70,24 @@ module Comet
|
|
66
70
|
# @type [String] windows_code_sign_pkcs11password
|
67
71
|
attr_accessor :windows_code_sign_pkcs11password
|
68
72
|
|
73
|
+
# @type [String] windows_code_sign_azure_vault_name
|
74
|
+
attr_accessor :windows_code_sign_azure_vault_name
|
75
|
+
|
76
|
+
# @type [String] windows_code_sign_azure_cert_name
|
77
|
+
attr_accessor :windows_code_sign_azure_cert_name
|
78
|
+
|
79
|
+
# @type [String] windows_code_sign_azure_app_id
|
80
|
+
attr_accessor :windows_code_sign_azure_app_id
|
81
|
+
|
82
|
+
# @type [Number] windows_code_sign_azure_app_secret_format
|
83
|
+
attr_accessor :windows_code_sign_azure_app_secret_format
|
84
|
+
|
85
|
+
# @type [String] windows_code_sign_azure_app_secret
|
86
|
+
attr_accessor :windows_code_sign_azure_app_secret
|
87
|
+
|
88
|
+
# @type [String] windows_code_sign_azure_tenant_id
|
89
|
+
attr_accessor :windows_code_sign_azure_tenant_id
|
90
|
+
|
69
91
|
# @type [Comet::MacOSCodeSignProperties] mac_oscode_sign
|
70
92
|
attr_accessor :mac_oscode_sign
|
71
93
|
|
@@ -86,6 +108,7 @@ module Comet
|
|
86
108
|
@path_header_image = ''
|
87
109
|
@path_app_icon_image = ''
|
88
110
|
@package_identifier = ''
|
111
|
+
@windows_code_sign_method = 0
|
89
112
|
@windows_code_sign_pkcs12file_path = ''
|
90
113
|
@windows_code_sign_pkcs12password_format = 0
|
91
114
|
@windows_code_sign_pkcs12password = ''
|
@@ -95,6 +118,12 @@ module Comet
|
|
95
118
|
@windows_code_sign_pkcs11key_id = ''
|
96
119
|
@windows_code_sign_pkcs11password_format = 0
|
97
120
|
@windows_code_sign_pkcs11password = ''
|
121
|
+
@windows_code_sign_azure_vault_name = ''
|
122
|
+
@windows_code_sign_azure_cert_name = ''
|
123
|
+
@windows_code_sign_azure_app_id = ''
|
124
|
+
@windows_code_sign_azure_app_secret_format = 0
|
125
|
+
@windows_code_sign_azure_app_secret = ''
|
126
|
+
@windows_code_sign_azure_tenant_id = ''
|
98
127
|
@mac_oscode_sign = Comet::MacOSCodeSignProperties.new
|
99
128
|
@unknown_json_fields = {}
|
100
129
|
end
|
@@ -148,6 +177,10 @@ module Comet
|
|
148
177
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
149
178
|
|
150
179
|
@package_identifier = v
|
180
|
+
when 'WindowsCodeSignMethod'
|
181
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
182
|
+
|
183
|
+
@windows_code_sign_method = v
|
151
184
|
when 'WindowsCodeSignPKCS12FilePath'
|
152
185
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
153
186
|
|
@@ -184,6 +217,30 @@ module Comet
|
|
184
217
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
185
218
|
|
186
219
|
@windows_code_sign_pkcs11password = v
|
220
|
+
when 'WindowsCodeSignAzureVaultName'
|
221
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
222
|
+
|
223
|
+
@windows_code_sign_azure_vault_name = v
|
224
|
+
when 'WindowsCodeSignAzureCertName'
|
225
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
226
|
+
|
227
|
+
@windows_code_sign_azure_cert_name = v
|
228
|
+
when 'WindowsCodeSignAzureAppID'
|
229
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
230
|
+
|
231
|
+
@windows_code_sign_azure_app_id = v
|
232
|
+
when 'WindowsCodeSignAzureAppSecretFormat'
|
233
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
234
|
+
|
235
|
+
@windows_code_sign_azure_app_secret_format = v
|
236
|
+
when 'WindowsCodeSignAzureAppSecret'
|
237
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
238
|
+
|
239
|
+
@windows_code_sign_azure_app_secret = v
|
240
|
+
when 'WindowsCodeSignAzureTenantID'
|
241
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
242
|
+
|
243
|
+
@windows_code_sign_azure_tenant_id = v
|
187
244
|
when 'MacOSCodeSign'
|
188
245
|
@mac_oscode_sign = Comet::MacOSCodeSignProperties.new
|
189
246
|
@mac_oscode_sign.from_hash(v)
|
@@ -205,6 +262,7 @@ module Comet
|
|
205
262
|
ret['PathHeaderImage'] = @path_header_image
|
206
263
|
ret['PathAppIconImage'] = @path_app_icon_image
|
207
264
|
ret['PackageIdentifier'] = @package_identifier
|
265
|
+
ret['WindowsCodeSignMethod'] = @windows_code_sign_method
|
208
266
|
ret['WindowsCodeSignPKCS12FilePath'] = @windows_code_sign_pkcs12file_path
|
209
267
|
ret['WindowsCodeSignPKCS12PasswordFormat'] = @windows_code_sign_pkcs12password_format
|
210
268
|
ret['WindowsCodeSignPKCS12Password'] = @windows_code_sign_pkcs12password
|
@@ -214,6 +272,12 @@ module Comet
|
|
214
272
|
ret['WindowsCodeSignPKCS11KeyID'] = @windows_code_sign_pkcs11key_id
|
215
273
|
ret['WindowsCodeSignPKCS11PasswordFormat'] = @windows_code_sign_pkcs11password_format
|
216
274
|
ret['WindowsCodeSignPKCS11Password'] = @windows_code_sign_pkcs11password
|
275
|
+
ret['WindowsCodeSignAzureVaultName'] = @windows_code_sign_azure_vault_name
|
276
|
+
ret['WindowsCodeSignAzureCertName'] = @windows_code_sign_azure_cert_name
|
277
|
+
ret['WindowsCodeSignAzureAppID'] = @windows_code_sign_azure_app_id
|
278
|
+
ret['WindowsCodeSignAzureAppSecretFormat'] = @windows_code_sign_azure_app_secret_format
|
279
|
+
ret['WindowsCodeSignAzureAppSecret'] = @windows_code_sign_azure_app_secret
|
280
|
+
ret['WindowsCodeSignAzureTenantID'] = @windows_code_sign_azure_tenant_id
|
217
281
|
ret['MacOSCodeSign'] = @mac_oscode_sign
|
218
282
|
@unknown_json_fields.each do |k, v|
|
219
283
|
ret[k] = v
|
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
|
@@ -36,6 +36,12 @@ module Comet
|
|
36
36
|
# @type [Boolean] s3uses_v2signing
|
37
37
|
attr_accessor :s3uses_v2signing
|
38
38
|
|
39
|
+
# @type [Boolean] s3remove_deleted
|
40
|
+
attr_accessor :s3remove_deleted
|
41
|
+
|
42
|
+
# @type [Number] s3object_lock_days
|
43
|
+
attr_accessor :s3object_lock_days
|
44
|
+
|
39
45
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
40
46
|
attr_accessor :unknown_json_fields
|
41
47
|
|
@@ -50,6 +56,7 @@ module Comet
|
|
50
56
|
@s3bucket_name = ''
|
51
57
|
@s3subdir = ''
|
52
58
|
@s3custom_region = ''
|
59
|
+
@s3object_lock_days = 0
|
53
60
|
@unknown_json_fields = {}
|
54
61
|
end
|
55
62
|
|
@@ -94,6 +101,12 @@ module Comet
|
|
94
101
|
@s3custom_region = v
|
95
102
|
when 'S3UsesV2Signing'
|
96
103
|
@s3uses_v2signing = v
|
104
|
+
when 'S3RemoveDeleted'
|
105
|
+
@s3remove_deleted = v
|
106
|
+
when 'S3ObjectLockDays'
|
107
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
108
|
+
|
109
|
+
@s3object_lock_days = v
|
97
110
|
else
|
98
111
|
@unknown_json_fields[k] = v
|
99
112
|
end
|
@@ -111,6 +124,8 @@ module Comet
|
|
111
124
|
ret['S3Subdir'] = @s3subdir
|
112
125
|
ret['S3CustomRegion'] = @s3custom_region
|
113
126
|
ret['S3UsesV2Signing'] = @s3uses_v2signing
|
127
|
+
ret['S3RemoveDeleted'] = @s3remove_deleted
|
128
|
+
ret['S3ObjectLockDays'] = @s3object_lock_days
|
114
129
|
@unknown_json_fields.each do |k, v|
|
115
130
|
ret[k] = v
|
116
131
|
end
|
@@ -27,6 +27,15 @@ module Comet
|
|
27
27
|
# @type [String] secret_key
|
28
28
|
attr_accessor :secret_key
|
29
29
|
|
30
|
+
# @type [Boolean] use_object_lock
|
31
|
+
attr_accessor :use_object_lock
|
32
|
+
|
33
|
+
# @type [Number] object_lock_days
|
34
|
+
attr_accessor :object_lock_days
|
35
|
+
|
36
|
+
# @type [Boolean] remove_deleted
|
37
|
+
attr_accessor :remove_deleted
|
38
|
+
|
30
39
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
31
40
|
attr_accessor :unknown_json_fields
|
32
41
|
|
@@ -40,6 +49,7 @@ module Comet
|
|
40
49
|
@master_bucket = ''
|
41
50
|
@access_key = ''
|
42
51
|
@secret_key = ''
|
52
|
+
@object_lock_days = 0
|
43
53
|
@unknown_json_fields = {}
|
44
54
|
end
|
45
55
|
|
@@ -76,6 +86,14 @@ module Comet
|
|
76
86
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
77
87
|
|
78
88
|
@secret_key = v
|
89
|
+
when 'UseObjectLock'
|
90
|
+
@use_object_lock = v
|
91
|
+
when 'ObjectLockDays'
|
92
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
93
|
+
|
94
|
+
@object_lock_days = v
|
95
|
+
when 'RemoveDeleted'
|
96
|
+
@remove_deleted = v
|
79
97
|
else
|
80
98
|
@unknown_json_fields[k] = v
|
81
99
|
end
|
@@ -90,6 +108,9 @@ module Comet
|
|
90
108
|
ret['MasterBucket'] = @master_bucket
|
91
109
|
ret['AccessKey'] = @access_key
|
92
110
|
ret['SecretKey'] = @secret_key
|
111
|
+
ret['UseObjectLock'] = @use_object_lock
|
112
|
+
ret['ObjectLockDays'] = @object_lock_days
|
113
|
+
ret['RemoveDeleted'] = @remove_deleted
|
93
114
|
@unknown_json_fields.each do |k, v|
|
94
115
|
ret[k] = v
|
95
116
|
end
|
File without changes
|
File without changes
|
@@ -0,0 +1,136 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2020-2023 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
|
+
# SearchResultFileInfo is a typed class wrapper around the underlying Comet Server API data structure.
|
13
|
+
class SearchResultFileInfo
|
14
|
+
|
15
|
+
# @type [String] path
|
16
|
+
attr_accessor :path
|
17
|
+
|
18
|
+
# @type [String] name
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# @type [String] type
|
22
|
+
attr_accessor :type
|
23
|
+
|
24
|
+
# @type [String] mode
|
25
|
+
attr_accessor :mode
|
26
|
+
|
27
|
+
# @type [String] mtime
|
28
|
+
attr_accessor :mtime
|
29
|
+
|
30
|
+
# @type [String] atime
|
31
|
+
attr_accessor :atime
|
32
|
+
|
33
|
+
# @type [String] ctime
|
34
|
+
attr_accessor :ctime
|
35
|
+
|
36
|
+
# @type [Number] size
|
37
|
+
attr_accessor :size
|
38
|
+
|
39
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
40
|
+
attr_accessor :unknown_json_fields
|
41
|
+
|
42
|
+
def initialize
|
43
|
+
clear
|
44
|
+
end
|
45
|
+
|
46
|
+
def clear
|
47
|
+
@path = ''
|
48
|
+
@name = ''
|
49
|
+
@type = ''
|
50
|
+
@mode = ''
|
51
|
+
@mtime = ''
|
52
|
+
@atime = ''
|
53
|
+
@ctime = ''
|
54
|
+
@size = 0
|
55
|
+
@unknown_json_fields = {}
|
56
|
+
end
|
57
|
+
|
58
|
+
# @param [String] json_string The complete object in JSON format
|
59
|
+
def from_json(json_string)
|
60
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
61
|
+
|
62
|
+
from_hash(JSON.parse(json_string))
|
63
|
+
end
|
64
|
+
|
65
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
66
|
+
def from_hash(obj)
|
67
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
68
|
+
|
69
|
+
obj.each do |k, v|
|
70
|
+
case k
|
71
|
+
when 'path'
|
72
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
73
|
+
|
74
|
+
@path = v
|
75
|
+
when 'name'
|
76
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
77
|
+
|
78
|
+
@name = v
|
79
|
+
when 'type'
|
80
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
81
|
+
|
82
|
+
@type = v
|
83
|
+
when 'mode'
|
84
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
85
|
+
|
86
|
+
@mode = v
|
87
|
+
when 'mtime'
|
88
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
89
|
+
|
90
|
+
@mtime = v
|
91
|
+
when 'atime'
|
92
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
93
|
+
|
94
|
+
@atime = v
|
95
|
+
when 'ctime'
|
96
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
97
|
+
|
98
|
+
@ctime = v
|
99
|
+
when 'size'
|
100
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
101
|
+
|
102
|
+
@size = v
|
103
|
+
else
|
104
|
+
@unknown_json_fields[k] = v
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
# @return [Hash] The complete object as a Ruby hash
|
110
|
+
def to_hash
|
111
|
+
ret = {}
|
112
|
+
ret['path'] = @path
|
113
|
+
ret['name'] = @name
|
114
|
+
ret['type'] = @type
|
115
|
+
ret['mode'] = @mode
|
116
|
+
ret['mtime'] = @mtime
|
117
|
+
ret['atime'] = @atime
|
118
|
+
ret['ctime'] = @ctime
|
119
|
+
ret['size'] = @size
|
120
|
+
@unknown_json_fields.each do |k, v|
|
121
|
+
ret[k] = v
|
122
|
+
end
|
123
|
+
ret
|
124
|
+
end
|
125
|
+
|
126
|
+
# @return [Hash] The complete object as a Ruby hash
|
127
|
+
def to_h
|
128
|
+
to_hash
|
129
|
+
end
|
130
|
+
|
131
|
+
# @return [String] The complete object as a JSON string
|
132
|
+
def to_json(options = {})
|
133
|
+
to_hash.to_json(options)
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2020-2023 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
|
+
# SearchSnapshotsResponse is a typed class wrapper around the underlying Comet Server API data structure.
|
13
|
+
class SearchSnapshotsResponse
|
14
|
+
|
15
|
+
# @type [Number] status
|
16
|
+
attr_accessor :status
|
17
|
+
|
18
|
+
# @type [String] message
|
19
|
+
attr_accessor :message
|
20
|
+
|
21
|
+
# @type [Hash{String => Array<Comet::SearchResultFileInfo>}] snapshot_files
|
22
|
+
attr_accessor :snapshot_files
|
23
|
+
|
24
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
25
|
+
attr_accessor :unknown_json_fields
|
26
|
+
|
27
|
+
def initialize
|
28
|
+
clear
|
29
|
+
end
|
30
|
+
|
31
|
+
def clear
|
32
|
+
@status = 0
|
33
|
+
@message = ''
|
34
|
+
@snapshot_files = {}
|
35
|
+
@unknown_json_fields = {}
|
36
|
+
end
|
37
|
+
|
38
|
+
# @param [String] json_string The complete object in JSON format
|
39
|
+
def from_json(json_string)
|
40
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
41
|
+
|
42
|
+
from_hash(JSON.parse(json_string))
|
43
|
+
end
|
44
|
+
|
45
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
46
|
+
def from_hash(obj)
|
47
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
48
|
+
|
49
|
+
obj.each do |k, v|
|
50
|
+
case k
|
51
|
+
when 'Status'
|
52
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
53
|
+
|
54
|
+
@status = v
|
55
|
+
when 'Message'
|
56
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
57
|
+
|
58
|
+
@message = v
|
59
|
+
when 'SnapshotFiles'
|
60
|
+
@snapshot_files = {}
|
61
|
+
if v.nil?
|
62
|
+
@snapshot_files = {}
|
63
|
+
else
|
64
|
+
v.each do |k1, v1|
|
65
|
+
if v1.nil?
|
66
|
+
@snapshot_files[k1] = []
|
67
|
+
else
|
68
|
+
@snapshot_files[k1] = Array.new(v1.length)
|
69
|
+
v1.each_with_index do |v2, i2|
|
70
|
+
@snapshot_files[k1][i2] = Comet::SearchResultFileInfo.new
|
71
|
+
@snapshot_files[k1][i2].from_hash(v2)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
else
|
77
|
+
@unknown_json_fields[k] = v
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# @return [Hash] The complete object as a Ruby hash
|
83
|
+
def to_hash
|
84
|
+
ret = {}
|
85
|
+
ret['Status'] = @status
|
86
|
+
ret['Message'] = @message
|
87
|
+
ret['SnapshotFiles'] = @snapshot_files
|
88
|
+
@unknown_json_fields.each do |k, v|
|
89
|
+
ret[k] = v
|
90
|
+
end
|
91
|
+
ret
|
92
|
+
end
|
93
|
+
|
94
|
+
# @return [Hash] The complete object as a Ruby hash
|
95
|
+
def to_h
|
96
|
+
to_hash
|
97
|
+
end
|
98
|
+
|
99
|
+
# @return [String] The complete object as a JSON string
|
100
|
+
def to_json(options = {})
|
101
|
+
to_hash.to_json(options)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
@@ -27,6 +27,9 @@ module Comet
|
|
27
27
|
# @type [Boolean] exclude_jobs_db
|
28
28
|
attr_accessor :exclude_jobs_db
|
29
29
|
|
30
|
+
# @type [Boolean] include_server_logs
|
31
|
+
attr_accessor :include_server_logs
|
32
|
+
|
30
33
|
# @type [String] restrict_to_single_org_id
|
31
34
|
attr_accessor :restrict_to_single_org_id
|
32
35
|
|
@@ -80,6 +83,8 @@ module Comet
|
|
80
83
|
@compression = v
|
81
84
|
when 'ExcludeJobsDB'
|
82
85
|
@exclude_jobs_db = v
|
86
|
+
when 'IncludeServerLogs'
|
87
|
+
@include_server_logs = v
|
83
88
|
when 'RestrictToSingleOrgID'
|
84
89
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
85
90
|
|
@@ -102,6 +107,7 @@ module Comet
|
|
102
107
|
ret['EncryptionKeyFormat'] = @encryption_key_format
|
103
108
|
ret['Compression'] = @compression
|
104
109
|
ret['ExcludeJobsDB'] = @exclude_jobs_db
|
110
|
+
ret['IncludeServerLogs'] = @include_server_logs
|
105
111
|
unless @restrict_to_single_org_id.nil?
|
106
112
|
ret['RestrictToSingleOrgID'] = @restrict_to_single_org_id
|
107
113
|
end
|
File without changes
|
File without changes
|
@@ -36,6 +36,9 @@ module Comet
|
|
36
36
|
# @type [Boolean] exclude_jobs_db
|
37
37
|
attr_accessor :exclude_jobs_db
|
38
38
|
|
39
|
+
# @type [Boolean] include_server_logs
|
40
|
+
attr_accessor :include_server_logs
|
41
|
+
|
39
42
|
# @type [String] restrict_to_single_org_id
|
40
43
|
attr_accessor :restrict_to_single_org_id
|
41
44
|
|
@@ -109,6 +112,8 @@ module Comet
|
|
109
112
|
@compression = v
|
110
113
|
when 'ExcludeJobsDB'
|
111
114
|
@exclude_jobs_db = v
|
115
|
+
when 'IncludeServerLogs'
|
116
|
+
@include_server_logs = v
|
112
117
|
when 'RestrictToSingleOrgID'
|
113
118
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
114
119
|
|
@@ -134,6 +139,7 @@ module Comet
|
|
134
139
|
ret['EncryptionKeyFormat'] = @encryption_key_format
|
135
140
|
ret['Compression'] = @compression
|
136
141
|
ret['ExcludeJobsDB'] = @exclude_jobs_db
|
142
|
+
ret['IncludeServerLogs'] = @include_server_logs
|
137
143
|
unless @restrict_to_single_org_id.nil?
|
138
144
|
ret['RestrictToSingleOrgID'] = @restrict_to_single_org_id
|
139
145
|
end
|
File without changes
|
File without changes
|
File without changes
|
@@ -27,6 +27,9 @@ module Comet
|
|
27
27
|
# @type [String] top_color
|
28
28
|
attr_accessor :top_color
|
29
29
|
|
30
|
+
# @type [String] accent_color
|
31
|
+
attr_accessor :accent_color
|
32
|
+
|
30
33
|
# @type [Boolean] hide_news_area
|
31
34
|
attr_accessor :hide_news_area
|
32
35
|
|
@@ -54,6 +57,7 @@ module Comet
|
|
54
57
|
@product_name = ''
|
55
58
|
@image_etag = ''
|
56
59
|
@top_color = ''
|
60
|
+
@accent_color = ''
|
57
61
|
@prune_logs_after_days = 0
|
58
62
|
@expired_in_seconds = 0
|
59
63
|
@unknown_json_fields = {}
|
@@ -90,6 +94,10 @@ module Comet
|
|
90
94
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
91
95
|
|
92
96
|
@top_color = v
|
97
|
+
when 'AccentColor'
|
98
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
99
|
+
|
100
|
+
@accent_color = v
|
93
101
|
when 'HideNewsArea'
|
94
102
|
@hide_news_area = v
|
95
103
|
when 'AllowUnauthenticatedDownloads'
|
@@ -118,6 +126,7 @@ module Comet
|
|
118
126
|
ret['HasImage'] = @has_image
|
119
127
|
ret['ImageEtag'] = @image_etag
|
120
128
|
ret['TopColor'] = @top_color
|
129
|
+
ret['AccentColor'] = @accent_color
|
121
130
|
ret['HideNewsArea'] = @hide_news_area
|
122
131
|
ret['AllowUnauthenticatedDownloads'] = @allow_unauthenticated_downloads
|
123
132
|
ret['AllowAuthenticatedDownloads'] = @allow_authenticated_downloads
|