pulp_file_client 1.8.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +21 -15
- data/docs/AcsFileApi.md +416 -0
- data/docs/ContentFilesApi.md +1 -1
- data/docs/DistributionsFileApi.md +1 -1
- data/docs/FileFileAlternateContentSource.md +23 -0
- data/docs/FileFileAlternateContentSourceResponse.md +27 -0
- data/docs/FileFileRemote.md +7 -5
- data/docs/FileFileRemoteResponse.md +7 -5
- data/docs/FileFileRepository.md +3 -3
- data/docs/FileFileRepositoryResponse.md +3 -3
- data/docs/PaginatedfileFileAlternateContentSourceResponseList.md +23 -0
- data/docs/PatchedfileFileAlternateContentSource.md +23 -0
- data/docs/PatchedfileFileRemote.md +7 -5
- data/docs/PatchedfileFileRepository.md +3 -3
- data/docs/PublicationsFileApi.md +1 -1
- data/docs/RemotesFileApi.md +1 -1
- data/docs/RepositoriesFileApi.md +1 -1
- data/docs/RepositoriesFileVersionsApi.md +1 -1
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/lib/pulp_file_client/api/acs_file_api.rb +508 -0
- data/lib/pulp_file_client/api/content_files_api.rb +1 -1
- data/lib/pulp_file_client/api/distributions_file_api.rb +1 -1
- data/lib/pulp_file_client/api/publications_file_api.rb +1 -1
- data/lib/pulp_file_client/api/remotes_file_api.rb +1 -1
- data/lib/pulp_file_client/api/repositories_file_api.rb +1 -1
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +1 -1
- data/lib/pulp_file_client/api_client.rb +12 -8
- data/lib/pulp_file_client/api_error.rb +1 -1
- data/lib/pulp_file_client/configuration.rb +10 -3
- data/lib/pulp_file_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_file_client/models/content_summary.rb +1 -1
- data/lib/pulp_file_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_file_client/models/file_file_alternate_content_source.rb +251 -0
- data/lib/pulp_file_client/models/file_file_alternate_content_source_response.rb +270 -0
- data/lib/pulp_file_client/models/file_file_content.rb +1 -1
- data/lib/pulp_file_client/models/file_file_content_response.rb +1 -1
- data/lib/pulp_file_client/models/file_file_distribution.rb +1 -1
- data/lib/pulp_file_client/models/file_file_distribution_response.rb +1 -1
- data/lib/pulp_file_client/models/file_file_publication.rb +1 -1
- data/lib/pulp_file_client/models/file_file_publication_response.rb +1 -1
- data/lib/pulp_file_client/models/file_file_remote.rb +19 -7
- data/lib/pulp_file_client/models/file_file_remote_response.rb +19 -7
- data/lib/pulp_file_client/models/file_file_repository.rb +18 -17
- data/lib/pulp_file_client/models/file_file_repository_response.rb +18 -17
- data/lib/pulp_file_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_file_client/models/paginatedfile_file_alternate_content_source_response_list.rb +237 -0
- data/lib/pulp_file_client/models/paginatedfile_file_content_response_list.rb +1 -1
- data/lib/pulp_file_client/models/paginatedfile_file_distribution_response_list.rb +1 -1
- data/lib/pulp_file_client/models/paginatedfile_file_publication_response_list.rb +1 -1
- data/lib/pulp_file_client/models/paginatedfile_file_remote_response_list.rb +1 -1
- data/lib/pulp_file_client/models/paginatedfile_file_repository_response_list.rb +1 -1
- data/lib/pulp_file_client/models/patchedfile_file_alternate_content_source.rb +241 -0
- data/lib/pulp_file_client/models/patchedfile_file_distribution.rb +1 -1
- data/lib/pulp_file_client/models/patchedfile_file_remote.rb +19 -7
- data/lib/pulp_file_client/models/patchedfile_file_repository.rb +18 -17
- data/lib/pulp_file_client/models/policy_enum.rb +1 -1
- data/lib/pulp_file_client/models/repository_add_remove_content.rb +3 -3
- data/lib/pulp_file_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_file_client/models/repository_version.rb +1 -1
- data/lib/pulp_file_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_file_client/version.rb +2 -2
- data/lib/pulp_file_client.rb +6 -1
- data/pulp_file_client.gemspec +1 -1
- data/spec/api/acs_file_api_spec.rb +132 -0
- data/spec/api/content_files_api_spec.rb +1 -1
- data/spec/api/distributions_file_api_spec.rb +1 -1
- data/spec/api/publications_file_api_spec.rb +1 -1
- data/spec/api/remotes_file_api_spec.rb +1 -1
- data/spec/api/repositories_file_api_spec.rb +1 -1
- data/spec/api/repositories_file_versions_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/file_file_alternate_content_source_response_spec.rb +71 -0
- data/spec/models/file_file_alternate_content_source_spec.rb +59 -0
- data/spec/models/file_file_content_response_spec.rb +1 -1
- data/spec/models/file_file_content_spec.rb +1 -1
- data/spec/models/file_file_distribution_response_spec.rb +1 -1
- data/spec/models/file_file_distribution_spec.rb +1 -1
- data/spec/models/file_file_publication_response_spec.rb +1 -1
- data/spec/models/file_file_publication_spec.rb +1 -1
- data/spec/models/file_file_remote_response_spec.rb +7 -1
- data/spec/models/file_file_remote_spec.rb +7 -1
- data/spec/models/file_file_repository_response_spec.rb +2 -2
- data/spec/models/file_file_repository_spec.rb +2 -2
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb +59 -0
- data/spec/models/paginatedfile_file_content_response_list_spec.rb +1 -1
- data/spec/models/paginatedfile_file_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginatedfile_file_publication_response_list_spec.rb +1 -1
- data/spec/models/paginatedfile_file_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatedfile_file_repository_response_list_spec.rb +1 -1
- data/spec/models/patchedfile_file_alternate_content_source_spec.rb +59 -0
- data/spec/models/patchedfile_file_distribution_spec.rb +1 -1
- data/spec/models/patchedfile_file_remote_spec.rb +7 -1
- data/spec/models/patchedfile_file_repository_spec.rb +2 -2
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +43 -23
data/docs/ContentFilesApi.md
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpFileClient::FileFileAlternateContentSource
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**name** | **String** | Name of Alternate Content Source. |
|
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. |
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpFileClient'
|
16
|
+
|
17
|
+
instance = PulpFileClient::FileFileAlternateContentSource.new(name: null,
|
18
|
+
last_refreshed: null,
|
19
|
+
paths: null,
|
20
|
+
remote: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# PulpFileClient::FileFileAlternateContentSourceResponse
|
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
|
+
**name** | **String** | Name of Alternate Content Source. |
|
10
|
+
**last_refreshed** | **DateTime** | Date of last refresh of AlternateContentSource. | [optional]
|
11
|
+
**paths** | **Array<String>** | List of paths that will be appended to the Remote url when searching for content. | [optional]
|
12
|
+
**remote** | **String** | The remote to provide alternate content source. |
|
13
|
+
|
14
|
+
## Code Sample
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'PulpFileClient'
|
18
|
+
|
19
|
+
instance = PulpFileClient::FileFileAlternateContentSourceResponse.new(pulp_href: null,
|
20
|
+
pulp_created: null,
|
21
|
+
name: null,
|
22
|
+
last_refreshed: null,
|
23
|
+
paths: null,
|
24
|
+
remote: null)
|
25
|
+
```
|
26
|
+
|
27
|
+
|
data/docs/FileFileRemote.md
CHANGED
@@ -16,12 +16,13 @@ Name | Type | Description | Notes
|
|
16
16
|
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
17
17
|
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
18
18
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
19
|
-
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [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]
|
20
21
|
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. | [optional]
|
21
|
-
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
|
22
|
-
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
|
23
|
-
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
|
24
|
-
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [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]
|
25
26
|
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
26
27
|
**rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
|
27
28
|
|
@@ -43,6 +44,7 @@ instance = PulpFileClient::FileFileRemote.new(name: null,
|
|
43
44
|
password: null,
|
44
45
|
pulp_labels: null,
|
45
46
|
download_concurrency: null,
|
47
|
+
max_retries: null,
|
46
48
|
policy: null,
|
47
49
|
total_timeout: null,
|
48
50
|
connect_timeout: null,
|
@@ -14,12 +14,13 @@ Name | Type | Description | Notes
|
|
14
14
|
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
15
15
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
16
16
|
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
17
|
-
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
|
17
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
|
18
|
+
**max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
|
18
19
|
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. | [optional]
|
19
|
-
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
|
20
|
-
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
|
21
|
-
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
|
22
|
-
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
|
20
|
+
**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]
|
21
|
+
**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]
|
22
|
+
**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]
|
23
|
+
**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]
|
23
24
|
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
24
25
|
**rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
|
25
26
|
|
@@ -39,6 +40,7 @@ instance = PulpFileClient::FileFileRemoteResponse.new(pulp_href: null,
|
|
39
40
|
pulp_labels: null,
|
40
41
|
pulp_last_updated: null,
|
41
42
|
download_concurrency: null,
|
43
|
+
max_retries: null,
|
42
44
|
policy: null,
|
43
45
|
total_timeout: null,
|
44
46
|
connect_timeout: null,
|
data/docs/FileFileRepository.md
CHANGED
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
|
|
7
7
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
8
8
|
**name** | **String** | A unique name for this repository. |
|
9
9
|
**description** | **String** | An optional description. | [optional]
|
10
|
-
**
|
11
|
-
**remote** | **String** |
|
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
12
|
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
13
13
|
**manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional] [default to 'PULP_MANIFEST']
|
14
14
|
|
@@ -20,7 +20,7 @@ require 'PulpFileClient'
|
|
20
20
|
instance = PulpFileClient::FileFileRepository.new(pulp_labels: null,
|
21
21
|
name: null,
|
22
22
|
description: null,
|
23
|
-
|
23
|
+
retain_repo_versions: null,
|
24
24
|
remote: null,
|
25
25
|
autopublish: null,
|
26
26
|
manifest: null)
|
@@ -11,8 +11,8 @@ 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
|
-
**
|
15
|
-
**remote** | **String** |
|
14
|
+
**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]
|
15
|
+
**remote** | **String** | An optional remote to use by default when syncing. | [optional]
|
16
16
|
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
17
17
|
**manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional] [default to 'PULP_MANIFEST']
|
18
18
|
|
@@ -28,7 +28,7 @@ instance = PulpFileClient::FileFileRepositoryResponse.new(pulp_href: null,
|
|
28
28
|
latest_version_href: null,
|
29
29
|
name: null,
|
30
30
|
description: null,
|
31
|
-
|
31
|
+
retain_repo_versions: null,
|
32
32
|
remote: null,
|
33
33
|
autopublish: null,
|
34
34
|
manifest: null)
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpFileClient::PaginatedfileFileAlternateContentSourceResponseList
|
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<FileFileAlternateContentSourceResponse>**](FileFileAlternateContentSourceResponse.md) | | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpFileClient'
|
16
|
+
|
17
|
+
instance = PulpFileClient::PaginatedfileFileAlternateContentSourceResponseList.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
|
+
# PulpFileClient::PatchedfileFileAlternateContentSource
|
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 'PulpFileClient'
|
16
|
+
|
17
|
+
instance = PulpFileClient::PatchedfileFileAlternateContentSource.new(name: null,
|
18
|
+
last_refreshed: null,
|
19
|
+
paths: null,
|
20
|
+
remote: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -16,12 +16,13 @@ Name | Type | Description | Notes
|
|
16
16
|
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
17
17
|
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
18
18
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
19
|
-
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [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]
|
20
21
|
**policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. | [optional]
|
21
|
-
**total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
|
22
|
-
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
|
23
|
-
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
|
24
|
-
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [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]
|
25
26
|
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
26
27
|
**rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
|
27
28
|
|
@@ -43,6 +44,7 @@ instance = PulpFileClient::PatchedfileFileRemote.new(name: null,
|
|
43
44
|
password: null,
|
44
45
|
pulp_labels: null,
|
45
46
|
download_concurrency: null,
|
47
|
+
max_retries: null,
|
46
48
|
policy: null,
|
47
49
|
total_timeout: null,
|
48
50
|
connect_timeout: null,
|
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
|
|
7
7
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
8
8
|
**name** | **String** | A unique name for this repository. | [optional]
|
9
9
|
**description** | **String** | An optional description. | [optional]
|
10
|
-
**
|
11
|
-
**remote** | **String** |
|
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
12
|
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
13
13
|
**manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional] [default to 'PULP_MANIFEST']
|
14
14
|
|
@@ -20,7 +20,7 @@ require 'PulpFileClient'
|
|
20
20
|
instance = PulpFileClient::PatchedfileFileRepository.new(pulp_labels: null,
|
21
21
|
name: null,
|
22
22
|
description: null,
|
23
|
-
|
23
|
+
retain_repo_versions: null,
|
24
24
|
remote: null,
|
25
25
|
autopublish: null,
|
26
26
|
manifest: null)
|
data/docs/PublicationsFileApi.md
CHANGED
data/docs/RemotesFileApi.md
CHANGED
data/docs/RepositoriesFileApi.md
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**add_content_units** | **Array<
|
8
|
-
**remove_content_units** | **Array<
|
7
|
+
**add_content_units** | [**Array<AnyType>**](AnyType.md) | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional]
|
8
|
+
**remove_content_units** | [**Array<AnyType>**](AnyType.md) | A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added. | [optional]
|
9
9
|
**base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional]
|
10
10
|
|
11
11
|
## Code Sample
|
@@ -0,0 +1,508 @@
|
|
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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpFileClient
|
16
|
+
class AcsFileApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a file alternate content source
|
23
|
+
# Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
|
24
|
+
# @param file_file_alternate_content_source [FileFileAlternateContentSource]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [FileFileAlternateContentSourceResponse]
|
27
|
+
def create(file_file_alternate_content_source, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(file_file_alternate_content_source, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create a file alternate content source
|
33
|
+
# Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
|
34
|
+
# @param file_file_alternate_content_source [FileFileAlternateContentSource]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(FileFileAlternateContentSourceResponse, Integer, Hash)>] FileFileAlternateContentSourceResponse data, response status code and response headers
|
37
|
+
def create_with_http_info(file_file_alternate_content_source, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: AcsFileApi.create ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'file_file_alternate_content_source' is set
|
42
|
+
if @api_client.config.client_side_validation && file_file_alternate_content_source.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'file_file_alternate_content_source' when calling AcsFileApi.create"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/pulp/api/v3/acs/file/file/'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(file_file_alternate_content_source)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'FileFileAlternateContentSourceResponse'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: AcsFileApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# Delete a file alternate content source
|
87
|
+
# Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
|
88
|
+
# @param file_file_alternate_content_source_href [String]
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [nil]
|
91
|
+
def delete(file_file_alternate_content_source_href, opts = {})
|
92
|
+
delete_with_http_info(file_file_alternate_content_source_href, opts)
|
93
|
+
nil
|
94
|
+
end
|
95
|
+
|
96
|
+
# Delete a file alternate content source
|
97
|
+
# Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
|
98
|
+
# @param file_file_alternate_content_source_href [String]
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
101
|
+
def delete_with_http_info(file_file_alternate_content_source_href, opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug 'Calling API: AcsFileApi.delete ...'
|
104
|
+
end
|
105
|
+
# verify the required parameter 'file_file_alternate_content_source_href' is set
|
106
|
+
if @api_client.config.client_side_validation && file_file_alternate_content_source_href.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'file_file_alternate_content_source_href' when calling AcsFileApi.delete"
|
108
|
+
end
|
109
|
+
# resource path
|
110
|
+
local_var_path = '{file_file_alternate_content_source_href}'.sub('{' + 'file_file_alternate_content_source_href' + '}', CGI.escape(file_file_alternate_content_source_href.to_s).gsub('%2F', '/'))
|
111
|
+
|
112
|
+
# query parameters
|
113
|
+
query_params = opts[:query_params] || {}
|
114
|
+
|
115
|
+
# header parameters
|
116
|
+
header_params = opts[:header_params] || {}
|
117
|
+
|
118
|
+
# form parameters
|
119
|
+
form_params = opts[:form_params] || {}
|
120
|
+
|
121
|
+
# http body (model)
|
122
|
+
post_body = opts[:body]
|
123
|
+
|
124
|
+
# return_type
|
125
|
+
return_type = opts[:return_type]
|
126
|
+
|
127
|
+
# auth_names
|
128
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
129
|
+
|
130
|
+
new_options = opts.merge(
|
131
|
+
:header_params => header_params,
|
132
|
+
:query_params => query_params,
|
133
|
+
:form_params => form_params,
|
134
|
+
:body => post_body,
|
135
|
+
:auth_names => auth_names,
|
136
|
+
:return_type => return_type
|
137
|
+
)
|
138
|
+
|
139
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
140
|
+
if @api_client.config.debugging
|
141
|
+
@api_client.config.logger.debug "API called: AcsFileApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
|
+
end
|
143
|
+
return data, status_code, headers
|
144
|
+
end
|
145
|
+
|
146
|
+
# List file alternate content sources
|
147
|
+
# Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
150
|
+
# @option opts [String] :name
|
151
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
152
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
153
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
154
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
155
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
156
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
157
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
158
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
159
|
+
# @return [PaginatedfileFileAlternateContentSourceResponseList]
|
160
|
+
def list(opts = {})
|
161
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
162
|
+
data
|
163
|
+
end
|
164
|
+
|
165
|
+
# List file alternate content sources
|
166
|
+
# Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
|
167
|
+
# @param [Hash] opts the optional parameters
|
168
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
169
|
+
# @option opts [String] :name
|
170
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
171
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
172
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
173
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
174
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
175
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
176
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
177
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
178
|
+
# @return [Array<(PaginatedfileFileAlternateContentSourceResponseList, Integer, Hash)>] PaginatedfileFileAlternateContentSourceResponseList data, response status code and response headers
|
179
|
+
def list_with_http_info(opts = {})
|
180
|
+
if @api_client.config.debugging
|
181
|
+
@api_client.config.logger.debug 'Calling API: AcsFileApi.list ...'
|
182
|
+
end
|
183
|
+
# resource path
|
184
|
+
local_var_path = '/pulp/api/v3/acs/file/file/'
|
185
|
+
|
186
|
+
# query parameters
|
187
|
+
query_params = opts[:query_params] || {}
|
188
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
189
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
190
|
+
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
191
|
+
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
192
|
+
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
193
|
+
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
194
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
195
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
196
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
197
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
198
|
+
|
199
|
+
# header parameters
|
200
|
+
header_params = opts[:header_params] || {}
|
201
|
+
# HTTP header 'Accept' (if needed)
|
202
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
203
|
+
|
204
|
+
# form parameters
|
205
|
+
form_params = opts[:form_params] || {}
|
206
|
+
|
207
|
+
# http body (model)
|
208
|
+
post_body = opts[:body]
|
209
|
+
|
210
|
+
# return_type
|
211
|
+
return_type = opts[:return_type] || 'PaginatedfileFileAlternateContentSourceResponseList'
|
212
|
+
|
213
|
+
# auth_names
|
214
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
215
|
+
|
216
|
+
new_options = opts.merge(
|
217
|
+
:header_params => header_params,
|
218
|
+
:query_params => query_params,
|
219
|
+
:form_params => form_params,
|
220
|
+
:body => post_body,
|
221
|
+
:auth_names => auth_names,
|
222
|
+
:return_type => return_type
|
223
|
+
)
|
224
|
+
|
225
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
226
|
+
if @api_client.config.debugging
|
227
|
+
@api_client.config.logger.debug "API called: AcsFileApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
228
|
+
end
|
229
|
+
return data, status_code, headers
|
230
|
+
end
|
231
|
+
|
232
|
+
# Update a file alternate content source
|
233
|
+
# Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
|
234
|
+
# @param file_file_alternate_content_source_href [String]
|
235
|
+
# @param patchedfile_file_alternate_content_source [PatchedfileFileAlternateContentSource]
|
236
|
+
# @param [Hash] opts the optional parameters
|
237
|
+
# @return [FileFileAlternateContentSourceResponse]
|
238
|
+
def partial_update(file_file_alternate_content_source_href, patchedfile_file_alternate_content_source, opts = {})
|
239
|
+
data, _status_code, _headers = partial_update_with_http_info(file_file_alternate_content_source_href, patchedfile_file_alternate_content_source, opts)
|
240
|
+
data
|
241
|
+
end
|
242
|
+
|
243
|
+
# Update a file alternate content source
|
244
|
+
# Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
|
245
|
+
# @param file_file_alternate_content_source_href [String]
|
246
|
+
# @param patchedfile_file_alternate_content_source [PatchedfileFileAlternateContentSource]
|
247
|
+
# @param [Hash] opts the optional parameters
|
248
|
+
# @return [Array<(FileFileAlternateContentSourceResponse, Integer, Hash)>] FileFileAlternateContentSourceResponse data, response status code and response headers
|
249
|
+
def partial_update_with_http_info(file_file_alternate_content_source_href, patchedfile_file_alternate_content_source, opts = {})
|
250
|
+
if @api_client.config.debugging
|
251
|
+
@api_client.config.logger.debug 'Calling API: AcsFileApi.partial_update ...'
|
252
|
+
end
|
253
|
+
# verify the required parameter 'file_file_alternate_content_source_href' is set
|
254
|
+
if @api_client.config.client_side_validation && file_file_alternate_content_source_href.nil?
|
255
|
+
fail ArgumentError, "Missing the required parameter 'file_file_alternate_content_source_href' when calling AcsFileApi.partial_update"
|
256
|
+
end
|
257
|
+
# verify the required parameter 'patchedfile_file_alternate_content_source' is set
|
258
|
+
if @api_client.config.client_side_validation && patchedfile_file_alternate_content_source.nil?
|
259
|
+
fail ArgumentError, "Missing the required parameter 'patchedfile_file_alternate_content_source' when calling AcsFileApi.partial_update"
|
260
|
+
end
|
261
|
+
# resource path
|
262
|
+
local_var_path = '{file_file_alternate_content_source_href}'.sub('{' + 'file_file_alternate_content_source_href' + '}', CGI.escape(file_file_alternate_content_source_href.to_s).gsub('%2F', '/'))
|
263
|
+
|
264
|
+
# query parameters
|
265
|
+
query_params = opts[:query_params] || {}
|
266
|
+
|
267
|
+
# header parameters
|
268
|
+
header_params = opts[:header_params] || {}
|
269
|
+
# HTTP header 'Accept' (if needed)
|
270
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
271
|
+
# HTTP header 'Content-Type'
|
272
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
273
|
+
|
274
|
+
# form parameters
|
275
|
+
form_params = opts[:form_params] || {}
|
276
|
+
|
277
|
+
# http body (model)
|
278
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patchedfile_file_alternate_content_source)
|
279
|
+
|
280
|
+
# return_type
|
281
|
+
return_type = opts[:return_type] || 'FileFileAlternateContentSourceResponse'
|
282
|
+
|
283
|
+
# auth_names
|
284
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
285
|
+
|
286
|
+
new_options = opts.merge(
|
287
|
+
:header_params => header_params,
|
288
|
+
:query_params => query_params,
|
289
|
+
:form_params => form_params,
|
290
|
+
:body => post_body,
|
291
|
+
:auth_names => auth_names,
|
292
|
+
:return_type => return_type
|
293
|
+
)
|
294
|
+
|
295
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
296
|
+
if @api_client.config.debugging
|
297
|
+
@api_client.config.logger.debug "API called: AcsFileApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
298
|
+
end
|
299
|
+
return data, status_code, headers
|
300
|
+
end
|
301
|
+
|
302
|
+
# Inspect a file alternate content source
|
303
|
+
# Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
|
304
|
+
# @param file_file_alternate_content_source_href [String]
|
305
|
+
# @param [Hash] opts the optional parameters
|
306
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
307
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
308
|
+
# @return [FileFileAlternateContentSourceResponse]
|
309
|
+
def read(file_file_alternate_content_source_href, opts = {})
|
310
|
+
data, _status_code, _headers = read_with_http_info(file_file_alternate_content_source_href, opts)
|
311
|
+
data
|
312
|
+
end
|
313
|
+
|
314
|
+
# Inspect a file alternate content source
|
315
|
+
# Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
|
316
|
+
# @param file_file_alternate_content_source_href [String]
|
317
|
+
# @param [Hash] opts the optional parameters
|
318
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
319
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
320
|
+
# @return [Array<(FileFileAlternateContentSourceResponse, Integer, Hash)>] FileFileAlternateContentSourceResponse data, response status code and response headers
|
321
|
+
def read_with_http_info(file_file_alternate_content_source_href, opts = {})
|
322
|
+
if @api_client.config.debugging
|
323
|
+
@api_client.config.logger.debug 'Calling API: AcsFileApi.read ...'
|
324
|
+
end
|
325
|
+
# verify the required parameter 'file_file_alternate_content_source_href' is set
|
326
|
+
if @api_client.config.client_side_validation && file_file_alternate_content_source_href.nil?
|
327
|
+
fail ArgumentError, "Missing the required parameter 'file_file_alternate_content_source_href' when calling AcsFileApi.read"
|
328
|
+
end
|
329
|
+
# resource path
|
330
|
+
local_var_path = '{file_file_alternate_content_source_href}'.sub('{' + 'file_file_alternate_content_source_href' + '}', CGI.escape(file_file_alternate_content_source_href.to_s).gsub('%2F', '/'))
|
331
|
+
|
332
|
+
# query parameters
|
333
|
+
query_params = opts[:query_params] || {}
|
334
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
335
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
336
|
+
|
337
|
+
# header parameters
|
338
|
+
header_params = opts[:header_params] || {}
|
339
|
+
# HTTP header 'Accept' (if needed)
|
340
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
341
|
+
|
342
|
+
# form parameters
|
343
|
+
form_params = opts[:form_params] || {}
|
344
|
+
|
345
|
+
# http body (model)
|
346
|
+
post_body = opts[:body]
|
347
|
+
|
348
|
+
# return_type
|
349
|
+
return_type = opts[:return_type] || 'FileFileAlternateContentSourceResponse'
|
350
|
+
|
351
|
+
# auth_names
|
352
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
353
|
+
|
354
|
+
new_options = opts.merge(
|
355
|
+
:header_params => header_params,
|
356
|
+
:query_params => query_params,
|
357
|
+
:form_params => form_params,
|
358
|
+
:body => post_body,
|
359
|
+
:auth_names => auth_names,
|
360
|
+
:return_type => return_type
|
361
|
+
)
|
362
|
+
|
363
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
364
|
+
if @api_client.config.debugging
|
365
|
+
@api_client.config.logger.debug "API called: AcsFileApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
366
|
+
end
|
367
|
+
return data, status_code, headers
|
368
|
+
end
|
369
|
+
|
370
|
+
# Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
|
371
|
+
# @param file_file_alternate_content_source_href [String]
|
372
|
+
# @param file_file_alternate_content_source [FileFileAlternateContentSource]
|
373
|
+
# @param [Hash] opts the optional parameters
|
374
|
+
# @return [FileFileAlternateContentSourceResponse]
|
375
|
+
def refresh(file_file_alternate_content_source_href, file_file_alternate_content_source, opts = {})
|
376
|
+
data, _status_code, _headers = refresh_with_http_info(file_file_alternate_content_source_href, file_file_alternate_content_source, opts)
|
377
|
+
data
|
378
|
+
end
|
379
|
+
|
380
|
+
# Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
|
381
|
+
# @param file_file_alternate_content_source_href [String]
|
382
|
+
# @param file_file_alternate_content_source [FileFileAlternateContentSource]
|
383
|
+
# @param [Hash] opts the optional parameters
|
384
|
+
# @return [Array<(FileFileAlternateContentSourceResponse, Integer, Hash)>] FileFileAlternateContentSourceResponse data, response status code and response headers
|
385
|
+
def refresh_with_http_info(file_file_alternate_content_source_href, file_file_alternate_content_source, opts = {})
|
386
|
+
if @api_client.config.debugging
|
387
|
+
@api_client.config.logger.debug 'Calling API: AcsFileApi.refresh ...'
|
388
|
+
end
|
389
|
+
# verify the required parameter 'file_file_alternate_content_source_href' is set
|
390
|
+
if @api_client.config.client_side_validation && file_file_alternate_content_source_href.nil?
|
391
|
+
fail ArgumentError, "Missing the required parameter 'file_file_alternate_content_source_href' when calling AcsFileApi.refresh"
|
392
|
+
end
|
393
|
+
# verify the required parameter 'file_file_alternate_content_source' is set
|
394
|
+
if @api_client.config.client_side_validation && file_file_alternate_content_source.nil?
|
395
|
+
fail ArgumentError, "Missing the required parameter 'file_file_alternate_content_source' when calling AcsFileApi.refresh"
|
396
|
+
end
|
397
|
+
# resource path
|
398
|
+
local_var_path = '{file_file_alternate_content_source_href}refresh/'.sub('{' + 'file_file_alternate_content_source_href' + '}', CGI.escape(file_file_alternate_content_source_href.to_s).gsub('%2F', '/'))
|
399
|
+
|
400
|
+
# query parameters
|
401
|
+
query_params = opts[:query_params] || {}
|
402
|
+
|
403
|
+
# header parameters
|
404
|
+
header_params = opts[:header_params] || {}
|
405
|
+
# HTTP header 'Accept' (if needed)
|
406
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
407
|
+
# HTTP header 'Content-Type'
|
408
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
409
|
+
|
410
|
+
# form parameters
|
411
|
+
form_params = opts[:form_params] || {}
|
412
|
+
|
413
|
+
# http body (model)
|
414
|
+
post_body = opts[:body] || @api_client.object_to_http_body(file_file_alternate_content_source)
|
415
|
+
|
416
|
+
# return_type
|
417
|
+
return_type = opts[:return_type] || 'FileFileAlternateContentSourceResponse'
|
418
|
+
|
419
|
+
# auth_names
|
420
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
421
|
+
|
422
|
+
new_options = opts.merge(
|
423
|
+
:header_params => header_params,
|
424
|
+
:query_params => query_params,
|
425
|
+
:form_params => form_params,
|
426
|
+
:body => post_body,
|
427
|
+
:auth_names => auth_names,
|
428
|
+
:return_type => return_type
|
429
|
+
)
|
430
|
+
|
431
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
432
|
+
if @api_client.config.debugging
|
433
|
+
@api_client.config.logger.debug "API called: AcsFileApi#refresh\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
434
|
+
end
|
435
|
+
return data, status_code, headers
|
436
|
+
end
|
437
|
+
|
438
|
+
# Update a file alternate content source
|
439
|
+
# Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
|
440
|
+
# @param file_file_alternate_content_source_href [String]
|
441
|
+
# @param file_file_alternate_content_source [FileFileAlternateContentSource]
|
442
|
+
# @param [Hash] opts the optional parameters
|
443
|
+
# @return [FileFileAlternateContentSourceResponse]
|
444
|
+
def update(file_file_alternate_content_source_href, file_file_alternate_content_source, opts = {})
|
445
|
+
data, _status_code, _headers = update_with_http_info(file_file_alternate_content_source_href, file_file_alternate_content_source, opts)
|
446
|
+
data
|
447
|
+
end
|
448
|
+
|
449
|
+
# Update a file alternate content source
|
450
|
+
# Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
|
451
|
+
# @param file_file_alternate_content_source_href [String]
|
452
|
+
# @param file_file_alternate_content_source [FileFileAlternateContentSource]
|
453
|
+
# @param [Hash] opts the optional parameters
|
454
|
+
# @return [Array<(FileFileAlternateContentSourceResponse, Integer, Hash)>] FileFileAlternateContentSourceResponse data, response status code and response headers
|
455
|
+
def update_with_http_info(file_file_alternate_content_source_href, file_file_alternate_content_source, opts = {})
|
456
|
+
if @api_client.config.debugging
|
457
|
+
@api_client.config.logger.debug 'Calling API: AcsFileApi.update ...'
|
458
|
+
end
|
459
|
+
# verify the required parameter 'file_file_alternate_content_source_href' is set
|
460
|
+
if @api_client.config.client_side_validation && file_file_alternate_content_source_href.nil?
|
461
|
+
fail ArgumentError, "Missing the required parameter 'file_file_alternate_content_source_href' when calling AcsFileApi.update"
|
462
|
+
end
|
463
|
+
# verify the required parameter 'file_file_alternate_content_source' is set
|
464
|
+
if @api_client.config.client_side_validation && file_file_alternate_content_source.nil?
|
465
|
+
fail ArgumentError, "Missing the required parameter 'file_file_alternate_content_source' when calling AcsFileApi.update"
|
466
|
+
end
|
467
|
+
# resource path
|
468
|
+
local_var_path = '{file_file_alternate_content_source_href}'.sub('{' + 'file_file_alternate_content_source_href' + '}', CGI.escape(file_file_alternate_content_source_href.to_s).gsub('%2F', '/'))
|
469
|
+
|
470
|
+
# query parameters
|
471
|
+
query_params = opts[:query_params] || {}
|
472
|
+
|
473
|
+
# header parameters
|
474
|
+
header_params = opts[:header_params] || {}
|
475
|
+
# HTTP header 'Accept' (if needed)
|
476
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
477
|
+
# HTTP header 'Content-Type'
|
478
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
479
|
+
|
480
|
+
# form parameters
|
481
|
+
form_params = opts[:form_params] || {}
|
482
|
+
|
483
|
+
# http body (model)
|
484
|
+
post_body = opts[:body] || @api_client.object_to_http_body(file_file_alternate_content_source)
|
485
|
+
|
486
|
+
# return_type
|
487
|
+
return_type = opts[:return_type] || 'FileFileAlternateContentSourceResponse'
|
488
|
+
|
489
|
+
# auth_names
|
490
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
491
|
+
|
492
|
+
new_options = opts.merge(
|
493
|
+
:header_params => header_params,
|
494
|
+
:query_params => query_params,
|
495
|
+
:form_params => form_params,
|
496
|
+
:body => post_body,
|
497
|
+
:auth_names => auth_names,
|
498
|
+
:return_type => return_type
|
499
|
+
)
|
500
|
+
|
501
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
502
|
+
if @api_client.config.debugging
|
503
|
+
@api_client.config.logger.debug "API called: AcsFileApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
504
|
+
end
|
505
|
+
return data, status_code, headers
|
506
|
+
end
|
507
|
+
end
|
508
|
+
end
|