cloudsmith-api 0.51.37 → 0.52.79

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 (405) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +12 -5
  4. data/build.json +1 -1
  5. data/docs/AlpinePackageUpload.md +63 -0
  6. data/docs/ConanPackageUpload.md +1 -0
  7. data/docs/EntitlementsCreate.md +1 -1
  8. data/docs/EntitlementsPartialUpdate.md +1 -1
  9. data/docs/EntitlementsRefresh.md +1 -1
  10. data/docs/EntitlmentTokenMetric.md +9 -0
  11. data/docs/MavenPackageUpload.md +1 -0
  12. data/docs/MetricsApi.md +83 -0
  13. data/docs/Package.md +2 -0
  14. data/docs/PackageCopy.md +2 -0
  15. data/docs/PackageMove.md +2 -0
  16. data/docs/PackagesApi.md +107 -41
  17. data/docs/PackagesCopy.md +1 -1
  18. data/docs/PackagesMove.md +0 -1
  19. data/docs/PackagesTag.md +10 -0
  20. data/docs/PackagesUploadAlpine.md +1 -0
  21. data/docs/PackagesUploadCargo.md +1 -0
  22. data/docs/PackagesUploadCocoapods.md +1 -0
  23. data/docs/PackagesUploadComposer.md +1 -0
  24. data/docs/PackagesUploadConan.md +3 -0
  25. data/docs/PackagesUploadCran.md +1 -0
  26. data/docs/PackagesUploadDart.md +1 -0
  27. data/docs/PackagesUploadDeb.md +3 -0
  28. data/docs/PackagesUploadDocker.md +1 -0
  29. data/docs/PackagesUploadGo.md +1 -0
  30. data/docs/PackagesUploadHelm.md +1 -0
  31. data/docs/PackagesUploadLuarocks.md +1 -0
  32. data/docs/PackagesUploadMaven.md +1 -0
  33. data/docs/PackagesUploadNpm.md +1 -0
  34. data/docs/PackagesUploadNuget.md +1 -0
  35. data/docs/PackagesUploadPython.md +1 -0
  36. data/docs/PackagesUploadRaw.md +1 -0
  37. data/docs/PackagesUploadRpm.md +1 -0
  38. data/docs/PackagesUploadRuby.md +1 -0
  39. data/docs/PackagesUploadTerraform.md +1 -0
  40. data/docs/PackagesUploadVagrant.md +1 -0
  41. data/docs/PackagesValidateuploadAlpine.md +1 -0
  42. data/docs/PackagesValidateuploadCargo.md +1 -0
  43. data/docs/PackagesValidateuploadCocoapods.md +1 -0
  44. data/docs/PackagesValidateuploadComposer.md +1 -0
  45. data/docs/PackagesValidateuploadConan.md +3 -0
  46. data/docs/PackagesValidateuploadCran.md +1 -0
  47. data/docs/PackagesValidateuploadDart.md +1 -0
  48. data/docs/PackagesValidateuploadDeb.md +3 -0
  49. data/docs/PackagesValidateuploadDocker.md +1 -0
  50. data/docs/PackagesValidateuploadGo.md +1 -0
  51. data/docs/PackagesValidateuploadHelm.md +1 -0
  52. data/docs/PackagesValidateuploadLuarocks.md +1 -0
  53. data/docs/PackagesValidateuploadMaven.md +1 -0
  54. data/docs/PackagesValidateuploadNpm.md +1 -0
  55. data/docs/PackagesValidateuploadNuget.md +1 -0
  56. data/docs/PackagesValidateuploadPython.md +1 -0
  57. data/docs/PackagesValidateuploadRaw.md +1 -0
  58. data/docs/PackagesValidateuploadRpm.md +1 -0
  59. data/docs/PackagesValidateuploadRuby.md +1 -0
  60. data/docs/PackagesValidateuploadTerraform.md +1 -0
  61. data/docs/PackagesValidateuploadVagrant.md +1 -0
  62. data/docs/RawPackageUpload.md +1 -0
  63. data/docs/ReposCreate.md +4 -7
  64. data/docs/ReposPartialUpdate.md +3 -7
  65. data/docs/Repository.md +11 -10
  66. data/docs/RepositoryToken.md +4 -3
  67. data/docs/RepositoryTokenRefresh.md +4 -3
  68. data/docs/RepositoryTokenSyncTokens.md +4 -3
  69. data/docs/RepositoryWebhook.md +1 -0
  70. data/docs/StorageRegion.md +9 -0
  71. data/docs/StorageregionsApi.md +122 -0
  72. data/docs/VagrantPackageUpload.md +1 -0
  73. data/docs/WebhooksCreate.md +1 -0
  74. data/docs/WebhooksPartialUpdate.md +1 -0
  75. data/lib/cloudsmith-api.rb +6 -1
  76. data/lib/cloudsmith-api/api/metrics_api.rb +95 -0
  77. data/lib/cloudsmith-api/api/packages_api.rb +119 -56
  78. data/lib/cloudsmith-api/api/storageregions_api.rb +119 -0
  79. data/lib/cloudsmith-api/models/alpine_package_upload.rb +743 -0
  80. data/lib/cloudsmith-api/models/conan_package_upload.rb +11 -1
  81. data/lib/cloudsmith-api/models/entitlements_create.rb +1 -1
  82. data/lib/cloudsmith-api/models/entitlements_partial_update.rb +1 -1
  83. data/lib/cloudsmith-api/models/entitlements_refresh.rb +1 -1
  84. data/lib/cloudsmith-api/models/entitlment_token_metric.rb +209 -0
  85. data/lib/cloudsmith-api/models/maven_package_upload.rb +11 -1
  86. data/lib/cloudsmith-api/models/package.rb +21 -1
  87. data/lib/cloudsmith-api/models/package_copy.rb +21 -1
  88. data/lib/cloudsmith-api/models/package_move.rb +21 -1
  89. data/lib/cloudsmith-api/models/packages_copy.rb +1 -1
  90. data/lib/cloudsmith-api/models/packages_move.rb +4 -14
  91. data/lib/cloudsmith-api/models/packages_tag.rb +211 -0
  92. data/lib/cloudsmith-api/models/packages_upload_alpine.rb +14 -4
  93. data/lib/cloudsmith-api/models/packages_upload_cargo.rb +14 -4
  94. data/lib/cloudsmith-api/models/packages_upload_cocoapods.rb +14 -4
  95. data/lib/cloudsmith-api/models/packages_upload_composer.rb +14 -4
  96. data/lib/cloudsmith-api/models/packages_upload_conan.rb +34 -4
  97. data/lib/cloudsmith-api/models/packages_upload_cran.rb +14 -4
  98. data/lib/cloudsmith-api/models/packages_upload_dart.rb +14 -4
  99. data/lib/cloudsmith-api/models/packages_upload_deb.rb +34 -4
  100. data/lib/cloudsmith-api/models/packages_upload_docker.rb +14 -4
  101. data/lib/cloudsmith-api/models/packages_upload_go.rb +14 -4
  102. data/lib/cloudsmith-api/models/packages_upload_helm.rb +14 -4
  103. data/lib/cloudsmith-api/models/packages_upload_luarocks.rb +14 -4
  104. data/lib/cloudsmith-api/models/packages_upload_maven.rb +11 -1
  105. data/lib/cloudsmith-api/models/packages_upload_npm.rb +14 -4
  106. data/lib/cloudsmith-api/models/packages_upload_nuget.rb +14 -4
  107. data/lib/cloudsmith-api/models/packages_upload_python.rb +14 -4
  108. data/lib/cloudsmith-api/models/packages_upload_raw.rb +11 -1
  109. data/lib/cloudsmith-api/models/packages_upload_rpm.rb +14 -4
  110. data/lib/cloudsmith-api/models/packages_upload_ruby.rb +14 -4
  111. data/lib/cloudsmith-api/models/packages_upload_terraform.rb +14 -4
  112. data/lib/cloudsmith-api/models/packages_upload_vagrant.rb +11 -1
  113. data/lib/cloudsmith-api/models/packages_validateupload_alpine.rb +14 -4
  114. data/lib/cloudsmith-api/models/packages_validateupload_cargo.rb +14 -4
  115. data/lib/cloudsmith-api/models/packages_validateupload_cocoapods.rb +14 -4
  116. data/lib/cloudsmith-api/models/packages_validateupload_composer.rb +14 -4
  117. data/lib/cloudsmith-api/models/packages_validateupload_conan.rb +34 -4
  118. data/lib/cloudsmith-api/models/packages_validateupload_cran.rb +14 -4
  119. data/lib/cloudsmith-api/models/packages_validateupload_dart.rb +14 -4
  120. data/lib/cloudsmith-api/models/packages_validateupload_deb.rb +34 -4
  121. data/lib/cloudsmith-api/models/packages_validateupload_docker.rb +14 -4
  122. data/lib/cloudsmith-api/models/packages_validateupload_go.rb +14 -4
  123. data/lib/cloudsmith-api/models/packages_validateupload_helm.rb +14 -4
  124. data/lib/cloudsmith-api/models/packages_validateupload_luarocks.rb +14 -4
  125. data/lib/cloudsmith-api/models/packages_validateupload_maven.rb +11 -1
  126. data/lib/cloudsmith-api/models/packages_validateupload_npm.rb +14 -4
  127. data/lib/cloudsmith-api/models/packages_validateupload_nuget.rb +14 -4
  128. data/lib/cloudsmith-api/models/packages_validateupload_python.rb +14 -4
  129. data/lib/cloudsmith-api/models/packages_validateupload_raw.rb +11 -1
  130. data/lib/cloudsmith-api/models/packages_validateupload_rpm.rb +14 -4
  131. data/lib/cloudsmith-api/models/packages_validateupload_ruby.rb +14 -4
  132. data/lib/cloudsmith-api/models/packages_validateupload_terraform.rb +14 -4
  133. data/lib/cloudsmith-api/models/packages_validateupload_vagrant.rb +11 -1
  134. data/lib/cloudsmith-api/models/raw_package_upload.rb +11 -1
  135. data/lib/cloudsmith-api/models/repos_create.rb +17 -57
  136. data/lib/cloudsmith-api/models/repos_partial_update.rb +4 -44
  137. data/lib/cloudsmith-api/models/repository.rb +24 -24
  138. data/lib/cloudsmith-api/models/repository_token.rb +14 -4
  139. data/lib/cloudsmith-api/models/repository_token_refresh.rb +14 -4
  140. data/lib/cloudsmith-api/models/repository_token_sync_tokens.rb +14 -4
  141. data/lib/cloudsmith-api/models/repository_webhook.rb +11 -1
  142. data/lib/cloudsmith-api/models/{packages_resync.rb → storage_region.rb} +29 -9
  143. data/lib/cloudsmith-api/models/vagrant_package_upload.rb +11 -1
  144. data/lib/cloudsmith-api/models/webhooks_create.rb +11 -1
  145. data/lib/cloudsmith-api/models/webhooks_partial_update.rb +11 -1
  146. data/lib/cloudsmith-api/version.rb +1 -1
  147. data/spec/api/metrics_api_spec.rb +53 -0
  148. data/spec/api/packages_api_spec.rb +32 -18
  149. data/spec/api/storageregions_api_spec.rb +58 -0
  150. data/spec/models/alpine_package_upload_spec.rb +372 -0
  151. data/spec/models/conan_package_upload_spec.rb +6 -0
  152. data/spec/models/entitlment_token_metric_spec.rb +48 -0
  153. data/spec/models/maven_package_upload_spec.rb +6 -0
  154. data/spec/models/package_copy_spec.rb +12 -0
  155. data/spec/models/package_move_spec.rb +12 -0
  156. data/spec/models/package_spec.rb +12 -0
  157. data/spec/models/packages_move_spec.rb +0 -6
  158. data/spec/models/packages_tag_spec.rb +54 -0
  159. data/spec/models/packages_upload_alpine_spec.rb +6 -0
  160. data/spec/models/packages_upload_cargo_spec.rb +6 -0
  161. data/spec/models/packages_upload_cocoapods_spec.rb +6 -0
  162. data/spec/models/packages_upload_composer_spec.rb +6 -0
  163. data/spec/models/packages_upload_conan_spec.rb +18 -0
  164. data/spec/models/packages_upload_cran_spec.rb +6 -0
  165. data/spec/models/packages_upload_dart_spec.rb +6 -0
  166. data/spec/models/packages_upload_deb_spec.rb +18 -0
  167. data/spec/models/packages_upload_docker_spec.rb +6 -0
  168. data/spec/models/packages_upload_go_spec.rb +6 -0
  169. data/spec/models/packages_upload_helm_spec.rb +6 -0
  170. data/spec/models/packages_upload_luarocks_spec.rb +6 -0
  171. data/spec/models/packages_upload_maven_spec.rb +6 -0
  172. data/spec/models/packages_upload_npm_spec.rb +6 -0
  173. data/spec/models/packages_upload_nuget_spec.rb +6 -0
  174. data/spec/models/packages_upload_python_spec.rb +6 -0
  175. data/spec/models/packages_upload_raw_spec.rb +6 -0
  176. data/spec/models/packages_upload_rpm_spec.rb +6 -0
  177. data/spec/models/packages_upload_ruby_spec.rb +6 -0
  178. data/spec/models/packages_upload_terraform_spec.rb +6 -0
  179. data/spec/models/packages_upload_vagrant_spec.rb +6 -0
  180. data/spec/models/packages_validateupload_alpine_spec.rb +6 -0
  181. data/spec/models/packages_validateupload_cargo_spec.rb +6 -0
  182. data/spec/models/packages_validateupload_cocoapods_spec.rb +6 -0
  183. data/spec/models/packages_validateupload_composer_spec.rb +6 -0
  184. data/spec/models/packages_validateupload_conan_spec.rb +18 -0
  185. data/spec/models/packages_validateupload_cran_spec.rb +6 -0
  186. data/spec/models/packages_validateupload_dart_spec.rb +6 -0
  187. data/spec/models/packages_validateupload_deb_spec.rb +18 -0
  188. data/spec/models/packages_validateupload_docker_spec.rb +6 -0
  189. data/spec/models/packages_validateupload_go_spec.rb +6 -0
  190. data/spec/models/packages_validateupload_helm_spec.rb +6 -0
  191. data/spec/models/packages_validateupload_luarocks_spec.rb +6 -0
  192. data/spec/models/packages_validateupload_maven_spec.rb +6 -0
  193. data/spec/models/packages_validateupload_npm_spec.rb +6 -0
  194. data/spec/models/packages_validateupload_nuget_spec.rb +6 -0
  195. data/spec/models/packages_validateupload_python_spec.rb +6 -0
  196. data/spec/models/packages_validateupload_raw_spec.rb +6 -0
  197. data/spec/models/packages_validateupload_rpm_spec.rb +6 -0
  198. data/spec/models/packages_validateupload_ruby_spec.rb +6 -0
  199. data/spec/models/packages_validateupload_terraform_spec.rb +6 -0
  200. data/spec/models/packages_validateupload_vagrant_spec.rb +6 -0
  201. data/spec/models/raw_package_upload_spec.rb +6 -0
  202. data/spec/models/repos_create_spec.rb +3 -21
  203. data/spec/models/repos_partial_update_spec.rb +0 -24
  204. data/spec/models/repository_spec.rb +6 -0
  205. data/spec/models/repository_token_refresh_spec.rb +6 -0
  206. data/spec/models/repository_token_spec.rb +6 -0
  207. data/spec/models/repository_token_sync_tokens_spec.rb +6 -0
  208. data/spec/models/repository_webhook_spec.rb +6 -0
  209. data/spec/models/{packages_resync_spec.rb → storage_region_spec.rb} +13 -7
  210. data/spec/models/vagrant_package_upload_spec.rb +6 -0
  211. data/spec/models/webhooks_create_spec.rb +6 -0
  212. data/spec/models/webhooks_partial_update_spec.rb +6 -0
  213. data/vendor/bundle/ruby/2.6.0/cache/diff-lcs-1.4.4.gem +0 -0
  214. data/vendor/bundle/ruby/2.6.0/cache/json-2.3.1.gem +0 -0
  215. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.17/gem_make.out +1 -1
  216. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.13.1/gem_make.out +2 -2
  217. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.3.0 → json-2.3.1}/gem.build_complete +0 -0
  218. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.3.0 → json-2.3.1}/gem_make.out +5 -5
  219. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.3.1/json/ext/generator.so +0 -0
  220. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.3.1/json/ext/parser.so +0 -0
  221. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.3.0 → json-2.3.1}/mkmf.log +0 -0
  222. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/.rspec +0 -0
  223. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/Code-of-Conduct.md +0 -0
  224. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/Contributing.md +118 -0
  225. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/History.md +319 -0
  226. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/License.md +0 -0
  227. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/Manifest.txt +8 -0
  228. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/README.rdoc +10 -10
  229. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/Rakefile +39 -22
  230. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/autotest/discover.rb +3 -0
  231. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/bin/htmldiff +7 -4
  232. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/bin/ldiff +4 -1
  233. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/docs/COPYING.txt +0 -0
  234. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/docs/artistic.txt +0 -0
  235. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/lib/diff-lcs.rb +3 -0
  236. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/lib/diff/lcs.rb +184 -170
  237. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/lib/diff/lcs/array.rb +1 -1
  238. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/lib/diff/lcs/backports.rb +9 -0
  239. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/lib/diff/lcs/block.rb +1 -1
  240. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/lib/diff/lcs/callbacks.rb +15 -12
  241. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/lib/diff/lcs/change.rb +30 -37
  242. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/lib/diff/lcs/htmldiff.rb +17 -16
  243. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/lib/diff/lcs/hunk.rb +156 -74
  244. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/lib/diff/lcs/internals.rb +36 -39
  245. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/lib/diff/lcs/ldiff.rb +46 -42
  246. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/lib/diff/lcs/string.rb +1 -1
  247. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/spec/change_spec.rb +31 -7
  248. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3/spec/ldiff_spec.rb → diff-lcs-1.4.4/spec/diff_spec.rb} +15 -11
  249. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/aX +1 -0
  250. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/bXaX +1 -0
  251. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/spec/fixtures/ds1.csv +0 -0
  252. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/spec/fixtures/ds2.csv +0 -0
  253. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff +4 -0
  254. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-c +7 -0
  255. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-e +3 -0
  256. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-f +3 -0
  257. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-u +5 -0
  258. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/hunk_spec.rb +83 -0
  259. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/issues_spec.rb +154 -0
  260. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/spec/lcs_spec.rb +10 -10
  261. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/ldiff_spec.rb +87 -0
  262. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/spec/patch_spec.rb +93 -99
  263. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/sdiff_spec.rb +214 -0
  264. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/spec/spec_helper.rb +118 -64
  265. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/traverse_balanced_spec.rb +310 -0
  266. data/vendor/bundle/ruby/2.6.0/gems/{diff-lcs-1.3 → diff-lcs-1.4.4}/spec/traverse_sequences_spec.rb +28 -28
  267. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/ext/ffi_c/Makefile +3 -3
  268. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/.gitignore +0 -0
  269. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/.travis.yml +2 -0
  270. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/CHANGES.md +33 -0
  271. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/Gemfile +0 -0
  272. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/README-json-jruby.md +0 -0
  273. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/README.md +16 -0
  274. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/Rakefile +8 -87
  275. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.1/VERSION +1 -0
  276. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/diagrams/.keep +0 -0
  277. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/ext/json/ext/fbuffer/fbuffer.h +0 -0
  278. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/ext/json/ext/generator/.sitearchdir.-.json.-.ext.time +0 -0
  279. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/ext/json/ext/generator/depend +0 -0
  280. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/ext/json/ext/generator/extconf.rb +0 -0
  281. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/ext/json/ext/generator/generator.c +71 -1
  282. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/ext/json/ext/generator/generator.h +0 -0
  283. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.1/ext/json/ext/generator/generator.so +0 -0
  284. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/ext/json/ext/parser/.sitearchdir.-.json.-.ext.time +0 -0
  285. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/ext/json/ext/parser/depend +0 -0
  286. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/ext/json/ext/parser/extconf.rb +0 -0
  287. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/ext/json/ext/parser/parser.c +71 -70
  288. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/ext/json/ext/parser/parser.h +0 -0
  289. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/ext/json/ext/parser/parser.rl +1 -0
  290. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.1/ext/json/ext/parser/parser.so +0 -0
  291. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/ext/json/extconf.rb +0 -0
  292. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/install.rb +0 -0
  293. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/java/src/json/ext/ByteListTranscoder.java +0 -0
  294. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/java/src/json/ext/Generator.java +0 -0
  295. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/java/src/json/ext/GeneratorMethods.java +0 -0
  296. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/java/src/json/ext/GeneratorService.java +0 -0
  297. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/java/src/json/ext/GeneratorState.java +0 -0
  298. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/java/src/json/ext/OptionsReader.java +0 -0
  299. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/java/src/json/ext/Parser.java +0 -0
  300. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/java/src/json/ext/Parser.rl +0 -0
  301. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/java/src/json/ext/ParserService.java +0 -0
  302. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/java/src/json/ext/RuntimeInfo.java +0 -0
  303. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/java/src/json/ext/StringDecoder.java +0 -0
  304. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/java/src/json/ext/StringEncoder.java +0 -0
  305. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/java/src/json/ext/Utils.java +0 -0
  306. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/json-java.gemspec +3 -3
  307. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.1/json.gemspec +139 -0
  308. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/json_pure.gemspec +8 -13
  309. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.1/lib/json.rb +412 -0
  310. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/add/bigdecimal.rb +0 -0
  311. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/add/complex.rb +0 -0
  312. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/add/core.rb +0 -0
  313. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/add/date.rb +0 -0
  314. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/add/date_time.rb +0 -0
  315. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/add/exception.rb +0 -0
  316. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/add/ostruct.rb +0 -0
  317. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/add/range.rb +0 -0
  318. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/add/rational.rb +0 -0
  319. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/add/regexp.rb +0 -0
  320. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/add/set.rb +0 -0
  321. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/add/struct.rb +0 -0
  322. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/add/symbol.rb +0 -0
  323. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/add/time.rb +0 -0
  324. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.1/lib/json/common.rb +691 -0
  325. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/ext.rb +0 -0
  326. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/ext/.keep +0 -0
  327. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.1/lib/json/ext/generator.so +0 -0
  328. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.1/lib/json/ext/parser.so +0 -0
  329. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/generic_object.rb +0 -0
  330. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/pure.rb +0 -0
  331. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/pure/generator.rb +1 -1
  332. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/pure/parser.rb +2 -2
  333. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/lib/json/version.rb +1 -1
  334. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/references/rfc7159.txt +0 -0
  335. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail10.json +0 -0
  336. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail11.json +0 -0
  337. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail12.json +0 -0
  338. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail13.json +0 -0
  339. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail14.json +0 -0
  340. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail18.json +0 -0
  341. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail19.json +0 -0
  342. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail2.json +0 -0
  343. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail20.json +0 -0
  344. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail21.json +0 -0
  345. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail22.json +0 -0
  346. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail23.json +0 -0
  347. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail24.json +0 -0
  348. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail25.json +0 -0
  349. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail27.json +0 -0
  350. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail28.json +0 -0
  351. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail3.json +0 -0
  352. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail4.json +0 -0
  353. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail5.json +0 -0
  354. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail6.json +0 -0
  355. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail7.json +0 -0
  356. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail8.json +0 -0
  357. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/fail9.json +0 -0
  358. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/obsolete_fail1.json +0 -0
  359. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/pass1.json +0 -0
  360. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/pass15.json +0 -0
  361. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/pass16.json +0 -0
  362. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/pass17.json +0 -0
  363. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/pass2.json +0 -0
  364. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/pass26.json +0 -0
  365. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/fixtures/pass3.json +0 -0
  366. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/json_addition_test.rb +0 -0
  367. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/json_common_interface_test.rb +0 -0
  368. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/json_encoding_test.rb +0 -0
  369. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/json_ext_parser_test.rb +0 -0
  370. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/json_fixtures_test.rb +6 -1
  371. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/json_generator_test.rb +0 -0
  372. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/json_generic_object_test.rb +0 -0
  373. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/json_parser_test.rb +0 -0
  374. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/json_string_matching_test.rb +0 -0
  375. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tests/test_helper.rb +0 -0
  376. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tools/diff.sh +0 -0
  377. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tools/fuzz.rb +0 -0
  378. data/vendor/bundle/ruby/2.6.0/gems/{json-2.3.0 → json-2.3.1}/tools/server.rb +0 -0
  379. data/vendor/bundle/ruby/2.6.0/specifications/{diff-lcs-1.3.gemspec → diff-lcs-1.4.4.gemspec} +11 -13
  380. data/vendor/bundle/ruby/2.6.0/specifications/{json-2.3.0.gemspec → json-2.3.1.gemspec} +0 -0
  381. data/vendor/bundle/ruby/2.6.0/specifications/sys-uname-1.2.1.gemspec +1 -1
  382. metadata +277 -250
  383. data/docs/PackagesResync.md +0 -8
  384. data/vendor/bundle/ruby/2.6.0/cache/diff-lcs-1.3.gem +0 -0
  385. data/vendor/bundle/ruby/2.6.0/cache/json-2.3.0.gem +0 -0
  386. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.3.0/json/ext/generator.so +0 -0
  387. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.3.0/json/ext/parser.so +0 -0
  388. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/Contributing.md +0 -83
  389. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/History.md +0 -220
  390. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/autotest/discover.rb +0 -1
  391. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff-lcs.rb +0 -3
  392. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/diff_spec.rb +0 -47
  393. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/hunk_spec.rb +0 -72
  394. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/issues_spec.rb +0 -49
  395. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/sdiff_spec.rb +0 -214
  396. data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/traverse_balanced_spec.rb +0 -310
  397. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.0/LICENSE +0 -56
  398. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.0/VERSION +0 -1
  399. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.0/ext/json/ext/generator/generator.so +0 -0
  400. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.0/ext/json/ext/parser/parser.so +0 -0
  401. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.0/json.gemspec +0 -0
  402. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.0/lib/json.rb +0 -63
  403. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.0/lib/json/common.rb +0 -456
  404. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.0/lib/json/ext/generator.so +0 -0
  405. data/vendor/bundle/ruby/2.6.0/gems/json-2.3.0/lib/json/ext/parser.so +0 -0
@@ -162,6 +162,12 @@ module CloudsmithApi
162
162
  # Synchronisation progress (from 0-100)
163
163
  attr_accessor :sync_progress
164
164
 
165
+ # All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field.
166
+ attr_accessor :tags
167
+
168
+ # All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted.
169
+ attr_accessor :tags_immutable
170
+
165
171
  #
166
172
  attr_accessor :type_display
167
173
 
@@ -233,6 +239,8 @@ module CloudsmithApi
233
239
  :'summary' => :'summary',
234
240
  :'sync_finished_at' => :'sync_finished_at',
235
241
  :'sync_progress' => :'sync_progress',
242
+ :'tags' => :'tags',
243
+ :'tags_immutable' => :'tags_immutable',
236
244
  :'type_display' => :'type_display',
237
245
  :'uploaded_at' => :'uploaded_at',
238
246
  :'uploader' => :'uploader',
@@ -294,6 +302,8 @@ module CloudsmithApi
294
302
  :'summary' => :'String',
295
303
  :'sync_finished_at' => :'String',
296
304
  :'sync_progress' => :'Integer',
305
+ :'tags' => :'Object',
306
+ :'tags_immutable' => :'Object',
297
307
  :'type_display' => :'String',
298
308
  :'uploaded_at' => :'String',
299
309
  :'uploader' => :'String',
@@ -511,6 +521,14 @@ module CloudsmithApi
511
521
  self.sync_progress = attributes[:'sync_progress']
512
522
  end
513
523
 
524
+ if attributes.has_key?(:'tags')
525
+ self.tags = attributes[:'tags']
526
+ end
527
+
528
+ if attributes.has_key?(:'tags_immutable')
529
+ self.tags_immutable = attributes[:'tags_immutable']
530
+ end
531
+
514
532
  if attributes.has_key?(:'type_display')
515
533
  self.type_display = attributes[:'type_display']
516
534
  end
@@ -604,6 +622,8 @@ module CloudsmithApi
604
622
  summary == o.summary &&
605
623
  sync_finished_at == o.sync_finished_at &&
606
624
  sync_progress == o.sync_progress &&
625
+ tags == o.tags &&
626
+ tags_immutable == o.tags_immutable &&
607
627
  type_display == o.type_display &&
608
628
  uploaded_at == o.uploaded_at &&
609
629
  uploader == o.uploader &&
@@ -621,7 +641,7 @@ module CloudsmithApi
621
641
  # Calculates hash code according to all attributes.
622
642
  # @return [Fixnum] Hash code
623
643
  def hash
624
- [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, package_type, release, repository, repository_url, self_html_url, self_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, type_display, uploaded_at, uploader, uploader_url, version, version_orig].hash
644
+ [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, package_type, release, repository, repository_url, self_html_url, self_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig].hash
625
645
  end
626
646
 
627
647
  # Builds the object from hash
@@ -18,7 +18,7 @@ module CloudsmithApi
18
18
  # None
19
19
  attr_accessor :destination
20
20
 
21
- # 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
+ # If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
22
22
  attr_accessor :republish
23
23
 
24
24
 
@@ -18,23 +18,18 @@ module CloudsmithApi
18
18
  # None
19
19
  attr_accessor :destination
20
20
 
21
- # 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.
22
- attr_accessor :republish
23
-
24
21
 
25
22
  # Attribute mapping from ruby-style variable name to JSON key.
26
23
  def self.attribute_map
27
24
  {
28
- :'destination' => :'destination',
29
- :'republish' => :'republish'
25
+ :'destination' => :'destination'
30
26
  }
31
27
  end
32
28
 
33
29
  # Attribute type mapping.
34
30
  def self.swagger_types
35
31
  {
36
- :'destination' => :'String',
37
- :'republish' => :'BOOLEAN'
32
+ :'destination' => :'String'
38
33
  }
39
34
  end
40
35
 
@@ -50,10 +45,6 @@ module CloudsmithApi
50
45
  self.destination = attributes[:'destination']
51
46
  end
52
47
 
53
- if attributes.has_key?(:'republish')
54
- self.republish = attributes[:'republish']
55
- end
56
-
57
48
  end
58
49
 
59
50
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -79,8 +70,7 @@ module CloudsmithApi
79
70
  def ==(o)
80
71
  return true if self.equal?(o)
81
72
  self.class == o.class &&
82
- destination == o.destination &&
83
- republish == o.republish
73
+ destination == o.destination
84
74
  end
85
75
 
86
76
  # @see the `==` method
@@ -92,7 +82,7 @@ module CloudsmithApi
92
82
  # Calculates hash code according to all attributes.
93
83
  # @return [Fixnum] Hash code
94
84
  def hash
95
- [destination, republish].hash
85
+ [destination].hash
96
86
  end
97
87
 
98
88
  # Builds the object from hash
@@ -0,0 +1,211 @@
1
+ =begin
2
+ #Cloudsmith API
3
+
4
+ #The API to the Cloudsmith Service
5
+
6
+ OpenAPI spec version: v1
7
+ Contact: support@cloudsmith.io
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudsmithApi
16
+
17
+ class PackagesTag
18
+ # None
19
+ attr_accessor :action
20
+
21
+ # If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package.
22
+ attr_accessor :is_immutable
23
+
24
+ # A list of tags to apply the action to. Not required for clears.
25
+ attr_accessor :tags
26
+
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'action' => :'action',
32
+ :'is_immutable' => :'is_immutable',
33
+ :'tags' => :'tags'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.swagger_types
39
+ {
40
+ :'action' => :'String',
41
+ :'is_immutable' => :'BOOLEAN',
42
+ :'tags' => :'Array<String>'
43
+ }
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ return unless attributes.is_a?(Hash)
50
+
51
+ # convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
53
+
54
+ if attributes.has_key?(:'action')
55
+ self.action = attributes[:'action']
56
+ end
57
+
58
+ if attributes.has_key?(:'is_immutable')
59
+ self.is_immutable = attributes[:'is_immutable']
60
+ end
61
+
62
+ if attributes.has_key?(:'tags')
63
+ if (value = attributes[:'tags']).is_a?(Array)
64
+ self.tags = value
65
+ end
66
+ end
67
+
68
+ end
69
+
70
+ # Show invalid properties with the reasons. Usually used together with valid?
71
+ # @return Array for valid properies with the reasons
72
+ def list_invalid_properties
73
+ invalid_properties = Array.new
74
+ return invalid_properties
75
+ end
76
+
77
+ # Check to see if the all the properties in the model are valid
78
+ # @return true if the model is valid
79
+ def valid?
80
+ return true
81
+ end
82
+
83
+ # Checks equality by comparing each attribute.
84
+ # @param [Object] Object to be compared
85
+ def ==(o)
86
+ return true if self.equal?(o)
87
+ self.class == o.class &&
88
+ action == o.action &&
89
+ is_immutable == o.is_immutable &&
90
+ tags == o.tags
91
+ end
92
+
93
+ # @see the `==` method
94
+ # @param [Object] Object to be compared
95
+ def eql?(o)
96
+ self == o
97
+ end
98
+
99
+ # Calculates hash code according to all attributes.
100
+ # @return [Fixnum] Hash code
101
+ def hash
102
+ [action, is_immutable, tags].hash
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ self.class.swagger_types.each_pair do |key, type|
111
+ if type =~ /\AArray<(.*)>/i
112
+ # check to ensure the input is an array given that the the attribute
113
+ # is documented as an array but the input is not
114
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
115
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
116
+ end
117
+ elsif !attributes[self.class.attribute_map[key]].nil?
118
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
119
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
120
+ end
121
+
122
+ self
123
+ end
124
+
125
+ # Deserializes the data based on type
126
+ # @param string type Data type
127
+ # @param string value Value to be deserialized
128
+ # @return [Object] Deserialized data
129
+ def _deserialize(type, value)
130
+ case type.to_sym
131
+ when :DateTime
132
+ DateTime.parse(value)
133
+ when :Date
134
+ Date.parse(value)
135
+ when :String
136
+ value.to_s
137
+ when :Integer
138
+ value.to_i
139
+ when :Float
140
+ value.to_f
141
+ when :BOOLEAN
142
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
+ true
144
+ else
145
+ false
146
+ end
147
+ when :Object
148
+ # generic object (usually a Hash), return directly
149
+ value
150
+ when /\AArray<(?<inner_type>.+)>\z/
151
+ inner_type = Regexp.last_match[:inner_type]
152
+ value.map { |v| _deserialize(inner_type, v) }
153
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
+ k_type = Regexp.last_match[:k_type]
155
+ v_type = Regexp.last_match[:v_type]
156
+ {}.tap do |hash|
157
+ value.each do |k, v|
158
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
+ end
160
+ end
161
+ else # model
162
+ temp_model = CloudsmithApi.const_get(type).new
163
+ temp_model.build_from_hash(value)
164
+ end
165
+ end
166
+
167
+ # Returns the string representation of the object
168
+ # @return [String] String presentation of the object
169
+ def to_s
170
+ to_hash.to_s
171
+ end
172
+
173
+ # to_body is an alias to to_hash (backward compatibility)
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_body
176
+ to_hash
177
+ end
178
+
179
+ # Returns the object in the form of hash
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_hash
182
+ hash = {}
183
+ self.class.attribute_map.each_pair do |attr, param|
184
+ value = self.send(attr)
185
+ next if value.nil?
186
+ hash[param] = _to_hash(value)
187
+ end
188
+ hash
189
+ end
190
+
191
+ # Outputs non-array value in the form of hash
192
+ # For object, use to_hash. Otherwise, just return the value
193
+ # @param [Object] value Any valid value
194
+ # @return [Hash] Returns the value in the form of hash
195
+ def _to_hash(value)
196
+ if value.is_a?(Array)
197
+ value.compact.map{ |v| _to_hash(v) }
198
+ elsif value.is_a?(Hash)
199
+ {}.tap do |hash|
200
+ value.each { |k, v| hash[k] = _to_hash(v) }
201
+ end
202
+ elsif value.respond_to? :to_hash
203
+ value.to_hash
204
+ else
205
+ value
206
+ end
207
+ end
208
+
209
+ end
210
+
211
+ end
@@ -24,13 +24,17 @@ module CloudsmithApi
24
24
  # 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.
25
25
  attr_accessor :republish
26
26
 
27
+ # A comma-separated values list of tags to add to the package.
28
+ attr_accessor :tags
29
+
27
30
 
28
31
  # Attribute mapping from ruby-style variable name to JSON key.
29
32
  def self.attribute_map
30
33
  {
31
34
  :'distribution' => :'distribution',
32
35
  :'package_file' => :'package_file',
33
- :'republish' => :'republish'
36
+ :'republish' => :'republish',
37
+ :'tags' => :'tags'
34
38
  }
35
39
  end
36
40
 
@@ -39,7 +43,8 @@ module CloudsmithApi
39
43
  {
40
44
  :'distribution' => :'String',
41
45
  :'package_file' => :'String',
42
- :'republish' => :'BOOLEAN'
46
+ :'republish' => :'BOOLEAN',
47
+ :'tags' => :'String'
43
48
  }
44
49
  end
45
50
 
@@ -63,6 +68,10 @@ module CloudsmithApi
63
68
  self.republish = attributes[:'republish']
64
69
  end
65
70
 
71
+ if attributes.has_key?(:'tags')
72
+ self.tags = attributes[:'tags']
73
+ end
74
+
66
75
  end
67
76
 
68
77
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -95,7 +104,8 @@ module CloudsmithApi
95
104
  self.class == o.class &&
96
105
  distribution == o.distribution &&
97
106
  package_file == o.package_file &&
98
- republish == o.republish
107
+ republish == o.republish &&
108
+ tags == o.tags
99
109
  end
100
110
 
101
111
  # @see the `==` method
@@ -107,7 +117,7 @@ module CloudsmithApi
107
117
  # Calculates hash code according to all attributes.
108
118
  # @return [Fixnum] Hash code
109
119
  def hash
110
- [distribution, package_file, republish].hash
120
+ [distribution, package_file, republish, tags].hash
111
121
  end
112
122
 
113
123
  # Builds the object from hash
@@ -21,12 +21,16 @@ module CloudsmithApi
21
21
  # 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.
22
22
  attr_accessor :republish
23
23
 
24
+ # A comma-separated values list of tags to add to the package.
25
+ attr_accessor :tags
26
+
24
27
 
25
28
  # Attribute mapping from ruby-style variable name to JSON key.
26
29
  def self.attribute_map
27
30
  {
28
31
  :'package_file' => :'package_file',
29
- :'republish' => :'republish'
32
+ :'republish' => :'republish',
33
+ :'tags' => :'tags'
30
34
  }
31
35
  end
32
36
 
@@ -34,7 +38,8 @@ module CloudsmithApi
34
38
  def self.swagger_types
35
39
  {
36
40
  :'package_file' => :'String',
37
- :'republish' => :'BOOLEAN'
41
+ :'republish' => :'BOOLEAN',
42
+ :'tags' => :'String'
38
43
  }
39
44
  end
40
45
 
@@ -54,6 +59,10 @@ module CloudsmithApi
54
59
  self.republish = attributes[:'republish']
55
60
  end
56
61
 
62
+ if attributes.has_key?(:'tags')
63
+ self.tags = attributes[:'tags']
64
+ end
65
+
57
66
  end
58
67
 
59
68
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -80,7 +89,8 @@ module CloudsmithApi
80
89
  return true if self.equal?(o)
81
90
  self.class == o.class &&
82
91
  package_file == o.package_file &&
83
- republish == o.republish
92
+ republish == o.republish &&
93
+ tags == o.tags
84
94
  end
85
95
 
86
96
  # @see the `==` method
@@ -92,7 +102,7 @@ module CloudsmithApi
92
102
  # Calculates hash code according to all attributes.
93
103
  # @return [Fixnum] Hash code
94
104
  def hash
95
- [package_file, republish].hash
105
+ [package_file, republish, tags].hash
96
106
  end
97
107
 
98
108
  # Builds the object from hash