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/AcsApi.md
ADDED
@@ -0,0 +1,417 @@
|
|
1
|
+
# PulpcoreClient::AcsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](AcsApi.md#create) | **POST** /pulp/api/v3/acs/ | Create an alternate content source
|
8
|
+
[**delete**](AcsApi.md#delete) | **DELETE** {alternate_content_source_href} | Delete an alternate content source
|
9
|
+
[**list**](AcsApi.md#list) | **GET** /pulp/api/v3/acs/ | List acs
|
10
|
+
[**partial_update**](AcsApi.md#partial_update) | **PATCH** {alternate_content_source_href} | Update an alternate content source
|
11
|
+
[**read**](AcsApi.md#read) | **GET** {alternate_content_source_href} | Inspect an alternate content source
|
12
|
+
[**refresh**](AcsApi.md#refresh) | **POST** {alternate_content_source_href}refresh/ |
|
13
|
+
[**update**](AcsApi.md#update) | **PUT** {alternate_content_source_href} | Update an alternate content source
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
## create
|
18
|
+
|
19
|
+
> AlternateContentSourceResponse create(alternate_content_source)
|
20
|
+
|
21
|
+
Create an alternate content source
|
22
|
+
|
23
|
+
A class for ACS viewset.
|
24
|
+
|
25
|
+
### Example
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
# load the gem
|
29
|
+
require 'pulpcore_client'
|
30
|
+
# setup authorization
|
31
|
+
PulpcoreClient.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 = PulpcoreClient::AcsApi.new
|
38
|
+
alternate_content_source = PulpcoreClient::AlternateContentSource.new # AlternateContentSource |
|
39
|
+
|
40
|
+
begin
|
41
|
+
#Create an alternate content source
|
42
|
+
result = api_instance.create(alternate_content_source)
|
43
|
+
p result
|
44
|
+
rescue PulpcoreClient::ApiError => e
|
45
|
+
puts "Exception when calling AcsApi->create: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
### Parameters
|
50
|
+
|
51
|
+
|
52
|
+
Name | Type | Description | Notes
|
53
|
+
------------- | ------------- | ------------- | -------------
|
54
|
+
**alternate_content_source** | [**AlternateContentSource**](AlternateContentSource.md)| |
|
55
|
+
|
56
|
+
### Return type
|
57
|
+
|
58
|
+
[**AlternateContentSourceResponse**](AlternateContentSourceResponse.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
|
+
> AsyncOperationResponse delete(alternate_content_source_href)
|
73
|
+
|
74
|
+
Delete an alternate content source
|
75
|
+
|
76
|
+
Trigger an asynchronous delete ACS task
|
77
|
+
|
78
|
+
### Example
|
79
|
+
|
80
|
+
```ruby
|
81
|
+
# load the gem
|
82
|
+
require 'pulpcore_client'
|
83
|
+
# setup authorization
|
84
|
+
PulpcoreClient.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 = PulpcoreClient::AcsApi.new
|
91
|
+
alternate_content_source_href = 'alternate_content_source_href_example' # String |
|
92
|
+
|
93
|
+
begin
|
94
|
+
#Delete an alternate content source
|
95
|
+
result = api_instance.delete(alternate_content_source_href)
|
96
|
+
p result
|
97
|
+
rescue PulpcoreClient::ApiError => e
|
98
|
+
puts "Exception when calling AcsApi->delete: #{e}"
|
99
|
+
end
|
100
|
+
```
|
101
|
+
|
102
|
+
### Parameters
|
103
|
+
|
104
|
+
|
105
|
+
Name | Type | Description | Notes
|
106
|
+
------------- | ------------- | ------------- | -------------
|
107
|
+
**alternate_content_source_href** | **String**| |
|
108
|
+
|
109
|
+
### Return type
|
110
|
+
|
111
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
112
|
+
|
113
|
+
### Authorization
|
114
|
+
|
115
|
+
[basicAuth](../README.md#basicAuth)
|
116
|
+
|
117
|
+
### HTTP request headers
|
118
|
+
|
119
|
+
- **Content-Type**: Not defined
|
120
|
+
- **Accept**: application/json
|
121
|
+
|
122
|
+
|
123
|
+
## list
|
124
|
+
|
125
|
+
> PaginatedAlternateContentSourceResponseList list(opts)
|
126
|
+
|
127
|
+
List acs
|
128
|
+
|
129
|
+
A class for ACS viewset.
|
130
|
+
|
131
|
+
### Example
|
132
|
+
|
133
|
+
```ruby
|
134
|
+
# load the gem
|
135
|
+
require 'pulpcore_client'
|
136
|
+
# setup authorization
|
137
|
+
PulpcoreClient.configure do |config|
|
138
|
+
# Configure HTTP basic authorization: basicAuth
|
139
|
+
config.username = 'YOUR USERNAME'
|
140
|
+
config.password = 'YOUR PASSWORD'
|
141
|
+
end
|
142
|
+
|
143
|
+
api_instance = PulpcoreClient::AcsApi.new
|
144
|
+
opts = {
|
145
|
+
limit: 56, # Integer | Number of results to return per page.
|
146
|
+
name: 'name_example', # String |
|
147
|
+
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
148
|
+
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
149
|
+
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
150
|
+
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
151
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
152
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
153
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
154
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
155
|
+
}
|
156
|
+
|
157
|
+
begin
|
158
|
+
#List acs
|
159
|
+
result = api_instance.list(opts)
|
160
|
+
p result
|
161
|
+
rescue PulpcoreClient::ApiError => e
|
162
|
+
puts "Exception when calling AcsApi->list: #{e}"
|
163
|
+
end
|
164
|
+
```
|
165
|
+
|
166
|
+
### Parameters
|
167
|
+
|
168
|
+
|
169
|
+
Name | Type | Description | Notes
|
170
|
+
------------- | ------------- | ------------- | -------------
|
171
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
172
|
+
**name** | **String**| | [optional]
|
173
|
+
**name__contains** | **String**| Filter results where name contains value | [optional]
|
174
|
+
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
175
|
+
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
176
|
+
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
177
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
178
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
179
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
180
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
181
|
+
|
182
|
+
### Return type
|
183
|
+
|
184
|
+
[**PaginatedAlternateContentSourceResponseList**](PaginatedAlternateContentSourceResponseList.md)
|
185
|
+
|
186
|
+
### Authorization
|
187
|
+
|
188
|
+
[basicAuth](../README.md#basicAuth)
|
189
|
+
|
190
|
+
### HTTP request headers
|
191
|
+
|
192
|
+
- **Content-Type**: Not defined
|
193
|
+
- **Accept**: application/json
|
194
|
+
|
195
|
+
|
196
|
+
## partial_update
|
197
|
+
|
198
|
+
> AsyncOperationResponse partial_update(alternate_content_source_href, patched_alternate_content_source)
|
199
|
+
|
200
|
+
Update an alternate content source
|
201
|
+
|
202
|
+
Trigger an asynchronous partial update task
|
203
|
+
|
204
|
+
### Example
|
205
|
+
|
206
|
+
```ruby
|
207
|
+
# load the gem
|
208
|
+
require 'pulpcore_client'
|
209
|
+
# setup authorization
|
210
|
+
PulpcoreClient.configure do |config|
|
211
|
+
# Configure HTTP basic authorization: basicAuth
|
212
|
+
config.username = 'YOUR USERNAME'
|
213
|
+
config.password = 'YOUR PASSWORD'
|
214
|
+
end
|
215
|
+
|
216
|
+
api_instance = PulpcoreClient::AcsApi.new
|
217
|
+
alternate_content_source_href = 'alternate_content_source_href_example' # String |
|
218
|
+
patched_alternate_content_source = PulpcoreClient::PatchedAlternateContentSource.new # PatchedAlternateContentSource |
|
219
|
+
|
220
|
+
begin
|
221
|
+
#Update an alternate content source
|
222
|
+
result = api_instance.partial_update(alternate_content_source_href, patched_alternate_content_source)
|
223
|
+
p result
|
224
|
+
rescue PulpcoreClient::ApiError => e
|
225
|
+
puts "Exception when calling AcsApi->partial_update: #{e}"
|
226
|
+
end
|
227
|
+
```
|
228
|
+
|
229
|
+
### Parameters
|
230
|
+
|
231
|
+
|
232
|
+
Name | Type | Description | Notes
|
233
|
+
------------- | ------------- | ------------- | -------------
|
234
|
+
**alternate_content_source_href** | **String**| |
|
235
|
+
**patched_alternate_content_source** | [**PatchedAlternateContentSource**](PatchedAlternateContentSource.md)| |
|
236
|
+
|
237
|
+
### Return type
|
238
|
+
|
239
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
240
|
+
|
241
|
+
### Authorization
|
242
|
+
|
243
|
+
[basicAuth](../README.md#basicAuth)
|
244
|
+
|
245
|
+
### HTTP request headers
|
246
|
+
|
247
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
248
|
+
- **Accept**: application/json
|
249
|
+
|
250
|
+
|
251
|
+
## read
|
252
|
+
|
253
|
+
> AlternateContentSourceResponse read(alternate_content_source_href, opts)
|
254
|
+
|
255
|
+
Inspect an alternate content source
|
256
|
+
|
257
|
+
A class for ACS viewset.
|
258
|
+
|
259
|
+
### Example
|
260
|
+
|
261
|
+
```ruby
|
262
|
+
# load the gem
|
263
|
+
require 'pulpcore_client'
|
264
|
+
# setup authorization
|
265
|
+
PulpcoreClient.configure do |config|
|
266
|
+
# Configure HTTP basic authorization: basicAuth
|
267
|
+
config.username = 'YOUR USERNAME'
|
268
|
+
config.password = 'YOUR PASSWORD'
|
269
|
+
end
|
270
|
+
|
271
|
+
api_instance = PulpcoreClient::AcsApi.new
|
272
|
+
alternate_content_source_href = 'alternate_content_source_href_example' # String |
|
273
|
+
opts = {
|
274
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
275
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
276
|
+
}
|
277
|
+
|
278
|
+
begin
|
279
|
+
#Inspect an alternate content source
|
280
|
+
result = api_instance.read(alternate_content_source_href, opts)
|
281
|
+
p result
|
282
|
+
rescue PulpcoreClient::ApiError => e
|
283
|
+
puts "Exception when calling AcsApi->read: #{e}"
|
284
|
+
end
|
285
|
+
```
|
286
|
+
|
287
|
+
### Parameters
|
288
|
+
|
289
|
+
|
290
|
+
Name | Type | Description | Notes
|
291
|
+
------------- | ------------- | ------------- | -------------
|
292
|
+
**alternate_content_source_href** | **String**| |
|
293
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
294
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
295
|
+
|
296
|
+
### Return type
|
297
|
+
|
298
|
+
[**AlternateContentSourceResponse**](AlternateContentSourceResponse.md)
|
299
|
+
|
300
|
+
### Authorization
|
301
|
+
|
302
|
+
[basicAuth](../README.md#basicAuth)
|
303
|
+
|
304
|
+
### HTTP request headers
|
305
|
+
|
306
|
+
- **Content-Type**: Not defined
|
307
|
+
- **Accept**: application/json
|
308
|
+
|
309
|
+
|
310
|
+
## refresh
|
311
|
+
|
312
|
+
> AlternateContentSourceResponse refresh(alternate_content_source_href, alternate_content_source)
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
A class for ACS viewset.
|
317
|
+
|
318
|
+
### Example
|
319
|
+
|
320
|
+
```ruby
|
321
|
+
# load the gem
|
322
|
+
require 'pulpcore_client'
|
323
|
+
# setup authorization
|
324
|
+
PulpcoreClient.configure do |config|
|
325
|
+
# Configure HTTP basic authorization: basicAuth
|
326
|
+
config.username = 'YOUR USERNAME'
|
327
|
+
config.password = 'YOUR PASSWORD'
|
328
|
+
end
|
329
|
+
|
330
|
+
api_instance = PulpcoreClient::AcsApi.new
|
331
|
+
alternate_content_source_href = 'alternate_content_source_href_example' # String |
|
332
|
+
alternate_content_source = PulpcoreClient::AlternateContentSource.new # AlternateContentSource |
|
333
|
+
|
334
|
+
begin
|
335
|
+
result = api_instance.refresh(alternate_content_source_href, alternate_content_source)
|
336
|
+
p result
|
337
|
+
rescue PulpcoreClient::ApiError => e
|
338
|
+
puts "Exception when calling AcsApi->refresh: #{e}"
|
339
|
+
end
|
340
|
+
```
|
341
|
+
|
342
|
+
### Parameters
|
343
|
+
|
344
|
+
|
345
|
+
Name | Type | Description | Notes
|
346
|
+
------------- | ------------- | ------------- | -------------
|
347
|
+
**alternate_content_source_href** | **String**| |
|
348
|
+
**alternate_content_source** | [**AlternateContentSource**](AlternateContentSource.md)| |
|
349
|
+
|
350
|
+
### Return type
|
351
|
+
|
352
|
+
[**AlternateContentSourceResponse**](AlternateContentSourceResponse.md)
|
353
|
+
|
354
|
+
### Authorization
|
355
|
+
|
356
|
+
[basicAuth](../README.md#basicAuth)
|
357
|
+
|
358
|
+
### HTTP request headers
|
359
|
+
|
360
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
361
|
+
- **Accept**: application/json
|
362
|
+
|
363
|
+
|
364
|
+
## update
|
365
|
+
|
366
|
+
> AsyncOperationResponse update(alternate_content_source_href, alternate_content_source)
|
367
|
+
|
368
|
+
Update an alternate content source
|
369
|
+
|
370
|
+
Trigger an asynchronous update task
|
371
|
+
|
372
|
+
### Example
|
373
|
+
|
374
|
+
```ruby
|
375
|
+
# load the gem
|
376
|
+
require 'pulpcore_client'
|
377
|
+
# setup authorization
|
378
|
+
PulpcoreClient.configure do |config|
|
379
|
+
# Configure HTTP basic authorization: basicAuth
|
380
|
+
config.username = 'YOUR USERNAME'
|
381
|
+
config.password = 'YOUR PASSWORD'
|
382
|
+
end
|
383
|
+
|
384
|
+
api_instance = PulpcoreClient::AcsApi.new
|
385
|
+
alternate_content_source_href = 'alternate_content_source_href_example' # String |
|
386
|
+
alternate_content_source = PulpcoreClient::AlternateContentSource.new # AlternateContentSource |
|
387
|
+
|
388
|
+
begin
|
389
|
+
#Update an alternate content source
|
390
|
+
result = api_instance.update(alternate_content_source_href, alternate_content_source)
|
391
|
+
p result
|
392
|
+
rescue PulpcoreClient::ApiError => e
|
393
|
+
puts "Exception when calling AcsApi->update: #{e}"
|
394
|
+
end
|
395
|
+
```
|
396
|
+
|
397
|
+
### Parameters
|
398
|
+
|
399
|
+
|
400
|
+
Name | Type | Description | Notes
|
401
|
+
------------- | ------------- | ------------- | -------------
|
402
|
+
**alternate_content_source_href** | **String**| |
|
403
|
+
**alternate_content_source** | [**AlternateContentSource**](AlternateContentSource.md)| |
|
404
|
+
|
405
|
+
### Return type
|
406
|
+
|
407
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
408
|
+
|
409
|
+
### Authorization
|
410
|
+
|
411
|
+
[basicAuth](../README.md#basicAuth)
|
412
|
+
|
413
|
+
### HTTP request headers
|
414
|
+
|
415
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
416
|
+
- **Accept**: application/json
|
417
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpcoreClient::AlternateContentSource
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**name** | **String** | Name of Alternate Content Source. |
|
8
|
+
**last_refreshed** | **DateTime** | Date of last refresh of AlternateContentSource. | [optional]
|
9
|
+
**paths** | **Array<String>** | List of paths that will be appended to the Remote url when searching for content. | [optional]
|
10
|
+
**remote** | **String** | The remote to provide alternate content source. |
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpcoreClient'
|
16
|
+
|
17
|
+
instance = PulpcoreClient::AlternateContentSource.new(name: null,
|
18
|
+
last_refreshed: null,
|
19
|
+
paths: null,
|
20
|
+
remote: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# PulpcoreClient::AlternateContentSourceResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
+
**name** | **String** | Name of Alternate Content Source. |
|
10
|
+
**last_refreshed** | **DateTime** | Date of last refresh of AlternateContentSource. | [optional]
|
11
|
+
**paths** | **Array<String>** | List of paths that will be appended to the Remote url when searching for content. | [optional]
|
12
|
+
**remote** | **String** | The remote to provide alternate content source. |
|
13
|
+
|
14
|
+
## Code Sample
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'PulpcoreClient'
|
18
|
+
|
19
|
+
instance = PulpcoreClient::AlternateContentSourceResponse.new(pulp_href: null,
|
20
|
+
pulp_created: null,
|
21
|
+
name: null,
|
22
|
+
last_refreshed: null,
|
23
|
+
paths: null,
|
24
|
+
remote: null)
|
25
|
+
```
|
26
|
+
|
27
|
+
|
data/docs/ArtifactsApi.md
CHANGED
@@ -157,7 +157,7 @@ opts = {
|
|
157
157
|
limit: 56, # Integer | Number of results to return per page.
|
158
158
|
md5: 'md5_example', # String | Filter results where md5 matches value
|
159
159
|
offset: 56, # Integer | The initial index from which to return the results.
|
160
|
-
ordering: 'ordering_example', # String |
|
160
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
161
161
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
162
162
|
sha1: 'sha1_example', # String | Filter results where sha1 matches value
|
163
163
|
sha224: 'sha224_example', # String | Filter results where sha224 matches value
|
@@ -185,7 +185,7 @@ Name | Type | Description | Notes
|
|
185
185
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
186
186
|
**md5** | **String**| Filter results where md5 matches value | [optional]
|
187
187
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
188
|
-
**ordering** | **String
|
188
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
189
189
|
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
190
190
|
**sha1** | **String**| Filter results where sha1 matches value | [optional]
|
191
191
|
**sha224** | **String**| Filter results where sha224 matches value | [optional]
|
data/docs/ContentApi.md
CHANGED
@@ -4,17 +4,72 @@ All URIs are relative to *https://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**create**](ContentApi.md#create) | **POST** /pulp/api/v3/content/ | Create a content
|
7
8
|
[**list**](ContentApi.md#list) | **GET** /pulp/api/v3/content/ | List content
|
9
|
+
[**read**](ContentApi.md#read) | **GET** {content_href} | Inspect a content
|
8
10
|
|
9
11
|
|
10
12
|
|
13
|
+
## create
|
14
|
+
|
15
|
+
> MultipleArtifactContentResponse create(multiple_artifact_content)
|
16
|
+
|
17
|
+
Create a content
|
18
|
+
|
19
|
+
Content viewset that supports POST and GET by default.
|
20
|
+
|
21
|
+
### Example
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
# load the gem
|
25
|
+
require 'pulpcore_client'
|
26
|
+
# setup authorization
|
27
|
+
PulpcoreClient.configure do |config|
|
28
|
+
# Configure HTTP basic authorization: basicAuth
|
29
|
+
config.username = 'YOUR USERNAME'
|
30
|
+
config.password = 'YOUR PASSWORD'
|
31
|
+
end
|
32
|
+
|
33
|
+
api_instance = PulpcoreClient::ContentApi.new
|
34
|
+
multiple_artifact_content = PulpcoreClient::MultipleArtifactContent.new # MultipleArtifactContent |
|
35
|
+
|
36
|
+
begin
|
37
|
+
#Create a content
|
38
|
+
result = api_instance.create(multiple_artifact_content)
|
39
|
+
p result
|
40
|
+
rescue PulpcoreClient::ApiError => e
|
41
|
+
puts "Exception when calling ContentApi->create: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
|
48
|
+
Name | Type | Description | Notes
|
49
|
+
------------- | ------------- | ------------- | -------------
|
50
|
+
**multiple_artifact_content** | [**MultipleArtifactContent**](MultipleArtifactContent.md)| |
|
51
|
+
|
52
|
+
### Return type
|
53
|
+
|
54
|
+
[**MultipleArtifactContentResponse**](MultipleArtifactContentResponse.md)
|
55
|
+
|
56
|
+
### Authorization
|
57
|
+
|
58
|
+
[basicAuth](../README.md#basicAuth)
|
59
|
+
|
60
|
+
### HTTP request headers
|
61
|
+
|
62
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
63
|
+
- **Accept**: application/json
|
64
|
+
|
65
|
+
|
11
66
|
## list
|
12
67
|
|
13
68
|
> PaginatedMultipleArtifactContentResponseList list(opts)
|
14
69
|
|
15
70
|
List content
|
16
71
|
|
17
|
-
|
72
|
+
Content viewset that supports POST and GET by default.
|
18
73
|
|
19
74
|
### Example
|
20
75
|
|
@@ -32,7 +87,7 @@ api_instance = PulpcoreClient::ContentApi.new
|
|
32
87
|
opts = {
|
33
88
|
limit: 56, # Integer | Number of results to return per page.
|
34
89
|
offset: 56, # Integer | The initial index from which to return the results.
|
35
|
-
ordering: 'ordering_example', # String |
|
90
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
36
91
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
37
92
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
38
93
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
@@ -56,7 +111,7 @@ Name | Type | Description | Notes
|
|
56
111
|
------------- | ------------- | ------------- | -------------
|
57
112
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
58
113
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
59
|
-
**ordering** | **String
|
114
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
60
115
|
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
61
116
|
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|
62
117
|
**repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
|
@@ -76,3 +131,62 @@ Name | Type | Description | Notes
|
|
76
131
|
- **Content-Type**: Not defined
|
77
132
|
- **Accept**: application/json
|
78
133
|
|
134
|
+
|
135
|
+
## read
|
136
|
+
|
137
|
+
> MultipleArtifactContentResponse read(content_href, opts)
|
138
|
+
|
139
|
+
Inspect a content
|
140
|
+
|
141
|
+
Content viewset that supports POST and GET by default.
|
142
|
+
|
143
|
+
### Example
|
144
|
+
|
145
|
+
```ruby
|
146
|
+
# load the gem
|
147
|
+
require 'pulpcore_client'
|
148
|
+
# setup authorization
|
149
|
+
PulpcoreClient.configure do |config|
|
150
|
+
# Configure HTTP basic authorization: basicAuth
|
151
|
+
config.username = 'YOUR USERNAME'
|
152
|
+
config.password = 'YOUR PASSWORD'
|
153
|
+
end
|
154
|
+
|
155
|
+
api_instance = PulpcoreClient::ContentApi.new
|
156
|
+
content_href = 'content_href_example' # String |
|
157
|
+
opts = {
|
158
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
159
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
160
|
+
}
|
161
|
+
|
162
|
+
begin
|
163
|
+
#Inspect a content
|
164
|
+
result = api_instance.read(content_href, opts)
|
165
|
+
p result
|
166
|
+
rescue PulpcoreClient::ApiError => e
|
167
|
+
puts "Exception when calling ContentApi->read: #{e}"
|
168
|
+
end
|
169
|
+
```
|
170
|
+
|
171
|
+
### Parameters
|
172
|
+
|
173
|
+
|
174
|
+
Name | Type | Description | Notes
|
175
|
+
------------- | ------------- | ------------- | -------------
|
176
|
+
**content_href** | **String**| |
|
177
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
178
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
179
|
+
|
180
|
+
### Return type
|
181
|
+
|
182
|
+
[**MultipleArtifactContentResponse**](MultipleArtifactContentResponse.md)
|
183
|
+
|
184
|
+
### Authorization
|
185
|
+
|
186
|
+
[basicAuth](../README.md#basicAuth)
|
187
|
+
|
188
|
+
### HTTP request headers
|
189
|
+
|
190
|
+
- **Content-Type**: Not defined
|
191
|
+
- **Accept**: application/json
|
192
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# PulpcoreClient::ContentGuard
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**name** | **String** | The unique name. |
|
8
|
+
**description** | **String** | An optional description. | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'PulpcoreClient'
|
14
|
+
|
15
|
+
instance = PulpcoreClient::ContentGuard.new(name: null,
|
16
|
+
description: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|