comet_backup_ruby_sdk 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,9 @@ module Comet
12
12
  # BrandingOptions is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class BrandingOptions
14
14
 
15
+ # @type [Number] branding_style_type
16
+ attr_accessor :branding_style_type
17
+
15
18
  # @type [String] brand_name
16
19
  attr_accessor :brand_name
17
20
 
@@ -21,6 +24,9 @@ module Comet
21
24
  # @type [String] top_color
22
25
  attr_accessor :top_color
23
26
 
27
+ # @type [String] accent_color
28
+ attr_accessor :accent_color
29
+
24
30
  # @type [String] favicon
25
31
  attr_accessor :favicon
26
32
 
@@ -138,9 +144,11 @@ module Comet
138
144
  end
139
145
 
140
146
  def clear
147
+ @branding_style_type = 0
141
148
  @brand_name = ''
142
149
  @logo_image = ''
143
150
  @top_color = ''
151
+ @accent_color = ''
144
152
  @favicon = ''
145
153
  @product_name = ''
146
154
  @company_name = ''
@@ -190,6 +198,10 @@ module Comet
190
198
 
191
199
  obj.each do |k, v|
192
200
  case k
201
+ when 'BrandingStyleType'
202
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
203
+
204
+ @branding_style_type = v
193
205
  when 'BrandName'
194
206
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
195
207
 
@@ -202,6 +214,10 @@ module Comet
202
214
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
203
215
 
204
216
  @top_color = v
217
+ when 'AccentColor'
218
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
219
+
220
+ @accent_color = v
205
221
  when 'Favicon'
206
222
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
207
223
 
@@ -348,9 +364,11 @@ module Comet
348
364
  # @return [Hash] The complete object as a Ruby hash
349
365
  def to_hash
350
366
  ret = {}
367
+ ret['BrandingStyleType'] = @branding_style_type
351
368
  ret['BrandName'] = @brand_name
352
369
  ret['LogoImage'] = @logo_image
353
370
  ret['TopColor'] = @top_color
371
+ ret['AccentColor'] = @accent_color
354
372
  ret['Favicon'] = @favicon
355
373
  ret['HideNewsArea'] = @hide_news_area
356
374
  ret['ProductName'] = @product_name
@@ -24,6 +24,12 @@ module Comet
24
24
  # @type [Boolean] default_user_policy
25
25
  attr_accessor :default_user_policy
26
26
 
27
+ # @type [Number] created_date
28
+ attr_accessor :created_date
29
+
30
+ # @type [Number] modified_date
31
+ attr_accessor :modified_date
32
+
27
33
  # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
28
34
  attr_accessor :unknown_json_fields
29
35
 
@@ -35,6 +41,8 @@ module Comet
35
41
  @description = ''
36
42
  @organization_id = ''
37
43
  @policy = Comet::UserPolicy.new
44
+ @created_date = 0
45
+ @modified_date = 0
38
46
  @unknown_json_fields = {}
39
47
  end
40
48
 
@@ -64,6 +72,14 @@ module Comet
64
72
  @policy.from_hash(v)
65
73
  when 'DefaultUserPolicy'
66
74
  @default_user_policy = v
75
+ when 'CreatedDate'
76
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
77
+
78
+ @created_date = v
79
+ when 'ModifiedDate'
80
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
81
+
82
+ @modified_date = v
67
83
  else
68
84
  @unknown_json_fields[k] = v
69
85
  end
@@ -77,6 +93,8 @@ module Comet
77
93
  ret['OrganizationID'] = @organization_id
78
94
  ret['Policy'] = @policy
79
95
  ret['DefaultUserPolicy'] = @default_user_policy
96
+ ret['CreatedDate'] = @created_date
97
+ ret['ModifiedDate'] = @modified_date
80
98
  @unknown_json_fields.each do |k, v|
81
99
  ret[k] = v
82
100
  end
@@ -0,0 +1,136 @@
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
+ # SearchResultFileInfo is a typed class wrapper around the underlying Comet Server API data structure.
13
+ class SearchResultFileInfo
14
+
15
+ # @type [String] path
16
+ attr_accessor :path
17
+
18
+ # @type [String] name
19
+ attr_accessor :name
20
+
21
+ # @type [String] type
22
+ attr_accessor :type
23
+
24
+ # @type [String] mode
25
+ attr_accessor :mode
26
+
27
+ # @type [String] mtime
28
+ attr_accessor :mtime
29
+
30
+ # @type [String] atime
31
+ attr_accessor :atime
32
+
33
+ # @type [String] ctime
34
+ attr_accessor :ctime
35
+
36
+ # @type [Number] size
37
+ attr_accessor :size
38
+
39
+ # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
40
+ attr_accessor :unknown_json_fields
41
+
42
+ def initialize
43
+ clear
44
+ end
45
+
46
+ def clear
47
+ @path = ''
48
+ @name = ''
49
+ @type = ''
50
+ @mode = ''
51
+ @mtime = ''
52
+ @atime = ''
53
+ @ctime = ''
54
+ @size = 0
55
+ @unknown_json_fields = {}
56
+ end
57
+
58
+ # @param [String] json_string The complete object in JSON format
59
+ def from_json(json_string)
60
+ raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
61
+
62
+ from_hash(JSON.parse(json_string))
63
+ end
64
+
65
+ # @param [Hash] obj The complete object as a Ruby hash
66
+ def from_hash(obj)
67
+ raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
68
+
69
+ obj.each do |k, v|
70
+ case k
71
+ when 'path'
72
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
73
+
74
+ @path = v
75
+ when 'name'
76
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
77
+
78
+ @name = v
79
+ when 'type'
80
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
81
+
82
+ @type = v
83
+ when 'mode'
84
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
85
+
86
+ @mode = v
87
+ when 'mtime'
88
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
89
+
90
+ @mtime = v
91
+ when 'atime'
92
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
93
+
94
+ @atime = v
95
+ when 'ctime'
96
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
97
+
98
+ @ctime = v
99
+ when 'size'
100
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
101
+
102
+ @size = v
103
+ else
104
+ @unknown_json_fields[k] = v
105
+ end
106
+ end
107
+ end
108
+
109
+ # @return [Hash] The complete object as a Ruby hash
110
+ def to_hash
111
+ ret = {}
112
+ ret['path'] = @path
113
+ ret['name'] = @name
114
+ ret['type'] = @type
115
+ ret['mode'] = @mode
116
+ ret['mtime'] = @mtime
117
+ ret['atime'] = @atime
118
+ ret['ctime'] = @ctime
119
+ ret['size'] = @size
120
+ @unknown_json_fields.each do |k, v|
121
+ ret[k] = v
122
+ end
123
+ ret
124
+ end
125
+
126
+ # @return [Hash] The complete object as a Ruby hash
127
+ def to_h
128
+ to_hash
129
+ end
130
+
131
+ # @return [String] The complete object as a JSON string
132
+ def to_json(options = {})
133
+ to_hash.to_json(options)
134
+ end
135
+ end
136
+ end
@@ -0,0 +1,104 @@
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
+ # SearchSnapshotsResponse is a typed class wrapper around the underlying Comet Server API data structure.
13
+ class SearchSnapshotsResponse
14
+
15
+ # @type [Number] status
16
+ attr_accessor :status
17
+
18
+ # @type [String] message
19
+ attr_accessor :message
20
+
21
+ # @type [Hash{String => Array<Comet::SearchResultFileInfo>}] snapshot_files
22
+ attr_accessor :snapshot_files
23
+
24
+ # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
25
+ attr_accessor :unknown_json_fields
26
+
27
+ def initialize
28
+ clear
29
+ end
30
+
31
+ def clear
32
+ @status = 0
33
+ @message = ''
34
+ @snapshot_files = {}
35
+ @unknown_json_fields = {}
36
+ end
37
+
38
+ # @param [String] json_string The complete object in JSON format
39
+ def from_json(json_string)
40
+ raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
41
+
42
+ from_hash(JSON.parse(json_string))
43
+ end
44
+
45
+ # @param [Hash] obj The complete object as a Ruby hash
46
+ def from_hash(obj)
47
+ raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
48
+
49
+ obj.each do |k, v|
50
+ case k
51
+ when 'Status'
52
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
53
+
54
+ @status = v
55
+ when 'Message'
56
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
57
+
58
+ @message = v
59
+ when 'SnapshotFiles'
60
+ @snapshot_files = {}
61
+ if v.nil?
62
+ @snapshot_files = {}
63
+ else
64
+ v.each do |k1, v1|
65
+ if v1.nil?
66
+ @snapshot_files[k1] = []
67
+ else
68
+ @snapshot_files[k1] = Array.new(v1.length)
69
+ v1.each_with_index do |v2, i2|
70
+ @snapshot_files[k1][i2] = Comet::SearchResultFileInfo.new
71
+ @snapshot_files[k1][i2].from_hash(v2)
72
+ end
73
+ end
74
+ end
75
+ end
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
+ ret['Status'] = @status
86
+ ret['Message'] = @message
87
+ ret['SnapshotFiles'] = @snapshot_files
88
+ @unknown_json_fields.each do |k, v|
89
+ ret[k] = v
90
+ end
91
+ ret
92
+ end
93
+
94
+ # @return [Hash] The complete object as a Ruby hash
95
+ def to_h
96
+ to_hash
97
+ end
98
+
99
+ # @return [String] The complete object as a JSON string
100
+ def to_json(options = {})
101
+ to_hash.to_json(options)
102
+ end
103
+ end
104
+ end
@@ -27,6 +27,9 @@ module Comet
27
27
  # @type [Boolean] exclude_jobs_db
28
28
  attr_accessor :exclude_jobs_db
29
29
 
30
+ # @type [Boolean] include_server_logs
31
+ attr_accessor :include_server_logs
32
+
30
33
  # @type [String] restrict_to_single_org_id
31
34
  attr_accessor :restrict_to_single_org_id
32
35
 
@@ -80,6 +83,8 @@ module Comet
80
83
  @compression = v
81
84
  when 'ExcludeJobsDB'
82
85
  @exclude_jobs_db = v
86
+ when 'IncludeServerLogs'
87
+ @include_server_logs = v
83
88
  when 'RestrictToSingleOrgID'
84
89
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
85
90
 
@@ -102,6 +107,7 @@ module Comet
102
107
  ret['EncryptionKeyFormat'] = @encryption_key_format
103
108
  ret['Compression'] = @compression
104
109
  ret['ExcludeJobsDB'] = @exclude_jobs_db
110
+ ret['IncludeServerLogs'] = @include_server_logs
105
111
  unless @restrict_to_single_org_id.nil?
106
112
  ret['RestrictToSingleOrgID'] = @restrict_to_single_org_id
107
113
  end
@@ -36,6 +36,9 @@ module Comet
36
36
  # @type [Boolean] exclude_jobs_db
37
37
  attr_accessor :exclude_jobs_db
38
38
 
39
+ # @type [Boolean] include_server_logs
40
+ attr_accessor :include_server_logs
41
+
39
42
  # @type [String] restrict_to_single_org_id
40
43
  attr_accessor :restrict_to_single_org_id
41
44
 
@@ -109,6 +112,8 @@ module Comet
109
112
  @compression = v
110
113
  when 'ExcludeJobsDB'
111
114
  @exclude_jobs_db = v
115
+ when 'IncludeServerLogs'
116
+ @include_server_logs = v
112
117
  when 'RestrictToSingleOrgID'
113
118
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
114
119
 
@@ -134,6 +139,7 @@ module Comet
134
139
  ret['EncryptionKeyFormat'] = @encryption_key_format
135
140
  ret['Compression'] = @compression
136
141
  ret['ExcludeJobsDB'] = @exclude_jobs_db
142
+ ret['IncludeServerLogs'] = @include_server_logs
137
143
  unless @restrict_to_single_org_id.nil?
138
144
  ret['RestrictToSingleOrgID'] = @restrict_to_single_org_id
139
145
  end
@@ -27,6 +27,9 @@ module Comet
27
27
  # @type [String] top_color
28
28
  attr_accessor :top_color
29
29
 
30
+ # @type [String] accent_color
31
+ attr_accessor :accent_color
32
+
30
33
  # @type [Boolean] hide_news_area
31
34
  attr_accessor :hide_news_area
32
35
 
@@ -54,6 +57,7 @@ module Comet
54
57
  @product_name = ''
55
58
  @image_etag = ''
56
59
  @top_color = ''
60
+ @accent_color = ''
57
61
  @prune_logs_after_days = 0
58
62
  @expired_in_seconds = 0
59
63
  @unknown_json_fields = {}
@@ -90,6 +94,10 @@ module Comet
90
94
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
91
95
 
92
96
  @top_color = v
97
+ when 'AccentColor'
98
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
99
+
100
+ @accent_color = v
93
101
  when 'HideNewsArea'
94
102
  @hide_news_area = v
95
103
  when 'AllowUnauthenticatedDownloads'
@@ -118,6 +126,7 @@ module Comet
118
126
  ret['HasImage'] = @has_image
119
127
  ret['ImageEtag'] = @image_etag
120
128
  ret['TopColor'] = @top_color
129
+ ret['AccentColor'] = @accent_color
121
130
  ret['HideNewsArea'] = @hide_news_area
122
131
  ret['AllowUnauthenticatedDownloads'] = @allow_unauthenticated_downloads
123
132
  ret['AllowAuthenticatedDownloads'] = @allow_authenticated_downloads
@@ -12,6 +12,9 @@ module Comet
12
12
  # WebInterfaceBrandingProperties is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class WebInterfaceBrandingProperties
14
14
 
15
+ # @type [Number] branding_style_type
16
+ attr_accessor :branding_style_type
17
+
15
18
  # @type [String] brand_name
16
19
  attr_accessor :brand_name
17
20
 
@@ -21,6 +24,9 @@ module Comet
21
24
  # @type [String] top_color
22
25
  attr_accessor :top_color
23
26
 
27
+ # @type [String] accent_color
28
+ attr_accessor :accent_color
29
+
24
30
  # @type [String] favicon
25
31
  attr_accessor :favicon
26
32
 
@@ -35,9 +41,11 @@ module Comet
35
41
  end
36
42
 
37
43
  def clear
44
+ @branding_style_type = 0
38
45
  @brand_name = ''
39
46
  @logo_image = ''
40
47
  @top_color = ''
48
+ @accent_color = ''
41
49
  @favicon = ''
42
50
  @unknown_json_fields = {}
43
51
  end
@@ -55,6 +63,10 @@ module Comet
55
63
 
56
64
  obj.each do |k, v|
57
65
  case k
66
+ when 'BrandingStyleType'
67
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
68
+
69
+ @branding_style_type = v
58
70
  when 'BrandName'
59
71
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
60
72
 
@@ -67,6 +79,10 @@ module Comet
67
79
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
68
80
 
69
81
  @top_color = v
82
+ when 'AccentColor'
83
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
84
+
85
+ @accent_color = v
70
86
  when 'Favicon'
71
87
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
72
88
 
@@ -82,9 +98,11 @@ module Comet
82
98
  # @return [Hash] The complete object as a Ruby hash
83
99
  def to_hash
84
100
  ret = {}
101
+ ret['BrandingStyleType'] = @branding_style_type
85
102
  ret['BrandName'] = @brand_name
86
103
  ret['LogoImage'] = @logo_image
87
104
  ret['TopColor'] = @top_color
105
+ ret['AccentColor'] = @accent_color
88
106
  ret['Favicon'] = @favicon
89
107
  ret['HideNewsArea'] = @hide_news_area
90
108
  @unknown_json_fields.each do |k, v|
@@ -128,6 +128,8 @@ require_relative 'comet/models/s3destination_location'
128
128
  require_relative 'comet/models/s3generic_virtual_storage_role'
129
129
  require_relative 'comet/models/schedule_config'
130
130
  require_relative 'comet/models/search_clause'
131
+ require_relative 'comet/models/search_result_file_info'
132
+ require_relative 'comet/models/search_snapshots_response'
131
133
  require_relative 'comet/models/self_backup_export_options'
132
134
  require_relative 'comet/models/self_backup_options'
133
135
  require_relative 'comet/models/self_backup_statistics'
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.6.0
4
+ version: 2.7.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-03-23 00:00:00.000000000 Z
11
+ date: 2023-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -206,6 +206,8 @@ files:
206
206
  - lib/comet/models/s3generic_virtual_storage_role.rb
207
207
  - lib/comet/models/schedule_config.rb
208
208
  - lib/comet/models/search_clause.rb
209
+ - lib/comet/models/search_result_file_info.rb
210
+ - lib/comet/models/search_snapshots_response.rb
209
211
  - lib/comet/models/self_backup_export_options.rb
210
212
  - lib/comet/models/self_backup_options.rb
211
213
  - lib/comet/models/self_backup_statistics.rb