comet_backup_ruby_sdk 1.6.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +5 -0
- data/CHANGELOG.md +35 -0
- data/Gemfile +0 -0
- data/Gemfile.lock +3 -3
- data/LICENSE +0 -0
- data/README.md +1 -1
- data/RELEASING.md +4 -3
- data/Rakefile +0 -0
- data/comet_backup_ruby_sdk.gemspec +2 -2
- data/lib/comet/api_response_error.rb +0 -0
- data/lib/comet/comet_server.rb +140 -2
- data/lib/comet/definitions.rb +50 -4
- data/lib/comet/models/add_bucket_response_message.rb +0 -0
- data/lib/comet/models/admin_account_properties_response.rb +0 -0
- data/lib/comet/models/admin_email_options.rb +0 -0
- data/lib/comet/models/admin_resource_response.rb +0 -0
- data/lib/comet/models/admin_security_options.rb +0 -0
- data/lib/comet/models/admin_u2fregistration.rb +0 -0
- data/lib/comet/models/admin_user_permissions.rb +0 -0
- data/lib/comet/models/available_download.rb +0 -0
- data/lib/comet/models/azure_destination_location.rb +0 -0
- data/lib/comet/models/b2destination_location.rb +8 -0
- data/lib/comet/models/b2storage_extra_info.rb +0 -0
- data/lib/comet/models/b2transaction_totals.rb +0 -0
- data/lib/comet/models/b2virtual_storage_role_settings.rb +6 -0
- data/lib/comet/models/backup_job_advanced_options.rb +0 -0
- data/lib/comet/models/backup_job_detail.rb +0 -0
- data/lib/comet/models/backup_job_progress.rb +0 -0
- data/lib/comet/models/backup_rule_config.rb +0 -0
- data/lib/comet/models/backup_rule_event_triggers.rb +0 -0
- data/lib/comet/models/branding_options.rb +0 -0
- data/lib/comet/models/branding_properties.rb +0 -0
- data/lib/comet/models/browse_disk_drives_response.rb +0 -0
- data/lib/comet/models/browse_edbresponse.rb +0 -0
- data/lib/comet/models/browse_hvresponse.rb +0 -0
- data/lib/comet/models/browse_office_365objects_response.rb +0 -0
- data/lib/comet/models/browse_sqlserver_response.rb +0 -0
- data/lib/comet/models/browse_vssresponse.rb +0 -0
- data/lib/comet/models/bucket_properties.rb +0 -0
- data/lib/comet/models/bucket_usage_info.rb +0 -0
- data/lib/comet/models/comet_apiresponse_message.rb +0 -0
- data/lib/comet/models/comet_destination_location.rb +0 -0
- data/lib/comet/models/constellation_check_report.rb +0 -0
- data/lib/comet/models/constellation_stats.rb +0 -0
- data/lib/comet/models/constellation_status_apiresponse.rb +0 -0
- data/lib/comet/models/content_measurement.rb +0 -0
- data/lib/comet/models/content_measurement_component.rb +0 -0
- data/lib/comet/models/create_group_policy_response.rb +0 -0
- data/lib/comet/models/custom_remote_bucket_settings.rb +0 -0
- data/lib/comet/models/default_email_report_policy.rb +0 -0
- data/lib/comet/models/default_source_with_osrestriction.rb +0 -0
- data/lib/comet/models/destination_config.rb +0 -0
- data/lib/comet/models/destination_location.rb +0 -0
- data/lib/comet/models/destination_statistics.rb +0 -0
- data/lib/comet/models/device_config.rb +22 -0
- data/lib/comet/models/disk_drive.rb +0 -0
- data/lib/comet/models/dispatcher_admin_sources_response.rb +0 -0
- data/lib/comet/models/dispatcher_stored_objects_response.rb +0 -0
- data/lib/comet/models/dispatcher_vault_snapshots_response.rb +0 -0
- data/lib/comet/models/dispatcher_windisk_snapshot_response.rb +99 -0
- data/lib/comet/models/edbfile_info.rb +0 -0
- data/lib/comet/models/email_options.rb +0 -0
- data/lib/comet/models/email_report_config.rb +0 -0
- data/lib/comet/models/email_report_generated_preview.rb +25 -0
- data/lib/comet/models/external_ldapauthentication_source_settings.rb +0 -0
- data/lib/comet/models/extra_file_exclusion.rb +0 -0
- data/lib/comet/models/ftpdestination_location.rb +0 -0
- data/lib/comet/models/get_group_policy_response.rb +0 -0
- data/lib/comet/models/get_profile_and_hash_response_message.rb +0 -0
- data/lib/comet/models/get_profile_hash_response_message.rb +0 -0
- data/lib/comet/models/group_policy.rb +0 -0
- data/lib/comet/models/hyper_vmachine_info.rb +0 -0
- data/lib/comet/models/install_creds.rb +0 -0
- data/lib/comet/models/install_token.rb +0 -0
- data/lib/comet/models/install_token_response.rb +0 -0
- data/lib/comet/models/job_entry.rb +0 -0
- data/lib/comet/models/live_user_connection.rb +11 -0
- data/lib/comet/models/local_destination_location.rb +0 -0
- data/lib/comet/models/mac_oscode_sign_properties.rb +0 -0
- data/lib/comet/models/mongo_dbconnection.rb +0 -0
- data/lib/comet/models/mssqlconnection.rb +0 -0
- data/lib/comet/models/my_sqlconnection.rb +39 -0
- data/lib/comet/models/new_bucket_detail.rb +0 -0
- data/lib/comet/models/news_entry.rb +0 -0
- data/lib/comet/models/office_365connection.rb +8 -0
- data/lib/comet/models/office_365credential.rb +0 -0
- data/lib/comet/models/office_365custom_setting.rb +0 -0
- data/lib/comet/models/office_365object_info.rb +0 -0
- data/lib/comet/models/organization.rb +0 -0
- data/lib/comet/models/organization_response.rb +0 -0
- data/lib/comet/models/osinfo.rb +0 -0
- data/lib/comet/models/partition.rb +0 -0
- data/lib/comet/models/private_branding_properties.rb +0 -0
- data/lib/comet/models/protected_item_engine_type_policy.rb +0 -0
- data/lib/comet/models/public_branding_properties.rb +0 -0
- data/lib/comet/models/register_office_application_begin_response.rb +0 -0
- data/lib/comet/models/register_office_application_check_response.rb +0 -0
- data/lib/comet/models/remote_server_address.rb +0 -0
- data/lib/comet/models/remote_storage_option.rb +0 -0
- data/lib/comet/models/replicator_state_apiresponse.rb +0 -0
- data/lib/comet/models/request_storage_vault_response_message.rb +0 -0
- data/lib/comet/models/restore_job_advanced_options.rb +0 -0
- data/lib/comet/models/retention_policy.rb +0 -0
- data/lib/comet/models/retention_range.rb +0 -0
- data/lib/comet/models/s3destination_location.rb +0 -0
- data/lib/comet/models/schedule_config.rb +0 -0
- data/lib/comet/models/search_clause.rb +0 -0
- data/lib/comet/models/self_backup_statistics.rb +0 -0
- data/lib/comet/models/server_config_options_branding_fragment.rb +0 -0
- data/lib/comet/models/server_config_options_software_build_role_fragment.rb +0 -0
- data/lib/comet/models/server_meta_branding_properties.rb +9 -0
- data/lib/comet/models/server_meta_version_info.rb +0 -0
- data/lib/comet/models/session_key_regenerated_response.rb +0 -0
- data/lib/comet/models/sftpdestination_location.rb +0 -0
- data/lib/comet/models/size_measurement.rb +0 -0
- data/lib/comet/models/software_build_role_options.rb +0 -0
- data/lib/comet/models/software_update_news_response.rb +0 -0
- data/lib/comet/models/source_basic_info.rb +0 -0
- data/lib/comet/models/source_config.rb +0 -0
- data/lib/comet/models/source_include_pattern.rb +0 -0
- data/lib/comet/models/source_statistics.rb +0 -0
- data/lib/comet/models/spanned_destination_location.rb +0 -0
- data/lib/comet/models/spanned_storage_extra_info.rb +0 -0
- data/lib/comet/models/sshconnection.rb +0 -0
- data/lib/comet/models/stat_result.rb +0 -0
- data/lib/comet/models/storage_free_space_info.rb +0 -0
- data/lib/comet/models/storage_vault_provider_policy.rb +0 -0
- data/lib/comet/models/stored_object.rb +0 -0
- data/lib/comet/models/streamable_event.rb +0 -0
- data/lib/comet/models/swift_destination_location.rb +0 -0
- data/lib/comet/models/test_response.rb +0 -0
- data/lib/comet/models/totp_regenerated_response.rb +0 -0
- data/lib/comet/models/u2fregister_request.rb +0 -0
- data/lib/comet/models/u2fregistered_key.rb +0 -0
- data/lib/comet/models/u2fregistration_challenge_response.rb +0 -0
- data/lib/comet/models/u2fsign_request.rb +0 -0
- data/lib/comet/models/u2fsign_response.rb +0 -0
- data/lib/comet/models/uninstall_config.rb +0 -0
- data/lib/comet/models/update_campaign_device_status.rb +0 -0
- data/lib/comet/models/update_campaign_options.rb +0 -0
- data/lib/comet/models/update_campaign_properties.rb +0 -0
- data/lib/comet/models/update_campaign_status.rb +0 -0
- data/lib/comet/models/update_campaign_status_device_entry.rb +0 -0
- data/lib/comet/models/user_custom_email_settings.rb +0 -0
- data/lib/comet/models/user_on_server.rb +0 -0
- data/lib/comet/models/user_policy.rb +0 -0
- data/lib/comet/models/user_profile_config.rb +0 -0
- data/lib/comet/models/user_profile_fragment.rb +0 -0
- data/lib/comet/models/vault_snapshot.rb +0 -0
- data/lib/comet/models/vsscomponent.rb +0 -0
- data/lib/comet/models/vsswriter_info.rb +0 -0
- data/lib/comet/models/wasabi_virtual_storage_role_settings.rb +0 -0
- data/lib/comet/models/web_interface_branding_properties.rb +0 -0
- data/lib/comet/models/webhook_option.rb +16 -0
- data/lib/comet/models/win_smbauth.rb +0 -0
- data/lib/comet/models/windows_code_sign_properties.rb +0 -0
- data/lib/comet_backup_ruby_sdk.rb +4 -0
- metadata +10 -8
@@ -17,12 +17,18 @@ module Comet
|
|
17
17
|
# @type [String] friendly_name
|
18
18
|
attr_accessor :friendly_name
|
19
19
|
|
20
|
+
# @type [Number] registration_time
|
21
|
+
attr_accessor :registration_time
|
22
|
+
|
20
23
|
# @type [Comet::OSInfo] platform_version
|
21
24
|
attr_accessor :platform_version
|
22
25
|
|
23
26
|
# @type [Hash{String => Comet::SourceBasicInfo}] sources
|
24
27
|
attr_accessor :sources
|
25
28
|
|
29
|
+
# @type [String] device_timezone
|
30
|
+
attr_accessor :device_timezone
|
31
|
+
|
26
32
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
27
33
|
attr_accessor :unknown_json_fields
|
28
34
|
|
@@ -32,8 +38,10 @@ module Comet
|
|
32
38
|
|
33
39
|
def clear
|
34
40
|
@friendly_name = ''
|
41
|
+
@registration_time = 0
|
35
42
|
@platform_version = Comet::OSInfo.new
|
36
43
|
@sources = {}
|
44
|
+
@device_timezone = ''
|
37
45
|
@unknown_json_fields = {}
|
38
46
|
end
|
39
47
|
|
@@ -54,6 +62,10 @@ module Comet
|
|
54
62
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
55
63
|
|
56
64
|
@friendly_name = v
|
65
|
+
when 'RegistrationTime'
|
66
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
67
|
+
|
68
|
+
@registration_time = v
|
57
69
|
when 'PlatformVersion'
|
58
70
|
@platform_version = Comet::OSInfo.new
|
59
71
|
@platform_version.from_hash(v)
|
@@ -67,6 +79,10 @@ module Comet
|
|
67
79
|
@sources[k1].from_hash(v1)
|
68
80
|
end
|
69
81
|
end
|
82
|
+
when 'DeviceTimezone'
|
83
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
84
|
+
|
85
|
+
@device_timezone = v
|
70
86
|
else
|
71
87
|
@unknown_json_fields[k] = v
|
72
88
|
end
|
@@ -77,12 +93,18 @@ module Comet
|
|
77
93
|
def to_hash
|
78
94
|
ret = {}
|
79
95
|
ret['FriendlyName'] = @friendly_name
|
96
|
+
unless @registration_time.nil?
|
97
|
+
ret['RegistrationTime'] = @registration_time
|
98
|
+
end
|
80
99
|
unless @platform_version.nil?
|
81
100
|
ret['PlatformVersion'] = @platform_version
|
82
101
|
end
|
83
102
|
unless @sources.nil?
|
84
103
|
ret['Sources'] = @sources
|
85
104
|
end
|
105
|
+
unless @device_timezone.nil?
|
106
|
+
ret['DeviceTimezone'] = @device_timezone
|
107
|
+
end
|
86
108
|
@unknown_json_fields.each do |k, v|
|
87
109
|
ret[k] = v
|
88
110
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,99 @@
|
|
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
|
+
# DispatcherWindiskSnapshotResponse is a typed class wrapper around the underlying Comet Server API data structure.
|
15
|
+
class DispatcherWindiskSnapshotResponse
|
16
|
+
|
17
|
+
# @type [Number] status
|
18
|
+
attr_accessor :status
|
19
|
+
|
20
|
+
# @type [String] message
|
21
|
+
attr_accessor :message
|
22
|
+
|
23
|
+
# @type [Array<Comet::DiskDrive>] windisk_snapshot
|
24
|
+
attr_accessor :windisk_snapshot
|
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
|
+
@status = 0
|
35
|
+
@message = ''
|
36
|
+
@windisk_snapshot = []
|
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 'Status'
|
54
|
+
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
55
|
+
|
56
|
+
@status = v
|
57
|
+
when 'Message'
|
58
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
59
|
+
|
60
|
+
@message = v
|
61
|
+
when 'WindiskSnapshot'
|
62
|
+
if v.nil?
|
63
|
+
@windisk_snapshot = []
|
64
|
+
else
|
65
|
+
@windisk_snapshot = Array.new(v.length)
|
66
|
+
v.each_with_index do |v1, i1|
|
67
|
+
@windisk_snapshot[i1] = Comet::DiskDrive.new
|
68
|
+
@windisk_snapshot[i1].from_hash(v1)
|
69
|
+
end
|
70
|
+
end
|
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['Status'] = @status
|
81
|
+
ret['Message'] = @message
|
82
|
+
ret['WindiskSnapshot'] = @windisk_snapshot
|
83
|
+
@unknown_json_fields.each do |k, v|
|
84
|
+
ret[k] = v
|
85
|
+
end
|
86
|
+
ret
|
87
|
+
end
|
88
|
+
|
89
|
+
# @return [Hash] The complete object as a Ruby hash
|
90
|
+
def to_h
|
91
|
+
to_hash
|
92
|
+
end
|
93
|
+
|
94
|
+
# @return [String] The complete object as a JSON string
|
95
|
+
def to_json(options = {})
|
96
|
+
to_hash.to_json(options)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
@@ -20,6 +20,12 @@ module Comet
|
|
20
20
|
# @type [String] message
|
21
21
|
attr_accessor :message
|
22
22
|
|
23
|
+
# @type [String] from
|
24
|
+
attr_accessor :from
|
25
|
+
|
26
|
+
# @type [Array<String>] to
|
27
|
+
attr_accessor :to
|
28
|
+
|
23
29
|
# @type [String] email_subject
|
24
30
|
attr_accessor :email_subject
|
25
31
|
|
@@ -39,6 +45,8 @@ module Comet
|
|
39
45
|
def clear
|
40
46
|
@status = 0
|
41
47
|
@message = ''
|
48
|
+
@from = ''
|
49
|
+
@to = []
|
42
50
|
@email_subject = ''
|
43
51
|
@email_body_html = ''
|
44
52
|
@email_body_plaintext = ''
|
@@ -66,6 +74,21 @@ module Comet
|
|
66
74
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
67
75
|
|
68
76
|
@message = v
|
77
|
+
when 'From'
|
78
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
79
|
+
|
80
|
+
@from = v
|
81
|
+
when 'To'
|
82
|
+
if v.nil?
|
83
|
+
@to = []
|
84
|
+
else
|
85
|
+
@to = Array.new(v.length)
|
86
|
+
v.each_with_index do |v1, i1|
|
87
|
+
raise TypeError, "'v1' expected String, got #{v1.class}" unless v1.is_a? String
|
88
|
+
|
89
|
+
@to[i1] = v1
|
90
|
+
end
|
91
|
+
end
|
69
92
|
when 'EmailSubject'
|
70
93
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
71
94
|
|
@@ -89,6 +112,8 @@ module Comet
|
|
89
112
|
ret = {}
|
90
113
|
ret['Status'] = @status
|
91
114
|
ret['Message'] = @message
|
115
|
+
ret['From'] = @from
|
116
|
+
ret['To'] = @to
|
92
117
|
ret['EmailSubject'] = @email_subject
|
93
118
|
ret['EmailBodyHTML'] = @email_body_html
|
94
119
|
ret['EmailBodyPlaintext'] = @email_body_plaintext
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -29,6 +29,9 @@ module Comet
|
|
29
29
|
# @type [Comet::OSInfo] reported_platform_version
|
30
30
|
attr_accessor :reported_platform_version
|
31
31
|
|
32
|
+
# @type [String] device_time_zone
|
33
|
+
attr_accessor :device_time_zone
|
34
|
+
|
32
35
|
# @type [String] ipaddress
|
33
36
|
attr_accessor :ipaddress
|
34
37
|
|
@@ -51,6 +54,7 @@ module Comet
|
|
51
54
|
@reported_version = ''
|
52
55
|
@reported_platform = ''
|
53
56
|
@reported_platform_version = Comet::OSInfo.new
|
57
|
+
@device_time_zone = ''
|
54
58
|
@ipaddress = ''
|
55
59
|
@connection_time = 0
|
56
60
|
@unknown_json_fields = {}
|
@@ -88,6 +92,10 @@ module Comet
|
|
88
92
|
when 'ReportedPlatformVersion'
|
89
93
|
@reported_platform_version = Comet::OSInfo.new
|
90
94
|
@reported_platform_version.from_hash(v)
|
95
|
+
when 'DeviceTimeZone'
|
96
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
97
|
+
|
98
|
+
@device_time_zone = v
|
91
99
|
when 'IPAddress'
|
92
100
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
93
101
|
|
@@ -114,6 +122,9 @@ module Comet
|
|
114
122
|
unless @reported_platform_version.nil?
|
115
123
|
ret['ReportedPlatformVersion'] = @reported_platform_version
|
116
124
|
end
|
125
|
+
unless @device_time_zone.nil?
|
126
|
+
ret['DeviceTimeZone'] = @device_time_zone
|
127
|
+
end
|
117
128
|
unless @ipaddress.nil?
|
118
129
|
ret['IPAddress'] = @ipaddress
|
119
130
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -26,6 +26,21 @@ module Comet
|
|
26
26
|
# @type [String] password
|
27
27
|
attr_accessor :password
|
28
28
|
|
29
|
+
# @type [Boolean] use_tls
|
30
|
+
attr_accessor :use_tls
|
31
|
+
|
32
|
+
# @type [Boolean] tlsskip_verify
|
33
|
+
attr_accessor :tlsskip_verify
|
34
|
+
|
35
|
+
# @type [String] tlscustom_server_capath
|
36
|
+
attr_accessor :tlscustom_server_capath
|
37
|
+
|
38
|
+
# @type [String] tlscustom_client_crt_path
|
39
|
+
attr_accessor :tlscustom_client_crt_path
|
40
|
+
|
41
|
+
# @type [String] tlscustom_client_key_path
|
42
|
+
attr_accessor :tlscustom_client_key_path
|
43
|
+
|
29
44
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
30
45
|
attr_accessor :unknown_json_fields
|
31
46
|
|
@@ -38,6 +53,9 @@ module Comet
|
|
38
53
|
@port = ''
|
39
54
|
@username = ''
|
40
55
|
@password = ''
|
56
|
+
@tlscustom_server_capath = ''
|
57
|
+
@tlscustom_client_crt_path = ''
|
58
|
+
@tlscustom_client_key_path = ''
|
41
59
|
@unknown_json_fields = {}
|
42
60
|
end
|
43
61
|
|
@@ -70,6 +88,22 @@ module Comet
|
|
70
88
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
71
89
|
|
72
90
|
@password = v
|
91
|
+
when 'UseTLS'
|
92
|
+
@use_tls = v
|
93
|
+
when 'TLSSkipVerify'
|
94
|
+
@tlsskip_verify = v
|
95
|
+
when 'TLSCustomServerCAPath'
|
96
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
97
|
+
|
98
|
+
@tlscustom_server_capath = v
|
99
|
+
when 'TLSCustomClientCrtPath'
|
100
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
101
|
+
|
102
|
+
@tlscustom_client_crt_path = v
|
103
|
+
when 'TLSCustomClientKeyPath'
|
104
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
105
|
+
|
106
|
+
@tlscustom_client_key_path = v
|
73
107
|
else
|
74
108
|
@unknown_json_fields[k] = v
|
75
109
|
end
|
@@ -83,6 +117,11 @@ module Comet
|
|
83
117
|
ret['Port'] = @port
|
84
118
|
ret['Username'] = @username
|
85
119
|
ret['Password'] = @password
|
120
|
+
ret['UseTLS'] = @use_tls
|
121
|
+
ret['TLSSkipVerify'] = @tlsskip_verify
|
122
|
+
ret['TLSCustomServerCAPath'] = @tlscustom_server_capath
|
123
|
+
ret['TLSCustomClientCrtPath'] = @tlscustom_client_crt_path
|
124
|
+
ret['TLSCustomClientKeyPath'] = @tlscustom_client_key_path
|
86
125
|
@unknown_json_fields.each do |k, v|
|
87
126
|
ret[k] = v
|
88
127
|
end
|
File without changes
|
File without changes
|
@@ -29,6 +29,9 @@ module Comet
|
|
29
29
|
# @type [Array<String>] site_unique_members
|
30
30
|
attr_accessor :site_unique_members
|
31
31
|
|
32
|
+
# @type [Comet::Office365CustomSettingV2] custom_setting_v2
|
33
|
+
attr_accessor :custom_setting_v2
|
34
|
+
|
32
35
|
# @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
|
33
36
|
attr_accessor :unknown_json_fields
|
34
37
|
|
@@ -42,6 +45,7 @@ module Comet
|
|
42
45
|
@custom_setting = Comet::Office365CustomSetting.new
|
43
46
|
@mailbox_unique_members = []
|
44
47
|
@site_unique_members = []
|
48
|
+
@custom_setting_v2 = Comet::Office365CustomSettingV2.new
|
45
49
|
@unknown_json_fields = {}
|
46
50
|
end
|
47
51
|
|
@@ -90,6 +94,9 @@ module Comet
|
|
90
94
|
@site_unique_members[i1] = v1
|
91
95
|
end
|
92
96
|
end
|
97
|
+
when 'CustomSettingV2'
|
98
|
+
@custom_setting_v2 = Comet::Office365CustomSettingV2.new
|
99
|
+
@custom_setting_v2.from_hash(v)
|
93
100
|
else
|
94
101
|
@unknown_json_fields[k] = v
|
95
102
|
end
|
@@ -104,6 +111,7 @@ module Comet
|
|
104
111
|
ret['CustomSetting'] = @custom_setting
|
105
112
|
ret['MailboxUniqueMembers'] = @mailbox_unique_members
|
106
113
|
ret['SiteUniqueMembers'] = @site_unique_members
|
114
|
+
ret['CustomSettingV2'] = @custom_setting_v2
|
107
115
|
@unknown_json_fields.each do |k, v|
|
108
116
|
ret[k] = v
|
109
117
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/comet/models/osinfo.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -23,6 +23,9 @@ module Comet
|
|
23
23
|
# @type [Boolean] has_image
|
24
24
|
attr_accessor :has_image
|
25
25
|
|
26
|
+
# @type [String] image_etag
|
27
|
+
attr_accessor :image_etag
|
28
|
+
|
26
29
|
# @type [String] top_color
|
27
30
|
attr_accessor :top_color
|
28
31
|
|
@@ -51,6 +54,7 @@ module Comet
|
|
51
54
|
def clear
|
52
55
|
@brand_name = ''
|
53
56
|
@product_name = ''
|
57
|
+
@image_etag = ''
|
54
58
|
@top_color = ''
|
55
59
|
@prune_logs_after_days = 0
|
56
60
|
@expired_in_seconds = 0
|
@@ -80,6 +84,10 @@ module Comet
|
|
80
84
|
@product_name = v
|
81
85
|
when 'HasImage'
|
82
86
|
@has_image = v
|
87
|
+
when 'ImageEtag'
|
88
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
89
|
+
|
90
|
+
@image_etag = v
|
83
91
|
when 'TopColor'
|
84
92
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
85
93
|
|
@@ -110,6 +118,7 @@ module Comet
|
|
110
118
|
ret['BrandName'] = @brand_name
|
111
119
|
ret['ProductName'] = @product_name
|
112
120
|
ret['HasImage'] = @has_image
|
121
|
+
ret['ImageEtag'] = @image_etag
|
113
122
|
ret['TopColor'] = @top_color
|
114
123
|
ret['HideNewsArea'] = @hide_news_area
|
115
124
|
ret['AllowUnauthenticatedDownloads'] = @allow_unauthenticated_downloads
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|