pulp_file_client 1.8.2 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -15
  3. data/docs/AcsFileApi.md +416 -0
  4. data/docs/ContentFilesApi.md +1 -1
  5. data/docs/DistributionsFileApi.md +1 -1
  6. data/docs/FileFileAlternateContentSource.md +23 -0
  7. data/docs/FileFileAlternateContentSourceResponse.md +27 -0
  8. data/docs/FileFileRepository.md +3 -3
  9. data/docs/FileFileRepositoryResponse.md +3 -3
  10. data/docs/PaginatedfileFileAlternateContentSourceResponseList.md +23 -0
  11. data/docs/PatchedfileFileAlternateContentSource.md +23 -0
  12. data/docs/PatchedfileFileRepository.md +3 -3
  13. data/docs/PublicationsFileApi.md +1 -1
  14. data/docs/RemotesFileApi.md +1 -1
  15. data/docs/RepositoriesFileApi.md +1 -1
  16. data/docs/RepositoriesFileVersionsApi.md +1 -1
  17. data/lib/pulp_file_client/api/acs_file_api.rb +508 -0
  18. data/lib/pulp_file_client/configuration.rb +2 -2
  19. data/lib/pulp_file_client/models/file_file_alternate_content_source.rb +251 -0
  20. data/lib/pulp_file_client/models/file_file_alternate_content_source_response.rb +270 -0
  21. data/lib/pulp_file_client/models/file_file_repository.rb +17 -16
  22. data/lib/pulp_file_client/models/file_file_repository_response.rb +17 -16
  23. data/lib/pulp_file_client/models/paginatedfile_file_alternate_content_source_response_list.rb +237 -0
  24. data/lib/pulp_file_client/models/patchedfile_file_alternate_content_source.rb +241 -0
  25. data/lib/pulp_file_client/models/patchedfile_file_repository.rb +17 -16
  26. data/lib/pulp_file_client/version.rb +1 -1
  27. data/lib/pulp_file_client.rb +5 -0
  28. data/spec/api/acs_file_api_spec.rb +132 -0
  29. data/spec/configuration_spec.rb +3 -3
  30. data/spec/models/file_file_alternate_content_source_response_spec.rb +71 -0
  31. data/spec/models/file_file_alternate_content_source_spec.rb +59 -0
  32. data/spec/models/file_file_repository_response_spec.rb +1 -1
  33. data/spec/models/file_file_repository_spec.rb +1 -1
  34. data/spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb +59 -0
  35. data/spec/models/patchedfile_file_alternate_content_source_spec.rb +59 -0
  36. data/spec/models/patchedfile_file_repository_spec.rb +1 -1
  37. metadata +45 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f94978a10aa60c8d0d086d7d473abd0d5e7335e295f693c66c3730e60c59130
4
- data.tar.gz: 7a3093a79e98315e3bafbf43517e1d3e66b122bc6a8f6a2ca717c8384769ecec
3
+ metadata.gz: 7ab1de40c7b3b018b1de914542a49dad0e9d0b654d587a70e298b2bc8a0e3175
4
+ data.tar.gz: 1eeb8b446e2bfe85bd104ef407ddbb4aec6843af0b055acf7e248e2d1bc91350
5
5
  SHA512:
6
- metadata.gz: 0d8c75049f0e496022d0e58bcf08c919700a0e076a4c233f631029931339185c62d4aac4c925dabad188558172ab851fffab313d8ecb65880422f0701e37a2f1
7
- data.tar.gz: c393c36f1621f6c89446b6d0f184dfdc9e6d1d88b8cf2cc3873e02194ee4236f2aba6ad1672e42aa92266286850991fa3a261f50b21796a030c2acfa6de14e27
6
+ metadata.gz: 66cf85d087081c62019d70b5662558f8a41100fa9886a42d13409eb4bf5a4c95029880b10749b85ee86a00f68b98374c5e064e7eecae33a890eade9e094c10a2
7
+ data.tar.gz: e5a8504db98f586de1f4baf2fd886cae8ee886b1402f52a95e65f1eedddac417c0f5acd41aea74c4c05c372b4ee507536e92131427d4be8920a4acda5a7d09cd
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 1.8.2
10
+ - Package version: 1.9.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_file_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_file_client-1.8.2.gem
27
+ gem install ./pulp_file_client-1.9.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_file_client-1.8.2.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_file_client-1.9.0.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_file_client', '~> 1.8.2'
36
+ gem 'pulp_file_client', '~> 1.9.0'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -64,30 +64,32 @@ PulpFileClient.configure do |config|
64
64
  config.password = 'YOUR_PASSWORD'
65
65
  end
66
66
 
67
- api_instance = PulpFileClient::ContentFilesApi.new
68
- relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
69
- opts = {
70
- artifact: 'artifact_example', # String | Artifact file representing the physical content
71
- file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
72
- repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
73
- }
67
+ api_instance = PulpFileClient::AcsFileApi.new
68
+ file_file_alternate_content_source = PulpFileClient::FileFileAlternateContentSource.new # FileFileAlternateContentSource |
74
69
 
75
70
  begin
76
- #Create a file content
77
- result = api_instance.create(relative_path, opts)
71
+ #Create a file alternate content source
72
+ result = api_instance.create(file_file_alternate_content_source)
78
73
  p result
79
74
  rescue PulpFileClient::ApiError => e
80
- puts "Exception when calling ContentFilesApi->create: #{e}"
75
+ puts "Exception when calling AcsFileApi->create: #{e}"
81
76
  end
82
77
 
83
78
  ```
84
79
 
85
80
  ## Documentation for API Endpoints
86
81
 
87
- All URIs are relative to *http://pulp*
82
+ All URIs are relative to *https://pulp*
88
83
 
89
84
  Class | Method | HTTP request | Description
90
85
  ------------ | ------------- | ------------- | -------------
86
+ *PulpFileClient::AcsFileApi* | [**create**](docs/AcsFileApi.md#create) | **POST** /pulp/api/v3/acs/file/file/ | Create a file alternate content source
87
+ *PulpFileClient::AcsFileApi* | [**delete**](docs/AcsFileApi.md#delete) | **DELETE** {file_file_alternate_content_source_href} | Delete a file alternate content source
88
+ *PulpFileClient::AcsFileApi* | [**list**](docs/AcsFileApi.md#list) | **GET** /pulp/api/v3/acs/file/file/ | List file alternate content sources
89
+ *PulpFileClient::AcsFileApi* | [**partial_update**](docs/AcsFileApi.md#partial_update) | **PATCH** {file_file_alternate_content_source_href} | Update a file alternate content source
90
+ *PulpFileClient::AcsFileApi* | [**read**](docs/AcsFileApi.md#read) | **GET** {file_file_alternate_content_source_href} | Inspect a file alternate content source
91
+ *PulpFileClient::AcsFileApi* | [**refresh**](docs/AcsFileApi.md#refresh) | **POST** {file_file_alternate_content_source_href}refresh/ |
92
+ *PulpFileClient::AcsFileApi* | [**update**](docs/AcsFileApi.md#update) | **PUT** {file_file_alternate_content_source_href} | Update a file alternate content source
91
93
  *PulpFileClient::ContentFilesApi* | [**create**](docs/ContentFilesApi.md#create) | **POST** /pulp/api/v3/content/file/files/ | Create a file content
92
94
  *PulpFileClient::ContentFilesApi* | [**list**](docs/ContentFilesApi.md#list) | **GET** /pulp/api/v3/content/file/files/ | List file contents
93
95
  *PulpFileClient::ContentFilesApi* | [**read**](docs/ContentFilesApi.md#read) | **GET** {file_file_content_href} | Inspect a file content
@@ -126,6 +128,8 @@ Class | Method | HTTP request | Description
126
128
  - [PulpFileClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
127
129
  - [PulpFileClient::ContentSummary](docs/ContentSummary.md)
128
130
  - [PulpFileClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
131
+ - [PulpFileClient::FileFileAlternateContentSource](docs/FileFileAlternateContentSource.md)
132
+ - [PulpFileClient::FileFileAlternateContentSourceResponse](docs/FileFileAlternateContentSourceResponse.md)
129
133
  - [PulpFileClient::FileFileContent](docs/FileFileContent.md)
130
134
  - [PulpFileClient::FileFileContentResponse](docs/FileFileContentResponse.md)
131
135
  - [PulpFileClient::FileFileDistribution](docs/FileFileDistribution.md)
@@ -137,11 +141,13 @@ Class | Method | HTTP request | Description
137
141
  - [PulpFileClient::FileFileRepository](docs/FileFileRepository.md)
138
142
  - [PulpFileClient::FileFileRepositoryResponse](docs/FileFileRepositoryResponse.md)
139
143
  - [PulpFileClient::PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
144
+ - [PulpFileClient::PaginatedfileFileAlternateContentSourceResponseList](docs/PaginatedfileFileAlternateContentSourceResponseList.md)
140
145
  - [PulpFileClient::PaginatedfileFileContentResponseList](docs/PaginatedfileFileContentResponseList.md)
141
146
  - [PulpFileClient::PaginatedfileFileDistributionResponseList](docs/PaginatedfileFileDistributionResponseList.md)
142
147
  - [PulpFileClient::PaginatedfileFilePublicationResponseList](docs/PaginatedfileFilePublicationResponseList.md)
143
148
  - [PulpFileClient::PaginatedfileFileRemoteResponseList](docs/PaginatedfileFileRemoteResponseList.md)
144
149
  - [PulpFileClient::PaginatedfileFileRepositoryResponseList](docs/PaginatedfileFileRepositoryResponseList.md)
150
+ - [PulpFileClient::PatchedfileFileAlternateContentSource](docs/PatchedfileFileAlternateContentSource.md)
145
151
  - [PulpFileClient::PatchedfileFileDistribution](docs/PatchedfileFileDistribution.md)
146
152
  - [PulpFileClient::PatchedfileFileRemote](docs/PatchedfileFileRemote.md)
147
153
  - [PulpFileClient::PatchedfileFileRepository](docs/PatchedfileFileRepository.md)
@@ -0,0 +1,416 @@
1
+ # PulpFileClient::AcsFileApi
2
+
3
+ All URIs are relative to *https://pulp*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](AcsFileApi.md#create) | **POST** /pulp/api/v3/acs/file/file/ | Create a file alternate content source
8
+ [**delete**](AcsFileApi.md#delete) | **DELETE** {file_file_alternate_content_source_href} | Delete a file alternate content source
9
+ [**list**](AcsFileApi.md#list) | **GET** /pulp/api/v3/acs/file/file/ | List file alternate content sources
10
+ [**partial_update**](AcsFileApi.md#partial_update) | **PATCH** {file_file_alternate_content_source_href} | Update a file alternate content source
11
+ [**read**](AcsFileApi.md#read) | **GET** {file_file_alternate_content_source_href} | Inspect a file alternate content source
12
+ [**refresh**](AcsFileApi.md#refresh) | **POST** {file_file_alternate_content_source_href}refresh/ |
13
+ [**update**](AcsFileApi.md#update) | **PUT** {file_file_alternate_content_source_href} | Update a file alternate content source
14
+
15
+
16
+
17
+ ## create
18
+
19
+ > FileFileAlternateContentSourceResponse create(file_file_alternate_content_source)
20
+
21
+ Create a file alternate content source
22
+
23
+ Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
24
+
25
+ ### Example
26
+
27
+ ```ruby
28
+ # load the gem
29
+ require 'pulp_file_client'
30
+ # setup authorization
31
+ PulpFileClient.configure do |config|
32
+ # Configure HTTP basic authorization: basicAuth
33
+ config.username = 'YOUR USERNAME'
34
+ config.password = 'YOUR PASSWORD'
35
+ end
36
+
37
+ api_instance = PulpFileClient::AcsFileApi.new
38
+ file_file_alternate_content_source = PulpFileClient::FileFileAlternateContentSource.new # FileFileAlternateContentSource |
39
+
40
+ begin
41
+ #Create a file alternate content source
42
+ result = api_instance.create(file_file_alternate_content_source)
43
+ p result
44
+ rescue PulpFileClient::ApiError => e
45
+ puts "Exception when calling AcsFileApi->create: #{e}"
46
+ end
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+
52
+ Name | Type | Description | Notes
53
+ ------------- | ------------- | ------------- | -------------
54
+ **file_file_alternate_content_source** | [**FileFileAlternateContentSource**](FileFileAlternateContentSource.md)| |
55
+
56
+ ### Return type
57
+
58
+ [**FileFileAlternateContentSourceResponse**](FileFileAlternateContentSourceResponse.md)
59
+
60
+ ### Authorization
61
+
62
+ [basicAuth](../README.md#basicAuth)
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
67
+ - **Accept**: application/json
68
+
69
+
70
+ ## delete
71
+
72
+ > delete(file_file_alternate_content_source_href)
73
+
74
+ Delete a file alternate content source
75
+
76
+ Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
77
+
78
+ ### Example
79
+
80
+ ```ruby
81
+ # load the gem
82
+ require 'pulp_file_client'
83
+ # setup authorization
84
+ PulpFileClient.configure do |config|
85
+ # Configure HTTP basic authorization: basicAuth
86
+ config.username = 'YOUR USERNAME'
87
+ config.password = 'YOUR PASSWORD'
88
+ end
89
+
90
+ api_instance = PulpFileClient::AcsFileApi.new
91
+ file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
92
+
93
+ begin
94
+ #Delete a file alternate content source
95
+ api_instance.delete(file_file_alternate_content_source_href)
96
+ rescue PulpFileClient::ApiError => e
97
+ puts "Exception when calling AcsFileApi->delete: #{e}"
98
+ end
99
+ ```
100
+
101
+ ### Parameters
102
+
103
+
104
+ Name | Type | Description | Notes
105
+ ------------- | ------------- | ------------- | -------------
106
+ **file_file_alternate_content_source_href** | **String**| |
107
+
108
+ ### Return type
109
+
110
+ nil (empty response body)
111
+
112
+ ### Authorization
113
+
114
+ [basicAuth](../README.md#basicAuth)
115
+
116
+ ### HTTP request headers
117
+
118
+ - **Content-Type**: Not defined
119
+ - **Accept**: Not defined
120
+
121
+
122
+ ## list
123
+
124
+ > PaginatedfileFileAlternateContentSourceResponseList list(opts)
125
+
126
+ List file alternate content sources
127
+
128
+ Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
129
+
130
+ ### Example
131
+
132
+ ```ruby
133
+ # load the gem
134
+ require 'pulp_file_client'
135
+ # setup authorization
136
+ PulpFileClient.configure do |config|
137
+ # Configure HTTP basic authorization: basicAuth
138
+ config.username = 'YOUR USERNAME'
139
+ config.password = 'YOUR PASSWORD'
140
+ end
141
+
142
+ api_instance = PulpFileClient::AcsFileApi.new
143
+ opts = {
144
+ limit: 56, # Integer | Number of results to return per page.
145
+ name: 'name_example', # String |
146
+ name__contains: 'name__contains_example', # String | Filter results where name contains value
147
+ name__icontains: 'name__icontains_example', # String | Filter results where name contains value
148
+ name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
149
+ name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
150
+ offset: 56, # Integer | The initial index from which to return the results.
151
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
152
+ fields: 'fields_example', # String | A list of fields to include in the response.
153
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
154
+ }
155
+
156
+ begin
157
+ #List file alternate content sources
158
+ result = api_instance.list(opts)
159
+ p result
160
+ rescue PulpFileClient::ApiError => e
161
+ puts "Exception when calling AcsFileApi->list: #{e}"
162
+ end
163
+ ```
164
+
165
+ ### Parameters
166
+
167
+
168
+ Name | Type | Description | Notes
169
+ ------------- | ------------- | ------------- | -------------
170
+ **limit** | **Integer**| Number of results to return per page. | [optional]
171
+ **name** | **String**| | [optional]
172
+ **name__contains** | **String**| Filter results where name contains value | [optional]
173
+ **name__icontains** | **String**| Filter results where name contains value | [optional]
174
+ **name__in** | [**Array&lt;String&gt;**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
175
+ **name__startswith** | **String**| Filter results where name starts with value | [optional]
176
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
177
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
178
+ **fields** | **String**| A list of fields to include in the response. | [optional]
179
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
180
+
181
+ ### Return type
182
+
183
+ [**PaginatedfileFileAlternateContentSourceResponseList**](PaginatedfileFileAlternateContentSourceResponseList.md)
184
+
185
+ ### Authorization
186
+
187
+ [basicAuth](../README.md#basicAuth)
188
+
189
+ ### HTTP request headers
190
+
191
+ - **Content-Type**: Not defined
192
+ - **Accept**: application/json
193
+
194
+
195
+ ## partial_update
196
+
197
+ > FileFileAlternateContentSourceResponse partial_update(file_file_alternate_content_source_href, patchedfile_file_alternate_content_source)
198
+
199
+ Update a file alternate content source
200
+
201
+ Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
202
+
203
+ ### Example
204
+
205
+ ```ruby
206
+ # load the gem
207
+ require 'pulp_file_client'
208
+ # setup authorization
209
+ PulpFileClient.configure do |config|
210
+ # Configure HTTP basic authorization: basicAuth
211
+ config.username = 'YOUR USERNAME'
212
+ config.password = 'YOUR PASSWORD'
213
+ end
214
+
215
+ api_instance = PulpFileClient::AcsFileApi.new
216
+ file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
217
+ patchedfile_file_alternate_content_source = PulpFileClient::PatchedfileFileAlternateContentSource.new # PatchedfileFileAlternateContentSource |
218
+
219
+ begin
220
+ #Update a file alternate content source
221
+ result = api_instance.partial_update(file_file_alternate_content_source_href, patchedfile_file_alternate_content_source)
222
+ p result
223
+ rescue PulpFileClient::ApiError => e
224
+ puts "Exception when calling AcsFileApi->partial_update: #{e}"
225
+ end
226
+ ```
227
+
228
+ ### Parameters
229
+
230
+
231
+ Name | Type | Description | Notes
232
+ ------------- | ------------- | ------------- | -------------
233
+ **file_file_alternate_content_source_href** | **String**| |
234
+ **patchedfile_file_alternate_content_source** | [**PatchedfileFileAlternateContentSource**](PatchedfileFileAlternateContentSource.md)| |
235
+
236
+ ### Return type
237
+
238
+ [**FileFileAlternateContentSourceResponse**](FileFileAlternateContentSourceResponse.md)
239
+
240
+ ### Authorization
241
+
242
+ [basicAuth](../README.md#basicAuth)
243
+
244
+ ### HTTP request headers
245
+
246
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
247
+ - **Accept**: application/json
248
+
249
+
250
+ ## read
251
+
252
+ > FileFileAlternateContentSourceResponse read(file_file_alternate_content_source_href, opts)
253
+
254
+ Inspect a file alternate content source
255
+
256
+ Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
257
+
258
+ ### Example
259
+
260
+ ```ruby
261
+ # load the gem
262
+ require 'pulp_file_client'
263
+ # setup authorization
264
+ PulpFileClient.configure do |config|
265
+ # Configure HTTP basic authorization: basicAuth
266
+ config.username = 'YOUR USERNAME'
267
+ config.password = 'YOUR PASSWORD'
268
+ end
269
+
270
+ api_instance = PulpFileClient::AcsFileApi.new
271
+ file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
272
+ opts = {
273
+ fields: 'fields_example', # String | A list of fields to include in the response.
274
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
275
+ }
276
+
277
+ begin
278
+ #Inspect a file alternate content source
279
+ result = api_instance.read(file_file_alternate_content_source_href, opts)
280
+ p result
281
+ rescue PulpFileClient::ApiError => e
282
+ puts "Exception when calling AcsFileApi->read: #{e}"
283
+ end
284
+ ```
285
+
286
+ ### Parameters
287
+
288
+
289
+ Name | Type | Description | Notes
290
+ ------------- | ------------- | ------------- | -------------
291
+ **file_file_alternate_content_source_href** | **String**| |
292
+ **fields** | **String**| A list of fields to include in the response. | [optional]
293
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
294
+
295
+ ### Return type
296
+
297
+ [**FileFileAlternateContentSourceResponse**](FileFileAlternateContentSourceResponse.md)
298
+
299
+ ### Authorization
300
+
301
+ [basicAuth](../README.md#basicAuth)
302
+
303
+ ### HTTP request headers
304
+
305
+ - **Content-Type**: Not defined
306
+ - **Accept**: application/json
307
+
308
+
309
+ ## refresh
310
+
311
+ > FileFileAlternateContentSourceResponse refresh(file_file_alternate_content_source_href, file_file_alternate_content_source)
312
+
313
+
314
+
315
+ Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
316
+
317
+ ### Example
318
+
319
+ ```ruby
320
+ # load the gem
321
+ require 'pulp_file_client'
322
+ # setup authorization
323
+ PulpFileClient.configure do |config|
324
+ # Configure HTTP basic authorization: basicAuth
325
+ config.username = 'YOUR USERNAME'
326
+ config.password = 'YOUR PASSWORD'
327
+ end
328
+
329
+ api_instance = PulpFileClient::AcsFileApi.new
330
+ file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
331
+ file_file_alternate_content_source = PulpFileClient::FileFileAlternateContentSource.new # FileFileAlternateContentSource |
332
+
333
+ begin
334
+ result = api_instance.refresh(file_file_alternate_content_source_href, file_file_alternate_content_source)
335
+ p result
336
+ rescue PulpFileClient::ApiError => e
337
+ puts "Exception when calling AcsFileApi->refresh: #{e}"
338
+ end
339
+ ```
340
+
341
+ ### Parameters
342
+
343
+
344
+ Name | Type | Description | Notes
345
+ ------------- | ------------- | ------------- | -------------
346
+ **file_file_alternate_content_source_href** | **String**| |
347
+ **file_file_alternate_content_source** | [**FileFileAlternateContentSource**](FileFileAlternateContentSource.md)| |
348
+
349
+ ### Return type
350
+
351
+ [**FileFileAlternateContentSourceResponse**](FileFileAlternateContentSourceResponse.md)
352
+
353
+ ### Authorization
354
+
355
+ [basicAuth](../README.md#basicAuth)
356
+
357
+ ### HTTP request headers
358
+
359
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
360
+ - **Accept**: application/json
361
+
362
+
363
+ ## update
364
+
365
+ > FileFileAlternateContentSourceResponse update(file_file_alternate_content_source_href, file_file_alternate_content_source)
366
+
367
+ Update a file alternate content source
368
+
369
+ Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
370
+
371
+ ### Example
372
+
373
+ ```ruby
374
+ # load the gem
375
+ require 'pulp_file_client'
376
+ # setup authorization
377
+ PulpFileClient.configure do |config|
378
+ # Configure HTTP basic authorization: basicAuth
379
+ config.username = 'YOUR USERNAME'
380
+ config.password = 'YOUR PASSWORD'
381
+ end
382
+
383
+ api_instance = PulpFileClient::AcsFileApi.new
384
+ file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String |
385
+ file_file_alternate_content_source = PulpFileClient::FileFileAlternateContentSource.new # FileFileAlternateContentSource |
386
+
387
+ begin
388
+ #Update a file alternate content source
389
+ result = api_instance.update(file_file_alternate_content_source_href, file_file_alternate_content_source)
390
+ p result
391
+ rescue PulpFileClient::ApiError => e
392
+ puts "Exception when calling AcsFileApi->update: #{e}"
393
+ end
394
+ ```
395
+
396
+ ### Parameters
397
+
398
+
399
+ Name | Type | Description | Notes
400
+ ------------- | ------------- | ------------- | -------------
401
+ **file_file_alternate_content_source_href** | **String**| |
402
+ **file_file_alternate_content_source** | [**FileFileAlternateContentSource**](FileFileAlternateContentSource.md)| |
403
+
404
+ ### Return type
405
+
406
+ [**FileFileAlternateContentSourceResponse**](FileFileAlternateContentSourceResponse.md)
407
+
408
+ ### Authorization
409
+
410
+ [basicAuth](../README.md#basicAuth)
411
+
412
+ ### HTTP request headers
413
+
414
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
415
+ - **Accept**: application/json
416
+