pulp_file_client 0.1.0b4 → 0.1.0rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -9
- data/docs/ContentFilesApi.md +2 -2
- data/docs/ContentSummary.md +21 -0
- data/docs/DistributionsFileApi.md +8 -8
- data/docs/FileExportersFileApi.md +408 -0
- data/docs/{FileContent.md → FileFileContent.md} +2 -6
- data/docs/{FileDistribution.md → FileFileDistribution.md} +2 -2
- data/docs/FileFileFileSystemExporter.md +23 -0
- data/docs/{FilePublication.md → FileFilePublication.md} +2 -2
- data/docs/{FileRemote.md → FileFileRemote.md} +10 -14
- data/docs/FileFileRepository.md +27 -0
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +23 -0
- data/docs/InlineResponse2005.md +23 -0
- data/docs/InlineResponse2006.md +23 -0
- data/docs/PublicationExport.md +17 -0
- data/docs/PublicationsFileApi.md +9 -9
- data/docs/RemotesFileApi.md +12 -67
- data/docs/RepositoriesFileApi.md +464 -0
- data/docs/RepositoriesFileVersionsApi.md +214 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/RepositorySyncURL.md +2 -2
- data/docs/RepositoryVersion.md +25 -0
- data/lib/pulp_file_client/api/content_files_api.rb +4 -4
- data/lib/pulp_file_client/api/distributions_file_api.rb +10 -10
- data/lib/pulp_file_client/api/file_exporters_file_api.rb +496 -0
- data/lib/pulp_file_client/api/publications_file_api.rb +15 -15
- data/lib/pulp_file_client/api/remotes_file_api.rb +16 -84
- data/lib/pulp_file_client/api/repositories_file_api.rb +566 -0
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +268 -0
- data/lib/pulp_file_client/api_client.rb +1 -1
- data/lib/pulp_file_client/api_error.rb +1 -1
- data/lib/pulp_file_client/configuration.rb +1 -1
- data/lib/pulp_file_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_file_client/models/content_summary.rb +246 -0
- data/lib/pulp_file_client/models/{file_content.rb → file_file_content.rb} +16 -26
- data/lib/pulp_file_client/models/{file_distribution.rb → file_file_distribution.rb} +17 -23
- data/lib/pulp_file_client/models/file_file_file_system_exporter.rb +284 -0
- data/lib/pulp_file_client/models/{file_publication.rb → file_file_publication.rb} +16 -5
- data/lib/pulp_file_client/models/{file_remote.rb → file_file_remote.rb} +69 -105
- data/lib/pulp_file_client/models/file_file_repository.rb +294 -0
- data/lib/pulp_file_client/models/inline_response200.rb +15 -3
- data/lib/pulp_file_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_file_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_file_client/models/inline_response2003.rb +15 -3
- data/lib/pulp_file_client/models/inline_response2004.rb +247 -0
- data/lib/pulp_file_client/models/inline_response2005.rb +247 -0
- data/lib/pulp_file_client/models/inline_response2006.rb +247 -0
- data/lib/pulp_file_client/models/publication_export.rb +212 -0
- data/lib/pulp_file_client/models/repository_add_remove_content.rb +231 -0
- data/lib/pulp_file_client/models/repository_sync_url.rb +22 -12
- data/lib/pulp_file_client/models/repository_version.rb +244 -0
- data/lib/pulp_file_client/version.rb +2 -2
- data/lib/pulp_file_client.rb +17 -5
- data/pulp_file_client.gemspec +1 -1
- data/spec/api/content_files_api_spec.rb +2 -2
- data/spec/api/distributions_file_api_spec.rb +2 -2
- data/spec/api/file_exporters_file_api_spec.rb +128 -0
- data/spec/api/publications_file_api_spec.rb +6 -6
- data/spec/api/remotes_file_api_spec.rb +4 -16
- data/spec/api/repositories_file_api_spec.rb +140 -0
- data/spec/api/repositories_file_versions_api_spec.rb +91 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/{file_content_spec.rb → file_file_content_spec.rb} +7 -19
- data/spec/models/{file_distribution_spec.rb → file_file_distribution_spec.rb} +7 -7
- data/spec/models/file_file_file_system_exporter_spec.rb +59 -0
- data/spec/models/{file_publication_spec.rb → file_file_publication_spec.rb} +7 -7
- data/spec/models/{file_remote_spec.rb → file_file_remote_spec.rb} +11 -23
- data/spec/models/file_file_repository_spec.rb +71 -0
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +59 -0
- data/spec/models/inline_response2005_spec.rb +59 -0
- data/spec/models/inline_response2006_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/publication_export_spec.rb +41 -0
- data/spec/models/repository_add_remove_content_spec.rb +53 -0
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/spec_helper.rb +1 -1
- metadata +66 -18
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpFileClient::FileFileFileSystemExporter
|
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
|
+
**path** | **String** | File system location to export to. |
|
10
|
+
**name** | **String** | Unique name of the file system exporter. |
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpFileClient'
|
16
|
+
|
17
|
+
instance = PulpFileClient::FileFileFileSystemExporter.new(pulp_href: null,
|
18
|
+
pulp_created: null,
|
19
|
+
path: null,
|
20
|
+
name: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# PulpFileClient::
|
1
|
+
# PulpFileClient::FileFilePublication
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
|
|
17
17
|
```ruby
|
18
18
|
require 'PulpFileClient'
|
19
19
|
|
20
|
-
instance = PulpFileClient::
|
20
|
+
instance = PulpFileClient::FileFilePublication.new(pulp_href: null,
|
21
21
|
pulp_created: null,
|
22
22
|
publisher: null,
|
23
23
|
repository_version: null,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# PulpFileClient::
|
1
|
+
# PulpFileClient::FileFileRemote
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -8,13 +8,11 @@ Name | Type | Description | Notes
|
|
8
8
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
9
|
**name** | **String** | A unique name for this remote. |
|
10
10
|
**url** | **String** | The URL of an external content source. |
|
11
|
-
**
|
12
|
-
**
|
13
|
-
**
|
14
|
-
**
|
11
|
+
**ca_cert** | **String** | A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. Returns SHA256 sum on GET. | [optional]
|
12
|
+
**client_cert** | **String** | A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. Returns SHA256 sum on GET. | [optional]
|
13
|
+
**client_key** | **String** | A PEM encoded private key used for authentication. Returns SHA256 sum on GET. | [optional]
|
14
|
+
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
15
15
|
**proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [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. | [optional]
|
18
16
|
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
19
17
|
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
|
20
18
|
**policy** | **String** | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. | [optional] [default to 'immediate']
|
@@ -24,17 +22,15 @@ Name | Type | Description | Notes
|
|
24
22
|
```ruby
|
25
23
|
require 'PulpFileClient'
|
26
24
|
|
27
|
-
instance = PulpFileClient::
|
25
|
+
instance = PulpFileClient::FileFileRemote.new(pulp_href: null,
|
28
26
|
pulp_created: null,
|
29
27
|
name: null,
|
30
28
|
url: null,
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
29
|
+
ca_cert: null,
|
30
|
+
client_cert: null,
|
31
|
+
client_key: null,
|
32
|
+
tls_validation: null,
|
35
33
|
proxy_url: null,
|
36
|
-
username: null,
|
37
|
-
password: null,
|
38
34
|
pulp_last_updated: null,
|
39
35
|
download_concurrency: null,
|
40
36
|
policy: null)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# PulpFileClient::FileFileRepository
|
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
|
+
**versions_href** | **String** | | [optional] [readonly]
|
10
|
+
**latest_version_href** | **String** | | [optional] [readonly]
|
11
|
+
**name** | **String** | A unique name for this repository. |
|
12
|
+
**description** | **String** | An optional description. | [optional]
|
13
|
+
|
14
|
+
## Code Sample
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'PulpFileClient'
|
18
|
+
|
19
|
+
instance = PulpFileClient::FileFileRepository.new(pulp_href: null,
|
20
|
+
pulp_created: null,
|
21
|
+
versions_href: null,
|
22
|
+
latest_version_href: null,
|
23
|
+
name: null,
|
24
|
+
description: null)
|
25
|
+
```
|
26
|
+
|
27
|
+
|
data/docs/InlineResponse200.md
CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**count** | **Integer** | |
|
8
8
|
**_next** | **String** | | [optional]
|
9
9
|
**previous** | **String** | | [optional]
|
10
|
-
**results** | [**Array<
|
10
|
+
**results** | [**Array<FileFileContent>**](FileFileContent.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
data/docs/InlineResponse2001.md
CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**count** | **Integer** | |
|
8
8
|
**_next** | **String** | | [optional]
|
9
9
|
**previous** | **String** | | [optional]
|
10
|
-
**results** | [**Array<
|
10
|
+
**results** | [**Array<FileFileDistribution>**](FileFileDistribution.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
data/docs/InlineResponse2002.md
CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**count** | **Integer** | |
|
8
8
|
**_next** | **String** | | [optional]
|
9
9
|
**previous** | **String** | | [optional]
|
10
|
-
**results** | [**Array<
|
10
|
+
**results** | [**Array<FileFileFileSystemExporter>**](FileFileFileSystemExporter.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
data/docs/InlineResponse2003.md
CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**count** | **Integer** | |
|
8
8
|
**_next** | **String** | | [optional]
|
9
9
|
**previous** | **String** | | [optional]
|
10
|
-
**results** | [**Array<
|
10
|
+
**results** | [**Array<FileFilePublication>**](FileFilePublication.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpFileClient::InlineResponse2004
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | |
|
8
|
+
**_next** | **String** | | [optional]
|
9
|
+
**previous** | **String** | | [optional]
|
10
|
+
**results** | [**Array<FileFileRemote>**](FileFileRemote.md) | |
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpFileClient'
|
16
|
+
|
17
|
+
instance = PulpFileClient::InlineResponse2004.new(count: null,
|
18
|
+
_next: null,
|
19
|
+
previous: null,
|
20
|
+
results: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpFileClient::InlineResponse2005
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | |
|
8
|
+
**_next** | **String** | | [optional]
|
9
|
+
**previous** | **String** | | [optional]
|
10
|
+
**results** | [**Array<FileFileRepository>**](FileFileRepository.md) | |
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpFileClient'
|
16
|
+
|
17
|
+
instance = PulpFileClient::InlineResponse2005.new(count: null,
|
18
|
+
_next: null,
|
19
|
+
previous: null,
|
20
|
+
results: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpFileClient::InlineResponse2006
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | |
|
8
|
+
**_next** | **String** | | [optional]
|
9
|
+
**previous** | **String** | | [optional]
|
10
|
+
**results** | [**Array<RepositoryVersion>**](RepositoryVersion.md) | |
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpFileClient'
|
16
|
+
|
17
|
+
instance = PulpFileClient::InlineResponse2006.new(count: null,
|
18
|
+
_next: null,
|
19
|
+
previous: null,
|
20
|
+
results: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# PulpFileClient::PublicationExport
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**publication** | **String** | A URI of the publication to be exported. |
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'PulpFileClient'
|
13
|
+
|
14
|
+
instance = PulpFileClient::PublicationExport.new(publication: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/PublicationsFileApi.md
CHANGED
@@ -32,7 +32,7 @@ PulpFileClient.configure do |config|
|
|
32
32
|
end
|
33
33
|
|
34
34
|
api_instance = PulpFileClient::PublicationsFileApi.new
|
35
|
-
data = PulpFileClient::
|
35
|
+
data = PulpFileClient::FileFilePublication.new # FileFilePublication |
|
36
36
|
|
37
37
|
begin
|
38
38
|
#Create a file publication
|
@@ -48,7 +48,7 @@ end
|
|
48
48
|
|
49
49
|
Name | Type | Description | Notes
|
50
50
|
------------- | ------------- | ------------- | -------------
|
51
|
-
**data** | [**
|
51
|
+
**data** | [**FileFilePublication**](FileFilePublication.md)| |
|
52
52
|
|
53
53
|
### Return type
|
54
54
|
|
@@ -70,7 +70,7 @@ Name | Type | Description | Notes
|
|
70
70
|
|
71
71
|
Delete a file publication
|
72
72
|
|
73
|
-
A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
|
73
|
+
A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
|
74
74
|
|
75
75
|
### Example
|
76
76
|
|
@@ -118,11 +118,11 @@ nil (empty response body)
|
|
118
118
|
|
119
119
|
## list
|
120
120
|
|
121
|
-
>
|
121
|
+
> InlineResponse2003 list(opts)
|
122
122
|
|
123
123
|
List file publications
|
124
124
|
|
125
|
-
A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
|
125
|
+
A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
|
126
126
|
|
127
127
|
### Example
|
128
128
|
|
@@ -167,7 +167,7 @@ Name | Type | Description | Notes
|
|
167
167
|
|
168
168
|
### Return type
|
169
169
|
|
170
|
-
[**
|
170
|
+
[**InlineResponse2003**](InlineResponse2003.md)
|
171
171
|
|
172
172
|
### Authorization
|
173
173
|
|
@@ -181,11 +181,11 @@ Name | Type | Description | Notes
|
|
181
181
|
|
182
182
|
## read
|
183
183
|
|
184
|
-
>
|
184
|
+
> FileFilePublication read(file_publication_href, opts)
|
185
185
|
|
186
186
|
Inspect a file publication
|
187
187
|
|
188
|
-
A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
|
188
|
+
A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
|
189
189
|
|
190
190
|
### Example
|
191
191
|
|
@@ -226,7 +226,7 @@ Name | Type | Description | Notes
|
|
226
226
|
|
227
227
|
### Return type
|
228
228
|
|
229
|
-
[**
|
229
|
+
[**FileFilePublication**](FileFilePublication.md)
|
230
230
|
|
231
231
|
### Authorization
|
232
232
|
|
data/docs/RemotesFileApi.md
CHANGED
@@ -9,14 +9,13 @@ Method | HTTP request | Description
|
|
9
9
|
[**list**](RemotesFileApi.md#list) | **GET** /pulp/api/v3/remotes/file/file/ | List file remotes
|
10
10
|
[**partial_update**](RemotesFileApi.md#partial_update) | **PATCH** {file_remote_href} | Partially update a file remote
|
11
11
|
[**read**](RemotesFileApi.md#read) | **GET** {file_remote_href} | Inspect a file remote
|
12
|
-
[**sync**](RemotesFileApi.md#sync) | **POST** {file_remote_href}sync/ |
|
13
12
|
[**update**](RemotesFileApi.md#update) | **PUT** {file_remote_href} | Update a file remote
|
14
13
|
|
15
14
|
|
16
15
|
|
17
16
|
## create
|
18
17
|
|
19
|
-
>
|
18
|
+
> FileFileRemote create(data)
|
20
19
|
|
21
20
|
Create a file remote
|
22
21
|
|
@@ -35,7 +34,7 @@ PulpFileClient.configure do |config|
|
|
35
34
|
end
|
36
35
|
|
37
36
|
api_instance = PulpFileClient::RemotesFileApi.new
|
38
|
-
data = PulpFileClient::
|
37
|
+
data = PulpFileClient::FileFileRemote.new # FileFileRemote |
|
39
38
|
|
40
39
|
begin
|
41
40
|
#Create a file remote
|
@@ -51,11 +50,11 @@ end
|
|
51
50
|
|
52
51
|
Name | Type | Description | Notes
|
53
52
|
------------- | ------------- | ------------- | -------------
|
54
|
-
**data** | [**
|
53
|
+
**data** | [**FileFileRemote**](FileFileRemote.md)| |
|
55
54
|
|
56
55
|
### Return type
|
57
56
|
|
58
|
-
[**
|
57
|
+
[**FileFileRemote**](FileFileRemote.md)
|
59
58
|
|
60
59
|
### Authorization
|
61
60
|
|
@@ -122,7 +121,7 @@ Name | Type | Description | Notes
|
|
122
121
|
|
123
122
|
## list
|
124
123
|
|
125
|
-
>
|
124
|
+
> InlineResponse2004 list(opts)
|
126
125
|
|
127
126
|
List file remotes
|
128
127
|
|
@@ -185,7 +184,7 @@ Name | Type | Description | Notes
|
|
185
184
|
|
186
185
|
### Return type
|
187
186
|
|
188
|
-
[**
|
187
|
+
[**InlineResponse2004**](InlineResponse2004.md)
|
189
188
|
|
190
189
|
### Authorization
|
191
190
|
|
@@ -219,7 +218,7 @@ end
|
|
219
218
|
|
220
219
|
api_instance = PulpFileClient::RemotesFileApi.new
|
221
220
|
file_remote_href = 'file_remote_href_example' # String | URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
|
222
|
-
data = PulpFileClient::
|
221
|
+
data = PulpFileClient::FileFileRemote.new # FileFileRemote |
|
223
222
|
|
224
223
|
begin
|
225
224
|
#Partially update a file remote
|
@@ -236,7 +235,7 @@ end
|
|
236
235
|
Name | Type | Description | Notes
|
237
236
|
------------- | ------------- | ------------- | -------------
|
238
237
|
**file_remote_href** | **String**| URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/ |
|
239
|
-
**data** | [**
|
238
|
+
**data** | [**FileFileRemote**](FileFileRemote.md)| |
|
240
239
|
|
241
240
|
### Return type
|
242
241
|
|
@@ -254,7 +253,7 @@ Name | Type | Description | Notes
|
|
254
253
|
|
255
254
|
## read
|
256
255
|
|
257
|
-
>
|
256
|
+
> FileFileRemote read(file_remote_href, opts)
|
258
257
|
|
259
258
|
Inspect a file remote
|
260
259
|
|
@@ -299,7 +298,7 @@ Name | Type | Description | Notes
|
|
299
298
|
|
300
299
|
### Return type
|
301
300
|
|
302
|
-
[**
|
301
|
+
[**FileFileRemote**](FileFileRemote.md)
|
303
302
|
|
304
303
|
### Authorization
|
305
304
|
|
@@ -311,60 +310,6 @@ Name | Type | Description | Notes
|
|
311
310
|
- **Accept**: application/json
|
312
311
|
|
313
312
|
|
314
|
-
## sync
|
315
|
-
|
316
|
-
> AsyncOperationResponse sync(file_remote_href, data)
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
Trigger an asynchronous task to sync file content.
|
321
|
-
|
322
|
-
### Example
|
323
|
-
|
324
|
-
```ruby
|
325
|
-
# load the gem
|
326
|
-
require 'pulp_file_client'
|
327
|
-
# setup authorization
|
328
|
-
PulpFileClient.configure do |config|
|
329
|
-
# Configure HTTP basic authorization: Basic
|
330
|
-
config.username = 'YOUR USERNAME'
|
331
|
-
config.password = 'YOUR PASSWORD'
|
332
|
-
end
|
333
|
-
|
334
|
-
api_instance = PulpFileClient::RemotesFileApi.new
|
335
|
-
file_remote_href = 'file_remote_href_example' # String | URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
|
336
|
-
data = PulpFileClient::RepositorySyncURL.new # RepositorySyncURL |
|
337
|
-
|
338
|
-
begin
|
339
|
-
result = api_instance.sync(file_remote_href, data)
|
340
|
-
p result
|
341
|
-
rescue PulpFileClient::ApiError => e
|
342
|
-
puts "Exception when calling RemotesFileApi->sync: #{e}"
|
343
|
-
end
|
344
|
-
```
|
345
|
-
|
346
|
-
### Parameters
|
347
|
-
|
348
|
-
|
349
|
-
Name | Type | Description | Notes
|
350
|
-
------------- | ------------- | ------------- | -------------
|
351
|
-
**file_remote_href** | **String**| URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/ |
|
352
|
-
**data** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
|
353
|
-
|
354
|
-
### Return type
|
355
|
-
|
356
|
-
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
357
|
-
|
358
|
-
### Authorization
|
359
|
-
|
360
|
-
[Basic](../README.md#Basic)
|
361
|
-
|
362
|
-
### HTTP request headers
|
363
|
-
|
364
|
-
- **Content-Type**: application/json
|
365
|
-
- **Accept**: application/json
|
366
|
-
|
367
|
-
|
368
313
|
## update
|
369
314
|
|
370
315
|
> AsyncOperationResponse update(file_remote_href, data)
|
@@ -387,7 +332,7 @@ end
|
|
387
332
|
|
388
333
|
api_instance = PulpFileClient::RemotesFileApi.new
|
389
334
|
file_remote_href = 'file_remote_href_example' # String | URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
|
390
|
-
data = PulpFileClient::
|
335
|
+
data = PulpFileClient::FileFileRemote.new # FileFileRemote |
|
391
336
|
|
392
337
|
begin
|
393
338
|
#Update a file remote
|
@@ -404,7 +349,7 @@ end
|
|
404
349
|
Name | Type | Description | Notes
|
405
350
|
------------- | ------------- | ------------- | -------------
|
406
351
|
**file_remote_href** | **String**| URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/ |
|
407
|
-
**data** | [**
|
352
|
+
**data** | [**FileFileRemote**](FileFileRemote.md)| |
|
408
353
|
|
409
354
|
### Return type
|
410
355
|
|