pulp_python_client 3.12.1 → 3.12.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc05c7caeff5830516eb3e42678e2fc15957b85c31f926d86a877a568c614bd6
4
- data.tar.gz: 72ae55c93aa8ec0595c124cce33acf57df72000e40b3210def94feed8dc2d0ee
3
+ metadata.gz: f84c7d33126a31baf485dc1cc803caa679ca2bbbba2a72db32be734311a244f1
4
+ data.tar.gz: 1a980e5e43898c96612a4ef3a7d8eabfd0dff53e75c721fbb9217f80e19ac177
5
5
  SHA512:
6
- metadata.gz: 36e069e0ee57dfc391b35f790a3449a7e0201602142aa57703a3bb93027bf007ed5fe4ee042e1d3f8f117af20c07d1f1bdb6000fc6e9da01ed97b4d559427ad7
7
- data.tar.gz: '0348beb52814ffd8555f6059e4b202b00b8064d363eb9b2dd90aa527269f658a361c0ccbe28356735a3f6133bcca03d39b084cb2812626abe86678b5621a8e0b'
6
+ metadata.gz: b149b2cd343756f059844d73105165e7d95cc825c92468eaa4fdbf0ae82ccc13942805e037814222a105344076f356d7bd685b66327f0554d34ad902f2a288e1
7
+ data.tar.gz: 0d7c667e33b91718e903bd5d5fe449e3054db6c69e3d6e374be9825b94339724c3cfd545b808b240851372df49c3f45a19294958f81dd1ac392a1c703a999dfd
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 3.12.1
10
+ - Package version: 3.12.2
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_python_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_python_client-3.12.1.gem
27
+ gem install ./pulp_python_client-3.12.2.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_python_client-3.12.1.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_python_client-3.12.2.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_python_client', '~> 3.12.1'
36
+ gem 'pulp_python_client', '~> 3.12.2'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -71,6 +71,7 @@ opts = {
71
71
  artifact: 'artifact_example', # String | Artifact file representing the physical content
72
72
  file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the content unit.
73
73
  upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
74
+ file_url: 'file_url_example', # String | A url that Pulp can download and turn into the content unit.
74
75
  sha256: '', # String | The SHA256 digest of this package.
75
76
  summary: 'summary_example', # String | A one-line summary of what the package does.
76
77
  description: 'description_example', # String | A longer description of the package that can run to several paragraphs.
@@ -107,7 +108,7 @@ end
107
108
 
108
109
  ## Documentation for API Endpoints
109
110
 
110
- All URIs are relative to *http://pulp*
111
+ All URIs are relative to *http://localhost:24817*
111
112
 
112
113
  Class | Method | HTTP request | Description
113
114
  ------------ | ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpPythonClient::ContentPackagesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -37,6 +37,7 @@ opts = {
37
37
  artifact: 'artifact_example', # String | Artifact file representing the physical content
38
38
  file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the content unit.
39
39
  upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
40
+ file_url: 'file_url_example', # String | A url that Pulp can download and turn into the content unit.
40
41
  sha256: '', # String | The SHA256 digest of this package.
41
42
  summary: 'summary_example', # String | A one-line summary of what the package does.
42
43
  description: 'description_example', # String | A longer description of the package that can run to several paragraphs.
@@ -80,6 +81,7 @@ Name | Type | Description | Notes
80
81
  **artifact** | **String**| Artifact file representing the physical content | [optional]
81
82
  **file** | **File**| An uploaded file that may be turned into the content unit. | [optional]
82
83
  **upload** | **String**| An uncommitted upload that may be turned into the content unit. | [optional]
84
+ **file_url** | **String**| A url that Pulp can download and turn into the content unit. | [optional]
83
85
  **sha256** | **String**| The SHA256 digest of this package. | [optional] [default to '']
84
86
  **summary** | **String**| A one-line summary of what the package does. | [optional]
85
87
  **description** | **String**| A longer description of the package that can run to several paragraphs. | [optional]
@@ -1,6 +1,6 @@
1
1
  # PulpPythonClient::DistributionsPypiApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpPythonClient::PublicationsPypiApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
data/docs/PypiApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # PulpPythonClient::PypiApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpPythonClient::PypiLegacyApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpPythonClient::PypiMetadataApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpPythonClient::PypiSimpleApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
11
11
  **base_url** | **String** | | [optional] [readonly]
12
12
  **content_guard** | **String** | An optional content-guard. | [optional]
13
+ **no_content_change_since** | **String** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional] [readonly]
13
14
  **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
14
15
  **pulp_labels** | **Hash<String, String>** | | [optional]
15
16
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
@@ -29,6 +30,7 @@ instance = PulpPythonClient::PythonPythonDistributionResponse.new(pulp_href: nul
29
30
  base_path: null,
30
31
  base_url: null,
31
32
  content_guard: null,
33
+ no_content_change_since: null,
32
34
  hidden: null,
33
35
  pulp_labels: null,
34
36
  name: null,
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
  **relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
10
10
  **file** | **File** | An uploaded file that may be turned into the content unit. | [optional]
11
11
  **upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional]
12
+ **file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional]
12
13
  **sha256** | **String** | The SHA256 digest of this package. | [optional] [default to '']
13
14
  **summary** | **String** | A one-line summary of what the package does. | [optional]
14
15
  **description** | **String** | A longer description of the package that can run to several paragraphs. | [optional]
@@ -42,6 +43,7 @@ instance = PulpPythonClient::PythonPythonPackageContent.new(repository: null,
42
43
  relative_path: null,
43
44
  file: null,
44
45
  upload: null,
46
+ file_url: null,
45
47
  sha256: null,
46
48
  summary: null,
47
49
  description: null,
@@ -1,6 +1,6 @@
1
1
  # PulpPythonClient::RemotesPythonApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpPythonClient::RepositoriesPythonApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpPythonClient::RepositoriesPythonVersionsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -27,6 +27,7 @@ module PulpPythonClient
27
27
  # @option opts [String] :artifact Artifact file representing the physical content
28
28
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
29
29
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
30
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
30
31
  # @option opts [String] :sha256 The SHA256 digest of this package. (default to '')
31
32
  # @option opts [String] :summary A one-line summary of what the package does.
32
33
  # @option opts [String] :description A longer description of the package that can run to several paragraphs.
@@ -63,6 +64,7 @@ module PulpPythonClient
63
64
  # @option opts [String] :artifact Artifact file representing the physical content
64
65
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
65
66
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
67
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
66
68
  # @option opts [String] :sha256 The SHA256 digest of this package.
67
69
  # @option opts [String] :summary A one-line summary of what the package does.
68
70
  # @option opts [String] :description A longer description of the package that can run to several paragraphs.
@@ -98,6 +100,10 @@ module PulpPythonClient
98
100
  fail ArgumentError, 'invalid value for "relative_path" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
99
101
  end
100
102
 
103
+ if @api_client.config.client_side_validation && !opts[:'file_url'].nil? && opts[:'file_url'].to_s.length < 1
104
+ fail ArgumentError, 'invalid value for "opts[:"file_url"]" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
105
+ end
106
+
101
107
  if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
102
108
  fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
103
109
  end
@@ -122,6 +128,7 @@ module PulpPythonClient
122
128
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
123
129
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
124
130
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
131
+ form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
125
132
  form_params['sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
126
133
  form_params['summary'] = opts[:'summary'] if !opts[:'summary'].nil?
127
134
  form_params['description'] = opts[:'description'] if !opts[:'description'].nil?
@@ -128,7 +128,7 @@ module PulpPythonClient
128
128
 
129
129
  def initialize
130
130
  @scheme = 'http'
131
- @host = 'pulp'
131
+ @host = 'localhost'
132
132
  @base_path = ''
133
133
  @api_key = {}
134
134
  @api_key_prefix = {}
@@ -210,7 +210,7 @@ module PulpPythonClient
210
210
  def server_settings
211
211
  [
212
212
  {
213
- url: "http://pulp/",
213
+ url: "http://localhost:24817/",
214
214
  description: "No description provided",
215
215
  }
216
216
  ]
@@ -368,20 +368,20 @@ module PulpPythonClient
368
368
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
369
369
  end
370
370
 
371
- if !@total_timeout.nil? && @total_timeout < 0.0
372
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
371
+ if !@total_timeout.nil? && @total_timeout < 0
372
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
373
373
  end
374
374
 
375
- if !@connect_timeout.nil? && @connect_timeout < 0.0
376
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
375
+ if !@connect_timeout.nil? && @connect_timeout < 0
376
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
377
377
  end
378
378
 
379
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
380
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
379
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
380
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
381
381
  end
382
382
 
383
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
384
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
383
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
384
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
385
385
  end
386
386
 
387
387
  invalid_properties
@@ -401,10 +401,10 @@ module PulpPythonClient
401
401
  return false if !@username.nil? && @username.to_s.length < 1
402
402
  return false if !@password.nil? && @password.to_s.length < 1
403
403
  return false if !@download_concurrency.nil? && @download_concurrency < 1
404
- return false if !@total_timeout.nil? && @total_timeout < 0.0
405
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
406
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
407
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
404
+ return false if !@total_timeout.nil? && @total_timeout < 0
405
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
406
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
407
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
408
408
  true
409
409
  end
410
410
 
@@ -521,8 +521,8 @@ module PulpPythonClient
521
521
  # Custom attribute writer method with validation
522
522
  # @param [Object] total_timeout Value to be assigned
523
523
  def total_timeout=(total_timeout)
524
- if !total_timeout.nil? && total_timeout < 0.0
525
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
524
+ if !total_timeout.nil? && total_timeout < 0
525
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
526
526
  end
527
527
 
528
528
  @total_timeout = total_timeout
@@ -531,8 +531,8 @@ module PulpPythonClient
531
531
  # Custom attribute writer method with validation
532
532
  # @param [Object] connect_timeout Value to be assigned
533
533
  def connect_timeout=(connect_timeout)
534
- if !connect_timeout.nil? && connect_timeout < 0.0
535
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
534
+ if !connect_timeout.nil? && connect_timeout < 0
535
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
536
536
  end
537
537
 
538
538
  @connect_timeout = connect_timeout
@@ -541,8 +541,8 @@ module PulpPythonClient
541
541
  # Custom attribute writer method with validation
542
542
  # @param [Object] sock_connect_timeout Value to be assigned
543
543
  def sock_connect_timeout=(sock_connect_timeout)
544
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
545
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
544
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
545
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
546
546
  end
547
547
 
548
548
  @sock_connect_timeout = sock_connect_timeout
@@ -551,8 +551,8 @@ module PulpPythonClient
551
551
  # Custom attribute writer method with validation
552
552
  # @param [Object] sock_read_timeout Value to be assigned
553
553
  def sock_read_timeout=(sock_read_timeout)
554
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
555
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
554
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
555
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
556
556
  end
557
557
 
558
558
  @sock_read_timeout = sock_read_timeout
@@ -31,6 +31,9 @@ module PulpPythonClient
31
31
  # An optional content-guard.
32
32
  attr_accessor :content_guard
33
33
 
34
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
35
+ attr_accessor :no_content_change_since
36
+
34
37
  # Whether this distribution should be shown in the content app.
35
38
  attr_accessor :hidden
36
39
 
@@ -60,6 +63,7 @@ module PulpPythonClient
60
63
  :'base_path' => :'base_path',
61
64
  :'base_url' => :'base_url',
62
65
  :'content_guard' => :'content_guard',
66
+ :'no_content_change_since' => :'no_content_change_since',
63
67
  :'hidden' => :'hidden',
64
68
  :'pulp_labels' => :'pulp_labels',
65
69
  :'name' => :'name',
@@ -79,6 +83,7 @@ module PulpPythonClient
79
83
  :'base_path' => :'String',
80
84
  :'base_url' => :'String',
81
85
  :'content_guard' => :'String',
86
+ :'no_content_change_since' => :'String',
82
87
  :'hidden' => :'Boolean',
83
88
  :'pulp_labels' => :'Hash<String, String>',
84
89
  :'name' => :'String',
@@ -138,6 +143,10 @@ module PulpPythonClient
138
143
  self.content_guard = attributes[:'content_guard']
139
144
  end
140
145
 
146
+ if attributes.key?(:'no_content_change_since')
147
+ self.no_content_change_since = attributes[:'no_content_change_since']
148
+ end
149
+
141
150
  if attributes.key?(:'hidden')
142
151
  self.hidden = attributes[:'hidden']
143
152
  else
@@ -207,6 +216,7 @@ module PulpPythonClient
207
216
  base_path == o.base_path &&
208
217
  base_url == o.base_url &&
209
218
  content_guard == o.content_guard &&
219
+ no_content_change_since == o.no_content_change_since &&
210
220
  hidden == o.hidden &&
211
221
  pulp_labels == o.pulp_labels &&
212
222
  name == o.name &&
@@ -225,7 +235,7 @@ module PulpPythonClient
225
235
  # Calculates hash code according to all attributes.
226
236
  # @return [Integer] Hash code
227
237
  def hash
228
- [pulp_href, pulp_created, pulp_last_updated, base_path, base_url, content_guard, hidden, pulp_labels, name, repository, publication, allow_uploads, remote].hash
238
+ [pulp_href, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, publication, allow_uploads, remote].hash
229
239
  end
230
240
 
231
241
  # Builds the object from hash
@@ -30,6 +30,9 @@ module PulpPythonClient
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
+
33
36
  # The SHA256 digest of this package.
34
37
  attr_accessor :sha256
35
38
 
@@ -104,6 +107,7 @@ module PulpPythonClient
104
107
  :'relative_path' => :'relative_path',
105
108
  :'file' => :'file',
106
109
  :'upload' => :'upload',
110
+ :'file_url' => :'file_url',
107
111
  :'sha256' => :'sha256',
108
112
  :'summary' => :'summary',
109
113
  :'description' => :'description',
@@ -137,6 +141,7 @@ module PulpPythonClient
137
141
  :'relative_path' => :'String',
138
142
  :'file' => :'File',
139
143
  :'upload' => :'String',
144
+ :'file_url' => :'String',
140
145
  :'sha256' => :'String',
141
146
  :'summary' => :'String',
142
147
  :'description' => :'String',
@@ -203,6 +208,10 @@ module PulpPythonClient
203
208
  self.upload = attributes[:'upload']
204
209
  end
205
210
 
211
+ if attributes.key?(:'file_url')
212
+ self.file_url = attributes[:'file_url']
213
+ end
214
+
206
215
  if attributes.key?(:'sha256')
207
216
  self.sha256 = attributes[:'sha256']
208
217
  else
@@ -306,6 +315,10 @@ module PulpPythonClient
306
315
  invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
307
316
  end
308
317
 
318
+ if !@file_url.nil? && @file_url.to_s.length < 1
319
+ invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
320
+ end
321
+
309
322
  if !@sha256.nil? && @sha256.to_s.length < 1
310
323
  invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
311
324
  end
@@ -318,6 +331,7 @@ module PulpPythonClient
318
331
  def valid?
319
332
  return false if @relative_path.nil?
320
333
  return false if @relative_path.to_s.length < 1
334
+ return false if !@file_url.nil? && @file_url.to_s.length < 1
321
335
  return false if !@sha256.nil? && @sha256.to_s.length < 1
322
336
  true
323
337
  end
@@ -336,6 +350,16 @@ module PulpPythonClient
336
350
  @relative_path = relative_path
337
351
  end
338
352
 
353
+ # Custom attribute writer method with validation
354
+ # @param [Object] file_url Value to be assigned
355
+ def file_url=(file_url)
356
+ if !file_url.nil? && file_url.to_s.length < 1
357
+ fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
358
+ end
359
+
360
+ @file_url = file_url
361
+ end
362
+
339
363
  # Custom attribute writer method with validation
340
364
  # @param [Object] sha256 Value to be assigned
341
365
  def sha256=(sha256)
@@ -356,6 +380,7 @@ module PulpPythonClient
356
380
  relative_path == o.relative_path &&
357
381
  file == o.file &&
358
382
  upload == o.upload &&
383
+ file_url == o.file_url &&
359
384
  sha256 == o.sha256 &&
360
385
  summary == o.summary &&
361
386
  description == o.description &&
@@ -389,7 +414,7 @@ module PulpPythonClient
389
414
  # Calculates hash code according to all attributes.
390
415
  # @return [Integer] Hash code
391
416
  def hash
392
- [repository, artifact, relative_path, file, upload, sha256, summary, description, description_content_type, keywords, home_page, download_url, author, author_email, maintainer, maintainer_email, license, requires_python, project_url, project_urls, platform, supported_platform, requires_dist, provides_dist, obsoletes_dist, requires_external, classifiers].hash
417
+ [repository, artifact, relative_path, file, upload, file_url, sha256, summary, description, description_content_type, keywords, home_page, download_url, author, author_email, maintainer, maintainer_email, license, requires_python, project_url, project_urls, platform, supported_platform, requires_dist, provides_dist, obsoletes_dist, requires_external, classifiers].hash
393
418
  end
394
419
 
395
420
  # Builds the object from hash
@@ -376,20 +376,20 @@ module PulpPythonClient
376
376
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
377
377
  end
378
378
 
379
- if !@total_timeout.nil? && @total_timeout < 0.0
380
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
379
+ if !@total_timeout.nil? && @total_timeout < 0
380
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
381
381
  end
382
382
 
383
- if !@connect_timeout.nil? && @connect_timeout < 0.0
384
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
383
+ if !@connect_timeout.nil? && @connect_timeout < 0
384
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
385
385
  end
386
386
 
387
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
388
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
387
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
388
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
389
389
  end
390
390
 
391
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
392
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
391
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
392
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
393
393
  end
394
394
 
395
395
  invalid_properties
@@ -411,10 +411,10 @@ module PulpPythonClient
411
411
  return false if !@username.nil? && @username.to_s.length < 1
412
412
  return false if !@password.nil? && @password.to_s.length < 1
413
413
  return false if !@download_concurrency.nil? && @download_concurrency < 1
414
- return false if !@total_timeout.nil? && @total_timeout < 0.0
415
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
416
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
417
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
414
+ return false if !@total_timeout.nil? && @total_timeout < 0
415
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
416
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
417
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
418
418
  true
419
419
  end
420
420
 
@@ -539,8 +539,8 @@ module PulpPythonClient
539
539
  # Custom attribute writer method with validation
540
540
  # @param [Object] total_timeout Value to be assigned
541
541
  def total_timeout=(total_timeout)
542
- if !total_timeout.nil? && total_timeout < 0.0
543
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
542
+ if !total_timeout.nil? && total_timeout < 0
543
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
544
544
  end
545
545
 
546
546
  @total_timeout = total_timeout
@@ -549,8 +549,8 @@ module PulpPythonClient
549
549
  # Custom attribute writer method with validation
550
550
  # @param [Object] connect_timeout Value to be assigned
551
551
  def connect_timeout=(connect_timeout)
552
- if !connect_timeout.nil? && connect_timeout < 0.0
553
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
552
+ if !connect_timeout.nil? && connect_timeout < 0
553
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
554
554
  end
555
555
 
556
556
  @connect_timeout = connect_timeout
@@ -559,8 +559,8 @@ module PulpPythonClient
559
559
  # Custom attribute writer method with validation
560
560
  # @param [Object] sock_connect_timeout Value to be assigned
561
561
  def sock_connect_timeout=(sock_connect_timeout)
562
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
563
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
562
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
563
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
564
564
  end
565
565
 
566
566
  @sock_connect_timeout = sock_connect_timeout
@@ -569,8 +569,8 @@ module PulpPythonClient
569
569
  # Custom attribute writer method with validation
570
570
  # @param [Object] sock_read_timeout Value to be assigned
571
571
  def sock_read_timeout=(sock_read_timeout)
572
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
573
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
572
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
573
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
574
574
  end
575
575
 
576
576
  @sock_read_timeout = sock_read_timeout
@@ -323,20 +323,20 @@ module PulpPythonClient
323
323
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
324
324
  end
325
325
 
326
- if !@total_timeout.nil? && @total_timeout < 0.0
327
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
326
+ if !@total_timeout.nil? && @total_timeout < 0
327
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
328
328
  end
329
329
 
330
- if !@connect_timeout.nil? && @connect_timeout < 0.0
331
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
330
+ if !@connect_timeout.nil? && @connect_timeout < 0
331
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
332
332
  end
333
333
 
334
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
335
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
334
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
335
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
336
336
  end
337
337
 
338
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
339
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
338
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
339
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
340
340
  end
341
341
 
342
342
  invalid_properties
@@ -348,10 +348,10 @@ module PulpPythonClient
348
348
  return false if @name.nil?
349
349
  return false if @url.nil?
350
350
  return false if !@download_concurrency.nil? && @download_concurrency < 1
351
- return false if !@total_timeout.nil? && @total_timeout < 0.0
352
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
353
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
354
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
351
+ return false if !@total_timeout.nil? && @total_timeout < 0
352
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
353
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
354
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
355
355
  true
356
356
  end
357
357
 
@@ -368,8 +368,8 @@ module PulpPythonClient
368
368
  # Custom attribute writer method with validation
369
369
  # @param [Object] total_timeout Value to be assigned
370
370
  def total_timeout=(total_timeout)
371
- if !total_timeout.nil? && total_timeout < 0.0
372
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
371
+ if !total_timeout.nil? && total_timeout < 0
372
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
373
373
  end
374
374
 
375
375
  @total_timeout = total_timeout
@@ -378,8 +378,8 @@ module PulpPythonClient
378
378
  # Custom attribute writer method with validation
379
379
  # @param [Object] connect_timeout Value to be assigned
380
380
  def connect_timeout=(connect_timeout)
381
- if !connect_timeout.nil? && connect_timeout < 0.0
382
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
381
+ if !connect_timeout.nil? && connect_timeout < 0
382
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
383
383
  end
384
384
 
385
385
  @connect_timeout = connect_timeout
@@ -388,8 +388,8 @@ module PulpPythonClient
388
388
  # Custom attribute writer method with validation
389
389
  # @param [Object] sock_connect_timeout Value to be assigned
390
390
  def sock_connect_timeout=(sock_connect_timeout)
391
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
392
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
391
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
392
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
393
393
  end
394
394
 
395
395
  @sock_connect_timeout = sock_connect_timeout
@@ -398,8 +398,8 @@ module PulpPythonClient
398
398
  # Custom attribute writer method with validation
399
399
  # @param [Object] sock_read_timeout Value to be assigned
400
400
  def sock_read_timeout=(sock_read_timeout)
401
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
402
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
401
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
402
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
403
403
  end
404
404
 
405
405
  @sock_read_timeout = sock_read_timeout
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpPythonClient
14
- VERSION = '3.12.1'
14
+ VERSION = '3.12.2'
15
15
  end
@@ -41,6 +41,7 @@ describe 'ContentPackagesApi' do
41
41
  # @option opts [String] :artifact Artifact file representing the physical content
42
42
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
43
43
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
44
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
44
45
  # @option opts [String] :sha256 The SHA256 digest of this package.
45
46
  # @option opts [String] :summary A one-line summary of what the package does.
46
47
  # @option opts [String] :description A longer description of the package that can run to several paragraphs.
@@ -18,7 +18,7 @@ describe PulpPythonClient::Configuration do
18
18
  before(:each) do
19
19
  # uncomment below to setup host and base_path
20
20
  # require 'URI'
21
- # uri = URI.parse("http://pulp")
21
+ # uri = URI.parse("http://localhost:24817")
22
22
  # PulpPythonClient.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
@@ -28,14 +28,14 @@ describe PulpPythonClient::Configuration do
28
28
  describe '#base_url' do
29
29
  it 'should have the default value' do
30
30
  # uncomment below to test default value of the base path
31
- # expect(config.base_url).to eq("http://pulp")
31
+ # expect(config.base_url).to eq("http://localhost:24817")
32
32
  end
33
33
 
34
34
  it 'should remove trailing slashes' do
35
35
  [nil, '', '/', '//'].each do |base_path|
36
36
  config.base_path = base_path
37
37
  # uncomment below to test trailing slashes
38
- # expect(config.base_url).to eq("http://pulp")
38
+ # expect(config.base_url).to eq("http://localhost:24817")
39
39
  end
40
40
  end
41
41
  end
@@ -68,6 +68,12 @@ describe 'PythonPythonDistributionResponse' do
68
68
  end
69
69
  end
70
70
 
71
+ describe 'test attribute "no_content_change_since"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
71
77
  describe 'test attribute "hidden"' do
72
78
  it 'should work' do
73
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -62,6 +62,12 @@ describe 'PythonPythonPackageContent' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "file_url"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
65
71
  describe 'test attribute "sha256"' do
66
72
  it 'should work' do
67
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_python_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.12.1
4
+ version: 3.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-27 00:00:00.000000000 Z
11
+ date: 2024-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -34,42 +34,42 @@ dependencies:
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: 2.1.0
40
37
  - - "~>"
41
38
  - !ruby/object:Gem::Version
42
39
  version: '2.1'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.1.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 2.1.0
50
47
  - - "~>"
51
48
  - !ruby/object:Gem::Version
52
49
  version: '2.1'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 2.1.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rspec
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: 3.6.0
60
57
  - - "~>"
61
58
  - !ruby/object:Gem::Version
62
59
  version: '3.6'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 3.6.0
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: 3.6.0
70
67
  - - "~>"
71
68
  - !ruby/object:Gem::Version
72
69
  version: '3.6'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 3.6.0
73
73
  description: Fetch, Upload, Organize, and Distribute Software Packages
74
74
  email:
75
75
  - pulp-list@redhat.com
@@ -264,63 +264,63 @@ required_rubygems_version: !ruby/object:Gem::Requirement
264
264
  - !ruby/object:Gem::Version
265
265
  version: '0'
266
266
  requirements: []
267
- rubygems_version: 3.0.3.1
267
+ rubygems_version: 3.3.5
268
268
  signing_key:
269
269
  specification_version: 4
270
270
  summary: Pulp 3 API Ruby Gem
271
271
  test_files:
272
- - spec/api/repositories_python_versions_api_spec.rb
273
- - spec/api/publications_pypi_api_spec.rb
274
- - spec/api/remotes_python_api_spec.rb
272
+ - spec/api/repositories_python_api_spec.rb
273
+ - spec/api/distributions_pypi_api_spec.rb
275
274
  - spec/api/pypi_legacy_api_spec.rb
276
- - spec/api/content_packages_api_spec.rb
277
- - spec/api/pypi_api_spec.rb
278
275
  - spec/api/pypi_simple_api_spec.rb
279
- - spec/api/distributions_pypi_api_spec.rb
280
- - spec/api/repositories_python_api_spec.rb
276
+ - spec/api/publications_pypi_api_spec.rb
277
+ - spec/api/pypi_api_spec.rb
278
+ - spec/api/repositories_python_versions_api_spec.rb
279
+ - spec/api/content_packages_api_spec.rb
281
280
  - spec/api/pypi_metadata_api_spec.rb
281
+ - spec/api/remotes_python_api_spec.rb
282
282
  - spec/api_client_spec.rb
283
283
  - spec/configuration_spec.rb
284
- - spec/models/python_python_publication_response_spec.rb
285
- - spec/models/paginatedpython_python_package_content_response_list_spec.rb
286
- - spec/models/patchedpython_python_distribution_spec.rb
287
- - spec/models/object_roles_response_spec.rb
288
- - spec/models/patchedpython_python_repository_spec.rb
284
+ - spec/models/python_python_remote_response_hidden_fields_spec.rb
285
+ - spec/models/nested_role_spec.rb
286
+ - spec/models/repair_spec.rb
287
+ - spec/models/python_python_remote_spec.rb
288
+ - spec/models/content_summary_response_spec.rb
289
+ - spec/models/exclude_platforms_enum_spec.rb
289
290
  - spec/models/python_python_remote_response_spec.rb
290
- - spec/models/unset_label_response_spec.rb
291
+ - spec/models/paginatedpython_python_publication_response_list_spec.rb
292
+ - spec/models/paginated_repository_version_response_list_spec.rb
291
293
  - spec/models/set_label_response_spec.rb
292
- - spec/models/repository_sync_url_spec.rb
293
- - spec/models/python_python_repository_response_spec.rb
294
- - spec/models/python_python_distribution_spec.rb
294
+ - spec/models/object_roles_response_spec.rb
295
+ - spec/models/nested_role_response_spec.rb
296
+ - spec/models/policy_enum_spec.rb
297
+ - spec/models/repository_version_response_spec.rb
298
+ - spec/models/unset_label_spec.rb
295
299
  - spec/models/my_permissions_response_spec.rb
300
+ - spec/models/paginatedpython_python_remote_response_list_spec.rb
301
+ - spec/models/python_python_distribution_response_spec.rb
302
+ - spec/models/repository_sync_url_spec.rb
303
+ - spec/models/summary_response_spec.rb
304
+ - spec/models/package_types_enum_spec.rb
305
+ - spec/models/unset_label_response_spec.rb
306
+ - spec/models/python_python_repository_spec.rb
307
+ - spec/models/paginatedpython_python_package_content_response_list_spec.rb
308
+ - spec/models/python_bander_remote_spec.rb
309
+ - spec/models/package_upload_task_response_spec.rb
310
+ - spec/models/async_operation_response_spec.rb
296
311
  - spec/models/python_python_package_content_response_spec.rb
297
312
  - spec/models/paginatedpython_python_repository_response_list_spec.rb
298
- - spec/models/content_summary_response_spec.rb
313
+ - spec/models/patchedpython_python_repository_spec.rb
314
+ - spec/models/patchedpython_python_remote_spec.rb
299
315
  - spec/models/python_python_package_content_spec.rb
316
+ - spec/models/paginatedpython_python_distribution_response_list_spec.rb
300
317
  - spec/models/python_python_publication_spec.rb
301
- - spec/models/paginatedpython_python_remote_response_list_spec.rb
302
- - spec/models/python_python_remote_response_hidden_fields_spec.rb
318
+ - spec/models/python_python_publication_response_spec.rb
319
+ - spec/models/package_upload_spec.rb
303
320
  - spec/models/package_metadata_response_spec.rb
304
- - spec/models/repair_spec.rb
305
321
  - spec/models/repository_add_remove_content_spec.rb
306
- - spec/models/policy_enum_spec.rb
307
- - spec/models/paginatedpython_python_distribution_response_list_spec.rb
308
- - spec/models/repository_version_response_spec.rb
309
- - spec/models/python_bander_remote_spec.rb
310
- - spec/models/python_python_repository_spec.rb
311
- - spec/models/async_operation_response_spec.rb
312
- - spec/models/paginated_repository_version_response_list_spec.rb
313
- - spec/models/summary_response_spec.rb
314
- - spec/models/nested_role_response_spec.rb
322
+ - spec/models/python_python_distribution_spec.rb
323
+ - spec/models/patchedpython_python_distribution_spec.rb
315
324
  - spec/models/set_label_spec.rb
316
- - spec/models/python_python_remote_spec.rb
317
- - spec/models/nested_role_spec.rb
318
- - spec/models/exclude_platforms_enum_spec.rb
319
- - spec/models/package_upload_spec.rb
320
- - spec/models/python_python_distribution_response_spec.rb
321
- - spec/models/package_types_enum_spec.rb
322
- - spec/models/patchedpython_python_remote_spec.rb
323
- - spec/models/paginatedpython_python_publication_response_list_spec.rb
324
- - spec/models/unset_label_spec.rb
325
- - spec/models/package_upload_task_response_spec.rb
325
+ - spec/models/python_python_repository_response_spec.rb
326
326
  - spec/spec_helper.rb