cloudsmith-api 2.0.2 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +13 -5
  4. data/build.json +1 -1
  5. data/docs/Eula.md +1 -1
  6. data/docs/HelmPackageUploadRequest.md +1 -0
  7. data/docs/HexPackageUpload.md +75 -0
  8. data/docs/HexPackageUploadRequest.md +10 -0
  9. data/docs/NestedLicensePolicy.md +1 -0
  10. data/docs/NestedVulnerabilityPolicy.md +1 -0
  11. data/docs/NestedVulnerabilityScanResults.md +1 -1
  12. data/docs/OrganizationPackageLicensePolicy.md +1 -0
  13. data/docs/OrganizationPackageLicensePolicyRequest.md +1 -0
  14. data/docs/OrganizationPackageLicensePolicyRequestPatch.md +1 -0
  15. data/docs/OrganizationPackageVulnerabilityPolicy.md +1 -0
  16. data/docs/OrganizationPackageVulnerabilityPolicyRequest.md +1 -0
  17. data/docs/OrganizationPackageVulnerabilityPolicyRequestPatch.md +1 -0
  18. data/docs/PackagesApi.md +246 -0
  19. data/docs/RepositoryToken.md +1 -1
  20. data/docs/RepositoryTokenRefresh.md +1 -1
  21. data/docs/RepositoryWebhook.md +1 -1
  22. data/docs/StatusBasic.md +1 -1
  23. data/docs/SwiftPackageUpload.md +75 -0
  24. data/docs/SwiftPackageUploadRequest.md +11 -0
  25. data/docs/VulnerabilitiesApi.md +8 -8
  26. data/docs/VulnerabilityScanResults.md +1 -1
  27. data/docs/VulnerabilityScanResultsList.md +1 -1
  28. data/lib/cloudsmith-api/api/packages_api.rb +246 -0
  29. data/lib/cloudsmith-api/api/vulnerabilities_api.rb +13 -13
  30. data/lib/cloudsmith-api/models/eula.rb +0 -5
  31. data/lib/cloudsmith-api/models/helm_package_upload_request.rb +11 -1
  32. data/lib/cloudsmith-api/models/hex_package_upload.rb +850 -0
  33. data/lib/cloudsmith-api/models/hex_package_upload_request.rb +210 -0
  34. data/lib/cloudsmith-api/models/nested_license_policy.rb +10 -1
  35. data/lib/cloudsmith-api/models/nested_vulnerability_policy.rb +10 -1
  36. data/lib/cloudsmith-api/models/nested_vulnerability_scan_results.rb +1 -0
  37. data/lib/cloudsmith-api/models/organization_package_license_policy.rb +10 -1
  38. data/lib/cloudsmith-api/models/organization_package_license_policy_request.rb +10 -1
  39. data/lib/cloudsmith-api/models/organization_package_license_policy_request_patch.rb +10 -1
  40. data/lib/cloudsmith-api/models/organization_package_vulnerability_policy.rb +10 -1
  41. data/lib/cloudsmith-api/models/organization_package_vulnerability_policy_request.rb +13 -4
  42. data/lib/cloudsmith-api/models/organization_package_vulnerability_policy_request_patch.rb +13 -4
  43. data/lib/cloudsmith-api/models/repository_token.rb +1 -0
  44. data/lib/cloudsmith-api/models/repository_token_refresh.rb +1 -0
  45. data/lib/cloudsmith-api/models/repository_webhook.rb +1 -0
  46. data/lib/cloudsmith-api/models/status_basic.rb +1 -1
  47. data/lib/cloudsmith-api/models/swift_package_upload.rb +855 -0
  48. data/lib/cloudsmith-api/models/swift_package_upload_request.rb +225 -0
  49. data/lib/cloudsmith-api/models/vulnerability_scan_results.rb +1 -0
  50. data/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +1 -0
  51. data/lib/cloudsmith-api/version.rb +1 -1
  52. data/lib/cloudsmith-api.rb +4 -0
  53. data/spec/api/packages_api_spec.rb +56 -0
  54. data/spec/api/vulnerabilities_api_spec.rb +3 -3
  55. data/spec/models/helm_package_upload_request_spec.rb +6 -0
  56. data/spec/models/hex_package_upload_request_spec.rb +53 -0
  57. data/spec/models/hex_package_upload_spec.rb +447 -0
  58. data/spec/models/nested_license_policy_spec.rb +6 -0
  59. data/spec/models/nested_vulnerability_policy_spec.rb +6 -0
  60. data/spec/models/organization_package_license_policy_request_patch_spec.rb +6 -0
  61. data/spec/models/organization_package_license_policy_request_spec.rb +6 -0
  62. data/spec/models/organization_package_license_policy_spec.rb +6 -0
  63. data/spec/models/organization_package_vulnerability_policy_request_patch_spec.rb +6 -0
  64. data/spec/models/organization_package_vulnerability_policy_request_spec.rb +6 -0
  65. data/spec/models/organization_package_vulnerability_policy_spec.rb +6 -0
  66. data/spec/models/swift_package_upload_request_spec.rb +59 -0
  67. data/spec/models/swift_package_upload_spec.rb +447 -0
  68. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.20/gem_make.out +1 -1
  69. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +2 -2
  70. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/gem_make.out +1 -1
  71. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/mkmf.log +1 -1
  72. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  73. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/Makefile +2 -2
  74. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/generator/Makefile +2 -2
  75. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/parser/Makefile +2 -2
  76. metadata +18 -2
@@ -0,0 +1,210 @@
1
+ =begin
2
+ #Cloudsmith API (v1)
3
+
4
+ #The API to the Cloudsmith Service
5
+
6
+ OpenAPI spec version: v1
7
+ Contact: support@cloudsmith.io
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.26
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudsmithApi
16
+ class HexPackageUploadRequest
17
+ # The primary file for the package.
18
+ attr_accessor :package_file
19
+
20
+ # 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
+ attr_accessor :republish
22
+
23
+ # A comma-separated values list of tags to add to the package.
24
+ attr_accessor :tags
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'package_file' => :'package_file',
30
+ :'republish' => :'republish',
31
+ :'tags' => :'tags'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.swagger_types
37
+ {
38
+ :'package_file' => :'String',
39
+ :'republish' => :'BOOLEAN',
40
+ :'tags' => :'String'
41
+ }
42
+ end
43
+
44
+ # Initializes the object
45
+ # @param [Hash] attributes Model attributes in the form of hash
46
+ def initialize(attributes = {})
47
+ return unless attributes.is_a?(Hash)
48
+
49
+ # convert string to symbol for hash key
50
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
51
+
52
+ if attributes.has_key?(:'package_file')
53
+ self.package_file = attributes[:'package_file']
54
+ end
55
+
56
+ if attributes.has_key?(:'republish')
57
+ self.republish = attributes[:'republish']
58
+ end
59
+
60
+ if attributes.has_key?(:'tags')
61
+ self.tags = attributes[:'tags']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ if @package_file.nil?
70
+ invalid_properties.push('invalid value for "package_file", package_file cannot be nil.')
71
+ end
72
+
73
+ invalid_properties
74
+ end
75
+
76
+ # Check to see if the all the properties in the model are valid
77
+ # @return true if the model is valid
78
+ def valid?
79
+ return false if @package_file.nil?
80
+ 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
+ package_file == o.package_file &&
89
+ republish == o.republish &&
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
+ [package_file, republish, 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 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
+ end
@@ -24,6 +24,8 @@ class NestedLicensePolicy
24
24
 
25
25
  attr_accessor :on_violation_quarantine
26
26
 
27
+ attr_accessor :package_query_string
28
+
27
29
  attr_accessor :slug_perm
28
30
 
29
31
  attr_accessor :spdx_identifiers
@@ -40,6 +42,7 @@ class NestedLicensePolicy
40
42
  :'description' => :'description',
41
43
  :'name' => :'name',
42
44
  :'on_violation_quarantine' => :'on_violation_quarantine',
45
+ :'package_query_string' => :'package_query_string',
43
46
  :'slug_perm' => :'slug_perm',
44
47
  :'spdx_identifiers' => :'spdx_identifiers',
45
48
  :'updated_at' => :'updated_at',
@@ -55,6 +58,7 @@ class NestedLicensePolicy
55
58
  :'description' => :'String',
56
59
  :'name' => :'String',
57
60
  :'on_violation_quarantine' => :'BOOLEAN',
61
+ :'package_query_string' => :'String',
58
62
  :'slug_perm' => :'String',
59
63
  :'spdx_identifiers' => :'Array<String>',
60
64
  :'updated_at' => :'DateTime',
@@ -90,6 +94,10 @@ class NestedLicensePolicy
90
94
  self.on_violation_quarantine = attributes[:'on_violation_quarantine']
91
95
  end
92
96
 
97
+ if attributes.has_key?(:'package_query_string')
98
+ self.package_query_string = attributes[:'package_query_string']
99
+ end
100
+
93
101
  if attributes.has_key?(:'slug_perm')
94
102
  self.slug_perm = attributes[:'slug_perm']
95
103
  end
@@ -137,6 +145,7 @@ class NestedLicensePolicy
137
145
  description == o.description &&
138
146
  name == o.name &&
139
147
  on_violation_quarantine == o.on_violation_quarantine &&
148
+ package_query_string == o.package_query_string &&
140
149
  slug_perm == o.slug_perm &&
141
150
  spdx_identifiers == o.spdx_identifiers &&
142
151
  updated_at == o.updated_at &&
@@ -152,7 +161,7 @@ class NestedLicensePolicy
152
161
  # Calculates hash code according to all attributes.
153
162
  # @return [Fixnum] Hash code
154
163
  def hash
155
- [allow_unknown_licenses, created_at, description, name, on_violation_quarantine, slug_perm, spdx_identifiers, updated_at, url].hash
164
+ [allow_unknown_licenses, created_at, description, name, on_violation_quarantine, package_query_string, slug_perm, spdx_identifiers, updated_at, url].hash
156
165
  end
157
166
 
158
167
  # Builds the object from hash
@@ -27,6 +27,8 @@ class NestedVulnerabilityPolicy
27
27
 
28
28
  attr_accessor :on_violation_quarantine
29
29
 
30
+ attr_accessor :package_query_string
31
+
30
32
  attr_accessor :slug_perm
31
33
 
32
34
  attr_accessor :updated_at
@@ -64,6 +66,7 @@ class NestedVulnerabilityPolicy
64
66
  :'min_severity' => :'min_severity',
65
67
  :'name' => :'name',
66
68
  :'on_violation_quarantine' => :'on_violation_quarantine',
69
+ :'package_query_string' => :'package_query_string',
67
70
  :'slug_perm' => :'slug_perm',
68
71
  :'updated_at' => :'updated_at',
69
72
  :'url' => :'url'
@@ -79,6 +82,7 @@ class NestedVulnerabilityPolicy
79
82
  :'min_severity' => :'String',
80
83
  :'name' => :'String',
81
84
  :'on_violation_quarantine' => :'BOOLEAN',
85
+ :'package_query_string' => :'String',
82
86
  :'slug_perm' => :'String',
83
87
  :'updated_at' => :'DateTime',
84
88
  :'url' => :'String'
@@ -119,6 +123,10 @@ class NestedVulnerabilityPolicy
119
123
  self.on_violation_quarantine = attributes[:'on_violation_quarantine']
120
124
  end
121
125
 
126
+ if attributes.has_key?(:'package_query_string')
127
+ self.package_query_string = attributes[:'package_query_string']
128
+ end
129
+
122
130
  if attributes.has_key?(:'slug_perm')
123
131
  self.slug_perm = attributes[:'slug_perm']
124
132
  end
@@ -168,6 +176,7 @@ class NestedVulnerabilityPolicy
168
176
  min_severity == o.min_severity &&
169
177
  name == o.name &&
170
178
  on_violation_quarantine == o.on_violation_quarantine &&
179
+ package_query_string == o.package_query_string &&
171
180
  slug_perm == o.slug_perm &&
172
181
  updated_at == o.updated_at &&
173
182
  url == o.url
@@ -182,7 +191,7 @@ class NestedVulnerabilityPolicy
182
191
  # Calculates hash code according to all attributes.
183
192
  # @return [Fixnum] Hash code
184
193
  def hash
185
- [allow_unknown_severity, created_at, description, min_severity, name, on_violation_quarantine, slug_perm, updated_at, url].hash
194
+ [allow_unknown_severity, created_at, description, min_severity, name, on_violation_quarantine, package_query_string, slug_perm, updated_at, url].hash
186
195
  end
187
196
 
188
197
  # Builds the object from hash
@@ -26,6 +26,7 @@ class NestedVulnerabilityScanResults
26
26
 
27
27
  attr_accessor :num_vulnerabilities
28
28
 
29
+ # Deprecated (23-05-15): Please use 'identifier' instead. Previously: A monotonically increasing number that identified a scan within a repository.
29
30
  attr_accessor :scan_id
30
31
 
31
32
  attr_accessor :url
@@ -24,6 +24,8 @@ class OrganizationPackageLicensePolicy
24
24
 
25
25
  attr_accessor :on_violation_quarantine
26
26
 
27
+ attr_accessor :package_query_string
28
+
27
29
  attr_accessor :slug_perm
28
30
 
29
31
  attr_accessor :spdx_identifiers
@@ -38,6 +40,7 @@ class OrganizationPackageLicensePolicy
38
40
  :'description' => :'description',
39
41
  :'name' => :'name',
40
42
  :'on_violation_quarantine' => :'on_violation_quarantine',
43
+ :'package_query_string' => :'package_query_string',
41
44
  :'slug_perm' => :'slug_perm',
42
45
  :'spdx_identifiers' => :'spdx_identifiers',
43
46
  :'updated_at' => :'updated_at'
@@ -52,6 +55,7 @@ class OrganizationPackageLicensePolicy
52
55
  :'description' => :'String',
53
56
  :'name' => :'String',
54
57
  :'on_violation_quarantine' => :'BOOLEAN',
58
+ :'package_query_string' => :'String',
55
59
  :'slug_perm' => :'String',
56
60
  :'spdx_identifiers' => :'Array<String>',
57
61
  :'updated_at' => :'DateTime'
@@ -86,6 +90,10 @@ class OrganizationPackageLicensePolicy
86
90
  self.on_violation_quarantine = attributes[:'on_violation_quarantine']
87
91
  end
88
92
 
93
+ if attributes.has_key?(:'package_query_string')
94
+ self.package_query_string = attributes[:'package_query_string']
95
+ end
96
+
89
97
  if attributes.has_key?(:'slug_perm')
90
98
  self.slug_perm = attributes[:'slug_perm']
91
99
  end
@@ -134,6 +142,7 @@ class OrganizationPackageLicensePolicy
134
142
  description == o.description &&
135
143
  name == o.name &&
136
144
  on_violation_quarantine == o.on_violation_quarantine &&
145
+ package_query_string == o.package_query_string &&
137
146
  slug_perm == o.slug_perm &&
138
147
  spdx_identifiers == o.spdx_identifiers &&
139
148
  updated_at == o.updated_at
@@ -148,7 +157,7 @@ class OrganizationPackageLicensePolicy
148
157
  # Calculates hash code according to all attributes.
149
158
  # @return [Fixnum] Hash code
150
159
  def hash
151
- [allow_unknown_licenses, created_at, description, name, on_violation_quarantine, slug_perm, spdx_identifiers, updated_at].hash
160
+ [allow_unknown_licenses, created_at, description, name, on_violation_quarantine, package_query_string, slug_perm, spdx_identifiers, updated_at].hash
152
161
  end
153
162
 
154
163
  # Builds the object from hash
@@ -22,6 +22,8 @@ class OrganizationPackageLicensePolicyRequest
22
22
 
23
23
  attr_accessor :on_violation_quarantine
24
24
 
25
+ attr_accessor :package_query_string
26
+
25
27
  attr_accessor :spdx_identifiers
26
28
 
27
29
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -31,6 +33,7 @@ class OrganizationPackageLicensePolicyRequest
31
33
  :'description' => :'description',
32
34
  :'name' => :'name',
33
35
  :'on_violation_quarantine' => :'on_violation_quarantine',
36
+ :'package_query_string' => :'package_query_string',
34
37
  :'spdx_identifiers' => :'spdx_identifiers'
35
38
  }
36
39
  end
@@ -42,6 +45,7 @@ class OrganizationPackageLicensePolicyRequest
42
45
  :'description' => :'String',
43
46
  :'name' => :'String',
44
47
  :'on_violation_quarantine' => :'BOOLEAN',
48
+ :'package_query_string' => :'String',
45
49
  :'spdx_identifiers' => :'Array<String>'
46
50
  }
47
51
  end
@@ -70,6 +74,10 @@ class OrganizationPackageLicensePolicyRequest
70
74
  self.on_violation_quarantine = attributes[:'on_violation_quarantine']
71
75
  end
72
76
 
77
+ if attributes.has_key?(:'package_query_string')
78
+ self.package_query_string = attributes[:'package_query_string']
79
+ end
80
+
73
81
  if attributes.has_key?(:'spdx_identifiers')
74
82
  if (value = attributes[:'spdx_identifiers']).is_a?(Array)
75
83
  self.spdx_identifiers = value
@@ -109,6 +117,7 @@ class OrganizationPackageLicensePolicyRequest
109
117
  description == o.description &&
110
118
  name == o.name &&
111
119
  on_violation_quarantine == o.on_violation_quarantine &&
120
+ package_query_string == o.package_query_string &&
112
121
  spdx_identifiers == o.spdx_identifiers
113
122
  end
114
123
 
@@ -121,7 +130,7 @@ class OrganizationPackageLicensePolicyRequest
121
130
  # Calculates hash code according to all attributes.
122
131
  # @return [Fixnum] Hash code
123
132
  def hash
124
- [allow_unknown_licenses, description, name, on_violation_quarantine, spdx_identifiers].hash
133
+ [allow_unknown_licenses, description, name, on_violation_quarantine, package_query_string, spdx_identifiers].hash
125
134
  end
126
135
 
127
136
  # Builds the object from hash
@@ -22,6 +22,8 @@ class OrganizationPackageLicensePolicyRequestPatch
22
22
 
23
23
  attr_accessor :on_violation_quarantine
24
24
 
25
+ attr_accessor :package_query_string
26
+
25
27
  attr_accessor :spdx_identifiers
26
28
 
27
29
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -31,6 +33,7 @@ class OrganizationPackageLicensePolicyRequestPatch
31
33
  :'description' => :'description',
32
34
  :'name' => :'name',
33
35
  :'on_violation_quarantine' => :'on_violation_quarantine',
36
+ :'package_query_string' => :'package_query_string',
34
37
  :'spdx_identifiers' => :'spdx_identifiers'
35
38
  }
36
39
  end
@@ -42,6 +45,7 @@ class OrganizationPackageLicensePolicyRequestPatch
42
45
  :'description' => :'String',
43
46
  :'name' => :'String',
44
47
  :'on_violation_quarantine' => :'BOOLEAN',
48
+ :'package_query_string' => :'String',
45
49
  :'spdx_identifiers' => :'Array<String>'
46
50
  }
47
51
  end
@@ -70,6 +74,10 @@ class OrganizationPackageLicensePolicyRequestPatch
70
74
  self.on_violation_quarantine = attributes[:'on_violation_quarantine']
71
75
  end
72
76
 
77
+ if attributes.has_key?(:'package_query_string')
78
+ self.package_query_string = attributes[:'package_query_string']
79
+ end
80
+
73
81
  if attributes.has_key?(:'spdx_identifiers')
74
82
  if (value = attributes[:'spdx_identifiers']).is_a?(Array)
75
83
  self.spdx_identifiers = value
@@ -99,6 +107,7 @@ class OrganizationPackageLicensePolicyRequestPatch
99
107
  description == o.description &&
100
108
  name == o.name &&
101
109
  on_violation_quarantine == o.on_violation_quarantine &&
110
+ package_query_string == o.package_query_string &&
102
111
  spdx_identifiers == o.spdx_identifiers
103
112
  end
104
113
 
@@ -111,7 +120,7 @@ class OrganizationPackageLicensePolicyRequestPatch
111
120
  # Calculates hash code according to all attributes.
112
121
  # @return [Fixnum] Hash code
113
122
  def hash
114
- [allow_unknown_licenses, description, name, on_violation_quarantine, spdx_identifiers].hash
123
+ [allow_unknown_licenses, description, name, on_violation_quarantine, package_query_string, spdx_identifiers].hash
115
124
  end
116
125
 
117
126
  # Builds the object from hash
@@ -27,6 +27,8 @@ class OrganizationPackageVulnerabilityPolicy
27
27
 
28
28
  attr_accessor :on_violation_quarantine
29
29
 
30
+ attr_accessor :package_query_string
31
+
30
32
  attr_accessor :slug_perm
31
33
 
32
34
  attr_accessor :updated_at
@@ -62,6 +64,7 @@ class OrganizationPackageVulnerabilityPolicy
62
64
  :'min_severity' => :'min_severity',
63
65
  :'name' => :'name',
64
66
  :'on_violation_quarantine' => :'on_violation_quarantine',
67
+ :'package_query_string' => :'package_query_string',
65
68
  :'slug_perm' => :'slug_perm',
66
69
  :'updated_at' => :'updated_at'
67
70
  }
@@ -76,6 +79,7 @@ class OrganizationPackageVulnerabilityPolicy
76
79
  :'min_severity' => :'String',
77
80
  :'name' => :'String',
78
81
  :'on_violation_quarantine' => :'BOOLEAN',
82
+ :'package_query_string' => :'String',
79
83
  :'slug_perm' => :'String',
80
84
  :'updated_at' => :'DateTime'
81
85
  }
@@ -115,6 +119,10 @@ class OrganizationPackageVulnerabilityPolicy
115
119
  self.on_violation_quarantine = attributes[:'on_violation_quarantine']
116
120
  end
117
121
 
122
+ if attributes.has_key?(:'package_query_string')
123
+ self.package_query_string = attributes[:'package_query_string']
124
+ end
125
+
118
126
  if attributes.has_key?(:'slug_perm')
119
127
  self.slug_perm = attributes[:'slug_perm']
120
128
  end
@@ -165,6 +173,7 @@ class OrganizationPackageVulnerabilityPolicy
165
173
  min_severity == o.min_severity &&
166
174
  name == o.name &&
167
175
  on_violation_quarantine == o.on_violation_quarantine &&
176
+ package_query_string == o.package_query_string &&
168
177
  slug_perm == o.slug_perm &&
169
178
  updated_at == o.updated_at
170
179
  end
@@ -178,7 +187,7 @@ class OrganizationPackageVulnerabilityPolicy
178
187
  # Calculates hash code according to all attributes.
179
188
  # @return [Fixnum] Hash code
180
189
  def hash
181
- [allow_unknown_severity, created_at, description, min_severity, name, on_violation_quarantine, slug_perm, updated_at].hash
190
+ [allow_unknown_severity, created_at, description, min_severity, name, on_violation_quarantine, package_query_string, slug_perm, updated_at].hash
182
191
  end
183
192
 
184
193
  # Builds the object from hash
@@ -25,6 +25,8 @@ class OrganizationPackageVulnerabilityPolicyRequest
25
25
 
26
26
  attr_accessor :on_violation_quarantine
27
27
 
28
+ attr_accessor :package_query_string
29
+
28
30
  class EnumAttributeValidator
29
31
  attr_reader :datatype
30
32
  attr_reader :allowable_values
@@ -54,7 +56,8 @@ class OrganizationPackageVulnerabilityPolicyRequest
54
56
  :'description' => :'description',
55
57
  :'min_severity' => :'min_severity',
56
58
  :'name' => :'name',
57
- :'on_violation_quarantine' => :'on_violation_quarantine'
59
+ :'on_violation_quarantine' => :'on_violation_quarantine',
60
+ :'package_query_string' => :'package_query_string'
58
61
  }
59
62
  end
60
63
 
@@ -65,7 +68,8 @@ class OrganizationPackageVulnerabilityPolicyRequest
65
68
  :'description' => :'String',
66
69
  :'min_severity' => :'String',
67
70
  :'name' => :'String',
68
- :'on_violation_quarantine' => :'BOOLEAN'
71
+ :'on_violation_quarantine' => :'BOOLEAN',
72
+ :'package_query_string' => :'String'
69
73
  }
70
74
  end
71
75
 
@@ -98,6 +102,10 @@ class OrganizationPackageVulnerabilityPolicyRequest
98
102
  if attributes.has_key?(:'on_violation_quarantine')
99
103
  self.on_violation_quarantine = attributes[:'on_violation_quarantine']
100
104
  end
105
+
106
+ if attributes.has_key?(:'package_query_string')
107
+ self.package_query_string = attributes[:'package_query_string']
108
+ end
101
109
  end
102
110
 
103
111
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -139,7 +147,8 @@ class OrganizationPackageVulnerabilityPolicyRequest
139
147
  description == o.description &&
140
148
  min_severity == o.min_severity &&
141
149
  name == o.name &&
142
- on_violation_quarantine == o.on_violation_quarantine
150
+ on_violation_quarantine == o.on_violation_quarantine &&
151
+ package_query_string == o.package_query_string
143
152
  end
144
153
 
145
154
  # @see the `==` method
@@ -151,7 +160,7 @@ class OrganizationPackageVulnerabilityPolicyRequest
151
160
  # Calculates hash code according to all attributes.
152
161
  # @return [Fixnum] Hash code
153
162
  def hash
154
- [allow_unknown_severity, description, min_severity, name, on_violation_quarantine].hash
163
+ [allow_unknown_severity, description, min_severity, name, on_violation_quarantine, package_query_string].hash
155
164
  end
156
165
 
157
166
  # Builds the object from hash
@@ -25,6 +25,8 @@ class OrganizationPackageVulnerabilityPolicyRequestPatch
25
25
 
26
26
  attr_accessor :on_violation_quarantine
27
27
 
28
+ attr_accessor :package_query_string
29
+
28
30
  class EnumAttributeValidator
29
31
  attr_reader :datatype
30
32
  attr_reader :allowable_values
@@ -54,7 +56,8 @@ class OrganizationPackageVulnerabilityPolicyRequestPatch
54
56
  :'description' => :'description',
55
57
  :'min_severity' => :'min_severity',
56
58
  :'name' => :'name',
57
- :'on_violation_quarantine' => :'on_violation_quarantine'
59
+ :'on_violation_quarantine' => :'on_violation_quarantine',
60
+ :'package_query_string' => :'package_query_string'
58
61
  }
59
62
  end
60
63
 
@@ -65,7 +68,8 @@ class OrganizationPackageVulnerabilityPolicyRequestPatch
65
68
  :'description' => :'String',
66
69
  :'min_severity' => :'String',
67
70
  :'name' => :'String',
68
- :'on_violation_quarantine' => :'BOOLEAN'
71
+ :'on_violation_quarantine' => :'BOOLEAN',
72
+ :'package_query_string' => :'String'
69
73
  }
70
74
  end
71
75
 
@@ -98,6 +102,10 @@ class OrganizationPackageVulnerabilityPolicyRequestPatch
98
102
  if attributes.has_key?(:'on_violation_quarantine')
99
103
  self.on_violation_quarantine = attributes[:'on_violation_quarantine']
100
104
  end
105
+
106
+ if attributes.has_key?(:'package_query_string')
107
+ self.package_query_string = attributes[:'package_query_string']
108
+ end
101
109
  end
102
110
 
103
111
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -134,7 +142,8 @@ class OrganizationPackageVulnerabilityPolicyRequestPatch
134
142
  description == o.description &&
135
143
  min_severity == o.min_severity &&
136
144
  name == o.name &&
137
- on_violation_quarantine == o.on_violation_quarantine
145
+ on_violation_quarantine == o.on_violation_quarantine &&
146
+ package_query_string == o.package_query_string
138
147
  end
139
148
 
140
149
  # @see the `==` method
@@ -146,7 +155,7 @@ class OrganizationPackageVulnerabilityPolicyRequestPatch
146
155
  # Calculates hash code according to all attributes.
147
156
  # @return [Fixnum] Hash code
148
157
  def hash
149
- [allow_unknown_severity, description, min_severity, name, on_violation_quarantine].hash
158
+ [allow_unknown_severity, description, min_severity, name, on_violation_quarantine, package_query_string].hash
150
159
  end
151
160
 
152
161
  # Builds the object from hash
@@ -44,6 +44,7 @@ class RepositoryToken
44
44
 
45
45
  attr_accessor :has_limits
46
46
 
47
+ # Deprecated (23-05-15): Please use 'slug_perm' instead. Previously: A monotonically increasing number that identified an entitlement within a repository.
47
48
  attr_accessor :identifier
48
49
 
49
50
  # If enabled, the token will allow downloads based on configured restrictions (if any).
@@ -44,6 +44,7 @@ class RepositoryTokenRefresh
44
44
 
45
45
  attr_accessor :has_limits
46
46
 
47
+ # Deprecated (23-05-15): Please use 'slug_perm' instead. Previously: A monotonically increasing number that identified an entitlement within a repository.
47
48
  attr_accessor :identifier
48
49
 
49
50
  # If enabled, the token will allow downloads based on configured restrictions (if any).
@@ -26,6 +26,7 @@ class RepositoryWebhook
26
26
 
27
27
  attr_accessor :events
28
28
 
29
+ # Deprecated (23-05-15): Please use 'slug_perm' instead. Previously: A monotonically increasing number that identified a webhook request within a repository.
29
30
  attr_accessor :identifier
30
31
 
31
32
  # If enabled, the webhook will trigger on subscribed events and send payloads to the configured target URL.
@@ -53,7 +53,7 @@ class StatusBasic
53
53
  if attributes.has_key?(:'version')
54
54
  self.version = attributes[:'version']
55
55
  else
56
- self.version = '1.249.4'
56
+ self.version = '1.273.0'
57
57
  end
58
58
  end
59
59