pulp_maven_client 0.3.0 → 0.3.1
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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/build/lib/pulpcore/client/pulp_maven/__init__.py +1 -1
- data/build/lib/pulpcore/client/pulp_maven/api_client.py +1 -1
- data/build/lib/pulpcore/client/pulp_maven/configuration.py +1 -1
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository.py +31 -1
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +31 -1
- data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +31 -1
- data/build/lib/pulpcore/client/pulp_maven/models/repository_version_response.py +27 -1
- data/dist/pulp_maven-client-0.3.1.tar.gz +0 -0
- data/dist/{pulp_maven_client-0.3.0-py3-none-any.whl → pulp_maven_client-0.3.1-py3-none-any.whl} +0 -0
- data/docs/MavenMavenRepository.md +2 -0
- data/docs/MavenMavenRepositoryResponse.md +2 -0
- data/docs/PatchedmavenMavenRepository.md +2 -0
- data/docs/RepositoryVersionResponse.md +2 -0
- data/lib/pulp_maven_client.rb +1 -1
- data/lib/pulp_maven_client/api/content_artifact_api.rb +1 -1
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +1 -1
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +1 -1
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +1 -1
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +1 -1
- data/lib/pulp_maven_client/api_client.rb +12 -8
- data/lib/pulp_maven_client/api_error.rb +1 -1
- data/lib/pulp_maven_client/configuration.rb +8 -1
- data/lib/pulp_maven_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_maven_client/models/content_summary.rb +1 -1
- data/lib/pulp_maven_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_artifact.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_distribution.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_remote.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +28 -2
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +28 -2
- data/lib/pulp_maven_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_maven_client/models/paginatedmaven_maven_artifact_response_list.rb +1 -1
- data/lib/pulp_maven_client/models/paginatedmaven_maven_distribution_response_list.rb +1 -1
- data/lib/pulp_maven_client/models/paginatedmaven_maven_remote_response_list.rb +1 -1
- data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +1 -1
- data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +1 -1
- data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +1 -1
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +28 -2
- data/lib/pulp_maven_client/models/policy_enum.rb +1 -1
- data/lib/pulp_maven_client/models/repository_version.rb +1 -1
- data/lib/pulp_maven_client/models/repository_version_response.rb +11 -2
- data/lib/pulp_maven_client/version.rb +2 -2
- data/pulp_maven_client.egg-info/PKG-INFO +1 -1
- data/pulp_maven_client.gemspec +1 -1
- data/pulpcore/client/pulp_maven/__init__.py +1 -1
- data/pulpcore/client/pulp_maven/api_client.py +1 -1
- data/pulpcore/client/pulp_maven/configuration.py +1 -1
- data/pulpcore/client/pulp_maven/models/maven_maven_repository.py +31 -1
- data/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +31 -1
- data/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +31 -1
- data/pulpcore/client/pulp_maven/models/repository_version_response.py +27 -1
- data/setup.py +1 -1
- data/spec/api/content_artifact_api_spec.rb +1 -1
- data/spec/api/distributions_maven_api_spec.rb +1 -1
- data/spec/api/remotes_maven_api_spec.rb +1 -1
- data/spec/api/repositories_maven_api_spec.rb +1 -1
- data/spec/api/repositories_maven_versions_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/maven_maven_artifact_response_spec.rb +1 -1
- data/spec/models/maven_maven_artifact_spec.rb +1 -1
- data/spec/models/maven_maven_distribution_response_spec.rb +1 -1
- data/spec/models/maven_maven_distribution_spec.rb +1 -1
- data/spec/models/maven_maven_remote_response_spec.rb +1 -1
- data/spec/models/maven_maven_remote_spec.rb +1 -1
- data/spec/models/maven_maven_repository_response_spec.rb +7 -1
- data/spec/models/maven_maven_repository_spec.rb +7 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginatedmaven_maven_artifact_response_list_spec.rb +1 -1
- data/spec/models/paginatedmaven_maven_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginatedmaven_maven_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatedmaven_maven_repository_response_list_spec.rb +1 -1
- data/spec/models/patchedmaven_maven_distribution_spec.rb +1 -1
- data/spec/models/patchedmaven_maven_remote_spec.rb +1 -1
- data/spec/models/patchedmaven_maven_repository_spec.rb +7 -1
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +7 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/test/test_maven_maven_repository.py +1 -0
- data/test/test_maven_maven_repository_response.py +1 -0
- data/test/test_paginated_repository_version_response_list.py +1 -0
- data/test/test_paginatedmaven_maven_repository_response_list.py +1 -0
- data/test/test_patchedmaven_maven_repository.py +1 -0
- data/test/test_repository_version_response.py +1 -0
- metadata +22 -22
- data/dist/pulp_maven-client-0.3.0.tar.gz +0 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.
|
|
9
|
+
OpenAPI Generator version: 4.3.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -53,8 +53,10 @@ module PulpMavenClient
|
|
|
53
53
|
:client_cert => @config.ssl_client_cert,
|
|
54
54
|
:client_key => @config.ssl_client_key
|
|
55
55
|
}
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
request_options = {
|
|
57
|
+
:params_encoder => @config.params_encoder
|
|
58
|
+
}
|
|
59
|
+
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options, :request => request_options) do |conn|
|
|
58
60
|
conn.basic_auth(config.username, config.password)
|
|
59
61
|
if opts[:header_params]["Content-Type"] == "multipart/form-data"
|
|
60
62
|
conn.request :multipart
|
|
@@ -285,11 +287,13 @@ module PulpMavenClient
|
|
|
285
287
|
tempfile.write(chunk)
|
|
286
288
|
end
|
|
287
289
|
request.on_complete do |response|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
290
|
+
if tempfile
|
|
291
|
+
tempfile.close
|
|
292
|
+
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
|
293
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
|
294
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
|
295
|
+
"explicitly with `tempfile.delete`"
|
|
296
|
+
end
|
|
293
297
|
end
|
|
294
298
|
end
|
|
295
299
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.
|
|
9
|
+
OpenAPI Generator version: 4.3.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -109,6 +109,12 @@ module PulpMavenClient
|
|
|
109
109
|
# Client private key file (for client certificate)
|
|
110
110
|
attr_accessor :ssl_client_key
|
|
111
111
|
|
|
112
|
+
# Set this to customize parameters encoder of array parameter.
|
|
113
|
+
# Default to nil. Faraday uses NestedParamsEncoder when nil.
|
|
114
|
+
#
|
|
115
|
+
# @see The params_encoder option of Faraday. Related source code:
|
|
116
|
+
# https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders
|
|
117
|
+
attr_accessor :params_encoder
|
|
112
118
|
# Set this to customize parameters encoding of array parameter with multi collectionFormat.
|
|
113
119
|
# Default to nil.
|
|
114
120
|
#
|
|
@@ -133,6 +139,7 @@ module PulpMavenClient
|
|
|
133
139
|
@ssl_ca_file = nil
|
|
134
140
|
@ssl_client_cert = nil
|
|
135
141
|
@ssl_client_key = nil
|
|
142
|
+
@params_encoder = nil
|
|
136
143
|
@debugging = false
|
|
137
144
|
@inject_format = false
|
|
138
145
|
@force_ending_format = false
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.
|
|
9
|
+
OpenAPI Generator version: 4.3.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -23,6 +23,9 @@ module PulpMavenClient
|
|
|
23
23
|
# An optional description.
|
|
24
24
|
attr_accessor :description
|
|
25
25
|
|
|
26
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
27
|
+
attr_accessor :retained_versions
|
|
28
|
+
|
|
26
29
|
attr_accessor :remote
|
|
27
30
|
|
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -31,6 +34,7 @@ module PulpMavenClient
|
|
|
31
34
|
:'pulp_labels' => :'pulp_labels',
|
|
32
35
|
:'name' => :'name',
|
|
33
36
|
:'description' => :'description',
|
|
37
|
+
:'retained_versions' => :'retained_versions',
|
|
34
38
|
:'remote' => :'remote'
|
|
35
39
|
}
|
|
36
40
|
end
|
|
@@ -41,6 +45,7 @@ module PulpMavenClient
|
|
|
41
45
|
:'pulp_labels' => :'Object',
|
|
42
46
|
:'name' => :'String',
|
|
43
47
|
:'description' => :'String',
|
|
48
|
+
:'retained_versions' => :'Integer',
|
|
44
49
|
:'remote' => :'String'
|
|
45
50
|
}
|
|
46
51
|
end
|
|
@@ -49,6 +54,7 @@ module PulpMavenClient
|
|
|
49
54
|
def self.openapi_nullable
|
|
50
55
|
Set.new([
|
|
51
56
|
:'description',
|
|
57
|
+
:'retained_versions',
|
|
52
58
|
:'remote'
|
|
53
59
|
])
|
|
54
60
|
end
|
|
@@ -80,6 +86,10 @@ module PulpMavenClient
|
|
|
80
86
|
self.description = attributes[:'description']
|
|
81
87
|
end
|
|
82
88
|
|
|
89
|
+
if attributes.key?(:'retained_versions')
|
|
90
|
+
self.retained_versions = attributes[:'retained_versions']
|
|
91
|
+
end
|
|
92
|
+
|
|
83
93
|
if attributes.key?(:'remote')
|
|
84
94
|
self.remote = attributes[:'remote']
|
|
85
95
|
end
|
|
@@ -93,6 +103,10 @@ module PulpMavenClient
|
|
|
93
103
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
94
104
|
end
|
|
95
105
|
|
|
106
|
+
if !@retained_versions.nil? && @retained_versions < 1
|
|
107
|
+
invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
|
|
108
|
+
end
|
|
109
|
+
|
|
96
110
|
invalid_properties
|
|
97
111
|
end
|
|
98
112
|
|
|
@@ -100,9 +114,20 @@ module PulpMavenClient
|
|
|
100
114
|
# @return true if the model is valid
|
|
101
115
|
def valid?
|
|
102
116
|
return false if @name.nil?
|
|
117
|
+
return false if !@retained_versions.nil? && @retained_versions < 1
|
|
103
118
|
true
|
|
104
119
|
end
|
|
105
120
|
|
|
121
|
+
# Custom attribute writer method with validation
|
|
122
|
+
# @param [Object] retained_versions Value to be assigned
|
|
123
|
+
def retained_versions=(retained_versions)
|
|
124
|
+
if !retained_versions.nil? && retained_versions < 1
|
|
125
|
+
fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
@retained_versions = retained_versions
|
|
129
|
+
end
|
|
130
|
+
|
|
106
131
|
# Checks equality by comparing each attribute.
|
|
107
132
|
# @param [Object] Object to be compared
|
|
108
133
|
def ==(o)
|
|
@@ -111,6 +136,7 @@ module PulpMavenClient
|
|
|
111
136
|
pulp_labels == o.pulp_labels &&
|
|
112
137
|
name == o.name &&
|
|
113
138
|
description == o.description &&
|
|
139
|
+
retained_versions == o.retained_versions &&
|
|
114
140
|
remote == o.remote
|
|
115
141
|
end
|
|
116
142
|
|
|
@@ -123,7 +149,7 @@ module PulpMavenClient
|
|
|
123
149
|
# Calculates hash code according to all attributes.
|
|
124
150
|
# @return [Integer] Hash code
|
|
125
151
|
def hash
|
|
126
|
-
[pulp_labels, name, description, remote].hash
|
|
152
|
+
[pulp_labels, name, description, retained_versions, remote].hash
|
|
127
153
|
end
|
|
128
154
|
|
|
129
155
|
# Builds the object from hash
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.
|
|
9
|
+
OpenAPI Generator version: 4.3.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -32,6 +32,9 @@ module PulpMavenClient
|
|
|
32
32
|
# An optional description.
|
|
33
33
|
attr_accessor :description
|
|
34
34
|
|
|
35
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
36
|
+
attr_accessor :retained_versions
|
|
37
|
+
|
|
35
38
|
attr_accessor :remote
|
|
36
39
|
|
|
37
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -44,6 +47,7 @@ module PulpMavenClient
|
|
|
44
47
|
:'latest_version_href' => :'latest_version_href',
|
|
45
48
|
:'name' => :'name',
|
|
46
49
|
:'description' => :'description',
|
|
50
|
+
:'retained_versions' => :'retained_versions',
|
|
47
51
|
:'remote' => :'remote'
|
|
48
52
|
}
|
|
49
53
|
end
|
|
@@ -58,6 +62,7 @@ module PulpMavenClient
|
|
|
58
62
|
:'latest_version_href' => :'String',
|
|
59
63
|
:'name' => :'String',
|
|
60
64
|
:'description' => :'String',
|
|
65
|
+
:'retained_versions' => :'Integer',
|
|
61
66
|
:'remote' => :'String'
|
|
62
67
|
}
|
|
63
68
|
end
|
|
@@ -66,6 +71,7 @@ module PulpMavenClient
|
|
|
66
71
|
def self.openapi_nullable
|
|
67
72
|
Set.new([
|
|
68
73
|
:'description',
|
|
74
|
+
:'retained_versions',
|
|
69
75
|
:'remote'
|
|
70
76
|
])
|
|
71
77
|
end
|
|
@@ -113,6 +119,10 @@ module PulpMavenClient
|
|
|
113
119
|
self.description = attributes[:'description']
|
|
114
120
|
end
|
|
115
121
|
|
|
122
|
+
if attributes.key?(:'retained_versions')
|
|
123
|
+
self.retained_versions = attributes[:'retained_versions']
|
|
124
|
+
end
|
|
125
|
+
|
|
116
126
|
if attributes.key?(:'remote')
|
|
117
127
|
self.remote = attributes[:'remote']
|
|
118
128
|
end
|
|
@@ -126,6 +136,10 @@ module PulpMavenClient
|
|
|
126
136
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
127
137
|
end
|
|
128
138
|
|
|
139
|
+
if !@retained_versions.nil? && @retained_versions < 1
|
|
140
|
+
invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
|
|
141
|
+
end
|
|
142
|
+
|
|
129
143
|
invalid_properties
|
|
130
144
|
end
|
|
131
145
|
|
|
@@ -133,9 +147,20 @@ module PulpMavenClient
|
|
|
133
147
|
# @return true if the model is valid
|
|
134
148
|
def valid?
|
|
135
149
|
return false if @name.nil?
|
|
150
|
+
return false if !@retained_versions.nil? && @retained_versions < 1
|
|
136
151
|
true
|
|
137
152
|
end
|
|
138
153
|
|
|
154
|
+
# Custom attribute writer method with validation
|
|
155
|
+
# @param [Object] retained_versions Value to be assigned
|
|
156
|
+
def retained_versions=(retained_versions)
|
|
157
|
+
if !retained_versions.nil? && retained_versions < 1
|
|
158
|
+
fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
@retained_versions = retained_versions
|
|
162
|
+
end
|
|
163
|
+
|
|
139
164
|
# Checks equality by comparing each attribute.
|
|
140
165
|
# @param [Object] Object to be compared
|
|
141
166
|
def ==(o)
|
|
@@ -148,6 +173,7 @@ module PulpMavenClient
|
|
|
148
173
|
latest_version_href == o.latest_version_href &&
|
|
149
174
|
name == o.name &&
|
|
150
175
|
description == o.description &&
|
|
176
|
+
retained_versions == o.retained_versions &&
|
|
151
177
|
remote == o.remote
|
|
152
178
|
end
|
|
153
179
|
|
|
@@ -160,7 +186,7 @@ module PulpMavenClient
|
|
|
160
186
|
# Calculates hash code according to all attributes.
|
|
161
187
|
# @return [Integer] Hash code
|
|
162
188
|
def hash
|
|
163
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote].hash
|
|
189
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retained_versions, remote].hash
|
|
164
190
|
end
|
|
165
191
|
|
|
166
192
|
# Builds the object from hash
|