comet_backup_ruby_sdk 2.31.0 → 2.33.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a25516a266056a995888f1dd1f60b32ab2320b239c5b04b1dec5a040cf9ae51
4
- data.tar.gz: fd2618a2a84964d7b036d4e8760442fb87ade67db41696cfe2efc570b4d9a54f
3
+ metadata.gz: cd9b5276738aaf54da0faa462ce15d892e9adc73f30c85498190a6b87bcc334a
4
+ data.tar.gz: 2740b843b7deb8d9b5f1a4976458bc7df296806de0656994d818535f492c1e1b
5
5
  SHA512:
6
- metadata.gz: 72195a61aa606ca4bce8ad669dd62de8c6401aac54a044829376af3d6fafe8b2cabf161ba1276c5c82d608e60274e777699442222bd669f76e7cbb8665a4f51d
7
- data.tar.gz: e23c57c9032bfae346a20e375899662cadb60e0a462fdee2b287f549aee34cc64ee2d5ff921d2b37af5f0caf1693b545ec16b4f06d1f322a3b42a5a6d5d73f9b
6
+ metadata.gz: 298427323e3dd885832c689086054a7080080cd5fea6cbd2724432513b8c2df722fb99829d4a04b6789fc44263ac78720a76abc323b3ecad0323abb053bfd06b
7
+ data.tar.gz: aa79fd2f522e0e8e772a33f513440f0471515476b6cd29fe8b29b5345ccab08d179b8d97f1b84a846abdec18e82c32b3e3c0fa8d6f4ebe1b9db4f56cf1326bb3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2024-06-11 v2.33.0
4
+
5
+ - Based on Comet 24.6.0
6
+ - Added custom HELO/EHLO STMP support
7
+ - Added support to set if disabled Office 365 accounts should be backed up
8
+ - Added EngineType as a property of VaultSnapshots
9
+
10
+ ## 2024-05-31 v2.32.0
11
+
12
+ - Based on Comet 24.5.0
13
+ - Added support for matching Microsoft Office 365 users and groups by Drive ID
14
+ - Added support for configuring Object Lock on a Impossible Cloud Partner API Storage Template
15
+ - Added support for Custom Body Date when using a Custom Remote Bucket Storage Template
16
+
3
17
  ## 2024-05-24 v2.31.0
4
18
 
5
19
  - Based on Comet 24.3.9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- comet_backup_ruby_sdk (2.31.0)
4
+ comet_backup_ruby_sdk (2.33.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.31.0'
15
+ spec.version = '2.33.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.3.9'
10
+ APPLICATION_VERSION = '24.6.0'
11
11
 
12
12
  APPLICATION_VERSION_MAJOR = 24
13
13
 
14
- APPLICATION_VERSION_MINOR = 3
14
+ APPLICATION_VERSION_MINOR = 6
15
15
 
16
- APPLICATION_VERSION_REVISION = 9
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
 
@@ -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
@@ -43,6 +43,11 @@ module Comet
43
43
  # @type [Boolean] smtpallow_unencrypted
44
44
  attr_accessor :smtpallow_unencrypted
45
45
 
46
+ # Override the HELO/EHLO hostname for SMTP or MX Direct modes. If blank, uses system default
47
+ # HELO/EHLO hostname.
48
+ # @type [String] smtpcustom_ehlo
49
+ attr_accessor :smtpcustom_ehlo
50
+
46
51
  # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
47
52
  attr_accessor :unknown_json_fields
48
53
 
@@ -59,6 +64,7 @@ module Comet
59
64
  @smtpport = 0
60
65
  @smtpusername = ''
61
66
  @smtppassword = ''
67
+ @smtpcustom_ehlo = ''
62
68
  @unknown_json_fields = {}
63
69
  end
64
70
 
@@ -117,6 +123,10 @@ module Comet
117
123
  @smtpallow_invalid_certificate = v
118
124
  when 'SMTPAllowUnencrypted'
119
125
  @smtpallow_unencrypted = v
126
+ when 'SMTPCustomEhlo'
127
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
128
+
129
+ @smtpcustom_ehlo = v
120
130
  else
121
131
  @unknown_json_fields[k] = v
122
132
  end
@@ -150,6 +160,9 @@ module Comet
150
160
  unless @smtpallow_unencrypted.nil?
151
161
  ret['SMTPAllowUnencrypted'] = @smtpallow_unencrypted
152
162
  end
163
+ unless @smtpcustom_ehlo.nil?
164
+ ret['SMTPCustomEhlo'] = @smtpcustom_ehlo
165
+ end
153
166
  @unknown_json_fields.each do |k, v|
154
167
  ret[k] = v
155
168
  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,42 @@ 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] id
16
- attr_accessor :id
15
+ # @type [String] default_drive_id
16
+ attr_accessor :default_drive_id
17
17
 
18
- # @type [Number] type
19
- attr_accessor :type
18
+ # @type [Boolean] disabled
19
+ attr_accessor :disabled
20
20
 
21
21
  # @type [String] display_name
22
22
  attr_accessor :display_name
23
23
 
24
- # @type [String] mail
25
- attr_accessor :mail
24
+ # @type [Number] enabled_service_option
25
+ attr_accessor :enabled_service_option
26
+
27
+ # @type [String] id
28
+ attr_accessor :id
26
29
 
27
30
  # @type [String] job_title
28
31
  attr_accessor :job_title
29
32
 
33
+ # @type [String] mail
34
+ attr_accessor :mail
35
+
30
36
  # @type [String] site_id
31
37
  attr_accessor :site_id
32
38
 
39
+ # @type [Number] type
40
+ attr_accessor :type
41
+
42
+ # @type [String] user_principal_name
43
+ attr_accessor :user_principal_name
44
+
33
45
  # @type [String] web_id
34
46
  attr_accessor :web_id
35
47
 
36
48
  # @type [String] web_url
37
49
  attr_accessor :web_url
38
50
 
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
51
  # @type [Array<String>] members
46
52
  attr_accessor :members
47
53
 
@@ -62,16 +68,17 @@ module Comet
62
68
  end
63
69
 
64
70
  def clear
65
- @id = ''
66
- @type = 0
71
+ @default_drive_id = ''
67
72
  @display_name = ''
68
- @mail = ''
73
+ @enabled_service_option = 0
74
+ @id = ''
69
75
  @job_title = ''
76
+ @mail = ''
70
77
  @site_id = ''
78
+ @type = 0
79
+ @user_principal_name = ''
71
80
  @web_id = ''
72
81
  @web_url = ''
73
- @user_principal_name = ''
74
- @enabled_service_option = 0
75
82
  @members = []
76
83
  @service_options = 0
77
84
  @member_service_options = 0
@@ -91,30 +98,44 @@ module Comet
91
98
 
92
99
  obj.each do |k, v|
93
100
  case k
94
- when 'id'
101
+ when 'DefaultDriveID'
95
102
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
96
103
 
97
- @id = v
98
- when 'Type'
99
- raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
100
-
101
- @type = v
104
+ @default_drive_id = v
105
+ when 'Disabled'
106
+ @disabled = v
102
107
  when 'DisplayName'
103
108
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
104
109
 
105
110
  @display_name = v
106
- when 'Mail'
111
+ when 'EnabledServiceOption'
112
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
113
+
114
+ @enabled_service_option = v
115
+ when 'id'
107
116
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
108
117
 
109
- @mail = v
118
+ @id = v
110
119
  when 'JobTitle'
111
120
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
112
121
 
113
122
  @job_title = v
123
+ when 'Mail'
124
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
125
+
126
+ @mail = v
114
127
  when 'SiteID'
115
128
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
116
129
 
117
130
  @site_id = v
131
+ when 'Type'
132
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
133
+
134
+ @type = v
135
+ when 'UserPrincipalName'
136
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
137
+
138
+ @user_principal_name = v
118
139
  when 'WebID'
119
140
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
120
141
 
@@ -123,14 +144,6 @@ module Comet
123
144
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
124
145
 
125
146
  @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
147
  when 'Members'
135
148
  if v.nil?
136
149
  @members = []
@@ -161,34 +174,40 @@ module Comet
161
174
  # @return [Hash] The complete object as a Ruby hash
162
175
  def to_hash
163
176
  ret = {}
164
- ret['id'] = @id
165
- unless @type.nil?
166
- ret['Type'] = @type
177
+ unless @default_drive_id.nil?
178
+ ret['DefaultDriveID'] = @default_drive_id
179
+ end
180
+ unless @disabled.nil?
181
+ ret['Disabled'] = @disabled
167
182
  end
168
183
  unless @display_name.nil?
169
184
  ret['DisplayName'] = @display_name
170
185
  end
171
- unless @mail.nil?
172
- ret['Mail'] = @mail
186
+ unless @enabled_service_option.nil?
187
+ ret['EnabledServiceOption'] = @enabled_service_option
173
188
  end
189
+ ret['id'] = @id
174
190
  unless @job_title.nil?
175
191
  ret['JobTitle'] = @job_title
176
192
  end
193
+ unless @mail.nil?
194
+ ret['Mail'] = @mail
195
+ end
177
196
  unless @site_id.nil?
178
197
  ret['SiteID'] = @site_id
179
198
  end
199
+ unless @type.nil?
200
+ ret['Type'] = @type
201
+ end
202
+ unless @user_principal_name.nil?
203
+ ret['UserPrincipalName'] = @user_principal_name
204
+ end
180
205
  unless @web_id.nil?
181
206
  ret['WebID'] = @web_id
182
207
  end
183
208
  unless @web_url.nil?
184
209
  ret['WebURL'] = @web_url
185
210
  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
211
  unless @members.nil?
193
212
  ret['Members'] = @members
194
213
  end
@@ -15,6 +15,10 @@ module Comet
15
15
  # @type [String] snapshot
16
16
  attr_accessor :snapshot
17
17
 
18
+ # This field is available in Comet 24.3.x and later.
19
+ # @type [String] engine_type
20
+ attr_accessor :engine_type
21
+
18
22
  # @type [String] source
19
23
  attr_accessor :source
20
24
 
@@ -34,6 +38,7 @@ module Comet
34
38
 
35
39
  def clear
36
40
  @snapshot = ''
41
+ @engine_type = ''
37
42
  @source = ''
38
43
  @create_time = 0
39
44
  @unknown_json_fields = {}
@@ -56,6 +61,10 @@ module Comet
56
61
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
57
62
 
58
63
  @snapshot = v
64
+ when 'EngineType'
65
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
66
+
67
+ @engine_type = v
59
68
  when 'Source'
60
69
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
61
70
 
@@ -76,6 +85,7 @@ module Comet
76
85
  def to_hash
77
86
  ret = {}
78
87
  ret['Snapshot'] = @snapshot
88
+ ret['EngineType'] = @engine_type
79
89
  ret['Source'] = @source
80
90
  ret['CreateTime'] = @create_time
81
91
  ret['HasOriginalPathInfo'] = @has_original_path_info
@@ -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.31.0
4
+ version: 2.33.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-24 00:00:00.000000000 Z
11
+ date: 2024-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler