comet_backup_ruby_sdk 2.9.0 → 2.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -0
  3. data/.rubocop.yml +0 -0
  4. data/CHANGELOG.md +16 -0
  5. data/Gemfile +0 -0
  6. data/Gemfile.lock +1 -1
  7. data/LICENSE +0 -0
  8. data/README.md +0 -0
  9. data/Rakefile +0 -0
  10. data/comet_backup_ruby_sdk.gemspec +1 -1
  11. data/lib/comet/comet_server.rb +137 -1
  12. data/lib/comet/definitions.rb +47 -9
  13. data/lib/comet/models/admin_account_properties_response.rb +1 -0
  14. data/lib/comet/models/admin_security_options.rb +4 -0
  15. data/lib/comet/models/admin_u2fregistration.rb +2 -0
  16. data/lib/comet/models/admin_user_permissions.rb +81 -0
  17. data/lib/comet/models/admin_web_authn_registration.rb +2 -0
  18. data/lib/comet/models/allowed_admin_user.rb +4 -0
  19. data/lib/comet/models/authentication_role_options.rb +2 -0
  20. data/lib/comet/models/branding_options.rb +6 -1
  21. data/lib/comet/models/branding_properties.rb +6 -1
  22. data/lib/comet/models/bucket_properties.rb +2 -0
  23. data/lib/comet/models/constellation_stats.rb +5 -0
  24. data/lib/comet/models/device_config.rb +12 -0
  25. data/lib/comet/models/email_reporting_option.rb +2 -0
  26. data/lib/comet/models/external_authentication_source.rb +10 -0
  27. data/lib/comet/models/external_authentication_source_display.rb +82 -0
  28. data/lib/comet/models/external_authentication_source_response.rb +99 -0
  29. data/lib/comet/models/external_ldapauthentication_source_server.rb +1 -0
  30. data/lib/comet/models/external_ldapauthentication_source_settings.rb +1 -0
  31. data/lib/comet/models/install_token.rb +5 -0
  32. data/lib/comet/models/mac_oscode_sign_properties.rb +6 -0
  33. data/lib/comet/models/mssqlconnection.rb +3 -0
  34. data/lib/comet/models/news_entry.rb +1 -0
  35. data/lib/comet/models/oidc_claim.rb +84 -0
  36. data/lib/comet/models/oidc_config.rb +203 -0
  37. data/lib/comet/models/osinfo.rb +30 -0
  38. data/lib/comet/models/partition.rb +5 -0
  39. data/lib/comet/models/private_branding_properties.rb +6 -1
  40. data/lib/comet/models/psaconfig.rb +4 -0
  41. data/lib/comet/models/remote_server_address.rb +10 -0
  42. data/lib/comet/models/remote_storage_option.rb +10 -0
  43. data/lib/comet/models/replica_server.rb +10 -0
  44. data/lib/comet/models/restore_job_advanced_options.rb +19 -0
  45. data/lib/comet/models/retention_range.rb +8 -0
  46. data/lib/comet/models/search_clause.rb +16 -0
  47. data/lib/comet/models/self_backup_export_options.rb +1 -0
  48. data/lib/comet/models/self_backup_target.rb +1 -0
  49. data/lib/comet/models/server_config_options.rb +1 -0
  50. data/lib/comet/models/server_meta_branding_properties.rb +19 -0
  51. data/lib/comet/models/server_meta_version_info.rb +2 -0
  52. data/lib/comet/models/session_key_regenerated_response.rb +2 -0
  53. data/lib/comet/models/single_field_source.rb +1 -0
  54. data/lib/comet/models/software_update_news_response.rb +4 -0
  55. data/lib/comet/models/source_basic_info.rb +2 -0
  56. data/lib/comet/models/source_config.rb +20 -0
  57. data/lib/comet/models/storage_role_options.rb +1 -0
  58. data/lib/comet/models/totp_regenerated_response.rb +3 -0
  59. data/lib/comet/models/update_campaign_device_status.rb +1 -0
  60. data/lib/comet/models/update_campaign_properties.rb +1 -0
  61. data/lib/comet/models/update_campaign_status.rb +1 -0
  62. data/lib/comet/models/update_campaign_status_device_entry.rb +1 -0
  63. data/lib/comet/models/user_policy.rb +6 -0
  64. data/lib/comet/models/vault_snapshot.rb +1 -0
  65. data/lib/comet/models/vsscomponent.rb +1 -0
  66. data/lib/comet/models/web_authn_credential.rb +2 -0
  67. data/lib/comet/models/web_authn_credential_descriptor.rb +1 -0
  68. data/lib/comet/models/web_authn_public_key_credential_creation_options.rb +1 -0
  69. data/lib/comet/models/web_authn_public_key_credential_request_options.rb +1 -0
  70. data/lib/comet/models/web_authn_user_entity.rb +1 -0
  71. data/lib/comet/models/windows_code_sign_properties.rb +5 -1
  72. data/lib/comet_backup_ruby_sdk.rb +4 -0
  73. metadata +6 -2
@@ -15,6 +15,7 @@ module Comet
15
15
  # @type [String] field_name
16
16
  attr_accessor :field_name
17
17
 
18
+ # One of "bool" / "int" / "string"
18
19
  # @type [String] field_type
19
20
  attr_accessor :field_type
20
21
 
@@ -12,15 +12,19 @@ module Comet
12
12
  # SoftwareUpdateNewsResponse is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class SoftwareUpdateNewsResponse
14
14
 
15
+ # The latest "Quarterly" release version of Comet known to the account.cometbackup.com system.
15
16
  # @type [String] latest_stable
16
17
  attr_accessor :latest_stable
17
18
 
19
+ # The latest "Voyager" release version of Comet known to the account.cometbackup.com system.
18
20
  # @type [String] latest_prerelease
19
21
  attr_accessor :latest_prerelease
20
22
 
23
+ # A URL linking to the Comet Server downloads page.
21
24
  # @type [String] downloads_url
22
25
  attr_accessor :downloads_url
23
26
 
27
+ # An array of recent news items written by Comet Backup staff. Entries are english plaintext.
24
28
  # @type [Array<String>] whats_new
25
29
  attr_accessor :whats_new
26
30
 
@@ -10,6 +10,8 @@ require 'json'
10
10
  module Comet
11
11
 
12
12
  # SourceBasicInfo is a typed class wrapper around the underlying Comet Server API data structure.
13
+ # SourceBasicInfo is the minimal amount of information one device knows about another device's
14
+ # Protected Items, in order to safely perform retention passes on their behalf.
13
15
  class SourceBasicInfo
14
16
 
15
17
  # @type [String] description
@@ -89,6 +89,17 @@ module Comet
89
89
  # @type [Hash{String => String}] engine_props
90
90
  attr_accessor :engine_props
91
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
+
92
103
  # By default, backup jobs from this Protected Item will be subject
93
104
  # to the overall retention policy for the Storage Vault. You can override the policy
94
105
  # for specific Storage Vaults by putting their destination ID as a key here.
@@ -115,6 +126,7 @@ module Comet
115
126
  @thaw_exec = []
116
127
  @post_exec = []
117
128
  @engine_props = {}
129
+ @policy_source_id = ''
118
130
  @override_destination_retention = {}
119
131
  @statistics = Comet::SourceStatistics.new
120
132
  @unknown_json_fields = {}
@@ -197,6 +209,12 @@ module Comet
197
209
  @engine_props[k1] = v1
198
210
  end
199
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
200
218
  when 'OverrideDestinationRetention'
201
219
  @override_destination_retention = {}
202
220
  if v.nil?
@@ -228,6 +246,8 @@ module Comet
228
246
  ret['ThawExec'] = @thaw_exec
229
247
  ret['PostExec'] = @post_exec
230
248
  ret['EngineProps'] = @engine_props
249
+ ret['PolicySourceID'] = @policy_source_id
250
+ ret['ExistingUserUpdate'] = @existing_user_update
231
251
  unless @override_destination_retention.nil?
232
252
  ret['OverrideDestinationRetention'] = @override_destination_retention
233
253
  end
@@ -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
@@ -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
 
@@ -99,6 +99,9 @@ module Comet
99
99
  # @type [Boolean] prevent_protected_item_retention
100
100
  attr_accessor :prevent_protected_item_retention
101
101
 
102
+ # @type [Boolean] allow_edit_object_lock_retention
103
+ attr_accessor :allow_edit_object_lock_retention
104
+
102
105
  # @type [Hash{String => Comet::SourceConfig}] default_sources
103
106
  attr_accessor :default_sources
104
107
 
@@ -230,6 +233,8 @@ module Comet
230
233
  @enforce_storage_vault_retention = v
231
234
  when 'PreventProtectedItemRetention'
232
235
  @prevent_protected_item_retention = v
236
+ when 'AllowEditObjectLockRetention'
237
+ @allow_edit_object_lock_retention = v
233
238
  when 'DefaultSources'
234
239
  @default_sources = {}
235
240
  if v.nil?
@@ -322,6 +327,7 @@ module Comet
322
327
  ret['DefaultStorageVaultRetention'] = @default_storage_vault_retention
323
328
  ret['EnforceStorageVaultRetention'] = @enforce_storage_vault_retention
324
329
  ret['PreventProtectedItemRetention'] = @prevent_protected_item_retention
330
+ ret['AllowEditObjectLockRetention'] = @allow_edit_object_lock_retention
325
331
  ret['DefaultSources'] = @default_sources
326
332
  ret['DefaultSourcesBackupRules'] = @default_sources_backup_rules
327
333
  ret['DefaultSourcesWithOSRestriction'] = @default_sources_with_osrestriction
@@ -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,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
 
@@ -30,13 +32,14 @@ module Comet
30
32
  # @type [String] windows_code_sign_pkcs11module
31
33
  attr_accessor :windows_code_sign_pkcs11module
32
34
 
35
+ # This field was deprecated between 23.3.0 and 23.6.x, but is now used again.
33
36
  # @type [String] windows_code_sign_pkcs11certfile
34
- # @deprecated This member has been deprecated since Comet version 22.12.7
35
37
  attr_accessor :windows_code_sign_pkcs11certfile
36
38
 
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
 
@@ -70,6 +70,8 @@ require_relative 'comet/models/email_report_config'
70
70
  require_relative 'comet/models/email_report_generated_preview'
71
71
  require_relative 'comet/models/email_reporting_option'
72
72
  require_relative 'comet/models/external_authentication_source'
73
+ require_relative 'comet/models/external_authentication_source_display'
74
+ require_relative 'comet/models/external_authentication_source_response'
73
75
  require_relative 'comet/models/external_ldapauthentication_source_server'
74
76
  require_relative 'comet/models/external_ldapauthentication_source_settings'
75
77
  require_relative 'comet/models/extra_file_exclusion'
@@ -104,6 +106,8 @@ require_relative 'comet/models/office_365custom_setting'
104
106
  require_relative 'comet/models/office_365custom_setting_v2'
105
107
  require_relative 'comet/models/office_365mixed_virtual_account'
106
108
  require_relative 'comet/models/office_365object_info'
109
+ require_relative 'comet/models/oidc_claim'
110
+ require_relative 'comet/models/oidc_config'
107
111
  require_relative 'comet/models/organization'
108
112
  require_relative 'comet/models/organization_login_urlresponse'
109
113
  require_relative 'comet/models/organization_response'
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.9.0
4
+ version: 2.11.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-06-01 00:00:00.000000000 Z
11
+ date: 2023-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -148,6 +148,8 @@ files:
148
148
  - lib/comet/models/email_report_generated_preview.rb
149
149
  - lib/comet/models/email_reporting_option.rb
150
150
  - lib/comet/models/external_authentication_source.rb
151
+ - lib/comet/models/external_authentication_source_display.rb
152
+ - lib/comet/models/external_authentication_source_response.rb
151
153
  - lib/comet/models/external_ldapauthentication_source_server.rb
152
154
  - lib/comet/models/external_ldapauthentication_source_settings.rb
153
155
  - lib/comet/models/extra_file_exclusion.rb
@@ -182,6 +184,8 @@ files:
182
184
  - lib/comet/models/office_365custom_setting_v2.rb
183
185
  - lib/comet/models/office_365mixed_virtual_account.rb
184
186
  - lib/comet/models/office_365object_info.rb
187
+ - lib/comet/models/oidc_claim.rb
188
+ - lib/comet/models/oidc_config.rb
185
189
  - lib/comet/models/organization.rb
186
190
  - lib/comet/models/organization_login_urlresponse.rb
187
191
  - lib/comet/models/organization_response.rb