comet_backup_ruby_sdk 2.11.0 → 2.12.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: 5d6a5ccdbb19a7a417c00bfbd4dfc033b95a0e173188156efaac65217517e6d7
4
- data.tar.gz: 9b824422ee089951b33143150891724d457a0e945d8377d704e830356908db85
3
+ metadata.gz: 3e58708772fc811caf320d5e37daead88298a9ef573d721055a3970bcf31d3bc
4
+ data.tar.gz: 70167999c8a0622c11845204871ef6c36679f73b506dc1b260fd0006a71a07ae
5
5
  SHA512:
6
- metadata.gz: a5a9419659e7d24216dd9221af230f9012c3c17d42cc476428f33583189835e95937f6dbac9d517ad72440528315e649b856ccb8472cf00bdd250874adcfb373
7
- data.tar.gz: cd7d60617d3682eb905f926837dce922e8474d2ca5551337b377ad170498614d46111f7645e47caedd620f2e864d2baa2b6f9408b9a0a54f2488d9b60ab81de5
6
+ metadata.gz: 9c13573fc5191bcba1631a35a0a6b55ab1d8543cbe14c3260eda4991c5432c23a3613d7af77ecee2fe6e789c91b08d949cd61fe924f7521b9ac9778d14b62a07
7
+ data.tar.gz: 2a59d690d766d51a456d6cbf833287483c58630967f120433d1990afa7eeafb331e027ea7f0ae8b1e3ccd5572e7c3af5b0dd8d5d52a76e2c097c9d9900ca1814
data/.gitignore CHANGED
File without changes
data/.rubocop.yml CHANGED
File without changes
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2023-08-09 v2.12.0
4
+
5
+ - Based on Comet 23.6.9
6
+ - Added WebDAV `DestinationLocation`
7
+
3
8
  ## 2023-08-02 v2.11.0
4
9
 
5
10
  - Based on Comet 23.6.9
data/Gemfile CHANGED
File without changes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- comet_backup_ruby_sdk (2.11.0)
4
+ comet_backup_ruby_sdk (2.12.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
@@ -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.11.0'
15
+ spec.version = '2.12.0'
16
16
  spec.authors = ['Comet Licensing Ltd.']
17
17
  spec.email = ['hello@cometbackup.com']
18
18
 
@@ -4100,7 +4100,6 @@ module Comet
4100
4100
  #
4101
4101
  # You must supply administrator authentication credentials to use this API.
4102
4102
  # Access to this API may be prevented on a per-administrator basis.
4103
- # This API requires the Storage Role to be enabled.
4104
4103
  # This API is only available for top-level administrator accounts, not for Tenant administrator accounts.
4105
4104
  #
4106
4105
  # @param [Comet::DestinationLocation] extra_data The destination location settings
@@ -115,6 +115,8 @@ module Comet
115
115
  # Storj
116
116
  DESTINATIONTYPE_STORJ = 1009
117
117
 
118
+ DESTINATIONTYPE_WEBDAV = 1010
119
+
118
120
  # When defining a schedule via policy, use this option to dynamically select the Storage Vault that was created most recently.
119
121
  DESTINATIONTYPE_LATEST = 1100
120
122
 
@@ -183,6 +183,10 @@ module Comet
183
183
  # @type [Comet::B2DestinationLocation] b2
184
184
  attr_accessor :b2
185
185
 
186
+ # This field is available in Comet 23.6.9 and later.
187
+ # @type [Comet::WebDavDestinationLocation] web_dav
188
+ attr_accessor :web_dav
189
+
186
190
  # @type [Comet::StorjDestinationLocation] storj
187
191
  attr_accessor :storj
188
192
 
@@ -286,6 +290,7 @@ module Comet
286
290
  @localcopy_win_smbpassword_format = 0
287
291
  @swift = Comet::SwiftDestinationLocation.new
288
292
  @b2 = Comet::B2DestinationLocation.new
293
+ @web_dav = Comet::WebDavDestinationLocation.new
289
294
  @storj = Comet::StorjDestinationLocation.new
290
295
  @span_targets = []
291
296
  @encryption_key_encryption_method = 0
@@ -509,6 +514,9 @@ module Comet
509
514
  when 'B2'
510
515
  @b2 = Comet::B2DestinationLocation.new
511
516
  @b2.from_hash(v)
517
+ when 'WebDav'
518
+ @web_dav = Comet::WebDavDestinationLocation.new
519
+ @web_dav.from_hash(v)
512
520
  when 'Storj'
513
521
  @storj = Comet::StorjDestinationLocation.new
514
522
  @storj.from_hash(v)
@@ -607,6 +615,7 @@ module Comet
607
615
  ret['LocalcopyWinSMBPasswordFormat'] = @localcopy_win_smbpassword_format
608
616
  ret['Swift'] = @swift
609
617
  ret['B2'] = @b2
618
+ ret['WebDav'] = @web_dav
610
619
  ret['Storj'] = @storj
611
620
  ret['SpanTargets'] = @span_targets
612
621
  ret['SpanUseStaticSlots'] = @span_use_static_slots
@@ -163,6 +163,10 @@ module Comet
163
163
  # @type [Comet::B2DestinationLocation] b2
164
164
  attr_accessor :b2
165
165
 
166
+ # This field is available in Comet 23.6.9 and later.
167
+ # @type [Comet::WebDavDestinationLocation] web_dav
168
+ attr_accessor :web_dav
169
+
166
170
  # @type [Comet::StorjDestinationLocation] storj
167
171
  attr_accessor :storj
168
172
 
@@ -227,6 +231,7 @@ module Comet
227
231
  @localcopy_win_smbpassword_format = 0
228
232
  @swift = Comet::SwiftDestinationLocation.new
229
233
  @b2 = Comet::B2DestinationLocation.new
234
+ @web_dav = Comet::WebDavDestinationLocation.new
230
235
  @storj = Comet::StorjDestinationLocation.new
231
236
  @span_targets = []
232
237
  @unknown_json_fields = {}
@@ -399,6 +404,9 @@ module Comet
399
404
  when 'B2'
400
405
  @b2 = Comet::B2DestinationLocation.new
401
406
  @b2.from_hash(v)
407
+ when 'WebDav'
408
+ @web_dav = Comet::WebDavDestinationLocation.new
409
+ @web_dav.from_hash(v)
402
410
  when 'Storj'
403
411
  @storj = Comet::StorjDestinationLocation.new
404
412
  @storj.from_hash(v)
@@ -465,6 +473,7 @@ module Comet
465
473
  ret['LocalcopyWinSMBPasswordFormat'] = @localcopy_win_smbpassword_format
466
474
  ret['Swift'] = @swift
467
475
  ret['B2'] = @b2
476
+ ret['WebDav'] = @web_dav
468
477
  ret['Storj'] = @storj
469
478
  ret['SpanTargets'] = @span_targets
470
479
  ret['SpanUseStaticSlots'] = @span_use_static_slots
@@ -0,0 +1,113 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2020-2023 Comet Licensing Ltd.
4
+ # Please see the LICENSE file for usage information.
5
+ #
6
+ # SPDX-License-Identifier: MIT
7
+
8
+ require 'json'
9
+
10
+ module Comet
11
+
12
+ # WebDavDestinationLocation is a typed class wrapper around the underlying Comet Server API data structure.
13
+ # This type is available in Comet 23.6.9 and later.
14
+ class WebDavDestinationLocation
15
+
16
+ # The URL of the WebDAV server, including http/https and any custom port
17
+ # @type [String] dav_server
18
+ attr_accessor :dav_server
19
+
20
+ # The username for logging in to the WebDAV server
21
+ # @type [String] user_name
22
+ attr_accessor :user_name
23
+
24
+ # The password for logging in to the WebDAV server
25
+ # @type [String] access_key
26
+ attr_accessor :access_key
27
+
28
+ # The target directory path within the WebDAV server
29
+ # @type [String] path
30
+ attr_accessor :path
31
+
32
+ # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
33
+ attr_accessor :unknown_json_fields
34
+
35
+ def initialize
36
+ clear
37
+ end
38
+
39
+ def clear
40
+ @dav_server = ''
41
+ @user_name = ''
42
+ @access_key = ''
43
+ @path = ''
44
+ @unknown_json_fields = {}
45
+ end
46
+
47
+ # @param [String] json_string The complete object in JSON format
48
+ def from_json(json_string)
49
+ raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
50
+
51
+ from_hash(JSON.parse(json_string))
52
+ end
53
+
54
+ # @param [Hash] obj The complete object as a Ruby hash
55
+ def from_hash(obj)
56
+ raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
57
+
58
+ obj.each do |k, v|
59
+ case k
60
+ when 'DavServer'
61
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
62
+
63
+ @dav_server = v
64
+ when 'UserName'
65
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
66
+
67
+ @user_name = v
68
+ when 'AccessKey'
69
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
70
+
71
+ @access_key = v
72
+ when 'Path'
73
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
74
+
75
+ @path = v
76
+ else
77
+ @unknown_json_fields[k] = v
78
+ end
79
+ end
80
+ end
81
+
82
+ # @return [Hash] The complete object as a Ruby hash
83
+ def to_hash
84
+ ret = {}
85
+ unless @dav_server.nil?
86
+ ret['DavServer'] = @dav_server
87
+ end
88
+ unless @user_name.nil?
89
+ ret['UserName'] = @user_name
90
+ end
91
+ unless @access_key.nil?
92
+ ret['AccessKey'] = @access_key
93
+ end
94
+ unless @path.nil?
95
+ ret['Path'] = @path
96
+ end
97
+ @unknown_json_fields.each do |k, v|
98
+ ret[k] = v
99
+ end
100
+ ret
101
+ end
102
+
103
+ # @return [Hash] The complete object as a Ruby hash
104
+ def to_h
105
+ to_hash
106
+ end
107
+
108
+ # @return [String] The complete object as a JSON string
109
+ def to_json(options = {})
110
+ to_hash.to_json(options)
111
+ end
112
+ end
113
+ end
@@ -205,6 +205,7 @@ require_relative 'comet/models/web_authn_relying_party_entity'
205
205
  require_relative 'comet/models/web_authn_sign_request'
206
206
  require_relative 'comet/models/web_authn_sign_response'
207
207
  require_relative 'comet/models/web_authn_user_entity'
208
+ require_relative 'comet/models/web_dav_destination_location'
208
209
  require_relative 'comet/models/web_interface_branding_properties'
209
210
  require_relative 'comet/models/webhook_option'
210
211
  require_relative 'comet/models/win_smbauth'
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.11.0
4
+ version: 2.12.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-08-02 00:00:00.000000000 Z
11
+ date: 2023-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -283,6 +283,7 @@ files:
283
283
  - lib/comet/models/web_authn_sign_request.rb
284
284
  - lib/comet/models/web_authn_sign_response.rb
285
285
  - lib/comet/models/web_authn_user_entity.rb
286
+ - lib/comet/models/web_dav_destination_location.rb
286
287
  - lib/comet/models/web_interface_branding_properties.rb
287
288
  - lib/comet/models/webhook_option.rb
288
289
  - lib/comet/models/win_smbauth.rb