pulp_rpm_client 3.18.20 → 3.19.0.dev1662960501

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_rpm_client might be problematic. Click here for more details.

Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -5
  3. data/docs/AcsRpmApi.md +12 -16
  4. data/docs/ContentAdvisoriesApi.md +10 -14
  5. data/docs/ContentDistributionTreesApi.md +10 -14
  6. data/docs/ContentModulemdDefaultsApi.md +10 -14
  7. data/docs/ContentModulemdObsoletesApi.md +10 -14
  8. data/docs/ContentModulemdsApi.md +10 -14
  9. data/docs/ContentPackagecategoriesApi.md +10 -14
  10. data/docs/ContentPackageenvironmentsApi.md +10 -14
  11. data/docs/ContentPackagegroupsApi.md +10 -14
  12. data/docs/ContentPackagelangpacksApi.md +10 -14
  13. data/docs/ContentPackagesApi.md +12 -16
  14. data/docs/ContentRepoMetadataFilesApi.md +10 -14
  15. data/docs/DistributionsRpmApi.md +14 -22
  16. data/docs/PatchedrpmRpmDistribution.md +1 -1
  17. data/docs/PatchedrpmRpmRemote.md +2 -2
  18. data/docs/PatchedrpmRpmRepository.md +4 -4
  19. data/docs/PatchedrpmUlnRemote.md +2 -2
  20. data/docs/PublicationsRpmApi.md +12 -16
  21. data/docs/RemotesRpmApi.md +14 -18
  22. data/docs/RemotesUlnApi.md +14 -18
  23. data/docs/RepositoriesRpmApi.md +13 -33
  24. data/docs/RepositoriesRpmVersionsApi.md +14 -16
  25. data/docs/RepositoryAddRemoveContent.md +2 -2
  26. data/docs/RpmRepositorySyncURL.md +1 -1
  27. data/docs/RpmRpmDistribution.md +1 -1
  28. data/docs/RpmRpmDistributionResponse.md +1 -1
  29. data/docs/RpmRpmPublication.md +2 -2
  30. data/docs/RpmRpmPublicationResponse.md +2 -2
  31. data/docs/RpmRpmRemote.md +2 -2
  32. data/docs/RpmRpmRemoteResponse.md +2 -4
  33. data/docs/RpmRpmRepository.md +4 -4
  34. data/docs/RpmRpmRepositoryResponse.md +4 -4
  35. data/docs/RpmUlnRemote.md +2 -2
  36. data/docs/RpmUlnRemoteResponse.md +2 -4
  37. data/lib/pulp_rpm_client/api/acs_rpm_api.rb +17 -23
  38. data/lib/pulp_rpm_client/api/content_advisories_api.rb +15 -21
  39. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +14 -20
  40. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +15 -21
  41. data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +14 -20
  42. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +15 -21
  43. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +14 -20
  44. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +14 -20
  45. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +14 -20
  46. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +14 -20
  47. data/lib/pulp_rpm_client/api/content_packages_api.rb +17 -23
  48. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +14 -20
  49. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +19 -31
  50. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +17 -23
  51. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +19 -25
  52. data/lib/pulp_rpm_client/api/remotes_uln_api.rb +19 -25
  53. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +17 -47
  54. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +19 -22
  55. data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +2 -4
  56. data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +3 -5
  57. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +5 -7
  58. data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +3 -5
  59. data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +2 -2
  60. data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +1 -1
  61. data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +2 -4
  62. data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +2 -4
  63. data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +2 -2
  64. data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +2 -2
  65. data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +3 -5
  66. data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +4 -18
  67. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +5 -7
  68. data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +5 -7
  69. data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +3 -5
  70. data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +4 -18
  71. data/lib/pulp_rpm_client/models/skip_types_enum.rb +0 -1
  72. data/lib/pulp_rpm_client/version.rb +1 -1
  73. data/lib/pulp_rpm_client.rb +0 -1
  74. data/spec/api/acs_rpm_api_spec.rb +6 -8
  75. data/spec/api/content_advisories_api_spec.rb +5 -7
  76. data/spec/api/content_distribution_trees_api_spec.rb +5 -7
  77. data/spec/api/content_modulemd_defaults_api_spec.rb +5 -7
  78. data/spec/api/content_modulemd_obsoletes_api_spec.rb +5 -7
  79. data/spec/api/content_modulemds_api_spec.rb +5 -7
  80. data/spec/api/content_packagecategories_api_spec.rb +5 -7
  81. data/spec/api/content_packageenvironments_api_spec.rb +5 -7
  82. data/spec/api/content_packagegroups_api_spec.rb +5 -7
  83. data/spec/api/content_packagelangpacks_api_spec.rb +5 -7
  84. data/spec/api/content_packages_api_spec.rb +6 -8
  85. data/spec/api/content_repo_metadata_files_api_spec.rb +5 -7
  86. data/spec/api/distributions_rpm_api_spec.rb +7 -11
  87. data/spec/api/publications_rpm_api_spec.rb +6 -8
  88. data/spec/api/remotes_rpm_api_spec.rb +7 -9
  89. data/spec/api/remotes_uln_api_spec.rb +7 -9
  90. data/spec/api/repositories_rpm_api_spec.rb +6 -16
  91. data/spec/api/repositories_rpm_versions_api_spec.rb +7 -8
  92. data/spec/models/rpm_rpm_remote_response_spec.rb +0 -6
  93. data/spec/models/rpm_uln_remote_response_spec.rb +0 -6
  94. metadata +75 -79
  95. data/docs/RpmRpmRemoteResponseHiddenFields.md +0 -19
  96. data/lib/pulp_rpm_client/models/rpm_rpm_remote_response_hidden_fields.rb +0 -215
  97. data/spec/models/rpm_rpm_remote_response_hidden_fields_spec.rb +0 -47
@@ -1,215 +0,0 @@
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
- class RpmRpmRemoteResponseHiddenFields
17
- attr_accessor :name
18
-
19
- attr_accessor :is_set
20
-
21
- # Attribute mapping from ruby-style variable name to JSON key.
22
- def self.attribute_map
23
- {
24
- :'name' => :'name',
25
- :'is_set' => :'is_set'
26
- }
27
- end
28
-
29
- # Attribute type mapping.
30
- def self.openapi_types
31
- {
32
- :'name' => :'String',
33
- :'is_set' => :'Boolean'
34
- }
35
- end
36
-
37
- # List of attributes with nullable: true
38
- def self.openapi_nullable
39
- Set.new([
40
- ])
41
- end
42
-
43
- # Initializes the object
44
- # @param [Hash] attributes Model attributes in the form of hash
45
- def initialize(attributes = {})
46
- if (!attributes.is_a?(Hash))
47
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmRpmRemoteResponseHiddenFields` initialize method"
48
- end
49
-
50
- # check to see if the attribute exists and convert string to symbol for hash key
51
- attributes = attributes.each_with_object({}) { |(k, v), h|
52
- if (!self.class.attribute_map.key?(k.to_sym))
53
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmRpmRemoteResponseHiddenFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
- end
55
- h[k.to_sym] = v
56
- }
57
-
58
- if attributes.key?(:'name')
59
- self.name = attributes[:'name']
60
- end
61
-
62
- if attributes.key?(:'is_set')
63
- self.is_set = attributes[:'is_set']
64
- end
65
- end
66
-
67
- # Show invalid properties with the reasons. Usually used together with valid?
68
- # @return Array for valid properties with the reasons
69
- def list_invalid_properties
70
- invalid_properties = Array.new
71
- invalid_properties
72
- end
73
-
74
- # Check to see if the all the properties in the model are valid
75
- # @return true if the model is valid
76
- def valid?
77
- true
78
- end
79
-
80
- # Checks equality by comparing each attribute.
81
- # @param [Object] Object to be compared
82
- def ==(o)
83
- return true if self.equal?(o)
84
- self.class == o.class &&
85
- name == o.name &&
86
- is_set == o.is_set
87
- end
88
-
89
- # @see the `==` method
90
- # @param [Object] Object to be compared
91
- def eql?(o)
92
- self == o
93
- end
94
-
95
- # Calculates hash code according to all attributes.
96
- # @return [Integer] Hash code
97
- def hash
98
- [name, is_set].hash
99
- end
100
-
101
- # Builds the object from hash
102
- # @param [Hash] attributes Model attributes in the form of hash
103
- # @return [Object] Returns the model itself
104
- def self.build_from_hash(attributes)
105
- new.build_from_hash(attributes)
106
- end
107
-
108
- # Builds the object from hash
109
- # @param [Hash] attributes Model attributes in the form of hash
110
- # @return [Object] Returns the model itself
111
- def build_from_hash(attributes)
112
- return nil unless attributes.is_a?(Hash)
113
- self.class.openapi_types.each_pair do |key, type|
114
- if type =~ /\AArray<(.*)>/i
115
- # check to ensure the input is an array given that the attribute
116
- # is documented as an array but the input is not
117
- if attributes[self.class.attribute_map[key]].is_a?(Array)
118
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
- end
120
- elsif !attributes[self.class.attribute_map[key]].nil?
121
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
122
- end # or else data not found in attributes(hash), not an issue as the data can be optional
123
- end
124
-
125
- self
126
- end
127
-
128
- # Deserializes the data based on type
129
- # @param string type Data type
130
- # @param string value Value to be deserialized
131
- # @return [Object] Deserialized data
132
- def _deserialize(type, value)
133
- case type.to_sym
134
- when :DateTime
135
- DateTime.parse(value)
136
- when :Date
137
- Date.parse(value)
138
- when :String
139
- value.to_s
140
- when :Integer
141
- value.to_i
142
- when :Float
143
- value.to_f
144
- when :Boolean
145
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
- true
147
- else
148
- false
149
- end
150
- when :Object
151
- # generic object (usually a Hash), return directly
152
- value
153
- when /\AArray<(?<inner_type>.+)>\z/
154
- inner_type = Regexp.last_match[:inner_type]
155
- value.map { |v| _deserialize(inner_type, v) }
156
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
- k_type = Regexp.last_match[:k_type]
158
- v_type = Regexp.last_match[:v_type]
159
- {}.tap do |hash|
160
- value.each do |k, v|
161
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
- end
163
- end
164
- else # model
165
- PulpRpmClient.const_get(type).build_from_hash(value)
166
- end
167
- end
168
-
169
- # Returns the string representation of the object
170
- # @return [String] String presentation of the object
171
- def to_s
172
- to_hash.to_s
173
- end
174
-
175
- # to_body is an alias to to_hash (backward compatibility)
176
- # @return [Hash] Returns the object in the form of hash
177
- def to_body
178
- to_hash
179
- end
180
-
181
- # Returns the object in the form of hash
182
- # @return [Hash] Returns the object in the form of hash
183
- def to_hash
184
- hash = {}
185
- self.class.attribute_map.each_pair do |attr, param|
186
- value = self.send(attr)
187
- if value.nil?
188
- is_nullable = self.class.openapi_nullable.include?(attr)
189
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
- end
191
-
192
- hash[param] = _to_hash(value)
193
- end
194
- hash
195
- end
196
-
197
- # Outputs non-array value in the form of hash
198
- # For object, use to_hash. Otherwise, just return the value
199
- # @param [Object] value Any valid value
200
- # @return [Hash] Returns the value in the form of hash
201
- def _to_hash(value)
202
- if value.is_a?(Array)
203
- value.compact.map { |v| _to_hash(v) }
204
- elsif value.is_a?(Hash)
205
- {}.tap do |hash|
206
- value.each { |k, v| hash[k] = _to_hash(v) }
207
- end
208
- elsif value.respond_to? :to_hash
209
- value.to_hash
210
- else
211
- value
212
- end
213
- end
214
- end
215
- end
@@ -1,47 +0,0 @@
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 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for PulpRpmClient::RpmRpmRemoteResponseHiddenFields
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe 'RpmRpmRemoteResponseHiddenFields' do
21
- before do
22
- # run before each test
23
- @instance = PulpRpmClient::RpmRpmRemoteResponseHiddenFields.new
24
- end
25
-
26
- after do
27
- # run after each test
28
- end
29
-
30
- describe 'test an instance of RpmRpmRemoteResponseHiddenFields' do
31
- it 'should create an instance of RpmRpmRemoteResponseHiddenFields' do
32
- expect(@instance).to be_instance_of(PulpRpmClient::RpmRpmRemoteResponseHiddenFields)
33
- end
34
- end
35
- describe 'test attribute "name"' do
36
- it 'should work' do
37
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
- end
39
- end
40
-
41
- describe 'test attribute "is_set"' do
42
- it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
- end
45
- end
46
-
47
- end