comet_backup_ruby_sdk 2.35.0 → 2.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5515ec0d67e0e3f5933187f1b9abd01390de257f15acebbac6b02f1f6b323eda
4
- data.tar.gz: f73f2bbcbcdacbf88dbc5f22d09eec1e15305dd88cdafeedbed3cba80394da1b
3
+ metadata.gz: 9d9fc30a121c374d4b92dd55afb55c535b02da997d4d37efe5ff549c5c4403f4
4
+ data.tar.gz: ac4736937b564fcc2e689d7b3cacec002fab32a2d615037893a789b95002d8aa
5
5
  SHA512:
6
- metadata.gz: 64170e8dc7026e1ab4f50e3fa2f435d222e2502223d690ae57357b647b3c91c0ab7f3d7324c4de198423930e8d7379709fd9ceb905663374633e48ca4b54a242
7
- data.tar.gz: dddc00508aae6f6543337f6157b586a6086173e5fe690823462625256b332e73fc084eb74a93002ecebb927df9b526efbad91701978cc5b5eb6a28b495e7d625
6
+ metadata.gz: ccb3449005c19d46da142f4678c4a468aafe36b1b44bd543bb182fa0cdcf7cfadbe4c84cd61d8643bfee80c5ead9f3ae3ab1ff0d3712d93dcc163379bd349c9e
7
+ data.tar.gz: 2ecbe31ae73af5eed45ea24cdfc6be68d9727a5bc99fb23cf807917165e31e3c51acae5424e97ada6b8ed3420b5afcf8fbb4f79e865956c79521c2b63715746e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2024-09-17 v2.36.0
4
+
5
+ - Based on Comet 24.9.1
6
+ - Added Hyper-V Guest limits per user
7
+ - Added VMware Guest limits per user
8
+ - Added protected item type (engine) to protected item class
9
+ - Added Force Overwrite Restore permissions
10
+
3
11
  ## 2024-08-01 v2.35.0
4
12
 
5
13
  - Based on Comet 24.6.6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- comet_backup_ruby_sdk (2.35.0)
4
+ comet_backup_ruby_sdk (2.36.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -12,7 +12,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
12
12
 
13
13
  Gem::Specification.new do |spec|
14
14
  spec.name = 'comet_backup_ruby_sdk'
15
- spec.version = '2.35.0'
15
+ spec.version = '2.36.0'
16
16
  spec.authors = ['Comet Licensing Ltd.']
17
17
  spec.email = ['hello@cometbackup.com']
18
18
 
@@ -7,13 +7,13 @@
7
7
 
8
8
  module Comet
9
9
 
10
- APPLICATION_VERSION = '24.6.6'
10
+ APPLICATION_VERSION = '24.9.1'
11
11
 
12
12
  APPLICATION_VERSION_MAJOR = 24
13
13
 
14
- APPLICATION_VERSION_MINOR = 6
14
+ APPLICATION_VERSION_MINOR = 9
15
15
 
16
- APPLICATION_VERSION_REVISION = 6
16
+ APPLICATION_VERSION_REVISION = 1
17
17
 
18
18
  # AutoRetentionLevel: The system will automatically choose how often to run an automatic Retention Pass after each backup job.
19
19
  BACKUPJOBAUTORETENTION_AUTOMATIC = 0
@@ -28,6 +28,11 @@ module Comet
28
28
  # @type [Boolean] overwrite_if_different_content
29
29
  attr_accessor :overwrite_if_different_content
30
30
 
31
+ # For RESTORETYPE_FILE. If set, OverwriteExistingFiles must be true. This can be set in combination
32
+ # with other OverwriteIf options.
33
+ # @type [Boolean] overwrite_force_permissions
34
+ attr_accessor :overwrite_force_permissions
35
+
31
36
  # For RESTORETYPE_FILE. If set, DestPath must be blank
32
37
  # @type [Boolean] dest_is_original_location
33
38
  attr_accessor :dest_is_original_location
@@ -149,6 +154,8 @@ module Comet
149
154
  @overwrite_if_newer = v
150
155
  when 'OverwriteIfDifferentContent'
151
156
  @overwrite_if_different_content = v
157
+ when 'OverwriteForcePermissions'
158
+ @overwrite_force_permissions = v
152
159
  when 'DestIsOriginalLocation'
153
160
  @dest_is_original_location = v
154
161
  when 'DestPath'
@@ -225,6 +232,7 @@ module Comet
225
232
  ret['OverwriteExistingFiles'] = @overwrite_existing_files
226
233
  ret['OverwriteIfNewer'] = @overwrite_if_newer
227
234
  ret['OverwriteIfDifferentContent'] = @overwrite_if_different_content
235
+ ret['OverwriteForcePermissions'] = @overwrite_force_permissions
228
236
  ret['DestIsOriginalLocation'] = @dest_is_original_location
229
237
  ret['DestPath'] = @dest_path
230
238
  ret['ExactDestPaths'] = @exact_dest_paths
@@ -14,12 +14,18 @@ module Comet
14
14
  # Protected Items, in order to safely perform retention passes on their behalf.
15
15
  class SourceBasicInfo
16
16
 
17
+ # @type [String] engine
18
+ attr_accessor :engine
19
+
17
20
  # @type [String] description
18
21
  attr_accessor :description
19
22
 
20
23
  # @type [Number] o365account_count
21
24
  attr_accessor :o365account_count
22
25
 
26
+ # @type [Number] total_vm_count
27
+ attr_accessor :total_vm_count
28
+
23
29
  # Bytes
24
30
  # @type [Number] size
25
31
  attr_accessor :size
@@ -35,8 +41,10 @@ module Comet
35
41
  end
36
42
 
37
43
  def clear
44
+ @engine = ''
38
45
  @description = ''
39
46
  @o365account_count = 0
47
+ @total_vm_count = 0
40
48
  @size = 0
41
49
  @override_destination_retention = {}
42
50
  @unknown_json_fields = {}
@@ -55,6 +63,10 @@ module Comet
55
63
 
56
64
  obj.each do |k, v|
57
65
  case k
66
+ when 'Engine'
67
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
68
+
69
+ @engine = v
58
70
  when 'Description'
59
71
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
60
72
 
@@ -63,6 +75,10 @@ module Comet
63
75
  raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
64
76
 
65
77
  @o365account_count = v
78
+ when 'TotalVmCount'
79
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
80
+
81
+ @total_vm_count = v
66
82
  when 'Size'
67
83
  raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
68
84
 
@@ -86,8 +102,10 @@ module Comet
86
102
  # @return [Hash] The complete object as a Ruby hash
87
103
  def to_hash
88
104
  ret = {}
105
+ ret['Engine'] = @engine
89
106
  ret['Description'] = @description
90
107
  ret['O365AccountCount'] = @o365account_count
108
+ ret['TotalVmCount'] = @total_vm_count
91
109
  ret['Size'] = @size
92
110
  unless @override_destination_retention.nil?
93
111
  ret['OverrideDestinationRetention'] = @override_destination_retention
@@ -101,6 +101,16 @@ module Comet
101
101
  # @type [Number] quota_office_365protected_accounts
102
102
  attr_accessor :quota_office_365protected_accounts
103
103
 
104
+ # A limit on the total number of Hyper-V guests across all Hyper-V Protected Items in this account.
105
+ # Set to zero to allow unlimited Office 365 Protected Accounts.
106
+ # @type [Number] quota_hyper_vguests
107
+ attr_accessor :quota_hyper_vguests
108
+
109
+ # A limit on the total number of VMware guests across all VMware Protected Items in this account.
110
+ # Set to zero to allow unlimited Office 365 Protected Accounts.
111
+ # @type [Number] quota_vmware_guests
112
+ attr_accessor :quota_vmware_guests
113
+
104
114
  # If the PolicyID field is set to a non-empty string, the Comet Server will enforce the contents of
105
115
  # the Policy field based on the matching server's policy. Otherwise if the PolicyID field is set to
106
116
  # an empty string, the administrator may configure any custom values in the Policy field.
@@ -182,6 +192,8 @@ module Comet
182
192
  @all_protected_items_quota_bytes = 0
183
193
  @maximum_devices = 0
184
194
  @quota_office_365protected_accounts = 0
195
+ @quota_hyper_vguests = 0
196
+ @quota_vmware_guests = 0
185
197
  @policy_id = ''
186
198
  @policy = Comet::UserPolicy.new
187
199
  @password_format = 0
@@ -311,6 +323,14 @@ module Comet
311
323
  raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
312
324
 
313
325
  @quota_office_365protected_accounts = v
326
+ when 'QuotaHyperVGuests'
327
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
328
+
329
+ @quota_hyper_vguests = v
330
+ when 'QuotaVMwareGuests'
331
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
332
+
333
+ @quota_vmware_guests = v
314
334
  when 'PolicyID'
315
335
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
316
336
 
@@ -386,6 +406,8 @@ module Comet
386
406
  ret['AllProtectedItemsQuotaBytes'] = @all_protected_items_quota_bytes
387
407
  ret['MaximumDevices'] = @maximum_devices
388
408
  ret['QuotaOffice365ProtectedAccounts'] = @quota_office_365protected_accounts
409
+ ret['QuotaHyperVGuests'] = @quota_hyper_vguests
410
+ ret['QuotaVMwareGuests'] = @quota_vmware_guests
389
411
  ret['PolicyID'] = @policy_id
390
412
  ret['Policy'] = @policy
391
413
  ret['PasswordFormat'] = @password_format
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.35.0
4
+ version: 2.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Comet Licensing Ltd.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-01 00:00:00.000000000 Z
11
+ date: 2024-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler