pulp_python_client 3.7.1 → 3.7.3

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: 30d462ba8f16773e8d2ee9e4222cc416f51412961a8379085aeae1973904e70a
4
- data.tar.gz: d035ffc4dbc1b11a26e60999823305428348941defe7a0b947e66a11b256465f
3
+ metadata.gz: 33a21bc3a5d7b288012bfe454e52c7736cf01fe9771d740c246d11e39751d365
4
+ data.tar.gz: 475156b10811ea8acaf061e817cc8a6231f660e2a0be383d2c917baa718d2229
5
5
  SHA512:
6
- metadata.gz: a3f1e0465c042a68d0a1aafa0766dc3a90b872a75b469100933dd7731e16b511f5f188b43f1d17701431eb2faf351b0c74548dcc927f54e332780b201197cdcb
7
- data.tar.gz: 34009ea4f6692da0dda3a1f7fd8371eef70369c62d8efece335764598d23de2bd161a8e758d4f73165fef721c6e6a75c5e0fccc0f2c5d01217ef082db5559412
6
+ metadata.gz: 04cf4cc1e593efe4b89234bc3d30e1f642b578e69f9e7ef72d76de1817f78de31cf4605317523b111903a6c99d9875f5826eb81a85861f2a6cc0f22049eff352
7
+ data.tar.gz: 82bae4b60c097948b6e41baa513810836219898728aeb0833a7fba3d9f6a3e480f809ad1a529087fafa547950270fa20fce84e3afa7411f9aa5cb4bcfaad896e
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.7.1
10
+ - Package version: 3.7.3
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.7.1.gem
27
+ gem install ./pulp_python_client-3.7.3.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_python_client-3.7.1.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_python_client-3.7.3.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.7.1'
36
+ gem 'pulp_python_client', '~> 3.7.3'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -154,6 +154,7 @@ opts = {
154
154
  offset: 56, # Integer | The initial index from which to return the results.
155
155
  ordering: ['ordering_example'], # Array<String> | Ordering
156
156
  pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
157
+ with_content: 'with_content_example', # String | Filter distributions based on the content served by them
157
158
  fields: 'fields_example', # String | A list of fields to include in the response.
158
159
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
159
160
  }
@@ -185,6 +186,7 @@ Name | Type | Description | Notes
185
186
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
186
187
  **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering | [optional]
187
188
  **pulp_label_select** | **String**| Filter labels by search string | [optional]
189
+ **with_content** | **String**| Filter distributions based on the content served by them | [optional]
188
190
  **fields** | **String**| A list of fields to include in the response. | [optional]
189
191
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
190
192
 
@@ -152,6 +152,7 @@ opts = {
152
152
  offset: 56, # Integer | The initial index from which to return the results.
153
153
  ordering: ['ordering_example'], # Array<String> | Ordering
154
154
  pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
155
+ remote: 'remote_example', # String | Foreign Key referenced by HREF
155
156
  fields: 'fields_example', # String | A list of fields to include in the response.
156
157
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
157
158
  }
@@ -179,6 +180,7 @@ Name | Type | Description | Notes
179
180
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
180
181
  **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering | [optional]
181
182
  **pulp_label_select** | **String**| Filter labels by search string | [optional]
183
+ **remote** | [**String**](.md)| Foreign Key referenced by HREF | [optional]
182
184
  **fields** | **String**| A list of fields to include in the response. | [optional]
183
185
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
184
186
 
@@ -161,6 +161,7 @@ module PulpPythonClient
161
161
  # @option opts [Integer] :offset The initial index from which to return the results.
162
162
  # @option opts [Array<String>] :ordering Ordering
163
163
  # @option opts [String] :pulp_label_select Filter labels by search string
164
+ # @option opts [String] :with_content Filter distributions based on the content served by them
164
165
  # @option opts [String] :fields A list of fields to include in the response.
165
166
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
166
167
  # @return [PaginatedpythonPythonDistributionResponseList]
@@ -185,6 +186,7 @@ module PulpPythonClient
185
186
  # @option opts [Integer] :offset The initial index from which to return the results.
186
187
  # @option opts [Array<String>] :ordering Ordering
187
188
  # @option opts [String] :pulp_label_select Filter labels by search string
189
+ # @option opts [String] :with_content Filter distributions based on the content served by them
188
190
  # @option opts [String] :fields A list of fields to include in the response.
189
191
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
190
192
  # @return [Array<(PaginatedpythonPythonDistributionResponseList, Integer, Hash)>] PaginatedpythonPythonDistributionResponseList data, response status code and response headers
@@ -214,6 +216,7 @@ module PulpPythonClient
214
216
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
215
217
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
216
218
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
219
+ query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
217
220
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
218
221
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
219
222
 
@@ -157,6 +157,7 @@ module PulpPythonClient
157
157
  # @option opts [Integer] :offset The initial index from which to return the results.
158
158
  # @option opts [Array<String>] :ordering Ordering
159
159
  # @option opts [String] :pulp_label_select Filter labels by search string
160
+ # @option opts [String] :remote Foreign Key referenced by HREF
160
161
  # @option opts [String] :fields A list of fields to include in the response.
161
162
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
162
163
  # @return [PaginatedpythonPythonRepositoryResponseList]
@@ -177,6 +178,7 @@ module PulpPythonClient
177
178
  # @option opts [Integer] :offset The initial index from which to return the results.
178
179
  # @option opts [Array<String>] :ordering Ordering
179
180
  # @option opts [String] :pulp_label_select Filter labels by search string
181
+ # @option opts [String] :remote Foreign Key referenced by HREF
180
182
  # @option opts [String] :fields A list of fields to include in the response.
181
183
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
182
184
  # @return [Array<(PaginatedpythonPythonRepositoryResponseList, Integer, Hash)>] PaginatedpythonPythonRepositoryResponseList data, response status code and response headers
@@ -202,6 +204,7 @@ module PulpPythonClient
202
204
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
203
205
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
204
206
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
207
+ query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
205
208
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
206
209
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
207
210
 
@@ -142,7 +142,7 @@ module PulpPythonClient
142
142
  if @api_client.config.client_side_validation && python_python_repository_href.nil?
143
143
  fail ArgumentError, "Missing the required parameter 'python_python_repository_href' when calling RepositoriesPythonVersionsApi.list"
144
144
  end
145
- allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
145
+ allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-info", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "info", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
146
146
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
147
147
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
148
148
  end
@@ -154,7 +154,7 @@ module PulpPythonClient
154
154
  case value
155
155
  when ::File, ::Tempfile
156
156
  # TODO hardcode to application/octet-stream, need better way to detect content type
157
- data[key] = Faraday::UploadIO.new(value.path, 'application/octet-stream', value.path)
157
+ data[key] = Faraday::FilePart.new(value.path, 'application/octet-stream', value.path)
158
158
  when ::Array, nil
159
159
  # let Faraday handle Array and nil parameters
160
160
  data[key] = value
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpPythonClient
14
- VERSION = '3.7.1'
14
+ VERSION = '3.7.3'
15
15
  end
@@ -21,13 +21,13 @@ Gem::Specification.new do |s|
21
21
  s.platform = Gem::Platform::RUBY
22
22
  s.authors = ["OpenAPI-Generator"]
23
23
  s.email = ["pulp-list@redhat.com"]
24
- s.homepage = "https://openapi-generator.tech"
24
+ s.homepage = "https://github.com/pulp/pulp_python"
25
25
  s.summary = "Pulp 3 API Ruby Gem"
26
26
  s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
27
- s.license = 'GPL-2.0+'
27
+ s.license = 'GPLv2+'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
- s.add_runtime_dependency 'faraday', '~> 0.17', '< 1.9.0'
30
+ s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.0'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
 
33
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
@@ -73,6 +73,7 @@ describe 'DistributionsPypiApi' do
73
73
  # @option opts [Integer] :offset The initial index from which to return the results.
74
74
  # @option opts [Array<String>] :ordering Ordering
75
75
  # @option opts [String] :pulp_label_select Filter labels by search string
76
+ # @option opts [String] :with_content Filter distributions based on the content served by them
76
77
  # @option opts [String] :fields A list of fields to include in the response.
77
78
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
78
79
  # @return [PaginatedpythonPythonDistributionResponseList]
@@ -69,6 +69,7 @@ describe 'RepositoriesPythonApi' do
69
69
  # @option opts [Integer] :offset The initial index from which to return the results.
70
70
  # @option opts [Array<String>] :ordering Ordering
71
71
  # @option opts [String] :pulp_label_select Filter labels by search string
72
+ # @option opts [String] :remote Foreign Key referenced by HREF
72
73
  # @option opts [String] :fields A list of fields to include in the response.
73
74
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
74
75
  # @return [PaginatedpythonPythonRepositoryResponseList]
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_python_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.1
4
+ version: 3.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-29 00:00:00.000000000 Z
11
+ date: 2022-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.17'
19
+ version: 1.0.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 1.9.0
22
+ version: '2.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.17'
29
+ version: 1.0.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 1.9.0
32
+ version: '2.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +123,6 @@ files:
123
123
  - docs/RepositorySyncURL.md
124
124
  - docs/RepositoryVersionResponse.md
125
125
  - docs/SummaryResponse.md
126
- - git_push.sh
127
126
  - lib/pulp_python_client.rb
128
127
  - lib/pulp_python_client/api/content_packages_api.rb
129
128
  - lib/pulp_python_client/api/distributions_pypi_api.rb
@@ -219,9 +218,9 @@ files:
219
218
  - spec/models/repository_version_response_spec.rb
220
219
  - spec/models/summary_response_spec.rb
221
220
  - spec/spec_helper.rb
222
- homepage: https://openapi-generator.tech
221
+ homepage: https://github.com/pulp/pulp_python
223
222
  licenses:
224
- - GPL-2.0+
223
+ - GPLv2+
225
224
  metadata: {}
226
225
  post_install_message:
227
226
  rdoc_options: []
@@ -243,49 +242,49 @@ signing_key:
243
242
  specification_version: 4
244
243
  summary: Pulp 3 API Ruby Gem
245
244
  test_files:
245
+ - spec/api/remotes_python_api_spec.rb
246
+ - spec/api/content_packages_api_spec.rb
246
247
  - spec/api/pypi_simple_api_spec.rb
247
- - spec/api/repositories_python_versions_api_spec.rb
248
248
  - spec/api/publications_pypi_api_spec.rb
249
+ - spec/api/repositories_python_versions_api_spec.rb
250
+ - spec/api/pypi_legacy_api_spec.rb
249
251
  - spec/api/distributions_pypi_api_spec.rb
250
- - spec/api/content_packages_api_spec.rb
251
- - spec/api/pypi_metadata_api_spec.rb
252
252
  - spec/api/pypi_api_spec.rb
253
253
  - spec/api/repositories_python_api_spec.rb
254
- - spec/api/remotes_python_api_spec.rb
255
- - spec/api/pypi_legacy_api_spec.rb
254
+ - spec/api/pypi_metadata_api_spec.rb
256
255
  - spec/api_client_spec.rb
257
256
  - spec/configuration_spec.rb
258
- - spec/models/paginated_repository_version_response_list_spec.rb
257
+ - spec/models/repository_version_response_spec.rb
258
+ - spec/models/package_types_enum_spec.rb
259
259
  - spec/models/summary_response_spec.rb
260
- - spec/models/python_python_remote_response_spec.rb
261
- - spec/models/paginatedpython_python_package_content_response_list_spec.rb
262
- - spec/models/repair_spec.rb
263
- - spec/models/python_python_repository_spec.rb
264
- - spec/models/package_metadata_response_spec.rb
260
+ - spec/models/paginatedpython_python_distribution_response_list_spec.rb
265
261
  - spec/models/python_python_distribution_spec.rb
266
- - spec/models/python_python_package_content_spec.rb
262
+ - spec/models/patchedpython_python_repository_spec.rb
267
263
  - spec/models/python_python_package_content_response_spec.rb
268
- - spec/models/content_summary_response_spec.rb
269
- - spec/models/package_types_enum_spec.rb
264
+ - spec/models/python_python_remote_response_spec.rb
270
265
  - spec/models/python_python_repository_response_spec.rb
271
- - spec/models/repository_add_remove_content_spec.rb
266
+ - spec/models/paginatedpython_python_repository_response_list_spec.rb
267
+ - spec/models/async_operation_response_spec.rb
268
+ - spec/models/python_python_package_content_spec.rb
269
+ - spec/models/paginatedpython_python_publication_response_list_spec.rb
270
+ - spec/models/content_summary_response_spec.rb
271
+ - spec/models/patchedpython_python_distribution_spec.rb
272
272
  - spec/models/policy_enum_spec.rb
273
- - spec/models/package_upload_spec.rb
274
- - spec/models/python_python_publication_response_spec.rb
275
- - spec/models/python_python_distribution_response_spec.rb
276
273
  - spec/models/paginatedpython_python_remote_response_list_spec.rb
274
+ - spec/models/repair_spec.rb
275
+ - spec/models/paginated_repository_version_response_list_spec.rb
276
+ - spec/models/repository_sync_url_spec.rb
277
+ - spec/models/python_python_publication_response_spec.rb
277
278
  - spec/models/python_python_publication_spec.rb
278
- - spec/models/paginatedpython_python_repository_response_list_spec.rb
279
279
  - spec/models/package_upload_task_response_spec.rb
280
- - spec/models/async_operation_response_spec.rb
281
- - spec/models/repository_sync_url_spec.rb
282
- - spec/models/patchedpython_python_distribution_spec.rb
283
- - spec/models/exclude_platforms_enum_spec.rb
284
- - spec/models/paginatedpython_python_publication_response_list_spec.rb
285
- - spec/models/paginatedpython_python_distribution_response_list_spec.rb
286
- - spec/models/repository_version_response_spec.rb
287
280
  - spec/models/python_python_remote_spec.rb
288
- - spec/models/patchedpython_python_repository_spec.rb
289
- - spec/models/patchedpython_python_remote_spec.rb
281
+ - spec/models/paginatedpython_python_package_content_response_list_spec.rb
282
+ - spec/models/package_upload_spec.rb
283
+ - spec/models/python_python_distribution_response_spec.rb
284
+ - spec/models/exclude_platforms_enum_spec.rb
290
285
  - spec/models/python_bander_remote_spec.rb
286
+ - spec/models/python_python_repository_spec.rb
287
+ - spec/models/repository_add_remove_content_spec.rb
288
+ - spec/models/patchedpython_python_remote_spec.rb
289
+ - spec/models/package_metadata_response_spec.rb
291
290
  - spec/spec_helper.rb
data/git_push.sh DELETED
@@ -1,58 +0,0 @@
1
- #!/bin/sh
2
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
- #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
5
-
6
- git_user_id=$1
7
- git_repo_id=$2
8
- release_note=$3
9
- git_host=$4
10
-
11
- if [ "$git_host" = "" ]; then
12
- git_host="github.com"
13
- echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
- fi
15
-
16
- if [ "$git_user_id" = "" ]; then
17
- git_user_id="GIT_USER_ID"
18
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
- fi
20
-
21
- if [ "$git_repo_id" = "" ]; then
22
- git_repo_id="GIT_REPO_ID"
23
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
- fi
25
-
26
- if [ "$release_note" = "" ]; then
27
- release_note="Minor update"
28
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
- fi
30
-
31
- # Initialize the local directory as a Git repository
32
- git init
33
-
34
- # Adds the files in the local repository and stages them for commit.
35
- git add .
36
-
37
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
- git commit -m "$release_note"
39
-
40
- # Sets the new remote
41
- git_remote=`git remote`
42
- if [ "$git_remote" = "" ]; then # git remote not defined
43
-
44
- if [ "$GIT_TOKEN" = "" ]; then
45
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
- git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
- else
48
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
49
- fi
50
-
51
- fi
52
-
53
- git pull origin master
54
-
55
- # Pushes (Forces) the changes in the local repository up to the remote repository
56
- echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
- git push origin master 2>&1 | grep -v 'To https'
58
-