pulp_python_client 3.0.0 → 3.2.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 (60) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/docs/ContentPackagesApi.md +34 -28
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +3 -3
  6. data/docs/DistributionsPypiApi.md +20 -12
  7. data/docs/ExcludePlatformsEnum.md +16 -0
  8. data/docs/PackageTypesEnum.md +16 -0
  9. data/docs/PatchedpythonPythonDistribution.md +2 -0
  10. data/docs/PatchedpythonPythonRemote.md +18 -2
  11. data/docs/PatchedpythonPythonRepository.md +3 -1
  12. data/docs/PublicationsPypiApi.md +14 -14
  13. data/docs/PythonPythonDistribution.md +2 -0
  14. data/docs/PythonPythonDistributionResponse.md +2 -0
  15. data/docs/PythonPythonRemote.md +18 -2
  16. data/docs/PythonPythonRemoteResponse.md +14 -8
  17. data/docs/PythonPythonRepository.md +3 -1
  18. data/docs/PythonPythonRepositoryResponse.md +2 -0
  19. data/docs/RemotesPythonApi.md +24 -16
  20. data/docs/RepositoriesPythonApi.md +12 -4
  21. data/docs/RepositoriesPythonVersionsApi.md +28 -28
  22. data/lib/pulp_python_client/api/content_packages_api.rb +42 -33
  23. data/lib/pulp_python_client/api/distributions_pypi_api.rb +26 -14
  24. data/lib/pulp_python_client/api/publications_pypi_api.rb +15 -15
  25. data/lib/pulp_python_client/api/remotes_python_api.rb +30 -18
  26. data/lib/pulp_python_client/api/repositories_python_api.rb +17 -5
  27. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +30 -30
  28. data/lib/pulp_python_client/models/content_summary.rb +12 -6
  29. data/lib/pulp_python_client/models/content_summary_response.rb +12 -6
  30. data/lib/pulp_python_client/models/exclude_platforms_enum.rb +38 -0
  31. data/lib/pulp_python_client/models/package_types_enum.rb +42 -0
  32. data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +10 -1
  33. data/lib/pulp_python_client/models/patchedpython_python_remote.rb +95 -5
  34. data/lib/pulp_python_client/models/patchedpython_python_repository.rb +10 -1
  35. data/lib/pulp_python_client/models/python_python_distribution.rb +10 -1
  36. data/lib/pulp_python_client/models/python_python_distribution_response.rb +10 -1
  37. data/lib/pulp_python_client/models/python_python_remote.rb +95 -5
  38. data/lib/pulp_python_client/models/python_python_remote_response.rb +70 -35
  39. data/lib/pulp_python_client/models/python_python_repository.rb +10 -1
  40. data/lib/pulp_python_client/models/python_python_repository_response.rb +10 -1
  41. data/lib/pulp_python_client/version.rb +1 -1
  42. data/lib/pulp_python_client.rb +2 -0
  43. data/spec/api/content_packages_api_spec.rb +17 -14
  44. data/spec/api/distributions_pypi_api_spec.rb +10 -6
  45. data/spec/api/publications_pypi_api_spec.rb +7 -7
  46. data/spec/api/remotes_python_api_spec.rb +12 -8
  47. data/spec/api/repositories_python_api_spec.rb +6 -2
  48. data/spec/api/repositories_python_versions_api_spec.rb +14 -14
  49. data/spec/models/exclude_platforms_enum_spec.rb +35 -0
  50. data/spec/models/package_types_enum_spec.rb +35 -0
  51. data/spec/models/patchedpython_python_distribution_spec.rb +6 -0
  52. data/spec/models/patchedpython_python_remote_spec.rb +48 -0
  53. data/spec/models/patchedpython_python_repository_spec.rb +6 -0
  54. data/spec/models/python_python_distribution_response_spec.rb +6 -0
  55. data/spec/models/python_python_distribution_spec.rb +6 -0
  56. data/spec/models/python_python_remote_response_spec.rb +30 -12
  57. data/spec/models/python_python_remote_spec.rb +48 -0
  58. data/spec/models/python_python_repository_response_spec.rb +6 -0
  59. data/spec/models/python_python_repository_spec.rb +6 -0
  60. metadata +30 -22
@@ -29,6 +29,8 @@ module PulpPythonClient
29
29
  # An optional content-guard.
30
30
  attr_accessor :content_guard
31
31
 
32
+ attr_accessor :pulp_labels
33
+
32
34
  # A unique name. Ex, `rawhide` and `stable`.
33
35
  attr_accessor :name
34
36
 
@@ -43,6 +45,7 @@ module PulpPythonClient
43
45
  :'base_path' => :'base_path',
44
46
  :'base_url' => :'base_url',
45
47
  :'content_guard' => :'content_guard',
48
+ :'pulp_labels' => :'pulp_labels',
46
49
  :'name' => :'name',
47
50
  :'publication' => :'publication'
48
51
  }
@@ -56,6 +59,7 @@ module PulpPythonClient
56
59
  :'base_path' => :'String',
57
60
  :'base_url' => :'String',
58
61
  :'content_guard' => :'String',
62
+ :'pulp_labels' => :'Object',
59
63
  :'name' => :'String',
60
64
  :'publication' => :'String'
61
65
  }
@@ -104,6 +108,10 @@ module PulpPythonClient
104
108
  self.content_guard = attributes[:'content_guard']
105
109
  end
106
110
 
111
+ if attributes.key?(:'pulp_labels')
112
+ self.pulp_labels = attributes[:'pulp_labels']
113
+ end
114
+
107
115
  if attributes.key?(:'name')
108
116
  self.name = attributes[:'name']
109
117
  end
@@ -146,6 +154,7 @@ module PulpPythonClient
146
154
  base_path == o.base_path &&
147
155
  base_url == o.base_url &&
148
156
  content_guard == o.content_guard &&
157
+ pulp_labels == o.pulp_labels &&
149
158
  name == o.name &&
150
159
  publication == o.publication
151
160
  end
@@ -159,7 +168,7 @@ module PulpPythonClient
159
168
  # Calculates hash code according to all attributes.
160
169
  # @return [Integer] Hash code
161
170
  def hash
162
- [pulp_href, pulp_created, base_path, base_url, content_guard, name, publication].hash
171
+ [pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, publication].hash
163
172
  end
164
173
 
165
174
  # Builds the object from hash
@@ -33,15 +33,23 @@ module PulpPythonClient
33
33
  # If True, TLS peer validation must be performed.
34
34
  attr_accessor :tls_validation
35
35
 
36
- # The proxy URL. Format: scheme://user:password@host:port
36
+ # The proxy URL. Format: scheme://host:port
37
37
  attr_accessor :proxy_url
38
38
 
39
+ # The username to authenticte to the proxy.
40
+ attr_accessor :proxy_username
41
+
42
+ # The password to authenticte to the proxy.
43
+ attr_accessor :proxy_password
44
+
39
45
  # The username to be used for authentication when syncing.
40
46
  attr_accessor :username
41
47
 
42
48
  # The password to be used for authentication when syncing.
43
49
  attr_accessor :password
44
50
 
51
+ attr_accessor :pulp_labels
52
+
45
53
  # Total number of simultaneous connections.
46
54
  attr_accessor :download_concurrency
47
55
 
@@ -60,6 +68,12 @@ module PulpPythonClient
60
68
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
61
69
  attr_accessor :sock_read_timeout
62
70
 
71
+ # Headers for aiohttp.Clientsession
72
+ attr_accessor :headers
73
+
74
+ # Limits total download rate in requests per second
75
+ attr_accessor :rate_limit
76
+
63
77
  # A JSON list containing project specifiers for Python packages to include.
64
78
  attr_accessor :includes
65
79
 
@@ -69,6 +83,15 @@ module PulpPythonClient
69
83
  # Whether or not to include pre-release packages in the sync.
70
84
  attr_accessor :prereleases
71
85
 
86
+ # The package types to sync for Python content. Leave blank to get everypackage type.
87
+ attr_accessor :package_types
88
+
89
+ # The amount of latest versions of a package to keep on sync, includespre-releases if synced. Default 0 keeps all versions.
90
+ attr_accessor :keep_latest_packages
91
+
92
+ # List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux.
93
+ attr_accessor :exclude_platforms
94
+
72
95
  # Attribute mapping from ruby-style variable name to JSON key.
73
96
  def self.attribute_map
74
97
  {
@@ -79,17 +102,25 @@ module PulpPythonClient
79
102
  :'client_key' => :'client_key',
80
103
  :'tls_validation' => :'tls_validation',
81
104
  :'proxy_url' => :'proxy_url',
105
+ :'proxy_username' => :'proxy_username',
106
+ :'proxy_password' => :'proxy_password',
82
107
  :'username' => :'username',
83
108
  :'password' => :'password',
109
+ :'pulp_labels' => :'pulp_labels',
84
110
  :'download_concurrency' => :'download_concurrency',
85
111
  :'policy' => :'policy',
86
112
  :'total_timeout' => :'total_timeout',
87
113
  :'connect_timeout' => :'connect_timeout',
88
114
  :'sock_connect_timeout' => :'sock_connect_timeout',
89
115
  :'sock_read_timeout' => :'sock_read_timeout',
116
+ :'headers' => :'headers',
117
+ :'rate_limit' => :'rate_limit',
90
118
  :'includes' => :'includes',
91
119
  :'excludes' => :'excludes',
92
- :'prereleases' => :'prereleases'
120
+ :'prereleases' => :'prereleases',
121
+ :'package_types' => :'package_types',
122
+ :'keep_latest_packages' => :'keep_latest_packages',
123
+ :'exclude_platforms' => :'exclude_platforms'
93
124
  }
94
125
  end
95
126
 
@@ -103,17 +134,25 @@ module PulpPythonClient
103
134
  :'client_key' => :'String',
104
135
  :'tls_validation' => :'Boolean',
105
136
  :'proxy_url' => :'String',
137
+ :'proxy_username' => :'String',
138
+ :'proxy_password' => :'String',
106
139
  :'username' => :'String',
107
140
  :'password' => :'String',
141
+ :'pulp_labels' => :'Object',
108
142
  :'download_concurrency' => :'Integer',
109
143
  :'policy' => :'PolicyEnum',
110
144
  :'total_timeout' => :'Float',
111
145
  :'connect_timeout' => :'Float',
112
146
  :'sock_connect_timeout' => :'Float',
113
147
  :'sock_read_timeout' => :'Float',
148
+ :'headers' => :'Array<Object>',
149
+ :'rate_limit' => :'Integer',
114
150
  :'includes' => :'Object',
115
151
  :'excludes' => :'Object',
116
- :'prereleases' => :'Boolean'
152
+ :'prereleases' => :'Boolean',
153
+ :'package_types' => :'Array<PackageTypesEnum>',
154
+ :'keep_latest_packages' => :'Integer',
155
+ :'exclude_platforms' => :'Array<ExcludePlatformsEnum>'
117
156
  }
118
157
  end
119
158
 
@@ -124,12 +163,15 @@ module PulpPythonClient
124
163
  :'client_cert',
125
164
  :'client_key',
126
165
  :'proxy_url',
166
+ :'proxy_username',
167
+ :'proxy_password',
127
168
  :'username',
128
169
  :'password',
129
170
  :'total_timeout',
130
171
  :'connect_timeout',
131
172
  :'sock_connect_timeout',
132
173
  :'sock_read_timeout',
174
+ :'rate_limit',
133
175
  ])
134
176
  end
135
177
 
@@ -176,6 +218,14 @@ module PulpPythonClient
176
218
  self.proxy_url = attributes[:'proxy_url']
177
219
  end
178
220
 
221
+ if attributes.key?(:'proxy_username')
222
+ self.proxy_username = attributes[:'proxy_username']
223
+ end
224
+
225
+ if attributes.key?(:'proxy_password')
226
+ self.proxy_password = attributes[:'proxy_password']
227
+ end
228
+
179
229
  if attributes.key?(:'username')
180
230
  self.username = attributes[:'username']
181
231
  end
@@ -184,6 +234,10 @@ module PulpPythonClient
184
234
  self.password = attributes[:'password']
185
235
  end
186
236
 
237
+ if attributes.key?(:'pulp_labels')
238
+ self.pulp_labels = attributes[:'pulp_labels']
239
+ end
240
+
187
241
  if attributes.key?(:'download_concurrency')
188
242
  self.download_concurrency = attributes[:'download_concurrency']
189
243
  end
@@ -208,6 +262,16 @@ module PulpPythonClient
208
262
  self.sock_read_timeout = attributes[:'sock_read_timeout']
209
263
  end
210
264
 
265
+ if attributes.key?(:'headers')
266
+ if (value = attributes[:'headers']).is_a?(Array)
267
+ self.headers = value
268
+ end
269
+ end
270
+
271
+ if attributes.key?(:'rate_limit')
272
+ self.rate_limit = attributes[:'rate_limit']
273
+ end
274
+
211
275
  if attributes.key?(:'includes')
212
276
  self.includes = attributes[:'includes']
213
277
  end
@@ -219,6 +283,24 @@ module PulpPythonClient
219
283
  if attributes.key?(:'prereleases')
220
284
  self.prereleases = attributes[:'prereleases']
221
285
  end
286
+
287
+ if attributes.key?(:'package_types')
288
+ if (value = attributes[:'package_types']).is_a?(Array)
289
+ self.package_types = value
290
+ end
291
+ end
292
+
293
+ if attributes.key?(:'keep_latest_packages')
294
+ self.keep_latest_packages = attributes[:'keep_latest_packages']
295
+ else
296
+ self.keep_latest_packages = 0
297
+ end
298
+
299
+ if attributes.key?(:'exclude_platforms')
300
+ if (value = attributes[:'exclude_platforms']).is_a?(Array)
301
+ self.exclude_platforms = value
302
+ end
303
+ end
222
304
  end
223
305
 
224
306
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -331,17 +413,25 @@ module PulpPythonClient
331
413
  client_key == o.client_key &&
332
414
  tls_validation == o.tls_validation &&
333
415
  proxy_url == o.proxy_url &&
416
+ proxy_username == o.proxy_username &&
417
+ proxy_password == o.proxy_password &&
334
418
  username == o.username &&
335
419
  password == o.password &&
420
+ pulp_labels == o.pulp_labels &&
336
421
  download_concurrency == o.download_concurrency &&
337
422
  policy == o.policy &&
338
423
  total_timeout == o.total_timeout &&
339
424
  connect_timeout == o.connect_timeout &&
340
425
  sock_connect_timeout == o.sock_connect_timeout &&
341
426
  sock_read_timeout == o.sock_read_timeout &&
427
+ headers == o.headers &&
428
+ rate_limit == o.rate_limit &&
342
429
  includes == o.includes &&
343
430
  excludes == o.excludes &&
344
- prereleases == o.prereleases
431
+ prereleases == o.prereleases &&
432
+ package_types == o.package_types &&
433
+ keep_latest_packages == o.keep_latest_packages &&
434
+ exclude_platforms == o.exclude_platforms
345
435
  end
346
436
 
347
437
  # @see the `==` method
@@ -353,7 +443,7 @@ module PulpPythonClient
353
443
  # Calculates hash code according to all attributes.
354
444
  # @return [Integer] Hash code
355
445
  def hash
356
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, includes, excludes, prereleases].hash
446
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
357
447
  end
358
448
 
359
449
  # Builds the object from hash
@@ -32,20 +32,13 @@ module PulpPythonClient
32
32
  # A PEM encoded client certificate used for authentication.
33
33
  attr_accessor :client_cert
34
34
 
35
- # A PEM encoded private key used for authentication.
36
- attr_accessor :client_key
37
-
38
35
  # If True, TLS peer validation must be performed.
39
36
  attr_accessor :tls_validation
40
37
 
41
- # The proxy URL. Format: scheme://user:password@host:port
38
+ # The proxy URL. Format: scheme://host:port
42
39
  attr_accessor :proxy_url
43
40
 
44
- # The username to be used for authentication when syncing.
45
- attr_accessor :username
46
-
47
- # The password to be used for authentication when syncing.
48
- attr_accessor :password
41
+ attr_accessor :pulp_labels
49
42
 
50
43
  # Timestamp of the most recent update of the remote.
51
44
  attr_accessor :pulp_last_updated
@@ -68,6 +61,12 @@ module PulpPythonClient
68
61
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
69
62
  attr_accessor :sock_read_timeout
70
63
 
64
+ # Headers for aiohttp.Clientsession
65
+ attr_accessor :headers
66
+
67
+ # Limits total download rate in requests per second
68
+ attr_accessor :rate_limit
69
+
71
70
  # A JSON list containing project specifiers for Python packages to include.
72
71
  attr_accessor :includes
73
72
 
@@ -77,6 +76,15 @@ module PulpPythonClient
77
76
  # Whether or not to include pre-release packages in the sync.
78
77
  attr_accessor :prereleases
79
78
 
79
+ # The package types to sync for Python content. Leave blank to get everypackage type.
80
+ attr_accessor :package_types
81
+
82
+ # The amount of latest versions of a package to keep on sync, includespre-releases if synced. Default 0 keeps all versions.
83
+ attr_accessor :keep_latest_packages
84
+
85
+ # List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux.
86
+ attr_accessor :exclude_platforms
87
+
80
88
  # Attribute mapping from ruby-style variable name to JSON key.
81
89
  def self.attribute_map
82
90
  {
@@ -86,11 +94,9 @@ module PulpPythonClient
86
94
  :'url' => :'url',
87
95
  :'ca_cert' => :'ca_cert',
88
96
  :'client_cert' => :'client_cert',
89
- :'client_key' => :'client_key',
90
97
  :'tls_validation' => :'tls_validation',
91
98
  :'proxy_url' => :'proxy_url',
92
- :'username' => :'username',
93
- :'password' => :'password',
99
+ :'pulp_labels' => :'pulp_labels',
94
100
  :'pulp_last_updated' => :'pulp_last_updated',
95
101
  :'download_concurrency' => :'download_concurrency',
96
102
  :'policy' => :'policy',
@@ -98,9 +104,14 @@ module PulpPythonClient
98
104
  :'connect_timeout' => :'connect_timeout',
99
105
  :'sock_connect_timeout' => :'sock_connect_timeout',
100
106
  :'sock_read_timeout' => :'sock_read_timeout',
107
+ :'headers' => :'headers',
108
+ :'rate_limit' => :'rate_limit',
101
109
  :'includes' => :'includes',
102
110
  :'excludes' => :'excludes',
103
- :'prereleases' => :'prereleases'
111
+ :'prereleases' => :'prereleases',
112
+ :'package_types' => :'package_types',
113
+ :'keep_latest_packages' => :'keep_latest_packages',
114
+ :'exclude_platforms' => :'exclude_platforms'
104
115
  }
105
116
  end
106
117
 
@@ -113,11 +124,9 @@ module PulpPythonClient
113
124
  :'url' => :'String',
114
125
  :'ca_cert' => :'String',
115
126
  :'client_cert' => :'String',
116
- :'client_key' => :'String',
117
127
  :'tls_validation' => :'Boolean',
118
128
  :'proxy_url' => :'String',
119
- :'username' => :'String',
120
- :'password' => :'String',
129
+ :'pulp_labels' => :'Object',
121
130
  :'pulp_last_updated' => :'DateTime',
122
131
  :'download_concurrency' => :'Integer',
123
132
  :'policy' => :'PolicyEnum',
@@ -125,9 +134,14 @@ module PulpPythonClient
125
134
  :'connect_timeout' => :'Float',
126
135
  :'sock_connect_timeout' => :'Float',
127
136
  :'sock_read_timeout' => :'Float',
137
+ :'headers' => :'Array<Object>',
138
+ :'rate_limit' => :'Integer',
128
139
  :'includes' => :'Object',
129
140
  :'excludes' => :'Object',
130
- :'prereleases' => :'Boolean'
141
+ :'prereleases' => :'Boolean',
142
+ :'package_types' => :'Array<PackageTypesEnum>',
143
+ :'keep_latest_packages' => :'Integer',
144
+ :'exclude_platforms' => :'Array<ExcludePlatformsEnum>'
131
145
  }
132
146
  end
133
147
 
@@ -136,14 +150,12 @@ module PulpPythonClient
136
150
  Set.new([
137
151
  :'ca_cert',
138
152
  :'client_cert',
139
- :'client_key',
140
153
  :'proxy_url',
141
- :'username',
142
- :'password',
143
154
  :'total_timeout',
144
155
  :'connect_timeout',
145
156
  :'sock_connect_timeout',
146
157
  :'sock_read_timeout',
158
+ :'rate_limit',
147
159
  ])
148
160
  end
149
161
 
@@ -186,10 +198,6 @@ module PulpPythonClient
186
198
  self.client_cert = attributes[:'client_cert']
187
199
  end
188
200
 
189
- if attributes.key?(:'client_key')
190
- self.client_key = attributes[:'client_key']
191
- end
192
-
193
201
  if attributes.key?(:'tls_validation')
194
202
  self.tls_validation = attributes[:'tls_validation']
195
203
  end
@@ -198,12 +206,8 @@ module PulpPythonClient
198
206
  self.proxy_url = attributes[:'proxy_url']
199
207
  end
200
208
 
201
- if attributes.key?(:'username')
202
- self.username = attributes[:'username']
203
- end
204
-
205
- if attributes.key?(:'password')
206
- self.password = attributes[:'password']
209
+ if attributes.key?(:'pulp_labels')
210
+ self.pulp_labels = attributes[:'pulp_labels']
207
211
  end
208
212
 
209
213
  if attributes.key?(:'pulp_last_updated')
@@ -234,6 +238,16 @@ module PulpPythonClient
234
238
  self.sock_read_timeout = attributes[:'sock_read_timeout']
235
239
  end
236
240
 
241
+ if attributes.key?(:'headers')
242
+ if (value = attributes[:'headers']).is_a?(Array)
243
+ self.headers = value
244
+ end
245
+ end
246
+
247
+ if attributes.key?(:'rate_limit')
248
+ self.rate_limit = attributes[:'rate_limit']
249
+ end
250
+
237
251
  if attributes.key?(:'includes')
238
252
  self.includes = attributes[:'includes']
239
253
  end
@@ -245,6 +259,24 @@ module PulpPythonClient
245
259
  if attributes.key?(:'prereleases')
246
260
  self.prereleases = attributes[:'prereleases']
247
261
  end
262
+
263
+ if attributes.key?(:'package_types')
264
+ if (value = attributes[:'package_types']).is_a?(Array)
265
+ self.package_types = value
266
+ end
267
+ end
268
+
269
+ if attributes.key?(:'keep_latest_packages')
270
+ self.keep_latest_packages = attributes[:'keep_latest_packages']
271
+ else
272
+ self.keep_latest_packages = 0
273
+ end
274
+
275
+ if attributes.key?(:'exclude_platforms')
276
+ if (value = attributes[:'exclude_platforms']).is_a?(Array)
277
+ self.exclude_platforms = value
278
+ end
279
+ end
248
280
  end
249
281
 
250
282
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -356,11 +388,9 @@ module PulpPythonClient
356
388
  url == o.url &&
357
389
  ca_cert == o.ca_cert &&
358
390
  client_cert == o.client_cert &&
359
- client_key == o.client_key &&
360
391
  tls_validation == o.tls_validation &&
361
392
  proxy_url == o.proxy_url &&
362
- username == o.username &&
363
- password == o.password &&
393
+ pulp_labels == o.pulp_labels &&
364
394
  pulp_last_updated == o.pulp_last_updated &&
365
395
  download_concurrency == o.download_concurrency &&
366
396
  policy == o.policy &&
@@ -368,9 +398,14 @@ module PulpPythonClient
368
398
  connect_timeout == o.connect_timeout &&
369
399
  sock_connect_timeout == o.sock_connect_timeout &&
370
400
  sock_read_timeout == o.sock_read_timeout &&
401
+ headers == o.headers &&
402
+ rate_limit == o.rate_limit &&
371
403
  includes == o.includes &&
372
404
  excludes == o.excludes &&
373
- prereleases == o.prereleases
405
+ prereleases == o.prereleases &&
406
+ package_types == o.package_types &&
407
+ keep_latest_packages == o.keep_latest_packages &&
408
+ exclude_platforms == o.exclude_platforms
374
409
  end
375
410
 
376
411
  # @see the `==` method
@@ -382,7 +417,7 @@ module PulpPythonClient
382
417
  # Calculates hash code according to all attributes.
383
418
  # @return [Integer] Hash code
384
419
  def hash
385
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, includes, excludes, prereleases].hash
420
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
386
421
  end
387
422
 
388
423
  # Builds the object from hash
@@ -15,6 +15,8 @@ require 'date'
15
15
  module PulpPythonClient
16
16
  # Serializer for Python Repositories.
17
17
  class PythonPythonRepository
18
+ attr_accessor :pulp_labels
19
+
18
20
  # A unique name for this repository.
19
21
  attr_accessor :name
20
22
 
@@ -26,6 +28,7 @@ module PulpPythonClient
26
28
  # Attribute mapping from ruby-style variable name to JSON key.
27
29
  def self.attribute_map
28
30
  {
31
+ :'pulp_labels' => :'pulp_labels',
29
32
  :'name' => :'name',
30
33
  :'description' => :'description',
31
34
  :'remote' => :'remote'
@@ -35,6 +38,7 @@ module PulpPythonClient
35
38
  # Attribute type mapping.
36
39
  def self.openapi_types
37
40
  {
41
+ :'pulp_labels' => :'Object',
38
42
  :'name' => :'String',
39
43
  :'description' => :'String',
40
44
  :'remote' => :'String'
@@ -64,6 +68,10 @@ module PulpPythonClient
64
68
  h[k.to_sym] = v
65
69
  }
66
70
 
71
+ if attributes.key?(:'pulp_labels')
72
+ self.pulp_labels = attributes[:'pulp_labels']
73
+ end
74
+
67
75
  if attributes.key?(:'name')
68
76
  self.name = attributes[:'name']
69
77
  end
@@ -100,6 +108,7 @@ module PulpPythonClient
100
108
  def ==(o)
101
109
  return true if self.equal?(o)
102
110
  self.class == o.class &&
111
+ pulp_labels == o.pulp_labels &&
103
112
  name == o.name &&
104
113
  description == o.description &&
105
114
  remote == o.remote
@@ -114,7 +123,7 @@ module PulpPythonClient
114
123
  # Calculates hash code according to all attributes.
115
124
  # @return [Integer] Hash code
116
125
  def hash
117
- [name, description, remote].hash
126
+ [pulp_labels, name, description, remote].hash
118
127
  end
119
128
 
120
129
  # Builds the object from hash
@@ -22,6 +22,8 @@ module PulpPythonClient
22
22
 
23
23
  attr_accessor :versions_href
24
24
 
25
+ attr_accessor :pulp_labels
26
+
25
27
  attr_accessor :latest_version_href
26
28
 
27
29
  # A unique name for this repository.
@@ -38,6 +40,7 @@ module PulpPythonClient
38
40
  :'pulp_href' => :'pulp_href',
39
41
  :'pulp_created' => :'pulp_created',
40
42
  :'versions_href' => :'versions_href',
43
+ :'pulp_labels' => :'pulp_labels',
41
44
  :'latest_version_href' => :'latest_version_href',
42
45
  :'name' => :'name',
43
46
  :'description' => :'description',
@@ -51,6 +54,7 @@ module PulpPythonClient
51
54
  :'pulp_href' => :'String',
52
55
  :'pulp_created' => :'DateTime',
53
56
  :'versions_href' => :'String',
57
+ :'pulp_labels' => :'Object',
54
58
  :'latest_version_href' => :'String',
55
59
  :'name' => :'String',
56
60
  :'description' => :'String',
@@ -93,6 +97,10 @@ module PulpPythonClient
93
97
  self.versions_href = attributes[:'versions_href']
94
98
  end
95
99
 
100
+ if attributes.key?(:'pulp_labels')
101
+ self.pulp_labels = attributes[:'pulp_labels']
102
+ end
103
+
96
104
  if attributes.key?(:'latest_version_href')
97
105
  self.latest_version_href = attributes[:'latest_version_href']
98
106
  end
@@ -136,6 +144,7 @@ module PulpPythonClient
136
144
  pulp_href == o.pulp_href &&
137
145
  pulp_created == o.pulp_created &&
138
146
  versions_href == o.versions_href &&
147
+ pulp_labels == o.pulp_labels &&
139
148
  latest_version_href == o.latest_version_href &&
140
149
  name == o.name &&
141
150
  description == o.description &&
@@ -151,7 +160,7 @@ module PulpPythonClient
151
160
  # Calculates hash code according to all attributes.
152
161
  # @return [Integer] Hash code
153
162
  def hash
154
- [pulp_href, pulp_created, versions_href, latest_version_href, name, description, remote].hash
163
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote].hash
155
164
  end
156
165
 
157
166
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpPythonClient
14
- VERSION = '3.0.0'
14
+ VERSION = '3.2.0'
15
15
  end
@@ -20,6 +20,8 @@ require 'pulp_python_client/configuration'
20
20
  require 'pulp_python_client/models/async_operation_response'
21
21
  require 'pulp_python_client/models/content_summary'
22
22
  require 'pulp_python_client/models/content_summary_response'
23
+ require 'pulp_python_client/models/exclude_platforms_enum'
24
+ require 'pulp_python_client/models/package_types_enum'
23
25
  require 'pulp_python_client/models/paginated_repository_version_response_list'
24
26
  require 'pulp_python_client/models/paginatedpython_python_distribution_response_list'
25
27
  require 'pulp_python_client/models/paginatedpython_python_package_content_response_list'
@@ -70,23 +70,26 @@ describe 'ContentPackagesApi' do
70
70
  # List python package contents
71
71
  # PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example &#x60;pulpcore-3.0.0rc1-py3-none-any.whl&#x60; or &#x60;pulpcore-3.0.0rc1.tar.gz&#x60;.
72
72
  # @param [Hash] opts the optional parameters
73
- # @option opts [String] :author author
74
- # @option opts [String] :author__in author__in
75
- # @option opts [String] :filename filename
76
- # @option opts [String] :filename__contains filename__contains
77
- # @option opts [String] :filename__in filename__in
78
- # @option opts [String] :keywords__contains keywords__contains
79
- # @option opts [String] :keywords__in keywords__in
73
+ # @option opts [String] :author Filter results where author matches value
74
+ # @option opts [Array<String>] :author__in Filter results where author is in a comma-separated list of values
75
+ # @option opts [String] :filename Filter results where filename matches value
76
+ # @option opts [String] :filename__contains Filter results where filename contains value
77
+ # @option opts [Array<String>] :filename__in Filter results where filename is in a comma-separated list of values
78
+ # @option opts [String] :keywords__contains Filter results where keywords contains value
79
+ # @option opts [Array<String>] :keywords__in Filter results where keywords is in a comma-separated list of values
80
80
  # @option opts [Integer] :limit Number of results to return per page.
81
- # @option opts [String] :name name
82
- # @option opts [String] :name__in name__in
81
+ # @option opts [String] :name Filter results where name matches value
82
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
83
83
  # @option opts [Integer] :offset The initial index from which to return the results.
84
84
  # @option opts [String] :ordering Which field to use when ordering the results.
85
- # @option opts [String] :packagetype packagetype
86
- # @option opts [String] :packagetype__in packagetype__in
87
- # @option opts [String] :repository_version repository_version
88
- # @option opts [String] :repository_version_added repository_version_added
89
- # @option opts [String] :repository_version_removed repository_version_removed
85
+ # @option opts [String] :packagetype Filter results where packagetype matches value
86
+ # @option opts [Array<String>] :packagetype__in Filter results where packagetype is in a comma-separated list of values
87
+ # @option opts [String] :repository_version Repository Version referenced by HREF
88
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
89
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
90
+ # @option opts [String] :requires_python Filter results where requires_python matches value
91
+ # @option opts [String] :requires_python__contains Filter results where requires_python contains value
92
+ # @option opts [Array<String>] :requires_python__in Filter results where requires_python is in a comma-separated list of values
90
93
  # @option opts [String] :fields A list of fields to include in the response.
91
94
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
92
95
  # @return [PaginatedpythonPythonPackageContentResponseList]