cloudsmith-api 2.0.24 → 2.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (501) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +9 -7
  3. data/README.md +21 -5
  4. data/build.json +1 -1
  5. data/docs/AlpinePackageUpload.md +1 -0
  6. data/docs/AlpineUpstream.md +32 -0
  7. data/docs/AlpineUpstreamRequest.md +20 -0
  8. data/docs/AlpineUpstreamRequestPatch.md +20 -0
  9. data/docs/BulkActionApi.md +70 -0
  10. data/docs/CargoPackageUpload.md +1 -0
  11. data/docs/CargoUpstream.md +4 -4
  12. data/docs/CocoapodsPackageUpload.md +1 -0
  13. data/docs/ComposerPackageUpload.md +1 -0
  14. data/docs/ComposerUpstream.md +4 -4
  15. data/docs/ConanPackageUpload.md +1 -0
  16. data/docs/CondaPackageUpload.md +1 -0
  17. data/docs/CondaUpstream.md +4 -4
  18. data/docs/CranPackageUpload.md +1 -0
  19. data/docs/CranUpstream.md +4 -4
  20. data/docs/DartPackageUpload.md +1 -0
  21. data/docs/DartUpstream.md +4 -4
  22. data/docs/DebPackageUpload.md +1 -0
  23. data/docs/DebUpstream.md +4 -4
  24. data/docs/DockerPackageUpload.md +1 -0
  25. data/docs/DockerUpstream.md +2 -2
  26. data/docs/FormatSupportUpstream.md +1 -0
  27. data/docs/GenericPackageUpload.md +1 -0
  28. data/docs/GenericUpstream.md +4 -4
  29. data/docs/GoPackageUpload.md +1 -0
  30. data/docs/GoUpstream.md +4 -4
  31. data/docs/HelmPackageUpload.md +1 -0
  32. data/docs/HelmUpstream.md +4 -4
  33. data/docs/HexPackageUpload.md +1 -0
  34. data/docs/HexUpstream.md +4 -4
  35. data/docs/HuggingfacePackageUpload.md +1 -0
  36. data/docs/HuggingfaceUpstream.md +4 -4
  37. data/docs/LuarocksPackageUpload.md +1 -0
  38. data/docs/MavenPackageUpload.md +1 -0
  39. data/docs/MavenUpstream.md +4 -4
  40. data/docs/NpmPackageUpload.md +1 -0
  41. data/docs/NpmUpstream.md +5 -4
  42. data/docs/NpmUpstreamRequest.md +1 -0
  43. data/docs/NpmUpstreamRequestPatch.md +1 -0
  44. data/docs/NugetPackageUpload.md +1 -0
  45. data/docs/NugetUpstream.md +4 -4
  46. data/docs/OrganizationTeamMembers.md +1 -1
  47. data/docs/{OrganizationTeamMembership.md → OrganizationTeamServiceMember.md} +2 -1
  48. data/docs/P2PackageUpload.md +1 -0
  49. data/docs/Package.md +1 -0
  50. data/docs/PackageBulkAction.md +11 -0
  51. data/docs/PackageBulkActionResponse.md +10 -0
  52. data/docs/PackageCopy.md +1 -0
  53. data/docs/PackageMove.md +1 -0
  54. data/docs/PackageQuarantine.md +1 -0
  55. data/docs/PackageResync.md +1 -0
  56. data/docs/PackageTag.md +1 -0
  57. data/docs/PackagesApi.md +131 -0
  58. data/docs/PythonPackageUpload.md +1 -0
  59. data/docs/PythonUpstream.md +4 -4
  60. data/docs/RawPackageUpload.md +1 -0
  61. data/docs/ReposApi.md +406 -1
  62. data/docs/Repository.md +2 -0
  63. data/docs/RepositoryCreate.md +2 -0
  64. data/docs/RepositoryCreateRequest.md +1 -0
  65. data/docs/RepositoryRequestPatch.md +1 -0
  66. data/docs/RpmPackageUpload.md +1 -0
  67. data/docs/RpmUpstream.md +4 -4
  68. data/docs/RubyPackageUpload.md +1 -0
  69. data/docs/RubyUpstream.md +4 -4
  70. data/docs/SwiftPackageUpload.md +1 -0
  71. data/docs/SwiftUpstream.md +4 -4
  72. data/docs/TerraformPackageUpload.md +1 -0
  73. data/docs/VagrantPackageUpload.md +1 -0
  74. data/docs/VsxPackageUpload.md +91 -0
  75. data/docs/VsxPackageUploadRequest.md +10 -0
  76. data/lib/cloudsmith-api/api/bulk_action_api.rb +77 -0
  77. data/lib/cloudsmith-api/api/packages_api.rb +123 -0
  78. data/lib/cloudsmith-api/api/repos_api.rb +401 -0
  79. data/lib/cloudsmith-api/models/alpine_package_upload.rb +10 -1
  80. data/lib/cloudsmith-api/models/alpine_upstream.rb +496 -0
  81. data/lib/cloudsmith-api/models/alpine_upstream_request.rb +365 -0
  82. data/lib/cloudsmith-api/models/alpine_upstream_request_patch.rb +355 -0
  83. data/lib/cloudsmith-api/models/cargo_package_upload.rb +10 -1
  84. data/lib/cloudsmith-api/models/cargo_upstream.rb +7 -4
  85. data/lib/cloudsmith-api/models/cocoapods_package_upload.rb +10 -1
  86. data/lib/cloudsmith-api/models/composer_package_upload.rb +10 -1
  87. data/lib/cloudsmith-api/models/composer_upstream.rb +7 -4
  88. data/lib/cloudsmith-api/models/conan_package_upload.rb +10 -1
  89. data/lib/cloudsmith-api/models/conda_package_upload.rb +10 -1
  90. data/lib/cloudsmith-api/models/conda_upstream.rb +7 -4
  91. data/lib/cloudsmith-api/models/cran_package_upload.rb +10 -1
  92. data/lib/cloudsmith-api/models/cran_upstream.rb +7 -4
  93. data/lib/cloudsmith-api/models/dart_package_upload.rb +10 -1
  94. data/lib/cloudsmith-api/models/dart_upstream.rb +7 -4
  95. data/lib/cloudsmith-api/models/deb_package_upload.rb +10 -1
  96. data/lib/cloudsmith-api/models/deb_upstream.rb +7 -4
  97. data/lib/cloudsmith-api/models/docker_package_upload.rb +10 -1
  98. data/lib/cloudsmith-api/models/docker_upstream.rb +4 -2
  99. data/lib/cloudsmith-api/models/format_support_upstream.rb +19 -4
  100. data/lib/cloudsmith-api/models/generic_package_upload.rb +10 -1
  101. data/lib/cloudsmith-api/models/generic_upstream.rb +7 -4
  102. data/lib/cloudsmith-api/models/go_package_upload.rb +10 -1
  103. data/lib/cloudsmith-api/models/go_upstream.rb +7 -4
  104. data/lib/cloudsmith-api/models/helm_package_upload.rb +10 -1
  105. data/lib/cloudsmith-api/models/helm_upstream.rb +7 -4
  106. data/lib/cloudsmith-api/models/hex_package_upload.rb +10 -1
  107. data/lib/cloudsmith-api/models/hex_upstream.rb +7 -4
  108. data/lib/cloudsmith-api/models/huggingface_package_upload.rb +10 -1
  109. data/lib/cloudsmith-api/models/huggingface_upstream.rb +7 -4
  110. data/lib/cloudsmith-api/models/luarocks_package_upload.rb +10 -1
  111. data/lib/cloudsmith-api/models/maven_package_upload.rb +10 -1
  112. data/lib/cloudsmith-api/models/maven_upstream.rb +7 -4
  113. data/lib/cloudsmith-api/models/npm_package_upload.rb +10 -1
  114. data/lib/cloudsmith-api/models/npm_upstream.rb +32 -5
  115. data/lib/cloudsmith-api/models/npm_upstream_request.rb +25 -1
  116. data/lib/cloudsmith-api/models/npm_upstream_request_patch.rb +25 -1
  117. data/lib/cloudsmith-api/models/nuget_package_upload.rb +10 -1
  118. data/lib/cloudsmith-api/models/nuget_upstream.rb +7 -4
  119. data/lib/cloudsmith-api/models/organization_team_members.rb +1 -1
  120. data/lib/cloudsmith-api/models/{organization_team_membership.rb → organization_team_service_member.rb} +28 -5
  121. data/lib/cloudsmith-api/models/p2_package_upload.rb +10 -1
  122. data/lib/cloudsmith-api/models/package.rb +10 -1
  123. data/lib/cloudsmith-api/models/package_bulk_action.rb +261 -0
  124. data/lib/cloudsmith-api/models/package_bulk_action_response.rb +209 -0
  125. data/lib/cloudsmith-api/models/package_copy.rb +10 -1
  126. data/lib/cloudsmith-api/models/package_move.rb +10 -1
  127. data/lib/cloudsmith-api/models/package_quarantine.rb +10 -1
  128. data/lib/cloudsmith-api/models/package_resync.rb +10 -1
  129. data/lib/cloudsmith-api/models/package_tag.rb +10 -1
  130. data/lib/cloudsmith-api/models/python_package_upload.rb +10 -1
  131. data/lib/cloudsmith-api/models/python_upstream.rb +7 -4
  132. data/lib/cloudsmith-api/models/raw_package_upload.rb +10 -1
  133. data/lib/cloudsmith-api/models/repository.rb +21 -1
  134. data/lib/cloudsmith-api/models/repository_create.rb +21 -1
  135. data/lib/cloudsmith-api/models/repository_create_request.rb +11 -1
  136. data/lib/cloudsmith-api/models/repository_request_patch.rb +11 -1
  137. data/lib/cloudsmith-api/models/rpm_package_upload.rb +10 -1
  138. data/lib/cloudsmith-api/models/rpm_upstream.rb +7 -4
  139. data/lib/cloudsmith-api/models/ruby_package_upload.rb +10 -1
  140. data/lib/cloudsmith-api/models/ruby_upstream.rb +7 -4
  141. data/lib/cloudsmith-api/models/swift_package_upload.rb +10 -1
  142. data/lib/cloudsmith-api/models/swift_upstream.rb +7 -4
  143. data/lib/cloudsmith-api/models/terraform_package_upload.rb +10 -1
  144. data/lib/cloudsmith-api/models/vagrant_package_upload.rb +10 -1
  145. data/lib/cloudsmith-api/models/vsx_package_upload.rb +1001 -0
  146. data/lib/cloudsmith-api/models/vsx_package_upload_request.rb +210 -0
  147. data/lib/cloudsmith-api/version.rb +1 -1
  148. data/lib/cloudsmith-api.rb +9 -1
  149. data/spec/api/bulk_action_api_spec.rb +47 -0
  150. data/spec/api/packages_api_spec.rb +28 -0
  151. data/spec/api/repos_api_spec.rb +89 -0
  152. data/spec/models/alpine_package_upload_spec.rb +6 -0
  153. data/spec/models/alpine_upstream_request_patch_spec.rb +121 -0
  154. data/spec/models/alpine_upstream_request_spec.rb +121 -0
  155. data/spec/models/alpine_upstream_spec.rb +197 -0
  156. data/spec/models/cargo_package_upload_spec.rb +6 -0
  157. data/spec/models/cocoapods_package_upload_spec.rb +6 -0
  158. data/spec/models/composer_package_upload_spec.rb +6 -0
  159. data/spec/models/conan_package_upload_spec.rb +6 -0
  160. data/spec/models/conda_package_upload_spec.rb +6 -0
  161. data/spec/models/cran_package_upload_spec.rb +6 -0
  162. data/spec/models/dart_package_upload_spec.rb +6 -0
  163. data/spec/models/deb_package_upload_spec.rb +6 -0
  164. data/spec/models/docker_package_upload_spec.rb +6 -0
  165. data/spec/models/format_support_upstream_spec.rb +6 -0
  166. data/spec/models/generic_package_upload_spec.rb +6 -0
  167. data/spec/models/go_package_upload_spec.rb +6 -0
  168. data/spec/models/helm_package_upload_spec.rb +6 -0
  169. data/spec/models/hex_package_upload_spec.rb +6 -0
  170. data/spec/models/huggingface_package_upload_spec.rb +6 -0
  171. data/spec/models/luarocks_package_upload_spec.rb +6 -0
  172. data/spec/models/maven_package_upload_spec.rb +6 -0
  173. data/spec/models/npm_package_upload_spec.rb +6 -0
  174. data/spec/models/npm_upstream_request_patch_spec.rb +10 -0
  175. data/spec/models/npm_upstream_request_spec.rb +10 -0
  176. data/spec/models/npm_upstream_spec.rb +10 -0
  177. data/spec/models/nuget_package_upload_spec.rb +6 -0
  178. data/spec/models/{organization_team_membership_spec.rb → organization_team_service_member_spec.rb} +16 -6
  179. data/spec/models/p2_package_upload_spec.rb +6 -0
  180. data/spec/models/package_bulk_action_response_spec.rb +53 -0
  181. data/spec/models/package_bulk_action_spec.rb +63 -0
  182. data/spec/models/package_copy_spec.rb +6 -0
  183. data/spec/models/package_move_spec.rb +6 -0
  184. data/spec/models/package_quarantine_spec.rb +6 -0
  185. data/spec/models/package_resync_spec.rb +6 -0
  186. data/spec/models/package_spec.rb +6 -0
  187. data/spec/models/package_tag_spec.rb +6 -0
  188. data/spec/models/python_package_upload_spec.rb +6 -0
  189. data/spec/models/raw_package_upload_spec.rb +6 -0
  190. data/spec/models/repository_create_request_spec.rb +6 -0
  191. data/spec/models/repository_create_spec.rb +12 -0
  192. data/spec/models/repository_request_patch_spec.rb +6 -0
  193. data/spec/models/repository_spec.rb +12 -0
  194. data/spec/models/rpm_package_upload_spec.rb +6 -0
  195. data/spec/models/ruby_package_upload_spec.rb +6 -0
  196. data/spec/models/swift_package_upload_spec.rb +6 -0
  197. data/spec/models/terraform_package_upload_spec.rb +6 -0
  198. data/spec/models/vagrant_package_upload_spec.rb +6 -0
  199. data/spec/models/vsx_package_upload_request_spec.rb +53 -0
  200. data/spec/models/vsx_package_upload_spec.rb +543 -0
  201. data/vendor/bundle/ruby/2.6.0/cache/addressable-2.8.9.gem +0 -0
  202. data/vendor/bundle/ruby/2.6.0/cache/ethon-0.18.0.gem +0 -0
  203. data/vendor/bundle/ruby/2.6.0/cache/logger-1.7.0.gem +0 -0
  204. data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.13.8.gem +0 -0
  205. data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.13.7.gem +0 -0
  206. data/vendor/bundle/ruby/2.6.0/cache/typhoeus-1.6.0.gem +0 -0
  207. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.1/gem_make.out +1 -1
  208. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.0.1/gem_make.out +2 -2
  209. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.0.1/mkmf.log +4 -4
  210. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.3/gem_make.out +2 -2
  211. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.3/mkmf.log +1 -1
  212. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
  213. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
  214. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/CHANGELOG.md +10 -1
  215. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/lib/addressable/idna/pure.rb +0 -10
  216. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/lib/addressable/version.rb +1 -1
  217. data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.0.1/ext/bigdecimal/Makefile +2 -2
  218. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/CHANGELOG.md +46 -1
  219. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/README.md +23 -0
  220. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.18.0/ethon.gemspec +37 -0
  221. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/classes.rb +12 -2
  222. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/codes.rb +3 -2
  223. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/options.rb +4 -3
  224. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/callbacks.rb +10 -3
  225. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/informations.rb +3 -0
  226. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/response_callbacks.rb +6 -1
  227. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/loggable.rb +0 -1
  228. data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/version.rb +1 -1
  229. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.3/ext/ffi_c/Makefile +2 -2
  230. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
  231. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
  232. data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/.document +4 -0
  233. data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/.rdoc_options +3 -0
  234. data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/BSDL +22 -0
  235. data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/COPYING +56 -0
  236. data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/README.md +104 -0
  237. data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/lib/logger/errors.rb +9 -0
  238. data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/lib/logger/formatter.rb +36 -0
  239. data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/lib/logger/log_device.rb +265 -0
  240. data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/lib/logger/period.rb +47 -0
  241. data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/lib/logger/severity.rb +38 -0
  242. data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/lib/logger/version.rb +5 -0
  243. data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/lib/logger.rb +789 -0
  244. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/Changelog.md +9 -1
  245. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/recorder.rb +3 -1
  246. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/order_group.rb +15 -4
  247. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/version.rb +1 -1
  248. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/Changelog.md +10 -3
  249. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/fuzzy_matcher.rb +3 -0
  250. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/version.rb +1 -1
  251. data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/CHANGELOG.md +14 -1
  252. data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/README.md +2 -2
  253. data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/version.rb +1 -1
  254. data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/typhoeus.gemspec +1 -1
  255. data/vendor/bundle/ruby/2.6.0/specifications/{addressable-2.8.8.gemspec → addressable-2.8.9.gemspec} +3 -5
  256. data/vendor/bundle/ruby/2.6.0/specifications/{ethon-0.15.0.gemspec → ethon-0.18.0.gemspec} +8 -4
  257. data/vendor/bundle/ruby/2.6.0/specifications/logger-1.7.0.gemspec +22 -0
  258. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-mocks-3.13.7.gemspec → rspec-mocks-3.13.8.gemspec} +5 -5
  259. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-support-3.13.6.gemspec → rspec-support-3.13.7.gemspec} +4 -4
  260. data/vendor/bundle/ruby/2.6.0/specifications/{typhoeus-1.5.0.gemspec → typhoeus-1.6.0.gemspec} +5 -5
  261. metadata +265 -279
  262. data/vendor/bundle/ruby/2.6.0/cache/addressable-2.8.8.gem +0 -0
  263. data/vendor/bundle/ruby/2.6.0/cache/ethon-0.15.0.gem +0 -0
  264. data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.13.7.gem +0 -0
  265. data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.13.6.gem +0 -0
  266. data/vendor/bundle/ruby/2.6.0/cache/typhoeus-1.5.0.gem +0 -0
  267. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/Gemfile +0 -31
  268. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/Rakefile +0 -37
  269. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/addressable.gemspec +0 -28
  270. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/spec/addressable/idna_spec.rb +0 -302
  271. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/spec/addressable/net_http_compat_spec.rb +0 -29
  272. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/spec/addressable/security_spec.rb +0 -58
  273. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/spec/addressable/template_spec.rb +0 -1264
  274. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/spec/addressable/uri_spec.rb +0 -6854
  275. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/spec/spec_helper.rb +0 -33
  276. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/tasks/clobber.rake +0 -4
  277. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/tasks/gem.rake +0 -100
  278. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/tasks/git.rake +0 -47
  279. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/tasks/metrics.rake +0 -24
  280. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/tasks/profile.rake +0 -72
  281. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/tasks/rspec.rake +0 -23
  282. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/tasks/yard.rake +0 -29
  283. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/.github/workflows/ruby.yml +0 -41
  284. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/.gitignore +0 -8
  285. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/.rspec +0 -3
  286. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/Gemfile +0 -43
  287. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/Guardfile +0 -10
  288. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/Rakefile +0 -40
  289. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/ethon.gemspec +0 -26
  290. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/profile/benchmarks.rb +0 -104
  291. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/profile/memory_leaks.rb +0 -114
  292. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/profile/perf_spec_helper.rb +0 -37
  293. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/profile/support/memory_test_helpers.rb +0 -76
  294. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/profile/support/os_memory_leak_tracker.rb +0 -48
  295. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/profile/support/ruby_object_leak_tracker.rb +0 -49
  296. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/curl_spec.rb +0 -38
  297. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/callbacks_spec.rb +0 -59
  298. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/debug_info_spec.rb +0 -54
  299. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/features_spec.rb +0 -24
  300. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/form_spec.rb +0 -104
  301. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/header_spec.rb +0 -79
  302. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/custom_spec.rb +0 -177
  303. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/delete_spec.rb +0 -21
  304. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/get_spec.rb +0 -126
  305. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/head_spec.rb +0 -80
  306. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/options_spec.rb +0 -51
  307. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/patch_spec.rb +0 -51
  308. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/post_spec.rb +0 -317
  309. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/put_spec.rb +0 -168
  310. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http_spec.rb +0 -64
  311. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/informations_spec.rb +0 -120
  312. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/mirror_spec.rb +0 -47
  313. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/operations_spec.rb +0 -268
  314. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/options_spec.rb +0 -193
  315. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/queryable_spec.rb +0 -235
  316. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/response_callbacks_spec.rb +0 -152
  317. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/util_spec.rb +0 -28
  318. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy_spec.rb +0 -203
  319. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/libc_spec.rb +0 -14
  320. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/loggable_spec.rb +0 -22
  321. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/multi/operations_spec.rb +0 -298
  322. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/multi/options_spec.rb +0 -182
  323. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/multi/stack_spec.rb +0 -80
  324. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/multi_spec.rb +0 -152
  325. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/spec_helper.rb +0 -28
  326. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/support/localhost_server.rb +0 -95
  327. data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/support/server.rb +0 -115
  328. /data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/LICENSE.txt +0 -0
  329. /data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/README.md +0 -0
  330. /data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/lib/addressable/idna/native.rb +0 -0
  331. /data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/lib/addressable/idna.rb +0 -0
  332. /data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/lib/addressable/template.rb +0 -0
  333. /data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/lib/addressable/uri.rb +0 -0
  334. /data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/lib/addressable.rb +0 -0
  335. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/LICENSE +0 -0
  336. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curl.rb +0 -0
  337. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/constants.rb +0 -0
  338. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/form_options.rb +0 -0
  339. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/functions.rb +0 -0
  340. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/infos.rb +0 -0
  341. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/messages.rb +0 -0
  342. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/settings.rb +0 -0
  343. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/debug_info.rb +0 -0
  344. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/features.rb +0 -0
  345. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/form.rb +0 -0
  346. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/header.rb +0 -0
  347. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/actionable.rb +0 -0
  348. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/custom.rb +0 -0
  349. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/delete.rb +0 -0
  350. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/get.rb +0 -0
  351. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/head.rb +0 -0
  352. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/options.rb +0 -0
  353. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/patch.rb +0 -0
  354. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/post.rb +0 -0
  355. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/postable.rb +0 -0
  356. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/put.rb +0 -0
  357. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/putable.rb +0 -0
  358. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http.rb +0 -0
  359. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/mirror.rb +0 -0
  360. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/operations.rb +0 -0
  361. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/options.rb +0 -0
  362. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/params.rb +0 -0
  363. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/queryable.rb +0 -0
  364. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/util.rb +0 -0
  365. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy.rb +0 -0
  366. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/ethon_error.rb +0 -0
  367. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/global_init.rb +0 -0
  368. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/invalid_option.rb +0 -0
  369. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/invalid_value.rb +0 -0
  370. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/multi_add.rb +0 -0
  371. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/multi_fdset.rb +0 -0
  372. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/multi_remove.rb +0 -0
  373. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/multi_timeout.rb +0 -0
  374. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/select.rb +0 -0
  375. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors.rb +0 -0
  376. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/libc.rb +0 -0
  377. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/multi/operations.rb +0 -0
  378. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/multi/options.rb +0 -0
  379. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/multi/stack.rb +0 -0
  380. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/multi.rb +0 -0
  381. /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon.rb +0 -0
  382. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/.document +0 -0
  383. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/.yardopts +0 -0
  384. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/LICENSE.md +0 -0
  385. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/README.md +0 -0
  386. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/chain.rb +0 -0
  387. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/error_generator.rb +0 -0
  388. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -0
  389. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -0
  390. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/message_chains.rb +0 -0
  391. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/proxy.rb +0 -0
  392. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/stub_chain.rb +0 -0
  393. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -0
  394. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance.rb +0 -0
  395. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/argument_list_matcher.rb +0 -0
  396. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/argument_matchers.rb +0 -0
  397. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/configuration.rb +0 -0
  398. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/error_generator.rb +0 -0
  399. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/example_methods.rb +0 -0
  400. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/instance_method_stasher.rb +0 -0
  401. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/marshal_extension.rb +0 -0
  402. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/matchers/expectation_customization.rb +0 -0
  403. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/matchers/have_received.rb +0 -0
  404. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/matchers/receive.rb +0 -0
  405. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -0
  406. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/matchers/receive_messages.rb +0 -0
  407. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/message_chain.rb +0 -0
  408. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/message_expectation.rb +0 -0
  409. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/method_double.rb +0 -0
  410. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/method_reference.rb +0 -0
  411. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/minitest_integration.rb +0 -0
  412. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/mutate_const.rb +0 -0
  413. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/object_reference.rb +0 -0
  414. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/proxy.rb +0 -0
  415. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/space.rb +0 -0
  416. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/standalone.rb +0 -0
  417. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/syntax.rb +0 -0
  418. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/targets.rb +0 -0
  419. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/test_double.rb +0 -0
  420. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/verifying_double.rb +0 -0
  421. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/verifying_message_expectation.rb +0 -0
  422. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/verifying_proxy.rb +0 -0
  423. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks.rb +0 -0
  424. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/LICENSE.md +0 -0
  425. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/README.md +0 -0
  426. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/caller_filter.rb +0 -0
  427. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/comparable_version.rb +0 -0
  428. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/differ.rb +0 -0
  429. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/directory_maker.rb +0 -0
  430. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/encoded_string.rb +0 -0
  431. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/hunk_generator.rb +0 -0
  432. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/matcher_definition.rb +0 -0
  433. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/method_signature_verifier.rb +0 -0
  434. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/mutex.rb +0 -0
  435. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/object_formatter.rb +0 -0
  436. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/recursive_const_methods.rb +0 -0
  437. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/reentrant_mutex.rb +0 -0
  438. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/ruby_features.rb +0 -0
  439. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/source/location.rb +0 -0
  440. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/source/node.rb +0 -0
  441. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/source/token.rb +0 -0
  442. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/source.rb +0 -0
  443. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/deprecation_helpers.rb +0 -0
  444. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/diff_helpers.rb +0 -0
  445. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/formatting_support.rb +0 -0
  446. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/in_sub_process.rb +0 -0
  447. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/library_wide_checks.rb +0 -0
  448. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/shell_out.rb +0 -0
  449. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/stderr_splitter.rb +0 -0
  450. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/string_matcher.rb +0 -0
  451. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/with_isolated_directory.rb +0 -0
  452. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/with_isolated_stderr.rb +0 -0
  453. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec.rb +0 -0
  454. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/warnings.rb +0 -0
  455. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/with_keywords_when_needed.rb +0 -0
  456. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support.rb +0 -0
  457. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/CONTRIBUTING.md +0 -0
  458. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/LICENSE +0 -0
  459. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/UPGRADE.md +0 -0
  460. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/rack/typhoeus/middleware/params_decoder/helper.rb +0 -0
  461. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/rack/typhoeus/middleware/params_decoder.rb +0 -0
  462. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/rack/typhoeus.rb +0 -0
  463. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/adapters/faraday.rb +0 -0
  464. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/cache/dalli.rb +0 -0
  465. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/cache/rails.rb +0 -0
  466. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/cache/redis.rb +0 -0
  467. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/config.rb +0 -0
  468. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/easy_factory.rb +0 -0
  469. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/errors/no_stub.rb +0 -0
  470. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/errors/typhoeus_error.rb +0 -0
  471. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/errors.rb +0 -0
  472. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/expectation.rb +0 -0
  473. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/addable.rb +0 -0
  474. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/before.rb +0 -0
  475. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/block_connection.rb +0 -0
  476. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/cacheable.rb +0 -0
  477. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/memoizable.rb +0 -0
  478. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/queueable.rb +0 -0
  479. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/runnable.rb +0 -0
  480. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/stubbable.rb +0 -0
  481. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra.rb +0 -0
  482. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/pool.rb +0 -0
  483. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/railtie.rb +0 -0
  484. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/actions.rb +0 -0
  485. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/before.rb +0 -0
  486. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/block_connection.rb +0 -0
  487. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/cacheable.rb +0 -0
  488. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/callbacks.rb +0 -0
  489. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/marshal.rb +0 -0
  490. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/memoizable.rb +0 -0
  491. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/operations.rb +0 -0
  492. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/responseable.rb +0 -0
  493. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/streamable.rb +0 -0
  494. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/stubbable.rb +0 -0
  495. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request.rb +0 -0
  496. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/response/cacheable.rb +0 -0
  497. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/response/header.rb +0 -0
  498. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/response/informations.rb +0 -0
  499. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/response/status.rb +0 -0
  500. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/response.rb +0 -0
  501. /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus.rb +0 -0
@@ -0,0 +1,1001 @@
1
+ =begin
2
+ #Cloudsmith API (v1)
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.50
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudsmithApi
16
+ class VsxPackageUpload
17
+ attr_accessor :architectures
18
+
19
+ attr_accessor :cdn_url
20
+
21
+ attr_accessor :checksum_md5
22
+
23
+ attr_accessor :checksum_sha1
24
+
25
+ attr_accessor :checksum_sha256
26
+
27
+ attr_accessor :checksum_sha512
28
+
29
+ # A checksum of all of the package's dependencies.
30
+ attr_accessor :dependencies_checksum_md5
31
+
32
+ attr_accessor :dependencies_url
33
+
34
+ # A textual description of this package.
35
+ attr_accessor :description
36
+
37
+ attr_accessor :display_name
38
+
39
+ attr_accessor :distro
40
+
41
+ attr_accessor :distro_version
42
+
43
+ attr_accessor :downloads
44
+
45
+ # The epoch of the package version (if any).
46
+ attr_accessor :epoch
47
+
48
+ attr_accessor :extension
49
+
50
+ attr_accessor :filename
51
+
52
+ attr_accessor :files
53
+
54
+ attr_accessor :format
55
+
56
+ attr_accessor :format_url
57
+
58
+ # Amount of storage that will be freed if this package is deleted
59
+ attr_accessor :freeable_storage
60
+
61
+ attr_accessor :fully_qualified_name
62
+
63
+ # Unique and permanent identifier for the package.
64
+ attr_accessor :identifier_perm
65
+
66
+ # Return a map of identifier field names and their values.
67
+ attr_accessor :identifiers
68
+
69
+ attr_accessor :indexed
70
+
71
+ attr_accessor :is_cancellable
72
+
73
+ attr_accessor :is_copyable
74
+
75
+ attr_accessor :is_deleteable
76
+
77
+ attr_accessor :is_downloadable
78
+
79
+ attr_accessor :is_moveable
80
+
81
+ attr_accessor :is_quarantinable
82
+
83
+ attr_accessor :is_quarantined
84
+
85
+ attr_accessor :is_resyncable
86
+
87
+ attr_accessor :is_security_scannable
88
+
89
+ attr_accessor :is_sync_awaiting
90
+
91
+ attr_accessor :is_sync_completed
92
+
93
+ attr_accessor :is_sync_failed
94
+
95
+ attr_accessor :is_sync_in_flight
96
+
97
+ attr_accessor :is_sync_in_progress
98
+
99
+ # The license of this package.
100
+ attr_accessor :license
101
+
102
+ # The name of this package.
103
+ attr_accessor :name
104
+
105
+ attr_accessor :namespace
106
+
107
+ attr_accessor :namespace_url
108
+
109
+ attr_accessor :num_files
110
+
111
+ attr_accessor :origin_repository
112
+
113
+ attr_accessor :origin_repository_url
114
+
115
+ # The type of package contents.
116
+ attr_accessor :package_type
117
+
118
+ # Whether or not the package has violated any policy.
119
+ attr_accessor :policy_violated
120
+
121
+ # The raw license string.
122
+ attr_accessor :raw_license
123
+
124
+ # The release of the package version (if any).
125
+ attr_accessor :release
126
+
127
+ attr_accessor :repository
128
+
129
+ attr_accessor :repository_url
130
+
131
+ # The datetime the security scanning was completed.
132
+ attr_accessor :security_scan_completed_at
133
+
134
+ # The datetime the security scanning was started.
135
+ attr_accessor :security_scan_started_at
136
+
137
+ attr_accessor :security_scan_status
138
+
139
+ # The datetime the security scanning status was updated.
140
+ attr_accessor :security_scan_status_updated_at
141
+
142
+ attr_accessor :self_html_url
143
+
144
+ attr_accessor :self_url
145
+
146
+ attr_accessor :self_webapp_url
147
+
148
+ attr_accessor :signature_url
149
+
150
+ # The calculated size of the package.
151
+ attr_accessor :size
152
+
153
+ # The public unique identifier for the package.
154
+ attr_accessor :slug
155
+
156
+ attr_accessor :slug_perm
157
+
158
+ # The SPDX license identifier for this package.
159
+ attr_accessor :spdx_license
160
+
161
+ # The synchronisation (in progress) stage of the package.
162
+ attr_accessor :stage
163
+
164
+ attr_accessor :stage_str
165
+
166
+ # The datetime the package stage was updated at.
167
+ attr_accessor :stage_updated_at
168
+
169
+ # The synchronisation status of the package.
170
+ attr_accessor :status
171
+
172
+ # A textual description for the synchronous status reason (if any
173
+ attr_accessor :status_reason
174
+
175
+ attr_accessor :status_str
176
+
177
+ # The datetime the package status was updated at.
178
+ attr_accessor :status_updated_at
179
+
180
+ attr_accessor :status_url
181
+
182
+ attr_accessor :subtype
183
+
184
+ # A one-liner synopsis of this package.
185
+ attr_accessor :summary
186
+
187
+ # The datetime the package sync was finished at.
188
+ attr_accessor :sync_finished_at
189
+
190
+ # Synchronisation progress (from 0-100)
191
+ attr_accessor :sync_progress
192
+
193
+ attr_accessor :tags_automatic
194
+
195
+ attr_accessor :tags_immutable
196
+
197
+ attr_accessor :type_display
198
+
199
+ # The date this package was uploaded.
200
+ attr_accessor :uploaded_at
201
+
202
+ attr_accessor :uploader
203
+
204
+ attr_accessor :uploader_url
205
+
206
+ # The raw version for this package.
207
+ attr_accessor :version
208
+
209
+ attr_accessor :version_orig
210
+
211
+ attr_accessor :vulnerability_scan_results_url
212
+
213
+ class EnumAttributeValidator
214
+ attr_reader :datatype
215
+ attr_reader :allowable_values
216
+
217
+ def initialize(datatype, allowable_values)
218
+ @allowable_values = allowable_values.map do |value|
219
+ case datatype.to_s
220
+ when /Integer/i
221
+ value.to_i
222
+ when /Float/i
223
+ value.to_f
224
+ else
225
+ value
226
+ end
227
+ end
228
+ end
229
+
230
+ def valid?(value)
231
+ !value || allowable_values.include?(value)
232
+ end
233
+ end
234
+
235
+ # Attribute mapping from ruby-style variable name to JSON key.
236
+ def self.attribute_map
237
+ {
238
+ :'architectures' => :'architectures',
239
+ :'cdn_url' => :'cdn_url',
240
+ :'checksum_md5' => :'checksum_md5',
241
+ :'checksum_sha1' => :'checksum_sha1',
242
+ :'checksum_sha256' => :'checksum_sha256',
243
+ :'checksum_sha512' => :'checksum_sha512',
244
+ :'dependencies_checksum_md5' => :'dependencies_checksum_md5',
245
+ :'dependencies_url' => :'dependencies_url',
246
+ :'description' => :'description',
247
+ :'display_name' => :'display_name',
248
+ :'distro' => :'distro',
249
+ :'distro_version' => :'distro_version',
250
+ :'downloads' => :'downloads',
251
+ :'epoch' => :'epoch',
252
+ :'extension' => :'extension',
253
+ :'filename' => :'filename',
254
+ :'files' => :'files',
255
+ :'format' => :'format',
256
+ :'format_url' => :'format_url',
257
+ :'freeable_storage' => :'freeable_storage',
258
+ :'fully_qualified_name' => :'fully_qualified_name',
259
+ :'identifier_perm' => :'identifier_perm',
260
+ :'identifiers' => :'identifiers',
261
+ :'indexed' => :'indexed',
262
+ :'is_cancellable' => :'is_cancellable',
263
+ :'is_copyable' => :'is_copyable',
264
+ :'is_deleteable' => :'is_deleteable',
265
+ :'is_downloadable' => :'is_downloadable',
266
+ :'is_moveable' => :'is_moveable',
267
+ :'is_quarantinable' => :'is_quarantinable',
268
+ :'is_quarantined' => :'is_quarantined',
269
+ :'is_resyncable' => :'is_resyncable',
270
+ :'is_security_scannable' => :'is_security_scannable',
271
+ :'is_sync_awaiting' => :'is_sync_awaiting',
272
+ :'is_sync_completed' => :'is_sync_completed',
273
+ :'is_sync_failed' => :'is_sync_failed',
274
+ :'is_sync_in_flight' => :'is_sync_in_flight',
275
+ :'is_sync_in_progress' => :'is_sync_in_progress',
276
+ :'license' => :'license',
277
+ :'name' => :'name',
278
+ :'namespace' => :'namespace',
279
+ :'namespace_url' => :'namespace_url',
280
+ :'num_files' => :'num_files',
281
+ :'origin_repository' => :'origin_repository',
282
+ :'origin_repository_url' => :'origin_repository_url',
283
+ :'package_type' => :'package_type',
284
+ :'policy_violated' => :'policy_violated',
285
+ :'raw_license' => :'raw_license',
286
+ :'release' => :'release',
287
+ :'repository' => :'repository',
288
+ :'repository_url' => :'repository_url',
289
+ :'security_scan_completed_at' => :'security_scan_completed_at',
290
+ :'security_scan_started_at' => :'security_scan_started_at',
291
+ :'security_scan_status' => :'security_scan_status',
292
+ :'security_scan_status_updated_at' => :'security_scan_status_updated_at',
293
+ :'self_html_url' => :'self_html_url',
294
+ :'self_url' => :'self_url',
295
+ :'self_webapp_url' => :'self_webapp_url',
296
+ :'signature_url' => :'signature_url',
297
+ :'size' => :'size',
298
+ :'slug' => :'slug',
299
+ :'slug_perm' => :'slug_perm',
300
+ :'spdx_license' => :'spdx_license',
301
+ :'stage' => :'stage',
302
+ :'stage_str' => :'stage_str',
303
+ :'stage_updated_at' => :'stage_updated_at',
304
+ :'status' => :'status',
305
+ :'status_reason' => :'status_reason',
306
+ :'status_str' => :'status_str',
307
+ :'status_updated_at' => :'status_updated_at',
308
+ :'status_url' => :'status_url',
309
+ :'subtype' => :'subtype',
310
+ :'summary' => :'summary',
311
+ :'sync_finished_at' => :'sync_finished_at',
312
+ :'sync_progress' => :'sync_progress',
313
+ :'tags_automatic' => :'tags_automatic',
314
+ :'tags_immutable' => :'tags_immutable',
315
+ :'type_display' => :'type_display',
316
+ :'uploaded_at' => :'uploaded_at',
317
+ :'uploader' => :'uploader',
318
+ :'uploader_url' => :'uploader_url',
319
+ :'version' => :'version',
320
+ :'version_orig' => :'version_orig',
321
+ :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url'
322
+ }
323
+ end
324
+
325
+ # Attribute type mapping.
326
+ def self.swagger_types
327
+ {
328
+ :'architectures' => :'Array<Architecture>',
329
+ :'cdn_url' => :'String',
330
+ :'checksum_md5' => :'String',
331
+ :'checksum_sha1' => :'String',
332
+ :'checksum_sha256' => :'String',
333
+ :'checksum_sha512' => :'String',
334
+ :'dependencies_checksum_md5' => :'String',
335
+ :'dependencies_url' => :'String',
336
+ :'description' => :'String',
337
+ :'display_name' => :'String',
338
+ :'distro' => :'Distribution',
339
+ :'distro_version' => :'DistributionVersion',
340
+ :'downloads' => :'Integer',
341
+ :'epoch' => :'Integer',
342
+ :'extension' => :'String',
343
+ :'filename' => :'String',
344
+ :'files' => :'Array<PackageFile>',
345
+ :'format' => :'String',
346
+ :'format_url' => :'String',
347
+ :'freeable_storage' => :'Integer',
348
+ :'fully_qualified_name' => :'String',
349
+ :'identifier_perm' => :'String',
350
+ :'identifiers' => :'Hash<String, String>',
351
+ :'indexed' => :'BOOLEAN',
352
+ :'is_cancellable' => :'BOOLEAN',
353
+ :'is_copyable' => :'BOOLEAN',
354
+ :'is_deleteable' => :'BOOLEAN',
355
+ :'is_downloadable' => :'BOOLEAN',
356
+ :'is_moveable' => :'BOOLEAN',
357
+ :'is_quarantinable' => :'BOOLEAN',
358
+ :'is_quarantined' => :'BOOLEAN',
359
+ :'is_resyncable' => :'BOOLEAN',
360
+ :'is_security_scannable' => :'BOOLEAN',
361
+ :'is_sync_awaiting' => :'BOOLEAN',
362
+ :'is_sync_completed' => :'BOOLEAN',
363
+ :'is_sync_failed' => :'BOOLEAN',
364
+ :'is_sync_in_flight' => :'BOOLEAN',
365
+ :'is_sync_in_progress' => :'BOOLEAN',
366
+ :'license' => :'String',
367
+ :'name' => :'String',
368
+ :'namespace' => :'String',
369
+ :'namespace_url' => :'String',
370
+ :'num_files' => :'Integer',
371
+ :'origin_repository' => :'String',
372
+ :'origin_repository_url' => :'String',
373
+ :'package_type' => :'Integer',
374
+ :'policy_violated' => :'BOOLEAN',
375
+ :'raw_license' => :'String',
376
+ :'release' => :'String',
377
+ :'repository' => :'String',
378
+ :'repository_url' => :'String',
379
+ :'security_scan_completed_at' => :'DateTime',
380
+ :'security_scan_started_at' => :'DateTime',
381
+ :'security_scan_status' => :'String',
382
+ :'security_scan_status_updated_at' => :'DateTime',
383
+ :'self_html_url' => :'String',
384
+ :'self_url' => :'String',
385
+ :'self_webapp_url' => :'String',
386
+ :'signature_url' => :'String',
387
+ :'size' => :'Integer',
388
+ :'slug' => :'String',
389
+ :'slug_perm' => :'String',
390
+ :'spdx_license' => :'String',
391
+ :'stage' => :'Integer',
392
+ :'stage_str' => :'String',
393
+ :'stage_updated_at' => :'DateTime',
394
+ :'status' => :'Integer',
395
+ :'status_reason' => :'String',
396
+ :'status_str' => :'String',
397
+ :'status_updated_at' => :'DateTime',
398
+ :'status_url' => :'String',
399
+ :'subtype' => :'String',
400
+ :'summary' => :'String',
401
+ :'sync_finished_at' => :'DateTime',
402
+ :'sync_progress' => :'Integer',
403
+ :'tags_automatic' => :'Tags',
404
+ :'tags_immutable' => :'Tags',
405
+ :'type_display' => :'String',
406
+ :'uploaded_at' => :'DateTime',
407
+ :'uploader' => :'String',
408
+ :'uploader_url' => :'String',
409
+ :'version' => :'String',
410
+ :'version_orig' => :'String',
411
+ :'vulnerability_scan_results_url' => :'String'
412
+ }
413
+ end
414
+
415
+ # Initializes the object
416
+ # @param [Hash] attributes Model attributes in the form of hash
417
+ def initialize(attributes = {})
418
+ return unless attributes.is_a?(Hash)
419
+
420
+ # convert string to symbol for hash key
421
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
422
+
423
+ if attributes.has_key?(:'architectures')
424
+ if (value = attributes[:'architectures']).is_a?(Array)
425
+ self.architectures = value
426
+ end
427
+ end
428
+
429
+ if attributes.has_key?(:'cdn_url')
430
+ self.cdn_url = attributes[:'cdn_url']
431
+ end
432
+
433
+ if attributes.has_key?(:'checksum_md5')
434
+ self.checksum_md5 = attributes[:'checksum_md5']
435
+ end
436
+
437
+ if attributes.has_key?(:'checksum_sha1')
438
+ self.checksum_sha1 = attributes[:'checksum_sha1']
439
+ end
440
+
441
+ if attributes.has_key?(:'checksum_sha256')
442
+ self.checksum_sha256 = attributes[:'checksum_sha256']
443
+ end
444
+
445
+ if attributes.has_key?(:'checksum_sha512')
446
+ self.checksum_sha512 = attributes[:'checksum_sha512']
447
+ end
448
+
449
+ if attributes.has_key?(:'dependencies_checksum_md5')
450
+ self.dependencies_checksum_md5 = attributes[:'dependencies_checksum_md5']
451
+ end
452
+
453
+ if attributes.has_key?(:'dependencies_url')
454
+ self.dependencies_url = attributes[:'dependencies_url']
455
+ end
456
+
457
+ if attributes.has_key?(:'description')
458
+ self.description = attributes[:'description']
459
+ end
460
+
461
+ if attributes.has_key?(:'display_name')
462
+ self.display_name = attributes[:'display_name']
463
+ end
464
+
465
+ if attributes.has_key?(:'distro')
466
+ self.distro = attributes[:'distro']
467
+ end
468
+
469
+ if attributes.has_key?(:'distro_version')
470
+ self.distro_version = attributes[:'distro_version']
471
+ end
472
+
473
+ if attributes.has_key?(:'downloads')
474
+ self.downloads = attributes[:'downloads']
475
+ end
476
+
477
+ if attributes.has_key?(:'epoch')
478
+ self.epoch = attributes[:'epoch']
479
+ end
480
+
481
+ if attributes.has_key?(:'extension')
482
+ self.extension = attributes[:'extension']
483
+ end
484
+
485
+ if attributes.has_key?(:'filename')
486
+ self.filename = attributes[:'filename']
487
+ end
488
+
489
+ if attributes.has_key?(:'files')
490
+ if (value = attributes[:'files']).is_a?(Array)
491
+ self.files = value
492
+ end
493
+ end
494
+
495
+ if attributes.has_key?(:'format')
496
+ self.format = attributes[:'format']
497
+ end
498
+
499
+ if attributes.has_key?(:'format_url')
500
+ self.format_url = attributes[:'format_url']
501
+ end
502
+
503
+ if attributes.has_key?(:'freeable_storage')
504
+ self.freeable_storage = attributes[:'freeable_storage']
505
+ end
506
+
507
+ if attributes.has_key?(:'fully_qualified_name')
508
+ self.fully_qualified_name = attributes[:'fully_qualified_name']
509
+ end
510
+
511
+ if attributes.has_key?(:'identifier_perm')
512
+ self.identifier_perm = attributes[:'identifier_perm']
513
+ end
514
+
515
+ if attributes.has_key?(:'identifiers')
516
+ if (value = attributes[:'identifiers']).is_a?(Hash)
517
+ self.identifiers = value
518
+ end
519
+ end
520
+
521
+ if attributes.has_key?(:'indexed')
522
+ self.indexed = attributes[:'indexed']
523
+ end
524
+
525
+ if attributes.has_key?(:'is_cancellable')
526
+ self.is_cancellable = attributes[:'is_cancellable']
527
+ end
528
+
529
+ if attributes.has_key?(:'is_copyable')
530
+ self.is_copyable = attributes[:'is_copyable']
531
+ end
532
+
533
+ if attributes.has_key?(:'is_deleteable')
534
+ self.is_deleteable = attributes[:'is_deleteable']
535
+ end
536
+
537
+ if attributes.has_key?(:'is_downloadable')
538
+ self.is_downloadable = attributes[:'is_downloadable']
539
+ end
540
+
541
+ if attributes.has_key?(:'is_moveable')
542
+ self.is_moveable = attributes[:'is_moveable']
543
+ end
544
+
545
+ if attributes.has_key?(:'is_quarantinable')
546
+ self.is_quarantinable = attributes[:'is_quarantinable']
547
+ end
548
+
549
+ if attributes.has_key?(:'is_quarantined')
550
+ self.is_quarantined = attributes[:'is_quarantined']
551
+ end
552
+
553
+ if attributes.has_key?(:'is_resyncable')
554
+ self.is_resyncable = attributes[:'is_resyncable']
555
+ end
556
+
557
+ if attributes.has_key?(:'is_security_scannable')
558
+ self.is_security_scannable = attributes[:'is_security_scannable']
559
+ end
560
+
561
+ if attributes.has_key?(:'is_sync_awaiting')
562
+ self.is_sync_awaiting = attributes[:'is_sync_awaiting']
563
+ end
564
+
565
+ if attributes.has_key?(:'is_sync_completed')
566
+ self.is_sync_completed = attributes[:'is_sync_completed']
567
+ end
568
+
569
+ if attributes.has_key?(:'is_sync_failed')
570
+ self.is_sync_failed = attributes[:'is_sync_failed']
571
+ end
572
+
573
+ if attributes.has_key?(:'is_sync_in_flight')
574
+ self.is_sync_in_flight = attributes[:'is_sync_in_flight']
575
+ end
576
+
577
+ if attributes.has_key?(:'is_sync_in_progress')
578
+ self.is_sync_in_progress = attributes[:'is_sync_in_progress']
579
+ end
580
+
581
+ if attributes.has_key?(:'license')
582
+ self.license = attributes[:'license']
583
+ end
584
+
585
+ if attributes.has_key?(:'name')
586
+ self.name = attributes[:'name']
587
+ end
588
+
589
+ if attributes.has_key?(:'namespace')
590
+ self.namespace = attributes[:'namespace']
591
+ end
592
+
593
+ if attributes.has_key?(:'namespace_url')
594
+ self.namespace_url = attributes[:'namespace_url']
595
+ end
596
+
597
+ if attributes.has_key?(:'num_files')
598
+ self.num_files = attributes[:'num_files']
599
+ end
600
+
601
+ if attributes.has_key?(:'origin_repository')
602
+ self.origin_repository = attributes[:'origin_repository']
603
+ end
604
+
605
+ if attributes.has_key?(:'origin_repository_url')
606
+ self.origin_repository_url = attributes[:'origin_repository_url']
607
+ end
608
+
609
+ if attributes.has_key?(:'package_type')
610
+ self.package_type = attributes[:'package_type']
611
+ end
612
+
613
+ if attributes.has_key?(:'policy_violated')
614
+ self.policy_violated = attributes[:'policy_violated']
615
+ end
616
+
617
+ if attributes.has_key?(:'raw_license')
618
+ self.raw_license = attributes[:'raw_license']
619
+ end
620
+
621
+ if attributes.has_key?(:'release')
622
+ self.release = attributes[:'release']
623
+ end
624
+
625
+ if attributes.has_key?(:'repository')
626
+ self.repository = attributes[:'repository']
627
+ end
628
+
629
+ if attributes.has_key?(:'repository_url')
630
+ self.repository_url = attributes[:'repository_url']
631
+ end
632
+
633
+ if attributes.has_key?(:'security_scan_completed_at')
634
+ self.security_scan_completed_at = attributes[:'security_scan_completed_at']
635
+ end
636
+
637
+ if attributes.has_key?(:'security_scan_started_at')
638
+ self.security_scan_started_at = attributes[:'security_scan_started_at']
639
+ end
640
+
641
+ if attributes.has_key?(:'security_scan_status')
642
+ self.security_scan_status = attributes[:'security_scan_status']
643
+ else
644
+ self.security_scan_status = 'Awaiting Security Scan'
645
+ end
646
+
647
+ if attributes.has_key?(:'security_scan_status_updated_at')
648
+ self.security_scan_status_updated_at = attributes[:'security_scan_status_updated_at']
649
+ end
650
+
651
+ if attributes.has_key?(:'self_html_url')
652
+ self.self_html_url = attributes[:'self_html_url']
653
+ end
654
+
655
+ if attributes.has_key?(:'self_url')
656
+ self.self_url = attributes[:'self_url']
657
+ end
658
+
659
+ if attributes.has_key?(:'self_webapp_url')
660
+ self.self_webapp_url = attributes[:'self_webapp_url']
661
+ end
662
+
663
+ if attributes.has_key?(:'signature_url')
664
+ self.signature_url = attributes[:'signature_url']
665
+ end
666
+
667
+ if attributes.has_key?(:'size')
668
+ self.size = attributes[:'size']
669
+ end
670
+
671
+ if attributes.has_key?(:'slug')
672
+ self.slug = attributes[:'slug']
673
+ end
674
+
675
+ if attributes.has_key?(:'slug_perm')
676
+ self.slug_perm = attributes[:'slug_perm']
677
+ end
678
+
679
+ if attributes.has_key?(:'spdx_license')
680
+ self.spdx_license = attributes[:'spdx_license']
681
+ end
682
+
683
+ if attributes.has_key?(:'stage')
684
+ self.stage = attributes[:'stage']
685
+ end
686
+
687
+ if attributes.has_key?(:'stage_str')
688
+ self.stage_str = attributes[:'stage_str']
689
+ end
690
+
691
+ if attributes.has_key?(:'stage_updated_at')
692
+ self.stage_updated_at = attributes[:'stage_updated_at']
693
+ end
694
+
695
+ if attributes.has_key?(:'status')
696
+ self.status = attributes[:'status']
697
+ end
698
+
699
+ if attributes.has_key?(:'status_reason')
700
+ self.status_reason = attributes[:'status_reason']
701
+ end
702
+
703
+ if attributes.has_key?(:'status_str')
704
+ self.status_str = attributes[:'status_str']
705
+ end
706
+
707
+ if attributes.has_key?(:'status_updated_at')
708
+ self.status_updated_at = attributes[:'status_updated_at']
709
+ end
710
+
711
+ if attributes.has_key?(:'status_url')
712
+ self.status_url = attributes[:'status_url']
713
+ end
714
+
715
+ if attributes.has_key?(:'subtype')
716
+ self.subtype = attributes[:'subtype']
717
+ end
718
+
719
+ if attributes.has_key?(:'summary')
720
+ self.summary = attributes[:'summary']
721
+ end
722
+
723
+ if attributes.has_key?(:'sync_finished_at')
724
+ self.sync_finished_at = attributes[:'sync_finished_at']
725
+ end
726
+
727
+ if attributes.has_key?(:'sync_progress')
728
+ self.sync_progress = attributes[:'sync_progress']
729
+ end
730
+
731
+ if attributes.has_key?(:'tags_automatic')
732
+ self.tags_automatic = attributes[:'tags_automatic']
733
+ end
734
+
735
+ if attributes.has_key?(:'tags_immutable')
736
+ self.tags_immutable = attributes[:'tags_immutable']
737
+ end
738
+
739
+ if attributes.has_key?(:'type_display')
740
+ self.type_display = attributes[:'type_display']
741
+ end
742
+
743
+ if attributes.has_key?(:'uploaded_at')
744
+ self.uploaded_at = attributes[:'uploaded_at']
745
+ end
746
+
747
+ if attributes.has_key?(:'uploader')
748
+ self.uploader = attributes[:'uploader']
749
+ end
750
+
751
+ if attributes.has_key?(:'uploader_url')
752
+ self.uploader_url = attributes[:'uploader_url']
753
+ end
754
+
755
+ if attributes.has_key?(:'version')
756
+ self.version = attributes[:'version']
757
+ end
758
+
759
+ if attributes.has_key?(:'version_orig')
760
+ self.version_orig = attributes[:'version_orig']
761
+ end
762
+
763
+ if attributes.has_key?(:'vulnerability_scan_results_url')
764
+ self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url']
765
+ end
766
+ end
767
+
768
+ # Show invalid properties with the reasons. Usually used together with valid?
769
+ # @return Array for valid properties with the reasons
770
+ def list_invalid_properties
771
+ invalid_properties = Array.new
772
+ invalid_properties
773
+ end
774
+
775
+ # Check to see if the all the properties in the model are valid
776
+ # @return true if the model is valid
777
+ def valid?
778
+ security_scan_status_validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported'])
779
+ return false unless security_scan_status_validator.valid?(@security_scan_status)
780
+ true
781
+ end
782
+
783
+ # Custom attribute writer method checking allowed values (enum).
784
+ # @param [Object] security_scan_status Object to be assigned
785
+ def security_scan_status=(security_scan_status)
786
+ validator = EnumAttributeValidator.new('String', ['Awaiting Security Scan', 'Security Scanning in Progress', 'Scan Detected Vulnerabilities', 'Scan Detected No Vulnerabilities', 'Security Scanning Disabled', 'Security Scanning Failed', 'Security Scanning Skipped', 'Security Scanning Not Supported'])
787
+ unless validator.valid?(security_scan_status)
788
+ fail ArgumentError, 'invalid value for "security_scan_status", must be one of #{validator.allowable_values}.'
789
+ end
790
+ @security_scan_status = security_scan_status
791
+ end
792
+
793
+ # Checks equality by comparing each attribute.
794
+ # @param [Object] Object to be compared
795
+ def ==(o)
796
+ return true if self.equal?(o)
797
+ self.class == o.class &&
798
+ architectures == o.architectures &&
799
+ cdn_url == o.cdn_url &&
800
+ checksum_md5 == o.checksum_md5 &&
801
+ checksum_sha1 == o.checksum_sha1 &&
802
+ checksum_sha256 == o.checksum_sha256 &&
803
+ checksum_sha512 == o.checksum_sha512 &&
804
+ dependencies_checksum_md5 == o.dependencies_checksum_md5 &&
805
+ dependencies_url == o.dependencies_url &&
806
+ description == o.description &&
807
+ display_name == o.display_name &&
808
+ distro == o.distro &&
809
+ distro_version == o.distro_version &&
810
+ downloads == o.downloads &&
811
+ epoch == o.epoch &&
812
+ extension == o.extension &&
813
+ filename == o.filename &&
814
+ files == o.files &&
815
+ format == o.format &&
816
+ format_url == o.format_url &&
817
+ freeable_storage == o.freeable_storage &&
818
+ fully_qualified_name == o.fully_qualified_name &&
819
+ identifier_perm == o.identifier_perm &&
820
+ identifiers == o.identifiers &&
821
+ indexed == o.indexed &&
822
+ is_cancellable == o.is_cancellable &&
823
+ is_copyable == o.is_copyable &&
824
+ is_deleteable == o.is_deleteable &&
825
+ is_downloadable == o.is_downloadable &&
826
+ is_moveable == o.is_moveable &&
827
+ is_quarantinable == o.is_quarantinable &&
828
+ is_quarantined == o.is_quarantined &&
829
+ is_resyncable == o.is_resyncable &&
830
+ is_security_scannable == o.is_security_scannable &&
831
+ is_sync_awaiting == o.is_sync_awaiting &&
832
+ is_sync_completed == o.is_sync_completed &&
833
+ is_sync_failed == o.is_sync_failed &&
834
+ is_sync_in_flight == o.is_sync_in_flight &&
835
+ is_sync_in_progress == o.is_sync_in_progress &&
836
+ license == o.license &&
837
+ name == o.name &&
838
+ namespace == o.namespace &&
839
+ namespace_url == o.namespace_url &&
840
+ num_files == o.num_files &&
841
+ origin_repository == o.origin_repository &&
842
+ origin_repository_url == o.origin_repository_url &&
843
+ package_type == o.package_type &&
844
+ policy_violated == o.policy_violated &&
845
+ raw_license == o.raw_license &&
846
+ release == o.release &&
847
+ repository == o.repository &&
848
+ repository_url == o.repository_url &&
849
+ security_scan_completed_at == o.security_scan_completed_at &&
850
+ security_scan_started_at == o.security_scan_started_at &&
851
+ security_scan_status == o.security_scan_status &&
852
+ security_scan_status_updated_at == o.security_scan_status_updated_at &&
853
+ self_html_url == o.self_html_url &&
854
+ self_url == o.self_url &&
855
+ self_webapp_url == o.self_webapp_url &&
856
+ signature_url == o.signature_url &&
857
+ size == o.size &&
858
+ slug == o.slug &&
859
+ slug_perm == o.slug_perm &&
860
+ spdx_license == o.spdx_license &&
861
+ stage == o.stage &&
862
+ stage_str == o.stage_str &&
863
+ stage_updated_at == o.stage_updated_at &&
864
+ status == o.status &&
865
+ status_reason == o.status_reason &&
866
+ status_str == o.status_str &&
867
+ status_updated_at == o.status_updated_at &&
868
+ status_url == o.status_url &&
869
+ subtype == o.subtype &&
870
+ summary == o.summary &&
871
+ sync_finished_at == o.sync_finished_at &&
872
+ sync_progress == o.sync_progress &&
873
+ tags_automatic == o.tags_automatic &&
874
+ tags_immutable == o.tags_immutable &&
875
+ type_display == o.type_display &&
876
+ uploaded_at == o.uploaded_at &&
877
+ uploader == o.uploader &&
878
+ uploader_url == o.uploader_url &&
879
+ version == o.version &&
880
+ version_orig == o.version_orig &&
881
+ vulnerability_scan_results_url == o.vulnerability_scan_results_url
882
+ end
883
+
884
+ # @see the `==` method
885
+ # @param [Object] Object to be compared
886
+ def eql?(o)
887
+ self == o
888
+ end
889
+
890
+ # Calculates hash code according to all attributes.
891
+ # @return [Fixnum] Hash code
892
+ def hash
893
+ [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
894
+ end
895
+
896
+ # Builds the object from hash
897
+ # @param [Hash] attributes Model attributes in the form of hash
898
+ # @return [Object] Returns the model itself
899
+ def build_from_hash(attributes)
900
+ return nil unless attributes.is_a?(Hash)
901
+ self.class.swagger_types.each_pair do |key, type|
902
+ if type =~ /\AArray<(.*)>/i
903
+ # check to ensure the input is an array given that the attribute
904
+ # is documented as an array but the input is not
905
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
906
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
907
+ end
908
+ elsif !attributes[self.class.attribute_map[key]].nil?
909
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
910
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
911
+ end
912
+
913
+ self
914
+ end
915
+
916
+ # Deserializes the data based on type
917
+ # @param string type Data type
918
+ # @param string value Value to be deserialized
919
+ # @return [Object] Deserialized data
920
+ def _deserialize(type, value)
921
+ case type.to_sym
922
+ when :DateTime
923
+ DateTime.parse(value)
924
+ when :Date
925
+ Date.parse(value)
926
+ when :String
927
+ value.to_s
928
+ when :Integer
929
+ value.to_i
930
+ when :Float
931
+ value.to_f
932
+ when :BOOLEAN
933
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
934
+ true
935
+ else
936
+ false
937
+ end
938
+ when :Object
939
+ # generic object (usually a Hash), return directly
940
+ value
941
+ when /\AArray<(?<inner_type>.+)>\z/
942
+ inner_type = Regexp.last_match[:inner_type]
943
+ value.map { |v| _deserialize(inner_type, v) }
944
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
945
+ k_type = Regexp.last_match[:k_type]
946
+ v_type = Regexp.last_match[:v_type]
947
+ {}.tap do |hash|
948
+ value.each do |k, v|
949
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
950
+ end
951
+ end
952
+ else # model
953
+ temp_model = CloudsmithApi.const_get(type).new
954
+ temp_model.build_from_hash(value)
955
+ end
956
+ end
957
+
958
+ # Returns the string representation of the object
959
+ # @return [String] String presentation of the object
960
+ def to_s
961
+ to_hash.to_s
962
+ end
963
+
964
+ # to_body is an alias to to_hash (backward compatibility)
965
+ # @return [Hash] Returns the object in the form of hash
966
+ def to_body
967
+ to_hash
968
+ end
969
+
970
+ # Returns the object in the form of hash
971
+ # @return [Hash] Returns the object in the form of hash
972
+ def to_hash
973
+ hash = {}
974
+ self.class.attribute_map.each_pair do |attr, param|
975
+ value = self.send(attr)
976
+ next if value.nil?
977
+ hash[param] = _to_hash(value)
978
+ end
979
+ hash
980
+ end
981
+
982
+ # Outputs non-array value in the form of hash
983
+ # For object, use to_hash. Otherwise, just return the value
984
+ # @param [Object] value Any valid value
985
+ # @return [Hash] Returns the value in the form of hash
986
+ def _to_hash(value)
987
+ if value.is_a?(Array)
988
+ value.compact.map { |v| _to_hash(v) }
989
+ elsif value.is_a?(Hash)
990
+ {}.tap do |hash|
991
+ value.each { |k, v| hash[k] = _to_hash(v) }
992
+ end
993
+ elsif value.respond_to? :to_hash
994
+ value.to_hash
995
+ else
996
+ value
997
+ end
998
+ end
999
+
1000
+ end
1001
+ end