comet_backup_ruby_sdk 1.10.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/comet_server.rb +61 -3
- data/lib/comet/definitions.rb +3 -3
- data/lib/comet/models/admin_security_options.rb +23 -0
- data/lib/comet/models/admin_web_authn_registration.rb +112 -0
- data/lib/comet/models/allowed_admin_user.rb +212 -0
- data/lib/comet/models/browse_office_365list_virtual_accounts_response.rb +99 -0
- data/lib/comet/models/office_365custom_setting_v2.rb +108 -0
- data/lib/comet/models/office_365mixed_virtual_account.rb +203 -0
- data/lib/comet/models/stat_result.rb +9 -0
- data/lib/comet/models/web_authn_authenticator_selection.rb +96 -0
- data/lib/comet/models/web_authn_credential.rb +105 -0
- data/lib/comet/models/web_authn_credential_assertion.rb +74 -0
- data/lib/comet/models/web_authn_credential_descriptor.rb +101 -0
- data/lib/comet/models/web_authn_credential_entity.rb +86 -0
- data/lib/comet/models/web_authn_credential_parameter.rb +84 -0
- data/lib/comet/models/web_authn_public_key_credential_creation_options.rb +173 -0
- data/lib/comet/models/web_authn_public_key_credential_request_options.rb +141 -0
- data/lib/comet/models/web_authn_registration_challenge_response.rb +101 -0
- data/lib/comet/models/web_authn_relying_party_entity.rb +95 -0
- data/lib/comet/models/web_authn_sign_request.rb +83 -0
- data/lib/comet/models/web_authn_sign_response.rb +84 -0
- data/lib/comet/models/web_authn_user_entity.rb +105 -0
- data/lib/comet_backup_ruby_sdk.rb +15 -0
- metadata +20 -2
@@ -0,0 +1,95 @@
|
|
1
|
+
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
|
+
#
|
3
|
+
# Copyright (c) 2020-2021 Comet Licensing Ltd.
|
4
|
+
# Please see the LICENSE file for usage information.
|
5
|
+
#
|
6
|
+
# SPDX-License-Identifier: MIT
|
7
|
+
#
|
8
|
+
# frozen_string_literal: true
|
9
|
+
|
10
|
+
require 'json'
|
11
|
+
|
12
|
+
module Comet
|
13
|
+
|
14
|
+
# WebAuthnRelyingPartyEntity is a typed class wrapper around the underlying Comet Server API data structure.
|
15
|
+
class WebAuthnRelyingPartyEntity
|
16
|
+
|
17
|
+
# @type [String] name
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
# @type [String] icon
|
21
|
+
attr_accessor :icon
|
22
|
+
|
23
|
+
# @type [String] id
|
24
|
+
attr_accessor :id
|
25
|
+
|
26
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
27
|
+
attr_accessor :unknown_json_fields
|
28
|
+
|
29
|
+
def initialize
|
30
|
+
clear
|
31
|
+
end
|
32
|
+
|
33
|
+
def clear
|
34
|
+
@name = ''
|
35
|
+
@icon = ''
|
36
|
+
@id = ''
|
37
|
+
@unknown_json_fields = {}
|
38
|
+
end
|
39
|
+
|
40
|
+
# @param [String] json_string The complete object in JSON format
|
41
|
+
def from_json(json_string)
|
42
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
43
|
+
|
44
|
+
from_hash(JSON.parse(json_string))
|
45
|
+
end
|
46
|
+
|
47
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
48
|
+
def from_hash(obj)
|
49
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
50
|
+
|
51
|
+
obj.each do |k, v|
|
52
|
+
case k
|
53
|
+
when 'name'
|
54
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
55
|
+
|
56
|
+
@name = v
|
57
|
+
when 'icon'
|
58
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
59
|
+
|
60
|
+
@icon = v
|
61
|
+
when 'id'
|
62
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
63
|
+
|
64
|
+
@id = v
|
65
|
+
else
|
66
|
+
@unknown_json_fields[k] = v
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# @return [Hash] The complete object as a Ruby hash
|
72
|
+
def to_hash
|
73
|
+
ret = {}
|
74
|
+
ret['name'] = @name
|
75
|
+
unless @icon.nil?
|
76
|
+
ret['icon'] = @icon
|
77
|
+
end
|
78
|
+
ret['id'] = @id
|
79
|
+
@unknown_json_fields.each do |k, v|
|
80
|
+
ret[k] = v
|
81
|
+
end
|
82
|
+
ret
|
83
|
+
end
|
84
|
+
|
85
|
+
# @return [Hash] The complete object as a Ruby hash
|
86
|
+
def to_h
|
87
|
+
to_hash
|
88
|
+
end
|
89
|
+
|
90
|
+
# @return [String] The complete object as a JSON string
|
91
|
+
def to_json(options = {})
|
92
|
+
to_hash.to_json(options)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
|
+
#
|
3
|
+
# Copyright (c) 2020-2021 Comet Licensing Ltd.
|
4
|
+
# Please see the LICENSE file for usage information.
|
5
|
+
#
|
6
|
+
# SPDX-License-Identifier: MIT
|
7
|
+
#
|
8
|
+
# frozen_string_literal: true
|
9
|
+
|
10
|
+
require 'json'
|
11
|
+
|
12
|
+
module Comet
|
13
|
+
|
14
|
+
# WebAuthnSignRequest is a typed class wrapper around the underlying Comet Server API data structure.
|
15
|
+
class WebAuthnSignRequest
|
16
|
+
|
17
|
+
# @type [String] challenge_id
|
18
|
+
attr_accessor :challenge_id
|
19
|
+
|
20
|
+
# @type [Comet::WebAuthnCredentialAssertion] assertion
|
21
|
+
attr_accessor :assertion
|
22
|
+
|
23
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
24
|
+
attr_accessor :unknown_json_fields
|
25
|
+
|
26
|
+
def initialize
|
27
|
+
clear
|
28
|
+
end
|
29
|
+
|
30
|
+
def clear
|
31
|
+
@challenge_id = ''
|
32
|
+
@assertion = Comet::WebAuthnCredentialAssertion.new
|
33
|
+
@unknown_json_fields = {}
|
34
|
+
end
|
35
|
+
|
36
|
+
# @param [String] json_string The complete object in JSON format
|
37
|
+
def from_json(json_string)
|
38
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
39
|
+
|
40
|
+
from_hash(JSON.parse(json_string))
|
41
|
+
end
|
42
|
+
|
43
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
44
|
+
def from_hash(obj)
|
45
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
46
|
+
|
47
|
+
obj.each do |k, v|
|
48
|
+
case k
|
49
|
+
when 'ChallengeID'
|
50
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
51
|
+
|
52
|
+
@challenge_id = v
|
53
|
+
when 'Assertion'
|
54
|
+
@assertion = Comet::WebAuthnCredentialAssertion.new
|
55
|
+
@assertion.from_hash(v)
|
56
|
+
else
|
57
|
+
@unknown_json_fields[k] = v
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# @return [Hash] The complete object as a Ruby hash
|
63
|
+
def to_hash
|
64
|
+
ret = {}
|
65
|
+
ret['ChallengeID'] = @challenge_id
|
66
|
+
ret['Assertion'] = @assertion
|
67
|
+
@unknown_json_fields.each do |k, v|
|
68
|
+
ret[k] = v
|
69
|
+
end
|
70
|
+
ret
|
71
|
+
end
|
72
|
+
|
73
|
+
# @return [Hash] The complete object as a Ruby hash
|
74
|
+
def to_h
|
75
|
+
to_hash
|
76
|
+
end
|
77
|
+
|
78
|
+
# @return [String] The complete object as a JSON string
|
79
|
+
def to_json(options = {})
|
80
|
+
to_hash.to_json(options)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
|
+
#
|
3
|
+
# Copyright (c) 2020-2021 Comet Licensing Ltd.
|
4
|
+
# Please see the LICENSE file for usage information.
|
5
|
+
#
|
6
|
+
# SPDX-License-Identifier: MIT
|
7
|
+
#
|
8
|
+
# frozen_string_literal: true
|
9
|
+
|
10
|
+
require 'json'
|
11
|
+
|
12
|
+
module Comet
|
13
|
+
|
14
|
+
# WebAuthnSignResponse is a typed class wrapper around the underlying Comet Server API data structure.
|
15
|
+
class WebAuthnSignResponse
|
16
|
+
|
17
|
+
# @type [String] challenge_id
|
18
|
+
attr_accessor :challenge_id
|
19
|
+
|
20
|
+
# @type [String] credential_json
|
21
|
+
attr_accessor :credential_json
|
22
|
+
|
23
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
24
|
+
attr_accessor :unknown_json_fields
|
25
|
+
|
26
|
+
def initialize
|
27
|
+
clear
|
28
|
+
end
|
29
|
+
|
30
|
+
def clear
|
31
|
+
@challenge_id = ''
|
32
|
+
@credential_json = ''
|
33
|
+
@unknown_json_fields = {}
|
34
|
+
end
|
35
|
+
|
36
|
+
# @param [String] json_string The complete object in JSON format
|
37
|
+
def from_json(json_string)
|
38
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
39
|
+
|
40
|
+
from_hash(JSON.parse(json_string))
|
41
|
+
end
|
42
|
+
|
43
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
44
|
+
def from_hash(obj)
|
45
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
46
|
+
|
47
|
+
obj.each do |k, v|
|
48
|
+
case k
|
49
|
+
when 'ChallengeID'
|
50
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
51
|
+
|
52
|
+
@challenge_id = v
|
53
|
+
when 'CredentialJSON'
|
54
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
55
|
+
|
56
|
+
@credential_json = v
|
57
|
+
else
|
58
|
+
@unknown_json_fields[k] = v
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# @return [Hash] The complete object as a Ruby hash
|
64
|
+
def to_hash
|
65
|
+
ret = {}
|
66
|
+
ret['ChallengeID'] = @challenge_id
|
67
|
+
ret['CredentialJSON'] = @credential_json
|
68
|
+
@unknown_json_fields.each do |k, v|
|
69
|
+
ret[k] = v
|
70
|
+
end
|
71
|
+
ret
|
72
|
+
end
|
73
|
+
|
74
|
+
# @return [Hash] The complete object as a Ruby hash
|
75
|
+
def to_h
|
76
|
+
to_hash
|
77
|
+
end
|
78
|
+
|
79
|
+
# @return [String] The complete object as a JSON string
|
80
|
+
def to_json(options = {})
|
81
|
+
to_hash.to_json(options)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,105 @@
|
|
1
|
+
#!/usr/bin/env ruby --enable-frozen-string-literal
|
2
|
+
#
|
3
|
+
# Copyright (c) 2020-2021 Comet Licensing Ltd.
|
4
|
+
# Please see the LICENSE file for usage information.
|
5
|
+
#
|
6
|
+
# SPDX-License-Identifier: MIT
|
7
|
+
#
|
8
|
+
# frozen_string_literal: true
|
9
|
+
|
10
|
+
require 'base64'
|
11
|
+
require 'json'
|
12
|
+
|
13
|
+
module Comet
|
14
|
+
|
15
|
+
# WebAuthnUserEntity is a typed class wrapper around the underlying Comet Server API data structure.
|
16
|
+
class WebAuthnUserEntity
|
17
|
+
|
18
|
+
# @type [String] name
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# @type [String] icon
|
22
|
+
attr_accessor :icon
|
23
|
+
|
24
|
+
# @type [String] display_name
|
25
|
+
attr_accessor :display_name
|
26
|
+
|
27
|
+
# @type [Array<Object>] id
|
28
|
+
attr_accessor :id
|
29
|
+
|
30
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
31
|
+
attr_accessor :unknown_json_fields
|
32
|
+
|
33
|
+
def initialize
|
34
|
+
clear
|
35
|
+
end
|
36
|
+
|
37
|
+
def clear
|
38
|
+
@name = ''
|
39
|
+
@icon = ''
|
40
|
+
@display_name = ''
|
41
|
+
@id = []
|
42
|
+
@unknown_json_fields = {}
|
43
|
+
end
|
44
|
+
|
45
|
+
# @param [String] json_string The complete object in JSON format
|
46
|
+
def from_json(json_string)
|
47
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
48
|
+
|
49
|
+
from_hash(JSON.parse(json_string))
|
50
|
+
end
|
51
|
+
|
52
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
53
|
+
def from_hash(obj)
|
54
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
55
|
+
|
56
|
+
obj.each do |k, v|
|
57
|
+
case k
|
58
|
+
when 'name'
|
59
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
60
|
+
|
61
|
+
@name = v
|
62
|
+
when 'icon'
|
63
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
64
|
+
|
65
|
+
@icon = v
|
66
|
+
when 'displayName'
|
67
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
68
|
+
|
69
|
+
@display_name = v
|
70
|
+
when 'id'
|
71
|
+
@id = Base64.decode64(v)
|
72
|
+
else
|
73
|
+
@unknown_json_fields[k] = v
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# @return [Hash] The complete object as a Ruby hash
|
79
|
+
def to_hash
|
80
|
+
ret = {}
|
81
|
+
ret['name'] = @name
|
82
|
+
unless @icon.nil?
|
83
|
+
ret['icon'] = @icon
|
84
|
+
end
|
85
|
+
unless @display_name.nil?
|
86
|
+
ret['displayName'] = @display_name
|
87
|
+
end
|
88
|
+
ret['id'] = Base64.strict_encode64(@id)
|
89
|
+
@unknown_json_fields.each do |k, v|
|
90
|
+
ret[k] = v
|
91
|
+
end
|
92
|
+
ret
|
93
|
+
end
|
94
|
+
|
95
|
+
# @return [Hash] The complete object as a Ruby hash
|
96
|
+
def to_h
|
97
|
+
to_hash
|
98
|
+
end
|
99
|
+
|
100
|
+
# @return [String] The complete object as a JSON string
|
101
|
+
def to_json(options = {})
|
102
|
+
to_hash.to_json(options)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
@@ -17,6 +17,8 @@ require_relative 'comet/models/admin_resource_response'
|
|
17
17
|
require_relative 'comet/models/admin_security_options'
|
18
18
|
require_relative 'comet/models/admin_u2fregistration'
|
19
19
|
require_relative 'comet/models/admin_user_permissions'
|
20
|
+
require_relative 'comet/models/admin_web_authn_registration'
|
21
|
+
require_relative 'comet/models/allowed_admin_user'
|
20
22
|
require_relative 'comet/models/available_download'
|
21
23
|
require_relative 'comet/models/azure_destination_location'
|
22
24
|
require_relative 'comet/models/b2destination_location'
|
@@ -153,6 +155,19 @@ require_relative 'comet/models/vault_snapshot'
|
|
153
155
|
require_relative 'comet/models/vsscomponent'
|
154
156
|
require_relative 'comet/models/vsswriter_info'
|
155
157
|
require_relative 'comet/models/wasabi_virtual_storage_role_settings'
|
158
|
+
require_relative 'comet/models/web_authn_authenticator_selection'
|
159
|
+
require_relative 'comet/models/web_authn_credential'
|
160
|
+
require_relative 'comet/models/web_authn_credential_assertion'
|
161
|
+
require_relative 'comet/models/web_authn_credential_descriptor'
|
162
|
+
require_relative 'comet/models/web_authn_credential_entity'
|
163
|
+
require_relative 'comet/models/web_authn_credential_parameter'
|
164
|
+
require_relative 'comet/models/web_authn_public_key_credential_creation_options'
|
165
|
+
require_relative 'comet/models/web_authn_public_key_credential_request_options'
|
166
|
+
require_relative 'comet/models/web_authn_registration_challenge_response'
|
167
|
+
require_relative 'comet/models/web_authn_relying_party_entity'
|
168
|
+
require_relative 'comet/models/web_authn_sign_request'
|
169
|
+
require_relative 'comet/models/web_authn_sign_response'
|
170
|
+
require_relative 'comet/models/web_authn_user_entity'
|
156
171
|
require_relative 'comet/models/web_interface_branding_properties'
|
157
172
|
require_relative 'comet/models/webhook_option'
|
158
173
|
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: 1.
|
4
|
+
version: 1.11.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: 2021-
|
11
|
+
date: 2021-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -93,6 +93,8 @@ files:
|
|
93
93
|
- lib/comet/models/admin_security_options.rb
|
94
94
|
- lib/comet/models/admin_u2fregistration.rb
|
95
95
|
- lib/comet/models/admin_user_permissions.rb
|
96
|
+
- lib/comet/models/admin_web_authn_registration.rb
|
97
|
+
- lib/comet/models/allowed_admin_user.rb
|
96
98
|
- lib/comet/models/available_download.rb
|
97
99
|
- lib/comet/models/azure_destination_location.rb
|
98
100
|
- lib/comet/models/b2destination_location.rb
|
@@ -109,6 +111,7 @@ files:
|
|
109
111
|
- lib/comet/models/browse_disk_drives_response.rb
|
110
112
|
- lib/comet/models/browse_edbresponse.rb
|
111
113
|
- lib/comet/models/browse_hvresponse.rb
|
114
|
+
- lib/comet/models/browse_office_365list_virtual_accounts_response.rb
|
112
115
|
- lib/comet/models/browse_office_365objects_response.rb
|
113
116
|
- lib/comet/models/browse_sqlserver_response.rb
|
114
117
|
- lib/comet/models/browse_vssresponse.rb
|
@@ -161,6 +164,8 @@ files:
|
|
161
164
|
- lib/comet/models/office_365connection.rb
|
162
165
|
- lib/comet/models/office_365credential.rb
|
163
166
|
- lib/comet/models/office_365custom_setting.rb
|
167
|
+
- lib/comet/models/office_365custom_setting_v2.rb
|
168
|
+
- lib/comet/models/office_365mixed_virtual_account.rb
|
164
169
|
- lib/comet/models/office_365object_info.rb
|
165
170
|
- lib/comet/models/organization.rb
|
166
171
|
- lib/comet/models/organization_response.rb
|
@@ -226,6 +231,19 @@ files:
|
|
226
231
|
- lib/comet/models/vsscomponent.rb
|
227
232
|
- lib/comet/models/vsswriter_info.rb
|
228
233
|
- lib/comet/models/wasabi_virtual_storage_role_settings.rb
|
234
|
+
- lib/comet/models/web_authn_authenticator_selection.rb
|
235
|
+
- lib/comet/models/web_authn_credential.rb
|
236
|
+
- lib/comet/models/web_authn_credential_assertion.rb
|
237
|
+
- lib/comet/models/web_authn_credential_descriptor.rb
|
238
|
+
- lib/comet/models/web_authn_credential_entity.rb
|
239
|
+
- lib/comet/models/web_authn_credential_parameter.rb
|
240
|
+
- lib/comet/models/web_authn_public_key_credential_creation_options.rb
|
241
|
+
- lib/comet/models/web_authn_public_key_credential_request_options.rb
|
242
|
+
- lib/comet/models/web_authn_registration_challenge_response.rb
|
243
|
+
- lib/comet/models/web_authn_relying_party_entity.rb
|
244
|
+
- lib/comet/models/web_authn_sign_request.rb
|
245
|
+
- lib/comet/models/web_authn_sign_response.rb
|
246
|
+
- lib/comet/models/web_authn_user_entity.rb
|
229
247
|
- lib/comet/models/web_interface_branding_properties.rb
|
230
248
|
- lib/comet/models/webhook_option.rb
|
231
249
|
- lib/comet/models/win_smbauth.rb
|