pulpcore_client 3.19.1 → 3.20.0
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 +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/ContentguardsApi.md
CHANGED
|
@@ -4,17 +4,127 @@ All URIs are relative to *https://pulp*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
+
[**create**](ContentguardsApi.md#create) | **POST** /pulp/api/v3/contentguards/ | Create a content guard
|
|
8
|
+
[**delete**](ContentguardsApi.md#delete) | **DELETE** {content_guard_href} | Delete a content guard
|
|
7
9
|
[**list**](ContentguardsApi.md#list) | **GET** /pulp/api/v3/contentguards/ | List content guards
|
|
10
|
+
[**partial_update**](ContentguardsApi.md#partial_update) | **PATCH** {content_guard_href} | Update a content guard
|
|
11
|
+
[**read**](ContentguardsApi.md#read) | **GET** {content_guard_href} | Inspect a content guard
|
|
12
|
+
[**update**](ContentguardsApi.md#update) | **PUT** {content_guard_href} | Update a content guard
|
|
8
13
|
|
|
9
14
|
|
|
10
15
|
|
|
16
|
+
## create
|
|
17
|
+
|
|
18
|
+
> ContentGuardResponse create(content_guard)
|
|
19
|
+
|
|
20
|
+
Create a content guard
|
|
21
|
+
|
|
22
|
+
A viewset for contentguards.
|
|
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::ContentguardsApi.new
|
|
37
|
+
content_guard = PulpcoreClient::ContentGuard.new # ContentGuard |
|
|
38
|
+
|
|
39
|
+
begin
|
|
40
|
+
#Create a content guard
|
|
41
|
+
result = api_instance.create(content_guard)
|
|
42
|
+
p result
|
|
43
|
+
rescue PulpcoreClient::ApiError => e
|
|
44
|
+
puts "Exception when calling ContentguardsApi->create: #{e}"
|
|
45
|
+
end
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Parameters
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
Name | Type | Description | Notes
|
|
52
|
+
------------- | ------------- | ------------- | -------------
|
|
53
|
+
**content_guard** | [**ContentGuard**](ContentGuard.md)| |
|
|
54
|
+
|
|
55
|
+
### Return type
|
|
56
|
+
|
|
57
|
+
[**ContentGuardResponse**](ContentGuardResponse.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
|
+
> delete(content_guard_href)
|
|
72
|
+
|
|
73
|
+
Delete a content guard
|
|
74
|
+
|
|
75
|
+
A viewset for contentguards.
|
|
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::ContentguardsApi.new
|
|
90
|
+
content_guard_href = 'content_guard_href_example' # String |
|
|
91
|
+
|
|
92
|
+
begin
|
|
93
|
+
#Delete a content guard
|
|
94
|
+
api_instance.delete(content_guard_href)
|
|
95
|
+
rescue PulpcoreClient::ApiError => e
|
|
96
|
+
puts "Exception when calling ContentguardsApi->delete: #{e}"
|
|
97
|
+
end
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Parameters
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
Name | Type | Description | Notes
|
|
104
|
+
------------- | ------------- | ------------- | -------------
|
|
105
|
+
**content_guard_href** | **String**| |
|
|
106
|
+
|
|
107
|
+
### Return type
|
|
108
|
+
|
|
109
|
+
nil (empty response body)
|
|
110
|
+
|
|
111
|
+
### Authorization
|
|
112
|
+
|
|
113
|
+
[basicAuth](../README.md#basicAuth)
|
|
114
|
+
|
|
115
|
+
### HTTP request headers
|
|
116
|
+
|
|
117
|
+
- **Content-Type**: Not defined
|
|
118
|
+
- **Accept**: Not defined
|
|
119
|
+
|
|
120
|
+
|
|
11
121
|
## list
|
|
12
122
|
|
|
13
123
|
> PaginatedContentGuardResponseList list(opts)
|
|
14
124
|
|
|
15
125
|
List content guards
|
|
16
126
|
|
|
17
|
-
|
|
127
|
+
A viewset for contentguards.
|
|
18
128
|
|
|
19
129
|
### Example
|
|
20
130
|
|
|
@@ -37,7 +147,7 @@ opts = {
|
|
|
37
147
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
|
38
148
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
|
39
149
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
40
|
-
ordering: 'ordering_example', # String |
|
|
150
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
41
151
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
42
152
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
43
153
|
}
|
|
@@ -63,7 +173,7 @@ Name | Type | Description | Notes
|
|
|
63
173
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
|
64
174
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
|
65
175
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
66
|
-
**ordering** | **String
|
|
176
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
67
177
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
68
178
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
69
179
|
|
|
@@ -80,3 +190,172 @@ Name | Type | Description | Notes
|
|
|
80
190
|
- **Content-Type**: Not defined
|
|
81
191
|
- **Accept**: application/json
|
|
82
192
|
|
|
193
|
+
|
|
194
|
+
## partial_update
|
|
195
|
+
|
|
196
|
+
> ContentGuardResponse partial_update(content_guard_href, patched_content_guard)
|
|
197
|
+
|
|
198
|
+
Update a content guard
|
|
199
|
+
|
|
200
|
+
A viewset for contentguards.
|
|
201
|
+
|
|
202
|
+
### Example
|
|
203
|
+
|
|
204
|
+
```ruby
|
|
205
|
+
# load the gem
|
|
206
|
+
require 'pulpcore_client'
|
|
207
|
+
# setup authorization
|
|
208
|
+
PulpcoreClient.configure do |config|
|
|
209
|
+
# Configure HTTP basic authorization: basicAuth
|
|
210
|
+
config.username = 'YOUR USERNAME'
|
|
211
|
+
config.password = 'YOUR PASSWORD'
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
api_instance = PulpcoreClient::ContentguardsApi.new
|
|
215
|
+
content_guard_href = 'content_guard_href_example' # String |
|
|
216
|
+
patched_content_guard = PulpcoreClient::PatchedContentGuard.new # PatchedContentGuard |
|
|
217
|
+
|
|
218
|
+
begin
|
|
219
|
+
#Update a content guard
|
|
220
|
+
result = api_instance.partial_update(content_guard_href, patched_content_guard)
|
|
221
|
+
p result
|
|
222
|
+
rescue PulpcoreClient::ApiError => e
|
|
223
|
+
puts "Exception when calling ContentguardsApi->partial_update: #{e}"
|
|
224
|
+
end
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### Parameters
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
Name | Type | Description | Notes
|
|
231
|
+
------------- | ------------- | ------------- | -------------
|
|
232
|
+
**content_guard_href** | **String**| |
|
|
233
|
+
**patched_content_guard** | [**PatchedContentGuard**](PatchedContentGuard.md)| |
|
|
234
|
+
|
|
235
|
+
### Return type
|
|
236
|
+
|
|
237
|
+
[**ContentGuardResponse**](ContentGuardResponse.md)
|
|
238
|
+
|
|
239
|
+
### Authorization
|
|
240
|
+
|
|
241
|
+
[basicAuth](../README.md#basicAuth)
|
|
242
|
+
|
|
243
|
+
### HTTP request headers
|
|
244
|
+
|
|
245
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
246
|
+
- **Accept**: application/json
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
## read
|
|
250
|
+
|
|
251
|
+
> ContentGuardResponse read(content_guard_href, opts)
|
|
252
|
+
|
|
253
|
+
Inspect a content guard
|
|
254
|
+
|
|
255
|
+
A viewset for contentguards.
|
|
256
|
+
|
|
257
|
+
### Example
|
|
258
|
+
|
|
259
|
+
```ruby
|
|
260
|
+
# load the gem
|
|
261
|
+
require 'pulpcore_client'
|
|
262
|
+
# setup authorization
|
|
263
|
+
PulpcoreClient.configure do |config|
|
|
264
|
+
# Configure HTTP basic authorization: basicAuth
|
|
265
|
+
config.username = 'YOUR USERNAME'
|
|
266
|
+
config.password = 'YOUR PASSWORD'
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
api_instance = PulpcoreClient::ContentguardsApi.new
|
|
270
|
+
content_guard_href = 'content_guard_href_example' # String |
|
|
271
|
+
opts = {
|
|
272
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
273
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
begin
|
|
277
|
+
#Inspect a content guard
|
|
278
|
+
result = api_instance.read(content_guard_href, opts)
|
|
279
|
+
p result
|
|
280
|
+
rescue PulpcoreClient::ApiError => e
|
|
281
|
+
puts "Exception when calling ContentguardsApi->read: #{e}"
|
|
282
|
+
end
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
### Parameters
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
Name | Type | Description | Notes
|
|
289
|
+
------------- | ------------- | ------------- | -------------
|
|
290
|
+
**content_guard_href** | **String**| |
|
|
291
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
292
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
293
|
+
|
|
294
|
+
### Return type
|
|
295
|
+
|
|
296
|
+
[**ContentGuardResponse**](ContentGuardResponse.md)
|
|
297
|
+
|
|
298
|
+
### Authorization
|
|
299
|
+
|
|
300
|
+
[basicAuth](../README.md#basicAuth)
|
|
301
|
+
|
|
302
|
+
### HTTP request headers
|
|
303
|
+
|
|
304
|
+
- **Content-Type**: Not defined
|
|
305
|
+
- **Accept**: application/json
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
## update
|
|
309
|
+
|
|
310
|
+
> ContentGuardResponse update(content_guard_href, content_guard)
|
|
311
|
+
|
|
312
|
+
Update a content guard
|
|
313
|
+
|
|
314
|
+
A viewset for contentguards.
|
|
315
|
+
|
|
316
|
+
### Example
|
|
317
|
+
|
|
318
|
+
```ruby
|
|
319
|
+
# load the gem
|
|
320
|
+
require 'pulpcore_client'
|
|
321
|
+
# setup authorization
|
|
322
|
+
PulpcoreClient.configure do |config|
|
|
323
|
+
# Configure HTTP basic authorization: basicAuth
|
|
324
|
+
config.username = 'YOUR USERNAME'
|
|
325
|
+
config.password = 'YOUR PASSWORD'
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
api_instance = PulpcoreClient::ContentguardsApi.new
|
|
329
|
+
content_guard_href = 'content_guard_href_example' # String |
|
|
330
|
+
content_guard = PulpcoreClient::ContentGuard.new # ContentGuard |
|
|
331
|
+
|
|
332
|
+
begin
|
|
333
|
+
#Update a content guard
|
|
334
|
+
result = api_instance.update(content_guard_href, content_guard)
|
|
335
|
+
p result
|
|
336
|
+
rescue PulpcoreClient::ApiError => e
|
|
337
|
+
puts "Exception when calling ContentguardsApi->update: #{e}"
|
|
338
|
+
end
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
### Parameters
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
Name | Type | Description | Notes
|
|
345
|
+
------------- | ------------- | ------------- | -------------
|
|
346
|
+
**content_guard_href** | **String**| |
|
|
347
|
+
**content_guard** | [**ContentGuard**](ContentGuard.md)| |
|
|
348
|
+
|
|
349
|
+
### Return type
|
|
350
|
+
|
|
351
|
+
[**ContentGuardResponse**](ContentGuardResponse.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
|
+
|
|
@@ -4,15 +4,73 @@ All URIs are relative to *https://pulp*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
+
[**add_role**](ContentguardsContentRedirectApi.md#add_role) | **POST** {content_redirect_content_guard_href}add_role/ |
|
|
7
8
|
[**create**](ContentguardsContentRedirectApi.md#create) | **POST** /pulp/api/v3/contentguards/core/content_redirect/ | Create a content redirect content guard
|
|
8
9
|
[**delete**](ContentguardsContentRedirectApi.md#delete) | **DELETE** {content_redirect_content_guard_href} | Delete a content redirect content guard
|
|
9
10
|
[**list**](ContentguardsContentRedirectApi.md#list) | **GET** /pulp/api/v3/contentguards/core/content_redirect/ | List content redirect content guards
|
|
11
|
+
[**list_roles**](ContentguardsContentRedirectApi.md#list_roles) | **GET** {content_redirect_content_guard_href}list_roles/ |
|
|
12
|
+
[**my_permissions**](ContentguardsContentRedirectApi.md#my_permissions) | **GET** {content_redirect_content_guard_href}my_permissions/ |
|
|
10
13
|
[**partial_update**](ContentguardsContentRedirectApi.md#partial_update) | **PATCH** {content_redirect_content_guard_href} | Update a content redirect content guard
|
|
11
14
|
[**read**](ContentguardsContentRedirectApi.md#read) | **GET** {content_redirect_content_guard_href} | Inspect a content redirect content guard
|
|
15
|
+
[**remove_role**](ContentguardsContentRedirectApi.md#remove_role) | **POST** {content_redirect_content_guard_href}remove_role/ |
|
|
12
16
|
[**update**](ContentguardsContentRedirectApi.md#update) | **PUT** {content_redirect_content_guard_href} | Update a content redirect content guard
|
|
13
17
|
|
|
14
18
|
|
|
15
19
|
|
|
20
|
+
## add_role
|
|
21
|
+
|
|
22
|
+
> NestedRoleResponse add_role(content_redirect_content_guard_href, nested_role)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
Add a role for this object to users/groups.
|
|
27
|
+
|
|
28
|
+
### Example
|
|
29
|
+
|
|
30
|
+
```ruby
|
|
31
|
+
# load the gem
|
|
32
|
+
require 'pulpcore_client'
|
|
33
|
+
# setup authorization
|
|
34
|
+
PulpcoreClient.configure do |config|
|
|
35
|
+
# Configure HTTP basic authorization: basicAuth
|
|
36
|
+
config.username = 'YOUR USERNAME'
|
|
37
|
+
config.password = 'YOUR PASSWORD'
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
api_instance = PulpcoreClient::ContentguardsContentRedirectApi.new
|
|
41
|
+
content_redirect_content_guard_href = 'content_redirect_content_guard_href_example' # String |
|
|
42
|
+
nested_role = PulpcoreClient::NestedRole.new # NestedRole |
|
|
43
|
+
|
|
44
|
+
begin
|
|
45
|
+
result = api_instance.add_role(content_redirect_content_guard_href, nested_role)
|
|
46
|
+
p result
|
|
47
|
+
rescue PulpcoreClient::ApiError => e
|
|
48
|
+
puts "Exception when calling ContentguardsContentRedirectApi->add_role: #{e}"
|
|
49
|
+
end
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Parameters
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
Name | Type | Description | Notes
|
|
56
|
+
------------- | ------------- | ------------- | -------------
|
|
57
|
+
**content_redirect_content_guard_href** | **String**| |
|
|
58
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
|
59
|
+
|
|
60
|
+
### Return type
|
|
61
|
+
|
|
62
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
|
63
|
+
|
|
64
|
+
### Authorization
|
|
65
|
+
|
|
66
|
+
[basicAuth](../README.md#basicAuth)
|
|
67
|
+
|
|
68
|
+
### HTTP request headers
|
|
69
|
+
|
|
70
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
71
|
+
- **Accept**: application/json
|
|
72
|
+
|
|
73
|
+
|
|
16
74
|
## create
|
|
17
75
|
|
|
18
76
|
> ContentRedirectContentGuardResponse create(content_redirect_content_guard)
|
|
@@ -147,7 +205,7 @@ opts = {
|
|
|
147
205
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
|
148
206
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
|
149
207
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
150
|
-
ordering: 'ordering_example', # String |
|
|
208
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
151
209
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
152
210
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
153
211
|
}
|
|
@@ -173,7 +231,7 @@ Name | Type | Description | Notes
|
|
|
173
231
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
|
174
232
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
|
175
233
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
176
|
-
**ordering** | **String
|
|
234
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
177
235
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
178
236
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
179
237
|
|
|
@@ -191,6 +249,122 @@ Name | Type | Description | Notes
|
|
|
191
249
|
- **Accept**: application/json
|
|
192
250
|
|
|
193
251
|
|
|
252
|
+
## list_roles
|
|
253
|
+
|
|
254
|
+
> ObjectRolesResponse list_roles(content_redirect_content_guard_href, opts)
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
List roles assigned to this object.
|
|
259
|
+
|
|
260
|
+
### Example
|
|
261
|
+
|
|
262
|
+
```ruby
|
|
263
|
+
# load the gem
|
|
264
|
+
require 'pulpcore_client'
|
|
265
|
+
# setup authorization
|
|
266
|
+
PulpcoreClient.configure do |config|
|
|
267
|
+
# Configure HTTP basic authorization: basicAuth
|
|
268
|
+
config.username = 'YOUR USERNAME'
|
|
269
|
+
config.password = 'YOUR PASSWORD'
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
api_instance = PulpcoreClient::ContentguardsContentRedirectApi.new
|
|
273
|
+
content_redirect_content_guard_href = 'content_redirect_content_guard_href_example' # String |
|
|
274
|
+
opts = {
|
|
275
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
276
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
begin
|
|
280
|
+
result = api_instance.list_roles(content_redirect_content_guard_href, opts)
|
|
281
|
+
p result
|
|
282
|
+
rescue PulpcoreClient::ApiError => e
|
|
283
|
+
puts "Exception when calling ContentguardsContentRedirectApi->list_roles: #{e}"
|
|
284
|
+
end
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
### Parameters
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
Name | Type | Description | Notes
|
|
291
|
+
------------- | ------------- | ------------- | -------------
|
|
292
|
+
**content_redirect_content_guard_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
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.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
|
+
## my_permissions
|
|
311
|
+
|
|
312
|
+
> MyPermissionsResponse my_permissions(content_redirect_content_guard_href, opts)
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
List permissions available to the current user on this object.
|
|
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::ContentguardsContentRedirectApi.new
|
|
331
|
+
content_redirect_content_guard_href = 'content_redirect_content_guard_href_example' # String |
|
|
332
|
+
opts = {
|
|
333
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
334
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
begin
|
|
338
|
+
result = api_instance.my_permissions(content_redirect_content_guard_href, opts)
|
|
339
|
+
p result
|
|
340
|
+
rescue PulpcoreClient::ApiError => e
|
|
341
|
+
puts "Exception when calling ContentguardsContentRedirectApi->my_permissions: #{e}"
|
|
342
|
+
end
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
### Parameters
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
Name | Type | Description | Notes
|
|
349
|
+
------------- | ------------- | ------------- | -------------
|
|
350
|
+
**content_redirect_content_guard_href** | **String**| |
|
|
351
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
352
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
353
|
+
|
|
354
|
+
### Return type
|
|
355
|
+
|
|
356
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
|
357
|
+
|
|
358
|
+
### Authorization
|
|
359
|
+
|
|
360
|
+
[basicAuth](../README.md#basicAuth)
|
|
361
|
+
|
|
362
|
+
### HTTP request headers
|
|
363
|
+
|
|
364
|
+
- **Content-Type**: Not defined
|
|
365
|
+
- **Accept**: application/json
|
|
366
|
+
|
|
367
|
+
|
|
194
368
|
## partial_update
|
|
195
369
|
|
|
196
370
|
> ContentRedirectContentGuardResponse partial_update(content_redirect_content_guard_href, patched_content_redirect_content_guard)
|
|
@@ -305,6 +479,60 @@ Name | Type | Description | Notes
|
|
|
305
479
|
- **Accept**: application/json
|
|
306
480
|
|
|
307
481
|
|
|
482
|
+
## remove_role
|
|
483
|
+
|
|
484
|
+
> NestedRoleResponse remove_role(content_redirect_content_guard_href, nested_role)
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
Remove a role for this object from users/groups.
|
|
489
|
+
|
|
490
|
+
### Example
|
|
491
|
+
|
|
492
|
+
```ruby
|
|
493
|
+
# load the gem
|
|
494
|
+
require 'pulpcore_client'
|
|
495
|
+
# setup authorization
|
|
496
|
+
PulpcoreClient.configure do |config|
|
|
497
|
+
# Configure HTTP basic authorization: basicAuth
|
|
498
|
+
config.username = 'YOUR USERNAME'
|
|
499
|
+
config.password = 'YOUR PASSWORD'
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
api_instance = PulpcoreClient::ContentguardsContentRedirectApi.new
|
|
503
|
+
content_redirect_content_guard_href = 'content_redirect_content_guard_href_example' # String |
|
|
504
|
+
nested_role = PulpcoreClient::NestedRole.new # NestedRole |
|
|
505
|
+
|
|
506
|
+
begin
|
|
507
|
+
result = api_instance.remove_role(content_redirect_content_guard_href, nested_role)
|
|
508
|
+
p result
|
|
509
|
+
rescue PulpcoreClient::ApiError => e
|
|
510
|
+
puts "Exception when calling ContentguardsContentRedirectApi->remove_role: #{e}"
|
|
511
|
+
end
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
### Parameters
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
Name | Type | Description | Notes
|
|
518
|
+
------------- | ------------- | ------------- | -------------
|
|
519
|
+
**content_redirect_content_guard_href** | **String**| |
|
|
520
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
|
521
|
+
|
|
522
|
+
### Return type
|
|
523
|
+
|
|
524
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
|
525
|
+
|
|
526
|
+
### Authorization
|
|
527
|
+
|
|
528
|
+
[basicAuth](../README.md#basicAuth)
|
|
529
|
+
|
|
530
|
+
### HTTP request headers
|
|
531
|
+
|
|
532
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
533
|
+
- **Accept**: application/json
|
|
534
|
+
|
|
535
|
+
|
|
308
536
|
## update
|
|
309
537
|
|
|
310
538
|
> ContentRedirectContentGuardResponse update(content_redirect_content_guard_href, content_redirect_content_guard)
|
|
@@ -205,7 +205,7 @@ opts = {
|
|
|
205
205
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
|
206
206
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
|
207
207
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
208
|
-
ordering: 'ordering_example', # String |
|
|
208
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
209
209
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
210
210
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
211
211
|
}
|
|
@@ -231,7 +231,7 @@ Name | Type | Description | Notes
|
|
|
231
231
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
|
232
232
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
|
233
233
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
234
|
-
**ordering** | **String
|
|
234
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
235
235
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
236
236
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
237
237
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# PulpcoreClient::Distribution
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
|
8
|
+
**content_guard** | **String** | An optional content-guard. | [optional]
|
|
9
|
+
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
10
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
|
11
|
+
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
12
|
+
|
|
13
|
+
## Code Sample
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'PulpcoreClient'
|
|
17
|
+
|
|
18
|
+
instance = PulpcoreClient::Distribution.new(base_path: null,
|
|
19
|
+
content_guard: null,
|
|
20
|
+
pulp_labels: null,
|
|
21
|
+
name: null,
|
|
22
|
+
repository: null)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|