comet_backup_ruby_sdk 2.31.0 → 2.32.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 +7 -0
- data/Gemfile.lock +1 -1
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/definitions.rb +16 -4
- data/lib/comet/models/custom_remote_bucket_settings.rb +19 -0
- data/lib/comet/models/impossible_cloud_partner_template_settings.rb +37 -0
- data/lib/comet/models/office_365mixed_virtual_account.rb +56 -45
- data/lib/comet_backup_ruby_sdk.rb +1 -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: 92912a2a7fd950a339899d612dde32aa19155fca1a05c4432af548a2d7839621
|
4
|
+
data.tar.gz: 87ad96a333fb2ce7b3277f6a0ffcba0841539f7b30007cc4efb9bc6a1b489394
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f06373d666c2dbe4546cf00cc72906d80b61367e5f3949feba3fc4820c273b08e654bf35eb0264fe6a470aedc168a455babaf200dc9387cb7a3569d8897e3140
|
7
|
+
data.tar.gz: 4cd50e220bf77863f05d77ff01647abe2f22a5159e715d93ba2eede3ed7e69fcdb53bcac594534fa5bc0e8b6eef3bd4ce878b8f4764c0c3b87aecf9e08994455
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 2024-05-31 v2.32.0
|
4
|
+
|
5
|
+
- Based on Comet 24.5.0
|
6
|
+
- Added support for matching Microsoft Office 365 users and groups by Drive ID
|
7
|
+
- Added support for configuring Object Lock on a Impossible Cloud Partner API Storage Template
|
8
|
+
- Added support for Custom Body Date when using a Custom Remote Bucket Storage Template
|
9
|
+
|
3
10
|
## 2024-05-24 v2.31.0
|
4
11
|
|
5
12
|
- Based on Comet 24.3.9
|
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.32.0'
|
16
16
|
spec.authors = ['Comet Licensing Ltd.']
|
17
17
|
spec.email = ['hello@cometbackup.com']
|
18
18
|
|
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.5.0'
|
11
11
|
|
12
12
|
APPLICATION_VERSION_MAJOR = 24
|
13
13
|
|
14
|
-
APPLICATION_VERSION_MINOR =
|
14
|
+
APPLICATION_VERSION_MINOR = 5
|
15
15
|
|
16
|
-
APPLICATION_VERSION_REVISION =
|
16
|
+
APPLICATION_VERSION_REVISION = 0
|
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
|
@@ -69,6 +69,18 @@ module Comet
|
|
69
69
|
# CompressMode
|
70
70
|
COMPRESS_DEFAULT = COMPRESS_LVL_4
|
71
71
|
|
72
|
+
# CustomRemoteBucketCustomBodyType
|
73
|
+
CUSTOMREMOTEBUCKET_CUSTOMBODY_NONE = 'none'
|
74
|
+
|
75
|
+
# CustomRemoteBucketCustomBodyType
|
76
|
+
CUSTOMREMOTEBUCKET_CUSTOMBODY_JSON = 'json'
|
77
|
+
|
78
|
+
# CustomRemoteBucketCustomBodyType
|
79
|
+
CUSTOMREMOTEBUCKET_CUSTOMBODY_URLENC = 'urlencoded'
|
80
|
+
|
81
|
+
# CustomRemoteBucketCustomBodyType
|
82
|
+
CUSTOMREMOTEBUCKET_CUSTOMBODY_FORM = 'form'
|
83
|
+
|
72
84
|
# LanguageCode
|
73
85
|
DEFAULT_LANGUAGE = 'en_US'
|
74
86
|
|
@@ -439,7 +451,7 @@ New code should explicitly use OBJECT_LOCK_ON / OBJECT_LOCK_OFF instead.
|
|
439
451
|
# PSAType
|
440
452
|
PSA_TYPE_SYNCRO = 2
|
441
453
|
|
442
|
-
RELEASE_CODENAME = '
|
454
|
+
RELEASE_CODENAME = 'Enceladus'
|
443
455
|
|
444
456
|
# RemoteServerType: Comet Server
|
445
457
|
REMOTESERVER_COMET = 'comet'
|
@@ -19,6 +19,13 @@ module Comet
|
|
19
19
|
# @type [Hash{String => String}] custom_headers
|
20
20
|
attr_accessor :custom_headers
|
21
21
|
|
22
|
+
# This field is available in Comet 24.5.0 and later.
|
23
|
+
# @type [String] custom_body
|
24
|
+
attr_accessor :custom_body
|
25
|
+
|
26
|
+
# @type [String] custom_body_type
|
27
|
+
attr_accessor :custom_body_type
|
28
|
+
|
22
29
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
23
30
|
attr_accessor :unknown_json_fields
|
24
31
|
|
@@ -29,6 +36,8 @@ module Comet
|
|
29
36
|
def clear
|
30
37
|
@url = ''
|
31
38
|
@custom_headers = {}
|
39
|
+
@custom_body = ''
|
40
|
+
@custom_body_type = ''
|
32
41
|
@unknown_json_fields = {}
|
33
42
|
end
|
34
43
|
|
@@ -60,6 +69,14 @@ module Comet
|
|
60
69
|
@custom_headers[k1] = v1
|
61
70
|
end
|
62
71
|
end
|
72
|
+
when 'CustomBody'
|
73
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
74
|
+
|
75
|
+
@custom_body = v
|
76
|
+
when 'CustomBodyType'
|
77
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
78
|
+
|
79
|
+
@custom_body_type = v
|
63
80
|
else
|
64
81
|
@unknown_json_fields[k] = v
|
65
82
|
end
|
@@ -71,6 +88,8 @@ module Comet
|
|
71
88
|
ret = {}
|
72
89
|
ret['URL'] = @url
|
73
90
|
ret['CustomHeaders'] = @custom_headers
|
91
|
+
ret['CustomBody'] = @custom_body
|
92
|
+
ret['CustomBodyType'] = @custom_body_type
|
74
93
|
@unknown_json_fields.each do |k, v|
|
75
94
|
ret[k] = v
|
76
95
|
end
|
@@ -21,6 +21,25 @@ module Comet
|
|
21
21
|
# @type [String] access_key
|
22
22
|
attr_accessor :access_key
|
23
23
|
|
24
|
+
# @type [Boolean] use_object_lock__legacy__do_not_use
|
25
|
+
# @deprecated This member has been deprecated since Comet version 23.x.x
|
26
|
+
attr_accessor :use_object_lock__legacy__do_not_use
|
27
|
+
|
28
|
+
# Control whether the resulting Storage Vaults are configured for Object Lock. One of the
|
29
|
+
# OBJECT_LOCK_ constants
|
30
|
+
# @type [Number] object_lock_mode
|
31
|
+
attr_accessor :object_lock_mode
|
32
|
+
|
33
|
+
# @type [Number] object_lock_days
|
34
|
+
attr_accessor :object_lock_days
|
35
|
+
|
36
|
+
# Control whether the "Allow removal of deleted files" checkbox is enabled for Storage Vaults
|
37
|
+
# generated from this Storage Template.
|
38
|
+
# When configuring a Storage Template from the Comet Server web interface, this field is set
|
39
|
+
# automatically for Storage Templates using Object Lock.
|
40
|
+
# @type [Boolean] remove_deleted
|
41
|
+
attr_accessor :remove_deleted
|
42
|
+
|
24
43
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
25
44
|
attr_accessor :unknown_json_fields
|
26
45
|
|
@@ -31,6 +50,8 @@ module Comet
|
|
31
50
|
def clear
|
32
51
|
@region = ''
|
33
52
|
@access_key = ''
|
53
|
+
@object_lock_mode = 0
|
54
|
+
@object_lock_days = 0
|
34
55
|
@unknown_json_fields = {}
|
35
56
|
end
|
36
57
|
|
@@ -55,6 +76,18 @@ module Comet
|
|
55
76
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
56
77
|
|
57
78
|
@access_key = v
|
79
|
+
when 'UseObjectLock'
|
80
|
+
@use_object_lock__legacy__do_not_use = v
|
81
|
+
when 'ObjectLockMode'
|
82
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
83
|
+
|
84
|
+
@object_lock_mode = v
|
85
|
+
when 'ObjectLockDays'
|
86
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
87
|
+
|
88
|
+
@object_lock_days = v
|
89
|
+
when 'RemoveDeleted'
|
90
|
+
@remove_deleted = v
|
58
91
|
else
|
59
92
|
@unknown_json_fields[k] = v
|
60
93
|
end
|
@@ -66,6 +99,10 @@ module Comet
|
|
66
99
|
ret = {}
|
67
100
|
ret['Region'] = @region
|
68
101
|
ret['AccessKey'] = @access_key
|
102
|
+
ret['UseObjectLock'] = @use_object_lock__legacy__do_not_use
|
103
|
+
ret['ObjectLockMode'] = @object_lock_mode
|
104
|
+
ret['ObjectLockDays'] = @object_lock_days
|
105
|
+
ret['RemoveDeleted'] = @remove_deleted
|
69
106
|
@unknown_json_fields.each do |k, v|
|
70
107
|
ret[k] = v
|
71
108
|
end
|
@@ -12,36 +12,39 @@ module Comet
|
|
12
12
|
# Office365MixedVirtualAccount is a typed class wrapper around the underlying Comet Server API data structure.
|
13
13
|
class Office365MixedVirtualAccount
|
14
14
|
|
15
|
-
# @type [String]
|
16
|
-
attr_accessor :
|
17
|
-
|
18
|
-
# @type [Number] type
|
19
|
-
attr_accessor :type
|
15
|
+
# @type [String] default_drive_id
|
16
|
+
attr_accessor :default_drive_id
|
20
17
|
|
21
18
|
# @type [String] display_name
|
22
19
|
attr_accessor :display_name
|
23
20
|
|
24
|
-
# @type [
|
25
|
-
attr_accessor :
|
21
|
+
# @type [Number] enabled_service_option
|
22
|
+
attr_accessor :enabled_service_option
|
23
|
+
|
24
|
+
# @type [String] id
|
25
|
+
attr_accessor :id
|
26
26
|
|
27
27
|
# @type [String] job_title
|
28
28
|
attr_accessor :job_title
|
29
29
|
|
30
|
+
# @type [String] mail
|
31
|
+
attr_accessor :mail
|
32
|
+
|
30
33
|
# @type [String] site_id
|
31
34
|
attr_accessor :site_id
|
32
35
|
|
36
|
+
# @type [Number] type
|
37
|
+
attr_accessor :type
|
38
|
+
|
39
|
+
# @type [String] user_principal_name
|
40
|
+
attr_accessor :user_principal_name
|
41
|
+
|
33
42
|
# @type [String] web_id
|
34
43
|
attr_accessor :web_id
|
35
44
|
|
36
45
|
# @type [String] web_url
|
37
46
|
attr_accessor :web_url
|
38
47
|
|
39
|
-
# @type [String] user_principal_name
|
40
|
-
attr_accessor :user_principal_name
|
41
|
-
|
42
|
-
# @type [Number] enabled_service_option
|
43
|
-
attr_accessor :enabled_service_option
|
44
|
-
|
45
48
|
# @type [Array<String>] members
|
46
49
|
attr_accessor :members
|
47
50
|
|
@@ -62,16 +65,17 @@ module Comet
|
|
62
65
|
end
|
63
66
|
|
64
67
|
def clear
|
65
|
-
@
|
66
|
-
@type = 0
|
68
|
+
@default_drive_id = ''
|
67
69
|
@display_name = ''
|
68
|
-
@
|
70
|
+
@enabled_service_option = 0
|
71
|
+
@id = ''
|
69
72
|
@job_title = ''
|
73
|
+
@mail = ''
|
70
74
|
@site_id = ''
|
75
|
+
@type = 0
|
76
|
+
@user_principal_name = ''
|
71
77
|
@web_id = ''
|
72
78
|
@web_url = ''
|
73
|
-
@user_principal_name = ''
|
74
|
-
@enabled_service_option = 0
|
75
79
|
@members = []
|
76
80
|
@service_options = 0
|
77
81
|
@member_service_options = 0
|
@@ -91,30 +95,42 @@ module Comet
|
|
91
95
|
|
92
96
|
obj.each do |k, v|
|
93
97
|
case k
|
94
|
-
when '
|
98
|
+
when 'DefaultDriveID'
|
95
99
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
96
100
|
|
97
|
-
@
|
98
|
-
when 'Type'
|
99
|
-
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
100
|
-
|
101
|
-
@type = v
|
101
|
+
@default_drive_id = v
|
102
102
|
when 'DisplayName'
|
103
103
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
104
104
|
|
105
105
|
@display_name = v
|
106
|
-
when '
|
106
|
+
when 'EnabledServiceOption'
|
107
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
108
|
+
|
109
|
+
@enabled_service_option = v
|
110
|
+
when 'id'
|
107
111
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
108
112
|
|
109
|
-
@
|
113
|
+
@id = v
|
110
114
|
when 'JobTitle'
|
111
115
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
112
116
|
|
113
117
|
@job_title = v
|
118
|
+
when 'Mail'
|
119
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
120
|
+
|
121
|
+
@mail = v
|
114
122
|
when 'SiteID'
|
115
123
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
116
124
|
|
117
125
|
@site_id = v
|
126
|
+
when 'Type'
|
127
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
128
|
+
|
129
|
+
@type = v
|
130
|
+
when 'UserPrincipalName'
|
131
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
132
|
+
|
133
|
+
@user_principal_name = v
|
118
134
|
when 'WebID'
|
119
135
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
120
136
|
|
@@ -123,14 +139,6 @@ module Comet
|
|
123
139
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
124
140
|
|
125
141
|
@web_url = v
|
126
|
-
when 'UserPrincipalName'
|
127
|
-
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
128
|
-
|
129
|
-
@user_principal_name = v
|
130
|
-
when 'EnabledServiceOption'
|
131
|
-
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
132
|
-
|
133
|
-
@enabled_service_option = v
|
134
142
|
when 'Members'
|
135
143
|
if v.nil?
|
136
144
|
@members = []
|
@@ -161,34 +169,37 @@ module Comet
|
|
161
169
|
# @return [Hash] The complete object as a Ruby hash
|
162
170
|
def to_hash
|
163
171
|
ret = {}
|
164
|
-
|
165
|
-
|
166
|
-
ret['Type'] = @type
|
172
|
+
unless @default_drive_id.nil?
|
173
|
+
ret['DefaultDriveID'] = @default_drive_id
|
167
174
|
end
|
168
175
|
unless @display_name.nil?
|
169
176
|
ret['DisplayName'] = @display_name
|
170
177
|
end
|
171
|
-
unless @
|
172
|
-
ret['
|
178
|
+
unless @enabled_service_option.nil?
|
179
|
+
ret['EnabledServiceOption'] = @enabled_service_option
|
173
180
|
end
|
181
|
+
ret['id'] = @id
|
174
182
|
unless @job_title.nil?
|
175
183
|
ret['JobTitle'] = @job_title
|
176
184
|
end
|
185
|
+
unless @mail.nil?
|
186
|
+
ret['Mail'] = @mail
|
187
|
+
end
|
177
188
|
unless @site_id.nil?
|
178
189
|
ret['SiteID'] = @site_id
|
179
190
|
end
|
191
|
+
unless @type.nil?
|
192
|
+
ret['Type'] = @type
|
193
|
+
end
|
194
|
+
unless @user_principal_name.nil?
|
195
|
+
ret['UserPrincipalName'] = @user_principal_name
|
196
|
+
end
|
180
197
|
unless @web_id.nil?
|
181
198
|
ret['WebID'] = @web_id
|
182
199
|
end
|
183
200
|
unless @web_url.nil?
|
184
201
|
ret['WebURL'] = @web_url
|
185
202
|
end
|
186
|
-
unless @user_principal_name.nil?
|
187
|
-
ret['UserPrincipalName'] = @user_principal_name
|
188
|
-
end
|
189
|
-
unless @enabled_service_option.nil?
|
190
|
-
ret['EnabledServiceOption'] = @enabled_service_option
|
191
|
-
end
|
192
203
|
unless @members.nil?
|
193
204
|
ret['Members'] = @members
|
194
205
|
end
|
@@ -53,6 +53,7 @@ require_relative 'comet/models/content_measurement_component'
|
|
53
53
|
require_relative 'comet/models/count_jobs_response'
|
54
54
|
require_relative 'comet/models/create_group_policy_response'
|
55
55
|
require_relative 'comet/models/custom_remote_bucket_settings'
|
56
|
+
require_relative 'comet/models/custom_remote_bucket_settings'
|
56
57
|
require_relative 'comet/models/days_of_week_config'
|
57
58
|
require_relative 'comet/models/default_email_report_policy'
|
58
59
|
require_relative 'comet/models/default_source_with_osrestriction'
|
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.32.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-05-
|
11
|
+
date: 2024-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|