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,125 @@
|
|
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
|
+
# SelfBackupExportOptions is a typed class wrapper around the underlying Comet Server API data structure.
|
13
|
+
class SelfBackupExportOptions
|
14
|
+
|
15
|
+
# @type [Comet::DestinationLocation] location
|
16
|
+
attr_accessor :location
|
17
|
+
|
18
|
+
# @type [String] encryption_key
|
19
|
+
attr_accessor :encryption_key
|
20
|
+
|
21
|
+
# @type [Number] encryption_key_format
|
22
|
+
attr_accessor :encryption_key_format
|
23
|
+
|
24
|
+
# @type [Number] compression
|
25
|
+
attr_accessor :compression
|
26
|
+
|
27
|
+
# @type [Boolean] exclude_jobs_db
|
28
|
+
attr_accessor :exclude_jobs_db
|
29
|
+
|
30
|
+
# @type [String] restrict_to_single_org_id
|
31
|
+
attr_accessor :restrict_to_single_org_id
|
32
|
+
|
33
|
+
# @type [Number] index
|
34
|
+
attr_accessor :index
|
35
|
+
|
36
|
+
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
37
|
+
attr_accessor :unknown_json_fields
|
38
|
+
|
39
|
+
def initialize
|
40
|
+
clear
|
41
|
+
end
|
42
|
+
|
43
|
+
def clear
|
44
|
+
@location = Comet::DestinationLocation.new
|
45
|
+
@encryption_key = ''
|
46
|
+
@encryption_key_format = 0
|
47
|
+
@compression = 0
|
48
|
+
@restrict_to_single_org_id = ''
|
49
|
+
@index = 0
|
50
|
+
@unknown_json_fields = {}
|
51
|
+
end
|
52
|
+
|
53
|
+
# @param [String] json_string The complete object in JSON format
|
54
|
+
def from_json(json_string)
|
55
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
56
|
+
|
57
|
+
from_hash(JSON.parse(json_string))
|
58
|
+
end
|
59
|
+
|
60
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
61
|
+
def from_hash(obj)
|
62
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
63
|
+
|
64
|
+
obj.each do |k, v|
|
65
|
+
case k
|
66
|
+
when 'Location'
|
67
|
+
@location = Comet::DestinationLocation.new
|
68
|
+
@location.from_hash(v)
|
69
|
+
when 'EncryptionKey'
|
70
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
71
|
+
|
72
|
+
@encryption_key = v
|
73
|
+
when 'EncryptionKeyFormat'
|
74
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
75
|
+
|
76
|
+
@encryption_key_format = v
|
77
|
+
when 'Compression'
|
78
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
79
|
+
|
80
|
+
@compression = v
|
81
|
+
when 'ExcludeJobsDB'
|
82
|
+
@exclude_jobs_db = v
|
83
|
+
when 'RestrictToSingleOrgID'
|
84
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
85
|
+
|
86
|
+
@restrict_to_single_org_id = v
|
87
|
+
when 'Index'
|
88
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
89
|
+
|
90
|
+
@index = v
|
91
|
+
else
|
92
|
+
@unknown_json_fields[k] = v
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
# @return [Hash] The complete object as a Ruby hash
|
98
|
+
def to_hash
|
99
|
+
ret = {}
|
100
|
+
ret['Location'] = @location
|
101
|
+
ret['EncryptionKey'] = @encryption_key
|
102
|
+
ret['EncryptionKeyFormat'] = @encryption_key_format
|
103
|
+
ret['Compression'] = @compression
|
104
|
+
ret['ExcludeJobsDB'] = @exclude_jobs_db
|
105
|
+
unless @restrict_to_single_org_id.nil?
|
106
|
+
ret['RestrictToSingleOrgID'] = @restrict_to_single_org_id
|
107
|
+
end
|
108
|
+
ret['Index'] = @index
|
109
|
+
@unknown_json_fields.each do |k, v|
|
110
|
+
ret[k] = v
|
111
|
+
end
|
112
|
+
ret
|
113
|
+
end
|
114
|
+
|
115
|
+
# @return [Hash] The complete object as a Ruby hash
|
116
|
+
def to_h
|
117
|
+
to_hash
|
118
|
+
end
|
119
|
+
|
120
|
+
# @return [String] The complete object as a JSON string
|
121
|
+
def to_json(options = {})
|
122
|
+
to_hash.to_json(options)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
@@ -12,9 +12,6 @@ module Comet
|
|
12
12
|
# SelfBackupTarget is a typed class wrapper around the underlying Comet Server API data structure.
|
13
13
|
class SelfBackupTarget
|
14
14
|
|
15
|
-
# @type [Comet::DestinationLocation] location
|
16
|
-
attr_accessor :location
|
17
|
-
|
18
15
|
# @type [Array<Comet::ScheduleConfig>] schedule
|
19
16
|
attr_accessor :schedule
|
20
17
|
|
@@ -24,6 +21,9 @@ module Comet
|
|
24
21
|
# @type [Comet::RetentionPolicy] retention_policy
|
25
22
|
attr_accessor :retention_policy
|
26
23
|
|
24
|
+
# @type [Comet::DestinationLocation] location
|
25
|
+
attr_accessor :location
|
26
|
+
|
27
27
|
# @type [String] encryption_key
|
28
28
|
attr_accessor :encryption_key
|
29
29
|
|
@@ -36,6 +36,12 @@ module Comet
|
|
36
36
|
# @type [Boolean] exclude_jobs_db
|
37
37
|
attr_accessor :exclude_jobs_db
|
38
38
|
|
39
|
+
# @type [String] restrict_to_single_org_id
|
40
|
+
attr_accessor :restrict_to_single_org_id
|
41
|
+
|
42
|
+
# @type [Number] index
|
43
|
+
attr_accessor :index
|
44
|
+
|
39
45
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
40
46
|
attr_accessor :unknown_json_fields
|
41
47
|
|
@@ -44,13 +50,15 @@ module Comet
|
|
44
50
|
end
|
45
51
|
|
46
52
|
def clear
|
47
|
-
@location = Comet::DestinationLocation.new
|
48
53
|
@schedule = []
|
49
54
|
@schedule_timezone = ''
|
50
55
|
@retention_policy = Comet::RetentionPolicy.new
|
56
|
+
@location = Comet::DestinationLocation.new
|
51
57
|
@encryption_key = ''
|
52
58
|
@encryption_key_format = 0
|
53
59
|
@compression = 0
|
60
|
+
@restrict_to_single_org_id = ''
|
61
|
+
@index = 0
|
54
62
|
@unknown_json_fields = {}
|
55
63
|
end
|
56
64
|
|
@@ -67,9 +75,6 @@ module Comet
|
|
67
75
|
|
68
76
|
obj.each do |k, v|
|
69
77
|
case k
|
70
|
-
when 'Location'
|
71
|
-
@location = Comet::DestinationLocation.new
|
72
|
-
@location.from_hash(v)
|
73
78
|
when 'Schedule'
|
74
79
|
if v.nil?
|
75
80
|
@schedule = []
|
@@ -87,6 +92,9 @@ module Comet
|
|
87
92
|
when 'RetentionPolicy'
|
88
93
|
@retention_policy = Comet::RetentionPolicy.new
|
89
94
|
@retention_policy.from_hash(v)
|
95
|
+
when 'Location'
|
96
|
+
@location = Comet::DestinationLocation.new
|
97
|
+
@location.from_hash(v)
|
90
98
|
when 'EncryptionKey'
|
91
99
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
92
100
|
|
@@ -101,6 +109,14 @@ module Comet
|
|
101
109
|
@compression = v
|
102
110
|
when 'ExcludeJobsDB'
|
103
111
|
@exclude_jobs_db = v
|
112
|
+
when 'RestrictToSingleOrgID'
|
113
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
114
|
+
|
115
|
+
@restrict_to_single_org_id = v
|
116
|
+
when 'Index'
|
117
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
118
|
+
|
119
|
+
@index = v
|
104
120
|
else
|
105
121
|
@unknown_json_fields[k] = v
|
106
122
|
end
|
@@ -110,14 +126,18 @@ module Comet
|
|
110
126
|
# @return [Hash] The complete object as a Ruby hash
|
111
127
|
def to_hash
|
112
128
|
ret = {}
|
113
|
-
ret['Location'] = @location
|
114
129
|
ret['Schedule'] = @schedule
|
115
130
|
ret['ScheduleTimezone'] = @schedule_timezone
|
116
131
|
ret['RetentionPolicy'] = @retention_policy
|
132
|
+
ret['Location'] = @location
|
117
133
|
ret['EncryptionKey'] = @encryption_key
|
118
134
|
ret['EncryptionKeyFormat'] = @encryption_key_format
|
119
135
|
ret['Compression'] = @compression
|
120
136
|
ret['ExcludeJobsDB'] = @exclude_jobs_db
|
137
|
+
unless @restrict_to_single_org_id.nil?
|
138
|
+
ret['RestrictToSingleOrgID'] = @restrict_to_single_org_id
|
139
|
+
end
|
140
|
+
ret['Index'] = @index
|
121
141
|
@unknown_json_fields.each do |k, v|
|
122
142
|
ret[k] = v
|
123
143
|
end
|
@@ -18,6 +18,9 @@ module Comet
|
|
18
18
|
# @type [Hash{String => Comet::WebhookOption}] webhook_options
|
19
19
|
attr_accessor :webhook_options
|
20
20
|
|
21
|
+
# @type [Array<Comet::PSAConfig>] psaconfigs
|
22
|
+
attr_accessor :psaconfigs
|
23
|
+
|
21
24
|
# @type [Comet::LicenseOptions] license
|
22
25
|
attr_accessor :license
|
23
26
|
|
@@ -76,6 +79,7 @@ module Comet
|
|
76
79
|
def clear
|
77
80
|
@experimental_options = []
|
78
81
|
@webhook_options = {}
|
82
|
+
@psaconfigs = []
|
79
83
|
@license = Comet::LicenseOptions.new
|
80
84
|
@branding = Comet::BrandingOptions.new
|
81
85
|
@admin_users = []
|
@@ -128,6 +132,16 @@ module Comet
|
|
128
132
|
@webhook_options[k1].from_hash(v1)
|
129
133
|
end
|
130
134
|
end
|
135
|
+
when 'PSAConfigs'
|
136
|
+
if v.nil?
|
137
|
+
@psaconfigs = []
|
138
|
+
else
|
139
|
+
@psaconfigs = Array.new(v.length)
|
140
|
+
v.each_with_index do |v1, i1|
|
141
|
+
@psaconfigs[i1] = Comet::PSAConfig.new
|
142
|
+
@psaconfigs[i1].from_hash(v1)
|
143
|
+
end
|
144
|
+
end
|
131
145
|
when 'License'
|
132
146
|
@license = Comet::LicenseOptions.new
|
133
147
|
@license.from_hash(v)
|
@@ -216,6 +230,7 @@ module Comet
|
|
216
230
|
ret['ExperimentalOptions'] = @experimental_options
|
217
231
|
end
|
218
232
|
ret['WebhookOptions'] = @webhook_options
|
233
|
+
ret['PSAConfigs'] = @psaconfigs
|
219
234
|
ret['License'] = @license
|
220
235
|
ret['Branding'] = @branding
|
221
236
|
ret['AdminUsers'] = @admin_users
|
@@ -48,6 +48,12 @@ module Comet
|
|
48
48
|
# @type [String] server_license_hash
|
49
49
|
attr_accessor :server_license_hash
|
50
50
|
|
51
|
+
# @type [Boolean] server_license_features_all
|
52
|
+
attr_accessor :server_license_features_all
|
53
|
+
|
54
|
+
# @type [Number] server_license_feature_set
|
55
|
+
attr_accessor :server_license_feature_set
|
56
|
+
|
51
57
|
# @type [Number] license_valid_until
|
52
58
|
attr_accessor :license_valid_until
|
53
59
|
|
@@ -93,6 +99,7 @@ module Comet
|
|
93
99
|
@server_start_hash = ''
|
94
100
|
@current_time = 0
|
95
101
|
@server_license_hash = ''
|
102
|
+
@server_license_feature_set = 0
|
96
103
|
@license_valid_until = 0
|
97
104
|
@emails_sent_successfully = 0
|
98
105
|
@emails_sent_errors = 0
|
@@ -163,6 +170,12 @@ module Comet
|
|
163
170
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
164
171
|
|
165
172
|
@server_license_hash = v
|
173
|
+
when 'ServerLicenseFeaturesAll'
|
174
|
+
@server_license_features_all = v
|
175
|
+
when 'ServerLicenseFeatureSet'
|
176
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
177
|
+
|
178
|
+
@server_license_feature_set = v
|
166
179
|
when 'LicenseValidUntil'
|
167
180
|
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
168
181
|
|
@@ -230,6 +243,8 @@ module Comet
|
|
230
243
|
ret['ServerStartHash'] = @server_start_hash
|
231
244
|
ret['CurrentTime'] = @current_time
|
232
245
|
ret['ServerLicenseHash'] = @server_license_hash
|
246
|
+
ret['ServerLicenseFeaturesAll'] = @server_license_features_all
|
247
|
+
ret['ServerLicenseFeatureSet'] = @server_license_feature_set
|
233
248
|
ret['LicenseValidUntil'] = @license_valid_until
|
234
249
|
ret['EmailsSentSuccessfully'] = @emails_sent_successfully
|
235
250
|
ret['EmailsSentErrors'] = @emails_sent_errors
|
@@ -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
|
+
# StorjDestinationLocation is a typed class wrapper around the underlying Comet Server API data structure.
|
13
|
+
class StorjDestinationLocation
|
14
|
+
|
15
|
+
# @type [String] satellite_address
|
16
|
+
attr_accessor :satellite_address
|
17
|
+
|
18
|
+
# @type [String] apikey
|
19
|
+
attr_accessor :apikey
|
20
|
+
|
21
|
+
# @type [String] passphrase
|
22
|
+
attr_accessor :passphrase
|
23
|
+
|
24
|
+
# @type [String] storj_bucket
|
25
|
+
attr_accessor :storj_bucket
|
26
|
+
|
27
|
+
# @type [String] storj_bucket_prefix
|
28
|
+
attr_accessor :storj_bucket_prefix
|
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
|
+
@satellite_address = ''
|
39
|
+
@apikey = ''
|
40
|
+
@passphrase = ''
|
41
|
+
@storj_bucket = ''
|
42
|
+
@storj_bucket_prefix = ''
|
43
|
+
@unknown_json_fields = {}
|
44
|
+
end
|
45
|
+
|
46
|
+
# @param [String] json_string The complete object in JSON format
|
47
|
+
def from_json(json_string)
|
48
|
+
raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
|
49
|
+
|
50
|
+
from_hash(JSON.parse(json_string))
|
51
|
+
end
|
52
|
+
|
53
|
+
# @param [Hash] obj The complete object as a Ruby hash
|
54
|
+
def from_hash(obj)
|
55
|
+
raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
|
56
|
+
|
57
|
+
obj.each do |k, v|
|
58
|
+
case k
|
59
|
+
when 'SatelliteAddress'
|
60
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
61
|
+
|
62
|
+
@satellite_address = v
|
63
|
+
when 'APIKey'
|
64
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
65
|
+
|
66
|
+
@apikey = v
|
67
|
+
when 'Passphrase'
|
68
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
69
|
+
|
70
|
+
@passphrase = v
|
71
|
+
when 'StorjBucket'
|
72
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
73
|
+
|
74
|
+
@storj_bucket = v
|
75
|
+
when 'StorjBucketPrefix'
|
76
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
77
|
+
|
78
|
+
@storj_bucket_prefix = v
|
79
|
+
else
|
80
|
+
@unknown_json_fields[k] = v
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# @return [Hash] The complete object as a Ruby hash
|
86
|
+
def to_hash
|
87
|
+
ret = {}
|
88
|
+
ret['SatelliteAddress'] = @satellite_address
|
89
|
+
ret['APIKey'] = @apikey
|
90
|
+
ret['Passphrase'] = @passphrase
|
91
|
+
ret['StorjBucket'] = @storj_bucket
|
92
|
+
unless @storj_bucket_prefix.nil?
|
93
|
+
ret['StorjBucketPrefix'] = @storj_bucket_prefix
|
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
|
@@ -0,0 +1,100 @@
|
|
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
|
+
# StorjVirtualStorageRoleSetting is a typed class wrapper around the underlying Comet Server API data structure.
|
13
|
+
class StorjVirtualStorageRoleSetting
|
14
|
+
|
15
|
+
# @type [String] satellite_address
|
16
|
+
attr_accessor :satellite_address
|
17
|
+
|
18
|
+
# @type [String] apikey
|
19
|
+
attr_accessor :apikey
|
20
|
+
|
21
|
+
# @type [String] passphrase
|
22
|
+
attr_accessor :passphrase
|
23
|
+
|
24
|
+
# @type [String] bucket
|
25
|
+
attr_accessor :bucket
|
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
|
+
@satellite_address = ''
|
36
|
+
@apikey = ''
|
37
|
+
@passphrase = ''
|
38
|
+
@bucket = ''
|
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 'SatelliteAddress'
|
56
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
57
|
+
|
58
|
+
@satellite_address = v
|
59
|
+
when 'APIKey'
|
60
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
61
|
+
|
62
|
+
@apikey = v
|
63
|
+
when 'Passphrase'
|
64
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
65
|
+
|
66
|
+
@passphrase = v
|
67
|
+
when 'Bucket'
|
68
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
69
|
+
|
70
|
+
@bucket = v
|
71
|
+
else
|
72
|
+
@unknown_json_fields[k] = v
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# @return [Hash] The complete object as a Ruby hash
|
78
|
+
def to_hash
|
79
|
+
ret = {}
|
80
|
+
ret['SatelliteAddress'] = @satellite_address
|
81
|
+
ret['APIKey'] = @apikey
|
82
|
+
ret['Passphrase'] = @passphrase
|
83
|
+
ret['Bucket'] = @bucket
|
84
|
+
@unknown_json_fields.each do |k, v|
|
85
|
+
ret[k] = v
|
86
|
+
end
|
87
|
+
ret
|
88
|
+
end
|
89
|
+
|
90
|
+
# @return [Hash] The complete object as a Ruby hash
|
91
|
+
def to_h
|
92
|
+
to_hash
|
93
|
+
end
|
94
|
+
|
95
|
+
# @return [String] The complete object as a JSON string
|
96
|
+
def to_json(options = {})
|
97
|
+
to_hash.to_json(options)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -12,7 +12,8 @@ module Comet
|
|
12
12
|
# UpdateCampaignOptions is a typed class wrapper around the underlying Comet Server API data structure.
|
13
13
|
# This data structure describes which devices should receive a remote software upgrade. Both the
|
14
14
|
# target version criteria (UpgradeOlder/ReinstallCurrentVer/DowngradeNewer) and the target device
|
15
|
-
# criteria (ApplyDeviceFilter/DeviceFilter) must be met in order for the remote upgrade to be
|
15
|
+
# criteria (ApplyDeviceFilter/DeviceFilter) must be met in order for the remote upgrade to be
|
16
|
+
# applied.
|
16
17
|
class UpdateCampaignOptions
|
17
18
|
|
18
19
|
# @type [Boolean] active
|
@@ -65,16 +65,16 @@ module Comet
|
|
65
65
|
attr_accessor :maximum_devices
|
66
66
|
|
67
67
|
# If the PolicyID field is set to a non-empty string, the Comet Server will enforce the contents of
|
68
|
-
# the Policy field based on the matching server's policy. Otherwise if the PolicyID field is set to
|
69
|
-
# empty string, the administrator may configure any custom values in the Policy field.
|
68
|
+
# the Policy field based on the matching server's policy. Otherwise if the PolicyID field is set to
|
69
|
+
# an empty string, the administrator may configure any custom values in the Policy field.
|
70
70
|
# @type [String] policy_id
|
71
71
|
attr_accessor :policy_id
|
72
72
|
|
73
73
|
# @type [Comet::UserPolicy] policy
|
74
74
|
attr_accessor :policy
|
75
75
|
|
76
|
-
# To change the user's password, use the AdminResetUserPassword API instead of accessing these
|
77
|
-
# directly. Otherwise, other encrypted fields in the user profile may become corrupted.
|
76
|
+
# To change the user's password, use the AdminResetUserPassword API instead of accessing these
|
77
|
+
# fields directly. Otherwise, other encrypted fields in the user profile may become corrupted.
|
78
78
|
# @type [Number] password_format
|
79
79
|
attr_accessor :password_format
|
80
80
|
|
@@ -91,6 +91,7 @@ require_relative 'comet/models/local_storage_directory'
|
|
91
91
|
require_relative 'comet/models/mac_oscode_sign_properties'
|
92
92
|
require_relative 'comet/models/mongo_dbconnection'
|
93
93
|
require_relative 'comet/models/mssqlconnection'
|
94
|
+
require_relative 'comet/models/mssqllogin_args'
|
94
95
|
require_relative 'comet/models/my_sqlconnection'
|
95
96
|
require_relative 'comet/models/new_bucket_detail'
|
96
97
|
require_relative 'comet/models/news_entry'
|
@@ -101,11 +102,13 @@ require_relative 'comet/models/office_365custom_setting_v2'
|
|
101
102
|
require_relative 'comet/models/office_365mixed_virtual_account'
|
102
103
|
require_relative 'comet/models/office_365object_info'
|
103
104
|
require_relative 'comet/models/organization'
|
105
|
+
require_relative 'comet/models/organization_login_urlresponse'
|
104
106
|
require_relative 'comet/models/organization_response'
|
105
107
|
require_relative 'comet/models/osinfo'
|
106
108
|
require_relative 'comet/models/partition'
|
107
109
|
require_relative 'comet/models/private_branding_properties'
|
108
110
|
require_relative 'comet/models/protected_item_engine_type_policy'
|
111
|
+
require_relative 'comet/models/psaconfig'
|
109
112
|
require_relative 'comet/models/public_branding_properties'
|
110
113
|
require_relative 'comet/models/ratelimit_options'
|
111
114
|
require_relative 'comet/models/ratelimit_rule'
|
@@ -123,6 +126,7 @@ require_relative 'comet/models/s3destination_location'
|
|
123
126
|
require_relative 'comet/models/s3generic_virtual_storage_role'
|
124
127
|
require_relative 'comet/models/schedule_config'
|
125
128
|
require_relative 'comet/models/search_clause'
|
129
|
+
require_relative 'comet/models/self_backup_export_options'
|
126
130
|
require_relative 'comet/models/self_backup_options'
|
127
131
|
require_relative 'comet/models/self_backup_statistics'
|
128
132
|
require_relative 'comet/models/self_backup_target'
|
@@ -149,6 +153,8 @@ require_relative 'comet/models/storage_free_space_info'
|
|
149
153
|
require_relative 'comet/models/storage_role_options'
|
150
154
|
require_relative 'comet/models/storage_vault_provider_policy'
|
151
155
|
require_relative 'comet/models/stored_object'
|
156
|
+
require_relative 'comet/models/storj_destination_location'
|
157
|
+
require_relative 'comet/models/storj_virtual_storage_role_setting'
|
152
158
|
require_relative 'comet/models/streamable_event'
|
153
159
|
require_relative 'comet/models/swift_destination_location'
|
154
160
|
require_relative 'comet/models/test_response'
|
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.3.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: 2022-
|
11
|
+
date: 2022-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -169,6 +169,7 @@ files:
|
|
169
169
|
- lib/comet/models/mac_oscode_sign_properties.rb
|
170
170
|
- lib/comet/models/mongo_dbconnection.rb
|
171
171
|
- lib/comet/models/mssqlconnection.rb
|
172
|
+
- lib/comet/models/mssqllogin_args.rb
|
172
173
|
- lib/comet/models/my_sqlconnection.rb
|
173
174
|
- lib/comet/models/new_bucket_detail.rb
|
174
175
|
- lib/comet/models/news_entry.rb
|
@@ -179,11 +180,13 @@ files:
|
|
179
180
|
- lib/comet/models/office_365mixed_virtual_account.rb
|
180
181
|
- lib/comet/models/office_365object_info.rb
|
181
182
|
- lib/comet/models/organization.rb
|
183
|
+
- lib/comet/models/organization_login_urlresponse.rb
|
182
184
|
- lib/comet/models/organization_response.rb
|
183
185
|
- lib/comet/models/osinfo.rb
|
184
186
|
- lib/comet/models/partition.rb
|
185
187
|
- lib/comet/models/private_branding_properties.rb
|
186
188
|
- lib/comet/models/protected_item_engine_type_policy.rb
|
189
|
+
- lib/comet/models/psaconfig.rb
|
187
190
|
- lib/comet/models/public_branding_properties.rb
|
188
191
|
- lib/comet/models/ratelimit_options.rb
|
189
192
|
- lib/comet/models/ratelimit_rule.rb
|
@@ -201,6 +204,7 @@ files:
|
|
201
204
|
- lib/comet/models/s3generic_virtual_storage_role.rb
|
202
205
|
- lib/comet/models/schedule_config.rb
|
203
206
|
- lib/comet/models/search_clause.rb
|
207
|
+
- lib/comet/models/self_backup_export_options.rb
|
204
208
|
- lib/comet/models/self_backup_options.rb
|
205
209
|
- lib/comet/models/self_backup_statistics.rb
|
206
210
|
- lib/comet/models/self_backup_target.rb
|
@@ -227,6 +231,8 @@ files:
|
|
227
231
|
- lib/comet/models/storage_role_options.rb
|
228
232
|
- lib/comet/models/storage_vault_provider_policy.rb
|
229
233
|
- lib/comet/models/stored_object.rb
|
234
|
+
- lib/comet/models/storj_destination_location.rb
|
235
|
+
- lib/comet/models/storj_virtual_storage_role_setting.rb
|
230
236
|
- lib/comet/models/streamable_event.rb
|
231
237
|
- lib/comet/models/swift_destination_location.rb
|
232
238
|
- lib/comet/models/test_response.rb
|