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
@@ -22,9 +22,11 @@ module Comet
22
22
  # @type [String] owner_device
23
23
  attr_accessor :owner_device
24
24
 
25
+ # Unix timestamp in seconds
25
26
  # @type [Number] create_time
26
27
  attr_accessor :create_time
27
28
 
29
+ # Unix timestamp in seconds
28
30
  # @type [Number] modify_time
29
31
  attr_accessor :modify_time
30
32
 
@@ -48,10 +50,10 @@ module Comet
48
50
  # - Any key starting with INCLUDE: A path that is included
49
51
  # - Any key starting with EXCLUDE: An exclusion (glob format)
50
52
  # - Any key starting with REXCLUDE: An exclusion (regular expression format)
51
- # - Any key starting with PINCLUDE: A JSON string {"TopDirectory": "", "Value": ""}. TopDirectory is
52
- # the path where starts to match the value; Value is an inclusion (glob format)
53
- # - Any key starting with RINCLUDE: A JSON string {"TopDirectory": "", "Value": ""}. TopDirectory is
54
- # the path where starts to match the value; Value is an inclusion (regular expression format)
53
+ # - Any key starting with PINCLUDE: A SourceIncludePattern type encoded in JSON format, describing
54
+ # an advanced inclusion in glob format
55
+ # - Any key starting with RINCLUDE: A SourceIncludePattern type encoded in JSON format, describing
56
+ # an advanced inclusion in regular expression format
55
57
  # - Any key starting with SMBAUTH: A set of Windows network share credentials in WinSMBAuth JSON
56
58
  # format
57
59
  # - USE_WIN_VSS: If present, the 'Take filesystem snapshot' checkbox is checked
@@ -87,6 +89,17 @@ module Comet
87
89
  # @type [Hash{String => String}] engine_props
88
90
  attr_accessor :engine_props
89
91
 
92
+ # If set, this SourceConfig was added from a Policy with the specified ID.
93
+ # This field is available in Comet 23.6.0 and later.
94
+ # @type [String] policy_source_id
95
+ attr_accessor :policy_source_id
96
+
97
+ # For a Policy-defined SourceConfig, this field controls whether the Protected Item will stay linked
98
+ # with the policy.
99
+ # This field is available in Comet 23.6.0 and later.
100
+ # @type [Boolean] existing_user_update
101
+ attr_accessor :existing_user_update
102
+
90
103
  # By default, backup jobs from this Protected Item will be subject
91
104
  # to the overall retention policy for the Storage Vault. You can override the policy
92
105
  # for specific Storage Vaults by putting their destination ID as a key here.
@@ -113,6 +126,7 @@ module Comet
113
126
  @thaw_exec = []
114
127
  @post_exec = []
115
128
  @engine_props = {}
129
+ @policy_source_id = ''
116
130
  @override_destination_retention = {}
117
131
  @statistics = Comet::SourceStatistics.new
118
132
  @unknown_json_fields = {}
@@ -195,6 +209,12 @@ module Comet
195
209
  @engine_props[k1] = v1
196
210
  end
197
211
  end
212
+ when 'PolicySourceID'
213
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
214
+
215
+ @policy_source_id = v
216
+ when 'ExistingUserUpdate'
217
+ @existing_user_update = v
198
218
  when 'OverrideDestinationRetention'
199
219
  @override_destination_retention = {}
200
220
  if v.nil?
@@ -226,6 +246,8 @@ module Comet
226
246
  ret['ThawExec'] = @thaw_exec
227
247
  ret['PostExec'] = @post_exec
228
248
  ret['EngineProps'] = @engine_props
249
+ ret['PolicySourceID'] = @policy_source_id
250
+ ret['ExistingUserUpdate'] = @existing_user_update
229
251
  unless @override_destination_retention.nil?
230
252
  ret['OverrideDestinationRetention'] = @override_destination_retention
231
253
  end
@@ -10,11 +10,16 @@ require 'json'
10
10
  module Comet
11
11
 
12
12
  # SourceIncludePattern is a typed class wrapper around the underlying Comet Server API data structure.
13
+ # SourceIncludePattern is used for pattern inclusions for File and Folder Protected Items
14
+ # (ENGINE_BUILTIN_FILE).
15
+ # It should be marshalled as JSON and then stored in the PINCLUDE / RINCLUDE EngineProp keys.
13
16
  class SourceIncludePattern
14
17
 
18
+ # The filesystem path to search within, for matches
15
19
  # @type [String] top_directory
16
20
  attr_accessor :top_directory
17
21
 
22
+ # The pattern (glob or regex format) to match
18
23
  # @type [String] value
19
24
  attr_accessor :value
20
25
 
@@ -12,9 +12,20 @@ module Comet
12
12
  # SpannedDestinationLocation is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class SpannedDestinationLocation
14
14
 
15
+ # A list of underlying destinations, that will be combined and presented as one.
15
16
  # @type [Array<Comet::DestinationLocation>] span_targets
16
17
  attr_accessor :span_targets
17
18
 
19
+ # If true, this Spanned destination will use a consistent hashing scheme
20
+ # to immediately find specific files on exactly one of the target destinations.
21
+ # In the Static Slots mode, the span targets cannot be moved or merged, and
22
+ # the files must always remain in their original location.
23
+ #
24
+ # If false, the Spanned destination system will search all targets to find
25
+ # the requested file. This is slightly slower, but allows you to freely merge,
26
+ # split, and reorder the underlying destination locations.
27
+ #
28
+ # The default option is false.
18
29
  # @type [Boolean] span_use_static_slots
19
30
  attr_accessor :span_use_static_slots
20
31
 
@@ -22,15 +22,21 @@ module Comet
22
22
  # @type [Number] sshauth_mode
23
23
  attr_accessor :sshauth_mode
24
24
 
25
+ # For use with SSHCONNECTION_AUTHMODE_PASSWORD only: the SSH password to connect with
25
26
  # @type [String] sshpassword
26
27
  attr_accessor :sshpassword
27
28
 
29
+ # For use with SSHCONNECTION_AUTHMODE_PRIVATEKEY only: the SSH private key to connect with, in
30
+ # OpenSSH format.
28
31
  # @type [String] sshprivate_key
29
32
  attr_accessor :sshprivate_key
30
33
 
34
+ # If true, then the SSHCustomAuth_KnownHostsFile will be used to verify the remote SSH server's host
35
+ # key, using Trust On First Use (TOFU).
31
36
  # @type [Boolean] sshcustom_auth__use_known_hosts_file
32
37
  attr_accessor :sshcustom_auth__use_known_hosts_file
33
38
 
39
+ # If SSHCustomAuth_UseKnownHostsFile is true, the path to the SSH known_hosts file.
34
40
  # @type [String] sshcustom_auth__known_hosts_file
35
41
  attr_accessor :sshcustom_auth__known_hosts_file
36
42
 
@@ -19,6 +19,7 @@ module Comet
19
19
  attr_accessor :storage
20
20
 
21
21
  # @type [Array<Comet::LocalStorageDirectory>] local_storage__legacy
22
+ # @deprecated This member has been deprecated since Comet version 17.3.5
22
23
  attr_accessor :local_storage__legacy
23
24
 
24
25
  # @type [Array<Comet::ReplicaServer>] replicate_to
@@ -12,9 +12,11 @@ module Comet
12
12
  # StoredObject is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class StoredObject
14
14
 
15
+ # The name of the stored object. It is unique within this directory tree.
15
16
  # @type [String] name
16
17
  attr_accessor :name
17
18
 
19
+ # Unix timestamp in seconds
18
20
  # @type [Number] modify_time
19
21
  attr_accessor :modify_time
20
22
 
@@ -22,9 +24,12 @@ module Comet
22
24
  # @type [String] type
23
25
  attr_accessor :type
24
26
 
27
+ # If this StoredObject represents a directory, this value can be used to recursively select the
28
+ # directory contents.
25
29
  # @type [String] subtree
26
30
  attr_accessor :subtree
27
31
 
32
+ # Bytes
28
33
  # @type [Number] size
29
34
  attr_accessor :size
30
35
 
@@ -46,9 +51,11 @@ module Comet
46
51
  # @type [Boolean] has_attachments
47
52
  attr_accessor :has_attachments
48
53
 
54
+ # Unix timestamp in seconds
49
55
  # @type [Number] start_time
50
56
  attr_accessor :start_time
51
57
 
58
+ # Unix timestamp in seconds
52
59
  # @type [Number] end_time
53
60
  attr_accessor :end_time
54
61
 
@@ -12,12 +12,24 @@ module Comet
12
12
  # StreamableEvent is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class StreamableEvent
14
14
 
15
+ # @type [String] actor
16
+ attr_accessor :actor
17
+
15
18
  # @type [String] owner_organization_id
16
19
  attr_accessor :owner_organization_id
17
20
 
21
+ # @type [String] resource_id
22
+ attr_accessor :resource_id
23
+
18
24
  # @type [Number] type
19
25
  attr_accessor :type
20
26
 
27
+ # @type [Number] timestamp
28
+ attr_accessor :timestamp
29
+
30
+ # @type [String] type_string
31
+ attr_accessor :type_string
32
+
21
33
  # @type [Object] data
22
34
  attr_accessor :data
23
35
 
@@ -29,8 +41,12 @@ module Comet
29
41
  end
30
42
 
31
43
  def clear
44
+ @actor = ''
32
45
  @owner_organization_id = ''
46
+ @resource_id = ''
33
47
  @type = 0
48
+ @timestamp = 0
49
+ @type_string = ''
34
50
  @unknown_json_fields = {}
35
51
  end
36
52
 
@@ -47,14 +63,30 @@ module Comet
47
63
 
48
64
  obj.each do |k, v|
49
65
  case k
66
+ when 'Actor'
67
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
68
+
69
+ @actor = v
50
70
  when 'OwnerOrganizationID'
51
71
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
52
72
 
53
73
  @owner_organization_id = v
74
+ when 'ResourceID'
75
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
76
+
77
+ @resource_id = v
54
78
  when 'Type'
55
79
  raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
56
80
 
57
81
  @type = v
82
+ when 'Timestamp'
83
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
84
+
85
+ @timestamp = v
86
+ when 'TypeString'
87
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
88
+
89
+ @type_string = v
58
90
  when 'Data'
59
91
  @data = v
60
92
  else
@@ -66,8 +98,18 @@ module Comet
66
98
  # @return [Hash] The complete object as a Ruby hash
67
99
  def to_hash
68
100
  ret = {}
101
+ ret['Actor'] = @actor
69
102
  ret['OwnerOrganizationID'] = @owner_organization_id
103
+ unless @resource_id.nil?
104
+ ret['ResourceID'] = @resource_id
105
+ end
70
106
  ret['Type'] = @type
107
+ unless @timestamp.nil?
108
+ ret['Timestamp'] = @timestamp
109
+ end
110
+ unless @type_string.nil?
111
+ ret['TypeString'] = @type_string
112
+ end
71
113
  unless @data.nil?
72
114
  ret['Data'] = @data
73
115
  end
@@ -19,12 +19,15 @@ module Comet
19
19
  # @type [String] message
20
20
  attr_accessor :message
21
21
 
22
+ # A data URI of an image of a TOTP code (e.g. "data:image/png;base64,AAA...")
22
23
  # @type [String] image
23
24
  attr_accessor :image
24
25
 
26
+ # This field is available in Comet 18.9.9 and later.
25
27
  # @type [String] url
26
28
  attr_accessor :url
27
29
 
30
+ # This field is available in Comet 20.3.2 and later.
28
31
  # @type [String] profile_hash
29
32
  attr_accessor :profile_hash
30
33
 
@@ -12,6 +12,7 @@ module Comet
12
12
  # UpdateCampaignDeviceStatus is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class UpdateCampaignDeviceStatus
14
14
 
15
+ # One of the UPDATESTATUS_ constants
15
16
  # @type [Number] status
16
17
  attr_accessor :status
17
18
 
@@ -36,6 +36,7 @@ module Comet
36
36
  # @type [Comet::SearchClause] device_filter
37
37
  attr_accessor :device_filter
38
38
 
39
+ # Unix timestamp, in seconds
39
40
  # @type [Number] start_time
40
41
  attr_accessor :start_time
41
42
 
@@ -36,6 +36,7 @@ module Comet
36
36
  # @type [Comet::SearchClause] device_filter
37
37
  attr_accessor :device_filter
38
38
 
39
+ # Unix timestamp, in seconds
39
40
  # @type [Number] start_time
40
41
  attr_accessor :start_time
41
42
 
@@ -18,6 +18,7 @@ module Comet
18
18
  # @type [String] device_id
19
19
  attr_accessor :device_id
20
20
 
21
+ # One of the UPDATESTATUS_ constants
21
22
  # @type [Number] status
22
23
  attr_accessor :status
23
24
 
@@ -51,18 +51,23 @@ module Comet
51
51
  attr_accessor :send_email_reports
52
52
 
53
53
  # Storage Vaults
54
+ # The string keys can be any unique key. Using a GUID is recommended, but optional.
54
55
  # @type [Hash{String => Comet::DestinationConfig}] destinations
55
56
  attr_accessor :destinations
56
57
 
57
58
  # Protected Items
59
+ # The string keys can be any unique key. Using a GUID is recommended, but optional.
58
60
  # @type [Hash{String => Comet::SourceConfig}] sources
59
61
  attr_accessor :sources
60
62
 
61
63
  # Schedules
64
+ # The string keys can be any unique key. Using a GUID is recommended, but optional.
62
65
  # @type [Hash{String => Comet::BackupRuleConfig}] backup_rules
63
66
  attr_accessor :backup_rules
64
67
 
65
68
  # Devices
69
+ # The string keys are the device's ID. The device ID is generated automatically based on a mix of
70
+ # hardware and software identifiers on the installed PC.
66
71
  # To revoke a device, use the AdminRevokeDevice API instead of accessing these fields directly. This
67
72
  # API can also remove associated Protected Items, uninstall the remote device, and disconnect its
68
73
  # live connection.
@@ -107,6 +112,7 @@ module Comet
107
112
  # @type [Comet::UserPolicy] policy
108
113
  attr_accessor :policy
109
114
 
115
+ # One of the PASSWORD_FORMAT_ constants
110
116
  # To change the user's password, use the AdminResetUserPassword API instead of accessing these
111
117
  # fields directly. Otherwise, other encrypted fields in the user profile may become corrupted.
112
118
  # @type [Number] password_format
@@ -124,9 +130,12 @@ module Comet
124
130
  # @type [Boolean] allow_password_login
125
131
  attr_accessor :allow_password_login
126
132
 
133
+ # If true, then TOTP is required to open the desktop app or the Comet Server web interface with this
134
+ # user's credentials.
127
135
  # @type [Boolean] allow_password_and_totplogin
128
136
  attr_accessor :allow_password_and_totplogin
129
137
 
138
+ # One of the ENCRYPTIONMETHOD_ constants
130
139
  # @type [Number] totpkey_encryption_format
131
140
  attr_accessor :totpkey_encryption_format
132
141
 
@@ -10,6 +10,7 @@ require 'json'
10
10
  module Comet
11
11
 
12
12
  # UserProfileFragment is a typed class wrapper around the underlying Comet Server API data structure.
13
+ # @deprecated This type has been deprecated since Comet version 23.3.5
13
14
  class UserProfileFragment
14
15
 
15
16
  # @type [String] username
@@ -21,6 +21,7 @@ module Comet
21
21
  # @type [Number] create_time
22
22
  attr_accessor :create_time
23
23
 
24
+ # This field is available in Comet 20.12.4 and later.
24
25
  # @type [Boolean] has_original_path_info
25
26
  attr_accessor :has_original_path_info
26
27
 
@@ -18,6 +18,7 @@ module Comet
18
18
  # @type [String] name
19
19
  attr_accessor :name
20
20
 
21
+ # "VSS_CT_DATABASE" or "VSS_CT_FILEGROUP"
21
22
  # @type [String] ctype
22
23
  attr_accessor :ctype
23
24
 
@@ -13,12 +13,14 @@ module Comet
13
13
  # WebAuthnCredential is a typed class wrapper around the underlying Comet Server API data structure.
14
14
  class WebAuthnCredential
15
15
 
16
+ # When this field is expressed as a WebAuthnCredential 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.
16
17
  # @type [Array<Object>] public_key
17
18
  attr_accessor :public_key
18
19
 
19
20
  # @type [String] attestation_type
20
21
  attr_accessor :attestation_type
21
22
 
23
+ # When this field is expressed as a WebAuthnCredential 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.
22
24
  # @type [Array<Object>] aaguid
23
25
  attr_accessor :aaguid
24
26
 
@@ -16,6 +16,7 @@ module Comet
16
16
  # @type [String] type
17
17
  attr_accessor :type
18
18
 
19
+ # When this field is expressed as a WebAuthnCredentialDescriptor 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.
19
20
  # @type [Array<Object>] credential_id
20
21
  attr_accessor :credential_id
21
22
 
@@ -13,6 +13,7 @@ module Comet
13
13
  # WebAuthnPublicKeyCredentialCreationOptions is a typed class wrapper around the underlying Comet Server API data structure.
14
14
  class WebAuthnPublicKeyCredentialCreationOptions
15
15
 
16
+ # When this field is expressed as a WebAuthnPublicKeyCredentialCreationOptions 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.
16
17
  # @type [Array<Object>] challenge
17
18
  attr_accessor :challenge
18
19
 
@@ -13,6 +13,7 @@ module Comet
13
13
  # WebAuthnPublicKeyCredentialRequestOptions is a typed class wrapper around the underlying Comet Server API data structure.
14
14
  class WebAuthnPublicKeyCredentialRequestOptions
15
15
 
16
+ # When this field is expressed as a WebAuthnPublicKeyCredentialRequestOptions 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.
16
17
  # @type [Array<Object>] challenge
17
18
  attr_accessor :challenge
18
19
 
@@ -22,6 +22,7 @@ module Comet
22
22
  # @type [String] display_name
23
23
  attr_accessor :display_name
24
24
 
25
+ # When this field is expressed as a WebAuthnUserEntity 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.
25
26
  # @type [Array<Object>] id
26
27
  attr_accessor :id
27
28
 
@@ -12,6 +12,8 @@ module Comet
12
12
  # WebInterfaceBrandingProperties is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class WebInterfaceBrandingProperties
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
 
@@ -10,17 +10,30 @@ require 'json'
10
10
  module Comet
11
11
 
12
12
  # WebhookOption is a typed class wrapper around the underlying Comet Server API data structure.
13
+ # WebhookOption defines the configuration of a webhook target. The Comet Server will send a live
14
+ # HTTP POST event to the webhook URL when certain events happen.
13
15
  class WebhookOption
14
16
 
17
+ # The target URL to POST the event data to
15
18
  # @type [String] url
16
19
  attr_accessor :url
17
20
 
18
- # @type [Array<Number>] white_listed_event_types
19
- attr_accessor :white_listed_event_types
20
-
21
+ # CustomHeaders allows specifying custom headers which are added to the outgoing POST request
22
+ # from Comet Server. Custom headers are specified as (header name, header value) pairs. If a
23
+ # custom header conflicts with a header required by HTTP or the Comet tracing ID header
24
+ # (`x-Comet-Tracing-Id`), it will be ignored.
21
25
  # @type [Hash{String => String}] custom_headers
22
26
  attr_accessor :custom_headers
23
27
 
28
+ # One of the STREAM_LEVEL_ constants. This controls how much data is sent in the webhook event.
29
+ # @type [String] level
30
+ attr_accessor :level
31
+
32
+ # Configure a subset of allowed event types (see SEVT_ constants). If the array is empty, all events
33
+ # will be sent
34
+ # @type [Array<Number>] white_listed_event_types
35
+ attr_accessor :white_listed_event_types
36
+
24
37
  # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
25
38
  attr_accessor :unknown_json_fields
26
39
 
@@ -30,8 +43,9 @@ module Comet
30
43
 
31
44
  def clear
32
45
  @url = ''
33
- @white_listed_event_types = []
34
46
  @custom_headers = {}
47
+ @level = ''
48
+ @white_listed_event_types = []
35
49
  @unknown_json_fields = {}
36
50
  end
37
51
 
@@ -52,17 +66,6 @@ module Comet
52
66
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
53
67
 
54
68
  @url = v
55
- when 'WhiteListedEventTypes'
56
- if v.nil?
57
- @white_listed_event_types = []
58
- else
59
- @white_listed_event_types = Array.new(v.length)
60
- v.each_with_index do |v1, i1|
61
- raise TypeError, "'v1' expected Numeric, got #{v1.class}" unless v1.is_a? Numeric
62
-
63
- @white_listed_event_types[i1] = v1
64
- end
65
- end
66
69
  when 'CustomHeaders'
67
70
  @custom_headers = {}
68
71
  if v.nil?
@@ -74,6 +77,21 @@ module Comet
74
77
  @custom_headers[k1] = v1
75
78
  end
76
79
  end
80
+ when 'Level'
81
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
82
+
83
+ @level = v
84
+ when 'WhiteListedEventTypes'
85
+ if v.nil?
86
+ @white_listed_event_types = []
87
+ else
88
+ @white_listed_event_types = Array.new(v.length)
89
+ v.each_with_index do |v1, i1|
90
+ raise TypeError, "'v1' expected Numeric, got #{v1.class}" unless v1.is_a? Numeric
91
+
92
+ @white_listed_event_types[i1] = v1
93
+ end
94
+ end
77
95
  else
78
96
  @unknown_json_fields[k] = v
79
97
  end
@@ -84,8 +102,9 @@ module Comet
84
102
  def to_hash
85
103
  ret = {}
86
104
  ret['URL'] = @url
87
- ret['WhiteListedEventTypes'] = @white_listed_event_types
88
105
  ret['CustomHeaders'] = @custom_headers
106
+ ret['Level'] = @level
107
+ ret['WhiteListedEventTypes'] = @white_listed_event_types
89
108
  @unknown_json_fields.each do |k, v|
90
109
  ret[k] = v
91
110
  end
@@ -12,12 +12,14 @@ module Comet
12
12
  # WindowsCodeSignProperties is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class WindowsCodeSignProperties
14
14
 
15
+ # One of the WINDOWSCODESIGN_METHOD_ constants
15
16
  # @type [Number] windows_code_sign_method
16
17
  attr_accessor :windows_code_sign_method
17
18
 
18
19
  # @type [String] windows_code_sign_pkcs12file_path
19
20
  attr_accessor :windows_code_sign_pkcs12file_path
20
21
 
22
+ # One of the ENCRYPTIONMETHOD_ constants
21
23
  # @type [Number] windows_code_sign_pkcs12password_format
22
24
  attr_accessor :windows_code_sign_pkcs12password_format
23
25
 
@@ -37,6 +39,7 @@ module Comet
37
39
  # @type [String] windows_code_sign_pkcs11key_id
38
40
  attr_accessor :windows_code_sign_pkcs11key_id
39
41
 
42
+ # One of the ENCRYPTIONMETHOD_ constants
40
43
  # @type [Number] windows_code_sign_pkcs11password_format
41
44
  attr_accessor :windows_code_sign_pkcs11password_format
42
45
 
@@ -52,6 +55,7 @@ module Comet
52
55
  # @type [String] windows_code_sign_azure_app_id
53
56
  attr_accessor :windows_code_sign_azure_app_id
54
57
 
58
+ # One of the ENCRYPTIONMETHOD_ constants
55
59
  # @type [Number] windows_code_sign_azure_app_secret_format
56
60
  attr_accessor :windows_code_sign_azure_app_secret_format
57
61
 
@@ -73,6 +73,7 @@ require_relative 'comet/models/external_authentication_source'
73
73
  require_relative 'comet/models/external_ldapauthentication_source_server'
74
74
  require_relative 'comet/models/external_ldapauthentication_source_settings'
75
75
  require_relative 'comet/models/extra_file_exclusion'
76
+ require_relative 'comet/models/file_option'
76
77
  require_relative 'comet/models/ftpdestination_location'
77
78
  require_relative 'comet/models/get_group_policy_response'
78
79
  require_relative 'comet/models/get_profile_and_hash_response_message'
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.8.0
4
+ version: 2.10.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: 2023-05-05 00:00:00.000000000 Z
11
+ date: 2023-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -151,6 +151,7 @@ files:
151
151
  - lib/comet/models/external_ldapauthentication_source_server.rb
152
152
  - lib/comet/models/external_ldapauthentication_source_settings.rb
153
153
  - lib/comet/models/extra_file_exclusion.rb
154
+ - lib/comet/models/file_option.rb
154
155
  - lib/comet/models/ftpdestination_location.rb
155
156
  - lib/comet/models/get_group_policy_response.rb
156
157
  - lib/comet/models/get_profile_and_hash_response_message.rb