comet_backup_ruby_sdk 2.8.0 → 2.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/Gemfile.lock +1 -1
  4. data/comet_backup_ruby_sdk.gemspec +1 -1
  5. data/lib/comet/comet_server.rb +19 -1
  6. data/lib/comet/definitions.rb +193 -44
  7. data/lib/comet/models/admin_account_properties_response.rb +1 -0
  8. data/lib/comet/models/admin_security_options.rb +4 -0
  9. data/lib/comet/models/admin_u2fregistration.rb +2 -0
  10. data/lib/comet/models/admin_user_permissions.rb +73 -0
  11. data/lib/comet/models/admin_web_authn_registration.rb +2 -0
  12. data/lib/comet/models/allowed_admin_user.rb +4 -0
  13. data/lib/comet/models/authentication_role_options.rb +2 -0
  14. data/lib/comet/models/azure_destination_location.rb +2 -0
  15. data/lib/comet/models/b2destination_location.rb +2 -0
  16. data/lib/comet/models/backup_job_advanced_options.rb +3 -0
  17. data/lib/comet/models/backup_job_detail.rb +1 -0
  18. data/lib/comet/models/backup_job_progress.rb +4 -1
  19. data/lib/comet/models/backup_rule_config.rb +4 -0
  20. data/lib/comet/models/branding_options.rb +7 -0
  21. data/lib/comet/models/branding_properties.rb +5 -0
  22. data/lib/comet/models/bucket_properties.rb +2 -0
  23. data/lib/comet/models/comet_destination_location.rb +1 -0
  24. data/lib/comet/models/constellation_check_report.rb +2 -0
  25. data/lib/comet/models/constellation_stats.rb +5 -0
  26. data/lib/comet/models/content_measurement.rb +2 -0
  27. data/lib/comet/models/content_measurement_component.rb +12 -0
  28. data/lib/comet/models/default_email_report_policy.rb +4 -0
  29. data/lib/comet/models/destination_config.rb +35 -1
  30. data/lib/comet/models/destination_location.rb +33 -1
  31. data/lib/comet/models/destination_statistics.rb +2 -0
  32. data/lib/comet/models/device_config.rb +13 -0
  33. data/lib/comet/models/email_reporting_option.rb +2 -0
  34. data/lib/comet/models/external_ldapauthentication_source_server.rb +1 -0
  35. data/lib/comet/models/external_ldapauthentication_source_settings.rb +1 -0
  36. data/lib/comet/models/file_option.rb +132 -0
  37. data/lib/comet/models/ftpdestination_location.rb +5 -1
  38. data/lib/comet/models/install_token.rb +5 -0
  39. data/lib/comet/models/local_destination_location.rb +5 -0
  40. data/lib/comet/models/mac_oscode_sign_properties.rb +7 -0
  41. data/lib/comet/models/mssqlconnection.rb +3 -0
  42. data/lib/comet/models/mssqllogin_args.rb +2 -0
  43. data/lib/comet/models/my_sqlconnection.rb +2 -0
  44. data/lib/comet/models/news_entry.rb +1 -0
  45. data/lib/comet/models/office_365custom_setting.rb +3 -0
  46. data/lib/comet/models/office_365custom_setting_v2.rb +9 -0
  47. data/lib/comet/models/organization.rb +85 -70
  48. data/lib/comet/models/osinfo.rb +30 -0
  49. data/lib/comet/models/partition.rb +5 -0
  50. data/lib/comet/models/private_branding_properties.rb +5 -0
  51. data/lib/comet/models/psaconfig.rb +4 -0
  52. data/lib/comet/models/restore_job_advanced_options.rb +17 -0
  53. data/lib/comet/models/retention_range.rb +8 -0
  54. data/lib/comet/models/search_clause.rb +16 -0
  55. data/lib/comet/models/search_result_file_info.rb +39 -17
  56. data/lib/comet/models/self_backup_export_options.rb +4 -0
  57. data/lib/comet/models/self_backup_target.rb +5 -0
  58. data/lib/comet/models/server_config_options.rb +24 -0
  59. data/lib/comet/models/server_meta_branding_properties.rb +2 -0
  60. data/lib/comet/models/server_meta_version_info.rb +2 -0
  61. data/lib/comet/models/session_key_regenerated_response.rb +2 -0
  62. data/lib/comet/models/session_options.rb +2 -0
  63. data/lib/comet/models/sftpdestination_location.rb +7 -0
  64. data/lib/comet/models/single_field_source.rb +1 -0
  65. data/lib/comet/models/size_measurement.rb +3 -0
  66. data/lib/comet/models/software_update_news_response.rb +4 -0
  67. data/lib/comet/models/source_basic_info.rb +3 -0
  68. data/lib/comet/models/source_config.rb +26 -4
  69. data/lib/comet/models/source_include_pattern.rb +5 -0
  70. data/lib/comet/models/spanned_destination_location.rb +11 -0
  71. data/lib/comet/models/sshconnection.rb +6 -0
  72. data/lib/comet/models/storage_role_options.rb +1 -0
  73. data/lib/comet/models/stored_object.rb +7 -0
  74. data/lib/comet/models/streamable_event.rb +42 -0
  75. data/lib/comet/models/totp_regenerated_response.rb +3 -0
  76. data/lib/comet/models/update_campaign_device_status.rb +1 -0
  77. data/lib/comet/models/update_campaign_properties.rb +1 -0
  78. data/lib/comet/models/update_campaign_status.rb +1 -0
  79. data/lib/comet/models/update_campaign_status_device_entry.rb +1 -0
  80. data/lib/comet/models/user_profile_config.rb +9 -0
  81. data/lib/comet/models/user_profile_fragment.rb +1 -0
  82. data/lib/comet/models/vault_snapshot.rb +1 -0
  83. data/lib/comet/models/vsscomponent.rb +1 -0
  84. data/lib/comet/models/web_authn_credential.rb +2 -0
  85. data/lib/comet/models/web_authn_credential_descriptor.rb +1 -0
  86. data/lib/comet/models/web_authn_public_key_credential_creation_options.rb +1 -0
  87. data/lib/comet/models/web_authn_public_key_credential_request_options.rb +1 -0
  88. data/lib/comet/models/web_authn_user_entity.rb +1 -0
  89. data/lib/comet/models/web_interface_branding_properties.rb +2 -0
  90. data/lib/comet/models/webhook_option.rb +35 -16
  91. data/lib/comet/models/windows_code_sign_properties.rb +4 -0
  92. data/lib/comet_backup_ruby_sdk.rb +1 -0
  93. metadata +3 -2
@@ -36,6 +36,34 @@ module Comet
36
36
  # @type [Boolean] deny_constellation_role
37
37
  attr_accessor :deny_constellation_role
38
38
 
39
+ # This field is available in Comet 23.6.0 and later.
40
+ # @type [Boolean] deny_view_server_history
41
+ attr_accessor :deny_view_server_history
42
+
43
+ # This field is available in Comet 23.6.0 and later.
44
+ # @type [Boolean] deny_view_server_info
45
+ attr_accessor :deny_view_server_info
46
+
47
+ # This field is available in Comet 23.6.0 and later.
48
+ # @type [Boolean] prevent_request_storage_vault
49
+ attr_accessor :prevent_request_storage_vault
50
+
51
+ # This field is available in Comet 23.6.0 and later.
52
+ # @type [Boolean] prevent_add_custom_storage_vault
53
+ attr_accessor :prevent_add_custom_storage_vault
54
+
55
+ # This field is available in Comet 23.6.0 and later.
56
+ # @type [Boolean] hide_cloud_storage_branding
57
+ attr_accessor :hide_cloud_storage_branding
58
+
59
+ # This field is available in Comet 23.6.0 and later.
60
+ # @type [Boolean] should_restrict_provider_list
61
+ attr_accessor :should_restrict_provider_list
62
+
63
+ # This field is available in Comet 23.6.0 and later.
64
+ # @type [Array<Number>] allowed_providers_when_restricted
65
+ attr_accessor :allowed_providers_when_restricted
66
+
39
67
  # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
40
68
  attr_accessor :unknown_json_fields
41
69
 
@@ -44,6 +72,7 @@ module Comet
44
72
  end
45
73
 
46
74
  def clear
75
+ @allowed_providers_when_restricted = []
47
76
  @unknown_json_fields = {}
48
77
  end
49
78
 
@@ -76,6 +105,29 @@ module Comet
76
105
  @allow_edit_webhooks = v
77
106
  when 'DenyConstellationRole'
78
107
  @deny_constellation_role = v
108
+ when 'DenyViewServerHistory'
109
+ @deny_view_server_history = v
110
+ when 'DenyViewServerInfo'
111
+ @deny_view_server_info = v
112
+ when 'PreventRequestStorageVault'
113
+ @prevent_request_storage_vault = v
114
+ when 'PreventAddCustomStorageVault'
115
+ @prevent_add_custom_storage_vault = v
116
+ when 'HideCloudStorageBranding'
117
+ @hide_cloud_storage_branding = v
118
+ when 'ShouldRestrictProviderList'
119
+ @should_restrict_provider_list = v
120
+ when 'AllowedProvidersWhenRestricted'
121
+ if v.nil?
122
+ @allowed_providers_when_restricted = []
123
+ else
124
+ @allowed_providers_when_restricted = Array.new(v.length)
125
+ v.each_with_index do |v1, i1|
126
+ raise TypeError, "'v1' expected Numeric, got #{v1.class}" unless v1.is_a? Numeric
127
+
128
+ @allowed_providers_when_restricted[i1] = v1
129
+ end
130
+ end
79
131
  else
80
132
  @unknown_json_fields[k] = v
81
133
  end
@@ -109,6 +161,27 @@ module Comet
109
161
  unless @deny_constellation_role.nil?
110
162
  ret['DenyConstellationRole'] = @deny_constellation_role
111
163
  end
164
+ unless @deny_view_server_history.nil?
165
+ ret['DenyViewServerHistory'] = @deny_view_server_history
166
+ end
167
+ unless @deny_view_server_info.nil?
168
+ ret['DenyViewServerInfo'] = @deny_view_server_info
169
+ end
170
+ unless @prevent_request_storage_vault.nil?
171
+ ret['PreventRequestStorageVault'] = @prevent_request_storage_vault
172
+ end
173
+ unless @prevent_add_custom_storage_vault.nil?
174
+ ret['PreventAddCustomStorageVault'] = @prevent_add_custom_storage_vault
175
+ end
176
+ unless @hide_cloud_storage_branding.nil?
177
+ ret['HideCloudStorageBranding'] = @hide_cloud_storage_branding
178
+ end
179
+ unless @should_restrict_provider_list.nil?
180
+ ret['ShouldRestrictProviderList'] = @should_restrict_provider_list
181
+ end
182
+ unless @allowed_providers_when_restricted.nil?
183
+ ret['AllowedProvidersWhenRestricted'] = @allowed_providers_when_restricted
184
+ end
112
185
  @unknown_json_fields.each do |k, v|
113
186
  ret[k] = v
114
187
  end
@@ -16,6 +16,7 @@ module Comet
16
16
  # @type [String] description
17
17
  attr_accessor :description
18
18
 
19
+ # Unix timestamp, in seconds.
19
20
  # @type [Number] register_time
20
21
  attr_accessor :register_time
21
22
 
@@ -25,6 +26,7 @@ module Comet
25
26
  # @type [Boolean] is_legacy_u2f
26
27
  attr_accessor :is_legacy_u2f
27
28
 
29
+ # When this field is expressed as a AdminWebAuthnRegistration class instance, this field may contain binary data. When this field is expressed as JSON, the field is expressed as base64. The marshalling methods on this class will automatically perform base64 conversion as necessary.
28
30
  # @type [Array<Object>] id
29
31
  attr_accessor :id
30
32
 
@@ -21,6 +21,7 @@ module Comet
21
21
  # @type [String] external_authentication_source
22
22
  attr_accessor :external_authentication_source
23
23
 
24
+ # One of the PASSWORD_FORMAT_ constants
24
25
  # @type [Number] password_format
25
26
  attr_accessor :password_format
26
27
 
@@ -47,12 +48,15 @@ module Comet
47
48
  # @type [Array<Comet::AdminWebAuthnRegistration>] web_authn_registrations
48
49
  attr_accessor :web_authn_registrations
49
50
 
51
+ # One of the ENCRYPTIONMETHOD_ constants
50
52
  # @type [Number] totpkey_encryption_format
51
53
  attr_accessor :totpkey_encryption_format
52
54
 
53
55
  # @type [String] totpkey
54
56
  attr_accessor :totpkey
55
57
 
58
+ # A regular expression in Go regex syntax, for which IP addresses are allowed to authenticate as
59
+ # this admin account
56
60
  # @type [String] ipwhitelist
57
61
  attr_accessor :ipwhitelist
58
62
 
@@ -15,12 +15,14 @@ module Comet
15
15
  # @type [Boolean] role_enabled
16
16
  attr_accessor :role_enabled
17
17
 
18
+ # One of the INTEGRITYCHECK_ constants
18
19
  # @type [Number] database_check_level
19
20
  attr_accessor :database_check_level
20
21
 
21
22
  # @type [Boolean] generate_missed_backup_events
22
23
  attr_accessor :generate_missed_backup_events
23
24
 
25
+ # Unix timestamp in seconds, before which no Missed jobs are created
24
26
  # @type [Number] no_missed_backup_events_before
25
27
  attr_accessor :no_missed_backup_events_before
26
28
 
@@ -10,6 +10,8 @@ require 'json'
10
10
  module Comet
11
11
 
12
12
  # AzureDestinationLocation is a typed class wrapper around the underlying Comet Server API data structure.
13
+ # AzureDestinationLocation allows configuring connection settings for storage locations using the
14
+ # Azure Blob Storage API (DESTINATIONTYPE_AZURE).
13
15
  class AzureDestinationLocation
14
16
 
15
17
  # @type [String] azbaccount_name
@@ -10,6 +10,8 @@ require 'json'
10
10
  module Comet
11
11
 
12
12
  # B2DestinationLocation is a typed class wrapper around the underlying Comet Server API data structure.
13
+ # B2DestinationLocation allows configuring connection settings for storage locations using the
14
+ # Backblaze B2 native API (DESTINATIONTYPE_B2).
13
15
  class B2DestinationLocation
14
16
 
15
17
  # Key ID
@@ -10,6 +10,9 @@ require 'json'
10
10
  module Comet
11
11
 
12
12
  # BackupJobAdvancedOptions is a typed class wrapper around the underlying Comet Server API data structure.
13
+ # BackupJobAdvancedOptions control additional advanced options for running a backup job. They can be
14
+ # specified as part of a schedule in the BackupRuleConfig type, or supplied immediately when running
15
+ # a job.
13
16
  class BackupJobAdvancedOptions
14
17
 
15
18
  # @type [Boolean] skip_already_running
@@ -91,6 +91,7 @@ module Comet
91
91
  # @type [Number] total_unlicensed_mails_count
92
92
  attr_accessor :total_unlicensed_mails_count
93
93
 
94
+ # If this field is present, it is possible to request cancellation of this job via the API.
94
95
  # @type [String] cancellation_id
95
96
  attr_accessor :cancellation_id
96
97
 
@@ -12,13 +12,16 @@ module Comet
12
12
  # BackupJobProgress is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class BackupJobProgress
14
14
 
15
+ # This field will always increase monotonically, exactly once, for every change to the
16
+ # BackupJobProgress for a given backup job.
15
17
  # @type [Number] counter
16
18
  attr_accessor :counter
17
19
 
20
+ # Unix timestamp in seconds
18
21
  # @type [Number] sent_time
19
22
  attr_accessor :sent_time
20
23
 
21
- # The typo is preserved for backwards-compatibility reasons.
24
+ # Unix timestamp in seconds. The typo is preserved for backwards-compatibility reasons.
22
25
  # @type [Number] recieved_time
23
26
  attr_accessor :recieved_time
24
27
 
@@ -37,9 +37,11 @@ module Comet
37
37
  # @type [Array<String>] post_exec
38
38
  attr_accessor :post_exec
39
39
 
40
+ # The source Protected Item ID to back up from, during this schedule
40
41
  # @type [String] source
41
42
  attr_accessor :source
42
43
 
44
+ # The destination Storage Vault ID to back up to, during this schedule
43
45
  # @type [String] destination
44
46
  attr_accessor :destination
45
47
 
@@ -70,9 +72,11 @@ module Comet
70
72
  # @type [Number] auto_retention_level
71
73
  attr_accessor :auto_retention_level
72
74
 
75
+ # Scheduled start times
73
76
  # @type [Array<Comet::ScheduleConfig>] schedules
74
77
  attr_accessor :schedules
75
78
 
79
+ # Other events that will cause this scheduled job to start
76
80
  # @type [Comet::BackupRuleEventTriggers] event_triggers
77
81
  attr_accessor :event_triggers
78
82
 
@@ -12,6 +12,8 @@ module Comet
12
12
  # BrandingOptions is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class BrandingOptions
14
14
 
15
+ # One of the BRANDINGSTYLETYPE_ constants
16
+ # This field is available in Comet 23.3.3 and later.
15
17
  # @type [Number] branding_style_type
16
18
  attr_accessor :branding_style_type
17
19
 
@@ -57,6 +59,7 @@ module Comet
57
59
  # @type [Boolean] hide_background_logo
58
60
  attr_accessor :hide_background_logo
59
61
 
62
+ # One of the CLIENTBRANDINGBUILD_ constants
60
63
  # @type [Number] build_mode
61
64
  attr_accessor :build_mode
62
65
 
@@ -84,12 +87,14 @@ module Comet
84
87
  # @type [String] package_identifier
85
88
  attr_accessor :package_identifier
86
89
 
90
+ # One of the WINDOWSCODESIGN_METHOD_ constants
87
91
  # @type [Number] windows_code_sign_method
88
92
  attr_accessor :windows_code_sign_method
89
93
 
90
94
  # @type [String] windows_code_sign_pkcs12file_path
91
95
  attr_accessor :windows_code_sign_pkcs12file_path
92
96
 
97
+ # One of the ENCRYPTIONMETHOD_ constants
93
98
  # @type [Number] windows_code_sign_pkcs12password_format
94
99
  attr_accessor :windows_code_sign_pkcs12password_format
95
100
 
@@ -109,6 +114,7 @@ module Comet
109
114
  # @type [String] windows_code_sign_pkcs11key_id
110
115
  attr_accessor :windows_code_sign_pkcs11key_id
111
116
 
117
+ # One of the ENCRYPTIONMETHOD_ constants
112
118
  # @type [Number] windows_code_sign_pkcs11password_format
113
119
  attr_accessor :windows_code_sign_pkcs11password_format
114
120
 
@@ -124,6 +130,7 @@ module Comet
124
130
  # @type [String] windows_code_sign_azure_app_id
125
131
  attr_accessor :windows_code_sign_azure_app_id
126
132
 
133
+ # One of the ENCRYPTIONMETHOD_ constants
127
134
  # @type [Number] windows_code_sign_azure_app_secret_format
128
135
  attr_accessor :windows_code_sign_azure_app_secret_format
129
136
 
@@ -36,6 +36,7 @@ module Comet
36
36
  # @type [Boolean] hide_background_logo
37
37
  attr_accessor :hide_background_logo
38
38
 
39
+ # One of the CLIENTBRANDINGBUILD_ constants
39
40
  # @type [Number] build_mode
40
41
  attr_accessor :build_mode
41
42
 
@@ -63,12 +64,14 @@ module Comet
63
64
  # @type [String] package_identifier
64
65
  attr_accessor :package_identifier
65
66
 
67
+ # One of the WINDOWSCODESIGN_METHOD_ constants
66
68
  # @type [Number] windows_code_sign_method
67
69
  attr_accessor :windows_code_sign_method
68
70
 
69
71
  # @type [String] windows_code_sign_pkcs12file_path
70
72
  attr_accessor :windows_code_sign_pkcs12file_path
71
73
 
74
+ # One of the ENCRYPTIONMETHOD_ constants
72
75
  # @type [Number] windows_code_sign_pkcs12password_format
73
76
  attr_accessor :windows_code_sign_pkcs12password_format
74
77
 
@@ -88,6 +91,7 @@ module Comet
88
91
  # @type [String] windows_code_sign_pkcs11key_id
89
92
  attr_accessor :windows_code_sign_pkcs11key_id
90
93
 
94
+ # One of the ENCRYPTIONMETHOD_ constants
91
95
  # @type [Number] windows_code_sign_pkcs11password_format
92
96
  attr_accessor :windows_code_sign_pkcs11password_format
93
97
 
@@ -103,6 +107,7 @@ module Comet
103
107
  # @type [String] windows_code_sign_azure_app_id
104
108
  attr_accessor :windows_code_sign_azure_app_id
105
109
 
110
+ # One of the ENCRYPTIONMETHOD_ constants
106
111
  # @type [Number] windows_code_sign_azure_app_secret_format
107
112
  attr_accessor :windows_code_sign_azure_app_secret_format
108
113
 
@@ -15,9 +15,11 @@ module Comet
15
15
  # @type [String] organization_id
16
16
  attr_accessor :organization_id
17
17
 
18
+ # Unix timestamp, in seconds.
18
19
  # @type [Number] create_time
19
20
  attr_accessor :create_time
20
21
 
22
+ # One of the PASSWORD_FORMAT_ constants
21
23
  # @type [Number] read_write_key_format
22
24
  attr_accessor :read_write_key_format
23
25
 
@@ -12,6 +12,7 @@ module Comet
12
12
  # CometDestinationLocation is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class CometDestinationLocation
14
14
 
15
+ # The URL for the target Comet Server Storage Role, including http/https and trailing slash
15
16
  # @type [String] comet_server
16
17
  attr_accessor :comet_server
17
18
 
@@ -12,9 +12,11 @@ module Comet
12
12
  # ConstellationCheckReport is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class ConstellationCheckReport
14
14
 
15
+ # Unix timestamp in seconds
15
16
  # @type [Number] check_started
16
17
  attr_accessor :check_started
17
18
 
19
+ # Unix timestamp in seconds
18
20
  # @type [Number] check_completed
19
21
  attr_accessor :check_completed
20
22
 
@@ -12,12 +12,17 @@ module Comet
12
12
  # ConstellationStats is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class ConstellationStats
14
14
 
15
+ # Unix timestamp, in seconds.
15
16
  # @type [Number] last_check_start
16
17
  attr_accessor :last_check_start
17
18
 
19
+ # The total number of Constellation bucket report scans that have been performed since this Comet
20
+ # Server was last restarted
18
21
  # @type [Number] total_checks_started
19
22
  attr_accessor :total_checks_started
20
23
 
24
+ # The total number of buckets that Constellation has successfully deleted since this Comet Server
25
+ # was last restarted
21
26
  # @type [Number] total_buckets_deleted
22
27
  attr_accessor :total_buckets_deleted
23
28
 
@@ -12,9 +12,11 @@ module Comet
12
12
  # ContentMeasurement is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class ContentMeasurement
14
14
 
15
+ # Unix timestamp in seconds
15
16
  # @type [Number] measure_started
16
17
  attr_accessor :measure_started
17
18
 
19
+ # Unix timestamp in seconds
18
20
  # @type [Number] measure_completed
19
21
  attr_accessor :measure_completed
20
22
 
@@ -15,6 +15,18 @@ module Comet
15
15
  # @type [Number] bytes
16
16
  attr_accessor :bytes
17
17
 
18
+ # A list of strings describing which groups of snapshots rely on reaching this component of data.
19
+ # The strings may take the following formats:
20
+ # - source_id/CURRENT - this data is required by the most recent backup job snapshot for the listed
21
+ # Protected Item source.
22
+ # - source_id/HISTORIC - this data is required by an older backup job snapshot for the listed
23
+ # Protected Item source.
24
+ # - TRUNCATED/* - there are too many separate components to show, and this component represents data
25
+ # that is used by some other combination of components. If present, it will be the only entry in the
26
+ # UsedBy array.
27
+ # - the empty string - this amount of data is not currently referenced by any backup job snapshots.
28
+ # If that remains the case by the next retention pass, this much data will be deleted to free up
29
+ # space. If present, it will be the only entry in the UsedBy array.
18
30
  # @type [Array<String>] used_by
19
31
  attr_accessor :used_by
20
32
 
@@ -12,6 +12,10 @@ module Comet
12
12
  # DefaultEmailReportPolicy is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class DefaultEmailReportPolicy
14
14
 
15
+ # If true, the email reports will use the custom configuration that is defined in
16
+ # UserCustomEmailSettings / Reports fields.
17
+ # If false, the email reports will use configuration from the policy setting if present, or else
18
+ # from the built-in system default email report configuration.
15
19
  # @type [Boolean] should_override_default_reports
16
20
  attr_accessor :should_override_default_reports
17
21
 
@@ -15,9 +15,11 @@ module Comet
15
15
  # @type [String] description
16
16
  attr_accessor :description
17
17
 
18
+ # Unix timestamp in seconds
18
19
  # @type [Number] create_time
19
20
  attr_accessor :create_time
20
21
 
22
+ # Unix timestamp in seconds
21
23
  # @type [Number] modify_time
22
24
  attr_accessor :modify_time
23
25
 
@@ -33,9 +35,11 @@ module Comet
33
35
  # @type [Array<String>] post_exec
34
36
  attr_accessor :post_exec
35
37
 
38
+ # One of the DESTINATIONTYPE_ constants
36
39
  # @type [Number] destination_type
37
40
  attr_accessor :destination_type
38
41
 
42
+ # The URL for the target Comet Server Storage Role, including http/https and trailing slash
39
43
  # @type [String] comet_server
40
44
  attr_accessor :comet_server
41
45
 
@@ -82,6 +86,7 @@ module Comet
82
86
  # @type [String] sftpusername
83
87
  attr_accessor :sftpusername
84
88
 
89
+ # The directory on the SFTP server in which data is stored.
85
90
  # @type [String] sftpremote_path
86
91
  attr_accessor :sftpremote_path
87
92
 
@@ -89,15 +94,21 @@ module Comet
89
94
  # @type [Number] sftpauth_mode
90
95
  attr_accessor :sftpauth_mode
91
96
 
97
+ # For use with DESTINATION_SFTP_AUTHMODE_PASSWORD only: the SSH password to connect with
92
98
  # @type [String] sftppassword
93
99
  attr_accessor :sftppassword
94
100
 
101
+ # For use with DESTINATION_SFTP_AUTHMODE_PRIVATEKEY only: the SSH private key to connect with, in
102
+ # OpenSSH format.
95
103
  # @type [String] sftpprivate_key
96
104
  attr_accessor :sftpprivate_key
97
105
 
106
+ # If true, then the SFTPCustomAuth_KnownHostsFile will be used to verify the remote SSH server's
107
+ # host key, using Trust On First Use (TOFU).
98
108
  # @type [Boolean] sftpcustom_auth__use_known_hosts_file
99
109
  attr_accessor :sftpcustom_auth__use_known_hosts_file
100
110
 
111
+ # If SFTPCustomAuth_UseKnownHostFile is true, the path to the SSH known_hosts file.
101
112
  # @type [String] sftpcustom_auth__known_hosts_file
102
113
  attr_accessor :sftpcustom_auth__known_hosts_file
103
114
 
@@ -110,19 +121,23 @@ module Comet
110
121
  # @type [String] ftppassword
111
122
  attr_accessor :ftppassword
112
123
 
124
+ # If true, store data in the default home directory given by the FTP server. If false, store data in
125
+ # the FTPCustomBaseDirectory path.
113
126
  # @type [Boolean] ftpbase_use_home_directory
114
127
  attr_accessor :ftpbase_use_home_directory
115
128
 
129
+ # If FTPBaseUseHomeDirectory is false, this field controls the path where data is stored.
116
130
  # @type [String] ftpcustom_base_directory
117
131
  attr_accessor :ftpcustom_base_directory
118
132
 
119
- # One of the FTPS_MODE_ constants.
133
+ # Control whether this is plaintext FTP or secure FTPS by using one of the FTPS_MODE_ constants.
120
134
  # @type [Number] ftpsmode
121
135
  attr_accessor :ftpsmode
122
136
 
123
137
  # @type [Number] ftpport
124
138
  attr_accessor :ftpport
125
139
 
140
+ # If set to zero, uses a system default value that is not unlimited.
126
141
  # @type [Number] ftpmax_connections
127
142
  attr_accessor :ftpmax_connections
128
143
 
@@ -148,12 +163,17 @@ module Comet
148
163
  # @type [String] localcopy_path
149
164
  attr_accessor :localcopy_path
150
165
 
166
+ # If logging in to a Windows network share (SMB/CIFS) is required, enter the username here.
151
167
  # @type [String] localcopy_win_smbusername
152
168
  attr_accessor :localcopy_win_smbusername
153
169
 
170
+ # If logging in to a Windows network share (SMB/CIFS) is required, enter the password here. The
171
+ # password may be hashed as per the LocalcopyWinSMBPasswordFormat field.
154
172
  # @type [String] localcopy_win_smbpassword
155
173
  attr_accessor :localcopy_win_smbpassword
156
174
 
175
+ # One of the PASSWORD_FORMAT_ constants. It controls the hash format of the LocalcopyWinSMBPassword
176
+ # field.
157
177
  # @type [Number] localcopy_win_smbpassword_format
158
178
  attr_accessor :localcopy_win_smbpassword_format
159
179
 
@@ -166,9 +186,20 @@ module Comet
166
186
  # @type [Comet::StorjDestinationLocation] storj
167
187
  attr_accessor :storj
168
188
 
189
+ # A list of underlying destinations, that will be combined and presented as one.
169
190
  # @type [Array<Comet::DestinationLocation>] span_targets
170
191
  attr_accessor :span_targets
171
192
 
193
+ # If true, this Spanned destination will use a consistent hashing scheme
194
+ # to immediately find specific files on exactly one of the target destinations.
195
+ # In the Static Slots mode, the span targets cannot be moved or merged, and
196
+ # the files must always remain in their original location.
197
+ #
198
+ # If false, the Spanned destination system will search all targets to find
199
+ # the requested file. This is slightly slower, but allows you to freely merge,
200
+ # split, and reorder the underlying destination locations.
201
+ #
202
+ # The default option is false.
172
203
  # @type [Boolean] span_use_static_slots
173
204
  attr_accessor :span_use_static_slots
174
205
 
@@ -195,6 +226,9 @@ module Comet
195
226
  # @type [Comet::DestinationStatistics] statistics
196
227
  attr_accessor :statistics
197
228
 
229
+ # Configure the retention policy for this Storage Vault. The rules will be applied to any snapshot
230
+ # inside this Storage Vault, unless that snapshot belongs to a Protected Item source that has an
231
+ # overriding retention policy.
198
232
  # @type [Comet::RetentionPolicy] default_retention
199
233
  attr_accessor :default_retention
200
234
 
@@ -10,11 +10,16 @@ require 'json'
10
10
  module Comet
11
11
 
12
12
  # DestinationLocation is a typed class wrapper around the underlying Comet Server API data structure.
13
+ # DestinationLocation describes the underlying storage location for a Storage Vault.
14
+ # Prior to Comet 17.3.3 this was an embedded part of the DestinationConfig type.
15
+ # This type is available in Comet 17.3.3 and later.
13
16
  class DestinationLocation
14
17
 
18
+ # One of the DESTINATIONTYPE_ constants
15
19
  # @type [Number] destination_type
16
20
  attr_accessor :destination_type
17
21
 
22
+ # The URL for the target Comet Server Storage Role, including http/https and trailing slash
18
23
  # @type [String] comet_server
19
24
  attr_accessor :comet_server
20
25
 
@@ -61,6 +66,7 @@ module Comet
61
66
  # @type [String] sftpusername
62
67
  attr_accessor :sftpusername
63
68
 
69
+ # The directory on the SFTP server in which data is stored.
64
70
  # @type [String] sftpremote_path
65
71
  attr_accessor :sftpremote_path
66
72
 
@@ -68,15 +74,21 @@ module Comet
68
74
  # @type [Number] sftpauth_mode
69
75
  attr_accessor :sftpauth_mode
70
76
 
77
+ # For use with DESTINATION_SFTP_AUTHMODE_PASSWORD only: the SSH password to connect with
71
78
  # @type [String] sftppassword
72
79
  attr_accessor :sftppassword
73
80
 
81
+ # For use with DESTINATION_SFTP_AUTHMODE_PRIVATEKEY only: the SSH private key to connect with, in
82
+ # OpenSSH format.
74
83
  # @type [String] sftpprivate_key
75
84
  attr_accessor :sftpprivate_key
76
85
 
86
+ # If true, then the SFTPCustomAuth_KnownHostsFile will be used to verify the remote SSH server's
87
+ # host key, using Trust On First Use (TOFU).
77
88
  # @type [Boolean] sftpcustom_auth__use_known_hosts_file
78
89
  attr_accessor :sftpcustom_auth__use_known_hosts_file
79
90
 
91
+ # If SFTPCustomAuth_UseKnownHostFile is true, the path to the SSH known_hosts file.
80
92
  # @type [String] sftpcustom_auth__known_hosts_file
81
93
  attr_accessor :sftpcustom_auth__known_hosts_file
82
94
 
@@ -89,19 +101,23 @@ module Comet
89
101
  # @type [String] ftppassword
90
102
  attr_accessor :ftppassword
91
103
 
104
+ # If true, store data in the default home directory given by the FTP server. If false, store data in
105
+ # the FTPCustomBaseDirectory path.
92
106
  # @type [Boolean] ftpbase_use_home_directory
93
107
  attr_accessor :ftpbase_use_home_directory
94
108
 
109
+ # If FTPBaseUseHomeDirectory is false, this field controls the path where data is stored.
95
110
  # @type [String] ftpcustom_base_directory
96
111
  attr_accessor :ftpcustom_base_directory
97
112
 
98
- # One of the FTPS_MODE_ constants.
113
+ # Control whether this is plaintext FTP or secure FTPS by using one of the FTPS_MODE_ constants.
99
114
  # @type [Number] ftpsmode
100
115
  attr_accessor :ftpsmode
101
116
 
102
117
  # @type [Number] ftpport
103
118
  attr_accessor :ftpport
104
119
 
120
+ # If set to zero, uses a system default value that is not unlimited.
105
121
  # @type [Number] ftpmax_connections
106
122
  attr_accessor :ftpmax_connections
107
123
 
@@ -127,12 +143,17 @@ module Comet
127
143
  # @type [String] localcopy_path
128
144
  attr_accessor :localcopy_path
129
145
 
146
+ # If logging in to a Windows network share (SMB/CIFS) is required, enter the username here.
130
147
  # @type [String] localcopy_win_smbusername
131
148
  attr_accessor :localcopy_win_smbusername
132
149
 
150
+ # If logging in to a Windows network share (SMB/CIFS) is required, enter the password here. The
151
+ # password may be hashed as per the LocalcopyWinSMBPasswordFormat field.
133
152
  # @type [String] localcopy_win_smbpassword
134
153
  attr_accessor :localcopy_win_smbpassword
135
154
 
155
+ # One of the PASSWORD_FORMAT_ constants. It controls the hash format of the LocalcopyWinSMBPassword
156
+ # field.
136
157
  # @type [Number] localcopy_win_smbpassword_format
137
158
  attr_accessor :localcopy_win_smbpassword_format
138
159
 
@@ -145,9 +166,20 @@ module Comet
145
166
  # @type [Comet::StorjDestinationLocation] storj
146
167
  attr_accessor :storj
147
168
 
169
+ # A list of underlying destinations, that will be combined and presented as one.
148
170
  # @type [Array<Comet::DestinationLocation>] span_targets
149
171
  attr_accessor :span_targets
150
172
 
173
+ # If true, this Spanned destination will use a consistent hashing scheme
174
+ # to immediately find specific files on exactly one of the target destinations.
175
+ # In the Static Slots mode, the span targets cannot be moved or merged, and
176
+ # the files must always remain in their original location.
177
+ #
178
+ # If false, the Spanned destination system will search all targets to find
179
+ # the requested file. This is slightly slower, but allows you to freely merge,
180
+ # split, and reorder the underlying destination locations.
181
+ #
182
+ # The default option is false.
151
183
  # @type [Boolean] span_use_static_slots
152
184
  attr_accessor :span_use_static_slots
153
185
 
@@ -21,9 +21,11 @@ module Comet
21
21
  # @type [String] last_successful_deep_verify__guid
22
22
  attr_accessor :last_successful_deep_verify__guid
23
23
 
24
+ # Unix timestamp in seconds
24
25
  # @type [Number] last_successful_deep_verify__start_time
25
26
  attr_accessor :last_successful_deep_verify__start_time
26
27
 
28
+ # Unix timestamp in seconds
27
29
  # @type [Number] last_successful_deep_verify__end_time
28
30
  attr_accessor :last_successful_deep_verify__end_time
29
31