cloudsmith-api 1.61.3 → 1.120.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +51 -30
  4. data/build.json +1 -1
  5. data/docs/AuditLogApi.md +137 -0
  6. data/docs/FilesApi.md +13 -6
  7. data/docs/NamespaceAuditLog.md +23 -0
  8. data/docs/OrganizationGroupSync.md +12 -0
  9. data/docs/OrganizationInvite.md +16 -0
  10. data/docs/OrganizationTeam.md +12 -0
  11. data/docs/OrgsApi.md +713 -0
  12. data/docs/OrgsInvitesCreate.md +12 -0
  13. data/docs/OrgsInvitesExtend.md +11 -0
  14. data/docs/OrgsSamlgroupsyncCreate.md +12 -0
  15. data/docs/OrgsTeamsCreate.md +11 -0
  16. data/docs/OrgsTeamsPartialUpdate.md +11 -0
  17. data/docs/ReposApi.md +586 -0
  18. data/docs/ReposCreate.md +29 -1
  19. data/docs/ReposGpgCreate.md +9 -0
  20. data/docs/ReposPartialUpdate.md +28 -0
  21. data/docs/ReposRsaCreate.md +9 -0
  22. data/docs/Repository.md +28 -0
  23. data/docs/RepositoryAuditLog.md +20 -0
  24. data/docs/RepositoryCreate.md +29 -1
  25. data/docs/RepositoryGpgKey.md +14 -0
  26. data/docs/RepositoryPrivilegeList.md +8 -0
  27. data/docs/RepositoryRsaKey.md +13 -0
  28. data/lib/cloudsmith-api/api/audit_log_api.rb +147 -0
  29. data/lib/cloudsmith-api/api/files_api.rb +17 -7
  30. data/lib/cloudsmith-api/api/orgs_api.rb +671 -0
  31. data/lib/cloudsmith-api/api/repos_api.rb +566 -0
  32. data/lib/cloudsmith-api/models/alpine_package_upload.rb +34 -0
  33. data/lib/cloudsmith-api/models/conan_package_upload.rb +34 -0
  34. data/lib/cloudsmith-api/models/entitlements_create.rb +46 -0
  35. data/lib/cloudsmith-api/models/entitlements_partial_update.rb +46 -0
  36. data/lib/cloudsmith-api/models/entitlements_refresh.rb +46 -0
  37. data/lib/cloudsmith-api/models/files_abort.rb +34 -0
  38. data/lib/cloudsmith-api/models/files_complete.rb +34 -0
  39. data/lib/cloudsmith-api/models/files_create.rb +34 -0
  40. data/lib/cloudsmith-api/models/files_validate.rb +34 -0
  41. data/lib/cloudsmith-api/models/maven_package_upload.rb +34 -0
  42. data/lib/cloudsmith-api/models/namespace_audit_log.rb +395 -0
  43. data/lib/cloudsmith-api/models/organization_group_sync.rb +240 -0
  44. data/lib/cloudsmith-api/models/organization_invite.rb +299 -0
  45. data/lib/cloudsmith-api/models/organization_membership.rb +46 -0
  46. data/lib/cloudsmith-api/models/organization_team.rb +264 -0
  47. data/lib/cloudsmith-api/models/orgs_invites_create.rb +259 -0
  48. data/lib/cloudsmith-api/models/orgs_invites_extend.rb +249 -0
  49. data/lib/cloudsmith-api/models/orgs_samlgroupsync_create.rb +245 -0
  50. data/lib/cloudsmith-api/models/orgs_teams_create.rb +254 -0
  51. data/lib/cloudsmith-api/models/orgs_teams_partial_update.rb +249 -0
  52. data/lib/cloudsmith-api/models/package.rb +34 -0
  53. data/lib/cloudsmith-api/models/package_copy.rb +34 -0
  54. data/lib/cloudsmith-api/models/package_move.rb +34 -0
  55. data/lib/cloudsmith-api/models/packages_tag.rb +34 -0
  56. data/lib/cloudsmith-api/models/raw_package_upload.rb +34 -0
  57. data/lib/cloudsmith-api/models/repos_create.rb +403 -5
  58. data/lib/cloudsmith-api/models/repos_gpg_create.rb +200 -0
  59. data/lib/cloudsmith-api/models/repos_partial_update.rb +414 -4
  60. data/lib/cloudsmith-api/models/repos_rsa_create.rb +200 -0
  61. data/lib/cloudsmith-api/models/repository.rb +414 -4
  62. data/lib/cloudsmith-api/models/repository_audit_log.rb +355 -0
  63. data/lib/cloudsmith-api/models/repository_create.rb +403 -5
  64. data/lib/cloudsmith-api/models/repository_gpg_key.rb +250 -0
  65. data/lib/cloudsmith-api/models/repository_privilege_list.rb +185 -0
  66. data/lib/cloudsmith-api/models/repository_rsa_key.rb +235 -0
  67. data/lib/cloudsmith-api/models/repository_token.rb +46 -0
  68. data/lib/cloudsmith-api/models/repository_token_refresh.rb +46 -0
  69. data/lib/cloudsmith-api/models/vagrant_package_upload.rb +34 -0
  70. data/lib/cloudsmith-api/models/vulnerability_scan_results.rb +34 -0
  71. data/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +34 -0
  72. data/lib/cloudsmith-api/version.rb +1 -1
  73. data/lib/cloudsmith-api.rb +16 -0
  74. data/spec/api/audit_log_api_spec.rb +66 -0
  75. data/spec/api/files_api_spec.rb +4 -2
  76. data/spec/api/orgs_api_spec.rb +161 -0
  77. data/spec/api/repos_api_spec.rb +132 -0
  78. data/spec/models/alpine_package_upload_spec.rb +4 -0
  79. data/spec/models/conan_package_upload_spec.rb +4 -0
  80. data/spec/models/entitlements_create_spec.rb +8 -0
  81. data/spec/models/entitlements_partial_update_spec.rb +8 -0
  82. data/spec/models/entitlements_refresh_spec.rb +8 -0
  83. data/spec/models/files_abort_spec.rb +4 -0
  84. data/spec/models/files_complete_spec.rb +4 -0
  85. data/spec/models/files_create_spec.rb +4 -0
  86. data/spec/models/files_validate_spec.rb +4 -0
  87. data/spec/models/maven_package_upload_spec.rb +4 -0
  88. data/spec/models/namespace_audit_log_spec.rb +131 -0
  89. data/spec/models/organization_group_sync_spec.rb +65 -0
  90. data/spec/models/organization_invite_spec.rb +93 -0
  91. data/spec/models/organization_membership_spec.rb +8 -0
  92. data/spec/models/organization_team_spec.rb +69 -0
  93. data/spec/models/orgs_invites_create_spec.rb +69 -0
  94. data/spec/models/orgs_invites_extend_spec.rb +63 -0
  95. data/spec/models/orgs_samlgroupsync_create_spec.rb +65 -0
  96. data/spec/models/orgs_teams_create_spec.rb +63 -0
  97. data/spec/models/orgs_teams_partial_update_spec.rb +63 -0
  98. data/spec/models/package_copy_spec.rb +4 -0
  99. data/spec/models/package_move_spec.rb +4 -0
  100. data/spec/models/package_spec.rb +4 -0
  101. data/spec/models/packages_tag_spec.rb +4 -0
  102. data/spec/models/raw_package_upload_spec.rb +4 -0
  103. data/spec/models/repos_create_spec.rb +200 -0
  104. data/spec/models/repos_gpg_create_spec.rb +47 -0
  105. data/spec/models/repos_partial_update_spec.rb +204 -0
  106. data/spec/models/repos_rsa_create_spec.rb +47 -0
  107. data/spec/models/repository_audit_log_spec.rb +113 -0
  108. data/spec/models/repository_create_spec.rb +200 -0
  109. data/spec/models/repository_gpg_key_spec.rb +77 -0
  110. data/spec/models/repository_privilege_list_spec.rb +41 -0
  111. data/spec/models/repository_rsa_key_spec.rb +71 -0
  112. data/spec/models/repository_spec.rb +204 -0
  113. data/spec/models/repository_token_refresh_spec.rb +8 -0
  114. data/spec/models/repository_token_spec.rb +8 -0
  115. data/spec/models/vagrant_package_upload_spec.rb +4 -0
  116. data/spec/models/vulnerability_scan_results_list_spec.rb +4 -0
  117. data/spec/models/vulnerability_scan_results_spec.rb +4 -0
  118. data/vendor/bundle/ruby/2.6.0/bin/htmldiff +3 -3
  119. data/vendor/bundle/ruby/2.6.0/bin/ldiff +3 -3
  120. data/vendor/bundle/ruby/2.6.0/bin/multigem +3 -3
  121. data/vendor/bundle/ruby/2.6.0/bin/multiruby +3 -3
  122. data/vendor/bundle/ruby/2.6.0/bin/rake +2 -0
  123. data/vendor/bundle/ruby/2.6.0/bin/rspec +2 -0
  124. data/vendor/bundle/ruby/2.6.0/bin/unit_diff +3 -3
  125. data/vendor/bundle/ruby/2.6.0/bin/zentest +3 -3
  126. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.19/gem_make.out +4 -4
  127. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/ffi_c.so +0 -0
  128. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +5 -5
  129. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/mkmf.log +9 -9
  130. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/gem_make.out +4 -4
  131. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/json/ext/generator.so +0 -0
  132. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/json/ext/parser.so +0 -0
  133. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/mkmf.log +7 -7
  134. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/AbstractMemory.o +0 -0
  135. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ArrayType.o +0 -0
  136. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Buffer.o +0 -0
  137. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Call.o +0 -0
  138. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ClosurePool.o +0 -0
  139. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/DynamicLibrary.o +0 -0
  140. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Function.o +0 -0
  141. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/FunctionInfo.o +0 -0
  142. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/LastError.o +0 -0
  143. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/LongDouble.o +0 -0
  144. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +3 -3
  145. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MappedType.o +0 -0
  146. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MemoryPointer.o +0 -0
  147. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MethodHandle.o +0 -0
  148. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Platform.o +0 -0
  149. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Pointer.o +0 -0
  150. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Struct.o +0 -0
  151. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/StructByValue.o +0 -0
  152. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/StructLayout.o +0 -0
  153. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Thread.o +0 -0
  154. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Type.o +0 -0
  155. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Types.o +0 -0
  156. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Variadic.o +0 -0
  157. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ffi.o +0 -0
  158. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ffi_c.so +0 -0
  159. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi_c.so +0 -0
  160. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/Makefile +3 -3
  161. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/Makefile +3 -3
  162. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/generator.o +0 -0
  163. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/generator.so +0 -0
  164. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/Makefile +3 -3
  165. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.o +0 -0
  166. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.so +0 -0
  167. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/ext/generator.so +0 -0
  168. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/ext/parser.so +0 -0
  169. data/vendor/bundle/ruby/2.6.0/specifications/ZenTest-4.12.1.gemspec +6 -9
  170. data/vendor/bundle/ruby/2.6.0/specifications/addressable-2.8.0.gemspec +6 -9
  171. data/vendor/bundle/ruby/2.6.0/specifications/autotest-4.4.6.gemspec +8 -13
  172. data/vendor/bundle/ruby/2.6.0/specifications/autotest-fsevent-0.2.19.gemspec +8 -13
  173. data/vendor/bundle/ruby/2.6.0/specifications/autotest-growl-0.2.16.gemspec +7 -11
  174. data/vendor/bundle/ruby/2.6.0/specifications/autotest-rails-pure-4.1.2.gemspec +2 -2
  175. data/vendor/bundle/ruby/2.6.0/specifications/crack-0.4.5.gemspec +5 -7
  176. data/vendor/bundle/ruby/2.6.0/specifications/diff-lcs-1.5.0.gemspec +12 -21
  177. data/vendor/bundle/ruby/2.6.0/specifications/ethon-0.15.0.gemspec +5 -7
  178. data/vendor/bundle/ruby/2.6.0/specifications/ffi-1.15.5.gemspec +8 -13
  179. data/vendor/bundle/ruby/2.6.0/specifications/hashdiff-1.0.1.gemspec +9 -15
  180. data/vendor/bundle/ruby/2.6.0/specifications/json-2.6.2.gemspec +0 -0
  181. data/vendor/bundle/ruby/2.6.0/specifications/public_suffix-4.0.7.gemspec +2 -2
  182. data/vendor/bundle/ruby/2.6.0/specifications/rake-12.3.3.gemspec +9 -15
  183. data/vendor/bundle/ruby/2.6.0/specifications/rexml-3.2.5.gemspec +7 -11
  184. data/vendor/bundle/ruby/2.6.0/specifications/rspec-3.11.0.gemspec +7 -11
  185. data/vendor/bundle/ruby/2.6.0/specifications/rspec-core-3.11.0.gemspec +13 -23
  186. data/vendor/bundle/ruby/2.6.0/specifications/rspec-expectations-3.11.0.gemspec +10 -17
  187. data/vendor/bundle/ruby/2.6.0/specifications/rspec-mocks-3.11.1.gemspec +10 -17
  188. data/vendor/bundle/ruby/2.6.0/specifications/rspec-support-3.11.0.gemspec +6 -9
  189. data/vendor/bundle/ruby/2.6.0/specifications/sys-uname-1.2.2.gemspec +7 -11
  190. data/vendor/bundle/ruby/2.6.0/specifications/typhoeus-1.4.0.gemspec +5 -7
  191. data/vendor/bundle/ruby/2.6.0/specifications/vcr-3.0.3.gemspec +26 -49
  192. data/vendor/bundle/ruby/2.6.0/specifications/webmock-1.24.6.gemspec +19 -35
  193. metadata +85 -21
@@ -0,0 +1,200 @@
1
+ =begin
2
+ #Cloudsmith API
3
+
4
+ #The API to the Cloudsmith Service
5
+
6
+ OpenAPI spec version: v1
7
+ Contact: support@cloudsmith.io
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.26
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudsmithApi
16
+ class ReposRsaCreate
17
+ # The RSA passphrase used for signing.
18
+ attr_accessor :rsa_passphrase
19
+
20
+ # The RSA private key.
21
+ attr_accessor :rsa_private_key
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'rsa_passphrase' => :'rsa_passphrase',
27
+ :'rsa_private_key' => :'rsa_private_key'
28
+ }
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.swagger_types
33
+ {
34
+ :'rsa_passphrase' => :'String',
35
+ :'rsa_private_key' => :'String'
36
+ }
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ return unless attributes.is_a?(Hash)
43
+
44
+ # convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
+
47
+ if attributes.has_key?(:'rsa_passphrase')
48
+ self.rsa_passphrase = attributes[:'rsa_passphrase']
49
+ end
50
+
51
+ if attributes.has_key?(:'rsa_private_key')
52
+ self.rsa_private_key = attributes[:'rsa_private_key']
53
+ end
54
+ end
55
+
56
+ # Show invalid properties with the reasons. Usually used together with valid?
57
+ # @return Array for valid properties with the reasons
58
+ def list_invalid_properties
59
+ invalid_properties = Array.new
60
+ if @rsa_private_key.nil?
61
+ invalid_properties.push('invalid value for "rsa_private_key", rsa_private_key cannot be nil.')
62
+ end
63
+
64
+ invalid_properties
65
+ end
66
+
67
+ # Check to see if the all the properties in the model are valid
68
+ # @return true if the model is valid
69
+ def valid?
70
+ return false if @rsa_private_key.nil?
71
+ true
72
+ end
73
+
74
+ # Checks equality by comparing each attribute.
75
+ # @param [Object] Object to be compared
76
+ def ==(o)
77
+ return true if self.equal?(o)
78
+ self.class == o.class &&
79
+ rsa_passphrase == o.rsa_passphrase &&
80
+ rsa_private_key == o.rsa_private_key
81
+ end
82
+
83
+ # @see the `==` method
84
+ # @param [Object] Object to be compared
85
+ def eql?(o)
86
+ self == o
87
+ end
88
+
89
+ # Calculates hash code according to all attributes.
90
+ # @return [Fixnum] Hash code
91
+ def hash
92
+ [rsa_passphrase, rsa_private_key].hash
93
+ end
94
+
95
+ # Builds the object from hash
96
+ # @param [Hash] attributes Model attributes in the form of hash
97
+ # @return [Object] Returns the model itself
98
+ def build_from_hash(attributes)
99
+ return nil unless attributes.is_a?(Hash)
100
+ self.class.swagger_types.each_pair do |key, type|
101
+ if type =~ /\AArray<(.*)>/i
102
+ # check to ensure the input is an array given that the attribute
103
+ # is documented as an array but the input is not
104
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
105
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
106
+ end
107
+ elsif !attributes[self.class.attribute_map[key]].nil?
108
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
109
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
110
+ end
111
+
112
+ self
113
+ end
114
+
115
+ # Deserializes the data based on type
116
+ # @param string type Data type
117
+ # @param string value Value to be deserialized
118
+ # @return [Object] Deserialized data
119
+ def _deserialize(type, value)
120
+ case type.to_sym
121
+ when :DateTime
122
+ DateTime.parse(value)
123
+ when :Date
124
+ Date.parse(value)
125
+ when :String
126
+ value.to_s
127
+ when :Integer
128
+ value.to_i
129
+ when :Float
130
+ value.to_f
131
+ when :BOOLEAN
132
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
133
+ true
134
+ else
135
+ false
136
+ end
137
+ when :Object
138
+ # generic object (usually a Hash), return directly
139
+ value
140
+ when /\AArray<(?<inner_type>.+)>\z/
141
+ inner_type = Regexp.last_match[:inner_type]
142
+ value.map { |v| _deserialize(inner_type, v) }
143
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
144
+ k_type = Regexp.last_match[:k_type]
145
+ v_type = Regexp.last_match[:v_type]
146
+ {}.tap do |hash|
147
+ value.each do |k, v|
148
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
149
+ end
150
+ end
151
+ else # model
152
+ temp_model = CloudsmithApi.const_get(type).new
153
+ temp_model.build_from_hash(value)
154
+ end
155
+ end
156
+
157
+ # Returns the string representation of the object
158
+ # @return [String] String presentation of the object
159
+ def to_s
160
+ to_hash.to_s
161
+ end
162
+
163
+ # to_body is an alias to to_hash (backward compatibility)
164
+ # @return [Hash] Returns the object in the form of hash
165
+ def to_body
166
+ to_hash
167
+ end
168
+
169
+ # Returns the object in the form of hash
170
+ # @return [Hash] Returns the object in the form of hash
171
+ def to_hash
172
+ hash = {}
173
+ self.class.attribute_map.each_pair do |attr, param|
174
+ value = self.send(attr)
175
+ next if value.nil?
176
+ hash[param] = _to_hash(value)
177
+ end
178
+ hash
179
+ end
180
+
181
+ # Outputs non-array value in the form of hash
182
+ # For object, use to_hash. Otherwise, just return the value
183
+ # @param [Object] value Any valid value
184
+ # @return [Hash] Returns the value in the form of hash
185
+ def _to_hash(value)
186
+ if value.is_a?(Array)
187
+ value.compact.map { |v| _to_hash(v) }
188
+ elsif value.is_a?(Hash)
189
+ {}.tap do |hash|
190
+ value.each { |k, v| hash[k] = _to_hash(v) }
191
+ end
192
+ elsif value.respond_to? :to_hash
193
+ value.to_hash
194
+ else
195
+ value
196
+ end
197
+ end
198
+
199
+ end
200
+ end