pulpcore_client 3.5.0 → 3.6.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 +88 -44
- data/docs/AccessPoliciesApi.md +244 -0
- data/docs/AccessPolicy.md +21 -0
- data/docs/AccessPolicyResponse.md +25 -0
- data/docs/Artifact.md +2 -6
- data/docs/ArtifactResponse.md +35 -0
- data/docs/ArtifactsApi.md +40 -34
- data/docs/{ContentAppStatus.md → ContentAppStatusResponse.md} +2 -2
- data/docs/{DatabaseConnection.md → DatabaseConnectionResponse.md} +2 -2
- data/docs/ExportersCoreExportsApi.md +33 -33
- data/docs/ExportersPulpApi.md +51 -51
- data/docs/Group.md +17 -0
- data/docs/{GroupProgressReport.md → GroupProgressReportResponse.md} +2 -2
- data/docs/GroupResponse.md +21 -0
- data/docs/GroupUser.md +17 -0
- data/docs/GroupUserResponse.md +19 -0
- data/docs/GroupsApi.md +351 -0
- data/docs/GroupsModelPermissionsApi.md +128 -0
- data/docs/GroupsObjectPermissionsApi.md +247 -0
- data/docs/GroupsUsersApi.md +183 -0
- data/docs/{Import.md → ImportResponse.md} +2 -2
- data/docs/ImportersCoreImportsApi.md +33 -33
- data/docs/ImportersPulpApi.md +51 -51
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse20010.md +23 -0
- data/docs/InlineResponse20011.md +23 -0
- data/docs/InlineResponse20012.md +23 -0
- data/docs/InlineResponse20013.md +23 -0
- data/docs/InlineResponse20014.md +23 -0
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/InlineResponse2006.md +3 -3
- data/docs/InlineResponse2007.md +3 -3
- data/docs/InlineResponse2008.md +3 -3
- data/docs/InlineResponse2009.md +3 -3
- data/docs/OrphansApi.md +2 -2
- data/docs/PatchedAccessPolicy.md +21 -0
- data/docs/PatchedGroup.md +17 -0
- data/docs/PatchedPulpExporter.md +23 -0
- data/docs/PatchedPulpImporter.md +19 -0
- data/docs/{TaskCancel.md → PatchedTaskCancel.md} +3 -3
- data/docs/PermissionResponse.md +23 -0
- data/docs/{ProgressReport.md → ProgressReportResponse.md} +2 -2
- data/docs/PulpExport.md +11 -11
- data/docs/PulpExportResponse.md +27 -0
- data/docs/PulpExporter.md +1 -5
- data/docs/PulpExporterResponse.md +27 -0
- data/docs/PulpImport.md +4 -2
- data/docs/PulpImporter.md +2 -6
- data/docs/PulpImporterResponse.md +23 -0
- data/docs/{RedisConnection.md → RedisConnectionResponse.md} +2 -2
- data/docs/{SigningService.md → SigningServiceResponse.md} +2 -2
- data/docs/SigningServicesApi.md +14 -14
- data/docs/StatusApi.md +8 -22
- data/docs/StatusResponse.md +27 -0
- data/docs/{Storage.md → StorageResponse.md} +2 -2
- data/docs/{TaskGroup.md → TaskGroupResponse.md} +3 -3
- data/docs/TaskGroupsApi.md +16 -12
- data/docs/{Task.md → TaskResponse.md} +5 -7
- data/docs/TasksApi.md +144 -88
- data/docs/Upload.md +1 -7
- data/docs/UploadChunk.md +2 -6
- data/docs/UploadChunkResponse.md +19 -0
- data/docs/{UploadDetail.md → UploadDetailResponse.md} +3 -3
- data/docs/UploadResponse.md +23 -0
- data/docs/UploadsApi.md +42 -40
- data/docs/UserGroupResponse.md +19 -0
- data/docs/UserResponse.md +35 -0
- data/docs/UsersApi.md +191 -0
- data/docs/{Version.md → VersionResponse.md} +2 -2
- data/docs/{Worker.md → WorkerResponse.md} +2 -2
- data/docs/WorkersApi.md +36 -32
- data/lib/pulpcore_client/api/access_policies_api.rb +301 -0
- data/lib/pulpcore_client/api/artifacts_api.rb +47 -65
- data/lib/pulpcore_client/api/exporters_core_exports_api.rb +51 -51
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +71 -71
- data/lib/pulpcore_client/api/groups_api.rb +425 -0
- data/lib/pulpcore_client/api/groups_model_permissions_api.rb +161 -0
- data/lib/pulpcore_client/api/groups_object_permissions_api.rb +295 -0
- data/lib/pulpcore_client/api/groups_users_api.rb +229 -0
- data/lib/pulpcore_client/api/importers_core_imports_api.rb +51 -51
- data/lib/pulpcore_client/api/importers_pulp_api.rb +71 -71
- data/lib/pulpcore_client/api/orphans_api.rb +3 -3
- data/lib/pulpcore_client/api/signing_services_api.rb +18 -18
- data/lib/pulpcore_client/api/status_api.rb +11 -17
- data/lib/pulpcore_client/api/task_groups_api.rb +19 -15
- data/lib/pulpcore_client/api/tasks_api.rb +203 -125
- data/lib/pulpcore_client/api/uploads_api.rb +60 -66
- data/lib/pulpcore_client/api/users_api.rb +227 -0
- data/lib/pulpcore_client/api/workers_api.rb +46 -42
- data/lib/pulpcore_client/api_client.rb +2 -2
- data/lib/pulpcore_client/api_error.rb +2 -2
- data/lib/pulpcore_client/configuration.rb +3 -3
- data/lib/pulpcore_client/models/access_policy.rb +247 -0
- data/lib/pulpcore_client/models/access_policy_response.rb +266 -0
- data/lib/pulpcore_client/models/artifact.rb +8 -111
- data/lib/pulpcore_client/models/artifact_response.rb +308 -0
- data/lib/pulpcore_client/models/async_operation_response.rb +3 -2
- data/lib/pulpcore_client/models/{content_app_status.rb → content_app_status_response.rb} +6 -21
- data/lib/pulpcore_client/models/{database_connection.rb → database_connection_response.rb} +6 -6
- data/lib/pulpcore_client/models/group.rb +232 -0
- data/lib/pulpcore_client/models/{group_progress_report.rb → group_progress_report_response.rb} +6 -50
- data/lib/pulpcore_client/models/group_response.rb +250 -0
- data/lib/pulpcore_client/models/group_user.rb +232 -0
- data/lib/pulpcore_client/models/group_user_response.rb +241 -0
- data/lib/pulpcore_client/models/{import.rb → import_response.rb} +6 -5
- data/lib/pulpcore_client/models/inline_response200.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2001.rb +3 -13
- data/lib/pulpcore_client/models/inline_response20010.rb +237 -0
- data/lib/pulpcore_client/models/inline_response20011.rb +237 -0
- data/lib/pulpcore_client/models/inline_response20012.rb +237 -0
- data/lib/pulpcore_client/models/inline_response20013.rb +237 -0
- data/lib/pulpcore_client/models/inline_response20014.rb +237 -0
- data/lib/pulpcore_client/models/inline_response2002.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2003.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2004.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2005.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2006.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2007.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2008.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2009.rb +3 -13
- data/lib/pulpcore_client/models/patched_access_policy.rb +232 -0
- data/lib/pulpcore_client/models/patched_group.rb +223 -0
- data/lib/pulpcore_client/models/patched_pulp_exporter.rb +240 -0
- data/lib/pulpcore_client/models/patched_pulp_importer.rb +218 -0
- data/lib/pulpcore_client/models/{task_cancel.rb → patched_task_cancel.rb} +6 -29
- data/lib/pulpcore_client/models/permission_response.rb +235 -0
- data/lib/pulpcore_client/models/{progress_report.rb → progress_report_response.rb} +6 -65
- data/lib/pulpcore_client/models/pulp_export.rb +50 -42
- data/lib/pulpcore_client/models/pulp_export_response.rb +260 -0
- data/lib/pulpcore_client/models/pulp_exporter.rb +4 -60
- data/lib/pulpcore_client/models/pulp_exporter_response.rb +274 -0
- data/lib/pulpcore_client/models/pulp_import.rb +17 -30
- data/lib/pulpcore_client/models/pulp_importer.rb +6 -45
- data/lib/pulpcore_client/models/pulp_importer_response.rb +242 -0
- data/lib/pulpcore_client/models/{redis_connection.rb → redis_connection_response.rb} +6 -6
- data/lib/pulpcore_client/models/{signing_service.rb → signing_service_response.rb} +6 -43
- data/lib/pulpcore_client/models/{status.rb → status_response.rb} +15 -11
- data/lib/pulpcore_client/models/{storage.rb → storage_response.rb} +6 -6
- data/lib/pulpcore_client/models/{task_group.rb → task_group_response.rb} +7 -25
- data/lib/pulpcore_client/models/{task.rb → task_response.rb} +13 -59
- data/lib/pulpcore_client/models/upload.rb +7 -35
- data/lib/pulpcore_client/models/upload_chunk.rb +11 -39
- data/lib/pulpcore_client/models/upload_chunk_response.rb +215 -0
- data/lib/pulpcore_client/models/upload_commit.rb +2 -21
- data/lib/pulpcore_client/models/{upload_detail.rb → upload_detail_response.rb} +7 -6
- data/lib/pulpcore_client/models/upload_response.rb +242 -0
- data/lib/pulpcore_client/models/user_group_response.rb +241 -0
- data/lib/pulpcore_client/models/user_response.rb +378 -0
- data/lib/pulpcore_client/models/{version.rb → version_response.rb} +6 -44
- data/lib/pulpcore_client/models/{worker.rb → worker_response.rb} +6 -21
- data/lib/pulpcore_client/version.rb +3 -3
- data/lib/pulpcore_client.rb +47 -17
- data/pulpcore_client.gemspec +4 -4
- data/spec/api/access_policies_api_spec.rb +91 -0
- data/spec/api/artifacts_api_spec.rb +18 -15
- data/spec/api/exporters_core_exports_api_spec.rb +10 -10
- data/spec/api/exporters_pulp_api_spec.rb +18 -18
- data/spec/api/groups_api_spec.rb +115 -0
- data/spec/api/groups_model_permissions_api_spec.rb +64 -0
- data/spec/api/groups_object_permissions_api_spec.rb +92 -0
- data/spec/api/groups_users_api_spec.rb +77 -0
- data/spec/api/importers_core_imports_api_spec.rb +10 -10
- data/spec/api/importers_pulp_api_spec.rb +18 -18
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/signing_services_api_spec.rb +7 -7
- data/spec/api/status_api_spec.rb +5 -7
- data/spec/api/task_groups_api_spec.rb +8 -6
- data/spec/api/tasks_api_spec.rb +69 -42
- data/spec/api/uploads_api_spec.rb +14 -13
- data/spec/api/users_api_spec.rb +78 -0
- data/spec/api/workers_api_spec.rb +18 -16
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/access_policy_response_spec.rb +65 -0
- data/spec/models/access_policy_spec.rb +53 -0
- data/spec/models/artifact_response_spec.rb +95 -0
- data/spec/models/artifact_spec.rb +2 -14
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/{content_app_status_spec.rb → content_app_status_response_spec.rb} +8 -8
- data/spec/models/{database_connection_spec.rb → database_connection_response_spec.rb} +8 -8
- data/spec/models/{group_progress_report_spec.rb → group_progress_report_response_spec.rb} +8 -8
- data/spec/models/group_response_spec.rb +53 -0
- data/spec/models/group_spec.rb +41 -0
- data/spec/models/group_user_response_spec.rb +47 -0
- data/spec/models/group_user_spec.rb +41 -0
- data/spec/models/{import_spec.rb → import_response_spec.rb} +8 -8
- data/spec/models/inline_response20010_spec.rb +59 -0
- data/spec/models/inline_response20011_spec.rb +59 -0
- data/spec/models/inline_response20012_spec.rb +59 -0
- data/spec/models/inline_response20013_spec.rb +59 -0
- data/spec/models/inline_response20014_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +2 -2
- data/spec/models/inline_response2006_spec.rb +2 -2
- data/spec/models/inline_response2007_spec.rb +2 -2
- data/spec/models/inline_response2008_spec.rb +2 -2
- data/spec/models/inline_response2009_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/patched_access_policy_spec.rb +53 -0
- data/spec/models/patched_group_spec.rb +41 -0
- data/spec/models/patched_pulp_exporter_spec.rb +59 -0
- data/spec/models/patched_pulp_importer_spec.rb +47 -0
- data/spec/models/{task_cancel_spec.rb → patched_task_cancel_spec.rb} +8 -8
- data/spec/models/permission_response_spec.rb +59 -0
- data/spec/models/{progress_report_spec.rb → progress_report_response_spec.rb} +8 -8
- data/spec/models/pulp_export_response_spec.rb +71 -0
- data/spec/models/pulp_export_spec.rb +8 -8
- data/spec/models/pulp_exporter_response_spec.rb +71 -0
- data/spec/models/pulp_exporter_spec.rb +2 -14
- data/spec/models/pulp_import_spec.rb +8 -2
- data/spec/models/pulp_importer_response_spec.rb +59 -0
- data/spec/models/pulp_importer_spec.rb +2 -14
- data/spec/models/{redis_connection_spec.rb → redis_connection_response_spec.rb} +8 -8
- data/spec/models/{signing_service_spec.rb → signing_service_response_spec.rb} +8 -8
- data/spec/models/{status_spec.rb → status_response_spec.rb} +8 -8
- data/spec/models/{storage_spec.rb → storage_response_spec.rb} +8 -8
- data/spec/models/{task_group_spec.rb → task_group_response_spec.rb} +8 -8
- data/spec/models/{task_spec.rb → task_response_spec.rb} +8 -14
- data/spec/models/upload_chunk_response_spec.rb +47 -0
- data/spec/models/upload_chunk_spec.rb +2 -14
- data/spec/models/upload_commit_spec.rb +2 -2
- data/spec/models/{upload_detail_spec.rb → upload_detail_response_spec.rb} +8 -8
- data/spec/models/upload_response_spec.rb +59 -0
- data/spec/models/upload_spec.rb +2 -20
- data/spec/models/user_group_response_spec.rb +47 -0
- data/spec/models/user_response_spec.rb +95 -0
- data/spec/models/{version_spec.rb → version_response_spec.rb} +8 -8
- data/spec/models/{worker_spec.rb → worker_response_spec.rb} +8 -8
- data/spec/spec_helper.rb +2 -2
- metadata +204 -84
- data/docs/Status.md +0 -27
data/docs/WorkersApi.md
CHANGED
@@ -11,10 +11,12 @@ Method | HTTP request | Description
|
|
11
11
|
|
12
12
|
## list
|
13
13
|
|
14
|
-
>
|
14
|
+
> InlineResponse20014 list(opts)
|
15
15
|
|
16
16
|
List workers
|
17
17
|
|
18
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
19
|
+
|
18
20
|
### Example
|
19
21
|
|
20
22
|
```ruby
|
@@ -22,26 +24,26 @@ List workers
|
|
22
24
|
require 'pulpcore_client'
|
23
25
|
# setup authorization
|
24
26
|
PulpcoreClient.configure do |config|
|
25
|
-
# Configure HTTP basic authorization:
|
27
|
+
# Configure HTTP basic authorization: basicAuth
|
26
28
|
config.username = 'YOUR USERNAME'
|
27
29
|
config.password = 'YOUR PASSWORD'
|
28
30
|
end
|
29
31
|
|
30
32
|
api_instance = PulpcoreClient::WorkersApi.new
|
31
33
|
opts = {
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
last_heartbeat__lt: 'last_heartbeat__lt_example', # String |
|
36
|
-
last_heartbeat__lte: 'last_heartbeat__lte_example', # String |
|
37
|
-
|
38
|
-
last_heartbeat__gte: 'last_heartbeat__gte_example', # String | Filter results where last_heartbeat is greater than or equal to value
|
39
|
-
last_heartbeat__range: 'last_heartbeat__range_example', # String | Filter results where last_heartbeat is between two comma separated values
|
40
|
-
last_heartbeat: 'last_heartbeat_example', # String | ISO 8601 formatted dates are supported
|
41
|
-
online: 'online_example', # String |
|
42
|
-
missing: 'missing_example', # String |
|
34
|
+
last_heartbeat: 'last_heartbeat_example', # String | last_heartbeat
|
35
|
+
last_heartbeat__gt: 'last_heartbeat__gt_example', # String | last_heartbeat__gt
|
36
|
+
last_heartbeat__gte: 'last_heartbeat__gte_example', # String | last_heartbeat__gte
|
37
|
+
last_heartbeat__lt: 'last_heartbeat__lt_example', # String | last_heartbeat__lt
|
38
|
+
last_heartbeat__lte: 'last_heartbeat__lte_example', # String | last_heartbeat__lte
|
39
|
+
last_heartbeat__range: 'last_heartbeat__range_example', # String | last_heartbeat__range
|
43
40
|
limit: 56, # Integer | Number of results to return per page.
|
41
|
+
missing: 'missing_example', # String | missing
|
42
|
+
name: 'name_example', # String | name
|
43
|
+
name__in: 'name__in_example', # String | name__in
|
44
44
|
offset: 56, # Integer | The initial index from which to return the results.
|
45
|
+
online: 'online_example', # String | online
|
46
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
45
47
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
46
48
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
47
49
|
}
|
@@ -60,29 +62,29 @@ end
|
|
60
62
|
|
61
63
|
Name | Type | Description | Notes
|
62
64
|
------------- | ------------- | ------------- | -------------
|
63
|
-
**
|
64
|
-
**
|
65
|
-
**
|
66
|
-
**last_heartbeat__lt** | **String**|
|
67
|
-
**last_heartbeat__lte** | **String**|
|
68
|
-
**
|
69
|
-
**last_heartbeat__gte** | **String**| Filter results where last_heartbeat is greater than or equal to value | [optional]
|
70
|
-
**last_heartbeat__range** | **String**| Filter results where last_heartbeat is between two comma separated values | [optional]
|
71
|
-
**last_heartbeat** | **String**| ISO 8601 formatted dates are supported | [optional]
|
72
|
-
**online** | **String**| | [optional]
|
73
|
-
**missing** | **String**| | [optional]
|
65
|
+
**last_heartbeat** | **String**| last_heartbeat | [optional]
|
66
|
+
**last_heartbeat__gt** | **String**| last_heartbeat__gt | [optional]
|
67
|
+
**last_heartbeat__gte** | **String**| last_heartbeat__gte | [optional]
|
68
|
+
**last_heartbeat__lt** | **String**| last_heartbeat__lt | [optional]
|
69
|
+
**last_heartbeat__lte** | **String**| last_heartbeat__lte | [optional]
|
70
|
+
**last_heartbeat__range** | **String**| last_heartbeat__range | [optional]
|
74
71
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
72
|
+
**missing** | **String**| missing | [optional]
|
73
|
+
**name** | **String**| name | [optional]
|
74
|
+
**name__in** | **String**| name__in | [optional]
|
75
75
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
76
|
+
**online** | **String**| online | [optional]
|
77
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
76
78
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
77
79
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
78
80
|
|
79
81
|
### Return type
|
80
82
|
|
81
|
-
[**
|
83
|
+
[**InlineResponse20014**](InlineResponse20014.md)
|
82
84
|
|
83
85
|
### Authorization
|
84
86
|
|
85
|
-
[
|
87
|
+
[basicAuth](../README.md#basicAuth)
|
86
88
|
|
87
89
|
### HTTP request headers
|
88
90
|
|
@@ -92,10 +94,12 @@ Name | Type | Description | Notes
|
|
92
94
|
|
93
95
|
## read
|
94
96
|
|
95
|
-
>
|
97
|
+
> WorkerResponse read(worker_href, opts)
|
96
98
|
|
97
99
|
Inspect a worker
|
98
100
|
|
101
|
+
A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
102
|
+
|
99
103
|
### Example
|
100
104
|
|
101
105
|
```ruby
|
@@ -103,13 +107,13 @@ Inspect a worker
|
|
103
107
|
require 'pulpcore_client'
|
104
108
|
# setup authorization
|
105
109
|
PulpcoreClient.configure do |config|
|
106
|
-
# Configure HTTP basic authorization:
|
110
|
+
# Configure HTTP basic authorization: basicAuth
|
107
111
|
config.username = 'YOUR USERNAME'
|
108
112
|
config.password = 'YOUR PASSWORD'
|
109
113
|
end
|
110
114
|
|
111
115
|
api_instance = PulpcoreClient::WorkersApi.new
|
112
|
-
worker_href = 'worker_href_example' # String |
|
116
|
+
worker_href = 'worker_href_example' # String |
|
113
117
|
opts = {
|
114
118
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
115
119
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
@@ -129,17 +133,17 @@ end
|
|
129
133
|
|
130
134
|
Name | Type | Description | Notes
|
131
135
|
------------- | ------------- | ------------- | -------------
|
132
|
-
**worker_href** | **String**|
|
136
|
+
**worker_href** | **String**| |
|
133
137
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
134
138
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
135
139
|
|
136
140
|
### Return type
|
137
141
|
|
138
|
-
[**
|
142
|
+
[**WorkerResponse**](WorkerResponse.md)
|
139
143
|
|
140
144
|
### Authorization
|
141
145
|
|
142
|
-
[
|
146
|
+
[basicAuth](../README.md#basicAuth)
|
143
147
|
|
144
148
|
### HTTP request headers
|
145
149
|
|
@@ -0,0 +1,301 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpcoreClient
|
16
|
+
class AccessPoliciesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# List access policys
|
23
|
+
# ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
26
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
27
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
28
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
29
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
30
|
+
# @return [InlineResponse200]
|
31
|
+
def list(opts = {})
|
32
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
33
|
+
data
|
34
|
+
end
|
35
|
+
|
36
|
+
# List access policys
|
37
|
+
# ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
40
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
41
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
42
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
43
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
44
|
+
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
45
|
+
def list_with_http_info(opts = {})
|
46
|
+
if @api_client.config.debugging
|
47
|
+
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.list ...'
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '/pulp/api/v3/access_policies/'
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = opts[:query_params] || {}
|
54
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
55
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
56
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
57
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
58
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
59
|
+
|
60
|
+
# header parameters
|
61
|
+
header_params = opts[:header_params] || {}
|
62
|
+
# HTTP header 'Accept' (if needed)
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
64
|
+
|
65
|
+
# form parameters
|
66
|
+
form_params = opts[:form_params] || {}
|
67
|
+
|
68
|
+
# http body (model)
|
69
|
+
post_body = opts[:body]
|
70
|
+
|
71
|
+
# return_type
|
72
|
+
return_type = opts[:return_type] || 'InlineResponse200'
|
73
|
+
|
74
|
+
# auth_names
|
75
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
76
|
+
|
77
|
+
new_options = opts.merge(
|
78
|
+
:header_params => header_params,
|
79
|
+
:query_params => query_params,
|
80
|
+
:form_params => form_params,
|
81
|
+
:body => post_body,
|
82
|
+
:auth_names => auth_names,
|
83
|
+
:return_type => return_type
|
84
|
+
)
|
85
|
+
|
86
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug "API called: AccessPoliciesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
89
|
+
end
|
90
|
+
return data, status_code, headers
|
91
|
+
end
|
92
|
+
|
93
|
+
# Update an access policy
|
94
|
+
# ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
95
|
+
# @param access_policy_href [String]
|
96
|
+
# @param patched_access_policy [PatchedAccessPolicy]
|
97
|
+
# @param [Hash] opts the optional parameters
|
98
|
+
# @return [AccessPolicyResponse]
|
99
|
+
def partial_update(access_policy_href, patched_access_policy, opts = {})
|
100
|
+
data, _status_code, _headers = partial_update_with_http_info(access_policy_href, patched_access_policy, opts)
|
101
|
+
data
|
102
|
+
end
|
103
|
+
|
104
|
+
# Update an access policy
|
105
|
+
# ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
106
|
+
# @param access_policy_href [String]
|
107
|
+
# @param patched_access_policy [PatchedAccessPolicy]
|
108
|
+
# @param [Hash] opts the optional parameters
|
109
|
+
# @return [Array<(AccessPolicyResponse, Integer, Hash)>] AccessPolicyResponse data, response status code and response headers
|
110
|
+
def partial_update_with_http_info(access_policy_href, patched_access_policy, opts = {})
|
111
|
+
if @api_client.config.debugging
|
112
|
+
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.partial_update ...'
|
113
|
+
end
|
114
|
+
# verify the required parameter 'access_policy_href' is set
|
115
|
+
if @api_client.config.client_side_validation && access_policy_href.nil?
|
116
|
+
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.partial_update"
|
117
|
+
end
|
118
|
+
# verify the required parameter 'patched_access_policy' is set
|
119
|
+
if @api_client.config.client_side_validation && patched_access_policy.nil?
|
120
|
+
fail ArgumentError, "Missing the required parameter 'patched_access_policy' when calling AccessPoliciesApi.partial_update"
|
121
|
+
end
|
122
|
+
# resource path
|
123
|
+
local_var_path = '{access_policy_href}'.sub('{' + 'access_policy_href' + '}', CGI.escape(access_policy_href.to_s).gsub('%2F', '/'))
|
124
|
+
|
125
|
+
# query parameters
|
126
|
+
query_params = opts[:query_params] || {}
|
127
|
+
|
128
|
+
# header parameters
|
129
|
+
header_params = opts[:header_params] || {}
|
130
|
+
# HTTP header 'Accept' (if needed)
|
131
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
132
|
+
# HTTP header 'Content-Type'
|
133
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
134
|
+
|
135
|
+
# form parameters
|
136
|
+
form_params = opts[:form_params] || {}
|
137
|
+
|
138
|
+
# http body (model)
|
139
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patched_access_policy)
|
140
|
+
|
141
|
+
# return_type
|
142
|
+
return_type = opts[:return_type] || 'AccessPolicyResponse'
|
143
|
+
|
144
|
+
# auth_names
|
145
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
146
|
+
|
147
|
+
new_options = opts.merge(
|
148
|
+
:header_params => header_params,
|
149
|
+
:query_params => query_params,
|
150
|
+
:form_params => form_params,
|
151
|
+
:body => post_body,
|
152
|
+
:auth_names => auth_names,
|
153
|
+
:return_type => return_type
|
154
|
+
)
|
155
|
+
|
156
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
157
|
+
if @api_client.config.debugging
|
158
|
+
@api_client.config.logger.debug "API called: AccessPoliciesApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
159
|
+
end
|
160
|
+
return data, status_code, headers
|
161
|
+
end
|
162
|
+
|
163
|
+
# Inspect an access policy
|
164
|
+
# ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
165
|
+
# @param access_policy_href [String]
|
166
|
+
# @param [Hash] opts the optional parameters
|
167
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
168
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
169
|
+
# @return [AccessPolicyResponse]
|
170
|
+
def read(access_policy_href, opts = {})
|
171
|
+
data, _status_code, _headers = read_with_http_info(access_policy_href, opts)
|
172
|
+
data
|
173
|
+
end
|
174
|
+
|
175
|
+
# Inspect an access policy
|
176
|
+
# ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
177
|
+
# @param access_policy_href [String]
|
178
|
+
# @param [Hash] opts the optional parameters
|
179
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
180
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
181
|
+
# @return [Array<(AccessPolicyResponse, Integer, Hash)>] AccessPolicyResponse data, response status code and response headers
|
182
|
+
def read_with_http_info(access_policy_href, opts = {})
|
183
|
+
if @api_client.config.debugging
|
184
|
+
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.read ...'
|
185
|
+
end
|
186
|
+
# verify the required parameter 'access_policy_href' is set
|
187
|
+
if @api_client.config.client_side_validation && access_policy_href.nil?
|
188
|
+
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.read"
|
189
|
+
end
|
190
|
+
# resource path
|
191
|
+
local_var_path = '{access_policy_href}'.sub('{' + 'access_policy_href' + '}', CGI.escape(access_policy_href.to_s).gsub('%2F', '/'))
|
192
|
+
|
193
|
+
# query parameters
|
194
|
+
query_params = opts[:query_params] || {}
|
195
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
196
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
197
|
+
|
198
|
+
# header parameters
|
199
|
+
header_params = opts[:header_params] || {}
|
200
|
+
# HTTP header 'Accept' (if needed)
|
201
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
202
|
+
|
203
|
+
# form parameters
|
204
|
+
form_params = opts[:form_params] || {}
|
205
|
+
|
206
|
+
# http body (model)
|
207
|
+
post_body = opts[:body]
|
208
|
+
|
209
|
+
# return_type
|
210
|
+
return_type = opts[:return_type] || 'AccessPolicyResponse'
|
211
|
+
|
212
|
+
# auth_names
|
213
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
214
|
+
|
215
|
+
new_options = opts.merge(
|
216
|
+
:header_params => header_params,
|
217
|
+
:query_params => query_params,
|
218
|
+
:form_params => form_params,
|
219
|
+
:body => post_body,
|
220
|
+
:auth_names => auth_names,
|
221
|
+
:return_type => return_type
|
222
|
+
)
|
223
|
+
|
224
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
225
|
+
if @api_client.config.debugging
|
226
|
+
@api_client.config.logger.debug "API called: AccessPoliciesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
227
|
+
end
|
228
|
+
return data, status_code, headers
|
229
|
+
end
|
230
|
+
|
231
|
+
# Update an access policy
|
232
|
+
# ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
233
|
+
# @param access_policy_href [String]
|
234
|
+
# @param access_policy [AccessPolicy]
|
235
|
+
# @param [Hash] opts the optional parameters
|
236
|
+
# @return [AccessPolicyResponse]
|
237
|
+
def update(access_policy_href, access_policy, opts = {})
|
238
|
+
data, _status_code, _headers = update_with_http_info(access_policy_href, access_policy, opts)
|
239
|
+
data
|
240
|
+
end
|
241
|
+
|
242
|
+
# Update an access policy
|
243
|
+
# ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
244
|
+
# @param access_policy_href [String]
|
245
|
+
# @param access_policy [AccessPolicy]
|
246
|
+
# @param [Hash] opts the optional parameters
|
247
|
+
# @return [Array<(AccessPolicyResponse, Integer, Hash)>] AccessPolicyResponse data, response status code and response headers
|
248
|
+
def update_with_http_info(access_policy_href, access_policy, opts = {})
|
249
|
+
if @api_client.config.debugging
|
250
|
+
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.update ...'
|
251
|
+
end
|
252
|
+
# verify the required parameter 'access_policy_href' is set
|
253
|
+
if @api_client.config.client_side_validation && access_policy_href.nil?
|
254
|
+
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.update"
|
255
|
+
end
|
256
|
+
# verify the required parameter 'access_policy' is set
|
257
|
+
if @api_client.config.client_side_validation && access_policy.nil?
|
258
|
+
fail ArgumentError, "Missing the required parameter 'access_policy' when calling AccessPoliciesApi.update"
|
259
|
+
end
|
260
|
+
# resource path
|
261
|
+
local_var_path = '{access_policy_href}'.sub('{' + 'access_policy_href' + '}', CGI.escape(access_policy_href.to_s).gsub('%2F', '/'))
|
262
|
+
|
263
|
+
# query parameters
|
264
|
+
query_params = opts[:query_params] || {}
|
265
|
+
|
266
|
+
# header parameters
|
267
|
+
header_params = opts[:header_params] || {}
|
268
|
+
# HTTP header 'Accept' (if needed)
|
269
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
270
|
+
# HTTP header 'Content-Type'
|
271
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
272
|
+
|
273
|
+
# form parameters
|
274
|
+
form_params = opts[:form_params] || {}
|
275
|
+
|
276
|
+
# http body (model)
|
277
|
+
post_body = opts[:body] || @api_client.object_to_http_body(access_policy)
|
278
|
+
|
279
|
+
# return_type
|
280
|
+
return_type = opts[:return_type] || 'AccessPolicyResponse'
|
281
|
+
|
282
|
+
# auth_names
|
283
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
284
|
+
|
285
|
+
new_options = opts.merge(
|
286
|
+
:header_params => header_params,
|
287
|
+
:query_params => query_params,
|
288
|
+
:form_params => form_params,
|
289
|
+
:body => post_body,
|
290
|
+
:auth_names => auth_names,
|
291
|
+
:return_type => return_type
|
292
|
+
)
|
293
|
+
|
294
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
295
|
+
if @api_client.config.debugging
|
296
|
+
@api_client.config.logger.debug "API called: AccessPoliciesApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
297
|
+
end
|
298
|
+
return data, status_code, headers
|
299
|
+
end
|
300
|
+
end
|
301
|
+
end
|