pulpcore_client 3.12.2 → 3.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -4
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/PaginatedPublicationResponseList.md +23 -0
- data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
- data/docs/PublicationResponse.md +23 -0
- data/docs/PublicationsApi.md +90 -0
- data/docs/PulpExport.md +1 -1
- data/docs/RepositoryResponse.md +2 -0
- data/docs/RepositoryVersionResponse.md +27 -0
- data/docs/RepositoryVersionsApi.md +96 -0
- data/docs/WorkerResponse.md +3 -3
- data/lib/pulpcore_client/api/publications_api.rb +120 -0
- data/lib/pulpcore_client/api/repository_versions_api.rb +130 -0
- data/lib/pulpcore_client/models/content_summary_response.rb +246 -0
- data/lib/pulpcore_client/models/paginated_publication_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_repository_version_response_list.rb +237 -0
- data/lib/pulpcore_client/models/publication_response.rb +236 -0
- data/lib/pulpcore_client/models/pulp_export.rb +1 -1
- data/lib/pulpcore_client/models/repository_response.rb +27 -1
- data/lib/pulpcore_client/models/repository_version_response.rb +255 -0
- data/lib/pulpcore_client/models/worker_response.rb +10 -10
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +7 -0
- data/spec/api/publications_api_spec.rb +60 -0
- data/spec/api/repository_versions_api_spec.rb +63 -0
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/paginated_publication_response_list_spec.rb +59 -0
- data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
- data/spec/models/publication_response_spec.rb +59 -0
- data/spec/models/repository_response_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +71 -0
- data/spec/models/worker_response_spec.rb +2 -2
- metadata +96 -68
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0dca746f89fd413e5a3334ea9a463aa0704449df8796a7d18a117b6ca21fe4d
|
4
|
+
data.tar.gz: 2e0ab0cbe3c3e314a40b557728a4e6a65f584cf661e5ffb92ff5757a671ec020
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81c0fb45500bc47cfda2ccee844ec06a81be84eda40b7653f7e1ccd21b0f1f0fa9fdc133a3e15b4e2476d6560f6f0b7468db893458b6e6d6e2b971dab8501af6
|
7
|
+
data.tar.gz: a4c6b35854dee7847d118dffb0afefd94deb1f64d843528c1ced8b9b236a9d09e0109ee3c319a94489cb980270a30aaac0c3d4dbea2d2ad237830aea68b4fb2c
|
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.13.0
|
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 pulpcore_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulpcore_client-3.
|
27
|
+
gem install ./pulpcore_client-3.13.0.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulpcore_client-3.
|
30
|
+
(for development, run `gem install --dev ./pulpcore_client-3.13.0.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 'pulpcore_client', '~> 3.
|
36
|
+
gem 'pulpcore_client', '~> 3.13.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -144,8 +144,10 @@ Class | Method | HTTP request | Description
|
|
144
144
|
*PulpcoreClient::ImportersPulpApi* | [**read**](docs/ImportersPulpApi.md#read) | **GET** {pulp_importer_href} | Inspect a pulp importer
|
145
145
|
*PulpcoreClient::ImportersPulpApi* | [**update**](docs/ImportersPulpApi.md#update) | **PUT** {pulp_importer_href} | Update a pulp importer
|
146
146
|
*PulpcoreClient::OrphansApi* | [**delete**](docs/OrphansApi.md#delete) | **DELETE** /pulp/api/v3/orphans/ | Delete orphans
|
147
|
+
*PulpcoreClient::PublicationsApi* | [**list**](docs/PublicationsApi.md#list) | **GET** /pulp/api/v3/publications/ | List publications
|
147
148
|
*PulpcoreClient::RepairApi* | [**post**](docs/RepairApi.md#post) | **POST** /pulp/api/v3/repair/ | Repair Artifact Storage
|
148
149
|
*PulpcoreClient::RepositoriesApi* | [**list**](docs/RepositoriesApi.md#list) | **GET** /pulp/api/v3/repositories/ | List repositories
|
150
|
+
*PulpcoreClient::RepositoryVersionsApi* | [**list**](docs/RepositoryVersionsApi.md#list) | **GET** /pulp/api/v3/repository_versions/ | List repository versions
|
149
151
|
*PulpcoreClient::SigningServicesApi* | [**list**](docs/SigningServicesApi.md#list) | **GET** /pulp/api/v3/signing-services/ | List signing services
|
150
152
|
*PulpcoreClient::SigningServicesApi* | [**read**](docs/SigningServicesApi.md#read) | **GET** {signing_service_href} | Inspect a signing service
|
151
153
|
*PulpcoreClient::StatusApi* | [**status_read**](docs/StatusApi.md#status_read) | **GET** /pulp/api/v3/status/ | Inspect status of Pulp
|
@@ -177,6 +179,7 @@ Class | Method | HTTP request | Description
|
|
177
179
|
- [PulpcoreClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
|
178
180
|
- [PulpcoreClient::ContentAppStatusResponse](docs/ContentAppStatusResponse.md)
|
179
181
|
- [PulpcoreClient::ContentGuardResponse](docs/ContentGuardResponse.md)
|
182
|
+
- [PulpcoreClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
|
180
183
|
- [PulpcoreClient::DatabaseConnectionResponse](docs/DatabaseConnectionResponse.md)
|
181
184
|
- [PulpcoreClient::EvaluationResponse](docs/EvaluationResponse.md)
|
182
185
|
- [PulpcoreClient::Group](docs/Group.md)
|
@@ -194,10 +197,12 @@ Class | Method | HTTP request | Description
|
|
194
197
|
- [PulpcoreClient::PaginatedImportResponseList](docs/PaginatedImportResponseList.md)
|
195
198
|
- [PulpcoreClient::PaginatedMultipleArtifactContentResponseList](docs/PaginatedMultipleArtifactContentResponseList.md)
|
196
199
|
- [PulpcoreClient::PaginatedPermissionResponseList](docs/PaginatedPermissionResponseList.md)
|
200
|
+
- [PulpcoreClient::PaginatedPublicationResponseList](docs/PaginatedPublicationResponseList.md)
|
197
201
|
- [PulpcoreClient::PaginatedPulpExportResponseList](docs/PaginatedPulpExportResponseList.md)
|
198
202
|
- [PulpcoreClient::PaginatedPulpExporterResponseList](docs/PaginatedPulpExporterResponseList.md)
|
199
203
|
- [PulpcoreClient::PaginatedPulpImporterResponseList](docs/PaginatedPulpImporterResponseList.md)
|
200
204
|
- [PulpcoreClient::PaginatedRepositoryResponseList](docs/PaginatedRepositoryResponseList.md)
|
205
|
+
- [PulpcoreClient::PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
|
201
206
|
- [PulpcoreClient::PaginatedSigningServiceResponseList](docs/PaginatedSigningServiceResponseList.md)
|
202
207
|
- [PulpcoreClient::PaginatedTaskGroupResponseList](docs/PaginatedTaskGroupResponseList.md)
|
203
208
|
- [PulpcoreClient::PaginatedTaskResponseList](docs/PaginatedTaskResponseList.md)
|
@@ -211,6 +216,7 @@ Class | Method | HTTP request | Description
|
|
211
216
|
- [PulpcoreClient::PatchedTaskCancel](docs/PatchedTaskCancel.md)
|
212
217
|
- [PulpcoreClient::PermissionResponse](docs/PermissionResponse.md)
|
213
218
|
- [PulpcoreClient::ProgressReportResponse](docs/ProgressReportResponse.md)
|
219
|
+
- [PulpcoreClient::PublicationResponse](docs/PublicationResponse.md)
|
214
220
|
- [PulpcoreClient::PulpExport](docs/PulpExport.md)
|
215
221
|
- [PulpcoreClient::PulpExportResponse](docs/PulpExportResponse.md)
|
216
222
|
- [PulpcoreClient::PulpExporter](docs/PulpExporter.md)
|
@@ -222,6 +228,7 @@ Class | Method | HTTP request | Description
|
|
222
228
|
- [PulpcoreClient::PulpImporterResponse](docs/PulpImporterResponse.md)
|
223
229
|
- [PulpcoreClient::RedisConnectionResponse](docs/RedisConnectionResponse.md)
|
224
230
|
- [PulpcoreClient::RepositoryResponse](docs/RepositoryResponse.md)
|
231
|
+
- [PulpcoreClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
|
225
232
|
- [PulpcoreClient::SigningServiceResponse](docs/SigningServiceResponse.md)
|
226
233
|
- [PulpcoreClient::StatusResponse](docs/StatusResponse.md)
|
227
234
|
- [PulpcoreClient::StorageResponse](docs/StorageResponse.md)
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# PulpcoreClient::ContentSummaryResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**added** | **Hash<String, Object>** | |
|
8
|
+
**removed** | **Hash<String, Object>** | |
|
9
|
+
**present** | **Hash<String, Object>** | |
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'PulpcoreClient'
|
15
|
+
|
16
|
+
instance = PulpcoreClient::ContentSummaryResponse.new(added: null,
|
17
|
+
removed: null,
|
18
|
+
present: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpcoreClient::PaginatedPublicationResponseList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | | [optional]
|
8
|
+
**_next** | **String** | | [optional]
|
9
|
+
**previous** | **String** | | [optional]
|
10
|
+
**results** | [**Array<PublicationResponse>**](PublicationResponse.md) | | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpcoreClient'
|
16
|
+
|
17
|
+
instance = PulpcoreClient::PaginatedPublicationResponseList.new(count: 123,
|
18
|
+
_next: http://api.example.org/accounts/?offset=400&limit=100,
|
19
|
+
previous: http://api.example.org/accounts/?offset=200&limit=100,
|
20
|
+
results: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpcoreClient::PaginatedRepositoryVersionResponseList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | | [optional]
|
8
|
+
**_next** | **String** | | [optional]
|
9
|
+
**previous** | **String** | | [optional]
|
10
|
+
**results** | [**Array<RepositoryVersionResponse>**](RepositoryVersionResponse.md) | | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpcoreClient'
|
16
|
+
|
17
|
+
instance = PulpcoreClient::PaginatedRepositoryVersionResponseList.new(count: 123,
|
18
|
+
_next: http://api.example.org/accounts/?offset=400&limit=100,
|
19
|
+
previous: http://api.example.org/accounts/?offset=200&limit=100,
|
20
|
+
results: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpcoreClient::PublicationResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
+
**repository_version** | **String** | | [optional]
|
10
|
+
**repository** | **String** | A URI of the repository to be published. | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpcoreClient'
|
16
|
+
|
17
|
+
instance = PulpcoreClient::PublicationResponse.new(pulp_href: null,
|
18
|
+
pulp_created: null,
|
19
|
+
repository_version: null,
|
20
|
+
repository: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,90 @@
|
|
1
|
+
# PulpcoreClient::PublicationsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list**](PublicationsApi.md#list) | **GET** /pulp/api/v3/publications/ | List publications
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## list
|
12
|
+
|
13
|
+
> PaginatedPublicationResponseList list(opts)
|
14
|
+
|
15
|
+
List publications
|
16
|
+
|
17
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'pulpcore_client'
|
24
|
+
# setup authorization
|
25
|
+
PulpcoreClient.configure do |config|
|
26
|
+
# Configure HTTP basic authorization: basicAuth
|
27
|
+
config.username = 'YOUR USERNAME'
|
28
|
+
config.password = 'YOUR PASSWORD'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = PulpcoreClient::PublicationsApi.new
|
32
|
+
opts = {
|
33
|
+
content: 'content_example', # String | Content Unit referenced by HREF
|
34
|
+
content__in: 'content__in_example', # String | Content Unit referenced by HREF
|
35
|
+
limit: 56, # Integer | Number of results to return per page.
|
36
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
37
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
38
|
+
pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
|
39
|
+
pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value
|
40
|
+
pulp_created__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than or equal to value
|
41
|
+
pulp_created__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than value
|
42
|
+
pulp_created__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than or equal to value
|
43
|
+
pulp_created__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_created is between two comma separated values
|
44
|
+
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
45
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
46
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
47
|
+
}
|
48
|
+
|
49
|
+
begin
|
50
|
+
#List publications
|
51
|
+
result = api_instance.list(opts)
|
52
|
+
p result
|
53
|
+
rescue PulpcoreClient::ApiError => e
|
54
|
+
puts "Exception when calling PublicationsApi->list: #{e}"
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
### Parameters
|
59
|
+
|
60
|
+
|
61
|
+
Name | Type | Description | Notes
|
62
|
+
------------- | ------------- | ------------- | -------------
|
63
|
+
**content** | **String**| Content Unit referenced by HREF | [optional]
|
64
|
+
**content__in** | **String**| Content Unit referenced by HREF | [optional]
|
65
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
66
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
67
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
68
|
+
**pulp_created** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
|
69
|
+
**pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional]
|
70
|
+
**pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional]
|
71
|
+
**pulp_created__lt** | **DateTime**| Filter results where pulp_created is less than value | [optional]
|
72
|
+
**pulp_created__lte** | **DateTime**| Filter results where pulp_created is less than or equal to value | [optional]
|
73
|
+
**pulp_created__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
|
74
|
+
**repository_version** | [**String**](.md)| Repository Version referenced by HREF | [optional]
|
75
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
76
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
77
|
+
|
78
|
+
### Return type
|
79
|
+
|
80
|
+
[**PaginatedPublicationResponseList**](PaginatedPublicationResponseList.md)
|
81
|
+
|
82
|
+
### Authorization
|
83
|
+
|
84
|
+
[basicAuth](../README.md#basicAuth)
|
85
|
+
|
86
|
+
### HTTP request headers
|
87
|
+
|
88
|
+
- **Content-Type**: Not defined
|
89
|
+
- **Accept**: application/json
|
90
|
+
|
data/docs/PulpExport.md
CHANGED
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**full** | **Boolean** | Do a Full (true) or Incremental (false) export. | [optional] [default to true]
|
9
9
|
**dry_run** | **Boolean** | Generate report on what would be exported and disk-space required. | [optional] [default to false]
|
10
10
|
**versions** | **Array<String>** | List of explicit repo-version hrefs to export (replaces current_version). | [optional]
|
11
|
-
**chunk_size** | **String** | Chunk export-tarfile into pieces of chunk_size bytes.Recognizes units of B/KB/MB/GB/TB. | [optional]
|
11
|
+
**chunk_size** | **String** | Chunk export-tarfile into pieces of chunk_size bytes. Recognizes units of B/KB/MB/GB/TB. A chunk has a maximum size of 1TB. | [optional]
|
12
12
|
**start_versions** | **Array<String>** | List of explicit last-exported-repo-version hrefs (replaces last_export). | [optional]
|
13
13
|
|
14
14
|
## Code Sample
|
data/docs/RepositoryResponse.md
CHANGED
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
11
11
|
**latest_version_href** | **String** | | [optional] [readonly]
|
12
12
|
**name** | **String** | A unique name for this repository. |
|
13
13
|
**description** | **String** | An optional description. | [optional]
|
14
|
+
**retained_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
|
14
15
|
**remote** | **String** | | [optional]
|
15
16
|
|
16
17
|
## Code Sample
|
@@ -25,6 +26,7 @@ instance = PulpcoreClient::RepositoryResponse.new(pulp_href: null,
|
|
25
26
|
latest_version_href: null,
|
26
27
|
name: null,
|
27
28
|
description: null,
|
29
|
+
retained_versions: null,
|
28
30
|
remote: null)
|
29
31
|
```
|
30
32
|
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# PulpcoreClient::RepositoryVersionResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
+
**number** | **Integer** | | [optional] [readonly]
|
10
|
+
**repository** | **String** | | [optional] [readonly]
|
11
|
+
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
12
|
+
**content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional] [readonly]
|
13
|
+
|
14
|
+
## Code Sample
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'PulpcoreClient'
|
18
|
+
|
19
|
+
instance = PulpcoreClient::RepositoryVersionResponse.new(pulp_href: null,
|
20
|
+
pulp_created: null,
|
21
|
+
number: null,
|
22
|
+
repository: null,
|
23
|
+
base_version: null,
|
24
|
+
content_summary: null)
|
25
|
+
```
|
26
|
+
|
27
|
+
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# PulpcoreClient::RepositoryVersionsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list**](RepositoryVersionsApi.md#list) | **GET** /pulp/api/v3/repository_versions/ | List repository versions
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## list
|
12
|
+
|
13
|
+
> PaginatedRepositoryVersionResponseList list(opts)
|
14
|
+
|
15
|
+
List repository versions
|
16
|
+
|
17
|
+
### Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'pulpcore_client'
|
22
|
+
# setup authorization
|
23
|
+
PulpcoreClient.configure do |config|
|
24
|
+
# Configure HTTP basic authorization: basicAuth
|
25
|
+
config.username = 'YOUR USERNAME'
|
26
|
+
config.password = 'YOUR PASSWORD'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = PulpcoreClient::RepositoryVersionsApi.new
|
30
|
+
opts = {
|
31
|
+
content: 'content_example', # String | Content Unit referenced by HREF
|
32
|
+
content__in: 'content__in_example', # String | Content Unit referenced by HREF
|
33
|
+
limit: 56, # Integer | Number of results to return per page.
|
34
|
+
number: 56, # Integer |
|
35
|
+
number__gt: 56, # Integer | Filter results where number is greater than value
|
36
|
+
number__gte: 56, # Integer | Filter results where number is greater than or equal to value
|
37
|
+
number__lt: 56, # Integer | Filter results where number is less than value
|
38
|
+
number__lte: 56, # Integer | Filter results where number is less than or equal to value
|
39
|
+
number__range: [56], # Array<Integer> | Filter results where number is between two comma separated values
|
40
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
41
|
+
pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
|
42
|
+
pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value
|
43
|
+
pulp_created__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than or equal to value
|
44
|
+
pulp_created__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than value
|
45
|
+
pulp_created__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than or equal to value
|
46
|
+
pulp_created__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_created is between two comma separated values
|
47
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
48
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
49
|
+
}
|
50
|
+
|
51
|
+
begin
|
52
|
+
#List repository versions
|
53
|
+
result = api_instance.list(opts)
|
54
|
+
p result
|
55
|
+
rescue PulpcoreClient::ApiError => e
|
56
|
+
puts "Exception when calling RepositoryVersionsApi->list: #{e}"
|
57
|
+
end
|
58
|
+
```
|
59
|
+
|
60
|
+
### Parameters
|
61
|
+
|
62
|
+
|
63
|
+
Name | Type | Description | Notes
|
64
|
+
------------- | ------------- | ------------- | -------------
|
65
|
+
**content** | **String**| Content Unit referenced by HREF | [optional]
|
66
|
+
**content__in** | **String**| Content Unit referenced by HREF | [optional]
|
67
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
68
|
+
**number** | **Integer**| | [optional]
|
69
|
+
**number__gt** | **Integer**| Filter results where number is greater than value | [optional]
|
70
|
+
**number__gte** | **Integer**| Filter results where number is greater than or equal to value | [optional]
|
71
|
+
**number__lt** | **Integer**| Filter results where number is less than value | [optional]
|
72
|
+
**number__lte** | **Integer**| Filter results where number is less than or equal to value | [optional]
|
73
|
+
**number__range** | [**Array<Integer>**](Integer.md)| Filter results where number is between two comma separated values | [optional]
|
74
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
75
|
+
**pulp_created** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
|
76
|
+
**pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional]
|
77
|
+
**pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional]
|
78
|
+
**pulp_created__lt** | **DateTime**| Filter results where pulp_created is less than value | [optional]
|
79
|
+
**pulp_created__lte** | **DateTime**| Filter results where pulp_created is less than or equal to value | [optional]
|
80
|
+
**pulp_created__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
|
81
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
82
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
83
|
+
|
84
|
+
### Return type
|
85
|
+
|
86
|
+
[**PaginatedRepositoryVersionResponseList**](PaginatedRepositoryVersionResponseList.md)
|
87
|
+
|
88
|
+
### Authorization
|
89
|
+
|
90
|
+
[basicAuth](../README.md#basicAuth)
|
91
|
+
|
92
|
+
### HTTP request headers
|
93
|
+
|
94
|
+
- **Content-Type**: Not defined
|
95
|
+
- **Accept**: application/json
|
96
|
+
|
data/docs/WorkerResponse.md
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
8
7
|
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
9
|
**name** | **String** | The name of the worker. | [optional] [readonly]
|
10
10
|
**last_heartbeat** | **DateTime** | Timestamp of the last time the worker talked to the service. | [optional] [readonly]
|
11
11
|
|
@@ -14,8 +14,8 @@ Name | Type | Description | Notes
|
|
14
14
|
```ruby
|
15
15
|
require 'PulpcoreClient'
|
16
16
|
|
17
|
-
instance = PulpcoreClient::WorkerResponse.new(
|
18
|
-
|
17
|
+
instance = PulpcoreClient::WorkerResponse.new(pulp_href: null,
|
18
|
+
pulp_created: null,
|
19
19
|
name: null,
|
20
20
|
last_heartbeat: null)
|
21
21
|
```
|
@@ -0,0 +1,120 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpcoreClient
|
16
|
+
class PublicationsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# List publications
|
23
|
+
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
26
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
27
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
28
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
29
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
30
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
31
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
32
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
33
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
34
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
35
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
36
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
37
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
38
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
39
|
+
# @return [PaginatedPublicationResponseList]
|
40
|
+
def list(opts = {})
|
41
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
42
|
+
data
|
43
|
+
end
|
44
|
+
|
45
|
+
# List publications
|
46
|
+
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
49
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
50
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
51
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
52
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
53
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
54
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
55
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
56
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
57
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
58
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
59
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
60
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
61
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
62
|
+
# @return [Array<(PaginatedPublicationResponseList, Integer, Hash)>] PaginatedPublicationResponseList data, response status code and response headers
|
63
|
+
def list_with_http_info(opts = {})
|
64
|
+
if @api_client.config.debugging
|
65
|
+
@api_client.config.logger.debug 'Calling API: PublicationsApi.list ...'
|
66
|
+
end
|
67
|
+
# resource path
|
68
|
+
local_var_path = '/pulp/api/v3/publications/'
|
69
|
+
|
70
|
+
# query parameters
|
71
|
+
query_params = opts[:query_params] || {}
|
72
|
+
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
73
|
+
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
74
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
75
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
76
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
77
|
+
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
78
|
+
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
79
|
+
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
80
|
+
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
81
|
+
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
82
|
+
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
83
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
84
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
85
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
86
|
+
|
87
|
+
# header parameters
|
88
|
+
header_params = opts[:header_params] || {}
|
89
|
+
# HTTP header 'Accept' (if needed)
|
90
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
91
|
+
|
92
|
+
# form parameters
|
93
|
+
form_params = opts[:form_params] || {}
|
94
|
+
|
95
|
+
# http body (model)
|
96
|
+
post_body = opts[:body]
|
97
|
+
|
98
|
+
# return_type
|
99
|
+
return_type = opts[:return_type] || 'PaginatedPublicationResponseList'
|
100
|
+
|
101
|
+
# auth_names
|
102
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
103
|
+
|
104
|
+
new_options = opts.merge(
|
105
|
+
:header_params => header_params,
|
106
|
+
:query_params => query_params,
|
107
|
+
:form_params => form_params,
|
108
|
+
:body => post_body,
|
109
|
+
:auth_names => auth_names,
|
110
|
+
:return_type => return_type
|
111
|
+
)
|
112
|
+
|
113
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
114
|
+
if @api_client.config.debugging
|
115
|
+
@api_client.config.logger.debug "API called: PublicationsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
116
|
+
end
|
117
|
+
return data, status_code, headers
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|