pulp_file_client 3.69.2 → 3.70.1
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 +10 -7
- data/docs/AcsFileApi.md +343 -157
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentFilesApi.md +114 -64
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsFileApi.md +385 -182
- data/docs/FileFileAlternateContentSource.md +14 -13
- data/docs/FileFileAlternateContentSourceResponse.md +22 -21
- data/docs/FileFileContentResponse.md +30 -29
- data/docs/FileFileDistribution.md +20 -19
- data/docs/FileFileDistributionResponse.md +32 -31
- data/docs/FileFilePublication.md +12 -11
- data/docs/FileFilePublicationResponse.md +22 -21
- data/docs/FileFileRemote.md +48 -47
- data/docs/FileFileRemoteResponse.md +48 -47
- data/docs/FileFileRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/FileFileRepository.md +20 -19
- data/docs/FileFileRepositoryResponse.md +32 -31
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedfileFileAlternateContentSourceResponseList.md +14 -13
- data/docs/PaginatedfileFileContentResponseList.md +14 -13
- data/docs/PaginatedfileFileDistributionResponseList.md +14 -13
- data/docs/PaginatedfileFilePublicationResponseList.md +14 -13
- data/docs/PaginatedfileFileRemoteResponseList.md +14 -13
- data/docs/PaginatedfileFileRepositoryResponseList.md +14 -13
- data/docs/PatchedfileFileAlternateContentSource.md +14 -13
- data/docs/PatchedfileFileDistribution.md +20 -19
- data/docs/PatchedfileFileRemote.md +48 -47
- data/docs/PatchedfileFileRepository.md +20 -19
- data/docs/PolicyEnum.md +4 -5
- data/docs/PublicationsFileApi.md +267 -130
- data/docs/RemotesFileApi.md +389 -184
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesFileApi.md +444 -207
- data/docs/RepositoriesFileVersionsApi.md +152 -82
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositorySyncURL.md +10 -9
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/TaskGroupOperationResponse.md +8 -7
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_file_client/api/acs_file_api.rb +76 -50
- data/lib/pulp_file_client/api/content_files_api.rb +20 -14
- data/lib/pulp_file_client/api/distributions_file_api.rb +89 -56
- data/lib/pulp_file_client/api/publications_file_api.rb +67 -47
- data/lib/pulp_file_client/api/remotes_file_api.rb +104 -68
- data/lib/pulp_file_client/api/repositories_file_api.rb +107 -66
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +40 -30
- data/lib/pulp_file_client/api_client.rb +137 -102
- data/lib/pulp_file_client/api_error.rb +2 -1
- data/lib/pulp_file_client/configuration.rb +162 -21
- data/lib/pulp_file_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_file_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_file_client/models/file_file_alternate_content_source.rb +35 -23
- data/lib/pulp_file_client/models/file_file_alternate_content_source_response.rb +37 -25
- data/lib/pulp_file_client/models/file_file_content_response.rb +34 -24
- data/lib/pulp_file_client/models/file_file_distribution.rb +34 -22
- data/lib/pulp_file_client/models/file_file_distribution_response.rb +36 -24
- data/lib/pulp_file_client/models/file_file_publication.rb +30 -22
- data/lib/pulp_file_client/models/file_file_publication_response.rb +32 -24
- data/lib/pulp_file_client/models/file_file_remote.rb +56 -22
- data/lib/pulp_file_client/models/file_file_remote_response.rb +59 -25
- data/lib/pulp_file_client/models/{file_file_remote_response_hidden_fields.rb → file_file_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_file_client/models/file_file_repository.rb +32 -22
- data/lib/pulp_file_client/models/file_file_repository_response.rb +34 -24
- data/lib/pulp_file_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_file_client/models/nested_role.rb +32 -22
- data/lib/pulp_file_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_file_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_file_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_alternate_content_source_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_content_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_distribution_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_publication_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_remote_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_repository_response_list.rb +34 -22
- data/lib/pulp_file_client/models/patchedfile_file_alternate_content_source.rb +36 -24
- data/lib/pulp_file_client/models/patchedfile_file_distribution.rb +40 -24
- data/lib/pulp_file_client/models/patchedfile_file_remote.rb +62 -24
- data/lib/pulp_file_client/models/patchedfile_file_repository.rb +35 -23
- data/lib/pulp_file_client/models/policy_enum.rb +8 -4
- data/lib/pulp_file_client/models/repair.rb +30 -22
- data/lib/pulp_file_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_file_client/models/repository_sync_url.rb +30 -22
- data/lib/pulp_file_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_file_client/models/set_label.rb +34 -22
- data/lib/pulp_file_client/models/set_label_response.rb +34 -22
- data/lib/pulp_file_client/models/task_group_operation_response.rb +32 -22
- data/lib/pulp_file_client/models/unset_label.rb +32 -22
- data/lib/pulp_file_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_file_client/version.rb +2 -2
- data/lib/pulp_file_client.rb +2 -3
- data/pulp_file_client.gemspec +9 -6
- data/spec/api/acs_file_api_spec.rb +12 -12
- data/spec/api/content_files_api_spec.rb +4 -4
- data/spec/api/distributions_file_api_spec.rb +13 -13
- data/spec/api/publications_file_api_spec.rb +16 -15
- data/spec/api/remotes_file_api_spec.rb +20 -19
- data/spec/api/repositories_file_api_spec.rb +15 -15
- data/spec/api/repositories_file_versions_api_spec.rb +12 -11
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/file_file_alternate_content_source_response_spec.rb +14 -19
- data/spec/models/file_file_alternate_content_source_spec.rb +10 -15
- data/spec/models/file_file_content_response_spec.rb +18 -23
- data/spec/models/file_file_distribution_response_spec.rb +19 -24
- data/spec/models/file_file_distribution_spec.rb +13 -18
- data/spec/models/file_file_publication_response_spec.rb +14 -19
- data/spec/models/file_file_publication_spec.rb +9 -14
- data/spec/models/{file_file_remote_response_hidden_fields_spec.rb → file_file_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/file_file_remote_response_spec.rb +27 -32
- data/spec/models/file_file_remote_spec.rb +27 -32
- data/spec/models/file_file_repository_response_spec.rb +19 -24
- data/spec/models/file_file_repository_spec.rb +13 -18
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_content_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_publication_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_repository_response_list_spec.rb +10 -15
- data/spec/models/patchedfile_file_alternate_content_source_spec.rb +10 -15
- data/spec/models/patchedfile_file_distribution_spec.rb +13 -18
- data/spec/models/patchedfile_file_remote_spec.rb +27 -32
- data/spec/models/patchedfile_file_repository_spec.rb +13 -18
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_sync_url_spec.rb +8 -13
- data/spec/models/repository_version_response_spec.rb +14 -19
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/task_group_operation_response_spec.rb +7 -12
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +77 -57
- data/docs/FileFileContent.md +0 -27
- data/docs/FileFileRemoteResponseHiddenFields.md +0 -19
- data/lib/pulp_file_client/models/file_file_content.rb +0 -297
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/file_file_content_spec.rb +0 -71
@@ -2,16 +2,17 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**task** | **String** | The href of the task. |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **task** | **String** | The href of the task. | |
|
8
8
|
|
9
|
-
##
|
9
|
+
## Example
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'pulp_file_client'
|
13
13
|
|
14
|
-
instance = PulpFileClient::AsyncOperationResponse.new(
|
14
|
+
instance = PulpFileClient::AsyncOperationResponse.new(
|
15
|
+
task: null
|
16
|
+
)
|
15
17
|
```
|
16
18
|
|
17
|
-
|
data/docs/ContentFilesApi.md
CHANGED
@@ -2,26 +2,25 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**create**](ContentFilesApi.md#create) | **POST** /pulp/api/v3/content/file/files/ | Create a file content
|
8
|
-
[**list**](ContentFilesApi.md#list) | **GET** /pulp/api/v3/content/file/files/ | List file contents
|
9
|
-
[**read**](ContentFilesApi.md#read) | **GET** {file_file_content_href} | Inspect a file content
|
10
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create**](ContentFilesApi.md#create) | **POST** /pulp/api/v3/content/file/files/ | Create a file content |
|
8
|
+
| [**list**](ContentFilesApi.md#list) | **GET** /pulp/api/v3/content/file/files/ | List file contents |
|
9
|
+
| [**read**](ContentFilesApi.md#read) | **GET** {file_file_content_href} | Inspect a file content |
|
11
10
|
|
12
11
|
|
13
12
|
## create
|
14
13
|
|
15
|
-
> AsyncOperationResponse create(relative_path, opts)
|
14
|
+
> <AsyncOperationResponse> create(relative_path, opts)
|
16
15
|
|
17
16
|
Create a file content
|
18
17
|
|
19
18
|
Trigger an asynchronous task to create content,optionally create new repository version.
|
20
19
|
|
21
|
-
###
|
20
|
+
### Examples
|
22
21
|
|
23
22
|
```ruby
|
24
|
-
|
23
|
+
require 'time'
|
25
24
|
require 'pulp_file_client'
|
26
25
|
# setup authorization
|
27
26
|
PulpFileClient.configure do |config|
|
@@ -35,31 +34,48 @@ relative_path = 'relative_path_example' # String | Path where the artifact is lo
|
|
35
34
|
opts = {
|
36
35
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
37
36
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
38
|
-
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the content unit.
|
37
|
+
file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
|
39
38
|
upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
|
40
39
|
file_url: 'file_url_example' # String | A url that Pulp can download and turn into the content unit.
|
41
40
|
}
|
42
41
|
|
43
42
|
begin
|
44
|
-
#Create a file content
|
43
|
+
# Create a file content
|
45
44
|
result = api_instance.create(relative_path, opts)
|
46
45
|
p result
|
47
46
|
rescue PulpFileClient::ApiError => e
|
48
|
-
puts "
|
47
|
+
puts "Error when calling ContentFilesApi->create: #{e}"
|
49
48
|
end
|
50
49
|
```
|
51
50
|
|
52
|
-
|
51
|
+
#### Using the create_with_http_info variant
|
52
|
+
|
53
|
+
This returns an Array which contains the response data, status code and headers.
|
54
|
+
|
55
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> create_with_http_info(relative_path, opts)
|
56
|
+
|
57
|
+
```ruby
|
58
|
+
begin
|
59
|
+
# Create a file content
|
60
|
+
data, status_code, headers = api_instance.create_with_http_info(relative_path, opts)
|
61
|
+
p status_code # => 2xx
|
62
|
+
p headers # => { ... }
|
63
|
+
p data # => <AsyncOperationResponse>
|
64
|
+
rescue PulpFileClient::ApiError => e
|
65
|
+
puts "Error when calling ContentFilesApi->create_with_http_info: #{e}"
|
66
|
+
end
|
67
|
+
```
|
53
68
|
|
69
|
+
### Parameters
|
54
70
|
|
55
|
-
Name | Type | Description
|
56
|
-
|
57
|
-
**relative_path** | **String
|
58
|
-
**repository** | **String
|
59
|
-
**artifact** | **String
|
60
|
-
**file** | **File
|
61
|
-
**upload** | **String
|
62
|
-
**file_url** | **String
|
71
|
+
| Name | Type | Description | Notes |
|
72
|
+
| ---- | ---- | ----------- | ----- |
|
73
|
+
| **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | |
|
74
|
+
| **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
|
75
|
+
| **artifact** | **String** | Artifact file representing the physical content | [optional] |
|
76
|
+
| **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
|
77
|
+
| **upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional] |
|
78
|
+
| **file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional] |
|
63
79
|
|
64
80
|
### Return type
|
65
81
|
|
@@ -77,16 +93,16 @@ Name | Type | Description | Notes
|
|
77
93
|
|
78
94
|
## list
|
79
95
|
|
80
|
-
> PaginatedfileFileContentResponseList list(opts)
|
96
|
+
> <PaginatedfileFileContentResponseList> list(opts)
|
81
97
|
|
82
98
|
List file contents
|
83
99
|
|
84
100
|
FileContent represents a single file and its metadata, which can be added and removed from repositories.
|
85
101
|
|
86
|
-
###
|
102
|
+
### Examples
|
87
103
|
|
88
104
|
```ruby
|
89
|
-
|
105
|
+
require 'time'
|
90
106
|
require 'pulp_file_client'
|
91
107
|
# setup authorization
|
92
108
|
PulpFileClient.configure do |config|
|
@@ -99,50 +115,67 @@ api_instance = PulpFileClient::ContentFilesApi.new
|
|
99
115
|
opts = {
|
100
116
|
limit: 56, # Integer | Number of results to return per page.
|
101
117
|
offset: 56, # Integer | The initial index from which to return the results.
|
102
|
-
ordering: ['
|
103
|
-
orphaned_for:
|
104
|
-
prn__in: ['
|
105
|
-
pulp_href__in: ['
|
106
|
-
pulp_id__in: ['
|
118
|
+
ordering: ['-digest'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
119
|
+
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
120
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
121
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
122
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
107
123
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
108
124
|
relative_path: 'relative_path_example', # String | Filter results where relative_path matches value
|
109
125
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
110
126
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
111
127
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF/PRN
|
112
128
|
sha256: 'sha256_example', # String |
|
113
|
-
fields: ['
|
114
|
-
exclude_fields: ['
|
129
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
130
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
115
131
|
}
|
116
132
|
|
117
133
|
begin
|
118
|
-
#List file contents
|
134
|
+
# List file contents
|
119
135
|
result = api_instance.list(opts)
|
120
136
|
p result
|
121
137
|
rescue PulpFileClient::ApiError => e
|
122
|
-
puts "
|
138
|
+
puts "Error when calling ContentFilesApi->list: #{e}"
|
123
139
|
end
|
124
140
|
```
|
125
141
|
|
126
|
-
|
142
|
+
#### Using the list_with_http_info variant
|
127
143
|
|
144
|
+
This returns an Array which contains the response data, status code and headers.
|
128
145
|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
+
> <Array(<PaginatedfileFileContentResponseList>, Integer, Hash)> list_with_http_info(opts)
|
147
|
+
|
148
|
+
```ruby
|
149
|
+
begin
|
150
|
+
# List file contents
|
151
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
152
|
+
p status_code # => 2xx
|
153
|
+
p headers # => { ... }
|
154
|
+
p data # => <PaginatedfileFileContentResponseList>
|
155
|
+
rescue PulpFileClient::ApiError => e
|
156
|
+
puts "Error when calling ContentFilesApi->list_with_http_info: #{e}"
|
157
|
+
end
|
158
|
+
```
|
159
|
+
|
160
|
+
### Parameters
|
161
|
+
|
162
|
+
| Name | Type | Description | Notes |
|
163
|
+
| ---- | ---- | ----------- | ----- |
|
164
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
165
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
166
|
+
| **ordering** | [**Array<String>**](String.md) | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
167
|
+
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
168
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
169
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
170
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
171
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
172
|
+
| **relative_path** | **String** | Filter results where relative_path matches value | [optional] |
|
173
|
+
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
174
|
+
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
175
|
+
| **repository_version_removed** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
176
|
+
| **sha256** | **String** | | [optional] |
|
177
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
178
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
146
179
|
|
147
180
|
### Return type
|
148
181
|
|
@@ -160,16 +193,16 @@ Name | Type | Description | Notes
|
|
160
193
|
|
161
194
|
## read
|
162
195
|
|
163
|
-
> FileFileContentResponse read(file_file_content_href, opts)
|
196
|
+
> <FileFileContentResponse> read(file_file_content_href, opts)
|
164
197
|
|
165
198
|
Inspect a file content
|
166
199
|
|
167
200
|
FileContent represents a single file and its metadata, which can be added and removed from repositories.
|
168
201
|
|
169
|
-
###
|
202
|
+
### Examples
|
170
203
|
|
171
204
|
```ruby
|
172
|
-
|
205
|
+
require 'time'
|
173
206
|
require 'pulp_file_client'
|
174
207
|
# setup authorization
|
175
208
|
PulpFileClient.configure do |config|
|
@@ -181,27 +214,44 @@ end
|
|
181
214
|
api_instance = PulpFileClient::ContentFilesApi.new
|
182
215
|
file_file_content_href = 'file_file_content_href_example' # String |
|
183
216
|
opts = {
|
184
|
-
fields: ['
|
185
|
-
exclude_fields: ['
|
217
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
218
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
186
219
|
}
|
187
220
|
|
188
221
|
begin
|
189
|
-
#Inspect a file content
|
222
|
+
# Inspect a file content
|
190
223
|
result = api_instance.read(file_file_content_href, opts)
|
191
224
|
p result
|
192
225
|
rescue PulpFileClient::ApiError => e
|
193
|
-
puts "
|
226
|
+
puts "Error when calling ContentFilesApi->read: #{e}"
|
194
227
|
end
|
195
228
|
```
|
196
229
|
|
197
|
-
|
230
|
+
#### Using the read_with_http_info variant
|
231
|
+
|
232
|
+
This returns an Array which contains the response data, status code and headers.
|
233
|
+
|
234
|
+
> <Array(<FileFileContentResponse>, Integer, Hash)> read_with_http_info(file_file_content_href, opts)
|
198
235
|
|
236
|
+
```ruby
|
237
|
+
begin
|
238
|
+
# Inspect a file content
|
239
|
+
data, status_code, headers = api_instance.read_with_http_info(file_file_content_href, opts)
|
240
|
+
p status_code # => 2xx
|
241
|
+
p headers # => { ... }
|
242
|
+
p data # => <FileFileContentResponse>
|
243
|
+
rescue PulpFileClient::ApiError => e
|
244
|
+
puts "Error when calling ContentFilesApi->read_with_http_info: #{e}"
|
245
|
+
end
|
246
|
+
```
|
247
|
+
|
248
|
+
### Parameters
|
199
249
|
|
200
|
-
Name | Type | Description
|
201
|
-
|
202
|
-
**file_file_content_href** | **String
|
203
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
204
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
250
|
+
| Name | Type | Description | Notes |
|
251
|
+
| ---- | ---- | ----------- | ----- |
|
252
|
+
| **file_file_content_href** | **String** | | |
|
253
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
254
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
205
255
|
|
206
256
|
### Return type
|
207
257
|
|
@@ -2,20 +2,21 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**added** | **Hash<String, Object>** | |
|
8
|
-
**removed** | **Hash<String, Object>** | |
|
9
|
-
**present** | **Hash<String, Object>** | |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **added** | **Hash<String, Object>** | | |
|
8
|
+
| **removed** | **Hash<String, Object>** | | |
|
9
|
+
| **present** | **Hash<String, Object>** | | |
|
10
10
|
|
11
|
-
##
|
11
|
+
## Example
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
require '
|
14
|
+
require 'pulp_file_client'
|
15
15
|
|
16
|
-
instance = PulpFileClient::ContentSummaryResponse.new(
|
17
|
-
|
18
|
-
|
16
|
+
instance = PulpFileClient::ContentSummaryResponse.new(
|
17
|
+
added: null,
|
18
|
+
removed: null,
|
19
|
+
present: null
|
20
|
+
)
|
19
21
|
```
|
20
22
|
|
21
|
-
|