comet_backup_ruby_sdk 2.6.0 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/Gemfile.lock +1 -1
  4. data/comet_backup_ruby_sdk.gemspec +1 -1
  5. data/lib/comet/comet_server.rb +58 -0
  6. data/lib/comet/definitions.rb +512 -484
  7. data/lib/comet/models/add_bucket_response_message.rb +1 -0
  8. data/lib/comet/models/admin_resource_response.rb +1 -0
  9. data/lib/comet/models/azure_destination_location.rb +1 -0
  10. data/lib/comet/models/b2destination_location.rb +5 -0
  11. data/lib/comet/models/backup_job_advanced_options.rb +6 -0
  12. data/lib/comet/models/backup_job_detail.rb +14 -0
  13. data/lib/comet/models/backup_job_progress.rb +1 -0
  14. data/lib/comet/models/backup_rule_config.rb +13 -0
  15. data/lib/comet/models/backup_rule_event_triggers.rb +3 -0
  16. data/lib/comet/models/branding_options.rb +18 -0
  17. data/lib/comet/models/browse_disk_drives_response.rb +1 -0
  18. data/lib/comet/models/browse_edbresponse.rb +1 -0
  19. data/lib/comet/models/browse_hvresponse.rb +1 -0
  20. data/lib/comet/models/browse_office_365list_virtual_accounts_response.rb +1 -0
  21. data/lib/comet/models/browse_office_365objects_response.rb +1 -0
  22. data/lib/comet/models/browse_sqlserver_response.rb +1 -0
  23. data/lib/comet/models/browse_vssresponse.rb +1 -0
  24. data/lib/comet/models/bucket_usage_info.rb +2 -0
  25. data/lib/comet/models/comet_apiresponse_message.rb +1 -0
  26. data/lib/comet/models/constellation_status_apiresponse.rb +1 -0
  27. data/lib/comet/models/create_group_policy_response.rb +1 -0
  28. data/lib/comet/models/destination_config.rb +13 -0
  29. data/lib/comet/models/destination_location.rb +4 -0
  30. data/lib/comet/models/device_config.rb +4 -0
  31. data/lib/comet/models/dispatcher_admin_sources_response.rb +1 -0
  32. data/lib/comet/models/dispatcher_stored_objects_response.rb +1 -0
  33. data/lib/comet/models/dispatcher_vault_snapshots_response.rb +1 -0
  34. data/lib/comet/models/dispatcher_windisk_snapshot_response.rb +1 -0
  35. data/lib/comet/models/email_options.rb +1 -0
  36. data/lib/comet/models/email_report_config.rb +3 -0
  37. data/lib/comet/models/email_report_generated_preview.rb +1 -0
  38. data/lib/comet/models/extra_file_exclusion.rb +4 -0
  39. data/lib/comet/models/ftpdestination_location.rb +1 -0
  40. data/lib/comet/models/get_group_policy_response.rb +1 -0
  41. data/lib/comet/models/get_profile_and_hash_response_message.rb +4 -0
  42. data/lib/comet/models/get_profile_hash_response_message.rb +1 -0
  43. data/lib/comet/models/group_policy.rb +22 -0
  44. data/lib/comet/models/install_token_response.rb +1 -0
  45. data/lib/comet/models/job_entry.rb +2 -0
  46. data/lib/comet/models/live_user_connection.rb +11 -0
  47. data/lib/comet/models/mongo_dbconnection.rb +2 -0
  48. data/lib/comet/models/office_365object_info.rb +1 -0
  49. data/lib/comet/models/request_storage_vault_response_message.rb +1 -0
  50. data/lib/comet/models/restore_job_advanced_options.rb +18 -0
  51. data/lib/comet/models/retention_policy.rb +1 -0
  52. data/lib/comet/models/retention_range.rb +1 -0
  53. data/lib/comet/models/s3destination_location.rb +1 -0
  54. data/lib/comet/models/search_result_file_info.rb +136 -0
  55. data/lib/comet/models/search_snapshots_response.rb +105 -0
  56. data/lib/comet/models/self_backup_export_options.rb +6 -0
  57. data/lib/comet/models/self_backup_target.rb +6 -0
  58. data/lib/comet/models/server_config_options.rb +5 -0
  59. data/lib/comet/models/server_meta_branding_properties.rb +13 -0
  60. data/lib/comet/models/server_meta_version_info.rb +8 -0
  61. data/lib/comet/models/session_key_regenerated_response.rb +1 -0
  62. data/lib/comet/models/sftpdestination_location.rb +1 -0
  63. data/lib/comet/models/source_config.rb +51 -0
  64. data/lib/comet/models/sshconnection.rb +1 -0
  65. data/lib/comet/models/swift_destination_location.rb +7 -0
  66. data/lib/comet/models/test_response.rb +1 -0
  67. data/lib/comet/models/time_span.rb +2 -0
  68. data/lib/comet/models/totp_regenerated_response.rb +1 -0
  69. data/lib/comet/models/u2fregistration_challenge_response.rb +1 -0
  70. data/lib/comet/models/uninstall_config.rb +4 -0
  71. data/lib/comet/models/update_campaign_options.rb +3 -0
  72. data/lib/comet/models/update_campaign_properties.rb +3 -0
  73. data/lib/comet/models/update_campaign_status.rb +3 -0
  74. data/lib/comet/models/user_on_server.rb +2 -0
  75. data/lib/comet/models/user_profile_config.rb +36 -0
  76. data/lib/comet/models/vmdksnapshot_view_options.rb +4 -0
  77. data/lib/comet/models/web_authn_registration_challenge_response.rb +1 -0
  78. data/lib/comet/models/web_interface_branding_properties.rb +18 -0
  79. data/lib/comet/models/win_smbauth.rb +6 -0
  80. data/lib/comet_backup_ruby_sdk.rb +2 -0
  81. metadata +4 -2
@@ -21,9 +21,19 @@ module Comet
21
21
  # @type [Comet::UserPolicy] policy
22
22
  attr_accessor :policy
23
23
 
24
+ # DefaultUserPolicy marks that this UserPolicy should be applied to all new users. The Comet Server
25
+ # will ensure that only one policy can be set as default.
24
26
  # @type [Boolean] default_user_policy
25
27
  attr_accessor :default_user_policy
26
28
 
29
+ # Unix timestamp in seconds. May be zero for Policies created prior to Comet 23.3.3.
30
+ # @type [Number] created_date
31
+ attr_accessor :created_date
32
+
33
+ # Unix timestamp in seconds. May be zero for Policies created prior to Comet 23.3.3.
34
+ # @type [Number] modified_date
35
+ attr_accessor :modified_date
36
+
27
37
  # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
28
38
  attr_accessor :unknown_json_fields
29
39
 
@@ -35,6 +45,8 @@ module Comet
35
45
  @description = ''
36
46
  @organization_id = ''
37
47
  @policy = Comet::UserPolicy.new
48
+ @created_date = 0
49
+ @modified_date = 0
38
50
  @unknown_json_fields = {}
39
51
  end
40
52
 
@@ -64,6 +76,14 @@ module Comet
64
76
  @policy.from_hash(v)
65
77
  when 'DefaultUserPolicy'
66
78
  @default_user_policy = v
79
+ when 'CreatedDate'
80
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
81
+
82
+ @created_date = v
83
+ when 'ModifiedDate'
84
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
85
+
86
+ @modified_date = v
67
87
  else
68
88
  @unknown_json_fields[k] = v
69
89
  end
@@ -77,6 +97,8 @@ module Comet
77
97
  ret['OrganizationID'] = @organization_id
78
98
  ret['Policy'] = @policy
79
99
  ret['DefaultUserPolicy'] = @default_user_policy
100
+ ret['CreatedDate'] = @created_date
101
+ ret['ModifiedDate'] = @modified_date
80
102
  @unknown_json_fields.each do |k, v|
81
103
  ret[k] = v
82
104
  end
@@ -12,6 +12,7 @@ module Comet
12
12
  # InstallTokenResponse is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class InstallTokenResponse
14
14
 
15
+ # If the operation was successful, the status will be in the 200-299 range.
15
16
  # @type [Number] status
16
17
  attr_accessor :status
17
18
 
@@ -13,9 +13,11 @@ module Comet
13
13
  # JobEntry is a single entry within a job report.
14
14
  class JobEntry
15
15
 
16
+ # Unix timestamp in seconds
16
17
  # @type [Number] time
17
18
  attr_accessor :time
18
19
 
20
+ # One of the SEVERITY_ constants.
19
21
  # @type [String] severity
20
22
  attr_accessor :severity
21
23
 
@@ -18,24 +18,35 @@ module Comet
18
18
  # @type [String] device_id
19
19
  attr_accessor :device_id
20
20
 
21
+ # The Comet Backup software version that this live-connected device reports that it is running. It
22
+ # takes the format "MAJOR.MINOR.PATCH", such as "23.2.0". See the APPLICATION_VERSION constant for
23
+ # more information.
21
24
  # @type [String] reported_version
22
25
  attr_accessor :reported_version
23
26
 
27
+ # The operating system of the device. It is one of the PLATFORM_ constants; then a forwardslash (/);
28
+ # then the device's GOARCH.
24
29
  # @type [String] reported_platform
25
30
  attr_accessor :reported_platform
26
31
 
32
+ # The operating system of the device, in extended detail.
27
33
  # @type [Comet::OSInfo] reported_platform_version
28
34
  attr_accessor :reported_platform_version
29
35
 
36
+ # The reported timezone of the device, in IANA format.
30
37
  # @type [String] device_time_zone
31
38
  attr_accessor :device_time_zone
32
39
 
40
+ # The live-connected device's remote IP address, as seen from the Comet Server.
33
41
  # @type [String] ipaddress
34
42
  attr_accessor :ipaddress
35
43
 
44
+ # Unix timestamp, in seconds.
36
45
  # @type [Number] connection_time
37
46
  attr_accessor :connection_time
38
47
 
48
+ # The current state of the "Allow administrator to view my files" client-side option. If this option
49
+ # is refused, some live-connected actions will be refused by the device.
39
50
  # @type [Boolean] allows_filenames
40
51
  attr_accessor :allows_filenames
41
52
 
@@ -27,6 +27,8 @@ module Comet
27
27
  # @type [String] authentication_db
28
28
  attr_accessor :authentication_db
29
29
 
30
+ # Prior to Comet 22.12.3, must be a filesystem path to `mongo` (n.b. not `mongosh`). In Comet >=
31
+ # 22.12.3, not used.
30
32
  # @type [String] mongo_shell_path
31
33
  # @deprecated This member has been deprecated since Comet version 22.12.3
32
34
  attr_accessor :mongo_shell_path
@@ -21,6 +21,7 @@ module Comet
21
21
  # @type [String] type
22
22
  attr_accessor :type
23
23
 
24
+ # May be an email address or a SharePoint site URL
24
25
  # @type [String] value
25
26
  attr_accessor :value
26
27
 
@@ -12,6 +12,7 @@ module Comet
12
12
  # RequestStorageVaultResponseMessage is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class RequestStorageVaultResponseMessage
14
14
 
15
+ # If the operation was successful, the status will be in the 200-299 range.
15
16
  # @type [Number] status
16
17
  attr_accessor :status
17
18
 
@@ -15,54 +15,72 @@ module Comet
15
15
  # @type [Number] type
16
16
  attr_accessor :type
17
17
 
18
+ # For RESTORETYPE_FILE
18
19
  # @type [Boolean] overwrite_existing_files
19
20
  attr_accessor :overwrite_existing_files
20
21
 
22
+ # For RESTORETYPE_FILE. If set, OverwriteExistingFiles must be true
21
23
  # @type [Boolean] overwrite_if_newer
22
24
  attr_accessor :overwrite_if_newer
23
25
 
26
+ # For RESTORETYPE_FILE. If set, DestPath must be blank
24
27
  # @type [Boolean] dest_is_original_location
25
28
  attr_accessor :dest_is_original_location
26
29
 
30
+ # For RESTORETYPE_FILE or RESTORETYPE_PROCESS_xxx
27
31
  # @type [String] dest_path
28
32
  attr_accessor :dest_path
29
33
 
34
+ # For RESTORETYPE_WINDISK only. Must have one entry for each selected restore path
30
35
  # @type [Array<String>] exact_dest_paths
31
36
  attr_accessor :exact_dest_paths
32
37
 
38
+ # For RESTORETYPE_FILE_ARCHIVE or RESTORETYPE_PROCESS_ARCHIVE. Default 0 is *.tar, for backward
39
+ # compatibility
33
40
  # @type [Number] archive_format
34
41
  attr_accessor :archive_format
35
42
 
43
+ # For RESTORETYPE_OFFICE365_CLOUD.
36
44
  # @type [Comet::Office365Credential] office_365credential
37
45
  attr_accessor :office_365credential
38
46
 
47
+ # For RESTORETYPE_MYSQL
39
48
  # @type [String] username
40
49
  attr_accessor :username
41
50
 
51
+ # For RESTORETYPE_MYSQL
42
52
  # @type [String] password
43
53
  attr_accessor :password
44
54
 
55
+ # For RESTORETYPE_MYSQL
45
56
  # @type [String] host
46
57
  attr_accessor :host
47
58
 
59
+ # For RESTORETYPE_MYSQL
48
60
  # @type [String] port
49
61
  attr_accessor :port
50
62
 
63
+ # For RESTORETYPE_MYSQL
51
64
  # @type [Boolean] use_ssl
52
65
  attr_accessor :use_ssl
53
66
 
67
+ # For RESTORETYPE_MYSQL i.e.: Self signed certs
54
68
  # @type [Boolean] ssl_allow_invalid
55
69
  attr_accessor :ssl_allow_invalid
56
70
 
71
+ # For RESTORETYPE_MYSQL
57
72
  # @type [String] ssl_ca_file
58
73
  attr_accessor :ssl_ca_file
59
74
 
75
+ # For RESTORETYPE_MYSQL
60
76
  # @type [String] ssl_crt_file
61
77
  attr_accessor :ssl_crt_file
62
78
 
79
+ # For RESTORETYPE_MYSQL
63
80
  # @type [String] ssl_key_file
64
81
  attr_accessor :ssl_key_file
65
82
 
83
+ # For RESTORETYPE_MSSQL.
66
84
  # @type [Comet::MSSQLLoginArgs] ms_sql_connection
67
85
  attr_accessor :ms_sql_connection
68
86
 
@@ -12,6 +12,7 @@ module Comet
12
12
  # RetentionPolicy is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class RetentionPolicy
14
14
 
15
+ # One of the RETENTIONMODE_ constants
15
16
  # @type [Number] mode
16
17
  attr_accessor :mode
17
18
 
@@ -30,6 +30,7 @@ module Comet
30
30
  # @type [Number] months
31
31
  attr_accessor :months
32
32
 
33
+ # 0: Sunday, 6: Saturday
33
34
  # @type [Number] week_offset
34
35
  attr_accessor :week_offset
35
36
 
@@ -33,6 +33,7 @@ module Comet
33
33
  # @type [String] s3custom_region
34
34
  attr_accessor :s3custom_region
35
35
 
36
+ # If true, use legacy v2 signing. If false (default), use modern v4 signing
36
37
  # @type [Boolean] s3uses_v2signing
37
38
  attr_accessor :s3uses_v2signing
38
39
 
@@ -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,105 @@
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
+ # If the operation was successful, the status will be in the 200-299 range.
16
+ # @type [Number] status
17
+ attr_accessor :status
18
+
19
+ # @type [String] message
20
+ attr_accessor :message
21
+
22
+ # @type [Hash{String => Array<Comet::SearchResultFileInfo>}] snapshot_files
23
+ attr_accessor :snapshot_files
24
+
25
+ # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
26
+ attr_accessor :unknown_json_fields
27
+
28
+ def initialize
29
+ clear
30
+ end
31
+
32
+ def clear
33
+ @status = 0
34
+ @message = ''
35
+ @snapshot_files = {}
36
+ @unknown_json_fields = {}
37
+ end
38
+
39
+ # @param [String] json_string The complete object in JSON format
40
+ def from_json(json_string)
41
+ raise TypeError, "'json_string' expected String, got #{json_string.class}" unless json_string.is_a? String
42
+
43
+ from_hash(JSON.parse(json_string))
44
+ end
45
+
46
+ # @param [Hash] obj The complete object as a Ruby hash
47
+ def from_hash(obj)
48
+ raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
49
+
50
+ obj.each do |k, v|
51
+ case k
52
+ when 'Status'
53
+ raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
54
+
55
+ @status = v
56
+ when 'Message'
57
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
58
+
59
+ @message = v
60
+ when 'SnapshotFiles'
61
+ @snapshot_files = {}
62
+ if v.nil?
63
+ @snapshot_files = {}
64
+ else
65
+ v.each do |k1, v1|
66
+ if v1.nil?
67
+ @snapshot_files[k1] = []
68
+ else
69
+ @snapshot_files[k1] = Array.new(v1.length)
70
+ v1.each_with_index do |v2, i2|
71
+ @snapshot_files[k1][i2] = Comet::SearchResultFileInfo.new
72
+ @snapshot_files[k1][i2].from_hash(v2)
73
+ end
74
+ end
75
+ end
76
+ end
77
+ else
78
+ @unknown_json_fields[k] = v
79
+ end
80
+ end
81
+ end
82
+
83
+ # @return [Hash] The complete object as a Ruby hash
84
+ def to_hash
85
+ ret = {}
86
+ ret['Status'] = @status
87
+ ret['Message'] = @message
88
+ ret['SnapshotFiles'] = @snapshot_files
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
@@ -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
@@ -24,6 +24,11 @@ module Comet
24
24
  # @type [Comet::ConstellationRoleOptions] constellation_role
25
25
  attr_accessor :constellation_role
26
26
 
27
+ # This field is defined for compatibility with 17.x.x versions of Comet Server. Do not rely on this
28
+ # field. In Comet 23.2.x, if this field is defined, it is imported into the replacement
29
+ # 'ConstellationRole' field under the assumption that you are upgrading this Comet Server from a
30
+ # 17.x.x version. In Comet 23.3.x and later, this field is ignored and will not be respected during
31
+ # the import process.
27
32
  # @type [Comet::ConstellationRoleOptions] constellation_role__legacy
28
33
  attr_accessor :constellation_role__legacy
29
34
 
@@ -18,15 +18,22 @@ module Comet
18
18
  # @type [String] product_name
19
19
  attr_accessor :product_name
20
20
 
21
+ # If true, this Comet Server has an image configured for its main logo. You can access it from the
22
+ # /gen/logo.img endpoint. If false, this Comet Server has text configured for its main logo.
21
23
  # @type [Boolean] has_image
22
24
  attr_accessor :has_image
23
25
 
26
+ # A value that will change if the branding image (/gen/logo.img) changes. You can use this as a
27
+ # cache key.
24
28
  # @type [String] image_etag
25
29
  attr_accessor :image_etag
26
30
 
27
31
  # @type [String] top_color
28
32
  attr_accessor :top_color
29
33
 
34
+ # @type [String] accent_color
35
+ attr_accessor :accent_color
36
+
30
37
  # @type [Boolean] hide_news_area
31
38
  attr_accessor :hide_news_area
32
39
 
@@ -54,6 +61,7 @@ module Comet
54
61
  @product_name = ''
55
62
  @image_etag = ''
56
63
  @top_color = ''
64
+ @accent_color = ''
57
65
  @prune_logs_after_days = 0
58
66
  @expired_in_seconds = 0
59
67
  @unknown_json_fields = {}
@@ -90,6 +98,10 @@ module Comet
90
98
  raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
91
99
 
92
100
  @top_color = v
101
+ when 'AccentColor'
102
+ raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
103
+
104
+ @accent_color = v
93
105
  when 'HideNewsArea'
94
106
  @hide_news_area = v
95
107
  when 'AllowUnauthenticatedDownloads'
@@ -118,6 +130,7 @@ module Comet
118
130
  ret['HasImage'] = @has_image
119
131
  ret['ImageEtag'] = @image_etag
120
132
  ret['TopColor'] = @top_color
133
+ ret['AccentColor'] = @accent_color
121
134
  ret['HideNewsArea'] = @hide_news_area
122
135
  ret['AllowUnauthenticatedDownloads'] = @allow_unauthenticated_downloads
123
136
  ret['AllowAuthenticatedDownloads'] = @allow_authenticated_downloads
@@ -28,6 +28,7 @@ module Comet
28
28
  attr_accessor :software_build_role
29
29
 
30
30
  # @type [Boolean] constellation_role__legacy
31
+ # @deprecated This member has been deprecated since Comet version 18.2.0 "Overseer Role" was the old name for the Constellation Role. This field is a duplicate of ConstellationRole for backward compatibility with earlier API consumers.
31
32
  attr_accessor :constellation_role__legacy
32
33
 
33
34
  # @type [Boolean] constellation_role
@@ -36,15 +37,22 @@ module Comet
36
37
  # @type [Array<String>] experimental_options
37
38
  attr_accessor :experimental_options
38
39
 
40
+ # Unix timestamp, in seconds.
39
41
  # @type [Number] server_start_time
40
42
  attr_accessor :server_start_time
41
43
 
44
+ # A GUID that was randomly generated when this Comet Server started up. You can check this value to
45
+ # see if the Comet Server has restarted.
42
46
  # @type [String] server_start_hash
43
47
  attr_accessor :server_start_hash
44
48
 
49
+ # The current time on the Comet Server host machine. Unix timestamp, in seconds. You can check this
50
+ # value to see if clock drift is occuring.
45
51
  # @type [Number] current_time
46
52
  attr_accessor :current_time
47
53
 
54
+ # A hash derived from the Comet Server's serial number. You can check this value to see if two Comet
55
+ # Server endpoints point to an identical server.
48
56
  # @type [String] server_license_hash
49
57
  attr_accessor :server_license_hash
50
58
 
@@ -12,6 +12,7 @@ module Comet
12
12
  # SessionKeyRegeneratedResponse is a typed class wrapper around the underlying Comet Server API data structure.
13
13
  class SessionKeyRegeneratedResponse
14
14
 
15
+ # If the operation was successful, the status will be in the 200-299 range.
15
16
  # @type [Number] status
16
17
  attr_accessor :status
17
18
 
@@ -21,6 +21,7 @@ module Comet
21
21
  # @type [String] sftpremote_path
22
22
  attr_accessor :sftpremote_path
23
23
 
24
+ # One of the DESTINATION_SFTP_AUTHMODE_ constants
24
25
  # @type [Number] sftpauth_mode
25
26
  attr_accessor :sftpauth_mode
26
27