cloudsmith-api 2.0.32 → 2.0.33

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 (264) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +15 -4
  4. data/build.json +1 -1
  5. data/docs/AlpinePackageUpload.md +1 -2
  6. data/docs/AlpinePackageUploadRequest.md +0 -2
  7. data/docs/CargoPackageUpload.md +1 -2
  8. data/docs/CargoPackageUploadRequest.md +0 -2
  9. data/docs/CocoapodsPackageUpload.md +1 -2
  10. data/docs/CocoapodsPackageUploadRequest.md +0 -2
  11. data/docs/ComposerPackageUpload.md +1 -2
  12. data/docs/ComposerPackageUploadRequest.md +0 -2
  13. data/docs/ConanPackageUpload.md +1 -2
  14. data/docs/ConanPackageUploadRequest.md +0 -2
  15. data/docs/CondaPackageUpload.md +1 -2
  16. data/docs/CondaPackageUploadRequest.md +0 -2
  17. data/docs/ConnectedRepository.md +3 -0
  18. data/docs/ConnectedRepositoryTargetSummary.md +11 -0
  19. data/docs/ConnectedRepositoryUpstream.md +9 -0
  20. data/docs/CranPackageUpload.md +1 -2
  21. data/docs/CranPackageUploadRequest.md +0 -2
  22. data/docs/DartPackageUpload.md +1 -2
  23. data/docs/DartPackageUploadRequest.md +0 -2
  24. data/docs/DebPackageUpload.md +1 -2
  25. data/docs/DebPackageUploadRequest.md +0 -2
  26. data/docs/DockerPackageUpload.md +1 -2
  27. data/docs/DockerPackageUploadRequest.md +0 -2
  28. data/docs/GenericPackageUpload.md +1 -2
  29. data/docs/GenericPackageUploadRequest.md +0 -2
  30. data/docs/GoPackageUpload.md +1 -2
  31. data/docs/GoPackageUploadRequest.md +0 -2
  32. data/docs/HelmPackageUpload.md +1 -2
  33. data/docs/HelmPackageUploadRequest.md +0 -2
  34. data/docs/HexPackageUpload.md +1 -2
  35. data/docs/HexPackageUploadRequest.md +0 -2
  36. data/docs/HuggingfacePackageUpload.md +1 -2
  37. data/docs/HuggingfacePackageUploadRequest.md +0 -2
  38. data/docs/LuarocksPackageUpload.md +1 -2
  39. data/docs/LuarocksPackageUploadRequest.md +0 -2
  40. data/docs/MavenPackageUpload.md +1 -2
  41. data/docs/MavenPackageUploadRequest.md +0 -2
  42. data/docs/McpPackageUpload.md +1 -2
  43. data/docs/McpPackageUploadRequest.md +0 -2
  44. data/docs/NixPackageUpload.md +1 -2
  45. data/docs/NixPackageUploadRequest.md +0 -2
  46. data/docs/NpmPackageUpload.md +1 -2
  47. data/docs/NpmPackageUploadRequest.md +0 -2
  48. data/docs/NugetPackageUpload.md +1 -2
  49. data/docs/NugetPackageUploadRequest.md +0 -2
  50. data/docs/OrganizationApiKeyRule.md +16 -0
  51. data/docs/OrganizationApiKeyRuleRequest.md +12 -0
  52. data/docs/OrganizationApiKeyRuleRequestPatch.md +12 -0
  53. data/docs/OrgsApi.md +377 -0
  54. data/docs/P2PackageUpload.md +1 -2
  55. data/docs/P2PackageUploadRequest.md +0 -2
  56. data/docs/Package.md +1 -0
  57. data/docs/PackageCopy.md +1 -2
  58. data/docs/PackageCopyRequest.md +0 -2
  59. data/docs/PackageDetail.md +1 -0
  60. data/docs/PackageLicense.md +0 -2
  61. data/docs/PackageLicenseRequestPatch.md +0 -2
  62. data/docs/PackageMove.md +1 -2
  63. data/docs/PackageMoveRequest.md +0 -2
  64. data/docs/PackageQuarantine.md +1 -2
  65. data/docs/PackageQuarantineRequest.md +0 -2
  66. data/docs/PackageResync.md +1 -2
  67. data/docs/PackageTag.md +1 -2
  68. data/docs/PackageTagRequest.md +0 -2
  69. data/docs/PackageVulnerability.md +0 -2
  70. data/docs/PackagesApi.md +2 -2
  71. data/docs/PythonPackageUpload.md +1 -2
  72. data/docs/PythonPackageUploadRequest.md +0 -2
  73. data/docs/RawPackageUpload.md +1 -2
  74. data/docs/RawPackageUploadRequest.md +0 -2
  75. data/docs/RpmPackageUpload.md +1 -2
  76. data/docs/RpmPackageUploadRequest.md +0 -2
  77. data/docs/RubyPackageUpload.md +1 -2
  78. data/docs/RubyPackageUploadRequest.md +0 -2
  79. data/docs/SwiftPackageUpload.md +1 -2
  80. data/docs/SwiftPackageUploadRequest.md +0 -2
  81. data/docs/TerraformPackageUpload.md +1 -2
  82. data/docs/TerraformPackageUploadRequest.md +0 -2
  83. data/docs/VagrantPackageUpload.md +1 -2
  84. data/docs/VagrantPackageUploadRequest.md +0 -2
  85. data/docs/VsxPackageUpload.md +1 -2
  86. data/docs/VsxPackageUploadRequest.md +0 -2
  87. data/lib/cloudsmith-api/api/orgs_api.rb +353 -0
  88. data/lib/cloudsmith-api/api/packages_api.rb +2 -2
  89. data/lib/cloudsmith-api/models/alpine_package_upload.rb +11 -20
  90. data/lib/cloudsmith-api/models/alpine_package_upload_request.rb +4 -23
  91. data/lib/cloudsmith-api/models/cargo_package_upload.rb +11 -20
  92. data/lib/cloudsmith-api/models/cargo_package_upload_request.rb +4 -23
  93. data/lib/cloudsmith-api/models/cocoapods_package_upload.rb +11 -20
  94. data/lib/cloudsmith-api/models/cocoapods_package_upload_request.rb +4 -23
  95. data/lib/cloudsmith-api/models/composer_package_upload.rb +11 -20
  96. data/lib/cloudsmith-api/models/composer_package_upload_request.rb +4 -23
  97. data/lib/cloudsmith-api/models/conan_package_upload.rb +11 -20
  98. data/lib/cloudsmith-api/models/conan_package_upload_request.rb +4 -23
  99. data/lib/cloudsmith-api/models/conda_package_upload.rb +11 -20
  100. data/lib/cloudsmith-api/models/conda_package_upload_request.rb +4 -23
  101. data/lib/cloudsmith-api/models/connected_repository.rb +35 -4
  102. data/lib/cloudsmith-api/models/connected_repository_target_summary.rb +211 -0
  103. data/lib/cloudsmith-api/models/connected_repository_upstream.rb +194 -0
  104. data/lib/cloudsmith-api/models/cran_package_upload.rb +11 -20
  105. data/lib/cloudsmith-api/models/cran_package_upload_request.rb +4 -23
  106. data/lib/cloudsmith-api/models/dart_package_upload.rb +11 -20
  107. data/lib/cloudsmith-api/models/dart_package_upload_request.rb +4 -23
  108. data/lib/cloudsmith-api/models/deb_package_upload.rb +11 -20
  109. data/lib/cloudsmith-api/models/deb_package_upload_request.rb +4 -23
  110. data/lib/cloudsmith-api/models/docker_package_upload.rb +11 -20
  111. data/lib/cloudsmith-api/models/docker_package_upload_request.rb +4 -23
  112. data/lib/cloudsmith-api/models/generic_package_upload.rb +11 -20
  113. data/lib/cloudsmith-api/models/generic_package_upload_request.rb +4 -23
  114. data/lib/cloudsmith-api/models/go_package_upload.rb +11 -20
  115. data/lib/cloudsmith-api/models/go_package_upload_request.rb +4 -23
  116. data/lib/cloudsmith-api/models/helm_package_upload.rb +11 -20
  117. data/lib/cloudsmith-api/models/helm_package_upload_request.rb +4 -23
  118. data/lib/cloudsmith-api/models/hex_package_upload.rb +11 -20
  119. data/lib/cloudsmith-api/models/hex_package_upload_request.rb +4 -23
  120. data/lib/cloudsmith-api/models/huggingface_package_upload.rb +11 -20
  121. data/lib/cloudsmith-api/models/huggingface_package_upload_request.rb +4 -23
  122. data/lib/cloudsmith-api/models/luarocks_package_upload.rb +11 -20
  123. data/lib/cloudsmith-api/models/luarocks_package_upload_request.rb +4 -23
  124. data/lib/cloudsmith-api/models/maven_package_upload.rb +11 -20
  125. data/lib/cloudsmith-api/models/maven_package_upload_request.rb +4 -23
  126. data/lib/cloudsmith-api/models/mcp_package_upload.rb +11 -20
  127. data/lib/cloudsmith-api/models/mcp_package_upload_request.rb +4 -23
  128. data/lib/cloudsmith-api/models/nix_package_upload.rb +11 -20
  129. data/lib/cloudsmith-api/models/nix_package_upload_request.rb +4 -23
  130. data/lib/cloudsmith-api/models/npm_package_upload.rb +11 -20
  131. data/lib/cloudsmith-api/models/npm_package_upload_request.rb +4 -23
  132. data/lib/cloudsmith-api/models/nuget_package_upload.rb +11 -20
  133. data/lib/cloudsmith-api/models/nuget_package_upload_request.rb +4 -23
  134. data/lib/cloudsmith-api/models/organization_api_key_rule.rb +302 -0
  135. data/lib/cloudsmith-api/models/organization_api_key_rule_request.rb +264 -0
  136. data/lib/cloudsmith-api/models/organization_api_key_rule_request_patch.rb +259 -0
  137. data/lib/cloudsmith-api/models/p2_package_upload.rb +11 -20
  138. data/lib/cloudsmith-api/models/p2_package_upload_request.rb +4 -23
  139. data/lib/cloudsmith-api/models/package.rb +11 -1
  140. data/lib/cloudsmith-api/models/package_copy.rb +11 -20
  141. data/lib/cloudsmith-api/models/package_copy_request.rb +4 -23
  142. data/lib/cloudsmith-api/models/package_detail.rb +11 -1
  143. data/lib/cloudsmith-api/models/package_license.rb +4 -23
  144. data/lib/cloudsmith-api/models/package_license_request_patch.rb +4 -23
  145. data/lib/cloudsmith-api/models/package_move.rb +11 -20
  146. data/lib/cloudsmith-api/models/package_move_request.rb +4 -23
  147. data/lib/cloudsmith-api/models/package_quarantine.rb +11 -20
  148. data/lib/cloudsmith-api/models/package_quarantine_request.rb +4 -23
  149. data/lib/cloudsmith-api/models/package_resync.rb +11 -20
  150. data/lib/cloudsmith-api/models/package_tag.rb +11 -20
  151. data/lib/cloudsmith-api/models/package_tag_request.rb +4 -23
  152. data/lib/cloudsmith-api/models/package_vulnerability.rb +4 -23
  153. data/lib/cloudsmith-api/models/python_package_upload.rb +11 -20
  154. data/lib/cloudsmith-api/models/python_package_upload_request.rb +4 -23
  155. data/lib/cloudsmith-api/models/raw_package_upload.rb +11 -20
  156. data/lib/cloudsmith-api/models/raw_package_upload_request.rb +4 -23
  157. data/lib/cloudsmith-api/models/rpm_package_upload.rb +11 -20
  158. data/lib/cloudsmith-api/models/rpm_package_upload_request.rb +4 -23
  159. data/lib/cloudsmith-api/models/ruby_package_upload.rb +11 -20
  160. data/lib/cloudsmith-api/models/ruby_package_upload_request.rb +4 -23
  161. data/lib/cloudsmith-api/models/swift_package_upload.rb +11 -20
  162. data/lib/cloudsmith-api/models/swift_package_upload_request.rb +4 -23
  163. data/lib/cloudsmith-api/models/terraform_package_upload.rb +11 -20
  164. data/lib/cloudsmith-api/models/terraform_package_upload_request.rb +4 -23
  165. data/lib/cloudsmith-api/models/vagrant_package_upload.rb +11 -20
  166. data/lib/cloudsmith-api/models/vagrant_package_upload_request.rb +4 -23
  167. data/lib/cloudsmith-api/models/vsx_package_upload.rb +11 -20
  168. data/lib/cloudsmith-api/models/vsx_package_upload_request.rb +4 -23
  169. data/lib/cloudsmith-api/version.rb +1 -1
  170. data/lib/cloudsmith-api.rb +5 -0
  171. data/spec/api/orgs_api_spec.rb +79 -0
  172. data/spec/api/packages_api_spec.rb +1 -1
  173. data/spec/models/alpine_package_upload_request_spec.rb +0 -12
  174. data/spec/models/alpine_package_upload_spec.rb +6 -12
  175. data/spec/models/cargo_package_upload_request_spec.rb +0 -12
  176. data/spec/models/cargo_package_upload_spec.rb +6 -12
  177. data/spec/models/cocoapods_package_upload_request_spec.rb +0 -12
  178. data/spec/models/cocoapods_package_upload_spec.rb +6 -12
  179. data/spec/models/composer_package_upload_request_spec.rb +0 -12
  180. data/spec/models/composer_package_upload_spec.rb +6 -12
  181. data/spec/models/conan_package_upload_request_spec.rb +0 -12
  182. data/spec/models/conan_package_upload_spec.rb +6 -12
  183. data/spec/models/conda_package_upload_request_spec.rb +0 -12
  184. data/spec/models/conda_package_upload_spec.rb +6 -12
  185. data/spec/models/connected_repository_spec.rb +18 -0
  186. data/spec/models/connected_repository_target_summary_spec.rb +59 -0
  187. data/spec/models/connected_repository_upstream_spec.rb +47 -0
  188. data/spec/models/cran_package_upload_request_spec.rb +0 -12
  189. data/spec/models/cran_package_upload_spec.rb +6 -12
  190. data/spec/models/dart_package_upload_request_spec.rb +0 -12
  191. data/spec/models/dart_package_upload_spec.rb +6 -12
  192. data/spec/models/deb_package_upload_request_spec.rb +0 -12
  193. data/spec/models/deb_package_upload_spec.rb +6 -12
  194. data/spec/models/docker_package_upload_request_spec.rb +0 -12
  195. data/spec/models/docker_package_upload_spec.rb +6 -12
  196. data/spec/models/generic_package_upload_request_spec.rb +0 -12
  197. data/spec/models/generic_package_upload_spec.rb +6 -12
  198. data/spec/models/go_package_upload_request_spec.rb +0 -12
  199. data/spec/models/go_package_upload_spec.rb +6 -12
  200. data/spec/models/helm_package_upload_request_spec.rb +0 -12
  201. data/spec/models/helm_package_upload_spec.rb +6 -12
  202. data/spec/models/hex_package_upload_request_spec.rb +0 -12
  203. data/spec/models/hex_package_upload_spec.rb +6 -12
  204. data/spec/models/huggingface_package_upload_request_spec.rb +0 -12
  205. data/spec/models/huggingface_package_upload_spec.rb +6 -12
  206. data/spec/models/luarocks_package_upload_request_spec.rb +0 -12
  207. data/spec/models/luarocks_package_upload_spec.rb +6 -12
  208. data/spec/models/maven_package_upload_request_spec.rb +0 -12
  209. data/spec/models/maven_package_upload_spec.rb +6 -12
  210. data/spec/models/mcp_package_upload_request_spec.rb +0 -12
  211. data/spec/models/mcp_package_upload_spec.rb +6 -12
  212. data/spec/models/nix_package_upload_request_spec.rb +0 -12
  213. data/spec/models/nix_package_upload_spec.rb +6 -12
  214. data/spec/models/npm_package_upload_request_spec.rb +0 -12
  215. data/spec/models/npm_package_upload_spec.rb +6 -12
  216. data/spec/models/nuget_package_upload_request_spec.rb +0 -12
  217. data/spec/models/nuget_package_upload_spec.rb +6 -12
  218. data/spec/models/organization_api_key_rule_request_patch_spec.rb +69 -0
  219. data/spec/models/organization_api_key_rule_request_spec.rb +69 -0
  220. data/spec/models/organization_api_key_rule_spec.rb +93 -0
  221. data/spec/models/p2_package_upload_request_spec.rb +0 -12
  222. data/spec/models/p2_package_upload_spec.rb +6 -12
  223. data/spec/models/package_copy_request_spec.rb +0 -12
  224. data/spec/models/package_copy_spec.rb +6 -12
  225. data/spec/models/package_detail_spec.rb +6 -0
  226. data/spec/models/package_license_request_patch_spec.rb +0 -12
  227. data/spec/models/package_license_spec.rb +0 -12
  228. data/spec/models/package_move_request_spec.rb +0 -12
  229. data/spec/models/package_move_spec.rb +6 -12
  230. data/spec/models/package_quarantine_request_spec.rb +0 -12
  231. data/spec/models/package_quarantine_spec.rb +6 -12
  232. data/spec/models/package_resync_spec.rb +6 -12
  233. data/spec/models/package_spec.rb +6 -0
  234. data/spec/models/package_tag_request_spec.rb +0 -12
  235. data/spec/models/package_tag_spec.rb +6 -12
  236. data/spec/models/package_vulnerability_spec.rb +0 -12
  237. data/spec/models/python_package_upload_request_spec.rb +0 -12
  238. data/spec/models/python_package_upload_spec.rb +6 -12
  239. data/spec/models/raw_package_upload_request_spec.rb +0 -12
  240. data/spec/models/raw_package_upload_spec.rb +6 -12
  241. data/spec/models/rpm_package_upload_request_spec.rb +0 -12
  242. data/spec/models/rpm_package_upload_spec.rb +6 -12
  243. data/spec/models/ruby_package_upload_request_spec.rb +0 -12
  244. data/spec/models/ruby_package_upload_spec.rb +6 -12
  245. data/spec/models/swift_package_upload_request_spec.rb +0 -12
  246. data/spec/models/swift_package_upload_spec.rb +6 -12
  247. data/spec/models/terraform_package_upload_request_spec.rb +0 -12
  248. data/spec/models/terraform_package_upload_spec.rb +6 -12
  249. data/spec/models/vagrant_package_upload_request_spec.rb +0 -12
  250. data/spec/models/vagrant_package_upload_spec.rb +6 -12
  251. data/spec/models/vsx_package_upload_request_spec.rb +0 -12
  252. data/spec/models/vsx_package_upload_spec.rb +6 -12
  253. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.2/gem_make.out +1 -1
  254. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/gem_make.out +2 -2
  255. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.2/mkmf.log +4 -4
  256. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/gem_make.out +2 -2
  257. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/mkmf.log +1 -1
  258. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
  259. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
  260. data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.1.2/ext/bigdecimal/Makefile +2 -2
  261. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.4/ext/ffi_c/Makefile +2 -2
  262. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
  263. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
  264. metadata +26 -6
@@ -0,0 +1,259 @@
1
+ =begin
2
+ #Cloudsmith API (v1)
3
+
4
+ #The API to the Cloudsmith Service
5
+
6
+ OpenAPI spec version: v1
7
+ Contact: support@cloudsmith.io
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.50
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudsmithApi
16
+ class OrganizationApiKeyRuleRequestPatch
17
+ # When enabled, API keys that violate the organization's rule will be replaced automatically.
18
+ attr_accessor :enforce_refresh
19
+
20
+ # Whether this rule is currently active and enforced.
21
+ attr_accessor :is_enabled
22
+
23
+ # The maximum permitted age of an API key for use in the organization. API keys older than this will no longer have access until they are refreshed. To disable the rule unset this value.
24
+ attr_accessor :max_age_hours
25
+
26
+ # If set to True, API keys that violate this rule will be replaced immediately after the request is made. There is no way to undo this.
27
+ attr_accessor :refresh_immediately
28
+
29
+ # Specify which account types this rule applies to: all accounts (deprecated — prefer separate service/user rules), service accounts only, or user accounts only.
30
+ attr_accessor :rule_type
31
+
32
+ class EnumAttributeValidator
33
+ attr_reader :datatype
34
+ attr_reader :allowable_values
35
+
36
+ def initialize(datatype, allowable_values)
37
+ @allowable_values = allowable_values.map do |value|
38
+ case datatype.to_s
39
+ when /Integer/i
40
+ value.to_i
41
+ when /Float/i
42
+ value.to_f
43
+ else
44
+ value
45
+ end
46
+ end
47
+ end
48
+
49
+ def valid?(value)
50
+ !value || allowable_values.include?(value)
51
+ end
52
+ end
53
+
54
+ # Attribute mapping from ruby-style variable name to JSON key.
55
+ def self.attribute_map
56
+ {
57
+ :'enforce_refresh' => :'enforce_refresh',
58
+ :'is_enabled' => :'is_enabled',
59
+ :'max_age_hours' => :'max_age_hours',
60
+ :'refresh_immediately' => :'refresh_immediately',
61
+ :'rule_type' => :'rule_type'
62
+ }
63
+ end
64
+
65
+ # Attribute type mapping.
66
+ def self.swagger_types
67
+ {
68
+ :'enforce_refresh' => :'BOOLEAN',
69
+ :'is_enabled' => :'BOOLEAN',
70
+ :'max_age_hours' => :'Integer',
71
+ :'refresh_immediately' => :'BOOLEAN',
72
+ :'rule_type' => :'String'
73
+ }
74
+ end
75
+
76
+ # Initializes the object
77
+ # @param [Hash] attributes Model attributes in the form of hash
78
+ def initialize(attributes = {})
79
+ return unless attributes.is_a?(Hash)
80
+
81
+ # convert string to symbol for hash key
82
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
83
+
84
+ if attributes.has_key?(:'enforce_refresh')
85
+ self.enforce_refresh = attributes[:'enforce_refresh']
86
+ end
87
+
88
+ if attributes.has_key?(:'is_enabled')
89
+ self.is_enabled = attributes[:'is_enabled']
90
+ end
91
+
92
+ if attributes.has_key?(:'max_age_hours')
93
+ self.max_age_hours = attributes[:'max_age_hours']
94
+ end
95
+
96
+ if attributes.has_key?(:'refresh_immediately')
97
+ self.refresh_immediately = attributes[:'refresh_immediately']
98
+ end
99
+
100
+ if attributes.has_key?(:'rule_type')
101
+ self.rule_type = attributes[:'rule_type']
102
+ end
103
+ end
104
+
105
+ # Show invalid properties with the reasons. Usually used together with valid?
106
+ # @return Array for valid properties with the reasons
107
+ def list_invalid_properties
108
+ invalid_properties = Array.new
109
+ invalid_properties
110
+ end
111
+
112
+ # Check to see if the all the properties in the model are valid
113
+ # @return true if the model is valid
114
+ def valid?
115
+ rule_type_validator = EnumAttributeValidator.new('String', ['All Accounts', 'Service Accounts', 'User Accounts'])
116
+ return false unless rule_type_validator.valid?(@rule_type)
117
+ true
118
+ end
119
+
120
+ # Custom attribute writer method checking allowed values (enum).
121
+ # @param [Object] rule_type Object to be assigned
122
+ def rule_type=(rule_type)
123
+ validator = EnumAttributeValidator.new('String', ['All Accounts', 'Service Accounts', 'User Accounts'])
124
+ unless validator.valid?(rule_type)
125
+ fail ArgumentError, 'invalid value for "rule_type", must be one of #{validator.allowable_values}.'
126
+ end
127
+ @rule_type = rule_type
128
+ end
129
+
130
+ # Checks equality by comparing each attribute.
131
+ # @param [Object] Object to be compared
132
+ def ==(o)
133
+ return true if self.equal?(o)
134
+ self.class == o.class &&
135
+ enforce_refresh == o.enforce_refresh &&
136
+ is_enabled == o.is_enabled &&
137
+ max_age_hours == o.max_age_hours &&
138
+ refresh_immediately == o.refresh_immediately &&
139
+ rule_type == o.rule_type
140
+ end
141
+
142
+ # @see the `==` method
143
+ # @param [Object] Object to be compared
144
+ def eql?(o)
145
+ self == o
146
+ end
147
+
148
+ # Calculates hash code according to all attributes.
149
+ # @return [Fixnum] Hash code
150
+ def hash
151
+ [enforce_refresh, is_enabled, max_age_hours, refresh_immediately, rule_type].hash
152
+ end
153
+
154
+ # Builds the object from hash
155
+ # @param [Hash] attributes Model attributes in the form of hash
156
+ # @return [Object] Returns the model itself
157
+ def build_from_hash(attributes)
158
+ return nil unless attributes.is_a?(Hash)
159
+ self.class.swagger_types.each_pair do |key, type|
160
+ if type =~ /\AArray<(.*)>/i
161
+ # check to ensure the input is an array given that the attribute
162
+ # is documented as an array but the input is not
163
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
164
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
165
+ end
166
+ elsif !attributes[self.class.attribute_map[key]].nil?
167
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
168
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
169
+ end
170
+
171
+ self
172
+ end
173
+
174
+ # Deserializes the data based on type
175
+ # @param string type Data type
176
+ # @param string value Value to be deserialized
177
+ # @return [Object] Deserialized data
178
+ def _deserialize(type, value)
179
+ case type.to_sym
180
+ when :DateTime
181
+ DateTime.parse(value)
182
+ when :Date
183
+ Date.parse(value)
184
+ when :String
185
+ value.to_s
186
+ when :Integer
187
+ value.to_i
188
+ when :Float
189
+ value.to_f
190
+ when :BOOLEAN
191
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
192
+ true
193
+ else
194
+ false
195
+ end
196
+ when :Object
197
+ # generic object (usually a Hash), return directly
198
+ value
199
+ when /\AArray<(?<inner_type>.+)>\z/
200
+ inner_type = Regexp.last_match[:inner_type]
201
+ value.map { |v| _deserialize(inner_type, v) }
202
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
203
+ k_type = Regexp.last_match[:k_type]
204
+ v_type = Regexp.last_match[:v_type]
205
+ {}.tap do |hash|
206
+ value.each do |k, v|
207
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
208
+ end
209
+ end
210
+ else # model
211
+ temp_model = CloudsmithApi.const_get(type).new
212
+ temp_model.build_from_hash(value)
213
+ end
214
+ end
215
+
216
+ # Returns the string representation of the object
217
+ # @return [String] String presentation of the object
218
+ def to_s
219
+ to_hash.to_s
220
+ end
221
+
222
+ # to_body is an alias to to_hash (backward compatibility)
223
+ # @return [Hash] Returns the object in the form of hash
224
+ def to_body
225
+ to_hash
226
+ end
227
+
228
+ # Returns the object in the form of hash
229
+ # @return [Hash] Returns the object in the form of hash
230
+ def to_hash
231
+ hash = {}
232
+ self.class.attribute_map.each_pair do |attr, param|
233
+ value = self.send(attr)
234
+ next if value.nil?
235
+ hash[param] = _to_hash(value)
236
+ end
237
+ hash
238
+ end
239
+
240
+ # Outputs non-array value in the form of hash
241
+ # For object, use to_hash. Otherwise, just return the value
242
+ # @param [Object] value Any valid value
243
+ # @return [Hash] Returns the value in the form of hash
244
+ def _to_hash(value)
245
+ if value.is_a?(Array)
246
+ value.compact.map { |v| _to_hash(v) }
247
+ elsif value.is_a?(Hash)
248
+ {}.tap do |hash|
249
+ value.each { |k, v| hash[k] = _to_hash(v) }
250
+ end
251
+ elsif value.respond_to? :to_hash
252
+ value.to_hash
253
+ else
254
+ value
255
+ end
256
+ end
257
+
258
+ end
259
+ end
@@ -36,6 +36,9 @@ class P2PackageUpload
36
36
 
37
37
  attr_accessor :display_name
38
38
 
39
+ # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).
40
+ attr_accessor :display_source
41
+
39
42
  attr_accessor :distro
40
43
 
41
44
  attr_accessor :distro_version
@@ -78,9 +81,6 @@ class P2PackageUpload
78
81
 
79
82
  attr_accessor :is_hidden
80
83
 
81
- # Whether the package has been detected as containing malware. Requires Ultra plan.
82
- attr_accessor :is_malware_detected
83
-
84
84
  attr_accessor :is_moveable
85
85
 
86
86
  attr_accessor :is_quarantinable
@@ -222,8 +222,6 @@ class P2PackageUpload
222
222
 
223
223
  attr_accessor :version_orig
224
224
 
225
- attr_accessor :vulnerability_counts
226
-
227
225
  attr_accessor :vulnerability_scan_results_url
228
226
 
229
227
  class EnumAttributeValidator
@@ -261,6 +259,7 @@ class P2PackageUpload
261
259
  :'dependencies_url' => :'dependencies_url',
262
260
  :'description' => :'description',
263
261
  :'display_name' => :'display_name',
262
+ :'display_source' => :'display_source',
264
263
  :'distro' => :'distro',
265
264
  :'distro_version' => :'distro_version',
266
265
  :'downloads' => :'downloads',
@@ -280,7 +279,6 @@ class P2PackageUpload
280
279
  :'is_deleteable' => :'is_deleteable',
281
280
  :'is_downloadable' => :'is_downloadable',
282
281
  :'is_hidden' => :'is_hidden',
283
- :'is_malware_detected' => :'is_malware_detected',
284
282
  :'is_moveable' => :'is_moveable',
285
283
  :'is_quarantinable' => :'is_quarantinable',
286
284
  :'is_quarantined' => :'is_quarantined',
@@ -339,7 +337,6 @@ class P2PackageUpload
339
337
  :'uploader_url' => :'uploader_url',
340
338
  :'version' => :'version',
341
339
  :'version_orig' => :'version_orig',
342
- :'vulnerability_counts' => :'vulnerability_counts',
343
340
  :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url'
344
341
  }
345
342
  end
@@ -357,6 +354,7 @@ class P2PackageUpload
357
354
  :'dependencies_url' => :'String',
358
355
  :'description' => :'String',
359
356
  :'display_name' => :'String',
357
+ :'display_source' => :'String',
360
358
  :'distro' => :'Distribution',
361
359
  :'distro_version' => :'DistributionVersion',
362
360
  :'downloads' => :'Integer',
@@ -376,7 +374,6 @@ class P2PackageUpload
376
374
  :'is_deleteable' => :'BOOLEAN',
377
375
  :'is_downloadable' => :'BOOLEAN',
378
376
  :'is_hidden' => :'BOOLEAN',
379
- :'is_malware_detected' => :'BOOLEAN',
380
377
  :'is_moveable' => :'BOOLEAN',
381
378
  :'is_quarantinable' => :'BOOLEAN',
382
379
  :'is_quarantined' => :'BOOLEAN',
@@ -435,7 +432,6 @@ class P2PackageUpload
435
432
  :'uploader_url' => :'String',
436
433
  :'version' => :'String',
437
434
  :'version_orig' => :'String',
438
- :'vulnerability_counts' => :'WebOSVSeverityCounts',
439
435
  :'vulnerability_scan_results_url' => :'String'
440
436
  }
441
437
  end
@@ -490,6 +486,10 @@ class P2PackageUpload
490
486
  self.display_name = attributes[:'display_name']
491
487
  end
492
488
 
489
+ if attributes.has_key?(:'display_source')
490
+ self.display_source = attributes[:'display_source']
491
+ end
492
+
493
493
  if attributes.has_key?(:'distro')
494
494
  self.distro = attributes[:'distro']
495
495
  end
@@ -570,10 +570,6 @@ class P2PackageUpload
570
570
  self.is_hidden = attributes[:'is_hidden']
571
571
  end
572
572
 
573
- if attributes.has_key?(:'is_malware_detected')
574
- self.is_malware_detected = attributes[:'is_malware_detected']
575
- end
576
-
577
573
  if attributes.has_key?(:'is_moveable')
578
574
  self.is_moveable = attributes[:'is_moveable']
579
575
  end
@@ -810,10 +806,6 @@ class P2PackageUpload
810
806
  self.version_orig = attributes[:'version_orig']
811
807
  end
812
808
 
813
- if attributes.has_key?(:'vulnerability_counts')
814
- self.vulnerability_counts = attributes[:'vulnerability_counts']
815
- end
816
-
817
809
  if attributes.has_key?(:'vulnerability_scan_results_url')
818
810
  self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url']
819
811
  end
@@ -859,6 +851,7 @@ class P2PackageUpload
859
851
  dependencies_url == o.dependencies_url &&
860
852
  description == o.description &&
861
853
  display_name == o.display_name &&
854
+ display_source == o.display_source &&
862
855
  distro == o.distro &&
863
856
  distro_version == o.distro_version &&
864
857
  downloads == o.downloads &&
@@ -878,7 +871,6 @@ class P2PackageUpload
878
871
  is_deleteable == o.is_deleteable &&
879
872
  is_downloadable == o.is_downloadable &&
880
873
  is_hidden == o.is_hidden &&
881
- is_malware_detected == o.is_malware_detected &&
882
874
  is_moveable == o.is_moveable &&
883
875
  is_quarantinable == o.is_quarantinable &&
884
876
  is_quarantined == o.is_quarantined &&
@@ -937,7 +929,6 @@ class P2PackageUpload
937
929
  uploader_url == o.uploader_url &&
938
930
  version == o.version &&
939
931
  version_orig == o.version_orig &&
940
- vulnerability_counts == o.vulnerability_counts &&
941
932
  vulnerability_scan_results_url == o.vulnerability_scan_results_url
942
933
  end
943
934
 
@@ -950,7 +941,7 @@ class P2PackageUpload
950
941
  # Calculates hash code according to all attributes.
951
942
  # @return [Fixnum] Hash code
952
943
  def hash
953
- [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_malware_detected, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash
944
+ [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, store_path, subtype, summary, sync_finished_at, sync_progress, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
954
945
  end
955
946
 
956
947
  # Builds the object from hash
@@ -14,9 +14,6 @@ require 'date'
14
14
 
15
15
  module CloudsmithApi
16
16
  class P2PackageUploadRequest
17
- # Whether the package has been detected as containing malware. Requires Ultra plan.
18
- attr_accessor :is_malware_detected
19
-
20
17
  # The primary file for the package.
21
18
  attr_accessor :package_file
22
19
 
@@ -26,27 +23,21 @@ class P2PackageUploadRequest
26
23
  # A comma-separated values list of tags to add to the package.
27
24
  attr_accessor :tags
28
25
 
29
- attr_accessor :vulnerability_counts
30
-
31
26
  # Attribute mapping from ruby-style variable name to JSON key.
32
27
  def self.attribute_map
33
28
  {
34
- :'is_malware_detected' => :'is_malware_detected',
35
29
  :'package_file' => :'package_file',
36
30
  :'republish' => :'republish',
37
- :'tags' => :'tags',
38
- :'vulnerability_counts' => :'vulnerability_counts'
31
+ :'tags' => :'tags'
39
32
  }
40
33
  end
41
34
 
42
35
  # Attribute type mapping.
43
36
  def self.swagger_types
44
37
  {
45
- :'is_malware_detected' => :'BOOLEAN',
46
38
  :'package_file' => :'String',
47
39
  :'republish' => :'BOOLEAN',
48
- :'tags' => :'String',
49
- :'vulnerability_counts' => :'WebOSVSeverityCounts'
40
+ :'tags' => :'String'
50
41
  }
51
42
  end
52
43
 
@@ -58,10 +49,6 @@ class P2PackageUploadRequest
58
49
  # convert string to symbol for hash key
59
50
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
51
 
61
- if attributes.has_key?(:'is_malware_detected')
62
- self.is_malware_detected = attributes[:'is_malware_detected']
63
- end
64
-
65
52
  if attributes.has_key?(:'package_file')
66
53
  self.package_file = attributes[:'package_file']
67
54
  end
@@ -73,10 +60,6 @@ class P2PackageUploadRequest
73
60
  if attributes.has_key?(:'tags')
74
61
  self.tags = attributes[:'tags']
75
62
  end
76
-
77
- if attributes.has_key?(:'vulnerability_counts')
78
- self.vulnerability_counts = attributes[:'vulnerability_counts']
79
- end
80
63
  end
81
64
 
82
65
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -102,11 +85,9 @@ class P2PackageUploadRequest
102
85
  def ==(o)
103
86
  return true if self.equal?(o)
104
87
  self.class == o.class &&
105
- is_malware_detected == o.is_malware_detected &&
106
88
  package_file == o.package_file &&
107
89
  republish == o.republish &&
108
- tags == o.tags &&
109
- vulnerability_counts == o.vulnerability_counts
90
+ tags == o.tags
110
91
  end
111
92
 
112
93
  # @see the `==` method
@@ -118,7 +99,7 @@ class P2PackageUploadRequest
118
99
  # Calculates hash code according to all attributes.
119
100
  # @return [Fixnum] Hash code
120
101
  def hash
121
- [is_malware_detected, package_file, republish, tags, vulnerability_counts].hash
102
+ [package_file, republish, tags].hash
122
103
  end
123
104
 
124
105
  # Builds the object from hash
@@ -36,6 +36,9 @@ class Package
36
36
 
37
37
  attr_accessor :display_name
38
38
 
39
+ # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).
40
+ attr_accessor :display_source
41
+
39
42
  attr_accessor :distro
40
43
 
41
44
  attr_accessor :distro_version
@@ -266,6 +269,7 @@ class Package
266
269
  :'dependencies_url' => :'dependencies_url',
267
270
  :'description' => :'description',
268
271
  :'display_name' => :'display_name',
272
+ :'display_source' => :'display_source',
269
273
  :'distro' => :'distro',
270
274
  :'distro_version' => :'distro_version',
271
275
  :'downloads' => :'downloads',
@@ -364,6 +368,7 @@ class Package
364
368
  :'dependencies_url' => :'String',
365
369
  :'description' => :'String',
366
370
  :'display_name' => :'String',
371
+ :'display_source' => :'String',
367
372
  :'distro' => :'Distribution',
368
373
  :'distro_version' => :'DistributionVersion',
369
374
  :'downloads' => :'Integer',
@@ -499,6 +504,10 @@ class Package
499
504
  self.display_name = attributes[:'display_name']
500
505
  end
501
506
 
507
+ if attributes.has_key?(:'display_source')
508
+ self.display_source = attributes[:'display_source']
509
+ end
510
+
502
511
  if attributes.has_key?(:'distro')
503
512
  self.distro = attributes[:'distro']
504
513
  end
@@ -876,6 +885,7 @@ class Package
876
885
  dependencies_url == o.dependencies_url &&
877
886
  description == o.description &&
878
887
  display_name == o.display_name &&
888
+ display_source == o.display_source &&
879
889
  distro == o.distro &&
880
890
  distro_version == o.distro_version &&
881
891
  downloads == o.downloads &&
@@ -969,7 +979,7 @@ class Package
969
979
  # Calculates hash code according to all attributes.
970
980
  # @return [Fixnum] Hash code
971
981
  def hash
972
- [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_malware_detected, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash
982
+ [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, distro, distro_version, downloads, epoch, extension, filename, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_malware_detected, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash
973
983
  end
974
984
 
975
985
  # Builds the object from hash
@@ -36,6 +36,9 @@ class PackageCopy
36
36
 
37
37
  attr_accessor :display_name
38
38
 
39
+ # Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).
40
+ attr_accessor :display_source
41
+
39
42
  attr_accessor :distro
40
43
 
41
44
  attr_accessor :distro_version
@@ -81,9 +84,6 @@ class PackageCopy
81
84
 
82
85
  attr_accessor :is_hidden
83
86
 
84
- # Whether the package has been detected as containing malware. Requires Ultra plan.
85
- attr_accessor :is_malware_detected
86
-
87
87
  attr_accessor :is_moveable
88
88
 
89
89
  attr_accessor :is_quarantinable
@@ -228,8 +228,6 @@ class PackageCopy
228
228
 
229
229
  attr_accessor :version_orig
230
230
 
231
- attr_accessor :vulnerability_counts
232
-
233
231
  attr_accessor :vulnerability_scan_results_url
234
232
 
235
233
  class EnumAttributeValidator
@@ -267,6 +265,7 @@ class PackageCopy
267
265
  :'dependencies_url' => :'dependencies_url',
268
266
  :'description' => :'description',
269
267
  :'display_name' => :'display_name',
268
+ :'display_source' => :'display_source',
270
269
  :'distro' => :'distro',
271
270
  :'distro_version' => :'distro_version',
272
271
  :'downloads' => :'downloads',
@@ -287,7 +286,6 @@ class PackageCopy
287
286
  :'is_deleteable' => :'is_deleteable',
288
287
  :'is_downloadable' => :'is_downloadable',
289
288
  :'is_hidden' => :'is_hidden',
290
- :'is_malware_detected' => :'is_malware_detected',
291
289
  :'is_moveable' => :'is_moveable',
292
290
  :'is_quarantinable' => :'is_quarantinable',
293
291
  :'is_quarantined' => :'is_quarantined',
@@ -347,7 +345,6 @@ class PackageCopy
347
345
  :'uploader_url' => :'uploader_url',
348
346
  :'version' => :'version',
349
347
  :'version_orig' => :'version_orig',
350
- :'vulnerability_counts' => :'vulnerability_counts',
351
348
  :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url'
352
349
  }
353
350
  end
@@ -365,6 +362,7 @@ class PackageCopy
365
362
  :'dependencies_url' => :'String',
366
363
  :'description' => :'String',
367
364
  :'display_name' => :'String',
365
+ :'display_source' => :'String',
368
366
  :'distro' => :'Distribution',
369
367
  :'distro_version' => :'DistributionVersion',
370
368
  :'downloads' => :'Integer',
@@ -385,7 +383,6 @@ class PackageCopy
385
383
  :'is_deleteable' => :'BOOLEAN',
386
384
  :'is_downloadable' => :'BOOLEAN',
387
385
  :'is_hidden' => :'BOOLEAN',
388
- :'is_malware_detected' => :'BOOLEAN',
389
386
  :'is_moveable' => :'BOOLEAN',
390
387
  :'is_quarantinable' => :'BOOLEAN',
391
388
  :'is_quarantined' => :'BOOLEAN',
@@ -445,7 +442,6 @@ class PackageCopy
445
442
  :'uploader_url' => :'String',
446
443
  :'version' => :'String',
447
444
  :'version_orig' => :'String',
448
- :'vulnerability_counts' => :'WebOSVSeverityCounts',
449
445
  :'vulnerability_scan_results_url' => :'String'
450
446
  }
451
447
  end
@@ -500,6 +496,10 @@ class PackageCopy
500
496
  self.display_name = attributes[:'display_name']
501
497
  end
502
498
 
499
+ if attributes.has_key?(:'display_source')
500
+ self.display_source = attributes[:'display_source']
501
+ end
502
+
503
503
  if attributes.has_key?(:'distro')
504
504
  self.distro = attributes[:'distro']
505
505
  end
@@ -584,10 +584,6 @@ class PackageCopy
584
584
  self.is_hidden = attributes[:'is_hidden']
585
585
  end
586
586
 
587
- if attributes.has_key?(:'is_malware_detected')
588
- self.is_malware_detected = attributes[:'is_malware_detected']
589
- end
590
-
591
587
  if attributes.has_key?(:'is_moveable')
592
588
  self.is_moveable = attributes[:'is_moveable']
593
589
  end
@@ -828,10 +824,6 @@ class PackageCopy
828
824
  self.version_orig = attributes[:'version_orig']
829
825
  end
830
826
 
831
- if attributes.has_key?(:'vulnerability_counts')
832
- self.vulnerability_counts = attributes[:'vulnerability_counts']
833
- end
834
-
835
827
  if attributes.has_key?(:'vulnerability_scan_results_url')
836
828
  self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url']
837
829
  end
@@ -877,6 +869,7 @@ class PackageCopy
877
869
  dependencies_url == o.dependencies_url &&
878
870
  description == o.description &&
879
871
  display_name == o.display_name &&
872
+ display_source == o.display_source &&
880
873
  distro == o.distro &&
881
874
  distro_version == o.distro_version &&
882
875
  downloads == o.downloads &&
@@ -897,7 +890,6 @@ class PackageCopy
897
890
  is_deleteable == o.is_deleteable &&
898
891
  is_downloadable == o.is_downloadable &&
899
892
  is_hidden == o.is_hidden &&
900
- is_malware_detected == o.is_malware_detected &&
901
893
  is_moveable == o.is_moveable &&
902
894
  is_quarantinable == o.is_quarantinable &&
903
895
  is_quarantined == o.is_quarantined &&
@@ -957,7 +949,6 @@ class PackageCopy
957
949
  uploader_url == o.uploader_url &&
958
950
  version == o.version &&
959
951
  version_orig == o.version_orig &&
960
- vulnerability_counts == o.vulnerability_counts &&
961
952
  vulnerability_scan_results_url == o.vulnerability_scan_results_url
962
953
  end
963
954
 
@@ -970,7 +961,7 @@ class PackageCopy
970
961
  # Calculates hash code according to all attributes.
971
962
  # @return [Fixnum] Hash code
972
963
  def hash
973
- [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, distro, distro_version, downloads, epoch, extension, filename, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_malware_detected, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash
964
+ [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, distro, distro_version, downloads, epoch, extension, filename, filepath, files, format, format_url, freeable_storage, fully_qualified_name, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, policy_violated, raw_license, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, store_path, subtype, summary, sync_finished_at, sync_progress, tags, tags_automatic, tags_immutable, tags_static, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
974
965
  end
975
966
 
976
967
  # Builds the object from hash