pulp_python_client 3.28.1 → 3.29.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.
- checksums.yaml +4 -4
- data/README.md +11 -4
- data/docs/PaginatedpythonPythonBlocklistEntryResponseList.md +24 -0
- data/docs/PythonPythonBlocklistEntry.md +22 -0
- data/docs/PythonPythonBlocklistEntryResponse.md +34 -0
- data/docs/PythonPythonRepositoryResponse.md +3 -1
- data/docs/RepositoriesPythonBlocklistEntriesApi.md +320 -0
- data/lib/pulp_python_client/api/repositories_python_blocklist_entries_api.rb +313 -0
- data/lib/pulp_python_client/models/paginatedpython_python_blocklist_entry_response_list.rb +257 -0
- data/lib/pulp_python_client/models/python_python_blocklist_entry.rb +284 -0
- data/lib/pulp_python_client/models/python_python_blocklist_entry_response.rb +299 -0
- data/lib/pulp_python_client/models/python_python_repository_response.rb +14 -4
- data/lib/pulp_python_client/version.rb +1 -1
- data/lib/pulp_python_client.rb +4 -0
- data/spec/api/repositories_python_blocklist_entries_api_spec.rb +94 -0
- data/spec/models/paginatedpython_python_blocklist_entry_response_list_spec.rb +54 -0
- data/spec/models/python_python_blocklist_entry_response_spec.rb +84 -0
- data/spec/models/python_python_blocklist_entry_spec.rb +48 -0
- data/spec/models/python_python_repository_response_spec.rb +6 -0
- metadata +62 -46
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e584db6cc4b813b0f39f572e15d5cf07e71a6e237b71482524e428dc39cf54c6
|
|
4
|
+
data.tar.gz: f9cbd5cebf16ba621c521ad9769c8d77024517bd6f9bbddf84917456857709ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f851302e96e6a49a293116f090168b1bd7f8f288c1176558b0120b8b20f0a4cce1667f4f6bf8412951cb4cc7c5e007c3e7d6eb6c179df52fa33f3ad13b63af07
|
|
7
|
+
data.tar.gz: f8be33bfca1b30a47ea19db0659166337f3867f9f7d07478bb5161859cc2c0cefd1980757f698918e8b160eb4be2e9a24493e29fc612300287b8df40836f0be7
|
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.
|
|
10
|
+
- Package version: 3.29.0
|
|
11
11
|
- Generator version: 7.10.0
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
@@ -25,16 +25,16 @@ gem build pulp_python_client.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./pulp_python_client-3.
|
|
28
|
+
gem install ./pulp_python_client-3.29.0.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./pulp_python_client-3.
|
|
31
|
+
(for development, run `gem install --dev ./pulp_python_client-3.29.0.gem` to install the development dependencies)
|
|
32
32
|
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
34
34
|
|
|
35
35
|
Finally add this to the Gemfile:
|
|
36
36
|
|
|
37
|
-
gem 'pulp_python_client', '~> 3.
|
|
37
|
+
gem 'pulp_python_client', '~> 3.29.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
|
@@ -190,6 +190,10 @@ Class | Method | HTTP request | Description
|
|
|
190
190
|
*PulpPythonClient::RepositoriesPythonApi* | [**sync**](docs/RepositoriesPythonApi.md#sync) | **POST** {python_python_repository_href}sync/ | Sync from remote
|
|
191
191
|
*PulpPythonClient::RepositoriesPythonApi* | [**unset_label**](docs/RepositoriesPythonApi.md#unset_label) | **POST** {python_python_repository_href}unset_label/ | Unset a label
|
|
192
192
|
*PulpPythonClient::RepositoriesPythonApi* | [**update**](docs/RepositoriesPythonApi.md#update) | **PUT** {python_python_repository_href} | Update a python repository
|
|
193
|
+
*PulpPythonClient::RepositoriesPythonBlocklistEntriesApi* | [**create**](docs/RepositoriesPythonBlocklistEntriesApi.md#create) | **POST** {python_python_repository_href}blocklist_entries/ | Create a python blocklist entry
|
|
194
|
+
*PulpPythonClient::RepositoriesPythonBlocklistEntriesApi* | [**delete**](docs/RepositoriesPythonBlocklistEntriesApi.md#delete) | **DELETE** {python_python_python_blocklist_entry_href} | Delete a python blocklist entry
|
|
195
|
+
*PulpPythonClient::RepositoriesPythonBlocklistEntriesApi* | [**list**](docs/RepositoriesPythonBlocklistEntriesApi.md#list) | **GET** {python_python_repository_href}blocklist_entries/ | List python blocklist entrys
|
|
196
|
+
*PulpPythonClient::RepositoriesPythonBlocklistEntriesApi* | [**read**](docs/RepositoriesPythonBlocklistEntriesApi.md#read) | **GET** {python_python_python_blocklist_entry_href} | Inspect a python blocklist entry
|
|
193
197
|
*PulpPythonClient::RepositoriesPythonVersionsApi* | [**delete**](docs/RepositoriesPythonVersionsApi.md#delete) | **DELETE** {python_python_repository_version_href} | Delete a repository version
|
|
194
198
|
*PulpPythonClient::RepositoriesPythonVersionsApi* | [**list**](docs/RepositoriesPythonVersionsApi.md#list) | **GET** {python_python_repository_href}versions/ | List repository versions
|
|
195
199
|
*PulpPythonClient::RepositoriesPythonVersionsApi* | [**read**](docs/RepositoriesPythonVersionsApi.md#read) | **GET** {python_python_repository_version_href} | Inspect a repository version
|
|
@@ -213,6 +217,7 @@ Class | Method | HTTP request | Description
|
|
|
213
217
|
- [PulpPythonClient::PackageUploadTaskResponse](docs/PackageUploadTaskResponse.md)
|
|
214
218
|
- [PulpPythonClient::PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
|
|
215
219
|
- [PulpPythonClient::PaginatedpythonPackageProvenanceResponseList](docs/PaginatedpythonPackageProvenanceResponseList.md)
|
|
220
|
+
- [PulpPythonClient::PaginatedpythonPythonBlocklistEntryResponseList](docs/PaginatedpythonPythonBlocklistEntryResponseList.md)
|
|
216
221
|
- [PulpPythonClient::PaginatedpythonPythonDistributionResponseList](docs/PaginatedpythonPythonDistributionResponseList.md)
|
|
217
222
|
- [PulpPythonClient::PaginatedpythonPythonPackageContentResponseList](docs/PaginatedpythonPythonPackageContentResponseList.md)
|
|
218
223
|
- [PulpPythonClient::PaginatedpythonPythonPublicationResponseList](docs/PaginatedpythonPythonPublicationResponseList.md)
|
|
@@ -224,6 +229,8 @@ Class | Method | HTTP request | Description
|
|
|
224
229
|
- [PulpPythonClient::PolicyEnum](docs/PolicyEnum.md)
|
|
225
230
|
- [PulpPythonClient::ProtocolVersionEnum](docs/ProtocolVersionEnum.md)
|
|
226
231
|
- [PulpPythonClient::PythonPackageProvenanceResponse](docs/PythonPackageProvenanceResponse.md)
|
|
232
|
+
- [PulpPythonClient::PythonPythonBlocklistEntry](docs/PythonPythonBlocklistEntry.md)
|
|
233
|
+
- [PulpPythonClient::PythonPythonBlocklistEntryResponse](docs/PythonPythonBlocklistEntryResponse.md)
|
|
227
234
|
- [PulpPythonClient::PythonPythonDistribution](docs/PythonPythonDistribution.md)
|
|
228
235
|
- [PulpPythonClient::PythonPythonDistributionResponse](docs/PythonPythonDistributionResponse.md)
|
|
229
236
|
- [PulpPythonClient::PythonPythonPackageContentResponse](docs/PythonPythonPackageContentResponse.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PulpPythonClient::PaginatedpythonPythonBlocklistEntryResponseList
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **count** | **Integer** | | |
|
|
8
|
+
| **_next** | **String** | | [optional] |
|
|
9
|
+
| **previous** | **String** | | [optional] |
|
|
10
|
+
| **results** | [**Array<PythonPythonBlocklistEntryResponse>**](PythonPythonBlocklistEntryResponse.md) | | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'pulp_python_client'
|
|
16
|
+
|
|
17
|
+
instance = PulpPythonClient::PaginatedpythonPythonBlocklistEntryResponseList.new(
|
|
18
|
+
count: 123,
|
|
19
|
+
_next: http://api.example.org/accounts/?offset=400&limit=100,
|
|
20
|
+
previous: http://api.example.org/accounts/?offset=200&limit=100,
|
|
21
|
+
results: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PulpPythonClient::PythonPythonBlocklistEntry
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | Package name to block (for all versions). Compared after PEP 503 normalization. Required when 'filename' is not provided. | [optional] |
|
|
8
|
+
| **version** | **String** | Exact version string to block (e.g. '1.0'). Only used when 'name' is set. | [optional] |
|
|
9
|
+
| **filename** | **String** | Exact filename to block. Required when 'name' is not provided. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'pulp_python_client'
|
|
15
|
+
|
|
16
|
+
instance = PulpPythonClient::PythonPythonBlocklistEntry.new(
|
|
17
|
+
name: null,
|
|
18
|
+
version: null,
|
|
19
|
+
filename: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# PulpPythonClient::PythonPythonBlocklistEntryResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **pulp_href** | **String** | The URL of this blocklist entry. | [optional][readonly] |
|
|
8
|
+
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
|
9
|
+
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
|
10
|
+
| **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
|
|
11
|
+
| **repository** | **String** | Repository this blocklist entry belongs to. | [optional][readonly] |
|
|
12
|
+
| **name** | **String** | Package name to block (for all versions). Compared after PEP 503 normalization. Required when 'filename' is not provided. | [optional] |
|
|
13
|
+
| **version** | **String** | Exact version string to block (e.g. '1.0'). Only used when 'name' is set. | [optional] |
|
|
14
|
+
| **filename** | **String** | Exact filename to block. Required when 'name' is not provided. | [optional] |
|
|
15
|
+
| **added_by** | **String** | PRN of the user who added this blocklist entry. | [optional][readonly] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'pulp_python_client'
|
|
21
|
+
|
|
22
|
+
instance = PulpPythonClient::PythonPythonBlocklistEntryResponse.new(
|
|
23
|
+
pulp_href: null,
|
|
24
|
+
prn: null,
|
|
25
|
+
pulp_created: null,
|
|
26
|
+
pulp_last_updated: null,
|
|
27
|
+
repository: null,
|
|
28
|
+
name: null,
|
|
29
|
+
version: null,
|
|
30
|
+
filename: null,
|
|
31
|
+
added_by: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
| **remote** | **String** | An optional remote to use by default when syncing. | [optional] |
|
|
19
19
|
| **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. [Deprecated] | [optional][default to false] |
|
|
20
20
|
| **allow_package_substitution** | **Boolean** | Whether to allow package substitution (replacing existing packages with packages that have the same filename but a different checksum). When False, any new repository version that would cause such a substitution will be rejected. This applies to all repository version creation paths including uploads, modify, and sync. When True (the default), package substitution is allowed. | [optional][default to true] |
|
|
21
|
+
| **blocklist_entries_href** | **String** | URL to the blocklist entries for this repository. | [optional][readonly] |
|
|
21
22
|
|
|
22
23
|
## Example
|
|
23
24
|
|
|
@@ -38,7 +39,8 @@ instance = PulpPythonClient::PythonPythonRepositoryResponse.new(
|
|
|
38
39
|
retain_checkpoints: null,
|
|
39
40
|
remote: null,
|
|
40
41
|
autopublish: null,
|
|
41
|
-
allow_package_substitution: null
|
|
42
|
+
allow_package_substitution: null,
|
|
43
|
+
blocklist_entries_href: null
|
|
42
44
|
)
|
|
43
45
|
```
|
|
44
46
|
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
# PulpPythonClient::RepositoriesPythonBlocklistEntriesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create**](RepositoriesPythonBlocklistEntriesApi.md#create) | **POST** {python_python_repository_href}blocklist_entries/ | Create a python blocklist entry |
|
|
8
|
+
| [**delete**](RepositoriesPythonBlocklistEntriesApi.md#delete) | **DELETE** {python_python_python_blocklist_entry_href} | Delete a python blocklist entry |
|
|
9
|
+
| [**list**](RepositoriesPythonBlocklistEntriesApi.md#list) | **GET** {python_python_repository_href}blocklist_entries/ | List python blocklist entrys |
|
|
10
|
+
| [**read**](RepositoriesPythonBlocklistEntriesApi.md#read) | **GET** {python_python_python_blocklist_entry_href} | Inspect a python blocklist entry |
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## create
|
|
14
|
+
|
|
15
|
+
> <PythonPythonBlocklistEntryResponse> create(python_python_repository_href, python_python_blocklist_entry, opts)
|
|
16
|
+
|
|
17
|
+
Create a python blocklist entry
|
|
18
|
+
|
|
19
|
+
ViewSet for managing blocklist entries on a PythonRepository. Blocklist entries prevent packages from being added to the repository. Entries can match by package `name` (all versions), package `name` + `version`, or exact `filename`. Exactly one of `name` or `filename` must be provided.
|
|
20
|
+
|
|
21
|
+
### Examples
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require 'time'
|
|
25
|
+
require 'pulp_python_client'
|
|
26
|
+
# setup authorization
|
|
27
|
+
PulpPythonClient.configure do |config|
|
|
28
|
+
# Configure HTTP basic authorization: basicAuth
|
|
29
|
+
config.username = 'YOUR USERNAME'
|
|
30
|
+
config.password = 'YOUR PASSWORD'
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
api_instance = PulpPythonClient::RepositoriesPythonBlocklistEntriesApi.new
|
|
34
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
35
|
+
python_python_blocklist_entry = PulpPythonClient::PythonPythonBlocklistEntry.new # PythonPythonBlocklistEntry |
|
|
36
|
+
opts = {
|
|
37
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
begin
|
|
41
|
+
# Create a python blocklist entry
|
|
42
|
+
result = api_instance.create(python_python_repository_href, python_python_blocklist_entry, opts)
|
|
43
|
+
p result
|
|
44
|
+
rescue PulpPythonClient::ApiError => e
|
|
45
|
+
puts "Error when calling RepositoriesPythonBlocklistEntriesApi->create: #{e}"
|
|
46
|
+
end
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
#### Using the create_with_http_info variant
|
|
50
|
+
|
|
51
|
+
This returns an Array which contains the response data, status code and headers.
|
|
52
|
+
|
|
53
|
+
> <Array(<PythonPythonBlocklistEntryResponse>, Integer, Hash)> create_with_http_info(python_python_repository_href, python_python_blocklist_entry, opts)
|
|
54
|
+
|
|
55
|
+
```ruby
|
|
56
|
+
begin
|
|
57
|
+
# Create a python blocklist entry
|
|
58
|
+
data, status_code, headers = api_instance.create_with_http_info(python_python_repository_href, python_python_blocklist_entry, opts)
|
|
59
|
+
p status_code # => 2xx
|
|
60
|
+
p headers # => { ... }
|
|
61
|
+
p data # => <PythonPythonBlocklistEntryResponse>
|
|
62
|
+
rescue PulpPythonClient::ApiError => e
|
|
63
|
+
puts "Error when calling RepositoriesPythonBlocklistEntriesApi->create_with_http_info: #{e}"
|
|
64
|
+
end
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Parameters
|
|
68
|
+
|
|
69
|
+
| Name | Type | Description | Notes |
|
|
70
|
+
| ---- | ---- | ----------- | ----- |
|
|
71
|
+
| **python_python_repository_href** | **String** | | |
|
|
72
|
+
| **python_python_blocklist_entry** | [**PythonPythonBlocklistEntry**](PythonPythonBlocklistEntry.md) | | |
|
|
73
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
74
|
+
|
|
75
|
+
### Return type
|
|
76
|
+
|
|
77
|
+
[**PythonPythonBlocklistEntryResponse**](PythonPythonBlocklistEntryResponse.md)
|
|
78
|
+
|
|
79
|
+
### Authorization
|
|
80
|
+
|
|
81
|
+
[basicAuth](../README.md#basicAuth)
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
86
|
+
- **Accept**: application/json
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
## delete
|
|
90
|
+
|
|
91
|
+
> delete(python_python_python_blocklist_entry_href, opts)
|
|
92
|
+
|
|
93
|
+
Delete a python blocklist entry
|
|
94
|
+
|
|
95
|
+
ViewSet for managing blocklist entries on a PythonRepository. Blocklist entries prevent packages from being added to the repository. Entries can match by package `name` (all versions), package `name` + `version`, or exact `filename`. Exactly one of `name` or `filename` must be provided.
|
|
96
|
+
|
|
97
|
+
### Examples
|
|
98
|
+
|
|
99
|
+
```ruby
|
|
100
|
+
require 'time'
|
|
101
|
+
require 'pulp_python_client'
|
|
102
|
+
# setup authorization
|
|
103
|
+
PulpPythonClient.configure do |config|
|
|
104
|
+
# Configure HTTP basic authorization: basicAuth
|
|
105
|
+
config.username = 'YOUR USERNAME'
|
|
106
|
+
config.password = 'YOUR PASSWORD'
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
api_instance = PulpPythonClient::RepositoriesPythonBlocklistEntriesApi.new
|
|
110
|
+
python_python_python_blocklist_entry_href = 'python_python_python_blocklist_entry_href_example' # String |
|
|
111
|
+
opts = {
|
|
112
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
begin
|
|
116
|
+
# Delete a python blocklist entry
|
|
117
|
+
api_instance.delete(python_python_python_blocklist_entry_href, opts)
|
|
118
|
+
rescue PulpPythonClient::ApiError => e
|
|
119
|
+
puts "Error when calling RepositoriesPythonBlocklistEntriesApi->delete: #{e}"
|
|
120
|
+
end
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
#### Using the delete_with_http_info variant
|
|
124
|
+
|
|
125
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
126
|
+
|
|
127
|
+
> <Array(nil, Integer, Hash)> delete_with_http_info(python_python_python_blocklist_entry_href, opts)
|
|
128
|
+
|
|
129
|
+
```ruby
|
|
130
|
+
begin
|
|
131
|
+
# Delete a python blocklist entry
|
|
132
|
+
data, status_code, headers = api_instance.delete_with_http_info(python_python_python_blocklist_entry_href, opts)
|
|
133
|
+
p status_code # => 2xx
|
|
134
|
+
p headers # => { ... }
|
|
135
|
+
p data # => nil
|
|
136
|
+
rescue PulpPythonClient::ApiError => e
|
|
137
|
+
puts "Error when calling RepositoriesPythonBlocklistEntriesApi->delete_with_http_info: #{e}"
|
|
138
|
+
end
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Parameters
|
|
142
|
+
|
|
143
|
+
| Name | Type | Description | Notes |
|
|
144
|
+
| ---- | ---- | ----------- | ----- |
|
|
145
|
+
| **python_python_python_blocklist_entry_href** | **String** | | |
|
|
146
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
147
|
+
|
|
148
|
+
### Return type
|
|
149
|
+
|
|
150
|
+
nil (empty response body)
|
|
151
|
+
|
|
152
|
+
### Authorization
|
|
153
|
+
|
|
154
|
+
[basicAuth](../README.md#basicAuth)
|
|
155
|
+
|
|
156
|
+
### HTTP request headers
|
|
157
|
+
|
|
158
|
+
- **Content-Type**: Not defined
|
|
159
|
+
- **Accept**: Not defined
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## list
|
|
163
|
+
|
|
164
|
+
> <PaginatedpythonPythonBlocklistEntryResponseList> list(python_python_repository_href, opts)
|
|
165
|
+
|
|
166
|
+
List python blocklist entrys
|
|
167
|
+
|
|
168
|
+
ViewSet for managing blocklist entries on a PythonRepository. Blocklist entries prevent packages from being added to the repository. Entries can match by package `name` (all versions), package `name` + `version`, or exact `filename`. Exactly one of `name` or `filename` must be provided.
|
|
169
|
+
|
|
170
|
+
### Examples
|
|
171
|
+
|
|
172
|
+
```ruby
|
|
173
|
+
require 'time'
|
|
174
|
+
require 'pulp_python_client'
|
|
175
|
+
# setup authorization
|
|
176
|
+
PulpPythonClient.configure do |config|
|
|
177
|
+
# Configure HTTP basic authorization: basicAuth
|
|
178
|
+
config.username = 'YOUR USERNAME'
|
|
179
|
+
config.password = 'YOUR PASSWORD'
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
api_instance = PulpPythonClient::RepositoriesPythonBlocklistEntriesApi.new
|
|
183
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
184
|
+
opts = {
|
|
185
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
186
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
187
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
188
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
|
189
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
begin
|
|
193
|
+
# List python blocklist entrys
|
|
194
|
+
result = api_instance.list(python_python_repository_href, opts)
|
|
195
|
+
p result
|
|
196
|
+
rescue PulpPythonClient::ApiError => e
|
|
197
|
+
puts "Error when calling RepositoriesPythonBlocklistEntriesApi->list: #{e}"
|
|
198
|
+
end
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
#### Using the list_with_http_info variant
|
|
202
|
+
|
|
203
|
+
This returns an Array which contains the response data, status code and headers.
|
|
204
|
+
|
|
205
|
+
> <Array(<PaginatedpythonPythonBlocklistEntryResponseList>, Integer, Hash)> list_with_http_info(python_python_repository_href, opts)
|
|
206
|
+
|
|
207
|
+
```ruby
|
|
208
|
+
begin
|
|
209
|
+
# List python blocklist entrys
|
|
210
|
+
data, status_code, headers = api_instance.list_with_http_info(python_python_repository_href, opts)
|
|
211
|
+
p status_code # => 2xx
|
|
212
|
+
p headers # => { ... }
|
|
213
|
+
p data # => <PaginatedpythonPythonBlocklistEntryResponseList>
|
|
214
|
+
rescue PulpPythonClient::ApiError => e
|
|
215
|
+
puts "Error when calling RepositoriesPythonBlocklistEntriesApi->list_with_http_info: #{e}"
|
|
216
|
+
end
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Parameters
|
|
220
|
+
|
|
221
|
+
| Name | Type | Description | Notes |
|
|
222
|
+
| ---- | ---- | ----------- | ----- |
|
|
223
|
+
| **python_python_repository_href** | **String** | | |
|
|
224
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
225
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
|
226
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
227
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
|
228
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
|
229
|
+
|
|
230
|
+
### Return type
|
|
231
|
+
|
|
232
|
+
[**PaginatedpythonPythonBlocklistEntryResponseList**](PaginatedpythonPythonBlocklistEntryResponseList.md)
|
|
233
|
+
|
|
234
|
+
### Authorization
|
|
235
|
+
|
|
236
|
+
[basicAuth](../README.md#basicAuth)
|
|
237
|
+
|
|
238
|
+
### HTTP request headers
|
|
239
|
+
|
|
240
|
+
- **Content-Type**: Not defined
|
|
241
|
+
- **Accept**: application/json
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
## read
|
|
245
|
+
|
|
246
|
+
> <PythonPythonBlocklistEntryResponse> read(python_python_python_blocklist_entry_href, opts)
|
|
247
|
+
|
|
248
|
+
Inspect a python blocklist entry
|
|
249
|
+
|
|
250
|
+
ViewSet for managing blocklist entries on a PythonRepository. Blocklist entries prevent packages from being added to the repository. Entries can match by package `name` (all versions), package `name` + `version`, or exact `filename`. Exactly one of `name` or `filename` must be provided.
|
|
251
|
+
|
|
252
|
+
### Examples
|
|
253
|
+
|
|
254
|
+
```ruby
|
|
255
|
+
require 'time'
|
|
256
|
+
require 'pulp_python_client'
|
|
257
|
+
# setup authorization
|
|
258
|
+
PulpPythonClient.configure do |config|
|
|
259
|
+
# Configure HTTP basic authorization: basicAuth
|
|
260
|
+
config.username = 'YOUR USERNAME'
|
|
261
|
+
config.password = 'YOUR PASSWORD'
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
api_instance = PulpPythonClient::RepositoriesPythonBlocklistEntriesApi.new
|
|
265
|
+
python_python_python_blocklist_entry_href = 'python_python_python_blocklist_entry_href_example' # String |
|
|
266
|
+
opts = {
|
|
267
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
|
268
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
|
269
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
begin
|
|
273
|
+
# Inspect a python blocklist entry
|
|
274
|
+
result = api_instance.read(python_python_python_blocklist_entry_href, opts)
|
|
275
|
+
p result
|
|
276
|
+
rescue PulpPythonClient::ApiError => e
|
|
277
|
+
puts "Error when calling RepositoriesPythonBlocklistEntriesApi->read: #{e}"
|
|
278
|
+
end
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
#### Using the read_with_http_info variant
|
|
282
|
+
|
|
283
|
+
This returns an Array which contains the response data, status code and headers.
|
|
284
|
+
|
|
285
|
+
> <Array(<PythonPythonBlocklistEntryResponse>, Integer, Hash)> read_with_http_info(python_python_python_blocklist_entry_href, opts)
|
|
286
|
+
|
|
287
|
+
```ruby
|
|
288
|
+
begin
|
|
289
|
+
# Inspect a python blocklist entry
|
|
290
|
+
data, status_code, headers = api_instance.read_with_http_info(python_python_python_blocklist_entry_href, opts)
|
|
291
|
+
p status_code # => 2xx
|
|
292
|
+
p headers # => { ... }
|
|
293
|
+
p data # => <PythonPythonBlocklistEntryResponse>
|
|
294
|
+
rescue PulpPythonClient::ApiError => e
|
|
295
|
+
puts "Error when calling RepositoriesPythonBlocklistEntriesApi->read_with_http_info: #{e}"
|
|
296
|
+
end
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
### Parameters
|
|
300
|
+
|
|
301
|
+
| Name | Type | Description | Notes |
|
|
302
|
+
| ---- | ---- | ----------- | ----- |
|
|
303
|
+
| **python_python_python_blocklist_entry_href** | **String** | | |
|
|
304
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
305
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
|
306
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
|
307
|
+
|
|
308
|
+
### Return type
|
|
309
|
+
|
|
310
|
+
[**PythonPythonBlocklistEntryResponse**](PythonPythonBlocklistEntryResponse.md)
|
|
311
|
+
|
|
312
|
+
### Authorization
|
|
313
|
+
|
|
314
|
+
[basicAuth](../README.md#basicAuth)
|
|
315
|
+
|
|
316
|
+
### HTTP request headers
|
|
317
|
+
|
|
318
|
+
- **Content-Type**: Not defined
|
|
319
|
+
- **Accept**: application/json
|
|
320
|
+
|