cloudsmith-api 2.0.11 → 2.0.13

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 (253) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/README.md +23 -5
  4. data/build.json +1 -1
  5. data/docs/AlpinePackageUpload.md +7 -0
  6. data/docs/CargoPackageUpload.md +7 -0
  7. data/docs/CocoapodsPackageUpload.md +7 -0
  8. data/docs/ComposerPackageUpload.md +7 -0
  9. data/docs/ConanPackageUpload.md +7 -0
  10. data/docs/CondaPackageUpload.md +7 -0
  11. data/docs/CranPackageUpload.md +7 -0
  12. data/docs/DartPackageUpload.md +7 -0
  13. data/docs/DebPackageUpload.md +7 -0
  14. data/docs/DockerPackageUpload.md +7 -0
  15. data/docs/GoPackageUpload.md +7 -0
  16. data/docs/HelmPackageUpload.md +7 -0
  17. data/docs/HexPackageUpload.md +7 -0
  18. data/docs/LuarocksPackageUpload.md +7 -0
  19. data/docs/MavenPackageUpload.md +7 -0
  20. data/docs/NpmPackageUpload.md +7 -0
  21. data/docs/NugetPackageUpload.md +7 -0
  22. data/docs/OrganizationMembership.md +1 -1
  23. data/docs/OrgsApi.md +358 -0
  24. data/docs/P2PackageUpload.md +7 -0
  25. data/docs/Package.md +7 -0
  26. data/docs/PackageCopy.md +7 -0
  27. data/docs/PackageMove.md +7 -0
  28. data/docs/PackageQuarantine.md +7 -0
  29. data/docs/PackageResync.md +7 -0
  30. data/docs/PackageStatus.md +7 -0
  31. data/docs/PackageTag.md +7 -0
  32. data/docs/PackagesApi.md +4 -4
  33. data/docs/ProviderSettings.md +14 -0
  34. data/docs/ProviderSettingsRequest.md +12 -0
  35. data/docs/ProviderSettingsRequestPatch.md +12 -0
  36. data/docs/PythonPackageUpload.md +7 -0
  37. data/docs/RawPackageUpload.md +7 -0
  38. data/docs/ReposApi.md +377 -0
  39. data/docs/RpmPackageUpload.md +7 -0
  40. data/docs/RubyPackageUpload.md +7 -0
  41. data/docs/StatusBasic.md +1 -1
  42. data/docs/SwiftPackageUpload.md +8 -1
  43. data/docs/SwiftPackageUploadRequest.md +1 -0
  44. data/docs/SwiftUpstream.md +23 -0
  45. data/docs/SwiftUpstreamRequest.md +20 -0
  46. data/docs/SwiftUpstreamRequestPatch.md +20 -0
  47. data/docs/TerraformPackageUpload.md +7 -0
  48. data/docs/VagrantPackageUpload.md +7 -0
  49. data/lib/cloudsmith-api/api/orgs_api.rb +358 -0
  50. data/lib/cloudsmith-api/api/packages_api.rb +4 -4
  51. data/lib/cloudsmith-api/api/repos_api.rb +395 -0
  52. data/lib/cloudsmith-api/models/alpine_package_upload.rb +64 -1
  53. data/lib/cloudsmith-api/models/cargo_package_upload.rb +64 -1
  54. data/lib/cloudsmith-api/models/cocoapods_package_upload.rb +64 -1
  55. data/lib/cloudsmith-api/models/composer_package_upload.rb +64 -1
  56. data/lib/cloudsmith-api/models/conan_package_upload.rb +64 -1
  57. data/lib/cloudsmith-api/models/conda_package_upload.rb +64 -1
  58. data/lib/cloudsmith-api/models/cran_package_upload.rb +64 -1
  59. data/lib/cloudsmith-api/models/dart_package_upload.rb +64 -1
  60. data/lib/cloudsmith-api/models/deb_package_upload.rb +64 -1
  61. data/lib/cloudsmith-api/models/docker_package_upload.rb +64 -1
  62. data/lib/cloudsmith-api/models/go_package_upload.rb +64 -1
  63. data/lib/cloudsmith-api/models/helm_package_upload.rb +64 -1
  64. data/lib/cloudsmith-api/models/hex_package_upload.rb +64 -1
  65. data/lib/cloudsmith-api/models/luarocks_package_upload.rb +64 -1
  66. data/lib/cloudsmith-api/models/maven_package_upload.rb +64 -1
  67. data/lib/cloudsmith-api/models/npm_package_upload.rb +64 -1
  68. data/lib/cloudsmith-api/models/nuget_package_upload.rb +64 -1
  69. data/lib/cloudsmith-api/models/organization_membership.rb +1 -1
  70. data/lib/cloudsmith-api/models/p2_package_upload.rb +64 -1
  71. data/lib/cloudsmith-api/models/package.rb +64 -1
  72. data/lib/cloudsmith-api/models/package_copy.rb +64 -1
  73. data/lib/cloudsmith-api/models/package_move.rb +64 -1
  74. data/lib/cloudsmith-api/models/package_quarantine.rb +64 -1
  75. data/lib/cloudsmith-api/models/package_resync.rb +64 -1
  76. data/lib/cloudsmith-api/models/package_status.rb +64 -1
  77. data/lib/cloudsmith-api/models/package_tag.rb +64 -1
  78. data/lib/cloudsmith-api/models/provider_settings.rb +272 -0
  79. data/lib/cloudsmith-api/models/provider_settings_request.rb +252 -0
  80. data/lib/cloudsmith-api/models/provider_settings_request_patch.rb +227 -0
  81. data/lib/cloudsmith-api/models/python_package_upload.rb +64 -1
  82. data/lib/cloudsmith-api/models/raw_package_upload.rb +64 -1
  83. data/lib/cloudsmith-api/models/rpm_package_upload.rb +64 -1
  84. data/lib/cloudsmith-api/models/ruby_package_upload.rb +64 -1
  85. data/lib/cloudsmith-api/models/status_basic.rb +1 -1
  86. data/lib/cloudsmith-api/models/swift_package_upload.rb +69 -1
  87. data/lib/cloudsmith-api/models/swift_package_upload_request.rb +16 -1
  88. data/lib/cloudsmith-api/models/swift_upstream.rb +393 -0
  89. data/lib/cloudsmith-api/models/swift_upstream_request.rb +365 -0
  90. data/lib/cloudsmith-api/models/swift_upstream_request_patch.rb +355 -0
  91. data/lib/cloudsmith-api/models/terraform_package_upload.rb +64 -1
  92. data/lib/cloudsmith-api/models/vagrant_package_upload.rb +64 -1
  93. data/lib/cloudsmith-api/version.rb +1 -1
  94. data/lib/cloudsmith-api.rb +6 -0
  95. data/spec/api/orgs_api_spec.rb +81 -0
  96. data/spec/api/packages_api_spec.rb +2 -2
  97. data/spec/api/repos_api_spec.rb +87 -0
  98. data/spec/models/alpine_package_upload_spec.rb +42 -0
  99. data/spec/models/cargo_package_upload_spec.rb +42 -0
  100. data/spec/models/cocoapods_package_upload_spec.rb +42 -0
  101. data/spec/models/composer_package_upload_spec.rb +42 -0
  102. data/spec/models/conan_package_upload_spec.rb +42 -0
  103. data/spec/models/conda_package_upload_spec.rb +42 -0
  104. data/spec/models/cran_package_upload_spec.rb +42 -0
  105. data/spec/models/dart_package_upload_spec.rb +42 -0
  106. data/spec/models/deb_package_upload_spec.rb +42 -0
  107. data/spec/models/docker_package_upload_spec.rb +42 -0
  108. data/spec/models/go_package_upload_spec.rb +42 -0
  109. data/spec/models/helm_package_upload_spec.rb +42 -0
  110. data/spec/models/hex_package_upload_spec.rb +42 -0
  111. data/spec/models/luarocks_package_upload_spec.rb +42 -0
  112. data/spec/models/maven_package_upload_spec.rb +42 -0
  113. data/spec/models/npm_package_upload_spec.rb +42 -0
  114. data/spec/models/nuget_package_upload_spec.rb +42 -0
  115. data/spec/models/p2_package_upload_spec.rb +42 -0
  116. data/spec/models/package_copy_spec.rb +42 -0
  117. data/spec/models/package_move_spec.rb +42 -0
  118. data/spec/models/package_quarantine_spec.rb +42 -0
  119. data/spec/models/package_resync_spec.rb +42 -0
  120. data/spec/models/package_spec.rb +42 -0
  121. data/spec/models/package_status_spec.rb +42 -0
  122. data/spec/models/package_tag_spec.rb +42 -0
  123. data/spec/models/provider_settings_request_patch_spec.rb +65 -0
  124. data/spec/models/provider_settings_request_spec.rb +65 -0
  125. data/spec/models/provider_settings_spec.rb +77 -0
  126. data/spec/models/python_package_upload_spec.rb +42 -0
  127. data/spec/models/raw_package_upload_spec.rb +42 -0
  128. data/spec/models/rpm_package_upload_spec.rb +42 -0
  129. data/spec/models/ruby_package_upload_spec.rb +42 -0
  130. data/spec/models/swift_package_upload_request_spec.rb +6 -0
  131. data/spec/models/swift_package_upload_spec.rb +42 -0
  132. data/spec/models/swift_upstream_request_patch_spec.rb +121 -0
  133. data/spec/models/swift_upstream_request_spec.rb +121 -0
  134. data/spec/models/swift_upstream_spec.rb +139 -0
  135. data/spec/models/terraform_package_upload_spec.rb +42 -0
  136. data/spec/models/vagrant_package_upload_spec.rb +42 -0
  137. data/vendor/bundle/ruby/2.6.0/cache/bigdecimal-3.1.7.gem +0 -0
  138. data/vendor/bundle/ruby/2.6.0/cache/json-2.7.2.gem +0 -0
  139. data/vendor/bundle/ruby/2.6.0/cache/public_suffix-5.0.5.gem +0 -0
  140. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.21/gem_make.out +1 -1
  141. data/vendor/bundle/ruby/2.6.0/{gems/bigdecimal-3.1.6/ext/bigdecimal → extensions/x86_64-linux/2.6.0/bigdecimal-3.1.7}/bigdecimal.so +0 -0
  142. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/gem_make.out +6 -6
  143. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/mkmf.log +10 -10
  144. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.16.3/gem_make.out +2 -2
  145. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.16.3/mkmf.log +1 -1
  146. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.7.1 → json-2.7.2}/gem_make.out +5 -5
  147. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.2/json/ext/generator.so +0 -0
  148. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.2/json/ext/parser.so +0 -0
  149. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.7.1 → json-2.7.2}/mkmf.log +2 -2
  150. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/Makefile +2 -2
  151. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bigdecimal.c +1 -1
  152. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bigdecimal.o +0 -0
  153. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6/lib → bigdecimal-3.1.7/ext/bigdecimal}/bigdecimal.so +0 -0
  154. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing.o +0 -0
  155. data/vendor/bundle/ruby/2.6.0/{extensions/x86_64-linux/2.6.0/bigdecimal-3.1.6 → gems/bigdecimal-3.1.7/lib}/bigdecimal.so +0 -0
  156. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.16.3/ext/ffi_c/Makefile +2 -2
  157. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/README.md +0 -9
  158. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/Makefile +2 -2
  159. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/Makefile +2 -2
  160. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/generator.c +36 -6
  161. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/generator/generator.o +0 -0
  162. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/generator/generator.so +0 -0
  163. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/Makefile +2 -2
  164. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.o +0 -0
  165. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/parser/parser.so +0 -0
  166. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/ostruct.rb +5 -2
  167. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/common.rb +2 -1
  168. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/lib/json/ext/generator.so +0 -0
  169. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/lib/json/ext/parser.so +0 -0
  170. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/generic_object.rb +6 -2
  171. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/version.rb +1 -1
  172. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/CHANGELOG.md +7 -1
  173. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/LICENSE.txt +1 -1
  174. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/README.md +1 -1
  175. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/data/list.txt +239 -80
  176. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix/domain.rb +1 -1
  177. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix/errors.rb +1 -1
  178. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix/list.rb +1 -1
  179. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix/rule.rb +1 -1
  180. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix/version.rb +2 -2
  181. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix.rb +1 -1
  182. data/vendor/bundle/ruby/2.6.0/specifications/{bigdecimal-3.1.6.gemspec → bigdecimal-3.1.7.gemspec} +3 -3
  183. data/vendor/bundle/ruby/2.6.0/specifications/{json-2.7.1.gemspec → json-2.7.2.gemspec} +0 -0
  184. data/vendor/bundle/ruby/2.6.0/specifications/{public_suffix-5.0.4.gemspec → public_suffix-5.0.5.gemspec} +4 -4
  185. metadata +129 -105
  186. data/vendor/bundle/ruby/2.6.0/cache/bigdecimal-3.1.6.gem +0 -0
  187. data/vendor/bundle/ruby/2.6.0/cache/json-2.7.1.gem +0 -0
  188. data/vendor/bundle/ruby/2.6.0/cache/public_suffix-5.0.4.gem +0 -0
  189. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.1/json/ext/generator.so +0 -0
  190. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.1/json/ext/parser.so +0 -0
  191. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/ext/json/ext/generator/generator.o +0 -0
  192. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/ext/json/ext/generator/generator.so +0 -0
  193. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/ext/json/ext/parser/parser.so +0 -0
  194. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/lib/json/ext/generator.so +0 -0
  195. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/lib/json/ext/parser.so +0 -0
  196. /data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/gem.build_complete +0 -0
  197. /data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.7.1 → json-2.7.2}/gem.build_complete +0 -0
  198. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/LICENSE +0 -0
  199. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/bigdecimal.gemspec +0 -0
  200. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/.sitearchdir.time +0 -0
  201. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bigdecimal.h +0 -0
  202. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bits.h +0 -0
  203. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/extconf.rb +0 -0
  204. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/feature.h +0 -0
  205. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing/dtoa.c +0 -0
  206. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing.c +0 -0
  207. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing.h +0 -0
  208. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/static_assert.h +0 -0
  209. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/jacobian.rb +0 -0
  210. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/ludcmp.rb +0 -0
  211. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/math.rb +0 -0
  212. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/newton.rb +0 -0
  213. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/util.rb +0 -0
  214. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal.rb +0 -0
  215. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/sample/linear.rb +0 -0
  216. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/sample/nlsolve.rb +0 -0
  217. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/sample/pi.rb +0 -0
  218. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/CHANGES.md +0 -0
  219. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/LICENSE +0 -0
  220. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/fbuffer/fbuffer.h +0 -0
  221. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/.sitearchdir.-.json.-.ext.time +0 -0
  222. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/depend +0 -0
  223. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/extconf.rb +0 -0
  224. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/generator.h +0 -0
  225. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/.sitearchdir.-.json.-.ext.time +0 -0
  226. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/depend +0 -0
  227. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/extconf.rb +0 -0
  228. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.c +0 -0
  229. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.h +0 -0
  230. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.rl +0 -0
  231. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/extconf.rb +0 -0
  232. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/json.gemspec +0 -0
  233. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/bigdecimal.rb +0 -0
  234. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/complex.rb +0 -0
  235. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/core.rb +0 -0
  236. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/date.rb +0 -0
  237. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/date_time.rb +0 -0
  238. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/exception.rb +0 -0
  239. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/range.rb +0 -0
  240. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/rational.rb +0 -0
  241. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/regexp.rb +0 -0
  242. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/set.rb +0 -0
  243. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/struct.rb +0 -0
  244. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/symbol.rb +0 -0
  245. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/time.rb +0 -0
  246. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/ext.rb +0 -0
  247. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/pure/generator.rb +0 -0
  248. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/pure/parser.rb +0 -0
  249. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/pure.rb +0 -0
  250. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json.rb +0 -0
  251. /data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/.yardopts +0 -0
  252. /data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/2.0-Upgrade.md +0 -0
  253. /data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/SECURITY.md +0 -0
@@ -0,0 +1,365 @@
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.26
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudsmithApi
16
+ class SwiftUpstreamRequest
17
+ # The authentication mode to use when accessing this upstream.
18
+ attr_accessor :auth_mode
19
+
20
+ # Secret to provide with requests to upstream.
21
+ attr_accessor :auth_secret
22
+
23
+ # Username to provide with requests to upstream.
24
+ attr_accessor :auth_username
25
+
26
+ # The key for extra header #1 to send to upstream.
27
+ attr_accessor :extra_header_1
28
+
29
+ # The key for extra header #2 to send to upstream.
30
+ attr_accessor :extra_header_2
31
+
32
+ # The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted.
33
+ attr_accessor :extra_value_1
34
+
35
+ # The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted.
36
+ attr_accessor :extra_value_2
37
+
38
+ # Whether or not this upstream is active and ready for requests.
39
+ attr_accessor :is_active
40
+
41
+ # The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode.
42
+ attr_accessor :mode
43
+
44
+ # A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream.
45
+ attr_accessor :name
46
+
47
+ # Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date.
48
+ attr_accessor :priority
49
+
50
+ # The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository.
51
+ attr_accessor :upstream_url
52
+
53
+ # If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams.
54
+ attr_accessor :verify_ssl
55
+
56
+ class EnumAttributeValidator
57
+ attr_reader :datatype
58
+ attr_reader :allowable_values
59
+
60
+ def initialize(datatype, allowable_values)
61
+ @allowable_values = allowable_values.map do |value|
62
+ case datatype.to_s
63
+ when /Integer/i
64
+ value.to_i
65
+ when /Float/i
66
+ value.to_f
67
+ else
68
+ value
69
+ end
70
+ end
71
+ end
72
+
73
+ def valid?(value)
74
+ !value || allowable_values.include?(value)
75
+ end
76
+ end
77
+
78
+ # Attribute mapping from ruby-style variable name to JSON key.
79
+ def self.attribute_map
80
+ {
81
+ :'auth_mode' => :'auth_mode',
82
+ :'auth_secret' => :'auth_secret',
83
+ :'auth_username' => :'auth_username',
84
+ :'extra_header_1' => :'extra_header_1',
85
+ :'extra_header_2' => :'extra_header_2',
86
+ :'extra_value_1' => :'extra_value_1',
87
+ :'extra_value_2' => :'extra_value_2',
88
+ :'is_active' => :'is_active',
89
+ :'mode' => :'mode',
90
+ :'name' => :'name',
91
+ :'priority' => :'priority',
92
+ :'upstream_url' => :'upstream_url',
93
+ :'verify_ssl' => :'verify_ssl'
94
+ }
95
+ end
96
+
97
+ # Attribute type mapping.
98
+ def self.swagger_types
99
+ {
100
+ :'auth_mode' => :'String',
101
+ :'auth_secret' => :'String',
102
+ :'auth_username' => :'String',
103
+ :'extra_header_1' => :'String',
104
+ :'extra_header_2' => :'String',
105
+ :'extra_value_1' => :'String',
106
+ :'extra_value_2' => :'String',
107
+ :'is_active' => :'BOOLEAN',
108
+ :'mode' => :'String',
109
+ :'name' => :'String',
110
+ :'priority' => :'Integer',
111
+ :'upstream_url' => :'String',
112
+ :'verify_ssl' => :'BOOLEAN'
113
+ }
114
+ end
115
+
116
+ # Initializes the object
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ def initialize(attributes = {})
119
+ return unless attributes.is_a?(Hash)
120
+
121
+ # convert string to symbol for hash key
122
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
123
+
124
+ if attributes.has_key?(:'auth_mode')
125
+ self.auth_mode = attributes[:'auth_mode']
126
+ else
127
+ self.auth_mode = 'None'
128
+ end
129
+
130
+ if attributes.has_key?(:'auth_secret')
131
+ self.auth_secret = attributes[:'auth_secret']
132
+ end
133
+
134
+ if attributes.has_key?(:'auth_username')
135
+ self.auth_username = attributes[:'auth_username']
136
+ end
137
+
138
+ if attributes.has_key?(:'extra_header_1')
139
+ self.extra_header_1 = attributes[:'extra_header_1']
140
+ end
141
+
142
+ if attributes.has_key?(:'extra_header_2')
143
+ self.extra_header_2 = attributes[:'extra_header_2']
144
+ end
145
+
146
+ if attributes.has_key?(:'extra_value_1')
147
+ self.extra_value_1 = attributes[:'extra_value_1']
148
+ end
149
+
150
+ if attributes.has_key?(:'extra_value_2')
151
+ self.extra_value_2 = attributes[:'extra_value_2']
152
+ end
153
+
154
+ if attributes.has_key?(:'is_active')
155
+ self.is_active = attributes[:'is_active']
156
+ end
157
+
158
+ if attributes.has_key?(:'mode')
159
+ self.mode = attributes[:'mode']
160
+ else
161
+ self.mode = 'Proxy Only'
162
+ end
163
+
164
+ if attributes.has_key?(:'name')
165
+ self.name = attributes[:'name']
166
+ end
167
+
168
+ if attributes.has_key?(:'priority')
169
+ self.priority = attributes[:'priority']
170
+ end
171
+
172
+ if attributes.has_key?(:'upstream_url')
173
+ self.upstream_url = attributes[:'upstream_url']
174
+ end
175
+
176
+ if attributes.has_key?(:'verify_ssl')
177
+ self.verify_ssl = attributes[:'verify_ssl']
178
+ end
179
+ end
180
+
181
+ # Show invalid properties with the reasons. Usually used together with valid?
182
+ # @return Array for valid properties with the reasons
183
+ def list_invalid_properties
184
+ invalid_properties = Array.new
185
+ if @name.nil?
186
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
187
+ end
188
+
189
+ if @upstream_url.nil?
190
+ invalid_properties.push('invalid value for "upstream_url", upstream_url cannot be nil.')
191
+ end
192
+
193
+ invalid_properties
194
+ end
195
+
196
+ # Check to see if the all the properties in the model are valid
197
+ # @return true if the model is valid
198
+ def valid?
199
+ auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
200
+ return false unless auth_mode_validator.valid?(@auth_mode)
201
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only'])
202
+ return false unless mode_validator.valid?(@mode)
203
+ return false if @name.nil?
204
+ return false if @upstream_url.nil?
205
+ true
206
+ end
207
+
208
+ # Custom attribute writer method checking allowed values (enum).
209
+ # @param [Object] auth_mode Object to be assigned
210
+ def auth_mode=(auth_mode)
211
+ validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
212
+ unless validator.valid?(auth_mode)
213
+ fail ArgumentError, 'invalid value for "auth_mode", must be one of #{validator.allowable_values}.'
214
+ end
215
+ @auth_mode = auth_mode
216
+ end
217
+
218
+ # Custom attribute writer method checking allowed values (enum).
219
+ # @param [Object] mode Object to be assigned
220
+ def mode=(mode)
221
+ validator = EnumAttributeValidator.new('String', ['Proxy Only'])
222
+ unless validator.valid?(mode)
223
+ fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
224
+ end
225
+ @mode = mode
226
+ end
227
+
228
+ # Checks equality by comparing each attribute.
229
+ # @param [Object] Object to be compared
230
+ def ==(o)
231
+ return true if self.equal?(o)
232
+ self.class == o.class &&
233
+ auth_mode == o.auth_mode &&
234
+ auth_secret == o.auth_secret &&
235
+ auth_username == o.auth_username &&
236
+ extra_header_1 == o.extra_header_1 &&
237
+ extra_header_2 == o.extra_header_2 &&
238
+ extra_value_1 == o.extra_value_1 &&
239
+ extra_value_2 == o.extra_value_2 &&
240
+ is_active == o.is_active &&
241
+ mode == o.mode &&
242
+ name == o.name &&
243
+ priority == o.priority &&
244
+ upstream_url == o.upstream_url &&
245
+ verify_ssl == o.verify_ssl
246
+ end
247
+
248
+ # @see the `==` method
249
+ # @param [Object] Object to be compared
250
+ def eql?(o)
251
+ self == o
252
+ end
253
+
254
+ # Calculates hash code according to all attributes.
255
+ # @return [Fixnum] Hash code
256
+ def hash
257
+ [auth_mode, auth_secret, auth_username, extra_header_1, extra_header_2, extra_value_1, extra_value_2, is_active, mode, name, priority, upstream_url, verify_ssl].hash
258
+ end
259
+
260
+ # Builds the object from hash
261
+ # @param [Hash] attributes Model attributes in the form of hash
262
+ # @return [Object] Returns the model itself
263
+ def build_from_hash(attributes)
264
+ return nil unless attributes.is_a?(Hash)
265
+ self.class.swagger_types.each_pair do |key, type|
266
+ if type =~ /\AArray<(.*)>/i
267
+ # check to ensure the input is an array given that the attribute
268
+ # is documented as an array but the input is not
269
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
270
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
271
+ end
272
+ elsif !attributes[self.class.attribute_map[key]].nil?
273
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
274
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
275
+ end
276
+
277
+ self
278
+ end
279
+
280
+ # Deserializes the data based on type
281
+ # @param string type Data type
282
+ # @param string value Value to be deserialized
283
+ # @return [Object] Deserialized data
284
+ def _deserialize(type, value)
285
+ case type.to_sym
286
+ when :DateTime
287
+ DateTime.parse(value)
288
+ when :Date
289
+ Date.parse(value)
290
+ when :String
291
+ value.to_s
292
+ when :Integer
293
+ value.to_i
294
+ when :Float
295
+ value.to_f
296
+ when :BOOLEAN
297
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
298
+ true
299
+ else
300
+ false
301
+ end
302
+ when :Object
303
+ # generic object (usually a Hash), return directly
304
+ value
305
+ when /\AArray<(?<inner_type>.+)>\z/
306
+ inner_type = Regexp.last_match[:inner_type]
307
+ value.map { |v| _deserialize(inner_type, v) }
308
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
309
+ k_type = Regexp.last_match[:k_type]
310
+ v_type = Regexp.last_match[:v_type]
311
+ {}.tap do |hash|
312
+ value.each do |k, v|
313
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
314
+ end
315
+ end
316
+ else # model
317
+ temp_model = CloudsmithApi.const_get(type).new
318
+ temp_model.build_from_hash(value)
319
+ end
320
+ end
321
+
322
+ # Returns the string representation of the object
323
+ # @return [String] String presentation of the object
324
+ def to_s
325
+ to_hash.to_s
326
+ end
327
+
328
+ # to_body is an alias to to_hash (backward compatibility)
329
+ # @return [Hash] Returns the object in the form of hash
330
+ def to_body
331
+ to_hash
332
+ end
333
+
334
+ # Returns the object in the form of hash
335
+ # @return [Hash] Returns the object in the form of hash
336
+ def to_hash
337
+ hash = {}
338
+ self.class.attribute_map.each_pair do |attr, param|
339
+ value = self.send(attr)
340
+ next if value.nil?
341
+ hash[param] = _to_hash(value)
342
+ end
343
+ hash
344
+ end
345
+
346
+ # Outputs non-array value in the form of hash
347
+ # For object, use to_hash. Otherwise, just return the value
348
+ # @param [Object] value Any valid value
349
+ # @return [Hash] Returns the value in the form of hash
350
+ def _to_hash(value)
351
+ if value.is_a?(Array)
352
+ value.compact.map { |v| _to_hash(v) }
353
+ elsif value.is_a?(Hash)
354
+ {}.tap do |hash|
355
+ value.each { |k, v| hash[k] = _to_hash(v) }
356
+ end
357
+ elsif value.respond_to? :to_hash
358
+ value.to_hash
359
+ else
360
+ value
361
+ end
362
+ end
363
+
364
+ end
365
+ end