pulp_maven_client 0.14.0 → 0.16.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.
@@ -0,0 +1,132 @@
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
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpMavenClient::RemoteNetworkConfig
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PulpMavenClient::RemoteNetworkConfig do
21
+ let(:instance) { PulpMavenClient::RemoteNetworkConfig.new }
22
+
23
+ describe 'test an instance of RemoteNetworkConfig' do
24
+ it 'should create an instance of RemoteNetworkConfig' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(PulpMavenClient::RemoteNetworkConfig)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "ca_cert"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "client_cert"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "client_key"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "tls_validation"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "proxy_url"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ describe 'test attribute "proxy_username"' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
+ end
64
+ end
65
+
66
+ describe 'test attribute "proxy_password"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
72
+ describe 'test attribute "username"' do
73
+ it 'should work' do
74
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
75
+ end
76
+ end
77
+
78
+ describe 'test attribute "password"' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
84
+ describe 'test attribute "max_retries"' do
85
+ it 'should work' do
86
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
+ end
88
+ end
89
+
90
+ describe 'test attribute "total_timeout"' do
91
+ it 'should work' do
92
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
93
+ end
94
+ end
95
+
96
+ describe 'test attribute "connect_timeout"' do
97
+ it 'should work' do
98
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
99
+ end
100
+ end
101
+
102
+ describe 'test attribute "sock_connect_timeout"' do
103
+ it 'should work' do
104
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
105
+ end
106
+ end
107
+
108
+ describe 'test attribute "sock_read_timeout"' do
109
+ it 'should work' do
110
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
111
+ end
112
+ end
113
+
114
+ describe 'test attribute "headers"' do
115
+ it 'should work' do
116
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
117
+ end
118
+ end
119
+
120
+ describe 'test attribute "download_concurrency"' do
121
+ it 'should work' do
122
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
123
+ end
124
+ end
125
+
126
+ describe 'test attribute "rate_limit"' do
127
+ it 'should work' do
128
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
129
+ end
130
+ end
131
+
132
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_maven_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-25 00:00:00.000000000 Z
11
+ date: 2026-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -92,7 +92,6 @@ files:
92
92
  - docs/ContentArtifactApi.md
93
93
  - docs/ContentSummaryResponse.md
94
94
  - docs/DistributionsMavenApi.md
95
- - docs/MavenMavenArtifact.md
96
95
  - docs/MavenMavenArtifactResponse.md
97
96
  - docs/MavenMavenDistribution.md
98
97
  - docs/MavenMavenDistributionResponse.md
@@ -111,6 +110,8 @@ files:
111
110
  - docs/PatchedmavenMavenRepository.md
112
111
  - docs/PolicyEnum.md
113
112
  - docs/PulpMavenApi.md
113
+ - docs/RemoteNetworkConfig.md
114
+ - docs/RemoteNetworkConfigResponse.md
114
115
  - docs/RemotesMavenApi.md
115
116
  - docs/Repair.md
116
117
  - docs/RepositoriesMavenApi.md
@@ -134,7 +135,6 @@ files:
134
135
  - lib/pulp_maven_client/configuration.rb
135
136
  - lib/pulp_maven_client/models/async_operation_response.rb
136
137
  - lib/pulp_maven_client/models/content_summary_response.rb
137
- - lib/pulp_maven_client/models/maven_maven_artifact.rb
138
138
  - lib/pulp_maven_client/models/maven_maven_artifact_response.rb
139
139
  - lib/pulp_maven_client/models/maven_maven_distribution.rb
140
140
  - lib/pulp_maven_client/models/maven_maven_distribution_response.rb
@@ -152,6 +152,8 @@ files:
152
152
  - lib/pulp_maven_client/models/patchedmaven_maven_remote.rb
153
153
  - lib/pulp_maven_client/models/patchedmaven_maven_repository.rb
154
154
  - lib/pulp_maven_client/models/policy_enum.rb
155
+ - lib/pulp_maven_client/models/remote_network_config.rb
156
+ - lib/pulp_maven_client/models/remote_network_config_response.rb
155
157
  - lib/pulp_maven_client/models/repair.rb
156
158
  - lib/pulp_maven_client/models/repository_add_cached_content.rb
157
159
  - lib/pulp_maven_client/models/repository_add_remove_content.rb
@@ -171,7 +173,6 @@ files:
171
173
  - spec/models/async_operation_response_spec.rb
172
174
  - spec/models/content_summary_response_spec.rb
173
175
  - spec/models/maven_maven_artifact_response_spec.rb
174
- - spec/models/maven_maven_artifact_spec.rb
175
176
  - spec/models/maven_maven_distribution_response_spec.rb
176
177
  - spec/models/maven_maven_distribution_spec.rb
177
178
  - spec/models/maven_maven_remote_response_hidden_fields_inner_spec.rb
@@ -188,6 +189,8 @@ files:
188
189
  - spec/models/patchedmaven_maven_remote_spec.rb
189
190
  - spec/models/patchedmaven_maven_repository_spec.rb
190
191
  - spec/models/policy_enum_spec.rb
192
+ - spec/models/remote_network_config_response_spec.rb
193
+ - spec/models/remote_network_config_spec.rb
191
194
  - spec/models/repair_spec.rb
192
195
  - spec/models/repository_add_cached_content_spec.rb
193
196
  - spec/models/repository_add_remove_content_spec.rb
@@ -227,14 +230,15 @@ test_files:
227
230
  - spec/api/remotes_maven_api_spec.rb
228
231
  - spec/api/repositories_maven_versions_api_spec.rb
229
232
  - spec/api/pulp_maven_api_spec.rb
230
- - spec/models/maven_maven_artifact_spec.rb
231
233
  - spec/models/content_summary_response_spec.rb
234
+ - spec/models/remote_network_config_spec.rb
232
235
  - spec/models/maven_maven_repository_response_spec.rb
233
236
  - spec/models/unset_label_spec.rb
234
237
  - spec/models/paginatedmaven_maven_distribution_response_list_spec.rb
235
238
  - spec/models/maven_maven_remote_response_hidden_fields_inner_spec.rb
236
239
  - spec/models/maven_maven_remote_spec.rb
237
240
  - spec/models/repository_add_remove_content_spec.rb
241
+ - spec/models/remote_network_config_response_spec.rb
238
242
  - spec/models/paginatedmaven_maven_remote_response_list_spec.rb
239
243
  - spec/models/maven_maven_artifact_response_spec.rb
240
244
  - spec/models/set_label_spec.rb
@@ -1,26 +0,0 @@
1
- # PulpMavenClient::MavenMavenArtifact
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
8
- | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true. | [optional] |
9
- | **pulp_labels** | **Hash<String, String>** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
10
- | **artifact** | **String** | Artifact file representing the physical content | |
11
- | **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | |
12
-
13
- ## Example
14
-
15
- ```ruby
16
- require 'pulp_maven_client'
17
-
18
- instance = PulpMavenClient::MavenMavenArtifact.new(
19
- repository: null,
20
- overwrite: null,
21
- pulp_labels: null,
22
- artifact: null,
23
- relative_path: null
24
- )
25
- ```
26
-
@@ -1,291 +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
- Generator version: 7.10.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module PulpMavenClient
17
- # A Serializer for MavenArtifact.
18
- class MavenMavenArtifact
19
- # A URI of a repository the new content unit should be associated with.
20
- attr_accessor :repository
21
-
22
- # When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
23
- attr_accessor :overwrite
24
-
25
- # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
26
- attr_accessor :pulp_labels
27
-
28
- # Artifact file representing the physical content
29
- attr_accessor :artifact
30
-
31
- # Path where the artifact is located relative to distributions base_path
32
- attr_accessor :relative_path
33
-
34
- # Attribute mapping from ruby-style variable name to JSON key.
35
- def self.attribute_map
36
- {
37
- :'repository' => :'repository',
38
- :'overwrite' => :'overwrite',
39
- :'pulp_labels' => :'pulp_labels',
40
- :'artifact' => :'artifact',
41
- :'relative_path' => :'relative_path'
42
- }
43
- end
44
-
45
- # Returns all the JSON keys this model knows about
46
- def self.acceptable_attributes
47
- attribute_map.values
48
- end
49
-
50
- # Attribute type mapping.
51
- def self.openapi_types
52
- {
53
- :'repository' => :'String',
54
- :'overwrite' => :'Boolean',
55
- :'pulp_labels' => :'Hash<String, String>',
56
- :'artifact' => :'String',
57
- :'relative_path' => :'String'
58
- }
59
- end
60
-
61
- # List of attributes with nullable: true
62
- def self.openapi_nullable
63
- Set.new([
64
- ])
65
- end
66
-
67
- # Initializes the object
68
- # @param [Hash] attributes Model attributes in the form of hash
69
- def initialize(attributes = {})
70
- if (!attributes.is_a?(Hash))
71
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::MavenMavenArtifact` initialize method"
72
- end
73
-
74
- # check to see if the attribute exists and convert string to symbol for hash key
75
- attributes = attributes.each_with_object({}) { |(k, v), h|
76
- if (!self.class.attribute_map.key?(k.to_sym))
77
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::MavenMavenArtifact`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
78
- end
79
- h[k.to_sym] = v
80
- }
81
-
82
- if attributes.key?(:'repository')
83
- self.repository = attributes[:'repository']
84
- end
85
-
86
- if attributes.key?(:'overwrite')
87
- self.overwrite = attributes[:'overwrite']
88
- end
89
-
90
- if attributes.key?(:'pulp_labels')
91
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
92
- self.pulp_labels = value
93
- end
94
- end
95
-
96
- if attributes.key?(:'artifact')
97
- self.artifact = attributes[:'artifact']
98
- else
99
- self.artifact = nil
100
- end
101
-
102
- if attributes.key?(:'relative_path')
103
- self.relative_path = attributes[:'relative_path']
104
- else
105
- self.relative_path = nil
106
- end
107
- end
108
-
109
- # Show invalid properties with the reasons. Usually used together with valid?
110
- # @return Array for valid properties with the reasons
111
- def list_invalid_properties
112
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
113
- invalid_properties = Array.new
114
- if @artifact.nil?
115
- invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
116
- end
117
-
118
- if @relative_path.nil?
119
- invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
120
- end
121
-
122
- if @relative_path.to_s.length < 1
123
- invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
124
- end
125
-
126
- invalid_properties
127
- end
128
-
129
- # Check to see if the all the properties in the model are valid
130
- # @return true if the model is valid
131
- def valid?
132
- warn '[DEPRECATED] the `valid?` method is obsolete'
133
- return false if @artifact.nil?
134
- return false if @relative_path.nil?
135
- return false if @relative_path.to_s.length < 1
136
- true
137
- end
138
-
139
- # Custom attribute writer method with validation
140
- # @param [Object] relative_path Value to be assigned
141
- def relative_path=(relative_path)
142
- if relative_path.nil?
143
- fail ArgumentError, 'relative_path cannot be nil'
144
- end
145
-
146
- if relative_path.to_s.length < 1
147
- fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
148
- end
149
-
150
- @relative_path = relative_path
151
- end
152
-
153
- # Checks equality by comparing each attribute.
154
- # @param [Object] Object to be compared
155
- def ==(o)
156
- return true if self.equal?(o)
157
- self.class == o.class &&
158
- repository == o.repository &&
159
- overwrite == o.overwrite &&
160
- pulp_labels == o.pulp_labels &&
161
- artifact == o.artifact &&
162
- relative_path == o.relative_path
163
- end
164
-
165
- # @see the `==` method
166
- # @param [Object] Object to be compared
167
- def eql?(o)
168
- self == o
169
- end
170
-
171
- # Calculates hash code according to all attributes.
172
- # @return [Integer] Hash code
173
- def hash
174
- [repository, overwrite, pulp_labels, artifact, relative_path].hash
175
- end
176
-
177
- # Builds the object from hash
178
- # @param [Hash] attributes Model attributes in the form of hash
179
- # @return [Object] Returns the model itself
180
- def self.build_from_hash(attributes)
181
- return nil unless attributes.is_a?(Hash)
182
- attributes = attributes.transform_keys(&:to_sym)
183
- transformed_hash = {}
184
- openapi_types.each_pair do |key, type|
185
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
186
- transformed_hash["#{key}"] = nil
187
- elsif type =~ /\AArray<(.*)>/i
188
- # check to ensure the input is an array given that the attribute
189
- # is documented as an array but the input is not
190
- if attributes[attribute_map[key]].is_a?(Array)
191
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
192
- end
193
- elsif !attributes[attribute_map[key]].nil?
194
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
195
- end
196
- end
197
- new(transformed_hash)
198
- end
199
-
200
- # Deserializes the data based on type
201
- # @param string type Data type
202
- # @param string value Value to be deserialized
203
- # @return [Object] Deserialized data
204
- def self._deserialize(type, value)
205
- case type.to_sym
206
- when :Time
207
- Time.parse(value)
208
- when :Date
209
- Date.parse(value)
210
- when :String
211
- value.to_s
212
- when :Integer
213
- value.to_i
214
- when :Float
215
- value.to_f
216
- when :Boolean
217
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
218
- true
219
- else
220
- false
221
- end
222
- when :Object
223
- # generic object (usually a Hash), return directly
224
- value
225
- when /\AArray<(?<inner_type>.+)>\z/
226
- inner_type = Regexp.last_match[:inner_type]
227
- value.map { |v| _deserialize(inner_type, v) }
228
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
229
- k_type = Regexp.last_match[:k_type]
230
- v_type = Regexp.last_match[:v_type]
231
- {}.tap do |hash|
232
- value.each do |k, v|
233
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
234
- end
235
- end
236
- else # model
237
- # models (e.g. Pet) or oneOf
238
- klass = PulpMavenClient.const_get(type)
239
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
240
- end
241
- end
242
-
243
- # Returns the string representation of the object
244
- # @return [String] String presentation of the object
245
- def to_s
246
- to_hash.to_s
247
- end
248
-
249
- # to_body is an alias to to_hash (backward compatibility)
250
- # @return [Hash] Returns the object in the form of hash
251
- def to_body
252
- to_hash
253
- end
254
-
255
- # Returns the object in the form of hash
256
- # @return [Hash] Returns the object in the form of hash
257
- def to_hash
258
- hash = {}
259
- self.class.attribute_map.each_pair do |attr, param|
260
- value = self.send(attr)
261
- if value.nil?
262
- is_nullable = self.class.openapi_nullable.include?(attr)
263
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
264
- end
265
-
266
- hash[param] = _to_hash(value)
267
- end
268
- hash
269
- end
270
-
271
- # Outputs non-array value in the form of hash
272
- # For object, use to_hash. Otherwise, just return the value
273
- # @param [Object] value Any valid value
274
- # @return [Hash] Returns the value in the form of hash
275
- def _to_hash(value)
276
- if value.is_a?(Array)
277
- value.compact.map { |v| _to_hash(v) }
278
- elsif value.is_a?(Hash)
279
- {}.tap do |hash|
280
- value.each { |k, v| hash[k] = _to_hash(v) }
281
- end
282
- elsif value.respond_to? :to_hash
283
- value.to_hash
284
- else
285
- value
286
- end
287
- end
288
-
289
- end
290
-
291
- end
@@ -1,60 +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
- Generator version: 7.10.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for PulpMavenClient::MavenMavenArtifact
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe PulpMavenClient::MavenMavenArtifact do
21
- let(:instance) { PulpMavenClient::MavenMavenArtifact.new }
22
-
23
- describe 'test an instance of MavenMavenArtifact' do
24
- it 'should create an instance of MavenMavenArtifact' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(PulpMavenClient::MavenMavenArtifact)
27
- end
28
- end
29
-
30
- describe 'test attribute "repository"' do
31
- it 'should work' do
32
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
- end
34
- end
35
-
36
- describe 'test attribute "overwrite"' do
37
- it 'should work' do
38
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
- end
40
- end
41
-
42
- describe 'test attribute "pulp_labels"' do
43
- it 'should work' do
44
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
- end
46
- end
47
-
48
- describe 'test attribute "artifact"' do
49
- it 'should work' do
50
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
- end
52
- end
53
-
54
- describe 'test attribute "relative_path"' do
55
- it 'should work' do
56
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
- end
58
- end
59
-
60
- end