comet_backup_ruby_sdk 2.1.0 → 2.3.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 +14 -0
- data/Gemfile.lock +1 -1
- data/LICENSE +0 -0
- data/RELEASING.md +4 -3
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/comet_server.rb +207 -12
- data/lib/comet/definitions.rb +27 -6
- data/lib/comet/models/admin_user_permissions.rb +16 -0
- data/lib/comet/models/destination_config.rb +8 -0
- data/lib/comet/models/destination_location.rb +8 -0
- data/lib/comet/models/external_authentication_source.rb +10 -0
- data/lib/comet/models/mssqllogin_args.rb +112 -0
- data/lib/comet/models/organization.rb +41 -0
- data/lib/comet/models/organization_login_urlresponse.rb +73 -0
- data/lib/comet/models/psaconfig.rb +111 -0
- data/lib/comet/models/remote_server_address.rb +10 -0
- data/lib/comet/models/remote_storage_option.rb +10 -0
- data/lib/comet/models/replica_server.rb +10 -0
- data/lib/comet/models/restore_job_advanced_options.rb +85 -0
- data/lib/comet/models/self_backup_export_options.rb +125 -0
- data/lib/comet/models/self_backup_target.rb +28 -8
- data/lib/comet/models/server_config_options.rb +15 -0
- data/lib/comet/models/server_meta_version_info.rb +15 -0
- data/lib/comet/models/storj_destination_location.rb +111 -0
- data/lib/comet/models/storj_virtual_storage_role_setting.rb +100 -0
- data/lib/comet/models/update_campaign_options.rb +2 -1
- data/lib/comet/models/user_profile_config.rb +4 -4
- data/lib/comet_backup_ruby_sdk.rb +6 -0
- metadata +8 -2
@@ -0,0 +1,112 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2020-2022 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
|
+
# MSSQLLoginArgs is a typed class wrapper around the underlying Comet Server API data structure.
|
13
|
+
class MSSQLLoginArgs
|
14
|
+
|
15
|
+
# @type [String] instance
|
16
|
+
attr_accessor :instance
|
17
|
+
|
18
|
+
# @type [String] auth_mode
|
19
|
+
attr_accessor :auth_mode
|
20
|
+
|
21
|
+
# @type [String] username
|
22
|
+
attr_accessor :username
|
23
|
+
|
24
|
+
# @type [String] password
|
25
|
+
attr_accessor :password
|
26
|
+
|
27
|
+
# @type [Boolean] method_is_oledb_32bit
|
28
|
+
attr_accessor :method_is_oledb_32bit
|
29
|
+
|
30
|
+
# @type [Boolean] restore_no_recovery
|
31
|
+
attr_accessor :restore_no_recovery
|
32
|
+
|
33
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
34
|
+
attr_accessor :unknown_json_fields
|
35
|
+
|
36
|
+
def initialize
|
37
|
+
clear
|
38
|
+
end
|
39
|
+
|
40
|
+
def clear
|
41
|
+
@instance = ''
|
42
|
+
@auth_mode = ''
|
43
|
+
@username = ''
|
44
|
+
@password = ''
|
45
|
+
@unknown_json_fields = {}
|
46
|
+
end
|
47
|
+
|
48
|
+
# @param [String] json_string The complete object in JSON format
|
49
|
+
def from_json(json_string)
|
50
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
51
|
+
|
52
|
+
from_hash(JSON.parse(json_string))
|
53
|
+
end
|
54
|
+
|
55
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
56
|
+
def from_hash(obj)
|
57
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
58
|
+
|
59
|
+
obj.each do |k, v|
|
60
|
+
case k
|
61
|
+
when 'Instance'
|
62
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
63
|
+
|
64
|
+
@instance = v
|
65
|
+
when 'AuthMode'
|
66
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
67
|
+
|
68
|
+
@auth_mode = v
|
69
|
+
when 'Username'
|
70
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
71
|
+
|
72
|
+
@username = v
|
73
|
+
when 'Password'
|
74
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
75
|
+
|
76
|
+
@password = v
|
77
|
+
when 'MethodIsOledb32Bit'
|
78
|
+
@method_is_oledb_32bit = v
|
79
|
+
when 'RestoreNoRecovery'
|
80
|
+
@restore_no_recovery = v
|
81
|
+
else
|
82
|
+
@unknown_json_fields[k] = v
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# @return [Hash] The complete object as a Ruby hash
|
88
|
+
def to_hash
|
89
|
+
ret = {}
|
90
|
+
ret['Instance'] = @instance
|
91
|
+
ret['AuthMode'] = @auth_mode
|
92
|
+
ret['Username'] = @username
|
93
|
+
ret['Password'] = @password
|
94
|
+
ret['MethodIsOledb32Bit'] = @method_is_oledb_32bit
|
95
|
+
ret['RestoreNoRecovery'] = @restore_no_recovery
|
96
|
+
@unknown_json_fields.each do |k, v|
|
97
|
+
ret[k] = v
|
98
|
+
end
|
99
|
+
ret
|
100
|
+
end
|
101
|
+
|
102
|
+
# @return [Hash] The complete object as a Ruby hash
|
103
|
+
def to_h
|
104
|
+
to_hash
|
105
|
+
end
|
106
|
+
|
107
|
+
# @return [String] The complete object as a JSON string
|
108
|
+
def to_json(options = {})
|
109
|
+
to_hash.to_json(options)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
@@ -27,15 +27,24 @@ module Comet
|
|
27
27
|
# @type [Array<Comet::RemoteStorageOption>] remote_storage
|
28
28
|
attr_accessor :remote_storage
|
29
29
|
|
30
|
+
# @type [Comet::ConstellationRoleOptions] constellation_role
|
31
|
+
attr_accessor :constellation_role
|
32
|
+
|
30
33
|
# @type [Hash{String => Comet::WebhookOption}] webhook_options
|
31
34
|
attr_accessor :webhook_options
|
32
35
|
|
36
|
+
# @type [Array<Comet::PSAConfig>] psaconfigs
|
37
|
+
attr_accessor :psaconfigs
|
38
|
+
|
33
39
|
# @type [Comet::EmailOptions] email
|
34
40
|
attr_accessor :email
|
35
41
|
|
36
42
|
# @type [Boolean] is_suspended
|
37
43
|
attr_accessor :is_suspended
|
38
44
|
|
45
|
+
# @type [Array<String>] experimental_options
|
46
|
+
attr_accessor :experimental_options
|
47
|
+
|
39
48
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
40
49
|
attr_accessor :unknown_json_fields
|
41
50
|
|
@@ -49,8 +58,11 @@ module Comet
|
|
49
58
|
@software_build_role = Comet::SoftwareBuildRoleOptions.new
|
50
59
|
@branding = Comet::BrandingOptions.new
|
51
60
|
@remote_storage = []
|
61
|
+
@constellation_role = Comet::ConstellationRoleOptions.new
|
52
62
|
@webhook_options = {}
|
63
|
+
@psaconfigs = []
|
53
64
|
@email = Comet::EmailOptions.new
|
65
|
+
@experimental_options = []
|
54
66
|
@unknown_json_fields = {}
|
55
67
|
end
|
56
68
|
|
@@ -98,6 +110,9 @@ module Comet
|
|
98
110
|
@remote_storage[i1].from_hash(v1)
|
99
111
|
end
|
100
112
|
end
|
113
|
+
when 'ConstellationRole'
|
114
|
+
@constellation_role = Comet::ConstellationRoleOptions.new
|
115
|
+
@constellation_role.from_hash(v)
|
101
116
|
when 'WebhookOptions'
|
102
117
|
@webhook_options = {}
|
103
118
|
if v.nil?
|
@@ -108,11 +123,32 @@ module Comet
|
|
108
123
|
@webhook_options[k1].from_hash(v1)
|
109
124
|
end
|
110
125
|
end
|
126
|
+
when 'PSAConfigs'
|
127
|
+
if v.nil?
|
128
|
+
@psaconfigs = []
|
129
|
+
else
|
130
|
+
@psaconfigs = Array.new(v.length)
|
131
|
+
v.each_with_index do |v1, i1|
|
132
|
+
@psaconfigs[i1] = Comet::PSAConfig.new
|
133
|
+
@psaconfigs[i1].from_hash(v1)
|
134
|
+
end
|
135
|
+
end
|
111
136
|
when 'Email'
|
112
137
|
@email = Comet::EmailOptions.new
|
113
138
|
@email.from_hash(v)
|
114
139
|
when 'IsSuspended'
|
115
140
|
@is_suspended = v
|
141
|
+
when 'ExperimentalOptions'
|
142
|
+
if v.nil?
|
143
|
+
@experimental_options = []
|
144
|
+
else
|
145
|
+
@experimental_options = Array.new(v.length)
|
146
|
+
v.each_with_index do |v1, i1|
|
147
|
+
raise TypeError, "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
148
|
+
|
149
|
+
@experimental_options[i1] = v1
|
150
|
+
end
|
151
|
+
end
|
116
152
|
else
|
117
153
|
@unknown_json_fields[k] = v
|
118
154
|
end
|
@@ -127,9 +163,14 @@ module Comet
|
|
127
163
|
ret['SoftwareBuildRole'] = @software_build_role
|
128
164
|
ret['Branding'] = @branding
|
129
165
|
ret['RemoteStorage'] = @remote_storage
|
166
|
+
ret['ConstellationRole'] = @constellation_role
|
130
167
|
ret['WebhookOptions'] = @webhook_options
|
168
|
+
ret['PSAConfigs'] = @psaconfigs
|
131
169
|
ret['Email'] = @email
|
132
170
|
ret['IsSuspended'] = @is_suspended
|
171
|
+
unless @experimental_options.nil?
|
172
|
+
ret['ExperimentalOptions'] = @experimental_options
|
173
|
+
end
|
133
174
|
@unknown_json_fields.each do |k, v|
|
134
175
|
ret[k] = v
|
135
176
|
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2020-2022 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
|
+
# OrganizationLoginURLResponse is a typed class wrapper around the underlying Comet Server API data structure.
|
13
|
+
class OrganizationLoginURLResponse
|
14
|
+
|
15
|
+
# @type [String] login_url
|
16
|
+
attr_accessor :login_url
|
17
|
+
|
18
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
19
|
+
attr_accessor :unknown_json_fields
|
20
|
+
|
21
|
+
def initialize
|
22
|
+
clear
|
23
|
+
end
|
24
|
+
|
25
|
+
def clear
|
26
|
+
@login_url = ''
|
27
|
+
@unknown_json_fields = {}
|
28
|
+
end
|
29
|
+
|
30
|
+
# @param [String] json_string The complete object in JSON format
|
31
|
+
def from_json(json_string)
|
32
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
33
|
+
|
34
|
+
from_hash(JSON.parse(json_string))
|
35
|
+
end
|
36
|
+
|
37
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
38
|
+
def from_hash(obj)
|
39
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
40
|
+
|
41
|
+
obj.each do |k, v|
|
42
|
+
case k
|
43
|
+
when 'LoginURL'
|
44
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
45
|
+
|
46
|
+
@login_url = v
|
47
|
+
else
|
48
|
+
@unknown_json_fields[k] = v
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
# @return [Hash] The complete object as a Ruby hash
|
54
|
+
def to_hash
|
55
|
+
ret = {}
|
56
|
+
ret['LoginURL'] = @login_url
|
57
|
+
@unknown_json_fields.each do |k, v|
|
58
|
+
ret[k] = v
|
59
|
+
end
|
60
|
+
ret
|
61
|
+
end
|
62
|
+
|
63
|
+
# @return [Hash] The complete object as a Ruby hash
|
64
|
+
def to_h
|
65
|
+
to_hash
|
66
|
+
end
|
67
|
+
|
68
|
+
# @return [String] The complete object as a JSON string
|
69
|
+
def to_json(options = {})
|
70
|
+
to_hash.to_json(options)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2020-2022 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
|
+
# PSAConfig is a typed class wrapper around the underlying Comet Server API data structure.
|
13
|
+
class PSAConfig
|
14
|
+
|
15
|
+
# @type [String] url
|
16
|
+
attr_accessor :url
|
17
|
+
|
18
|
+
# @type [Hash{String => String}] custom_headers
|
19
|
+
attr_accessor :custom_headers
|
20
|
+
|
21
|
+
# @type [Number] type
|
22
|
+
attr_accessor :type
|
23
|
+
|
24
|
+
# @type [String] partner_key
|
25
|
+
attr_accessor :partner_key
|
26
|
+
|
27
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
28
|
+
attr_accessor :unknown_json_fields
|
29
|
+
|
30
|
+
def initialize
|
31
|
+
clear
|
32
|
+
end
|
33
|
+
|
34
|
+
def clear
|
35
|
+
@url = ''
|
36
|
+
@custom_headers = {}
|
37
|
+
@type = 0
|
38
|
+
@partner_key = ''
|
39
|
+
@unknown_json_fields = {}
|
40
|
+
end
|
41
|
+
|
42
|
+
# @param [String] json_string The complete object in JSON format
|
43
|
+
def from_json(json_string)
|
44
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
45
|
+
|
46
|
+
from_hash(JSON.parse(json_string))
|
47
|
+
end
|
48
|
+
|
49
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
50
|
+
def from_hash(obj)
|
51
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
52
|
+
|
53
|
+
obj.each do |k, v|
|
54
|
+
case k
|
55
|
+
when 'URL'
|
56
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
57
|
+
|
58
|
+
@url = v
|
59
|
+
when 'CustomHeaders'
|
60
|
+
@custom_headers = {}
|
61
|
+
if v.nil?
|
62
|
+
@custom_headers = {}
|
63
|
+
else
|
64
|
+
v.each do |k1, v1|
|
65
|
+
raise TypeError, "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
66
|
+
|
67
|
+
@custom_headers[k1] = v1
|
68
|
+
end
|
69
|
+
end
|
70
|
+
when 'Type'
|
71
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
72
|
+
|
73
|
+
@type = v
|
74
|
+
when 'PartnerKey'
|
75
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
76
|
+
|
77
|
+
@partner_key = v
|
78
|
+
else
|
79
|
+
@unknown_json_fields[k] = v
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# @return [Hash] The complete object as a Ruby hash
|
85
|
+
def to_hash
|
86
|
+
ret = {}
|
87
|
+
ret['URL'] = @url
|
88
|
+
unless @custom_headers.nil?
|
89
|
+
ret['CustomHeaders'] = @custom_headers
|
90
|
+
end
|
91
|
+
ret['Type'] = @type
|
92
|
+
unless @partner_key.nil?
|
93
|
+
ret['PartnerKey'] = @partner_key
|
94
|
+
end
|
95
|
+
@unknown_json_fields.each do |k, v|
|
96
|
+
ret[k] = v
|
97
|
+
end
|
98
|
+
ret
|
99
|
+
end
|
100
|
+
|
101
|
+
# @return [Hash] The complete object as a Ruby hash
|
102
|
+
def to_h
|
103
|
+
to_hash
|
104
|
+
end
|
105
|
+
|
106
|
+
# @return [String] The complete object as a JSON string
|
107
|
+
def to_json(options = {})
|
108
|
+
to_hash.to_json(options)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
@@ -46,6 +46,9 @@ module Comet
|
|
46
46
|
# @type [Comet::AmazonAWSVirtualStorageRoleSettings] aws
|
47
47
|
attr_accessor :aws
|
48
48
|
|
49
|
+
# @type [Comet::StorjVirtualStorageRoleSetting] storj
|
50
|
+
attr_accessor :storj
|
51
|
+
|
49
52
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
50
53
|
attr_accessor :unknown_json_fields
|
51
54
|
|
@@ -65,6 +68,7 @@ module Comet
|
|
65
68
|
@custom = Comet::CustomRemoteBucketSettings.new
|
66
69
|
@s3 = Comet::S3GenericVirtualStorageRole.new
|
67
70
|
@aws = Comet::AmazonAWSVirtualStorageRoleSettings.new
|
71
|
+
@storj = Comet::StorjVirtualStorageRoleSetting.new
|
68
72
|
@unknown_json_fields = {}
|
69
73
|
end
|
70
74
|
|
@@ -119,6 +123,9 @@ module Comet
|
|
119
123
|
when 'AWS'
|
120
124
|
@aws = Comet::AmazonAWSVirtualStorageRoleSettings.new
|
121
125
|
@aws.from_hash(v)
|
126
|
+
when 'Storj'
|
127
|
+
@storj = Comet::StorjVirtualStorageRoleSetting.new
|
128
|
+
@storj.from_hash(v)
|
122
129
|
else
|
123
130
|
@unknown_json_fields[k] = v
|
124
131
|
end
|
@@ -157,6 +164,9 @@ module Comet
|
|
157
164
|
unless @aws.nil?
|
158
165
|
ret['AWS'] = @aws
|
159
166
|
end
|
167
|
+
unless @storj.nil?
|
168
|
+
ret['Storj'] = @storj
|
169
|
+
end
|
160
170
|
@unknown_json_fields.each do |k, v|
|
161
171
|
ret[k] = v
|
162
172
|
end
|
@@ -46,6 +46,9 @@ module Comet
|
|
46
46
|
# @type [Comet::AmazonAWSVirtualStorageRoleSettings] aws
|
47
47
|
attr_accessor :aws
|
48
48
|
|
49
|
+
# @type [Comet::StorjVirtualStorageRoleSetting] storj
|
50
|
+
attr_accessor :storj
|
51
|
+
|
49
52
|
# @type [Boolean] storage_limit_enabled
|
50
53
|
attr_accessor :storage_limit_enabled
|
51
54
|
|
@@ -74,6 +77,7 @@ module Comet
|
|
74
77
|
@custom = Comet::CustomRemoteBucketSettings.new
|
75
78
|
@s3 = Comet::S3GenericVirtualStorageRole.new
|
76
79
|
@aws = Comet::AmazonAWSVirtualStorageRoleSettings.new
|
80
|
+
@storj = Comet::StorjVirtualStorageRoleSetting.new
|
77
81
|
@storage_limit_bytes = 0
|
78
82
|
@unknown_json_fields = {}
|
79
83
|
end
|
@@ -129,6 +133,9 @@ module Comet
|
|
129
133
|
when 'AWS'
|
130
134
|
@aws = Comet::AmazonAWSVirtualStorageRoleSettings.new
|
131
135
|
@aws.from_hash(v)
|
136
|
+
when 'Storj'
|
137
|
+
@storj = Comet::StorjVirtualStorageRoleSetting.new
|
138
|
+
@storj.from_hash(v)
|
132
139
|
when 'StorageLimitEnabled'
|
133
140
|
@storage_limit_enabled = v
|
134
141
|
when 'StorageLimitBytes'
|
@@ -175,6 +182,9 @@ module Comet
|
|
175
182
|
unless @aws.nil?
|
176
183
|
ret['AWS'] = @aws
|
177
184
|
end
|
185
|
+
unless @storj.nil?
|
186
|
+
ret['Storj'] = @storj
|
187
|
+
end
|
178
188
|
ret['StorageLimitEnabled'] = @storage_limit_enabled
|
179
189
|
ret['StorageLimitBytes'] = @storage_limit_bytes
|
180
190
|
ret['RebrandStorage'] = @rebrand_storage
|
@@ -46,6 +46,9 @@ module Comet
|
|
46
46
|
# @type [Comet::AmazonAWSVirtualStorageRoleSettings] aws
|
47
47
|
attr_accessor :aws
|
48
48
|
|
49
|
+
# @type [Comet::StorjVirtualStorageRoleSetting] storj
|
50
|
+
attr_accessor :storj
|
51
|
+
|
49
52
|
# @type [String] replica_deletion_strategy
|
50
53
|
attr_accessor :replica_deletion_strategy
|
51
54
|
|
@@ -68,6 +71,7 @@ module Comet
|
|
68
71
|
@custom = Comet::CustomRemoteBucketSettings.new
|
69
72
|
@s3 = Comet::S3GenericVirtualStorageRole.new
|
70
73
|
@aws = Comet::AmazonAWSVirtualStorageRoleSettings.new
|
74
|
+
@storj = Comet::StorjVirtualStorageRoleSetting.new
|
71
75
|
@replica_deletion_strategy = ''
|
72
76
|
@unknown_json_fields = {}
|
73
77
|
end
|
@@ -123,6 +127,9 @@ module Comet
|
|
123
127
|
when 'AWS'
|
124
128
|
@aws = Comet::AmazonAWSVirtualStorageRoleSettings.new
|
125
129
|
@aws.from_hash(v)
|
130
|
+
when 'Storj'
|
131
|
+
@storj = Comet::StorjVirtualStorageRoleSetting.new
|
132
|
+
@storj.from_hash(v)
|
126
133
|
when 'ReplicaDeletionStrategy'
|
127
134
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
128
135
|
|
@@ -165,6 +172,9 @@ module Comet
|
|
165
172
|
unless @aws.nil?
|
166
173
|
ret['AWS'] = @aws
|
167
174
|
end
|
175
|
+
unless @storj.nil?
|
176
|
+
ret['Storj'] = @storj
|
177
|
+
end
|
168
178
|
unless @replica_deletion_strategy.nil?
|
169
179
|
ret['ReplicaDeletionStrategy'] = @replica_deletion_strategy
|
170
180
|
end
|
@@ -36,6 +36,36 @@ module Comet
|
|
36
36
|
# @type [Comet::Office365Credential] office_365credential
|
37
37
|
attr_accessor :office_365credential
|
38
38
|
|
39
|
+
# @type [String] username
|
40
|
+
attr_accessor :username
|
41
|
+
|
42
|
+
# @type [String] password
|
43
|
+
attr_accessor :password
|
44
|
+
|
45
|
+
# @type [String] host
|
46
|
+
attr_accessor :host
|
47
|
+
|
48
|
+
# @type [String] port
|
49
|
+
attr_accessor :port
|
50
|
+
|
51
|
+
# @type [Boolean] use_ssl
|
52
|
+
attr_accessor :use_ssl
|
53
|
+
|
54
|
+
# @type [Boolean] ssl_allow_invalid
|
55
|
+
attr_accessor :ssl_allow_invalid
|
56
|
+
|
57
|
+
# @type [String] ssl_ca_file
|
58
|
+
attr_accessor :ssl_ca_file
|
59
|
+
|
60
|
+
# @type [String] ssl_crt_file
|
61
|
+
attr_accessor :ssl_crt_file
|
62
|
+
|
63
|
+
# @type [String] ssl_key_file
|
64
|
+
attr_accessor :ssl_key_file
|
65
|
+
|
66
|
+
# @type [Comet::MSSQLLoginArgs] ms_sql_connection
|
67
|
+
attr_accessor :ms_sql_connection
|
68
|
+
|
39
69
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
40
70
|
attr_accessor :unknown_json_fields
|
41
71
|
|
@@ -49,6 +79,14 @@ module Comet
|
|
49
79
|
@exact_dest_paths = []
|
50
80
|
@archive_format = 0
|
51
81
|
@office_365credential = Comet::Office365Credential.new
|
82
|
+
@username = ''
|
83
|
+
@password = ''
|
84
|
+
@host = ''
|
85
|
+
@port = ''
|
86
|
+
@ssl_ca_file = ''
|
87
|
+
@ssl_crt_file = ''
|
88
|
+
@ssl_key_file = ''
|
89
|
+
@ms_sql_connection = Comet::MSSQLLoginArgs.new
|
52
90
|
@unknown_json_fields = {}
|
53
91
|
end
|
54
92
|
|
@@ -97,6 +135,41 @@ module Comet
|
|
97
135
|
when 'Office365Credential'
|
98
136
|
@office_365credential = Comet::Office365Credential.new
|
99
137
|
@office_365credential.from_hash(v)
|
138
|
+
when 'Username'
|
139
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
140
|
+
|
141
|
+
@username = v
|
142
|
+
when 'Password'
|
143
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
144
|
+
|
145
|
+
@password = v
|
146
|
+
when 'Host'
|
147
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
148
|
+
|
149
|
+
@host = v
|
150
|
+
when 'Port'
|
151
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
152
|
+
|
153
|
+
@port = v
|
154
|
+
when 'UseSsl'
|
155
|
+
@use_ssl = v
|
156
|
+
when 'SslAllowInvalid'
|
157
|
+
@ssl_allow_invalid = v
|
158
|
+
when 'SslCaFile'
|
159
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
160
|
+
|
161
|
+
@ssl_ca_file = v
|
162
|
+
when 'SslCrtFile'
|
163
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
164
|
+
|
165
|
+
@ssl_crt_file = v
|
166
|
+
when 'SslKeyFile'
|
167
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
168
|
+
|
169
|
+
@ssl_key_file = v
|
170
|
+
when 'MsSqlConnection'
|
171
|
+
@ms_sql_connection = Comet::MSSQLLoginArgs.new
|
172
|
+
@ms_sql_connection.from_hash(v)
|
100
173
|
else
|
101
174
|
@unknown_json_fields[k] = v
|
102
175
|
end
|
@@ -116,6 +189,18 @@ module Comet
|
|
116
189
|
unless @office_365credential.nil?
|
117
190
|
ret['Office365Credential'] = @office_365credential
|
118
191
|
end
|
192
|
+
ret['Username'] = @username
|
193
|
+
ret['Password'] = @password
|
194
|
+
ret['Host'] = @host
|
195
|
+
ret['Port'] = @port
|
196
|
+
ret['UseSsl'] = @use_ssl
|
197
|
+
ret['SslAllowInvalid'] = @ssl_allow_invalid
|
198
|
+
ret['SslCaFile'] = @ssl_ca_file
|
199
|
+
ret['SslCrtFile'] = @ssl_crt_file
|
200
|
+
ret['SslKeyFile'] = @ssl_key_file
|
201
|
+
unless @ms_sql_connection.nil?
|
202
|
+
ret['MsSqlConnection'] = @ms_sql_connection
|
203
|
+
end
|
119
204
|
@unknown_json_fields.each do |k, v|
|
120
205
|
ret[k] = v
|
121
206
|
end
|