pulpcore_client 3.19.1 → 3.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +93 -16
- data/docs/AccessPoliciesApi.md +2 -2
- data/docs/AccessPolicy.md +3 -1
- data/docs/AccessPolicyResponse.md +3 -1
- data/docs/AcsApi.md +417 -0
- data/docs/AlternateContentSource.md +23 -0
- data/docs/AlternateContentSourceResponse.md +27 -0
- data/docs/ArtifactsApi.md +2 -2
- data/docs/ContentApi.md +117 -3
- data/docs/ContentGuard.md +19 -0
- data/docs/ContentguardsApi.md +282 -3
- data/docs/ContentguardsContentRedirectApi.md +230 -2
- data/docs/ContentguardsRbacApi.md +2 -2
- data/docs/Distribution.md +25 -0
- data/docs/DistributionsApi.md +283 -3
- data/docs/Export.md +17 -0
- data/docs/ExportResponse.md +25 -0
- data/docs/Exporter.md +17 -0
- data/docs/ExporterResponse.md +21 -0
- data/docs/ExportersApi.md +362 -0
- data/docs/{GroupsModelPermissionsApi.md → ExportersExportsApi.md} +46 -48
- data/docs/ExportersFilesystemApi.md +2 -2
- data/docs/ExportersFilesystemExportsApi.md +0 -2
- data/docs/ExportersPulpApi.md +2 -2
- data/docs/ExportersPulpExportsApi.md +0 -2
- data/docs/GroupRole.md +1 -1
- data/docs/GroupRoleResponse.md +6 -2
- data/docs/GroupsApi.md +2 -2
- data/docs/GroupsRolesApi.md +2 -2
- data/docs/GroupsUsersApi.md +0 -2
- data/docs/Import.md +19 -0
- data/docs/Importer.md +17 -0
- data/docs/ImporterResponse.md +21 -0
- data/docs/ImportersApi.md +361 -0
- data/docs/{GroupsObjectPermissionsApi.md → ImportersImportsApi.md} +46 -48
- data/docs/ImportersPulpApi.md +2 -2
- data/docs/ImportersPulpImportsApi.md +0 -2
- data/docs/MultipleArtifactContent.md +17 -0
- data/docs/OrphansCleanup.md +1 -1
- data/docs/PaginatedAlternateContentSourceResponseList.md +23 -0
- data/docs/{PaginatedPermissionResponseList.md → PaginatedExportResponseList.md} +3 -3
- data/docs/PaginatedExporterResponseList.md +23 -0
- data/docs/PaginatedImporterResponseList.md +23 -0
- data/docs/PaginatedRemoteResponseList.md +23 -0
- data/docs/PatchedAccessPolicy.md +3 -1
- data/docs/PatchedAlternateContentSource.md +23 -0
- data/docs/PatchedContentGuard.md +19 -0
- data/docs/PatchedDistribution.md +25 -0
- data/docs/PatchedExporter.md +17 -0
- data/docs/PatchedImporter.md +17 -0
- data/docs/PatchedRemote.md +57 -0
- data/docs/PatchedRepository.md +25 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsApi.md +117 -2
- data/docs/Remote.md +57 -0
- data/docs/RemoteResponse.md +53 -0
- data/docs/RemotesApi.md +376 -0
- data/docs/RepositoriesApi.md +283 -3
- data/docs/RepositoriesVersionsApi.md +271 -0
- data/docs/Repository.md +25 -0
- data/docs/RepositoryVersionsApi.md +2 -0
- data/docs/RolesApi.md +6 -2
- data/docs/SigningServicesApi.md +0 -2
- data/docs/TaskGroupsApi.md +2 -2
- data/docs/TaskSchedulesApi.md +2 -2
- data/docs/TasksApi.md +2 -2
- data/docs/UploadsApi.md +0 -2
- data/docs/UserRole.md +1 -1
- data/docs/UserRoleResponse.md +6 -2
- data/docs/UsersApi.md +2 -61
- data/docs/UsersRolesApi.md +2 -2
- data/docs/VersionResponse.md +3 -1
- data/docs/WorkersApi.md +2 -2
- data/lib/pulpcore_client/api/access_policies_api.rb +7 -3
- data/lib/pulpcore_client/api/acs_api.rb +514 -0
- data/lib/pulpcore_client/api/artifacts_api.rb +7 -3
- data/lib/pulpcore_client/api/content_api.rb +141 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +341 -5
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +275 -3
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +7 -3
- data/lib/pulpcore_client/api/distributions_api.rb +343 -5
- data/lib/pulpcore_client/api/exporters_api.rb +446 -0
- data/lib/pulpcore_client/api/{groups_model_permissions_api.rb → exporters_exports_api.rb} +76 -79
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +7 -3
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +0 -3
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +7 -3
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +0 -3
- data/lib/pulpcore_client/api/groups_api.rb +7 -3
- data/lib/pulpcore_client/api/groups_roles_api.rb +7 -3
- data/lib/pulpcore_client/api/groups_users_api.rb +0 -3
- data/lib/pulpcore_client/api/importers_api.rb +444 -0
- data/lib/pulpcore_client/api/{groups_object_permissions_api.rb → importers_imports_api.rb} +76 -79
- data/lib/pulpcore_client/api/importers_pulp_api.rb +7 -3
- data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +0 -3
- data/lib/pulpcore_client/api/publications_api.rb +138 -3
- data/lib/pulpcore_client/api/remotes_api.rb +467 -0
- data/lib/pulpcore_client/api/repositories_api.rb +343 -5
- data/lib/pulpcore_client/api/repositories_versions_api.rb +343 -0
- data/lib/pulpcore_client/api/repository_versions_api.rb +7 -0
- data/lib/pulpcore_client/api/roles_api.rb +13 -3
- data/lib/pulpcore_client/api/signing_services_api.rb +0 -3
- data/lib/pulpcore_client/api/task_groups_api.rb +7 -3
- data/lib/pulpcore_client/api/task_schedules_api.rb +7 -3
- data/lib/pulpcore_client/api/tasks_api.rb +7 -3
- data/lib/pulpcore_client/api/uploads_api.rb +0 -3
- data/lib/pulpcore_client/api/users_api.rb +7 -69
- data/lib/pulpcore_client/api/users_roles_api.rb +7 -3
- data/lib/pulpcore_client/api/workers_api.rb +7 -3
- data/lib/pulpcore_client/models/access_policy.rb +14 -4
- data/lib/pulpcore_client/models/access_policy_response.rb +14 -4
- data/lib/pulpcore_client/models/alternate_content_source.rb +270 -0
- data/lib/pulpcore_client/models/alternate_content_source_response.rb +270 -0
- data/lib/pulpcore_client/models/content_guard.rb +258 -0
- data/lib/pulpcore_client/models/distribution.rb +297 -0
- data/lib/pulpcore_client/models/export.rb +209 -0
- data/lib/pulpcore_client/models/export_response.rb +250 -0
- data/lib/pulpcore_client/models/exporter.rb +232 -0
- data/lib/pulpcore_client/models/{permission_response.rb → exporter_response.rb} +24 -27
- data/lib/pulpcore_client/models/group_role.rb +1 -1
- data/lib/pulpcore_client/models/group_role_response.rb +26 -6
- data/lib/pulpcore_client/models/import.rb +228 -0
- data/lib/pulpcore_client/models/importer.rb +232 -0
- data/lib/pulpcore_client/models/importer_response.rb +232 -0
- data/lib/pulpcore_client/models/multiple_artifact_content.rb +213 -0
- data/lib/pulpcore_client/models/orphans_cleanup.rb +0 -2
- data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +237 -0
- data/lib/pulpcore_client/models/{paginated_permission_response_list.rb → paginated_export_response_list.rb} +4 -4
- data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_importer_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_remote_response_list.rb +237 -0
- data/lib/pulpcore_client/models/patched_access_policy.rb +14 -4
- data/lib/pulpcore_client/models/patched_alternate_content_source.rb +256 -0
- data/lib/pulpcore_client/models/patched_content_guard.rb +249 -0
- data/lib/pulpcore_client/models/patched_distribution.rb +279 -0
- data/lib/pulpcore_client/models/patched_exporter.rb +223 -0
- data/lib/pulpcore_client/models/patched_importer.rb +223 -0
- data/lib/pulpcore_client/models/patched_remote.rb +649 -0
- data/lib/pulpcore_client/models/patched_repository.rb +295 -0
- data/lib/pulpcore_client/models/policy_enum.rb +36 -0
- data/lib/pulpcore_client/models/remote.rb +667 -0
- data/lib/pulpcore_client/models/remote_response.rb +483 -0
- data/lib/pulpcore_client/models/repository.rb +304 -0
- data/lib/pulpcore_client/models/user_role.rb +1 -1
- data/lib/pulpcore_client/models/user_role_response.rb +26 -6
- data/lib/pulpcore_client/models/version_response.rb +19 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +35 -4
- data/spec/api/access_policies_api_spec.rb +1 -1
- data/spec/api/acs_api_spec.rb +132 -0
- data/spec/api/artifacts_api_spec.rb +1 -1
- data/spec/api/content_api_spec.rb +28 -2
- data/spec/api/contentguards_api_spec.rb +66 -2
- data/spec/api/contentguards_content_redirect_api_spec.rb +51 -1
- data/spec/api/contentguards_rbac_api_spec.rb +1 -1
- data/spec/api/distributions_api_spec.rb +66 -2
- data/spec/api/exporters_api_spec.rb +120 -0
- data/spec/api/{groups_model_permissions_api_spec.rb → exporters_exports_api_spec.rb} +22 -23
- data/spec/api/exporters_filesystem_api_spec.rb +1 -1
- data/spec/api/exporters_filesystem_exports_api_spec.rb +0 -1
- data/spec/api/exporters_pulp_api_spec.rb +1 -1
- data/spec/api/exporters_pulp_exports_api_spec.rb +0 -1
- data/spec/api/groups_api_spec.rb +1 -1
- data/spec/api/groups_roles_api_spec.rb +1 -1
- data/spec/api/groups_users_api_spec.rb +0 -1
- data/spec/api/importers_api_spec.rb +120 -0
- data/spec/api/{groups_object_permissions_api_spec.rb → importers_imports_api_spec.rb} +22 -23
- data/spec/api/importers_pulp_api_spec.rb +1 -1
- data/spec/api/importers_pulp_imports_api_spec.rb +0 -1
- data/spec/api/publications_api_spec.rb +28 -1
- data/spec/api/remotes_api_spec.rb +127 -0
- data/spec/api/repositories_api_spec.rb +66 -2
- data/spec/api/repositories_versions_api_spec.rb +104 -0
- data/spec/api/repository_versions_api_spec.rb +1 -0
- data/spec/api/roles_api_spec.rb +3 -1
- data/spec/api/signing_services_api_spec.rb +0 -1
- data/spec/api/task_groups_api_spec.rb +1 -1
- data/spec/api/task_schedules_api_spec.rb +1 -1
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/api/uploads_api_spec.rb +0 -1
- data/spec/api/users_api_spec.rb +1 -14
- data/spec/api/users_roles_api_spec.rb +1 -1
- data/spec/api/workers_api_spec.rb +1 -1
- data/spec/models/access_policy_response_spec.rb +6 -0
- data/spec/models/access_policy_spec.rb +6 -0
- data/spec/models/alternate_content_source_response_spec.rb +71 -0
- data/spec/models/{permission_response_spec.rb → alternate_content_source_spec.rb} +10 -10
- data/spec/models/content_guard_spec.rb +47 -0
- data/spec/models/distribution_spec.rb +65 -0
- data/spec/models/export_response_spec.rb +65 -0
- data/spec/models/export_spec.rb +41 -0
- data/spec/models/exporter_response_spec.rb +53 -0
- data/spec/models/exporter_spec.rb +41 -0
- data/spec/models/group_role_response_spec.rb +12 -0
- data/spec/models/import_spec.rb +47 -0
- data/spec/models/importer_response_spec.rb +53 -0
- data/spec/models/importer_spec.rb +41 -0
- data/spec/models/multiple_artifact_content_spec.rb +41 -0
- data/spec/models/paginated_alternate_content_source_response_list_spec.rb +59 -0
- data/spec/models/{paginated_permission_response_list_spec.rb → paginated_export_response_list_spec.rb} +6 -6
- data/spec/models/paginated_exporter_response_list_spec.rb +59 -0
- data/spec/models/paginated_importer_response_list_spec.rb +59 -0
- data/spec/models/paginated_remote_response_list_spec.rb +59 -0
- data/spec/models/patched_access_policy_spec.rb +6 -0
- data/spec/models/patched_alternate_content_source_spec.rb +59 -0
- data/spec/models/patched_content_guard_spec.rb +47 -0
- data/spec/models/patched_distribution_spec.rb +65 -0
- data/spec/models/patched_exporter_spec.rb +41 -0
- data/spec/models/patched_importer_spec.rb +41 -0
- data/spec/models/patched_remote_spec.rb +161 -0
- data/spec/models/patched_repository_spec.rb +65 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/remote_response_spec.rb +149 -0
- data/spec/models/remote_spec.rb +161 -0
- data/spec/models/repository_spec.rb +65 -0
- data/spec/models/user_role_response_spec.rb +12 -0
- data/spec/models/version_response_spec.rb +6 -0
- metadata +263 -139
- data/docs/PermissionResponse.md +0 -23
data/docs/DistributionsApi.md
CHANGED
@@ -4,17 +4,128 @@ All URIs are relative to *https://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**create**](DistributionsApi.md#create) | **POST** /pulp/api/v3/distributions/ | Create a distribution
|
8
|
+
[**delete**](DistributionsApi.md#delete) | **DELETE** {distribution_href} | Delete a distribution
|
7
9
|
[**list**](DistributionsApi.md#list) | **GET** /pulp/api/v3/distributions/ | List distributions
|
10
|
+
[**partial_update**](DistributionsApi.md#partial_update) | **PATCH** {distribution_href} | Update a distribution
|
11
|
+
[**read**](DistributionsApi.md#read) | **GET** {distribution_href} | Inspect a distribution
|
12
|
+
[**update**](DistributionsApi.md#update) | **PUT** {distribution_href} | Update a distribution
|
8
13
|
|
9
14
|
|
10
15
|
|
16
|
+
## create
|
17
|
+
|
18
|
+
> AsyncOperationResponse create(distribution)
|
19
|
+
|
20
|
+
Create a distribution
|
21
|
+
|
22
|
+
Trigger an asynchronous create task
|
23
|
+
|
24
|
+
### Example
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
# load the gem
|
28
|
+
require 'pulpcore_client'
|
29
|
+
# setup authorization
|
30
|
+
PulpcoreClient.configure do |config|
|
31
|
+
# Configure HTTP basic authorization: basicAuth
|
32
|
+
config.username = 'YOUR USERNAME'
|
33
|
+
config.password = 'YOUR PASSWORD'
|
34
|
+
end
|
35
|
+
|
36
|
+
api_instance = PulpcoreClient::DistributionsApi.new
|
37
|
+
distribution = PulpcoreClient::Distribution.new # Distribution |
|
38
|
+
|
39
|
+
begin
|
40
|
+
#Create a distribution
|
41
|
+
result = api_instance.create(distribution)
|
42
|
+
p result
|
43
|
+
rescue PulpcoreClient::ApiError => e
|
44
|
+
puts "Exception when calling DistributionsApi->create: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
|
51
|
+
Name | Type | Description | Notes
|
52
|
+
------------- | ------------- | ------------- | -------------
|
53
|
+
**distribution** | [**Distribution**](Distribution.md)| |
|
54
|
+
|
55
|
+
### Return type
|
56
|
+
|
57
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
58
|
+
|
59
|
+
### Authorization
|
60
|
+
|
61
|
+
[basicAuth](../README.md#basicAuth)
|
62
|
+
|
63
|
+
### HTTP request headers
|
64
|
+
|
65
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
66
|
+
- **Accept**: application/json
|
67
|
+
|
68
|
+
|
69
|
+
## delete
|
70
|
+
|
71
|
+
> AsyncOperationResponse delete(distribution_href)
|
72
|
+
|
73
|
+
Delete a distribution
|
74
|
+
|
75
|
+
Trigger an asynchronous delete task
|
76
|
+
|
77
|
+
### Example
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
# load the gem
|
81
|
+
require 'pulpcore_client'
|
82
|
+
# setup authorization
|
83
|
+
PulpcoreClient.configure do |config|
|
84
|
+
# Configure HTTP basic authorization: basicAuth
|
85
|
+
config.username = 'YOUR USERNAME'
|
86
|
+
config.password = 'YOUR PASSWORD'
|
87
|
+
end
|
88
|
+
|
89
|
+
api_instance = PulpcoreClient::DistributionsApi.new
|
90
|
+
distribution_href = 'distribution_href_example' # String |
|
91
|
+
|
92
|
+
begin
|
93
|
+
#Delete a distribution
|
94
|
+
result = api_instance.delete(distribution_href)
|
95
|
+
p result
|
96
|
+
rescue PulpcoreClient::ApiError => e
|
97
|
+
puts "Exception when calling DistributionsApi->delete: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
### Parameters
|
102
|
+
|
103
|
+
|
104
|
+
Name | Type | Description | Notes
|
105
|
+
------------- | ------------- | ------------- | -------------
|
106
|
+
**distribution_href** | **String**| |
|
107
|
+
|
108
|
+
### Return type
|
109
|
+
|
110
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
111
|
+
|
112
|
+
### Authorization
|
113
|
+
|
114
|
+
[basicAuth](../README.md#basicAuth)
|
115
|
+
|
116
|
+
### HTTP request headers
|
117
|
+
|
118
|
+
- **Content-Type**: Not defined
|
119
|
+
- **Accept**: application/json
|
120
|
+
|
121
|
+
|
11
122
|
## list
|
12
123
|
|
13
124
|
> PaginatedDistributionResponseList list(opts)
|
14
125
|
|
15
126
|
List distributions
|
16
127
|
|
17
|
-
|
128
|
+
Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
|
18
129
|
|
19
130
|
### Example
|
20
131
|
|
@@ -41,7 +152,7 @@ opts = {
|
|
41
152
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
42
153
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
43
154
|
offset: 56, # Integer | The initial index from which to return the results.
|
44
|
-
ordering: 'ordering_example', # String |
|
155
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
45
156
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
46
157
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
47
158
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
@@ -72,7 +183,7 @@ Name | Type | Description | Notes
|
|
72
183
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
73
184
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
74
185
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
75
|
-
**ordering** | **String
|
186
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
76
187
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
77
188
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
78
189
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
@@ -90,3 +201,172 @@ Name | Type | Description | Notes
|
|
90
201
|
- **Content-Type**: Not defined
|
91
202
|
- **Accept**: application/json
|
92
203
|
|
204
|
+
|
205
|
+
## partial_update
|
206
|
+
|
207
|
+
> AsyncOperationResponse partial_update(distribution_href, patched_distribution)
|
208
|
+
|
209
|
+
Update a distribution
|
210
|
+
|
211
|
+
Trigger an asynchronous partial update task
|
212
|
+
|
213
|
+
### Example
|
214
|
+
|
215
|
+
```ruby
|
216
|
+
# load the gem
|
217
|
+
require 'pulpcore_client'
|
218
|
+
# setup authorization
|
219
|
+
PulpcoreClient.configure do |config|
|
220
|
+
# Configure HTTP basic authorization: basicAuth
|
221
|
+
config.username = 'YOUR USERNAME'
|
222
|
+
config.password = 'YOUR PASSWORD'
|
223
|
+
end
|
224
|
+
|
225
|
+
api_instance = PulpcoreClient::DistributionsApi.new
|
226
|
+
distribution_href = 'distribution_href_example' # String |
|
227
|
+
patched_distribution = PulpcoreClient::PatchedDistribution.new # PatchedDistribution |
|
228
|
+
|
229
|
+
begin
|
230
|
+
#Update a distribution
|
231
|
+
result = api_instance.partial_update(distribution_href, patched_distribution)
|
232
|
+
p result
|
233
|
+
rescue PulpcoreClient::ApiError => e
|
234
|
+
puts "Exception when calling DistributionsApi->partial_update: #{e}"
|
235
|
+
end
|
236
|
+
```
|
237
|
+
|
238
|
+
### Parameters
|
239
|
+
|
240
|
+
|
241
|
+
Name | Type | Description | Notes
|
242
|
+
------------- | ------------- | ------------- | -------------
|
243
|
+
**distribution_href** | **String**| |
|
244
|
+
**patched_distribution** | [**PatchedDistribution**](PatchedDistribution.md)| |
|
245
|
+
|
246
|
+
### Return type
|
247
|
+
|
248
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
249
|
+
|
250
|
+
### Authorization
|
251
|
+
|
252
|
+
[basicAuth](../README.md#basicAuth)
|
253
|
+
|
254
|
+
### HTTP request headers
|
255
|
+
|
256
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
257
|
+
- **Accept**: application/json
|
258
|
+
|
259
|
+
|
260
|
+
## read
|
261
|
+
|
262
|
+
> DistributionResponse read(distribution_href, opts)
|
263
|
+
|
264
|
+
Inspect a distribution
|
265
|
+
|
266
|
+
Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
|
267
|
+
|
268
|
+
### Example
|
269
|
+
|
270
|
+
```ruby
|
271
|
+
# load the gem
|
272
|
+
require 'pulpcore_client'
|
273
|
+
# setup authorization
|
274
|
+
PulpcoreClient.configure do |config|
|
275
|
+
# Configure HTTP basic authorization: basicAuth
|
276
|
+
config.username = 'YOUR USERNAME'
|
277
|
+
config.password = 'YOUR PASSWORD'
|
278
|
+
end
|
279
|
+
|
280
|
+
api_instance = PulpcoreClient::DistributionsApi.new
|
281
|
+
distribution_href = 'distribution_href_example' # String |
|
282
|
+
opts = {
|
283
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
284
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
285
|
+
}
|
286
|
+
|
287
|
+
begin
|
288
|
+
#Inspect a distribution
|
289
|
+
result = api_instance.read(distribution_href, opts)
|
290
|
+
p result
|
291
|
+
rescue PulpcoreClient::ApiError => e
|
292
|
+
puts "Exception when calling DistributionsApi->read: #{e}"
|
293
|
+
end
|
294
|
+
```
|
295
|
+
|
296
|
+
### Parameters
|
297
|
+
|
298
|
+
|
299
|
+
Name | Type | Description | Notes
|
300
|
+
------------- | ------------- | ------------- | -------------
|
301
|
+
**distribution_href** | **String**| |
|
302
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
303
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
304
|
+
|
305
|
+
### Return type
|
306
|
+
|
307
|
+
[**DistributionResponse**](DistributionResponse.md)
|
308
|
+
|
309
|
+
### Authorization
|
310
|
+
|
311
|
+
[basicAuth](../README.md#basicAuth)
|
312
|
+
|
313
|
+
### HTTP request headers
|
314
|
+
|
315
|
+
- **Content-Type**: Not defined
|
316
|
+
- **Accept**: application/json
|
317
|
+
|
318
|
+
|
319
|
+
## update
|
320
|
+
|
321
|
+
> AsyncOperationResponse update(distribution_href, distribution)
|
322
|
+
|
323
|
+
Update a distribution
|
324
|
+
|
325
|
+
Trigger an asynchronous update task
|
326
|
+
|
327
|
+
### Example
|
328
|
+
|
329
|
+
```ruby
|
330
|
+
# load the gem
|
331
|
+
require 'pulpcore_client'
|
332
|
+
# setup authorization
|
333
|
+
PulpcoreClient.configure do |config|
|
334
|
+
# Configure HTTP basic authorization: basicAuth
|
335
|
+
config.username = 'YOUR USERNAME'
|
336
|
+
config.password = 'YOUR PASSWORD'
|
337
|
+
end
|
338
|
+
|
339
|
+
api_instance = PulpcoreClient::DistributionsApi.new
|
340
|
+
distribution_href = 'distribution_href_example' # String |
|
341
|
+
distribution = PulpcoreClient::Distribution.new # Distribution |
|
342
|
+
|
343
|
+
begin
|
344
|
+
#Update a distribution
|
345
|
+
result = api_instance.update(distribution_href, distribution)
|
346
|
+
p result
|
347
|
+
rescue PulpcoreClient::ApiError => e
|
348
|
+
puts "Exception when calling DistributionsApi->update: #{e}"
|
349
|
+
end
|
350
|
+
```
|
351
|
+
|
352
|
+
### Parameters
|
353
|
+
|
354
|
+
|
355
|
+
Name | Type | Description | Notes
|
356
|
+
------------- | ------------- | ------------- | -------------
|
357
|
+
**distribution_href** | **String**| |
|
358
|
+
**distribution** | [**Distribution**](Distribution.md)| |
|
359
|
+
|
360
|
+
### Return type
|
361
|
+
|
362
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
363
|
+
|
364
|
+
### Authorization
|
365
|
+
|
366
|
+
[basicAuth](../README.md#basicAuth)
|
367
|
+
|
368
|
+
### HTTP request headers
|
369
|
+
|
370
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
371
|
+
- **Accept**: application/json
|
372
|
+
|
data/docs/Export.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# PulpcoreClient::Export
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**task** | **String** | A URI of the task that ran the Export. | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'PulpcoreClient'
|
13
|
+
|
14
|
+
instance = PulpcoreClient::Export.new(task: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# PulpcoreClient::ExportResponse
|
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
|
+
**task** | **String** | A URI of the task that ran the Export. | [optional]
|
10
|
+
**exported_resources** | **Array<String>** | Resources that were exported. | [optional] [readonly]
|
11
|
+
**params** | [**Object**](.md) | Any additional parameters that were used to create the export. | [optional] [readonly]
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'PulpcoreClient'
|
17
|
+
|
18
|
+
instance = PulpcoreClient::ExportResponse.new(pulp_href: null,
|
19
|
+
pulp_created: null,
|
20
|
+
task: null,
|
21
|
+
exported_resources: null,
|
22
|
+
params: null)
|
23
|
+
```
|
24
|
+
|
25
|
+
|
data/docs/Exporter.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# PulpcoreClient::Exporter
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**name** | **String** | Unique name of the file system exporter. |
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'PulpcoreClient'
|
13
|
+
|
14
|
+
instance = PulpcoreClient::Exporter.new(name: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# PulpcoreClient::ExporterResponse
|
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** | Unique name of the file system exporter. |
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'PulpcoreClient'
|
15
|
+
|
16
|
+
instance = PulpcoreClient::ExporterResponse.new(pulp_href: null,
|
17
|
+
pulp_created: null,
|
18
|
+
name: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|