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
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -20,7 +20,8 @@ module PulpcoreClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Delete a task
|
23
|
-
#
|
23
|
+
# 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.
|
24
|
+
# @param task_href [String]
|
24
25
|
# @param [Hash] opts the optional parameters
|
25
26
|
# @return [nil]
|
26
27
|
def delete(task_href, opts = {})
|
@@ -29,7 +30,8 @@ module PulpcoreClient
|
|
29
30
|
end
|
30
31
|
|
31
32
|
# Delete a task
|
32
|
-
#
|
33
|
+
# 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.
|
34
|
+
# @param task_href [String]
|
33
35
|
# @param [Hash] opts the optional parameters
|
34
36
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
35
37
|
def delete_with_http_info(task_href, opts = {})
|
@@ -59,7 +61,7 @@ module PulpcoreClient
|
|
59
61
|
return_type = opts[:return_type]
|
60
62
|
|
61
63
|
# auth_names
|
62
|
-
auth_names = opts[:auth_names] || ['
|
64
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
63
65
|
|
64
66
|
new_options = opts.merge(
|
65
67
|
:header_params => header_params,
|
@@ -78,72 +80,74 @@ module PulpcoreClient
|
|
78
80
|
end
|
79
81
|
|
80
82
|
# List tasks
|
83
|
+
# 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.
|
81
84
|
# @param [Hash] opts the optional parameters
|
82
|
-
# @option opts [String] :
|
83
|
-
# @option opts [String] :
|
84
|
-
# @option opts [String] :
|
85
|
-
# @option opts [String] :
|
86
|
-
# @option opts [String] :
|
87
|
-
# @option opts [String] :
|
88
|
-
# @option opts [String] :
|
89
|
-
# @option opts [String] :
|
90
|
-
# @option opts [String] :started_at__gt Filter results where started_at is greater than value
|
91
|
-
# @option opts [String] :started_at__gte Filter results where started_at is greater than or equal to value
|
92
|
-
# @option opts [String] :started_at__range Filter results where started_at is between two comma separated values
|
93
|
-
# @option opts [String] :finished_at__lt Filter results where finished_at is less than value
|
94
|
-
# @option opts [String] :finished_at__lte Filter results where finished_at is less than or equal to value
|
95
|
-
# @option opts [String] :finished_at__gt Filter results where finished_at is greater than value
|
96
|
-
# @option opts [String] :finished_at__gte Filter results where finished_at is greater than or equal to value
|
97
|
-
# @option opts [String] :finished_at__range Filter results where finished_at is between two comma separated values
|
98
|
-
# @option opts [String] :parent_task Foreign Key referenced by HREF
|
99
|
-
# @option opts [String] :child_tasks Foreign Key referenced by HREF
|
100
|
-
# @option opts [String] :task_group Foreign Key referenced by HREF
|
101
|
-
# @option opts [String] :reserved_resources_record
|
102
|
-
# @option opts [String] :created_resources
|
103
|
-
# @option opts [String] :name
|
104
|
-
# @option opts [String] :started_at ISO 8601 formatted dates are supported
|
105
|
-
# @option opts [String] :finished_at ISO 8601 formatted dates are supported
|
85
|
+
# @option opts [String] :child_tasks child_tasks
|
86
|
+
# @option opts [String] :created_resources created_resources
|
87
|
+
# @option opts [String] :finished_at finished_at
|
88
|
+
# @option opts [String] :finished_at__gt finished_at__gt
|
89
|
+
# @option opts [String] :finished_at__gte finished_at__gte
|
90
|
+
# @option opts [String] :finished_at__lt finished_at__lt
|
91
|
+
# @option opts [String] :finished_at__lte finished_at__lte
|
92
|
+
# @option opts [String] :finished_at__range finished_at__range
|
106
93
|
# @option opts [Integer] :limit Number of results to return per page.
|
94
|
+
# @option opts [String] :name name
|
95
|
+
# @option opts [String] :name__contains name__contains
|
107
96
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
97
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
98
|
+
# @option opts [String] :parent_task parent_task
|
99
|
+
# @option opts [String] :reserved_resources_record reserved_resources_record
|
100
|
+
# @option opts [String] :started_at started_at
|
101
|
+
# @option opts [String] :started_at__gt started_at__gt
|
102
|
+
# @option opts [String] :started_at__gte started_at__gte
|
103
|
+
# @option opts [String] :started_at__lt started_at__lt
|
104
|
+
# @option opts [String] :started_at__lte started_at__lte
|
105
|
+
# @option opts [String] :started_at__range started_at__range
|
106
|
+
# @option opts [String] :state state
|
107
|
+
# @option opts [String] :state__in state__in
|
108
|
+
# @option opts [String] :task_group task_group
|
109
|
+
# @option opts [String] :worker worker
|
110
|
+
# @option opts [String] :worker__in worker__in
|
108
111
|
# @option opts [String] :fields A list of fields to include in the response.
|
109
112
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
110
|
-
# @return [
|
113
|
+
# @return [InlineResponse20011]
|
111
114
|
def list(opts = {})
|
112
115
|
data, _status_code, _headers = list_with_http_info(opts)
|
113
116
|
data
|
114
117
|
end
|
115
118
|
|
116
119
|
# List tasks
|
120
|
+
# 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.
|
117
121
|
# @param [Hash] opts the optional parameters
|
118
|
-
# @option opts [String] :
|
119
|
-
# @option opts [String] :
|
120
|
-
# @option opts [String] :
|
121
|
-
# @option opts [String] :
|
122
|
-
# @option opts [String] :
|
123
|
-
# @option opts [String] :
|
124
|
-
# @option opts [String] :
|
125
|
-
# @option opts [String] :
|
126
|
-
# @option opts [String] :started_at__gt Filter results where started_at is greater than value
|
127
|
-
# @option opts [String] :started_at__gte Filter results where started_at is greater than or equal to value
|
128
|
-
# @option opts [String] :started_at__range Filter results where started_at is between two comma separated values
|
129
|
-
# @option opts [String] :finished_at__lt Filter results where finished_at is less than value
|
130
|
-
# @option opts [String] :finished_at__lte Filter results where finished_at is less than or equal to value
|
131
|
-
# @option opts [String] :finished_at__gt Filter results where finished_at is greater than value
|
132
|
-
# @option opts [String] :finished_at__gte Filter results where finished_at is greater than or equal to value
|
133
|
-
# @option opts [String] :finished_at__range Filter results where finished_at is between two comma separated values
|
134
|
-
# @option opts [String] :parent_task Foreign Key referenced by HREF
|
135
|
-
# @option opts [String] :child_tasks Foreign Key referenced by HREF
|
136
|
-
# @option opts [String] :task_group Foreign Key referenced by HREF
|
137
|
-
# @option opts [String] :reserved_resources_record
|
138
|
-
# @option opts [String] :created_resources
|
139
|
-
# @option opts [String] :name
|
140
|
-
# @option opts [String] :started_at ISO 8601 formatted dates are supported
|
141
|
-
# @option opts [String] :finished_at ISO 8601 formatted dates are supported
|
122
|
+
# @option opts [String] :child_tasks child_tasks
|
123
|
+
# @option opts [String] :created_resources created_resources
|
124
|
+
# @option opts [String] :finished_at finished_at
|
125
|
+
# @option opts [String] :finished_at__gt finished_at__gt
|
126
|
+
# @option opts [String] :finished_at__gte finished_at__gte
|
127
|
+
# @option opts [String] :finished_at__lt finished_at__lt
|
128
|
+
# @option opts [String] :finished_at__lte finished_at__lte
|
129
|
+
# @option opts [String] :finished_at__range finished_at__range
|
142
130
|
# @option opts [Integer] :limit Number of results to return per page.
|
131
|
+
# @option opts [String] :name name
|
132
|
+
# @option opts [String] :name__contains name__contains
|
143
133
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
134
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
135
|
+
# @option opts [String] :parent_task parent_task
|
136
|
+
# @option opts [String] :reserved_resources_record reserved_resources_record
|
137
|
+
# @option opts [String] :started_at started_at
|
138
|
+
# @option opts [String] :started_at__gt started_at__gt
|
139
|
+
# @option opts [String] :started_at__gte started_at__gte
|
140
|
+
# @option opts [String] :started_at__lt started_at__lt
|
141
|
+
# @option opts [String] :started_at__lte started_at__lte
|
142
|
+
# @option opts [String] :started_at__range started_at__range
|
143
|
+
# @option opts [String] :state state
|
144
|
+
# @option opts [String] :state__in state__in
|
145
|
+
# @option opts [String] :task_group task_group
|
146
|
+
# @option opts [String] :worker worker
|
147
|
+
# @option opts [String] :worker__in worker__in
|
144
148
|
# @option opts [String] :fields A list of fields to include in the response.
|
145
149
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
146
|
-
# @return [Array<(
|
150
|
+
# @return [Array<(InlineResponse20011, Integer, Hash)>] InlineResponse20011 data, response status code and response headers
|
147
151
|
def list_with_http_info(opts = {})
|
148
152
|
if @api_client.config.debugging
|
149
153
|
@api_client.config.logger.debug 'Calling API: TasksApi.list ...'
|
@@ -153,32 +157,32 @@ module PulpcoreClient
|
|
153
157
|
|
154
158
|
# query parameters
|
155
159
|
query_params = opts[:query_params] || {}
|
156
|
-
query_params[:'
|
157
|
-
query_params[:'
|
158
|
-
query_params[:'
|
159
|
-
query_params[:'state__in'] = opts[:'state__in'] if !opts[:'state__in'].nil?
|
160
|
-
query_params[:'worker'] = opts[:'worker'] if !opts[:'worker'].nil?
|
161
|
-
query_params[:'worker__in'] = opts[:'worker__in'] if !opts[:'worker__in'].nil?
|
162
|
-
query_params[:'started_at__lt'] = opts[:'started_at__lt'] if !opts[:'started_at__lt'].nil?
|
163
|
-
query_params[:'started_at__lte'] = opts[:'started_at__lte'] if !opts[:'started_at__lte'].nil?
|
164
|
-
query_params[:'started_at__gt'] = opts[:'started_at__gt'] if !opts[:'started_at__gt'].nil?
|
165
|
-
query_params[:'started_at__gte'] = opts[:'started_at__gte'] if !opts[:'started_at__gte'].nil?
|
166
|
-
query_params[:'started_at__range'] = opts[:'started_at__range'] if !opts[:'started_at__range'].nil?
|
167
|
-
query_params[:'finished_at__lt'] = opts[:'finished_at__lt'] if !opts[:'finished_at__lt'].nil?
|
168
|
-
query_params[:'finished_at__lte'] = opts[:'finished_at__lte'] if !opts[:'finished_at__lte'].nil?
|
160
|
+
query_params[:'child_tasks'] = opts[:'child_tasks'] if !opts[:'child_tasks'].nil?
|
161
|
+
query_params[:'created_resources'] = opts[:'created_resources'] if !opts[:'created_resources'].nil?
|
162
|
+
query_params[:'finished_at'] = opts[:'finished_at'] if !opts[:'finished_at'].nil?
|
169
163
|
query_params[:'finished_at__gt'] = opts[:'finished_at__gt'] if !opts[:'finished_at__gt'].nil?
|
170
164
|
query_params[:'finished_at__gte'] = opts[:'finished_at__gte'] if !opts[:'finished_at__gte'].nil?
|
165
|
+
query_params[:'finished_at__lt'] = opts[:'finished_at__lt'] if !opts[:'finished_at__lt'].nil?
|
166
|
+
query_params[:'finished_at__lte'] = opts[:'finished_at__lte'] if !opts[:'finished_at__lte'].nil?
|
171
167
|
query_params[:'finished_at__range'] = opts[:'finished_at__range'] if !opts[:'finished_at__range'].nil?
|
168
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
169
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
170
|
+
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
171
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
172
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
172
173
|
query_params[:'parent_task'] = opts[:'parent_task'] if !opts[:'parent_task'].nil?
|
173
|
-
query_params[:'child_tasks'] = opts[:'child_tasks'] if !opts[:'child_tasks'].nil?
|
174
|
-
query_params[:'task_group'] = opts[:'task_group'] if !opts[:'task_group'].nil?
|
175
174
|
query_params[:'reserved_resources_record'] = opts[:'reserved_resources_record'] if !opts[:'reserved_resources_record'].nil?
|
176
|
-
query_params[:'created_resources'] = opts[:'created_resources'] if !opts[:'created_resources'].nil?
|
177
|
-
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
178
175
|
query_params[:'started_at'] = opts[:'started_at'] if !opts[:'started_at'].nil?
|
179
|
-
query_params[:'
|
180
|
-
query_params[:'
|
181
|
-
query_params[:'
|
176
|
+
query_params[:'started_at__gt'] = opts[:'started_at__gt'] if !opts[:'started_at__gt'].nil?
|
177
|
+
query_params[:'started_at__gte'] = opts[:'started_at__gte'] if !opts[:'started_at__gte'].nil?
|
178
|
+
query_params[:'started_at__lt'] = opts[:'started_at__lt'] if !opts[:'started_at__lt'].nil?
|
179
|
+
query_params[:'started_at__lte'] = opts[:'started_at__lte'] if !opts[:'started_at__lte'].nil?
|
180
|
+
query_params[:'started_at__range'] = opts[:'started_at__range'] if !opts[:'started_at__range'].nil?
|
181
|
+
query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
|
182
|
+
query_params[:'state__in'] = opts[:'state__in'] if !opts[:'state__in'].nil?
|
183
|
+
query_params[:'task_group'] = opts[:'task_group'] if !opts[:'task_group'].nil?
|
184
|
+
query_params[:'worker'] = opts[:'worker'] if !opts[:'worker'].nil?
|
185
|
+
query_params[:'worker__in'] = opts[:'worker__in'] if !opts[:'worker__in'].nil?
|
182
186
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
183
187
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
184
188
|
|
@@ -194,10 +198,10 @@ module PulpcoreClient
|
|
194
198
|
post_body = opts[:body]
|
195
199
|
|
196
200
|
# return_type
|
197
|
-
return_type = opts[:return_type] || '
|
201
|
+
return_type = opts[:return_type] || 'InlineResponse20011'
|
198
202
|
|
199
203
|
# auth_names
|
200
|
-
auth_names = opts[:auth_names] || ['
|
204
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
201
205
|
|
202
206
|
new_options = opts.merge(
|
203
207
|
:header_params => header_params,
|
@@ -215,55 +219,131 @@ module PulpcoreClient
|
|
215
219
|
return data, status_code, headers
|
216
220
|
end
|
217
221
|
|
218
|
-
#
|
219
|
-
#
|
222
|
+
# Cancel a task
|
223
|
+
# This operation cancels a task.
|
224
|
+
# @param task_href [String]
|
225
|
+
# @param patched_task_cancel [PatchedTaskCancel]
|
220
226
|
# @param [Hash] opts the optional parameters
|
221
|
-
# @option opts [String] :
|
222
|
-
# @option opts [String] :
|
223
|
-
# @
|
224
|
-
|
225
|
-
|
227
|
+
# @option opts [String] :child_tasks child_tasks
|
228
|
+
# @option opts [String] :created_resources created_resources
|
229
|
+
# @option opts [String] :finished_at finished_at
|
230
|
+
# @option opts [String] :finished_at__gt finished_at__gt
|
231
|
+
# @option opts [String] :finished_at__gte finished_at__gte
|
232
|
+
# @option opts [String] :finished_at__lt finished_at__lt
|
233
|
+
# @option opts [String] :finished_at__lte finished_at__lte
|
234
|
+
# @option opts [String] :finished_at__range finished_at__range
|
235
|
+
# @option opts [String] :name name
|
236
|
+
# @option opts [String] :name__contains name__contains
|
237
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
238
|
+
# @option opts [String] :parent_task parent_task
|
239
|
+
# @option opts [String] :reserved_resources_record reserved_resources_record
|
240
|
+
# @option opts [String] :started_at started_at
|
241
|
+
# @option opts [String] :started_at__gt started_at__gt
|
242
|
+
# @option opts [String] :started_at__gte started_at__gte
|
243
|
+
# @option opts [String] :started_at__lt started_at__lt
|
244
|
+
# @option opts [String] :started_at__lte started_at__lte
|
245
|
+
# @option opts [String] :started_at__range started_at__range
|
246
|
+
# @option opts [String] :state state
|
247
|
+
# @option opts [String] :state__in state__in
|
248
|
+
# @option opts [String] :task_group task_group
|
249
|
+
# @option opts [String] :worker worker
|
250
|
+
# @option opts [String] :worker__in worker__in
|
251
|
+
# @return [TaskResponse]
|
252
|
+
def partial_update(task_href, patched_task_cancel, opts = {})
|
253
|
+
data, _status_code, _headers = partial_update_with_http_info(task_href, patched_task_cancel, opts)
|
226
254
|
data
|
227
255
|
end
|
228
256
|
|
229
|
-
#
|
230
|
-
#
|
257
|
+
# Cancel a task
|
258
|
+
# This operation cancels a task.
|
259
|
+
# @param task_href [String]
|
260
|
+
# @param patched_task_cancel [PatchedTaskCancel]
|
231
261
|
# @param [Hash] opts the optional parameters
|
232
|
-
# @option opts [String] :
|
233
|
-
# @option opts [String] :
|
234
|
-
# @
|
235
|
-
|
262
|
+
# @option opts [String] :child_tasks child_tasks
|
263
|
+
# @option opts [String] :created_resources created_resources
|
264
|
+
# @option opts [String] :finished_at finished_at
|
265
|
+
# @option opts [String] :finished_at__gt finished_at__gt
|
266
|
+
# @option opts [String] :finished_at__gte finished_at__gte
|
267
|
+
# @option opts [String] :finished_at__lt finished_at__lt
|
268
|
+
# @option opts [String] :finished_at__lte finished_at__lte
|
269
|
+
# @option opts [String] :finished_at__range finished_at__range
|
270
|
+
# @option opts [String] :name name
|
271
|
+
# @option opts [String] :name__contains name__contains
|
272
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
273
|
+
# @option opts [String] :parent_task parent_task
|
274
|
+
# @option opts [String] :reserved_resources_record reserved_resources_record
|
275
|
+
# @option opts [String] :started_at started_at
|
276
|
+
# @option opts [String] :started_at__gt started_at__gt
|
277
|
+
# @option opts [String] :started_at__gte started_at__gte
|
278
|
+
# @option opts [String] :started_at__lt started_at__lt
|
279
|
+
# @option opts [String] :started_at__lte started_at__lte
|
280
|
+
# @option opts [String] :started_at__range started_at__range
|
281
|
+
# @option opts [String] :state state
|
282
|
+
# @option opts [String] :state__in state__in
|
283
|
+
# @option opts [String] :task_group task_group
|
284
|
+
# @option opts [String] :worker worker
|
285
|
+
# @option opts [String] :worker__in worker__in
|
286
|
+
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
287
|
+
def partial_update_with_http_info(task_href, patched_task_cancel, opts = {})
|
236
288
|
if @api_client.config.debugging
|
237
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
289
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.partial_update ...'
|
238
290
|
end
|
239
291
|
# verify the required parameter 'task_href' is set
|
240
292
|
if @api_client.config.client_side_validation && task_href.nil?
|
241
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
293
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.partial_update"
|
294
|
+
end
|
295
|
+
# verify the required parameter 'patched_task_cancel' is set
|
296
|
+
if @api_client.config.client_side_validation && patched_task_cancel.nil?
|
297
|
+
fail ArgumentError, "Missing the required parameter 'patched_task_cancel' when calling TasksApi.partial_update"
|
242
298
|
end
|
243
299
|
# resource path
|
244
300
|
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
245
301
|
|
246
302
|
# query parameters
|
247
303
|
query_params = opts[:query_params] || {}
|
248
|
-
query_params[:'
|
249
|
-
query_params[:'
|
304
|
+
query_params[:'child_tasks'] = opts[:'child_tasks'] if !opts[:'child_tasks'].nil?
|
305
|
+
query_params[:'created_resources'] = opts[:'created_resources'] if !opts[:'created_resources'].nil?
|
306
|
+
query_params[:'finished_at'] = opts[:'finished_at'] if !opts[:'finished_at'].nil?
|
307
|
+
query_params[:'finished_at__gt'] = opts[:'finished_at__gt'] if !opts[:'finished_at__gt'].nil?
|
308
|
+
query_params[:'finished_at__gte'] = opts[:'finished_at__gte'] if !opts[:'finished_at__gte'].nil?
|
309
|
+
query_params[:'finished_at__lt'] = opts[:'finished_at__lt'] if !opts[:'finished_at__lt'].nil?
|
310
|
+
query_params[:'finished_at__lte'] = opts[:'finished_at__lte'] if !opts[:'finished_at__lte'].nil?
|
311
|
+
query_params[:'finished_at__range'] = opts[:'finished_at__range'] if !opts[:'finished_at__range'].nil?
|
312
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
313
|
+
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
314
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
315
|
+
query_params[:'parent_task'] = opts[:'parent_task'] if !opts[:'parent_task'].nil?
|
316
|
+
query_params[:'reserved_resources_record'] = opts[:'reserved_resources_record'] if !opts[:'reserved_resources_record'].nil?
|
317
|
+
query_params[:'started_at'] = opts[:'started_at'] if !opts[:'started_at'].nil?
|
318
|
+
query_params[:'started_at__gt'] = opts[:'started_at__gt'] if !opts[:'started_at__gt'].nil?
|
319
|
+
query_params[:'started_at__gte'] = opts[:'started_at__gte'] if !opts[:'started_at__gte'].nil?
|
320
|
+
query_params[:'started_at__lt'] = opts[:'started_at__lt'] if !opts[:'started_at__lt'].nil?
|
321
|
+
query_params[:'started_at__lte'] = opts[:'started_at__lte'] if !opts[:'started_at__lte'].nil?
|
322
|
+
query_params[:'started_at__range'] = opts[:'started_at__range'] if !opts[:'started_at__range'].nil?
|
323
|
+
query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
|
324
|
+
query_params[:'state__in'] = opts[:'state__in'] if !opts[:'state__in'].nil?
|
325
|
+
query_params[:'task_group'] = opts[:'task_group'] if !opts[:'task_group'].nil?
|
326
|
+
query_params[:'worker'] = opts[:'worker'] if !opts[:'worker'].nil?
|
327
|
+
query_params[:'worker__in'] = opts[:'worker__in'] if !opts[:'worker__in'].nil?
|
250
328
|
|
251
329
|
# header parameters
|
252
330
|
header_params = opts[:header_params] || {}
|
253
331
|
# HTTP header 'Accept' (if needed)
|
254
332
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
333
|
+
# HTTP header 'Content-Type'
|
334
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
255
335
|
|
256
336
|
# form parameters
|
257
337
|
form_params = opts[:form_params] || {}
|
258
338
|
|
259
339
|
# http body (model)
|
260
|
-
post_body = opts[:body]
|
340
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patched_task_cancel)
|
261
341
|
|
262
342
|
# return_type
|
263
|
-
return_type = opts[:return_type] || '
|
343
|
+
return_type = opts[:return_type] || 'TaskResponse'
|
264
344
|
|
265
345
|
# auth_names
|
266
|
-
auth_names = opts[:auth_names] || ['
|
346
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
267
347
|
|
268
348
|
new_options = opts.merge(
|
269
349
|
:header_params => header_params,
|
@@ -274,66 +354,64 @@ module PulpcoreClient
|
|
274
354
|
:return_type => return_type
|
275
355
|
)
|
276
356
|
|
277
|
-
data, status_code, headers = @api_client.call_api(:
|
357
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
278
358
|
if @api_client.config.debugging
|
279
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
359
|
+
@api_client.config.logger.debug "API called: TasksApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
280
360
|
end
|
281
361
|
return data, status_code, headers
|
282
362
|
end
|
283
363
|
|
284
|
-
#
|
285
|
-
# This
|
286
|
-
# @param task_href [String]
|
287
|
-
# @param data [TaskCancel]
|
364
|
+
# Inspect a task
|
365
|
+
# 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.
|
366
|
+
# @param task_href [String]
|
288
367
|
# @param [Hash] opts the optional parameters
|
289
|
-
# @
|
290
|
-
|
291
|
-
|
368
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
369
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
370
|
+
# @return [TaskResponse]
|
371
|
+
def read(task_href, opts = {})
|
372
|
+
data, _status_code, _headers = read_with_http_info(task_href, opts)
|
292
373
|
data
|
293
374
|
end
|
294
375
|
|
295
|
-
#
|
296
|
-
# This
|
297
|
-
# @param task_href [String]
|
298
|
-
# @param data [TaskCancel]
|
376
|
+
# Inspect a task
|
377
|
+
# 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.
|
378
|
+
# @param task_href [String]
|
299
379
|
# @param [Hash] opts the optional parameters
|
300
|
-
# @
|
301
|
-
|
380
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
381
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
382
|
+
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
383
|
+
def read_with_http_info(task_href, opts = {})
|
302
384
|
if @api_client.config.debugging
|
303
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
385
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.read ...'
|
304
386
|
end
|
305
387
|
# verify the required parameter 'task_href' is set
|
306
388
|
if @api_client.config.client_side_validation && task_href.nil?
|
307
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
308
|
-
end
|
309
|
-
# verify the required parameter 'data' is set
|
310
|
-
if @api_client.config.client_side_validation && data.nil?
|
311
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling TasksApi.tasks_cancel"
|
389
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.read"
|
312
390
|
end
|
313
391
|
# resource path
|
314
392
|
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
315
393
|
|
316
394
|
# query parameters
|
317
395
|
query_params = opts[:query_params] || {}
|
396
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
397
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
318
398
|
|
319
399
|
# header parameters
|
320
400
|
header_params = opts[:header_params] || {}
|
321
401
|
# HTTP header 'Accept' (if needed)
|
322
402
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
323
|
-
# HTTP header 'Content-Type'
|
324
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
325
403
|
|
326
404
|
# form parameters
|
327
405
|
form_params = opts[:form_params] || {}
|
328
406
|
|
329
407
|
# http body (model)
|
330
|
-
post_body = opts[:body]
|
408
|
+
post_body = opts[:body]
|
331
409
|
|
332
410
|
# return_type
|
333
|
-
return_type = opts[:return_type] || '
|
411
|
+
return_type = opts[:return_type] || 'TaskResponse'
|
334
412
|
|
335
413
|
# auth_names
|
336
|
-
auth_names = opts[:auth_names] || ['
|
414
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
337
415
|
|
338
416
|
new_options = opts.merge(
|
339
417
|
:header_params => header_params,
|
@@ -344,9 +422,9 @@ module PulpcoreClient
|
|
344
422
|
:return_type => return_type
|
345
423
|
)
|
346
424
|
|
347
|
-
data, status_code, headers = @api_client.call_api(:
|
425
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
348
426
|
if @api_client.config.debugging
|
349
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
427
|
+
@api_client.config.logger.debug "API called: TasksApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
350
428
|
end
|
351
429
|
return data, status_code, headers
|
352
430
|
end
|