cloudsmith-api 2.0.10 → 2.0.12

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 (182) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +13 -4
  4. data/build.json +1 -1
  5. data/docs/ReposApi.md +377 -0
  6. data/docs/StatusBasic.md +1 -1
  7. data/docs/SwiftPackageUpload.md +7 -2
  8. data/docs/SwiftPackageUploadRequest.md +7 -0
  9. data/docs/SwiftUpstream.md +23 -0
  10. data/docs/SwiftUpstreamRequest.md +20 -0
  11. data/docs/SwiftUpstreamRequestPatch.md +20 -0
  12. data/lib/cloudsmith-api/api/repos_api.rb +395 -0
  13. data/lib/cloudsmith-api/models/status_basic.rb +1 -1
  14. data/lib/cloudsmith-api/models/swift_package_upload.rb +62 -1
  15. data/lib/cloudsmith-api/models/swift_package_upload_request.rb +81 -1
  16. data/lib/cloudsmith-api/models/swift_upstream.rb +393 -0
  17. data/lib/cloudsmith-api/models/swift_upstream_request.rb +365 -0
  18. data/lib/cloudsmith-api/models/swift_upstream_request_patch.rb +355 -0
  19. data/lib/cloudsmith-api/version.rb +1 -1
  20. data/lib/cloudsmith-api.rb +3 -0
  21. data/spec/api/repos_api_spec.rb +87 -0
  22. data/spec/models/swift_package_upload_request_spec.rb +42 -0
  23. data/spec/models/swift_package_upload_spec.rb +30 -0
  24. data/spec/models/swift_upstream_request_patch_spec.rb +121 -0
  25. data/spec/models/swift_upstream_request_spec.rb +121 -0
  26. data/spec/models/swift_upstream_spec.rb +139 -0
  27. data/vendor/bundle/ruby/2.6.0/cache/bigdecimal-3.1.7.gem +0 -0
  28. data/vendor/bundle/ruby/2.6.0/cache/json-2.7.2.gem +0 -0
  29. data/vendor/bundle/ruby/2.6.0/cache/public_suffix-5.0.5.gem +0 -0
  30. data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.13.1.gem +0 -0
  31. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.21/gem_make.out +1 -1
  32. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/bigdecimal.so +0 -0
  33. 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
  34. 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
  35. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.16.3/gem_make.out +2 -2
  36. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.16.3/mkmf.log +1 -1
  37. 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
  38. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.2/json/ext/generator.so +0 -0
  39. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.2/json/ext/parser.so +0 -0
  40. 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
  41. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/Makefile +2 -2
  42. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bigdecimal.c +1 -1
  43. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bigdecimal.o +0 -0
  44. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bigdecimal.so +0 -0
  45. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing.o +0 -0
  46. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal.so +0 -0
  47. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.16.3/ext/ffi_c/Makefile +2 -2
  48. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/README.md +0 -9
  49. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/Makefile +2 -2
  50. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/Makefile +2 -2
  51. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/generator.c +36 -6
  52. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/generator/generator.o +0 -0
  53. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/generator/generator.so +0 -0
  54. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/Makefile +2 -2
  55. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.o +0 -0
  56. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/parser/parser.so +0 -0
  57. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/ostruct.rb +5 -2
  58. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/common.rb +2 -1
  59. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/lib/json/ext/generator.so +0 -0
  60. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/lib/json/ext/parser.so +0 -0
  61. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/generic_object.rb +6 -2
  62. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/version.rb +1 -1
  63. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/CHANGELOG.md +7 -1
  64. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/LICENSE.txt +1 -1
  65. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/README.md +1 -1
  66. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/data/list.txt +239 -80
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix.rb +1 -1
  73. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/Changelog.md +9 -1
  74. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/caller_filter.rb +1 -1
  75. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/version.rb +1 -1
  76. data/vendor/bundle/ruby/2.6.0/specifications/{bigdecimal-3.1.6.gemspec → bigdecimal-3.1.7.gemspec} +3 -3
  77. data/vendor/bundle/ruby/2.6.0/specifications/{json-2.7.1.gemspec → json-2.7.2.gemspec} +0 -0
  78. data/vendor/bundle/ruby/2.6.0/specifications/{public_suffix-5.0.4.gemspec → public_suffix-5.0.5.gemspec} +4 -4
  79. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-support-3.13.0.gemspec → rspec-support-3.13.1.gemspec} +5 -5
  80. metadata +154 -142
  81. data/vendor/bundle/ruby/2.6.0/cache/bigdecimal-3.1.6.gem +0 -0
  82. data/vendor/bundle/ruby/2.6.0/cache/json-2.7.1.gem +0 -0
  83. data/vendor/bundle/ruby/2.6.0/cache/public_suffix-5.0.4.gem +0 -0
  84. data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.13.0.gem +0 -0
  85. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.1/json/ext/generator.so +0 -0
  86. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.1/json/ext/parser.so +0 -0
  87. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/ext/json/ext/generator/generator.o +0 -0
  88. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/ext/json/ext/generator/generator.so +0 -0
  89. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/ext/json/ext/parser/parser.so +0 -0
  90. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/lib/json/ext/generator.so +0 -0
  91. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/lib/json/ext/parser.so +0 -0
  92. /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
  93. /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
  94. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/LICENSE +0 -0
  95. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/bigdecimal.gemspec +0 -0
  96. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/.sitearchdir.time +0 -0
  97. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bigdecimal.h +0 -0
  98. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bits.h +0 -0
  99. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/extconf.rb +0 -0
  100. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/feature.h +0 -0
  101. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing/dtoa.c +0 -0
  102. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing.c +0 -0
  103. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing.h +0 -0
  104. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/static_assert.h +0 -0
  105. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/jacobian.rb +0 -0
  106. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/ludcmp.rb +0 -0
  107. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/math.rb +0 -0
  108. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/newton.rb +0 -0
  109. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/util.rb +0 -0
  110. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal.rb +0 -0
  111. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/sample/linear.rb +0 -0
  112. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/sample/nlsolve.rb +0 -0
  113. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/sample/pi.rb +0 -0
  114. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/CHANGES.md +0 -0
  115. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/LICENSE +0 -0
  116. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/fbuffer/fbuffer.h +0 -0
  117. /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
  118. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/depend +0 -0
  119. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/extconf.rb +0 -0
  120. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/generator.h +0 -0
  121. /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
  122. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/depend +0 -0
  123. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/extconf.rb +0 -0
  124. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.c +0 -0
  125. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.h +0 -0
  126. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.rl +0 -0
  127. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/extconf.rb +0 -0
  128. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/json.gemspec +0 -0
  129. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/bigdecimal.rb +0 -0
  130. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/complex.rb +0 -0
  131. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/core.rb +0 -0
  132. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/date.rb +0 -0
  133. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/date_time.rb +0 -0
  134. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/exception.rb +0 -0
  135. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/range.rb +0 -0
  136. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/rational.rb +0 -0
  137. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/regexp.rb +0 -0
  138. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/set.rb +0 -0
  139. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/struct.rb +0 -0
  140. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/symbol.rb +0 -0
  141. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/time.rb +0 -0
  142. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/ext.rb +0 -0
  143. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/pure/generator.rb +0 -0
  144. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/pure/parser.rb +0 -0
  145. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/pure.rb +0 -0
  146. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json.rb +0 -0
  147. /data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/.yardopts +0 -0
  148. /data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/2.0-Upgrade.md +0 -0
  149. /data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/SECURITY.md +0 -0
  150. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/LICENSE.md +0 -0
  151. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/README.md +0 -0
  152. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/comparable_version.rb +0 -0
  153. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/differ.rb +0 -0
  154. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/directory_maker.rb +0 -0
  155. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/encoded_string.rb +0 -0
  156. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/fuzzy_matcher.rb +0 -0
  157. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/hunk_generator.rb +0 -0
  158. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/matcher_definition.rb +0 -0
  159. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/method_signature_verifier.rb +0 -0
  160. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/mutex.rb +0 -0
  161. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/object_formatter.rb +0 -0
  162. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/recursive_const_methods.rb +0 -0
  163. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/reentrant_mutex.rb +0 -0
  164. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/ruby_features.rb +0 -0
  165. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/source/location.rb +0 -0
  166. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/source/node.rb +0 -0
  167. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/source/token.rb +0 -0
  168. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/source.rb +0 -0
  169. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/deprecation_helpers.rb +0 -0
  170. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/diff_helpers.rb +0 -0
  171. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/formatting_support.rb +0 -0
  172. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/in_sub_process.rb +0 -0
  173. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/library_wide_checks.rb +0 -0
  174. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/shell_out.rb +0 -0
  175. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/stderr_splitter.rb +0 -0
  176. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/string_matcher.rb +0 -0
  177. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/with_isolated_directory.rb +0 -0
  178. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/with_isolated_stderr.rb +0 -0
  179. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec.rb +0 -0
  180. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/warnings.rb +0 -0
  181. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/with_keywords_when_needed.rb +0 -0
  182. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support.rb +0 -0
@@ -14,12 +14,33 @@ require 'date'
14
14
 
15
15
  module CloudsmithApi
16
16
  class SwiftPackageUploadRequest
17
+ # The name of the author of the package.
18
+ attr_accessor :author_name
19
+
20
+ # The organization of the author.
21
+ attr_accessor :author_org
22
+
23
+ # The license URL of this package.
24
+ attr_accessor :license_url
25
+
26
+ # The name of this package.
27
+ attr_accessor :name
28
+
17
29
  # The primary file for the package.
18
30
  attr_accessor :package_file
19
31
 
32
+ # The URL of the readme for the package.
33
+ attr_accessor :readme_url
34
+
35
+ # The URL of the SCM repository for the package.
36
+ attr_accessor :repository_url
37
+
20
38
  # If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
21
39
  attr_accessor :republish
22
40
 
41
+ # A scope provides a namespace for related packages within the package registry.
42
+ attr_accessor :scope
43
+
23
44
  # A comma-separated values list of tags to add to the package.
24
45
  attr_accessor :tags
25
46
 
@@ -29,8 +50,15 @@ class SwiftPackageUploadRequest
29
50
  # Attribute mapping from ruby-style variable name to JSON key.
30
51
  def self.attribute_map
31
52
  {
53
+ :'author_name' => :'author_name',
54
+ :'author_org' => :'author_org',
55
+ :'license_url' => :'license_url',
56
+ :'name' => :'name',
32
57
  :'package_file' => :'package_file',
58
+ :'readme_url' => :'readme_url',
59
+ :'repository_url' => :'repository_url',
33
60
  :'republish' => :'republish',
61
+ :'scope' => :'scope',
34
62
  :'tags' => :'tags',
35
63
  :'version' => :'version'
36
64
  }
@@ -39,8 +67,15 @@ class SwiftPackageUploadRequest
39
67
  # Attribute type mapping.
40
68
  def self.swagger_types
41
69
  {
70
+ :'author_name' => :'String',
71
+ :'author_org' => :'String',
72
+ :'license_url' => :'String',
73
+ :'name' => :'String',
42
74
  :'package_file' => :'String',
75
+ :'readme_url' => :'String',
76
+ :'repository_url' => :'String',
43
77
  :'republish' => :'BOOLEAN',
78
+ :'scope' => :'String',
44
79
  :'tags' => :'String',
45
80
  :'version' => :'String'
46
81
  }
@@ -54,14 +89,42 @@ class SwiftPackageUploadRequest
54
89
  # convert string to symbol for hash key
55
90
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
56
91
 
92
+ if attributes.has_key?(:'author_name')
93
+ self.author_name = attributes[:'author_name']
94
+ end
95
+
96
+ if attributes.has_key?(:'author_org')
97
+ self.author_org = attributes[:'author_org']
98
+ end
99
+
100
+ if attributes.has_key?(:'license_url')
101
+ self.license_url = attributes[:'license_url']
102
+ end
103
+
104
+ if attributes.has_key?(:'name')
105
+ self.name = attributes[:'name']
106
+ end
107
+
57
108
  if attributes.has_key?(:'package_file')
58
109
  self.package_file = attributes[:'package_file']
59
110
  end
60
111
 
112
+ if attributes.has_key?(:'readme_url')
113
+ self.readme_url = attributes[:'readme_url']
114
+ end
115
+
116
+ if attributes.has_key?(:'repository_url')
117
+ self.repository_url = attributes[:'repository_url']
118
+ end
119
+
61
120
  if attributes.has_key?(:'republish')
62
121
  self.republish = attributes[:'republish']
63
122
  end
64
123
 
124
+ if attributes.has_key?(:'scope')
125
+ self.scope = attributes[:'scope']
126
+ end
127
+
65
128
  if attributes.has_key?(:'tags')
66
129
  self.tags = attributes[:'tags']
67
130
  end
@@ -75,10 +138,18 @@ class SwiftPackageUploadRequest
75
138
  # @return Array for valid properties with the reasons
76
139
  def list_invalid_properties
77
140
  invalid_properties = Array.new
141
+ if @name.nil?
142
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
143
+ end
144
+
78
145
  if @package_file.nil?
79
146
  invalid_properties.push('invalid value for "package_file", package_file cannot be nil.')
80
147
  end
81
148
 
149
+ if @scope.nil?
150
+ invalid_properties.push('invalid value for "scope", scope cannot be nil.')
151
+ end
152
+
82
153
  if @version.nil?
83
154
  invalid_properties.push('invalid value for "version", version cannot be nil.')
84
155
  end
@@ -89,7 +160,9 @@ class SwiftPackageUploadRequest
89
160
  # Check to see if the all the properties in the model are valid
90
161
  # @return true if the model is valid
91
162
  def valid?
163
+ return false if @name.nil?
92
164
  return false if @package_file.nil?
165
+ return false if @scope.nil?
93
166
  return false if @version.nil?
94
167
  true
95
168
  end
@@ -99,8 +172,15 @@ class SwiftPackageUploadRequest
99
172
  def ==(o)
100
173
  return true if self.equal?(o)
101
174
  self.class == o.class &&
175
+ author_name == o.author_name &&
176
+ author_org == o.author_org &&
177
+ license_url == o.license_url &&
178
+ name == o.name &&
102
179
  package_file == o.package_file &&
180
+ readme_url == o.readme_url &&
181
+ repository_url == o.repository_url &&
103
182
  republish == o.republish &&
183
+ scope == o.scope &&
104
184
  tags == o.tags &&
105
185
  version == o.version
106
186
  end
@@ -114,7 +194,7 @@ class SwiftPackageUploadRequest
114
194
  # Calculates hash code according to all attributes.
115
195
  # @return [Fixnum] Hash code
116
196
  def hash
117
- [package_file, republish, tags, version].hash
197
+ [author_name, author_org, license_url, name, package_file, readme_url, repository_url, republish, scope, tags, version].hash
118
198
  end
119
199
 
120
200
  # Builds the object from hash
@@ -0,0 +1,393 @@
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 SwiftUpstream
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 datetime the upstream source was created.
27
+ attr_accessor :created_at
28
+
29
+ # The key for extra header #1 to send to upstream.
30
+ attr_accessor :extra_header_1
31
+
32
+ # The key for extra header #2 to send to upstream.
33
+ attr_accessor :extra_header_2
34
+
35
+ # The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted.
36
+ attr_accessor :extra_value_1
37
+
38
+ # The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted.
39
+ attr_accessor :extra_value_2
40
+
41
+ # Whether or not this upstream is active and ready for requests.
42
+ attr_accessor :is_active
43
+
44
+ # 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.
45
+ attr_accessor :mode
46
+
47
+ # A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream.
48
+ attr_accessor :name
49
+
50
+ # Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date.
51
+ attr_accessor :priority
52
+
53
+ attr_accessor :slug_perm
54
+
55
+ attr_accessor :updated_at
56
+
57
+ # 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.
58
+ attr_accessor :upstream_url
59
+
60
+ # 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.
61
+ attr_accessor :verify_ssl
62
+
63
+ class EnumAttributeValidator
64
+ attr_reader :datatype
65
+ attr_reader :allowable_values
66
+
67
+ def initialize(datatype, allowable_values)
68
+ @allowable_values = allowable_values.map do |value|
69
+ case datatype.to_s
70
+ when /Integer/i
71
+ value.to_i
72
+ when /Float/i
73
+ value.to_f
74
+ else
75
+ value
76
+ end
77
+ end
78
+ end
79
+
80
+ def valid?(value)
81
+ !value || allowable_values.include?(value)
82
+ end
83
+ end
84
+
85
+ # Attribute mapping from ruby-style variable name to JSON key.
86
+ def self.attribute_map
87
+ {
88
+ :'auth_mode' => :'auth_mode',
89
+ :'auth_secret' => :'auth_secret',
90
+ :'auth_username' => :'auth_username',
91
+ :'created_at' => :'created_at',
92
+ :'extra_header_1' => :'extra_header_1',
93
+ :'extra_header_2' => :'extra_header_2',
94
+ :'extra_value_1' => :'extra_value_1',
95
+ :'extra_value_2' => :'extra_value_2',
96
+ :'is_active' => :'is_active',
97
+ :'mode' => :'mode',
98
+ :'name' => :'name',
99
+ :'priority' => :'priority',
100
+ :'slug_perm' => :'slug_perm',
101
+ :'updated_at' => :'updated_at',
102
+ :'upstream_url' => :'upstream_url',
103
+ :'verify_ssl' => :'verify_ssl'
104
+ }
105
+ end
106
+
107
+ # Attribute type mapping.
108
+ def self.swagger_types
109
+ {
110
+ :'auth_mode' => :'String',
111
+ :'auth_secret' => :'String',
112
+ :'auth_username' => :'String',
113
+ :'created_at' => :'DateTime',
114
+ :'extra_header_1' => :'String',
115
+ :'extra_header_2' => :'String',
116
+ :'extra_value_1' => :'String',
117
+ :'extra_value_2' => :'String',
118
+ :'is_active' => :'BOOLEAN',
119
+ :'mode' => :'String',
120
+ :'name' => :'String',
121
+ :'priority' => :'Integer',
122
+ :'slug_perm' => :'String',
123
+ :'updated_at' => :'DateTime',
124
+ :'upstream_url' => :'String',
125
+ :'verify_ssl' => :'BOOLEAN'
126
+ }
127
+ end
128
+
129
+ # Initializes the object
130
+ # @param [Hash] attributes Model attributes in the form of hash
131
+ def initialize(attributes = {})
132
+ return unless attributes.is_a?(Hash)
133
+
134
+ # convert string to symbol for hash key
135
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
136
+
137
+ if attributes.has_key?(:'auth_mode')
138
+ self.auth_mode = attributes[:'auth_mode']
139
+ else
140
+ self.auth_mode = 'None'
141
+ end
142
+
143
+ if attributes.has_key?(:'auth_secret')
144
+ self.auth_secret = attributes[:'auth_secret']
145
+ end
146
+
147
+ if attributes.has_key?(:'auth_username')
148
+ self.auth_username = attributes[:'auth_username']
149
+ end
150
+
151
+ if attributes.has_key?(:'created_at')
152
+ self.created_at = attributes[:'created_at']
153
+ end
154
+
155
+ if attributes.has_key?(:'extra_header_1')
156
+ self.extra_header_1 = attributes[:'extra_header_1']
157
+ end
158
+
159
+ if attributes.has_key?(:'extra_header_2')
160
+ self.extra_header_2 = attributes[:'extra_header_2']
161
+ end
162
+
163
+ if attributes.has_key?(:'extra_value_1')
164
+ self.extra_value_1 = attributes[:'extra_value_1']
165
+ end
166
+
167
+ if attributes.has_key?(:'extra_value_2')
168
+ self.extra_value_2 = attributes[:'extra_value_2']
169
+ end
170
+
171
+ if attributes.has_key?(:'is_active')
172
+ self.is_active = attributes[:'is_active']
173
+ end
174
+
175
+ if attributes.has_key?(:'mode')
176
+ self.mode = attributes[:'mode']
177
+ else
178
+ self.mode = 'Proxy Only'
179
+ end
180
+
181
+ if attributes.has_key?(:'name')
182
+ self.name = attributes[:'name']
183
+ end
184
+
185
+ if attributes.has_key?(:'priority')
186
+ self.priority = attributes[:'priority']
187
+ end
188
+
189
+ if attributes.has_key?(:'slug_perm')
190
+ self.slug_perm = attributes[:'slug_perm']
191
+ end
192
+
193
+ if attributes.has_key?(:'updated_at')
194
+ self.updated_at = attributes[:'updated_at']
195
+ end
196
+
197
+ if attributes.has_key?(:'upstream_url')
198
+ self.upstream_url = attributes[:'upstream_url']
199
+ end
200
+
201
+ if attributes.has_key?(:'verify_ssl')
202
+ self.verify_ssl = attributes[:'verify_ssl']
203
+ end
204
+ end
205
+
206
+ # Show invalid properties with the reasons. Usually used together with valid?
207
+ # @return Array for valid properties with the reasons
208
+ def list_invalid_properties
209
+ invalid_properties = Array.new
210
+ if @name.nil?
211
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
212
+ end
213
+
214
+ if @upstream_url.nil?
215
+ invalid_properties.push('invalid value for "upstream_url", upstream_url cannot be nil.')
216
+ end
217
+
218
+ invalid_properties
219
+ end
220
+
221
+ # Check to see if the all the properties in the model are valid
222
+ # @return true if the model is valid
223
+ def valid?
224
+ auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
225
+ return false unless auth_mode_validator.valid?(@auth_mode)
226
+ mode_validator = EnumAttributeValidator.new('String', ['Proxy Only'])
227
+ return false unless mode_validator.valid?(@mode)
228
+ return false if @name.nil?
229
+ return false if @upstream_url.nil?
230
+ true
231
+ end
232
+
233
+ # Custom attribute writer method checking allowed values (enum).
234
+ # @param [Object] auth_mode Object to be assigned
235
+ def auth_mode=(auth_mode)
236
+ validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
237
+ unless validator.valid?(auth_mode)
238
+ fail ArgumentError, 'invalid value for "auth_mode", must be one of #{validator.allowable_values}.'
239
+ end
240
+ @auth_mode = auth_mode
241
+ end
242
+
243
+ # Custom attribute writer method checking allowed values (enum).
244
+ # @param [Object] mode Object to be assigned
245
+ def mode=(mode)
246
+ validator = EnumAttributeValidator.new('String', ['Proxy Only'])
247
+ unless validator.valid?(mode)
248
+ fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
249
+ end
250
+ @mode = mode
251
+ end
252
+
253
+ # Checks equality by comparing each attribute.
254
+ # @param [Object] Object to be compared
255
+ def ==(o)
256
+ return true if self.equal?(o)
257
+ self.class == o.class &&
258
+ auth_mode == o.auth_mode &&
259
+ auth_secret == o.auth_secret &&
260
+ auth_username == o.auth_username &&
261
+ created_at == o.created_at &&
262
+ extra_header_1 == o.extra_header_1 &&
263
+ extra_header_2 == o.extra_header_2 &&
264
+ extra_value_1 == o.extra_value_1 &&
265
+ extra_value_2 == o.extra_value_2 &&
266
+ is_active == o.is_active &&
267
+ mode == o.mode &&
268
+ name == o.name &&
269
+ priority == o.priority &&
270
+ slug_perm == o.slug_perm &&
271
+ updated_at == o.updated_at &&
272
+ upstream_url == o.upstream_url &&
273
+ verify_ssl == o.verify_ssl
274
+ end
275
+
276
+ # @see the `==` method
277
+ # @param [Object] Object to be compared
278
+ def eql?(o)
279
+ self == o
280
+ end
281
+
282
+ # Calculates hash code according to all attributes.
283
+ # @return [Fixnum] Hash code
284
+ def hash
285
+ [auth_mode, auth_secret, auth_username, created_at, extra_header_1, extra_header_2, extra_value_1, extra_value_2, is_active, mode, name, priority, slug_perm, updated_at, upstream_url, verify_ssl].hash
286
+ end
287
+
288
+ # Builds the object from hash
289
+ # @param [Hash] attributes Model attributes in the form of hash
290
+ # @return [Object] Returns the model itself
291
+ def build_from_hash(attributes)
292
+ return nil unless attributes.is_a?(Hash)
293
+ self.class.swagger_types.each_pair do |key, type|
294
+ if type =~ /\AArray<(.*)>/i
295
+ # check to ensure the input is an array given that the attribute
296
+ # is documented as an array but the input is not
297
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
298
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
299
+ end
300
+ elsif !attributes[self.class.attribute_map[key]].nil?
301
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
302
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
303
+ end
304
+
305
+ self
306
+ end
307
+
308
+ # Deserializes the data based on type
309
+ # @param string type Data type
310
+ # @param string value Value to be deserialized
311
+ # @return [Object] Deserialized data
312
+ def _deserialize(type, value)
313
+ case type.to_sym
314
+ when :DateTime
315
+ DateTime.parse(value)
316
+ when :Date
317
+ Date.parse(value)
318
+ when :String
319
+ value.to_s
320
+ when :Integer
321
+ value.to_i
322
+ when :Float
323
+ value.to_f
324
+ when :BOOLEAN
325
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
326
+ true
327
+ else
328
+ false
329
+ end
330
+ when :Object
331
+ # generic object (usually a Hash), return directly
332
+ value
333
+ when /\AArray<(?<inner_type>.+)>\z/
334
+ inner_type = Regexp.last_match[:inner_type]
335
+ value.map { |v| _deserialize(inner_type, v) }
336
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
337
+ k_type = Regexp.last_match[:k_type]
338
+ v_type = Regexp.last_match[:v_type]
339
+ {}.tap do |hash|
340
+ value.each do |k, v|
341
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
342
+ end
343
+ end
344
+ else # model
345
+ temp_model = CloudsmithApi.const_get(type).new
346
+ temp_model.build_from_hash(value)
347
+ end
348
+ end
349
+
350
+ # Returns the string representation of the object
351
+ # @return [String] String presentation of the object
352
+ def to_s
353
+ to_hash.to_s
354
+ end
355
+
356
+ # to_body is an alias to to_hash (backward compatibility)
357
+ # @return [Hash] Returns the object in the form of hash
358
+ def to_body
359
+ to_hash
360
+ end
361
+
362
+ # Returns the object in the form of hash
363
+ # @return [Hash] Returns the object in the form of hash
364
+ def to_hash
365
+ hash = {}
366
+ self.class.attribute_map.each_pair do |attr, param|
367
+ value = self.send(attr)
368
+ next if value.nil?
369
+ hash[param] = _to_hash(value)
370
+ end
371
+ hash
372
+ end
373
+
374
+ # Outputs non-array value in the form of hash
375
+ # For object, use to_hash. Otherwise, just return the value
376
+ # @param [Object] value Any valid value
377
+ # @return [Hash] Returns the value in the form of hash
378
+ def _to_hash(value)
379
+ if value.is_a?(Array)
380
+ value.compact.map { |v| _to_hash(v) }
381
+ elsif value.is_a?(Hash)
382
+ {}.tap do |hash|
383
+ value.each { |k, v| hash[k] = _to_hash(v) }
384
+ end
385
+ elsif value.respond_to? :to_hash
386
+ value.to_hash
387
+ else
388
+ value
389
+ end
390
+ end
391
+
392
+ end
393
+ end