comet_backup_ruby_sdk 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +25 -0
  3. data/Gemfile +15 -0
  4. data/LICENSE +7 -0
  5. data/README.md +81 -0
  6. data/Rakefile +22 -0
  7. data/comet_backup_ruby_sdk.gemspec +35 -0
  8. data/lib/comet/api_response_error.rb +27 -0
  9. data/lib/comet/comet_server.rb +2926 -0
  10. data/lib/comet/definitions.rb +550 -0
  11. data/lib/comet/models/add_bucket_response_message.rb +92 -0
  12. data/lib/comet/models/admin_account_properties_response.rb +76 -0
  13. data/lib/comet/models/admin_resource_response.rb +84 -0
  14. data/lib/comet/models/admin_security_options.rb +139 -0
  15. data/lib/comet/models/admin_u2fregistration.rb +84 -0
  16. data/lib/comet/models/admin_user_permissions.rb +102 -0
  17. data/lib/comet/models/available_download.rb +84 -0
  18. data/lib/comet/models/azure_destination_location.rb +102 -0
  19. data/lib/comet/models/b2destination_location.rb +110 -0
  20. data/lib/comet/models/b2storage_extra_info.rb +77 -0
  21. data/lib/comet/models/b2transaction_totals.rb +80 -0
  22. data/lib/comet/models/backup_job_advanced_options.rb +98 -0
  23. data/lib/comet/models/backup_job_detail.rb +199 -0
  24. data/lib/comet/models/backup_job_progress.rb +92 -0
  25. data/lib/comet/models/backup_rule_config.rb +188 -0
  26. data/lib/comet/models/backup_rule_event_triggers.rb +78 -0
  27. data/lib/comet/models/branding_options.rb +283 -0
  28. data/lib/comet/models/branding_properties.rb +245 -0
  29. data/lib/comet/models/browse_disk_drives_response.rb +91 -0
  30. data/lib/comet/models/browse_edbresponse.rb +91 -0
  31. data/lib/comet/models/browse_hvresponse.rb +91 -0
  32. data/lib/comet/models/browse_vssresponse.rb +91 -0
  33. data/lib/comet/models/bucket_properties.rb +89 -0
  34. data/lib/comet/models/bucket_usage_info.rb +91 -0
  35. data/lib/comet/models/comet_apiresponse_message.rb +76 -0
  36. data/lib/comet/models/comet_destination_location.rb +86 -0
  37. data/lib/comet/models/constellation_check_report.rb +89 -0
  38. data/lib/comet/models/constellation_stats.rb +86 -0
  39. data/lib/comet/models/constellation_status_apiresponse.rb +109 -0
  40. data/lib/comet/models/content_measurement.rb +89 -0
  41. data/lib/comet/models/content_measurement_component.rb +84 -0
  42. data/lib/comet/models/create_group_policy_response.rb +84 -0
  43. data/lib/comet/models/default_email_report_policy.rb +83 -0
  44. data/lib/comet/models/destination_config.rb +465 -0
  45. data/lib/comet/models/destination_location.rb +365 -0
  46. data/lib/comet/models/destination_statistics.rb +102 -0
  47. data/lib/comet/models/device_config.rb +96 -0
  48. data/lib/comet/models/disk_drive.rb +153 -0
  49. data/lib/comet/models/dispatcher_admin_sources_response.rb +92 -0
  50. data/lib/comet/models/dispatcher_stored_objects_response.rb +91 -0
  51. data/lib/comet/models/dispatcher_vault_snapshots_response.rb +91 -0
  52. data/lib/comet/models/edbfile_info.rb +92 -0
  53. data/lib/comet/models/email_options.rb +140 -0
  54. data/lib/comet/models/email_report_config.rb +90 -0
  55. data/lib/comet/models/email_report_generated_preview.rb +100 -0
  56. data/lib/comet/models/extra_file_exclusion.rb +82 -0
  57. data/lib/comet/models/ftpdestination_location.rb +124 -0
  58. data/lib/comet/models/get_group_policy_response.rb +91 -0
  59. data/lib/comet/models/get_profile_and_hash_response_message.rb +91 -0
  60. data/lib/comet/models/get_profile_hash_response_message.rb +84 -0
  61. data/lib/comet/models/group_policy.rb +83 -0
  62. data/lib/comet/models/hyper_vmachine_info.rb +78 -0
  63. data/lib/comet/models/live_user_connection.rb +125 -0
  64. data/lib/comet/models/local_destination_location.rb +92 -0
  65. data/lib/comet/models/mac_oscode_sign_properties.rb +113 -0
  66. data/lib/comet/models/mongo_dbconnection.rb +211 -0
  67. data/lib/comet/models/new_bucket_detail.rb +78 -0
  68. data/lib/comet/models/news_entry.rb +76 -0
  69. data/lib/comet/models/osinfo.rb +92 -0
  70. data/lib/comet/models/partition.rb +148 -0
  71. data/lib/comet/models/private_branding_properties.rb +185 -0
  72. data/lib/comet/models/protected_item_engine_type_policy.rb +84 -0
  73. data/lib/comet/models/public_branding_properties.rb +122 -0
  74. data/lib/comet/models/remote_server_address.rb +135 -0
  75. data/lib/comet/models/remote_storage_option.rb +147 -0
  76. data/lib/comet/models/replicator_state_apiresponse.rb +138 -0
  77. data/lib/comet/models/request_storage_vault_response_message.rb +84 -0
  78. data/lib/comet/models/restore_job_advanced_options.rb +104 -0
  79. data/lib/comet/models/retention_policy.rb +83 -0
  80. data/lib/comet/models/retention_range.rb +110 -0
  81. data/lib/comet/models/s3destination_location.rb +114 -0
  82. data/lib/comet/models/schedule_config.rb +82 -0
  83. data/lib/comet/models/search_clause.rb +111 -0
  84. data/lib/comet/models/server_config_options_branding_fragment.rb +69 -0
  85. data/lib/comet/models/server_config_options_software_build_role_fragment.rb +69 -0
  86. data/lib/comet/models/server_meta_version_info.rb +208 -0
  87. data/lib/comet/models/session_key_regenerated_response.rb +92 -0
  88. data/lib/comet/models/sftpdestination_location.rb +122 -0
  89. data/lib/comet/models/size_measurement.rb +80 -0
  90. data/lib/comet/models/software_build_role_options.rb +74 -0
  91. data/lib/comet/models/software_update_news_response.rb +102 -0
  92. data/lib/comet/models/source_basic_info.rb +93 -0
  93. data/lib/comet/models/source_config.rb +172 -0
  94. data/lib/comet/models/source_statistics.rb +69 -0
  95. data/lib/comet/models/spanned_destination_location.rb +77 -0
  96. data/lib/comet/models/spanned_storage_extra_info.rb +77 -0
  97. data/lib/comet/models/sshconnection.rb +114 -0
  98. data/lib/comet/models/stat_result.rb +86 -0
  99. data/lib/comet/models/storage_free_space_info.rb +98 -0
  100. data/lib/comet/models/storage_vault_provider_policy.rb +82 -0
  101. data/lib/comet/models/stored_object.rb +130 -0
  102. data/lib/comet/models/streamable_event.rb +74 -0
  103. data/lib/comet/models/swift_destination_location.rb +192 -0
  104. data/lib/comet/models/test_response.rb +82 -0
  105. data/lib/comet/models/totp_regenerated_response.rb +100 -0
  106. data/lib/comet/models/u2fregister_request.rb +78 -0
  107. data/lib/comet/models/u2fregistered_key.rb +86 -0
  108. data/lib/comet/models/u2fregistration_challenge_response.rb +122 -0
  109. data/lib/comet/models/u2fsign_request.rb +101 -0
  110. data/lib/comet/models/u2fsign_response.rb +94 -0
  111. data/lib/comet/models/uninstall_config.rb +74 -0
  112. data/lib/comet/models/update_campaign_device_status.rb +68 -0
  113. data/lib/comet/models/update_campaign_options.rb +86 -0
  114. data/lib/comet/models/update_campaign_properties.rb +100 -0
  115. data/lib/comet/models/update_campaign_status.rb +115 -0
  116. data/lib/comet/models/update_campaign_status_device_entry.rb +84 -0
  117. data/lib/comet/models/user_custom_email_settings.rb +77 -0
  118. data/lib/comet/models/user_on_server.rb +76 -0
  119. data/lib/comet/models/user_policy.rb +304 -0
  120. data/lib/comet/models/user_profile_config.rb +300 -0
  121. data/lib/comet/models/user_profile_fragment.rb +70 -0
  122. data/lib/comet/models/vault_snapshot.rb +84 -0
  123. data/lib/comet/models/vsscomponent.rb +92 -0
  124. data/lib/comet/models/vsswriter_info.rb +85 -0
  125. data/lib/comet/models/web_interface_branding_properties.rb +100 -0
  126. data/lib/comet/models/webhook_option.rb +84 -0
  127. data/lib/comet/models/win_smbauth.rb +92 -0
  128. data/lib/comet/models/windows_code_sign_properties.rb +130 -0
  129. data/lib/comet_backup_ruby_sdk.rb +130 -0
  130. metadata +227 -0
@@ -0,0 +1,84 @@
1
+ #!/usr/bin/env ruby --enable-frozen-string-literal
2
+ #
3
+ # Copyright (c) 2020-2020 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
+ # ProtectedItemEngineTypePolicy is a typed class wrapper around the underlying Comet Server API data structure.
15
+ class ProtectedItemEngineTypePolicy
16
+
17
+ # @type [Boolean] should_restrict_engine_type_list
18
+ attr_accessor :should_restrict_engine_type_list
19
+
20
+ # @type [Array<String>] allowed_engine_type_when_restricted
21
+ attr_accessor :allowed_engine_type_when_restricted
22
+
23
+ # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
24
+ attr_accessor :unknown_json_fields
25
+
26
+ def initialize
27
+ @allowed_engine_type_when_restricted = []
28
+ @unknown_json_fields = {}
29
+ end
30
+
31
+ # @param [String] json_string The complete object in JSON format
32
+ def from_json(json_string)
33
+ raise TypeError 'expected string' unless json_string.is_a? String
34
+
35
+ from_hash(JSON.parse(json_string))
36
+ end
37
+
38
+ # @param [Hash] obj The complete object as a Ruby hash
39
+ def from_hash(obj)
40
+ raise TypeError 'expected hash' unless obj.is_a? Hash
41
+
42
+ obj.each do |k, v|
43
+ case k
44
+ when 'ShouldRestrictEngineTypeList'
45
+ @should_restrict_engine_type_list = v
46
+ when 'AllowedEngineTypeWhenRestricted'
47
+ if v.nil?
48
+ @allowed_engine_type_when_restricted = []
49
+ else
50
+ @allowed_engine_type_when_restricted = Array.new(v.length)
51
+ v.each_with_index do |v1, i1|
52
+ raise TypeError 'expected string' unless v1.is_a? String
53
+
54
+ @allowed_engine_type_when_restricted[i1] = v1
55
+ end
56
+ end
57
+ else
58
+ @unknown_json_fields[k] = v
59
+ end
60
+ end
61
+ end
62
+
63
+ # @return [Hash] The complete object as a Ruby hash
64
+ def to_hash
65
+ ret = {}
66
+ ret['ShouldRestrictEngineTypeList'] = @should_restrict_engine_type_list
67
+ ret['AllowedEngineTypeWhenRestricted'] = @allowed_engine_type_when_restricted
68
+ @unknown_json_fields.each do |k, v|
69
+ ret[k] = v
70
+ end
71
+ ret
72
+ end
73
+
74
+ # @return [Hash] The complete object as a Ruby hash
75
+ def to_h
76
+ to_hash
77
+ end
78
+
79
+ # @return [String] The complete object as a JSON string
80
+ def to_json(options = {})
81
+ to_hash.to_json(options)
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,122 @@
1
+ #!/usr/bin/env ruby --enable-frozen-string-literal
2
+ #
3
+ # Copyright (c) 2020-2020 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
+ # PublicBrandingProperties is a typed class wrapper around the underlying Comet Server API data structure.
15
+ class PublicBrandingProperties
16
+
17
+ # @type [String] product_name
18
+ attr_accessor :product_name
19
+
20
+ # @type [String] company_name
21
+ attr_accessor :company_name
22
+
23
+ # @type [String] help_url
24
+ attr_accessor :help_url
25
+
26
+ # @type [Boolean] help_is_popup
27
+ attr_accessor :help_is_popup
28
+
29
+ # @type [String] default_login_server_url
30
+ attr_accessor :default_login_server_url
31
+
32
+ # @type [String] tile_background_color
33
+ attr_accessor :tile_background_color
34
+
35
+ # @type [String] account_register_url
36
+ attr_accessor :account_register_url
37
+
38
+ # @type [Boolean] hide_background_logo
39
+ attr_accessor :hide_background_logo
40
+
41
+ # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
42
+ attr_accessor :unknown_json_fields
43
+
44
+ def initialize
45
+ @unknown_json_fields = {}
46
+ end
47
+
48
+ # @param [String] json_string The complete object in JSON format
49
+ def from_json(json_string)
50
+ raise TypeError 'expected string' unless json_string.is_a? String
51
+
52
+ from_hash(JSON.parse(json_string))
53
+ end
54
+
55
+ # @param [Hash] obj The complete object as a Ruby hash
56
+ def from_hash(obj)
57
+ raise TypeError 'expected hash' unless obj.is_a? Hash
58
+
59
+ obj.each do |k, v|
60
+ case k
61
+ when 'ProductName'
62
+ raise TypeError 'expected string' unless v.is_a? String
63
+
64
+ @product_name = v
65
+ when 'CompanyName'
66
+ raise TypeError 'expected string' unless v.is_a? String
67
+
68
+ @company_name = v
69
+ when 'HelpURL'
70
+ raise TypeError 'expected string' unless v.is_a? String
71
+
72
+ @help_url = v
73
+ when 'HelpIsPopup'
74
+ @help_is_popup = v
75
+ when 'DefaultLoginServerURL'
76
+ raise TypeError 'expected string' unless v.is_a? String
77
+
78
+ @default_login_server_url = v
79
+ when 'TileBackgroundColor'
80
+ raise TypeError 'expected string' unless v.is_a? String
81
+
82
+ @tile_background_color = v
83
+ when 'AccountRegisterURL'
84
+ raise TypeError 'expected string' unless v.is_a? String
85
+
86
+ @account_register_url = v
87
+ when 'HideBackgroundLogo'
88
+ @hide_background_logo = v
89
+ else
90
+ @unknown_json_fields[k] = v
91
+ end
92
+ end
93
+ end
94
+
95
+ # @return [Hash] The complete object as a Ruby hash
96
+ def to_hash
97
+ ret = {}
98
+ ret['ProductName'] = @product_name
99
+ ret['CompanyName'] = @company_name
100
+ ret['HelpURL'] = @help_url
101
+ ret['HelpIsPopup'] = @help_is_popup
102
+ ret['DefaultLoginServerURL'] = @default_login_server_url
103
+ ret['TileBackgroundColor'] = @tile_background_color
104
+ ret['AccountRegisterURL'] = @account_register_url
105
+ ret['HideBackgroundLogo'] = @hide_background_logo
106
+ @unknown_json_fields.each do |k, v|
107
+ ret[k] = v
108
+ end
109
+ ret
110
+ end
111
+
112
+ # @return [Hash] The complete object as a Ruby hash
113
+ def to_h
114
+ to_hash
115
+ end
116
+
117
+ # @return [String] The complete object as a JSON string
118
+ def to_json(options = {})
119
+ to_hash.to_json(options)
120
+ end
121
+ end
122
+ end
@@ -0,0 +1,135 @@
1
+ #!/usr/bin/env ruby --enable-frozen-string-literal
2
+ #
3
+ # Copyright (c) 2020-2020 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
+ # RemoteServerAddress is a typed class wrapper around the underlying Comet Server API data structure.
15
+ class RemoteServerAddress
16
+
17
+ # @type [String] type
18
+ attr_accessor :type
19
+
20
+ # @type [String] description
21
+ attr_accessor :description
22
+
23
+ # @type [String] remote_address
24
+ attr_accessor :remote_address
25
+
26
+ # @type [String] username
27
+ attr_accessor :username
28
+
29
+ # @type [String] password
30
+ attr_accessor :password
31
+
32
+ # @type [Comet::ExternalLDAPAuthenticationSourceSettings] ldap
33
+ attr_accessor :ldap
34
+
35
+ # @type [Comet::B2VirtualStorageRoleSettings] b2
36
+ attr_accessor :b2
37
+
38
+ # @type [Comet::WasabiVirtualStorageRoleSettings] wasabi
39
+ attr_accessor :wasabi
40
+
41
+ # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
42
+ attr_accessor :unknown_json_fields
43
+
44
+ def initialize
45
+ @unknown_json_fields = {}
46
+ end
47
+
48
+ # @param [String] json_string The complete object in JSON format
49
+ def from_json(json_string)
50
+ raise TypeError 'expected string' unless json_string.is_a? String
51
+
52
+ from_hash(JSON.parse(json_string))
53
+ end
54
+
55
+ # @param [Hash] obj The complete object as a Ruby hash
56
+ def from_hash(obj)
57
+ raise TypeError 'expected hash' unless obj.is_a? Hash
58
+
59
+ obj.each do |k, v|
60
+ case k
61
+ when 'Type'
62
+ raise TypeError 'expected string' unless v.is_a? String
63
+
64
+ @type = v
65
+ when 'Description'
66
+ raise TypeError 'expected string' unless v.is_a? String
67
+
68
+ @description = v
69
+ when 'RemoteAddress'
70
+ raise TypeError 'expected string' unless v.is_a? String
71
+
72
+ @remote_address = v
73
+ when 'Username'
74
+ raise TypeError 'expected string' unless v.is_a? String
75
+
76
+ @username = v
77
+ when 'Password'
78
+ raise TypeError 'expected string' unless v.is_a? String
79
+
80
+ @password = v
81
+ when 'LDAP'
82
+ @ldap = Comet::ExternalLDAPAuthenticationSourceSettings.new
83
+ @ldap.from_hash(v)
84
+ when 'B2'
85
+ @b2 = Comet::B2VirtualStorageRoleSettings.new
86
+ @b2.from_hash(v)
87
+ when 'Wasabi'
88
+ @wasabi = Comet::WasabiVirtualStorageRoleSettings.new
89
+ @wasabi.from_hash(v)
90
+ else
91
+ @unknown_json_fields[k] = v
92
+ end
93
+ end
94
+ end
95
+
96
+ # @return [Hash] The complete object as a Ruby hash
97
+ def to_hash
98
+ ret = {}
99
+ ret['Type'] = @type
100
+ ret['Description'] = @description
101
+ unless @remote_address.nil?
102
+ ret['RemoteAddress'] = @remote_address
103
+ end
104
+ unless @username.nil?
105
+ ret['Username'] = @username
106
+ end
107
+ unless @password.nil?
108
+ ret['Password'] = @password
109
+ end
110
+ unless @ldap.nil?
111
+ ret['LDAP'] = @ldap
112
+ end
113
+ unless @b2.nil?
114
+ ret['B2'] = @b2
115
+ end
116
+ unless @wasabi.nil?
117
+ ret['Wasabi'] = @wasabi
118
+ end
119
+ @unknown_json_fields.each do |k, v|
120
+ ret[k] = v
121
+ end
122
+ ret
123
+ end
124
+
125
+ # @return [Hash] The complete object as a Ruby hash
126
+ def to_h
127
+ to_hash
128
+ end
129
+
130
+ # @return [String] The complete object as a JSON string
131
+ def to_json(options = {})
132
+ to_hash.to_json(options)
133
+ end
134
+ end
135
+ end
@@ -0,0 +1,147 @@
1
+ #!/usr/bin/env ruby --enable-frozen-string-literal
2
+ #
3
+ # Copyright (c) 2020-2020 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
+ # RemoteStorageOption is a typed class wrapper around the underlying Comet Server API data structure.
15
+ class RemoteStorageOption
16
+
17
+ # @type [String] type
18
+ attr_accessor :type
19
+
20
+ # @type [String] description
21
+ attr_accessor :description
22
+
23
+ # @type [String] remote_address
24
+ attr_accessor :remote_address
25
+
26
+ # @type [String] username
27
+ attr_accessor :username
28
+
29
+ # @type [String] password
30
+ attr_accessor :password
31
+
32
+ # @type [Comet::ExternalLDAPAuthenticationSourceSettings] ldap
33
+ attr_accessor :ldap
34
+
35
+ # @type [Comet::B2VirtualStorageRoleSettings] b2
36
+ attr_accessor :b2
37
+
38
+ # @type [Comet::WasabiVirtualStorageRoleSettings] wasabi
39
+ attr_accessor :wasabi
40
+
41
+ # @type [Boolean] storage_limit_enabled
42
+ attr_accessor :storage_limit_enabled
43
+
44
+ # @type [Number] storage_limit_bytes
45
+ attr_accessor :storage_limit_bytes
46
+
47
+ # @type [Hash] Hidden storage to preserve future properties for non-destructive roundtrip operations
48
+ attr_accessor :unknown_json_fields
49
+
50
+ def initialize
51
+ @unknown_json_fields = {}
52
+ end
53
+
54
+ # @param [String] json_string The complete object in JSON format
55
+ def from_json(json_string)
56
+ raise TypeError 'expected string' unless json_string.is_a? String
57
+
58
+ from_hash(JSON.parse(json_string))
59
+ end
60
+
61
+ # @param [Hash] obj The complete object as a Ruby hash
62
+ def from_hash(obj)
63
+ raise TypeError 'expected hash' unless obj.is_a? Hash
64
+
65
+ obj.each do |k, v|
66
+ case k
67
+ when 'Type'
68
+ raise TypeError 'expected string' unless v.is_a? String
69
+
70
+ @type = v
71
+ when 'Description'
72
+ raise TypeError 'expected string' unless v.is_a? String
73
+
74
+ @description = v
75
+ when 'RemoteAddress'
76
+ raise TypeError 'expected string' unless v.is_a? String
77
+
78
+ @remote_address = v
79
+ when 'Username'
80
+ raise TypeError 'expected string' unless v.is_a? String
81
+
82
+ @username = v
83
+ when 'Password'
84
+ raise TypeError 'expected string' unless v.is_a? String
85
+
86
+ @password = v
87
+ when 'LDAP'
88
+ @ldap = Comet::ExternalLDAPAuthenticationSourceSettings.new
89
+ @ldap.from_hash(v)
90
+ when 'B2'
91
+ @b2 = Comet::B2VirtualStorageRoleSettings.new
92
+ @b2.from_hash(v)
93
+ when 'Wasabi'
94
+ @wasabi = Comet::WasabiVirtualStorageRoleSettings.new
95
+ @wasabi.from_hash(v)
96
+ when 'StorageLimitEnabled'
97
+ @storage_limit_enabled = v
98
+ when 'StorageLimitBytes'
99
+ @storage_limit_bytes = v
100
+ else
101
+ @unknown_json_fields[k] = v
102
+ end
103
+ end
104
+ end
105
+
106
+ # @return [Hash] The complete object as a Ruby hash
107
+ def to_hash
108
+ ret = {}
109
+ ret['Type'] = @type
110
+ ret['Description'] = @description
111
+ unless @remote_address.nil?
112
+ ret['RemoteAddress'] = @remote_address
113
+ end
114
+ unless @username.nil?
115
+ ret['Username'] = @username
116
+ end
117
+ unless @password.nil?
118
+ ret['Password'] = @password
119
+ end
120
+ unless @ldap.nil?
121
+ ret['LDAP'] = @ldap
122
+ end
123
+ unless @b2.nil?
124
+ ret['B2'] = @b2
125
+ end
126
+ unless @wasabi.nil?
127
+ ret['Wasabi'] = @wasabi
128
+ end
129
+ ret['StorageLimitEnabled'] = @storage_limit_enabled
130
+ ret['StorageLimitBytes'] = @storage_limit_bytes
131
+ @unknown_json_fields.each do |k, v|
132
+ ret[k] = v
133
+ end
134
+ ret
135
+ end
136
+
137
+ # @return [Hash] The complete object as a Ruby hash
138
+ def to_h
139
+ to_hash
140
+ end
141
+
142
+ # @return [String] The complete object as a JSON string
143
+ def to_json(options = {})
144
+ to_hash.to_json(options)
145
+ end
146
+ end
147
+ end