comet_backup_ruby_sdk 2.34.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 +4 -4
- data/CHANGELOG.md +15 -0
- data/Gemfile.lock +1 -1
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/comet_server.rb +26 -0
- data/lib/comet/definitions.rb +18 -3
- data/lib/comet/models/backup_job_detail.rb +22 -0
- data/lib/comet/models/backup_rule_event_triggers.rb +36 -0
- data/lib/comet/models/restore_job_advanced_options.rb +8 -0
- data/lib/comet/models/s3generic_virtual_storage_role.rb +11 -0
- data/lib/comet/models/source_basic_info.rb +18 -0
- data/lib/comet/models/user_policy.rb +33 -0
- data/lib/comet/models/user_profile_config.rb +22 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d9fc30a121c374d4b92dd55afb55c535b02da997d4d37efe5ff549c5c4403f4
|
4
|
+
data.tar.gz: ac4736937b564fcc2e689d7b3cacec002fab32a2d615037893a789b95002d8aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccb3449005c19d46da142f4678c4a468aafe36b1b44bd543bb182fa0cdcf7cfadbe4c84cd61d8643bfee80c5ead9f3ae3ab1ff0d3712d93dcc163379bd349c9e
|
7
|
+
data.tar.gz: 2ecbe31ae73af5eed45ea24cdfc6be68d9727a5bc99fb23cf807917165e31e3c51acae5424e97ada6b8ed3420b5afcf8fbb4f79e865956c79521c2b63715746e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
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
|
+
|
11
|
+
## 2024-08-01 v2.35.0
|
12
|
+
|
13
|
+
- Based on Comet 24.6.6
|
14
|
+
- Add new AdminConvertStorageRole API
|
15
|
+
- Update data types for new job retry feature (BackupJobDetail, BackupRuleEventTriggers, and new JOB_STATUS_RUNNING_TRYAGAIN)
|
16
|
+
- Add support for custom Prefix in S3GenericVirtualStorageRole
|
17
|
+
|
3
18
|
## 2024-07-16 v2.34.0
|
4
19
|
|
5
20
|
- Based on Comet 24.6.4
|
data/Gemfile.lock
CHANGED
@@ -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.
|
15
|
+
spec.version = '2.36.0'
|
16
16
|
spec.authors = ['Comet Licensing Ltd.']
|
17
17
|
spec.email = ['hello@cometbackup.com']
|
18
18
|
|
data/lib/comet/comet_server.rb
CHANGED
@@ -949,6 +949,32 @@ module Comet
|
|
949
949
|
ret
|
950
950
|
end
|
951
951
|
|
952
|
+
# AdminConvertStorageRole
|
953
|
+
#
|
954
|
+
# Convert IAM Storage Role vault to its underlying S3 type.
|
955
|
+
#
|
956
|
+
# You must supply administrator authentication credentials to use this API.
|
957
|
+
#
|
958
|
+
# @param [String] target_user The user to receive the new Storage Vault
|
959
|
+
# @param [String] destination_id The id of the old storage role destination to convert
|
960
|
+
# @return [Comet::RequestStorageVaultResponseMessage]
|
961
|
+
def admin_convert_storage_role(target_user, destination_id)
|
962
|
+
submit_params = {}
|
963
|
+
raise TypeError, "'target_user' expected String, got #{target_user.class}" unless target_user.is_a? String
|
964
|
+
|
965
|
+
submit_params['TargetUser'] = target_user
|
966
|
+
raise TypeError, "'destination_id' expected String, got #{destination_id.class}" unless destination_id.is_a? String
|
967
|
+
|
968
|
+
submit_params['DestinationId'] = destination_id
|
969
|
+
|
970
|
+
body = perform_request('api/v1/admin/convert-storage-role', submit_params)
|
971
|
+
json_body = JSON.parse body
|
972
|
+
check_status json_body
|
973
|
+
ret = Comet::RequestStorageVaultResponseMessage.new
|
974
|
+
ret.from_hash(json_body)
|
975
|
+
ret
|
976
|
+
end
|
977
|
+
|
952
978
|
# AdminCountJobsForCustomSearch
|
953
979
|
#
|
954
980
|
# Count jobs (for custom search).
|
data/lib/comet/definitions.rb
CHANGED
@@ -7,13 +7,13 @@
|
|
7
7
|
|
8
8
|
module Comet
|
9
9
|
|
10
|
-
APPLICATION_VERSION = '24.
|
10
|
+
APPLICATION_VERSION = '24.9.1'
|
11
11
|
|
12
12
|
APPLICATION_VERSION_MAJOR = 24
|
13
13
|
|
14
|
-
APPLICATION_VERSION_MINOR =
|
14
|
+
APPLICATION_VERSION_MINOR = 9
|
15
15
|
|
16
|
-
APPLICATION_VERSION_REVISION =
|
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
|
@@ -81,6 +81,14 @@ module Comet
|
|
81
81
|
# CustomRemoteBucketCustomBodyType
|
82
82
|
CUSTOMREMOTEBUCKET_CUSTOMBODY_FORM = 'form'
|
83
83
|
|
84
|
+
# The number of retry attempts a backup job can do
|
85
|
+
# This const is available in Comet 24.6.6 and later.
|
86
|
+
DEFAULT_RETRY_COUNT = 1
|
87
|
+
|
88
|
+
# The number of minutes between backup job retry attempts
|
89
|
+
# This const is available in Comet 24.6.6 and later.
|
90
|
+
DEFAULT_RETRY_TIME = 30
|
91
|
+
|
84
92
|
# LanguageCode
|
85
93
|
DEFAULT_LANGUAGE = 'en_US'
|
86
94
|
|
@@ -311,6 +319,9 @@ module Comet
|
|
311
319
|
# JobStatus: The job was thought to have been in an Abandoned state but updated the Comet Server with a running status.
|
312
320
|
JOB_STATUS_RUNNING_REVIVED = 6002
|
313
321
|
|
322
|
+
# JobStatus: The job has encountered an error and will wait to retry.
|
323
|
+
JOB_STATUS_RUNNING_TRYAGAIN = 6003
|
324
|
+
|
314
325
|
# JobStatus
|
315
326
|
JOB_STATUS_RUNNING__MAX = 6999
|
316
327
|
|
@@ -362,6 +373,10 @@ module Comet
|
|
362
373
|
# MacOSCodesignLevel: Sign, notarize, and staple
|
363
374
|
MACOSCODESIGN_LEVEL_SIGN_NOTARISE_STAPLE = 2
|
364
375
|
|
376
|
+
MIN_BUILD_NUMBER_WIN_SERVER_2016 = 14_393
|
377
|
+
|
378
|
+
MIN_BUILD_NUMBER_WIN_10 = 10_240
|
379
|
+
|
365
380
|
MIXED_VIRTUAL_ACCOUNT_TYPE_USER = 1
|
366
381
|
|
367
382
|
MIXED_VIRTUAL_ACCOUNT_TYPE_GROUP = 2
|
@@ -32,6 +32,9 @@ module Comet
|
|
32
32
|
# @type [Number] end_time
|
33
33
|
attr_accessor :end_time
|
34
34
|
|
35
|
+
# @type [Number] retry_count
|
36
|
+
attr_accessor :retry_count
|
37
|
+
|
35
38
|
# The Protected Item that this job is for
|
36
39
|
# @type [String] source_guid
|
37
40
|
attr_accessor :source_guid
|
@@ -46,6 +49,11 @@ module Comet
|
|
46
49
|
# @type [String] snapshot_id
|
47
50
|
attr_accessor :snapshot_id
|
48
51
|
|
52
|
+
# The ID of the backup rule that contains the schedule that triggered this job
|
53
|
+
# This field is available in Comet 24.6.6 and later.
|
54
|
+
# @type [String] backup_rule_guid
|
55
|
+
attr_accessor :backup_rule_guid
|
56
|
+
|
49
57
|
# @type [String] client_version
|
50
58
|
attr_accessor :client_version
|
51
59
|
|
@@ -122,10 +130,12 @@ module Comet
|
|
122
130
|
@status = 0
|
123
131
|
@start_time = 0
|
124
132
|
@end_time = 0
|
133
|
+
@retry_count = 0
|
125
134
|
@source_guid = ''
|
126
135
|
@destination_guid = ''
|
127
136
|
@device_id = ''
|
128
137
|
@snapshot_id = ''
|
138
|
+
@backup_rule_guid = ''
|
129
139
|
@client_version = ''
|
130
140
|
@total_directories = 0
|
131
141
|
@total_files = 0
|
@@ -183,6 +193,10 @@ module Comet
|
|
183
193
|
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
184
194
|
|
185
195
|
@end_time = v
|
196
|
+
when 'RetryCount'
|
197
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
198
|
+
|
199
|
+
@retry_count = v
|
186
200
|
when 'SourceGUID'
|
187
201
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
188
202
|
|
@@ -199,6 +213,10 @@ module Comet
|
|
199
213
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
200
214
|
|
201
215
|
@snapshot_id = v
|
216
|
+
when 'BackupRuleGUID'
|
217
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
218
|
+
|
219
|
+
@backup_rule_guid = v
|
202
220
|
when 'ClientVersion'
|
203
221
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
204
222
|
|
@@ -279,12 +297,16 @@ module Comet
|
|
279
297
|
ret['Status'] = @status
|
280
298
|
ret['StartTime'] = @start_time
|
281
299
|
ret['EndTime'] = @end_time
|
300
|
+
ret['RetryCount'] = @retry_count
|
282
301
|
ret['SourceGUID'] = @source_guid
|
283
302
|
ret['DestinationGUID'] = @destination_guid
|
284
303
|
ret['DeviceID'] = @device_id
|
285
304
|
unless @snapshot_id.nil?
|
286
305
|
ret['SnapshotID'] = @snapshot_id
|
287
306
|
end
|
307
|
+
unless @backup_rule_guid.nil?
|
308
|
+
ret['BackupRuleGUID'] = @backup_rule_guid
|
309
|
+
end
|
288
310
|
ret['ClientVersion'] = @client_version
|
289
311
|
ret['TotalDirectories'] = @total_directories
|
290
312
|
ret['TotalFiles'] = @total_files
|
@@ -21,6 +21,21 @@ module Comet
|
|
21
21
|
# @type [Boolean] on_pcboot_if_last_job_missed
|
22
22
|
attr_accessor :on_pcboot_if_last_job_missed
|
23
23
|
|
24
|
+
# The option to enable retrying when a backup job failed.
|
25
|
+
# This field is available in Comet 24.6.6 and later.
|
26
|
+
# @type [Boolean] on_last_job_fail_do_retry
|
27
|
+
attr_accessor :on_last_job_fail_do_retry
|
28
|
+
|
29
|
+
# The number of retries when the backup job fails.
|
30
|
+
# This field is available in Comet 24.6.6 and later.
|
31
|
+
# @type [Number] last_job_fail_do_retry_count
|
32
|
+
attr_accessor :last_job_fail_do_retry_count
|
33
|
+
|
34
|
+
# The number of minutes before retrying when the backup job fails.
|
35
|
+
# This field is available in Comet 24.6.6 and later.
|
36
|
+
# @type [Number] last_job_fail_do_retry_time
|
37
|
+
attr_accessor :last_job_fail_do_retry_time
|
38
|
+
|
24
39
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
25
40
|
attr_accessor :unknown_json_fields
|
26
41
|
|
@@ -29,6 +44,8 @@ module Comet
|
|
29
44
|
end
|
30
45
|
|
31
46
|
def clear
|
47
|
+
@last_job_fail_do_retry_count = 0
|
48
|
+
@last_job_fail_do_retry_time = 0
|
32
49
|
@unknown_json_fields = {}
|
33
50
|
end
|
34
51
|
|
@@ -49,6 +66,16 @@ module Comet
|
|
49
66
|
@on_pcboot = v
|
50
67
|
when 'OnPCBootIfLastJobMissed'
|
51
68
|
@on_pcboot_if_last_job_missed = v
|
69
|
+
when 'OnLastJobFailDoRetry'
|
70
|
+
@on_last_job_fail_do_retry = v
|
71
|
+
when 'LastJobFailDoRetryCount'
|
72
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
73
|
+
|
74
|
+
@last_job_fail_do_retry_count = v
|
75
|
+
when 'LastJobFailDoRetryTime'
|
76
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
77
|
+
|
78
|
+
@last_job_fail_do_retry_time = v
|
52
79
|
else
|
53
80
|
@unknown_json_fields[k] = v
|
54
81
|
end
|
@@ -64,6 +91,15 @@ module Comet
|
|
64
91
|
unless @on_pcboot_if_last_job_missed.nil?
|
65
92
|
ret['OnPCBootIfLastJobMissed'] = @on_pcboot_if_last_job_missed
|
66
93
|
end
|
94
|
+
unless @on_last_job_fail_do_retry.nil?
|
95
|
+
ret['OnLastJobFailDoRetry'] = @on_last_job_fail_do_retry
|
96
|
+
end
|
97
|
+
unless @last_job_fail_do_retry_count.nil?
|
98
|
+
ret['LastJobFailDoRetryCount'] = @last_job_fail_do_retry_count
|
99
|
+
end
|
100
|
+
unless @last_job_fail_do_retry_time.nil?
|
101
|
+
ret['LastJobFailDoRetryTime'] = @last_job_fail_do_retry_time
|
102
|
+
end
|
67
103
|
@unknown_json_fields.each do |k, v|
|
68
104
|
ret[k] = v
|
69
105
|
end
|
@@ -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
|
@@ -61,6 +61,11 @@ module Comet
|
|
61
61
|
# @type [String] region
|
62
62
|
attr_accessor :region
|
63
63
|
|
64
|
+
# Optional. Prefix to use for bucket paths.
|
65
|
+
# This field is available in Comet 24.6.3 and later.
|
66
|
+
# @type [String] prefix
|
67
|
+
attr_accessor :prefix
|
68
|
+
|
64
69
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
65
70
|
attr_accessor :unknown_json_fields
|
66
71
|
|
@@ -77,6 +82,7 @@ module Comet
|
|
77
82
|
@object_lock_mode = 0
|
78
83
|
@object_lock_days = 0
|
79
84
|
@region = ''
|
85
|
+
@prefix = ''
|
80
86
|
@unknown_json_fields = {}
|
81
87
|
end
|
82
88
|
|
@@ -129,6 +135,10 @@ module Comet
|
|
129
135
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
130
136
|
|
131
137
|
@region = v
|
138
|
+
when 'Prefix'
|
139
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
140
|
+
|
141
|
+
@prefix = v
|
132
142
|
else
|
133
143
|
@unknown_json_fields[k] = v
|
134
144
|
end
|
@@ -148,6 +158,7 @@ module Comet
|
|
148
158
|
ret['ObjectLockDays'] = @object_lock_days
|
149
159
|
ret['RemoveDeleted'] = @remove_deleted
|
150
160
|
ret['Region'] = @region
|
161
|
+
ret['Prefix'] = @prefix
|
151
162
|
@unknown_json_fields.each do |k, v|
|
152
163
|
ret[k] = v
|
153
164
|
end
|
@@ -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
|
@@ -48,6 +48,15 @@ module Comet
|
|
48
48
|
# @type [Number] mode_schedule_skip_already_running
|
49
49
|
attr_accessor :mode_schedule_skip_already_running
|
50
50
|
|
51
|
+
# @type [Number] mode_schedule_last_job_fail_do_retry
|
52
|
+
attr_accessor :mode_schedule_last_job_fail_do_retry
|
53
|
+
|
54
|
+
# @type [Number] mode_last_job_fail_do_retry_time
|
55
|
+
attr_accessor :mode_last_job_fail_do_retry_time
|
56
|
+
|
57
|
+
# @type [Number] mode_last_job_fail_do_retry_count
|
58
|
+
attr_accessor :mode_last_job_fail_do_retry_count
|
59
|
+
|
51
60
|
# @type [Number] mode_admin_reset_password
|
52
61
|
attr_accessor :mode_admin_reset_password
|
53
62
|
|
@@ -129,6 +138,9 @@ module Comet
|
|
129
138
|
@protected_item_engine_types = Comet::ProtectedItemEngineTypePolicy.new
|
130
139
|
@file_and_folder_mandatory_exclusions = []
|
131
140
|
@mode_schedule_skip_already_running = 0
|
141
|
+
@mode_schedule_last_job_fail_do_retry = 0
|
142
|
+
@mode_last_job_fail_do_retry_time = 0
|
143
|
+
@mode_last_job_fail_do_retry_count = 0
|
132
144
|
@mode_admin_reset_password = 0
|
133
145
|
@mode_admin_view_filenames = 0
|
134
146
|
@mode_require_user_reset_password = 0
|
@@ -191,6 +203,18 @@ module Comet
|
|
191
203
|
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
192
204
|
|
193
205
|
@mode_schedule_skip_already_running = v
|
206
|
+
when 'ModeScheduleLastJobFailDoRetry'
|
207
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
208
|
+
|
209
|
+
@mode_schedule_last_job_fail_do_retry = v
|
210
|
+
when 'ModeLastJobFailDoRetryTime'
|
211
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
212
|
+
|
213
|
+
@mode_last_job_fail_do_retry_time = v
|
214
|
+
when 'ModeLastJobFailDoRetryCount'
|
215
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
216
|
+
|
217
|
+
@mode_last_job_fail_do_retry_count = v
|
194
218
|
when 'ModeAdminResetPassword'
|
195
219
|
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
196
220
|
|
@@ -304,6 +328,15 @@ module Comet
|
|
304
328
|
unless @mode_schedule_skip_already_running.nil?
|
305
329
|
ret['ModeScheduleSkipAlreadyRunning'] = @mode_schedule_skip_already_running
|
306
330
|
end
|
331
|
+
unless @mode_schedule_last_job_fail_do_retry.nil?
|
332
|
+
ret['ModeScheduleLastJobFailDoRetry'] = @mode_schedule_last_job_fail_do_retry
|
333
|
+
end
|
334
|
+
unless @mode_last_job_fail_do_retry_time.nil?
|
335
|
+
ret['ModeLastJobFailDoRetryTime'] = @mode_last_job_fail_do_retry_time
|
336
|
+
end
|
337
|
+
unless @mode_last_job_fail_do_retry_count.nil?
|
338
|
+
ret['ModeLastJobFailDoRetryCount'] = @mode_last_job_fail_do_retry_count
|
339
|
+
end
|
307
340
|
unless @mode_admin_reset_password.nil?
|
308
341
|
ret['ModeAdminResetPassword'] = @mode_admin_reset_password
|
309
342
|
end
|
@@ -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.
|
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-
|
11
|
+
date: 2024-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|