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/TaskGroupsApi.md
CHANGED
@@ -33,7 +33,7 @@ api_instance = PulpcoreClient::TaskGroupsApi.new
|
|
33
33
|
opts = {
|
34
34
|
limit: 56, # Integer | Number of results to return per page.
|
35
35
|
offset: 56, # Integer | The initial index from which to return the results.
|
36
|
-
ordering: 'ordering_example', # String |
|
36
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
37
37
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
38
38
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
39
39
|
}
|
@@ -54,7 +54,7 @@ Name | Type | Description | Notes
|
|
54
54
|
------------- | ------------- | ------------- | -------------
|
55
55
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
56
56
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
57
|
-
**ordering** | **String
|
57
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
58
58
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
59
59
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
60
60
|
|
data/docs/TaskSchedulesApi.md
CHANGED
@@ -93,7 +93,7 @@ opts = {
|
|
93
93
|
name: 'name_example', # String |
|
94
94
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
95
95
|
offset: 56, # Integer | The initial index from which to return the results.
|
96
|
-
ordering: 'ordering_example', # String |
|
96
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
97
97
|
task_name: 'task_name_example', # String |
|
98
98
|
task_name__contains: 'task_name__contains_example', # String | Filter results where task_name contains value
|
99
99
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
@@ -118,7 +118,7 @@ Name | Type | Description | Notes
|
|
118
118
|
**name** | **String**| | [optional]
|
119
119
|
**name__contains** | **String**| Filter results where name contains value | [optional]
|
120
120
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
121
|
-
**ordering** | **String
|
121
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
122
122
|
**task_name** | **String**| | [optional]
|
123
123
|
**task_name__contains** | **String**| Filter results where task_name contains value | [optional]
|
124
124
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
data/docs/TasksApi.md
CHANGED
@@ -158,7 +158,7 @@ opts = {
|
|
158
158
|
name: 'name_example', # String |
|
159
159
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
160
160
|
offset: 56, # Integer | The initial index from which to return the results.
|
161
|
-
ordering: 'ordering_example', # String |
|
161
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
162
162
|
parent_task: 'parent_task_example', # String | Foreign Key referenced by HREF
|
163
163
|
reserved_resources_record: ['reserved_resources_record_example'], # Array<String> |
|
164
164
|
started_at: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
|
@@ -204,7 +204,7 @@ Name | Type | Description | Notes
|
|
204
204
|
**name** | **String**| | [optional]
|
205
205
|
**name__contains** | **String**| Filter results where name contains value | [optional]
|
206
206
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
207
|
-
**ordering** | **String
|
207
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
208
208
|
**parent_task** | [**String**](.md)| Foreign Key referenced by HREF | [optional]
|
209
209
|
**reserved_resources_record** | [**Array<String>**](String.md)| | [optional]
|
210
210
|
**started_at** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
|
data/docs/UploadsApi.md
CHANGED
@@ -197,7 +197,6 @@ api_instance = PulpcoreClient::UploadsApi.new
|
|
197
197
|
opts = {
|
198
198
|
limit: 56, # Integer | Number of results to return per page.
|
199
199
|
offset: 56, # Integer | The initial index from which to return the results.
|
200
|
-
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
201
200
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
202
201
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
203
202
|
}
|
@@ -218,7 +217,6 @@ Name | Type | Description | Notes
|
|
218
217
|
------------- | ------------- | ------------- | -------------
|
219
218
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
220
219
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
221
|
-
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
222
220
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
223
221
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
224
222
|
|
data/docs/UserRole.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**role** | **String** | |
|
8
|
-
**content_object** | **String** |
|
8
|
+
**content_object** | **String** | pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on the model-level. |
|
9
9
|
|
10
10
|
## Code Sample
|
11
11
|
|
data/docs/UserRoleResponse.md
CHANGED
@@ -7,7 +7,9 @@ Name | Type | Description | Notes
|
|
7
7
|
**pulp_href** | **String** | | [optional] [readonly]
|
8
8
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
9
|
**role** | **String** | |
|
10
|
-
**content_object** | **String** |
|
10
|
+
**content_object** | **String** | pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on the model-level. |
|
11
|
+
**description** | **String** | | [optional] [readonly]
|
12
|
+
**permissions** | **Array<String>** | | [optional] [readonly]
|
11
13
|
|
12
14
|
## Code Sample
|
13
15
|
|
@@ -17,7 +19,9 @@ require 'PulpcoreClient'
|
|
17
19
|
instance = PulpcoreClient::UserRoleResponse.new(pulp_href: null,
|
18
20
|
pulp_created: null,
|
19
21
|
role: null,
|
20
|
-
content_object: null
|
22
|
+
content_object: null,
|
23
|
+
description: null,
|
24
|
+
permissions: null)
|
21
25
|
```
|
22
26
|
|
23
27
|
|
data/docs/UsersApi.md
CHANGED
@@ -8,7 +8,6 @@ Method | HTTP request | Description
|
|
8
8
|
[**delete**](UsersApi.md#delete) | **DELETE** {auth_user_href} | Delete an user
|
9
9
|
[**list**](UsersApi.md#list) | **GET** /pulp/api/v3/users/ | List users
|
10
10
|
[**partial_update**](UsersApi.md#partial_update) | **PATCH** {auth_user_href} | Update an user
|
11
|
-
[**permissions**](UsersApi.md#permissions) | **GET** {auth_user_href}permissions/ |
|
12
11
|
[**read**](UsersApi.md#read) | **GET** {auth_user_href} | Inspect an user
|
13
12
|
[**update**](UsersApi.md#update) | **PUT** {auth_user_href} | Update an user
|
14
13
|
|
@@ -160,7 +159,7 @@ opts = {
|
|
160
159
|
last_name__in: ['last_name__in_example'], # Array<String> | Filter results where last_name is in a comma-separated list of values
|
161
160
|
limit: 56, # Integer | Number of results to return per page.
|
162
161
|
offset: 56, # Integer | The initial index from which to return the results.
|
163
|
-
ordering: 'ordering_example', # String |
|
162
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
164
163
|
username: 'username_example', # String | Filter results where username matches value
|
165
164
|
username__contains: 'username__contains_example', # String | Filter results where username contains value
|
166
165
|
username__icontains: 'username__icontains_example', # String | Filter results where username contains value
|
@@ -203,7 +202,7 @@ Name | Type | Description | Notes
|
|
203
202
|
**last_name__in** | [**Array<String>**](String.md)| Filter results where last_name is in a comma-separated list of values | [optional]
|
204
203
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
205
204
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
206
|
-
**ordering** | **String
|
205
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
207
206
|
**username** | **String**| Filter results where username matches value | [optional]
|
208
207
|
**username__contains** | **String**| Filter results where username contains value | [optional]
|
209
208
|
**username__icontains** | **String**| Filter results where username contains value | [optional]
|
@@ -281,64 +280,6 @@ Name | Type | Description | Notes
|
|
281
280
|
- **Accept**: application/json
|
282
281
|
|
283
282
|
|
284
|
-
## permissions
|
285
|
-
|
286
|
-
> PermissionResponse permissions(auth_user_href, opts)
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
List user permissions.
|
291
|
-
|
292
|
-
### Example
|
293
|
-
|
294
|
-
```ruby
|
295
|
-
# load the gem
|
296
|
-
require 'pulpcore_client'
|
297
|
-
# setup authorization
|
298
|
-
PulpcoreClient.configure do |config|
|
299
|
-
# Configure HTTP basic authorization: basicAuth
|
300
|
-
config.username = 'YOUR USERNAME'
|
301
|
-
config.password = 'YOUR PASSWORD'
|
302
|
-
end
|
303
|
-
|
304
|
-
api_instance = PulpcoreClient::UsersApi.new
|
305
|
-
auth_user_href = 'auth_user_href_example' # String |
|
306
|
-
opts = {
|
307
|
-
fields: 'fields_example', # String | A list of fields to include in the response.
|
308
|
-
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
309
|
-
}
|
310
|
-
|
311
|
-
begin
|
312
|
-
result = api_instance.permissions(auth_user_href, opts)
|
313
|
-
p result
|
314
|
-
rescue PulpcoreClient::ApiError => e
|
315
|
-
puts "Exception when calling UsersApi->permissions: #{e}"
|
316
|
-
end
|
317
|
-
```
|
318
|
-
|
319
|
-
### Parameters
|
320
|
-
|
321
|
-
|
322
|
-
Name | Type | Description | Notes
|
323
|
-
------------- | ------------- | ------------- | -------------
|
324
|
-
**auth_user_href** | **String**| |
|
325
|
-
**fields** | **String**| A list of fields to include in the response. | [optional]
|
326
|
-
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
327
|
-
|
328
|
-
### Return type
|
329
|
-
|
330
|
-
[**PermissionResponse**](PermissionResponse.md)
|
331
|
-
|
332
|
-
### Authorization
|
333
|
-
|
334
|
-
[basicAuth](../README.md#basicAuth)
|
335
|
-
|
336
|
-
### HTTP request headers
|
337
|
-
|
338
|
-
- **Content-Type**: Not defined
|
339
|
-
- **Accept**: application/json
|
340
|
-
|
341
|
-
|
342
283
|
## read
|
343
284
|
|
344
285
|
> UserResponse read(auth_user_href, opts)
|
data/docs/UsersRolesApi.md
CHANGED
@@ -144,7 +144,7 @@ opts = {
|
|
144
144
|
content_object: 'content_object_example', # String | content_object
|
145
145
|
limit: 56, # Integer | Number of results to return per page.
|
146
146
|
offset: 56, # Integer | The initial index from which to return the results.
|
147
|
-
ordering: 'ordering_example', # String |
|
147
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
148
148
|
role: 'role_example', # String |
|
149
149
|
role__contains: 'role__contains_example', # String |
|
150
150
|
role__icontains: 'role__icontains_example', # String |
|
@@ -172,7 +172,7 @@ Name | Type | Description | Notes
|
|
172
172
|
**content_object** | **String**| content_object | [optional]
|
173
173
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
174
174
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
175
|
-
**ordering** | **String
|
175
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
176
176
|
**role** | **String**| | [optional]
|
177
177
|
**role__contains** | **String**| | [optional]
|
178
178
|
**role__icontains** | **String**| | [optional]
|
data/docs/VersionResponse.md
CHANGED
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**component** | **String** | Name of a versioned component of Pulp |
|
8
8
|
**version** | **String** | Version of the component (e.g. 3.0.0) |
|
9
|
+
**package** | **String** | Python package name providing the component |
|
9
10
|
|
10
11
|
## Code Sample
|
11
12
|
|
@@ -13,7 +14,8 @@ Name | Type | Description | Notes
|
|
13
14
|
require 'PulpcoreClient'
|
14
15
|
|
15
16
|
instance = PulpcoreClient::VersionResponse.new(component: null,
|
16
|
-
version: null
|
17
|
+
version: null,
|
18
|
+
package: null)
|
17
19
|
```
|
18
20
|
|
19
21
|
|
data/docs/WorkersApi.md
CHANGED
@@ -46,7 +46,7 @@ opts = {
|
|
46
46
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
47
47
|
offset: 56, # Integer | The initial index from which to return the results.
|
48
48
|
online: true, # Boolean |
|
49
|
-
ordering: 'ordering_example', # String |
|
49
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
50
50
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
51
51
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
52
52
|
}
|
@@ -80,7 +80,7 @@ Name | Type | Description | Notes
|
|
80
80
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
81
81
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
82
82
|
**online** | **Boolean**| | [optional]
|
83
|
-
**ordering** | **String
|
83
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
84
84
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
85
85
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
86
86
|
|
@@ -25,7 +25,7 @@ module PulpcoreClient
|
|
25
25
|
# @option opts [Boolean] :customized
|
26
26
|
# @option opts [Integer] :limit Number of results to return per page.
|
27
27
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
28
|
-
# @option opts [String] :ordering
|
28
|
+
# @option opts [Array<String>] :ordering Ordering
|
29
29
|
# @option opts [String] :viewset_name Filter results where viewset_name matches value
|
30
30
|
# @option opts [String] :viewset_name__contains Filter results where viewset_name contains value
|
31
31
|
# @option opts [String] :viewset_name__icontains Filter results where viewset_name contains value
|
@@ -45,7 +45,7 @@ module PulpcoreClient
|
|
45
45
|
# @option opts [Boolean] :customized
|
46
46
|
# @option opts [Integer] :limit Number of results to return per page.
|
47
47
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
48
|
-
# @option opts [String] :ordering
|
48
|
+
# @option opts [Array<String>] :ordering Ordering
|
49
49
|
# @option opts [String] :viewset_name Filter results where viewset_name matches value
|
50
50
|
# @option opts [String] :viewset_name__contains Filter results where viewset_name contains value
|
51
51
|
# @option opts [String] :viewset_name__icontains Filter results where viewset_name contains value
|
@@ -58,6 +58,10 @@ module PulpcoreClient
|
|
58
58
|
if @api_client.config.debugging
|
59
59
|
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.list ...'
|
60
60
|
end
|
61
|
+
allowable_values = ["-creation_hooks", "-customized", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-queryset_scoping", "-statements", "-user_roles", "-viewset_name", "creation_hooks", "customized", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "queryset_scoping", "statements", "user_roles", "viewset_name"]
|
62
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
63
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
64
|
+
end
|
61
65
|
# resource path
|
62
66
|
local_var_path = '/pulp/api/v3/access_policies/'
|
63
67
|
|
@@ -66,7 +70,7 @@ module PulpcoreClient
|
|
66
70
|
query_params[:'customized'] = opts[:'customized'] if !opts[:'customized'].nil?
|
67
71
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
68
72
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
69
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
73
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
70
74
|
query_params[:'viewset_name'] = opts[:'viewset_name'] if !opts[:'viewset_name'].nil?
|
71
75
|
query_params[:'viewset_name__contains'] = opts[:'viewset_name__contains'] if !opts[:'viewset_name__contains'].nil?
|
72
76
|
query_params[:'viewset_name__icontains'] = opts[:'viewset_name__icontains'] if !opts[:'viewset_name__icontains'].nil?
|