pulp_rpm_client 3.26.5 → 3.27.0

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 (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -5
  3. data/docs/AcsRpmApi.md +3 -5
  4. data/docs/ArtifactResponse.md +0 -2
  5. data/docs/ContentAdvisoriesApi.md +10 -14
  6. data/docs/ContentDistributionTreesApi.md +9 -11
  7. data/docs/ContentModulemdDefaultsApi.md +9 -11
  8. data/docs/ContentModulemdObsoletesApi.md +9 -11
  9. data/docs/ContentModulemdsApi.md +9 -11
  10. data/docs/ContentPackagecategoriesApi.md +9 -11
  11. data/docs/ContentPackageenvironmentsApi.md +9 -11
  12. data/docs/ContentPackagegroupsApi.md +9 -11
  13. data/docs/ContentPackagelangpacksApi.md +9 -11
  14. data/docs/ContentPackagesApi.md +11 -15
  15. data/docs/ContentRepoMetadataFilesApi.md +9 -11
  16. data/docs/DistributionsRpmApi.md +3 -5
  17. data/docs/PatchedrpmRpmRepository.md +4 -0
  18. data/docs/PrunePackages.md +21 -0
  19. data/docs/PublicationsRpmApi.md +11 -13
  20. data/docs/RemotesRpmApi.md +3 -5
  21. data/docs/RemotesUlnApi.md +3 -5
  22. data/docs/RepositoriesRpmApi.md +7 -9
  23. data/docs/RepositoriesRpmVersionsApi.md +7 -9
  24. data/docs/RepositoryVersionResponse.md +0 -2
  25. data/docs/RpmCompsApi.md +1 -1
  26. data/docs/RpmCopyApi.md +1 -1
  27. data/docs/RpmModulemdDefaultsResponse.md +0 -2
  28. data/docs/RpmModulemdObsoleteResponse.md +0 -2
  29. data/docs/RpmModulemdResponse.md +0 -2
  30. data/docs/RpmPackage.md +1 -3
  31. data/docs/RpmPackageCategoryResponse.md +0 -2
  32. data/docs/RpmPackageEnvironmentResponse.md +0 -2
  33. data/docs/RpmPackageGroupResponse.md +0 -2
  34. data/docs/RpmPackageLangpacksResponse.md +0 -2
  35. data/docs/RpmPackageResponse.md +0 -2
  36. data/docs/RpmPruneApi.md +61 -0
  37. data/docs/RpmRepoMetadataFileResponse.md +0 -2
  38. data/docs/RpmRpmAlternateContentSourceResponse.md +0 -2
  39. data/docs/RpmRpmDistributionResponse.md +0 -4
  40. data/docs/RpmRpmPublicationResponse.md +0 -2
  41. data/docs/RpmRpmRemoteResponse.md +0 -2
  42. data/docs/RpmRpmRepository.md +4 -0
  43. data/docs/RpmRpmRepositoryResponse.md +4 -2
  44. data/docs/RpmUlnRemoteResponse.md +0 -2
  45. data/docs/RpmUpdateRecord.md +1 -3
  46. data/docs/RpmUpdateRecordResponse.md +0 -2
  47. data/lib/pulp_rpm_client/api/acs_rpm_api.rb +2 -5
  48. data/lib/pulp_rpm_client/api/content_advisories_api.rb +8 -18
  49. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +8 -11
  50. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +8 -11
  51. data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +8 -11
  52. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +8 -11
  53. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +8 -11
  54. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +8 -11
  55. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +8 -11
  56. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +8 -11
  57. data/lib/pulp_rpm_client/api/content_packages_api.rb +10 -20
  58. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +8 -11
  59. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +2 -5
  60. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +11 -14
  61. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +2 -5
  62. data/lib/pulp_rpm_client/api/remotes_uln_api.rb +2 -5
  63. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +6 -9
  64. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +7 -10
  65. data/lib/pulp_rpm_client/api/rpm_prune_api.rb +84 -0
  66. data/lib/pulp_rpm_client/configuration.rb +2 -2
  67. data/lib/pulp_rpm_client/models/artifact_response.rb +2 -12
  68. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +39 -1
  69. data/lib/pulp_rpm_client/models/prune_packages.rb +254 -0
  70. data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +1 -1
  71. data/lib/pulp_rpm_client/models/repository_version_response.rb +2 -12
  72. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +1 -11
  73. data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +1 -11
  74. data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +1 -11
  75. data/lib/pulp_rpm_client/models/rpm_package.rb +4 -29
  76. data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +1 -11
  77. data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +1 -11
  78. data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +1 -11
  79. data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +1 -11
  80. data/lib/pulp_rpm_client/models/rpm_package_response.rb +1 -11
  81. data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +1 -11
  82. data/lib/pulp_rpm_client/models/rpm_rpm_alternate_content_source_response.rb +1 -11
  83. data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +1 -21
  84. data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +1 -11
  85. data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +1 -11
  86. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +39 -1
  87. data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +39 -11
  88. data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +1 -11
  89. data/lib/pulp_rpm_client/models/rpm_update_record.rb +4 -29
  90. data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +1 -11
  91. data/lib/pulp_rpm_client/version.rb +1 -1
  92. data/lib/pulp_rpm_client.rb +2 -0
  93. data/spec/api/acs_rpm_api_spec.rb +1 -2
  94. data/spec/api/content_advisories_api_spec.rb +4 -6
  95. data/spec/api/content_distribution_trees_api_spec.rb +4 -5
  96. data/spec/api/content_modulemd_defaults_api_spec.rb +4 -5
  97. data/spec/api/content_modulemd_obsoletes_api_spec.rb +4 -5
  98. data/spec/api/content_modulemds_api_spec.rb +4 -5
  99. data/spec/api/content_packagecategories_api_spec.rb +4 -5
  100. data/spec/api/content_packageenvironments_api_spec.rb +4 -5
  101. data/spec/api/content_packagegroups_api_spec.rb +4 -5
  102. data/spec/api/content_packagelangpacks_api_spec.rb +4 -5
  103. data/spec/api/content_packages_api_spec.rb +5 -7
  104. data/spec/api/content_repo_metadata_files_api_spec.rb +4 -5
  105. data/spec/api/distributions_rpm_api_spec.rb +1 -2
  106. data/spec/api/publications_rpm_api_spec.rb +5 -6
  107. data/spec/api/remotes_rpm_api_spec.rb +1 -2
  108. data/spec/api/remotes_uln_api_spec.rb +1 -2
  109. data/spec/api/repositories_rpm_api_spec.rb +3 -4
  110. data/spec/api/repositories_rpm_versions_api_spec.rb +3 -4
  111. data/spec/api/rpm_prune_api_spec.rb +46 -0
  112. data/spec/configuration_spec.rb +3 -3
  113. data/spec/models/artifact_response_spec.rb +0 -6
  114. data/spec/models/patchedrpm_rpm_repository_spec.rb +12 -0
  115. data/spec/models/prune_packages_spec.rb +53 -0
  116. data/spec/models/repository_version_response_spec.rb +0 -6
  117. data/spec/models/rpm_modulemd_defaults_response_spec.rb +0 -6
  118. data/spec/models/rpm_modulemd_obsolete_response_spec.rb +0 -6
  119. data/spec/models/rpm_modulemd_response_spec.rb +0 -6
  120. data/spec/models/rpm_package_category_response_spec.rb +0 -6
  121. data/spec/models/rpm_package_environment_response_spec.rb +0 -6
  122. data/spec/models/rpm_package_group_response_spec.rb +0 -6
  123. data/spec/models/rpm_package_langpacks_response_spec.rb +0 -6
  124. data/spec/models/rpm_package_response_spec.rb +0 -6
  125. data/spec/models/rpm_package_spec.rb +0 -6
  126. data/spec/models/rpm_repo_metadata_file_response_spec.rb +0 -6
  127. data/spec/models/rpm_rpm_alternate_content_source_response_spec.rb +0 -6
  128. data/spec/models/rpm_rpm_distribution_response_spec.rb +0 -12
  129. data/spec/models/rpm_rpm_publication_response_spec.rb +0 -6
  130. data/spec/models/rpm_rpm_remote_response_spec.rb +0 -6
  131. data/spec/models/rpm_rpm_repository_response_spec.rb +12 -6
  132. data/spec/models/rpm_rpm_repository_spec.rb +12 -0
  133. data/spec/models/rpm_uln_remote_response_spec.rb +0 -6
  134. data/spec/models/rpm_update_record_response_spec.rb +0 -6
  135. data/spec/models/rpm_update_record_spec.rb +0 -6
  136. metadata +105 -97
@@ -0,0 +1,254 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpRpmClient
16
+ # Serializer for prune-old-Packages operation.
17
+ class PrunePackages
18
+ # Will prune old packages from the specified list of repos. Use ['*'] to specify all repos. Will prune based on the specified repositories' latest_versions.
19
+ attr_accessor :repo_hrefs
20
+
21
+ # Prune packages introduced *prior-to* this many days ago. Default is 14. A value of 0 implies 'keep latest package only.'
22
+ attr_accessor :keep_days
23
+
24
+ # Determine what would-be-pruned and log the list of packages. Intended as a debugging aid.
25
+ attr_accessor :dry_run
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'repo_hrefs' => :'repo_hrefs',
31
+ :'keep_days' => :'keep_days',
32
+ :'dry_run' => :'dry_run'
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'repo_hrefs' => :'Array<String>',
40
+ :'keep_days' => :'Integer',
41
+ :'dry_run' => :'Boolean'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::PrunePackages` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::PrunePackages`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'repo_hrefs')
67
+ if (value = attributes[:'repo_hrefs']).is_a?(Array)
68
+ self.repo_hrefs = value
69
+ end
70
+ end
71
+
72
+ if attributes.key?(:'keep_days')
73
+ self.keep_days = attributes[:'keep_days']
74
+ else
75
+ self.keep_days = 14
76
+ end
77
+
78
+ if attributes.key?(:'dry_run')
79
+ self.dry_run = attributes[:'dry_run']
80
+ else
81
+ self.dry_run = false
82
+ end
83
+ end
84
+
85
+ # Show invalid properties with the reasons. Usually used together with valid?
86
+ # @return Array for valid properties with the reasons
87
+ def list_invalid_properties
88
+ invalid_properties = Array.new
89
+ if @repo_hrefs.nil?
90
+ invalid_properties.push('invalid value for "repo_hrefs", repo_hrefs cannot be nil.')
91
+ end
92
+
93
+ if !@keep_days.nil? && @keep_days < 0
94
+ invalid_properties.push('invalid value for "keep_days", must be greater than or equal to 0.')
95
+ end
96
+
97
+ invalid_properties
98
+ end
99
+
100
+ # Check to see if the all the properties in the model are valid
101
+ # @return true if the model is valid
102
+ def valid?
103
+ return false if @repo_hrefs.nil?
104
+ return false if !@keep_days.nil? && @keep_days < 0
105
+ true
106
+ end
107
+
108
+ # Custom attribute writer method with validation
109
+ # @param [Object] keep_days Value to be assigned
110
+ def keep_days=(keep_days)
111
+ if !keep_days.nil? && keep_days < 0
112
+ fail ArgumentError, 'invalid value for "keep_days", must be greater than or equal to 0.'
113
+ end
114
+
115
+ @keep_days = keep_days
116
+ end
117
+
118
+ # Checks equality by comparing each attribute.
119
+ # @param [Object] Object to be compared
120
+ def ==(o)
121
+ return true if self.equal?(o)
122
+ self.class == o.class &&
123
+ repo_hrefs == o.repo_hrefs &&
124
+ keep_days == o.keep_days &&
125
+ dry_run == o.dry_run
126
+ end
127
+
128
+ # @see the `==` method
129
+ # @param [Object] Object to be compared
130
+ def eql?(o)
131
+ self == o
132
+ end
133
+
134
+ # Calculates hash code according to all attributes.
135
+ # @return [Integer] Hash code
136
+ def hash
137
+ [repo_hrefs, keep_days, dry_run].hash
138
+ end
139
+
140
+ # Builds the object from hash
141
+ # @param [Hash] attributes Model attributes in the form of hash
142
+ # @return [Object] Returns the model itself
143
+ def self.build_from_hash(attributes)
144
+ new.build_from_hash(attributes)
145
+ end
146
+
147
+ # Builds the object from hash
148
+ # @param [Hash] attributes Model attributes in the form of hash
149
+ # @return [Object] Returns the model itself
150
+ def build_from_hash(attributes)
151
+ return nil unless attributes.is_a?(Hash)
152
+ self.class.openapi_types.each_pair do |key, type|
153
+ if type =~ /\AArray<(.*)>/i
154
+ # check to ensure the input is an array given that the attribute
155
+ # is documented as an array but the input is not
156
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
157
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
158
+ end
159
+ elsif !attributes[self.class.attribute_map[key]].nil?
160
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
161
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
162
+ end
163
+
164
+ self
165
+ end
166
+
167
+ # Deserializes the data based on type
168
+ # @param string type Data type
169
+ # @param string value Value to be deserialized
170
+ # @return [Object] Deserialized data
171
+ def _deserialize(type, value)
172
+ case type.to_sym
173
+ when :DateTime
174
+ DateTime.parse(value)
175
+ when :Date
176
+ Date.parse(value)
177
+ when :String
178
+ value.to_s
179
+ when :Integer
180
+ value.to_i
181
+ when :Float
182
+ value.to_f
183
+ when :Boolean
184
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
185
+ true
186
+ else
187
+ false
188
+ end
189
+ when :Object
190
+ # generic object (usually a Hash), return directly
191
+ value
192
+ when /\AArray<(?<inner_type>.+)>\z/
193
+ inner_type = Regexp.last_match[:inner_type]
194
+ value.map { |v| _deserialize(inner_type, v) }
195
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
196
+ k_type = Regexp.last_match[:k_type]
197
+ v_type = Regexp.last_match[:v_type]
198
+ {}.tap do |hash|
199
+ value.each do |k, v|
200
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
201
+ end
202
+ end
203
+ else # model
204
+ PulpRpmClient.const_get(type).build_from_hash(value)
205
+ end
206
+ end
207
+
208
+ # Returns the string representation of the object
209
+ # @return [String] String presentation of the object
210
+ def to_s
211
+ to_hash.to_s
212
+ end
213
+
214
+ # to_body is an alias to to_hash (backward compatibility)
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_body
217
+ to_hash
218
+ end
219
+
220
+ # Returns the object in the form of hash
221
+ # @return [Hash] Returns the object in the form of hash
222
+ def to_hash
223
+ hash = {}
224
+ self.class.attribute_map.each_pair do |attr, param|
225
+ value = self.send(attr)
226
+ if value.nil?
227
+ is_nullable = self.class.openapi_nullable.include?(attr)
228
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
229
+ end
230
+
231
+ hash[param] = _to_hash(value)
232
+ end
233
+ hash
234
+ end
235
+
236
+ # Outputs non-array value in the form of hash
237
+ # For object, use to_hash. Otherwise, just return the value
238
+ # @param [Object] value Any valid value
239
+ # @return [Hash] Returns the value in the form of hash
240
+ def _to_hash(value)
241
+ if value.is_a?(Array)
242
+ value.compact.map { |v| _to_hash(v) }
243
+ elsif value.is_a?(Hash)
244
+ {}.tap do |hash|
245
+ value.each { |k, v| hash[k] = _to_hash(v) }
246
+ end
247
+ elsif value.respond_to? :to_hash
248
+ value.to_hash
249
+ else
250
+ value
251
+ end
252
+ end
253
+ end
254
+ end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpRpmClient
16
- # Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
16
+ # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
17
  class RepositoryAddRemoveContent
18
18
  # A list of content units to add to a new repository version. This content is added after remove_content_units are removed.
19
19
  attr_accessor :add_content_units
@@ -13,13 +13,10 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpRpmClient
16
- # Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
16
+ # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
17
  class RepositoryVersionResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
- # The Pulp Resource Name (PRN).
21
- attr_accessor :prn
22
-
23
20
  # Timestamp of creation.
24
21
  attr_accessor :pulp_created
25
22
 
@@ -40,7 +37,6 @@ module PulpRpmClient
40
37
  def self.attribute_map
41
38
  {
42
39
  :'pulp_href' => :'pulp_href',
43
- :'prn' => :'prn',
44
40
  :'pulp_created' => :'pulp_created',
45
41
  :'pulp_last_updated' => :'pulp_last_updated',
46
42
  :'number' => :'number',
@@ -54,7 +50,6 @@ module PulpRpmClient
54
50
  def self.openapi_types
55
51
  {
56
52
  :'pulp_href' => :'String',
57
- :'prn' => :'String',
58
53
  :'pulp_created' => :'DateTime',
59
54
  :'pulp_last_updated' => :'DateTime',
60
55
  :'number' => :'Integer',
@@ -89,10 +84,6 @@ module PulpRpmClient
89
84
  self.pulp_href = attributes[:'pulp_href']
90
85
  end
91
86
 
92
- if attributes.key?(:'prn')
93
- self.prn = attributes[:'prn']
94
- end
95
-
96
87
  if attributes.key?(:'pulp_created')
97
88
  self.pulp_created = attributes[:'pulp_created']
98
89
  end
@@ -137,7 +128,6 @@ module PulpRpmClient
137
128
  return true if self.equal?(o)
138
129
  self.class == o.class &&
139
130
  pulp_href == o.pulp_href &&
140
- prn == o.prn &&
141
131
  pulp_created == o.pulp_created &&
142
132
  pulp_last_updated == o.pulp_last_updated &&
143
133
  number == o.number &&
@@ -155,7 +145,7 @@ module PulpRpmClient
155
145
  # Calculates hash code according to all attributes.
156
146
  # @return [Integer] Hash code
157
147
  def hash
158
- [pulp_href, prn, pulp_created, pulp_last_updated, number, repository, base_version, content_summary].hash
148
+ [pulp_href, pulp_created, pulp_last_updated, number, repository, base_version, content_summary].hash
159
149
  end
160
150
 
161
151
  # Builds the object from hash
@@ -17,9 +17,6 @@ module PulpRpmClient
17
17
  class RpmModulemdDefaultsResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
- # The Pulp Resource Name (PRN).
21
- attr_accessor :prn
22
-
23
20
  # Timestamp of creation.
24
21
  attr_accessor :pulp_created
25
22
 
@@ -39,7 +36,6 @@ module PulpRpmClient
39
36
  def self.attribute_map
40
37
  {
41
38
  :'pulp_href' => :'pulp_href',
42
- :'prn' => :'prn',
43
39
  :'pulp_created' => :'pulp_created',
44
40
  :'pulp_last_updated' => :'pulp_last_updated',
45
41
  :'_module' => :'module',
@@ -52,7 +48,6 @@ module PulpRpmClient
52
48
  def self.openapi_types
53
49
  {
54
50
  :'pulp_href' => :'String',
55
- :'prn' => :'String',
56
51
  :'pulp_created' => :'DateTime',
57
52
  :'pulp_last_updated' => :'DateTime',
58
53
  :'_module' => :'String',
@@ -86,10 +81,6 @@ module PulpRpmClient
86
81
  self.pulp_href = attributes[:'pulp_href']
87
82
  end
88
83
 
89
- if attributes.key?(:'prn')
90
- self.prn = attributes[:'prn']
91
- end
92
-
93
84
  if attributes.key?(:'pulp_created')
94
85
  self.pulp_created = attributes[:'pulp_created']
95
86
  end
@@ -145,7 +136,6 @@ module PulpRpmClient
145
136
  return true if self.equal?(o)
146
137
  self.class == o.class &&
147
138
  pulp_href == o.pulp_href &&
148
- prn == o.prn &&
149
139
  pulp_created == o.pulp_created &&
150
140
  pulp_last_updated == o.pulp_last_updated &&
151
141
  _module == o._module &&
@@ -162,7 +152,7 @@ module PulpRpmClient
162
152
  # Calculates hash code according to all attributes.
163
153
  # @return [Integer] Hash code
164
154
  def hash
165
- [pulp_href, prn, pulp_created, pulp_last_updated, _module, stream, profiles].hash
155
+ [pulp_href, pulp_created, pulp_last_updated, _module, stream, profiles].hash
166
156
  end
167
157
 
168
158
  # Builds the object from hash
@@ -17,9 +17,6 @@ module PulpRpmClient
17
17
  class RpmModulemdObsoleteResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
- # The Pulp Resource Name (PRN).
21
- attr_accessor :prn
22
-
23
20
  # Timestamp of creation.
24
21
  attr_accessor :pulp_created
25
22
 
@@ -57,7 +54,6 @@ module PulpRpmClient
57
54
  def self.attribute_map
58
55
  {
59
56
  :'pulp_href' => :'pulp_href',
60
- :'prn' => :'prn',
61
57
  :'pulp_created' => :'pulp_created',
62
58
  :'pulp_last_updated' => :'pulp_last_updated',
63
59
  :'modified' => :'modified',
@@ -76,7 +72,6 @@ module PulpRpmClient
76
72
  def self.openapi_types
77
73
  {
78
74
  :'pulp_href' => :'String',
79
- :'prn' => :'String',
80
75
  :'pulp_created' => :'DateTime',
81
76
  :'pulp_last_updated' => :'DateTime',
82
77
  :'modified' => :'String',
@@ -121,10 +116,6 @@ module PulpRpmClient
121
116
  self.pulp_href = attributes[:'pulp_href']
122
117
  end
123
118
 
124
- if attributes.key?(:'prn')
125
- self.prn = attributes[:'prn']
126
- end
127
-
128
119
  if attributes.key?(:'pulp_created')
129
120
  self.pulp_created = attributes[:'pulp_created']
130
121
  end
@@ -209,7 +200,6 @@ module PulpRpmClient
209
200
  return true if self.equal?(o)
210
201
  self.class == o.class &&
211
202
  pulp_href == o.pulp_href &&
212
- prn == o.prn &&
213
203
  pulp_created == o.pulp_created &&
214
204
  pulp_last_updated == o.pulp_last_updated &&
215
205
  modified == o.modified &&
@@ -232,7 +222,7 @@ module PulpRpmClient
232
222
  # Calculates hash code according to all attributes.
233
223
  # @return [Integer] Hash code
234
224
  def hash
235
- [pulp_href, prn, pulp_created, pulp_last_updated, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream].hash
225
+ [pulp_href, pulp_created, pulp_last_updated, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream].hash
236
226
  end
237
227
 
238
228
  # Builds the object from hash
@@ -17,9 +17,6 @@ module PulpRpmClient
17
17
  class RpmModulemdResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
- # The Pulp Resource Name (PRN).
21
- attr_accessor :prn
22
-
23
20
  # Timestamp of creation.
24
21
  attr_accessor :pulp_created
25
22
 
@@ -63,7 +60,6 @@ module PulpRpmClient
63
60
  def self.attribute_map
64
61
  {
65
62
  :'pulp_href' => :'pulp_href',
66
- :'prn' => :'prn',
67
63
  :'pulp_created' => :'pulp_created',
68
64
  :'pulp_last_updated' => :'pulp_last_updated',
69
65
  :'name' => :'name',
@@ -84,7 +80,6 @@ module PulpRpmClient
84
80
  def self.openapi_types
85
81
  {
86
82
  :'pulp_href' => :'String',
87
- :'prn' => :'String',
88
83
  :'pulp_created' => :'DateTime',
89
84
  :'pulp_last_updated' => :'DateTime',
90
85
  :'name' => :'String',
@@ -129,10 +124,6 @@ module PulpRpmClient
129
124
  self.pulp_href = attributes[:'pulp_href']
130
125
  end
131
126
 
132
- if attributes.key?(:'prn')
133
- self.prn = attributes[:'prn']
134
- end
135
-
136
127
  if attributes.key?(:'pulp_created')
137
128
  self.pulp_created = attributes[:'pulp_created']
138
129
  end
@@ -237,7 +228,6 @@ module PulpRpmClient
237
228
  return true if self.equal?(o)
238
229
  self.class == o.class &&
239
230
  pulp_href == o.pulp_href &&
240
- prn == o.prn &&
241
231
  pulp_created == o.pulp_created &&
242
232
  pulp_last_updated == o.pulp_last_updated &&
243
233
  name == o.name &&
@@ -262,7 +252,7 @@ module PulpRpmClient
262
252
  # Calculates hash code according to all attributes.
263
253
  # @return [Integer] Hash code
264
254
  def hash
265
- [pulp_href, prn, pulp_created, pulp_last_updated, name, stream, version, static_context, context, arch, artifacts, dependencies, packages, profiles, description].hash
255
+ [pulp_href, pulp_created, pulp_last_updated, name, stream, version, static_context, context, arch, artifacts, dependencies, packages, profiles, description].hash
266
256
  end
267
257
 
268
258
  # Builds the object from hash
@@ -30,9 +30,6 @@ module PulpRpmClient
30
30
  # An uncommitted upload that may be turned into the content unit.
31
31
  attr_accessor :upload
32
32
 
33
- # A url that Pulp can download and turn into the content unit.
34
- attr_accessor :file_url
35
-
36
33
  # Attribute mapping from ruby-style variable name to JSON key.
37
34
  def self.attribute_map
38
35
  {
@@ -40,8 +37,7 @@ module PulpRpmClient
40
37
  :'artifact' => :'artifact',
41
38
  :'relative_path' => :'relative_path',
42
39
  :'file' => :'file',
43
- :'upload' => :'upload',
44
- :'file_url' => :'file_url'
40
+ :'upload' => :'upload'
45
41
  }
46
42
  end
47
43
 
@@ -52,8 +48,7 @@ module PulpRpmClient
52
48
  :'artifact' => :'String',
53
49
  :'relative_path' => :'String',
54
50
  :'file' => :'File',
55
- :'upload' => :'String',
56
- :'file_url' => :'String'
51
+ :'upload' => :'String'
57
52
  }
58
53
  end
59
54
 
@@ -97,10 +92,6 @@ module PulpRpmClient
97
92
  if attributes.key?(:'upload')
98
93
  self.upload = attributes[:'upload']
99
94
  end
100
-
101
- if attributes.key?(:'file_url')
102
- self.file_url = attributes[:'file_url']
103
- end
104
95
  end
105
96
 
106
97
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -111,10 +102,6 @@ module PulpRpmClient
111
102
  invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
112
103
  end
113
104
 
114
- if !@file_url.nil? && @file_url.to_s.length < 1
115
- invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
116
- end
117
-
118
105
  invalid_properties
119
106
  end
120
107
 
@@ -122,7 +109,6 @@ module PulpRpmClient
122
109
  # @return true if the model is valid
123
110
  def valid?
124
111
  return false if !@relative_path.nil? && @relative_path.to_s.length < 1
125
- return false if !@file_url.nil? && @file_url.to_s.length < 1
126
112
  true
127
113
  end
128
114
 
@@ -136,16 +122,6 @@ module PulpRpmClient
136
122
  @relative_path = relative_path
137
123
  end
138
124
 
139
- # Custom attribute writer method with validation
140
- # @param [Object] file_url Value to be assigned
141
- def file_url=(file_url)
142
- if !file_url.nil? && file_url.to_s.length < 1
143
- fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
144
- end
145
-
146
- @file_url = file_url
147
- end
148
-
149
125
  # Checks equality by comparing each attribute.
150
126
  # @param [Object] Object to be compared
151
127
  def ==(o)
@@ -155,8 +131,7 @@ module PulpRpmClient
155
131
  artifact == o.artifact &&
156
132
  relative_path == o.relative_path &&
157
133
  file == o.file &&
158
- upload == o.upload &&
159
- file_url == o.file_url
134
+ upload == o.upload
160
135
  end
161
136
 
162
137
  # @see the `==` method
@@ -168,7 +143,7 @@ module PulpRpmClient
168
143
  # Calculates hash code according to all attributes.
169
144
  # @return [Integer] Hash code
170
145
  def hash
171
- [repository, artifact, relative_path, file, upload, file_url].hash
146
+ [repository, artifact, relative_path, file, upload].hash
172
147
  end
173
148
 
174
149
  # Builds the object from hash
@@ -17,9 +17,6 @@ module PulpRpmClient
17
17
  class RpmPackageCategoryResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
- # The Pulp Resource Name (PRN).
21
- attr_accessor :prn
22
-
23
20
  # Timestamp of creation.
24
21
  attr_accessor :pulp_created
25
22
 
@@ -54,7 +51,6 @@ module PulpRpmClient
54
51
  def self.attribute_map
55
52
  {
56
53
  :'pulp_href' => :'pulp_href',
57
- :'prn' => :'prn',
58
54
  :'pulp_created' => :'pulp_created',
59
55
  :'pulp_last_updated' => :'pulp_last_updated',
60
56
  :'id' => :'id',
@@ -72,7 +68,6 @@ module PulpRpmClient
72
68
  def self.openapi_types
73
69
  {
74
70
  :'pulp_href' => :'String',
75
- :'prn' => :'String',
76
71
  :'pulp_created' => :'DateTime',
77
72
  :'pulp_last_updated' => :'DateTime',
78
73
  :'id' => :'String',
@@ -115,10 +110,6 @@ module PulpRpmClient
115
110
  self.pulp_href = attributes[:'pulp_href']
116
111
  end
117
112
 
118
- if attributes.key?(:'prn')
119
- self.prn = attributes[:'prn']
120
- end
121
-
122
113
  if attributes.key?(:'pulp_created')
123
114
  self.pulp_created = attributes[:'pulp_created']
124
115
  end
@@ -199,7 +190,6 @@ module PulpRpmClient
199
190
  return true if self.equal?(o)
200
191
  self.class == o.class &&
201
192
  pulp_href == o.pulp_href &&
202
- prn == o.prn &&
203
193
  pulp_created == o.pulp_created &&
204
194
  pulp_last_updated == o.pulp_last_updated &&
205
195
  id == o.id &&
@@ -221,7 +211,7 @@ module PulpRpmClient
221
211
  # Calculates hash code according to all attributes.
222
212
  # @return [Integer] Hash code
223
213
  def hash
224
- [pulp_href, prn, pulp_created, pulp_last_updated, id, name, description, display_order, group_ids, desc_by_lang, name_by_lang, digest].hash
214
+ [pulp_href, pulp_created, pulp_last_updated, id, name, description, display_order, group_ids, desc_by_lang, name_by_lang, digest].hash
225
215
  end
226
216
 
227
217
  # Builds the object from hash
@@ -17,9 +17,6 @@ module PulpRpmClient
17
17
  class RpmPackageEnvironmentResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
- # The Pulp Resource Name (PRN).
21
- attr_accessor :prn
22
-
23
20
  # Timestamp of creation.
24
21
  attr_accessor :pulp_created
25
22
 
@@ -57,7 +54,6 @@ module PulpRpmClient
57
54
  def self.attribute_map
58
55
  {
59
56
  :'pulp_href' => :'pulp_href',
60
- :'prn' => :'prn',
61
57
  :'pulp_created' => :'pulp_created',
62
58
  :'pulp_last_updated' => :'pulp_last_updated',
63
59
  :'id' => :'id',
@@ -76,7 +72,6 @@ module PulpRpmClient
76
72
  def self.openapi_types
77
73
  {
78
74
  :'pulp_href' => :'String',
79
- :'prn' => :'String',
80
75
  :'pulp_created' => :'DateTime',
81
76
  :'pulp_last_updated' => :'DateTime',
82
77
  :'id' => :'String',
@@ -121,10 +116,6 @@ module PulpRpmClient
121
116
  self.pulp_href = attributes[:'pulp_href']
122
117
  end
123
118
 
124
- if attributes.key?(:'prn')
125
- self.prn = attributes[:'prn']
126
- end
127
-
128
119
  if attributes.key?(:'pulp_created')
129
120
  self.pulp_created = attributes[:'pulp_created']
130
121
  end
@@ -209,7 +200,6 @@ module PulpRpmClient
209
200
  return true if self.equal?(o)
210
201
  self.class == o.class &&
211
202
  pulp_href == o.pulp_href &&
212
- prn == o.prn &&
213
203
  pulp_created == o.pulp_created &&
214
204
  pulp_last_updated == o.pulp_last_updated &&
215
205
  id == o.id &&
@@ -232,7 +222,7 @@ module PulpRpmClient
232
222
  # Calculates hash code according to all attributes.
233
223
  # @return [Integer] Hash code
234
224
  def hash
235
- [pulp_href, prn, pulp_created, pulp_last_updated, id, name, description, display_order, group_ids, option_ids, desc_by_lang, name_by_lang, digest].hash
225
+ [pulp_href, pulp_created, pulp_last_updated, id, name, description, display_order, group_ids, option_ids, desc_by_lang, name_by_lang, digest].hash
236
226
  end
237
227
 
238
228
  # Builds the object from hash