pulpcore_client 3.20.0 → 3.21.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 +8 -84
- data/docs/ContentApi.md +1 -115
- data/docs/ContentguardsApi.md +1 -280
- data/docs/DistributionsApi.md +3 -281
- data/docs/PublicationsApi.md +0 -113
- data/docs/PulpImport.md +3 -1
- data/docs/RemotesApi.md +0 -280
- data/docs/RepositoriesApi.md +3 -281
- data/docs/UploadsApi.md +228 -0
- data/lib/pulpcore_client/api/content_api.rb +2 -134
- data/lib/pulpcore_client/api/contentguards_api.rb +2 -334
- data/lib/pulpcore_client/api/distributions_api.rb +5 -336
- data/lib/pulpcore_client/api/publications_api.rb +0 -128
- data/lib/pulpcore_client/api/remotes_api.rb +0 -334
- data/lib/pulpcore_client/api/repositories_api.rb +5 -336
- data/lib/pulpcore_client/api/repository_versions_api.rb +1 -1
- data/lib/pulpcore_client/api/uploads_api.rb +268 -0
- data/lib/pulpcore_client/api_client.rb +1 -1
- data/lib/pulpcore_client/models/pulp_import.rb +16 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +0 -31
- data/pulpcore_client.gemspec +3 -3
- data/spec/api/content_api_spec.rb +1 -27
- data/spec/api/contentguards_api_spec.rb +1 -65
- data/spec/api/distributions_api_spec.rb +2 -65
- data/spec/api/publications_api_spec.rb +0 -26
- data/spec/api/remotes_api_spec.rb +0 -64
- data/spec/api/repositories_api_spec.rb +2 -65
- data/spec/api/uploads_api_spec.rb +50 -0
- data/spec/models/pulp_import_spec.rb +6 -0
- metadata +136 -261
- data/docs/AcsApi.md +0 -417
- data/docs/AlternateContentSource.md +0 -23
- data/docs/AlternateContentSourceResponse.md +0 -27
- data/docs/ContentGuard.md +0 -19
- data/docs/Distribution.md +0 -25
- data/docs/Export.md +0 -17
- data/docs/ExportResponse.md +0 -25
- data/docs/Exporter.md +0 -17
- data/docs/ExporterResponse.md +0 -21
- data/docs/ExportersApi.md +0 -362
- data/docs/ExportersExportsApi.md +0 -241
- data/docs/Import.md +0 -19
- data/docs/Importer.md +0 -17
- data/docs/ImporterResponse.md +0 -21
- data/docs/ImportersApi.md +0 -361
- data/docs/ImportersImportsApi.md +0 -241
- data/docs/MultipleArtifactContent.md +0 -17
- data/docs/PaginatedAlternateContentSourceResponseList.md +0 -23
- data/docs/PaginatedExportResponseList.md +0 -23
- data/docs/PaginatedExporterResponseList.md +0 -23
- data/docs/PaginatedImporterResponseList.md +0 -23
- data/docs/PatchedAlternateContentSource.md +0 -23
- data/docs/PatchedContentGuard.md +0 -19
- data/docs/PatchedDistribution.md +0 -25
- data/docs/PatchedExporter.md +0 -17
- data/docs/PatchedImporter.md +0 -17
- data/docs/PatchedRemote.md +0 -57
- data/docs/PatchedRepository.md +0 -25
- data/docs/Remote.md +0 -57
- data/docs/RepositoriesVersionsApi.md +0 -271
- data/docs/Repository.md +0 -25
- data/git_push.sh +0 -58
- data/lib/pulpcore_client/api/acs_api.rb +0 -514
- data/lib/pulpcore_client/api/exporters_api.rb +0 -446
- data/lib/pulpcore_client/api/exporters_exports_api.rb +0 -294
- data/lib/pulpcore_client/api/importers_api.rb +0 -444
- data/lib/pulpcore_client/api/importers_imports_api.rb +0 -294
- data/lib/pulpcore_client/api/repositories_versions_api.rb +0 -343
- data/lib/pulpcore_client/models/alternate_content_source.rb +0 -270
- data/lib/pulpcore_client/models/alternate_content_source_response.rb +0 -270
- data/lib/pulpcore_client/models/content_guard.rb +0 -258
- data/lib/pulpcore_client/models/distribution.rb +0 -297
- data/lib/pulpcore_client/models/export.rb +0 -209
- data/lib/pulpcore_client/models/export_response.rb +0 -250
- data/lib/pulpcore_client/models/exporter.rb +0 -232
- data/lib/pulpcore_client/models/exporter_response.rb +0 -232
- data/lib/pulpcore_client/models/import.rb +0 -228
- data/lib/pulpcore_client/models/importer.rb +0 -232
- data/lib/pulpcore_client/models/importer_response.rb +0 -232
- data/lib/pulpcore_client/models/multiple_artifact_content.rb +0 -213
- data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_export_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_importer_response_list.rb +0 -237
- data/lib/pulpcore_client/models/patched_alternate_content_source.rb +0 -256
- data/lib/pulpcore_client/models/patched_content_guard.rb +0 -249
- data/lib/pulpcore_client/models/patched_distribution.rb +0 -279
- data/lib/pulpcore_client/models/patched_exporter.rb +0 -223
- data/lib/pulpcore_client/models/patched_importer.rb +0 -223
- data/lib/pulpcore_client/models/patched_remote.rb +0 -649
- data/lib/pulpcore_client/models/patched_repository.rb +0 -295
- data/lib/pulpcore_client/models/remote.rb +0 -667
- data/lib/pulpcore_client/models/repository.rb +0 -304
- data/spec/api/acs_api_spec.rb +0 -132
- data/spec/api/exporters_api_spec.rb +0 -120
- data/spec/api/exporters_exports_api_spec.rb +0 -90
- data/spec/api/importers_api_spec.rb +0 -120
- data/spec/api/importers_imports_api_spec.rb +0 -90
- data/spec/api/repositories_versions_api_spec.rb +0 -104
- data/spec/models/alternate_content_source_response_spec.rb +0 -71
- data/spec/models/alternate_content_source_spec.rb +0 -59
- data/spec/models/content_guard_spec.rb +0 -47
- data/spec/models/distribution_spec.rb +0 -65
- data/spec/models/export_response_spec.rb +0 -65
- data/spec/models/export_spec.rb +0 -41
- data/spec/models/exporter_response_spec.rb +0 -53
- data/spec/models/exporter_spec.rb +0 -41
- data/spec/models/import_spec.rb +0 -47
- data/spec/models/importer_response_spec.rb +0 -53
- data/spec/models/importer_spec.rb +0 -41
- data/spec/models/multiple_artifact_content_spec.rb +0 -41
- data/spec/models/paginated_alternate_content_source_response_list_spec.rb +0 -59
- data/spec/models/paginated_export_response_list_spec.rb +0 -59
- data/spec/models/paginated_exporter_response_list_spec.rb +0 -59
- data/spec/models/paginated_importer_response_list_spec.rb +0 -59
- data/spec/models/patched_alternate_content_source_spec.rb +0 -59
- data/spec/models/patched_content_guard_spec.rb +0 -47
- data/spec/models/patched_distribution_spec.rb +0 -65
- data/spec/models/patched_exporter_spec.rb +0 -41
- data/spec/models/patched_importer_spec.rb +0 -41
- data/spec/models/patched_remote_spec.rb +0 -161
- data/spec/models/patched_repository_spec.rb +0 -65
- data/spec/models/remote_spec.rb +0 -161
- data/spec/models/repository_spec.rb +0 -65
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# PulpcoreClient::PatchedAlternateContentSource
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**name** | **String** | Name of Alternate Content Source. | [optional]
|
|
8
|
-
**last_refreshed** | **DateTime** | Date of last refresh of AlternateContentSource. | [optional]
|
|
9
|
-
**paths** | **Array<String>** | List of paths that will be appended to the Remote url when searching for content. | [optional]
|
|
10
|
-
**remote** | **String** | The remote to provide alternate content source. | [optional]
|
|
11
|
-
|
|
12
|
-
## Code Sample
|
|
13
|
-
|
|
14
|
-
```ruby
|
|
15
|
-
require 'PulpcoreClient'
|
|
16
|
-
|
|
17
|
-
instance = PulpcoreClient::PatchedAlternateContentSource.new(name: null,
|
|
18
|
-
last_refreshed: null,
|
|
19
|
-
paths: null,
|
|
20
|
-
remote: null)
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
|
data/docs/PatchedContentGuard.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# PulpcoreClient::PatchedContentGuard
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**name** | **String** | The unique name. | [optional]
|
|
8
|
-
**description** | **String** | An optional description. | [optional]
|
|
9
|
-
|
|
10
|
-
## Code Sample
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'PulpcoreClient'
|
|
14
|
-
|
|
15
|
-
instance = PulpcoreClient::PatchedContentGuard.new(name: null,
|
|
16
|
-
description: null)
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
|
data/docs/PatchedDistribution.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# PulpcoreClient::PatchedDistribution
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**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\") | [optional]
|
|
8
|
-
**content_guard** | **String** | An optional content-guard. | [optional]
|
|
9
|
-
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
10
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
|
11
|
-
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
12
|
-
|
|
13
|
-
## Code Sample
|
|
14
|
-
|
|
15
|
-
```ruby
|
|
16
|
-
require 'PulpcoreClient'
|
|
17
|
-
|
|
18
|
-
instance = PulpcoreClient::PatchedDistribution.new(base_path: null,
|
|
19
|
-
content_guard: null,
|
|
20
|
-
pulp_labels: null,
|
|
21
|
-
name: null,
|
|
22
|
-
repository: null)
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
|
data/docs/PatchedExporter.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# PulpcoreClient::PatchedExporter
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**name** | **String** | Unique name of the file system exporter. | [optional]
|
|
8
|
-
|
|
9
|
-
## Code Sample
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
require 'PulpcoreClient'
|
|
13
|
-
|
|
14
|
-
instance = PulpcoreClient::PatchedExporter.new(name: null)
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
|
data/docs/PatchedImporter.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# PulpcoreClient::PatchedImporter
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**name** | **String** | Unique name of the Importer. | [optional]
|
|
8
|
-
|
|
9
|
-
## Code Sample
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
require 'PulpcoreClient'
|
|
13
|
-
|
|
14
|
-
instance = PulpcoreClient::PatchedImporter.new(name: null)
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
|
data/docs/PatchedRemote.md
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# PulpcoreClient::PatchedRemote
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**name** | **String** | A unique name for this remote. | [optional]
|
|
8
|
-
**url** | **String** | The URL of an external content source. | [optional]
|
|
9
|
-
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
|
10
|
-
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
|
11
|
-
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
|
12
|
-
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
|
13
|
-
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
|
14
|
-
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
|
15
|
-
**proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
16
|
-
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
|
17
|
-
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
18
|
-
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
19
|
-
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
20
|
-
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
21
|
-
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. | [optional]
|
|
22
|
-
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
23
|
-
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
24
|
-
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
25
|
-
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
26
|
-
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
|
27
|
-
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
|
28
|
-
|
|
29
|
-
## Code Sample
|
|
30
|
-
|
|
31
|
-
```ruby
|
|
32
|
-
require 'PulpcoreClient'
|
|
33
|
-
|
|
34
|
-
instance = PulpcoreClient::PatchedRemote.new(name: null,
|
|
35
|
-
url: null,
|
|
36
|
-
ca_cert: null,
|
|
37
|
-
client_cert: null,
|
|
38
|
-
client_key: null,
|
|
39
|
-
tls_validation: null,
|
|
40
|
-
proxy_url: null,
|
|
41
|
-
proxy_username: null,
|
|
42
|
-
proxy_password: null,
|
|
43
|
-
username: null,
|
|
44
|
-
password: null,
|
|
45
|
-
pulp_labels: null,
|
|
46
|
-
download_concurrency: null,
|
|
47
|
-
max_retries: null,
|
|
48
|
-
policy: null,
|
|
49
|
-
total_timeout: null,
|
|
50
|
-
connect_timeout: null,
|
|
51
|
-
sock_connect_timeout: null,
|
|
52
|
-
sock_read_timeout: null,
|
|
53
|
-
headers: null,
|
|
54
|
-
rate_limit: null)
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
|
data/docs/PatchedRepository.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# PulpcoreClient::PatchedRepository
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
8
|
-
**name** | **String** | A unique name for this repository. | [optional]
|
|
9
|
-
**description** | **String** | An optional description. | [optional]
|
|
10
|
-
**retain_repo_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]
|
|
11
|
-
**remote** | **String** | An optional remote to use by default when syncing. | [optional]
|
|
12
|
-
|
|
13
|
-
## Code Sample
|
|
14
|
-
|
|
15
|
-
```ruby
|
|
16
|
-
require 'PulpcoreClient'
|
|
17
|
-
|
|
18
|
-
instance = PulpcoreClient::PatchedRepository.new(pulp_labels: null,
|
|
19
|
-
name: null,
|
|
20
|
-
description: null,
|
|
21
|
-
retain_repo_versions: null,
|
|
22
|
-
remote: null)
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
|
data/docs/Remote.md
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# PulpcoreClient::Remote
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**name** | **String** | A unique name for this remote. |
|
|
8
|
-
**url** | **String** | The URL of an external content source. |
|
|
9
|
-
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
|
10
|
-
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
|
11
|
-
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
|
12
|
-
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
|
13
|
-
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
|
14
|
-
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
|
15
|
-
**proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
16
|
-
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
|
17
|
-
**password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
|
|
18
|
-
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
19
|
-
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
|
20
|
-
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
|
21
|
-
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. | [optional]
|
|
22
|
-
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
23
|
-
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
24
|
-
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
25
|
-
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
|
|
26
|
-
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
|
27
|
-
**rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
|
|
28
|
-
|
|
29
|
-
## Code Sample
|
|
30
|
-
|
|
31
|
-
```ruby
|
|
32
|
-
require 'PulpcoreClient'
|
|
33
|
-
|
|
34
|
-
instance = PulpcoreClient::Remote.new(name: null,
|
|
35
|
-
url: null,
|
|
36
|
-
ca_cert: null,
|
|
37
|
-
client_cert: null,
|
|
38
|
-
client_key: null,
|
|
39
|
-
tls_validation: null,
|
|
40
|
-
proxy_url: null,
|
|
41
|
-
proxy_username: null,
|
|
42
|
-
proxy_password: null,
|
|
43
|
-
username: null,
|
|
44
|
-
password: null,
|
|
45
|
-
pulp_labels: null,
|
|
46
|
-
download_concurrency: null,
|
|
47
|
-
max_retries: null,
|
|
48
|
-
policy: null,
|
|
49
|
-
total_timeout: null,
|
|
50
|
-
connect_timeout: null,
|
|
51
|
-
sock_connect_timeout: null,
|
|
52
|
-
sock_read_timeout: null,
|
|
53
|
-
headers: null,
|
|
54
|
-
rate_limit: null)
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
|
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
# PulpcoreClient::RepositoriesVersionsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://pulp*
|
|
4
|
-
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
------------- | ------------- | -------------
|
|
7
|
-
[**delete**](RepositoriesVersionsApi.md#delete) | **DELETE** {repositories_repository_version_href} | Delete a repository version
|
|
8
|
-
[**list**](RepositoriesVersionsApi.md#list) | **GET** {repository_href}versions/ | List repository versions
|
|
9
|
-
[**read**](RepositoriesVersionsApi.md#read) | **GET** {repositories_repository_version_href} | Inspect a repository version
|
|
10
|
-
[**repair**](RepositoriesVersionsApi.md#repair) | **POST** {repositories_repository_version_href}repair/ |
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## delete
|
|
15
|
-
|
|
16
|
-
> AsyncOperationResponse delete(repositories_repository_version_href)
|
|
17
|
-
|
|
18
|
-
Delete a repository version
|
|
19
|
-
|
|
20
|
-
Trigger an asynchronous task to delete a repository version.
|
|
21
|
-
|
|
22
|
-
### Example
|
|
23
|
-
|
|
24
|
-
```ruby
|
|
25
|
-
# load the gem
|
|
26
|
-
require 'pulpcore_client'
|
|
27
|
-
# setup authorization
|
|
28
|
-
PulpcoreClient.configure do |config|
|
|
29
|
-
# Configure HTTP basic authorization: basicAuth
|
|
30
|
-
config.username = 'YOUR USERNAME'
|
|
31
|
-
config.password = 'YOUR PASSWORD'
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
api_instance = PulpcoreClient::RepositoriesVersionsApi.new
|
|
35
|
-
repositories_repository_version_href = 'repositories_repository_version_href_example' # String |
|
|
36
|
-
|
|
37
|
-
begin
|
|
38
|
-
#Delete a repository version
|
|
39
|
-
result = api_instance.delete(repositories_repository_version_href)
|
|
40
|
-
p result
|
|
41
|
-
rescue PulpcoreClient::ApiError => e
|
|
42
|
-
puts "Exception when calling RepositoriesVersionsApi->delete: #{e}"
|
|
43
|
-
end
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### Parameters
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
Name | Type | Description | Notes
|
|
50
|
-
------------- | ------------- | ------------- | -------------
|
|
51
|
-
**repositories_repository_version_href** | **String**| |
|
|
52
|
-
|
|
53
|
-
### Return type
|
|
54
|
-
|
|
55
|
-
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
56
|
-
|
|
57
|
-
### Authorization
|
|
58
|
-
|
|
59
|
-
[basicAuth](../README.md#basicAuth)
|
|
60
|
-
|
|
61
|
-
### HTTP request headers
|
|
62
|
-
|
|
63
|
-
- **Content-Type**: Not defined
|
|
64
|
-
- **Accept**: application/json
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
## list
|
|
68
|
-
|
|
69
|
-
> PaginatedRepositoryVersionResponseList list(repository_href, opts)
|
|
70
|
-
|
|
71
|
-
List repository versions
|
|
72
|
-
|
|
73
|
-
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.
|
|
74
|
-
|
|
75
|
-
### Example
|
|
76
|
-
|
|
77
|
-
```ruby
|
|
78
|
-
# load the gem
|
|
79
|
-
require 'pulpcore_client'
|
|
80
|
-
# setup authorization
|
|
81
|
-
PulpcoreClient.configure do |config|
|
|
82
|
-
# Configure HTTP basic authorization: basicAuth
|
|
83
|
-
config.username = 'YOUR USERNAME'
|
|
84
|
-
config.password = 'YOUR PASSWORD'
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
api_instance = PulpcoreClient::RepositoriesVersionsApi.new
|
|
88
|
-
repository_href = 'repository_href_example' # String |
|
|
89
|
-
opts = {
|
|
90
|
-
content: 'content_example', # String | Content Unit referenced by HREF
|
|
91
|
-
content__in: 'content__in_example', # String | Content Unit referenced by HREF
|
|
92
|
-
limit: 56, # Integer | Number of results to return per page.
|
|
93
|
-
number: 56, # Integer |
|
|
94
|
-
number__gt: 56, # Integer | Filter results where number is greater than value
|
|
95
|
-
number__gte: 56, # Integer | Filter results where number is greater than or equal to value
|
|
96
|
-
number__lt: 56, # Integer | Filter results where number is less than value
|
|
97
|
-
number__lte: 56, # Integer | Filter results where number is less than or equal to value
|
|
98
|
-
number__range: [56], # Array<Integer> | Filter results where number is between two comma separated values
|
|
99
|
-
offset: 56, # Integer | The initial index from which to return the results.
|
|
100
|
-
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
101
|
-
pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
|
|
102
|
-
pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value
|
|
103
|
-
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
|
|
104
|
-
pulp_created__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than value
|
|
105
|
-
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
|
|
106
|
-
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
|
|
107
|
-
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
108
|
-
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
begin
|
|
112
|
-
#List repository versions
|
|
113
|
-
result = api_instance.list(repository_href, opts)
|
|
114
|
-
p result
|
|
115
|
-
rescue PulpcoreClient::ApiError => e
|
|
116
|
-
puts "Exception when calling RepositoriesVersionsApi->list: #{e}"
|
|
117
|
-
end
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
### Parameters
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
Name | Type | Description | Notes
|
|
124
|
-
------------- | ------------- | ------------- | -------------
|
|
125
|
-
**repository_href** | **String**| |
|
|
126
|
-
**content** | **String**| Content Unit referenced by HREF | [optional]
|
|
127
|
-
**content__in** | **String**| Content Unit referenced by HREF | [optional]
|
|
128
|
-
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
129
|
-
**number** | **Integer**| | [optional]
|
|
130
|
-
**number__gt** | **Integer**| Filter results where number is greater than value | [optional]
|
|
131
|
-
**number__gte** | **Integer**| Filter results where number is greater than or equal to value | [optional]
|
|
132
|
-
**number__lt** | **Integer**| Filter results where number is less than value | [optional]
|
|
133
|
-
**number__lte** | **Integer**| Filter results where number is less than or equal to value | [optional]
|
|
134
|
-
**number__range** | [**Array<Integer>**](Integer.md)| Filter results where number is between two comma separated values | [optional]
|
|
135
|
-
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
136
|
-
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
137
|
-
**pulp_created** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
|
|
138
|
-
**pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional]
|
|
139
|
-
**pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional]
|
|
140
|
-
**pulp_created__lt** | **DateTime**| Filter results where pulp_created is less than value | [optional]
|
|
141
|
-
**pulp_created__lte** | **DateTime**| Filter results where pulp_created is less than or equal to value | [optional]
|
|
142
|
-
**pulp_created__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
|
|
143
|
-
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
144
|
-
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
145
|
-
|
|
146
|
-
### Return type
|
|
147
|
-
|
|
148
|
-
[**PaginatedRepositoryVersionResponseList**](PaginatedRepositoryVersionResponseList.md)
|
|
149
|
-
|
|
150
|
-
### Authorization
|
|
151
|
-
|
|
152
|
-
[basicAuth](../README.md#basicAuth)
|
|
153
|
-
|
|
154
|
-
### HTTP request headers
|
|
155
|
-
|
|
156
|
-
- **Content-Type**: Not defined
|
|
157
|
-
- **Accept**: application/json
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
## read
|
|
161
|
-
|
|
162
|
-
> RepositoryVersionResponse read(repositories_repository_version_href, opts)
|
|
163
|
-
|
|
164
|
-
Inspect a repository version
|
|
165
|
-
|
|
166
|
-
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.
|
|
167
|
-
|
|
168
|
-
### Example
|
|
169
|
-
|
|
170
|
-
```ruby
|
|
171
|
-
# load the gem
|
|
172
|
-
require 'pulpcore_client'
|
|
173
|
-
# setup authorization
|
|
174
|
-
PulpcoreClient.configure do |config|
|
|
175
|
-
# Configure HTTP basic authorization: basicAuth
|
|
176
|
-
config.username = 'YOUR USERNAME'
|
|
177
|
-
config.password = 'YOUR PASSWORD'
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
api_instance = PulpcoreClient::RepositoriesVersionsApi.new
|
|
181
|
-
repositories_repository_version_href = 'repositories_repository_version_href_example' # String |
|
|
182
|
-
opts = {
|
|
183
|
-
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
184
|
-
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
begin
|
|
188
|
-
#Inspect a repository version
|
|
189
|
-
result = api_instance.read(repositories_repository_version_href, opts)
|
|
190
|
-
p result
|
|
191
|
-
rescue PulpcoreClient::ApiError => e
|
|
192
|
-
puts "Exception when calling RepositoriesVersionsApi->read: #{e}"
|
|
193
|
-
end
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### Parameters
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
Name | Type | Description | Notes
|
|
200
|
-
------------- | ------------- | ------------- | -------------
|
|
201
|
-
**repositories_repository_version_href** | **String**| |
|
|
202
|
-
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
203
|
-
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
204
|
-
|
|
205
|
-
### Return type
|
|
206
|
-
|
|
207
|
-
[**RepositoryVersionResponse**](RepositoryVersionResponse.md)
|
|
208
|
-
|
|
209
|
-
### Authorization
|
|
210
|
-
|
|
211
|
-
[basicAuth](../README.md#basicAuth)
|
|
212
|
-
|
|
213
|
-
### HTTP request headers
|
|
214
|
-
|
|
215
|
-
- **Content-Type**: Not defined
|
|
216
|
-
- **Accept**: application/json
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
## repair
|
|
220
|
-
|
|
221
|
-
> AsyncOperationResponse repair(repositories_repository_version_href, repair)
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
Trigger an asynchronous task to repair a repository version.
|
|
226
|
-
|
|
227
|
-
### Example
|
|
228
|
-
|
|
229
|
-
```ruby
|
|
230
|
-
# load the gem
|
|
231
|
-
require 'pulpcore_client'
|
|
232
|
-
# setup authorization
|
|
233
|
-
PulpcoreClient.configure do |config|
|
|
234
|
-
# Configure HTTP basic authorization: basicAuth
|
|
235
|
-
config.username = 'YOUR USERNAME'
|
|
236
|
-
config.password = 'YOUR PASSWORD'
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
api_instance = PulpcoreClient::RepositoriesVersionsApi.new
|
|
240
|
-
repositories_repository_version_href = 'repositories_repository_version_href_example' # String |
|
|
241
|
-
repair = PulpcoreClient::Repair.new # Repair |
|
|
242
|
-
|
|
243
|
-
begin
|
|
244
|
-
result = api_instance.repair(repositories_repository_version_href, repair)
|
|
245
|
-
p result
|
|
246
|
-
rescue PulpcoreClient::ApiError => e
|
|
247
|
-
puts "Exception when calling RepositoriesVersionsApi->repair: #{e}"
|
|
248
|
-
end
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
### Parameters
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
Name | Type | Description | Notes
|
|
255
|
-
------------- | ------------- | ------------- | -------------
|
|
256
|
-
**repositories_repository_version_href** | **String**| |
|
|
257
|
-
**repair** | [**Repair**](Repair.md)| |
|
|
258
|
-
|
|
259
|
-
### Return type
|
|
260
|
-
|
|
261
|
-
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
262
|
-
|
|
263
|
-
### Authorization
|
|
264
|
-
|
|
265
|
-
[basicAuth](../README.md#basicAuth)
|
|
266
|
-
|
|
267
|
-
### HTTP request headers
|
|
268
|
-
|
|
269
|
-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
270
|
-
- **Accept**: application/json
|
|
271
|
-
|
data/docs/Repository.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# PulpcoreClient::Repository
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
8
|
-
**name** | **String** | A unique name for this repository. |
|
|
9
|
-
**description** | **String** | An optional description. | [optional]
|
|
10
|
-
**retain_repo_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]
|
|
11
|
-
**remote** | **String** | An optional remote to use by default when syncing. | [optional]
|
|
12
|
-
|
|
13
|
-
## Code Sample
|
|
14
|
-
|
|
15
|
-
```ruby
|
|
16
|
-
require 'PulpcoreClient'
|
|
17
|
-
|
|
18
|
-
instance = PulpcoreClient::Repository.new(pulp_labels: null,
|
|
19
|
-
name: null,
|
|
20
|
-
description: null,
|
|
21
|
-
retain_repo_versions: null,
|
|
22
|
-
remote: null)
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
|
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
|
-
|