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
@@ -0,0 +1,343 @@
|
|
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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpcoreClient
|
16
|
+
class RepositoriesVersionsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Delete a repository version
|
23
|
+
# Trigger an asynchronous task to delete a repository version.
|
24
|
+
# @param repositories_repository_version_href [String]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [AsyncOperationResponse]
|
27
|
+
def delete(repositories_repository_version_href, opts = {})
|
28
|
+
data, _status_code, _headers = delete_with_http_info(repositories_repository_version_href, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Delete a repository version
|
33
|
+
# Trigger an asynchronous task to delete a repository version.
|
34
|
+
# @param repositories_repository_version_href [String]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
|
+
def delete_with_http_info(repositories_repository_version_href, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesVersionsApi.delete ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'repositories_repository_version_href' is set
|
42
|
+
if @api_client.config.client_side_validation && repositories_repository_version_href.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'repositories_repository_version_href' when calling RepositoriesVersionsApi.delete"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '{repositories_repository_version_href}'.sub('{' + 'repositories_repository_version_href' + '}', CGI.escape(repositories_repository_version_href.to_s).gsub('%2F', '/'))
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = opts[:form_params] || {}
|
58
|
+
|
59
|
+
# http body (model)
|
60
|
+
post_body = opts[:body]
|
61
|
+
|
62
|
+
# return_type
|
63
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
64
|
+
|
65
|
+
# auth_names
|
66
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
67
|
+
|
68
|
+
new_options = opts.merge(
|
69
|
+
:header_params => header_params,
|
70
|
+
:query_params => query_params,
|
71
|
+
:form_params => form_params,
|
72
|
+
:body => post_body,
|
73
|
+
:auth_names => auth_names,
|
74
|
+
:return_type => return_type
|
75
|
+
)
|
76
|
+
|
77
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
78
|
+
if @api_client.config.debugging
|
79
|
+
@api_client.config.logger.debug "API called: RepositoriesVersionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
|
+
end
|
81
|
+
return data, status_code, headers
|
82
|
+
end
|
83
|
+
|
84
|
+
# List repository versions
|
85
|
+
# 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.
|
86
|
+
# @param repository_href [String]
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
89
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
90
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
91
|
+
# @option opts [Integer] :number
|
92
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
93
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
94
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
95
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
96
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
97
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
98
|
+
# @option opts [Array<String>] :ordering Ordering
|
99
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
100
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
101
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
102
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
103
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
106
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
107
|
+
# @return [PaginatedRepositoryVersionResponseList]
|
108
|
+
def list(repository_href, opts = {})
|
109
|
+
data, _status_code, _headers = list_with_http_info(repository_href, opts)
|
110
|
+
data
|
111
|
+
end
|
112
|
+
|
113
|
+
# List repository versions
|
114
|
+
# 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.
|
115
|
+
# @param repository_href [String]
|
116
|
+
# @param [Hash] opts the optional parameters
|
117
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
118
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
119
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
120
|
+
# @option opts [Integer] :number
|
121
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
122
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
123
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
124
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
125
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
126
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
127
|
+
# @option opts [Array<String>] :ordering Ordering
|
128
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
129
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
130
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
131
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
132
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
133
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
134
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
135
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
136
|
+
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
137
|
+
def list_with_http_info(repository_href, opts = {})
|
138
|
+
if @api_client.config.debugging
|
139
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesVersionsApi.list ...'
|
140
|
+
end
|
141
|
+
# verify the required parameter 'repository_href' is set
|
142
|
+
if @api_client.config.client_side_validation && repository_href.nil?
|
143
|
+
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesVersionsApi.list"
|
144
|
+
end
|
145
|
+
allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
|
146
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
147
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
148
|
+
end
|
149
|
+
# resource path
|
150
|
+
local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s).gsub('%2F', '/'))
|
151
|
+
|
152
|
+
# query parameters
|
153
|
+
query_params = opts[:query_params] || {}
|
154
|
+
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
155
|
+
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
156
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
157
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
158
|
+
query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
|
159
|
+
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
160
|
+
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
161
|
+
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
162
|
+
query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
|
163
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
164
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
165
|
+
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
166
|
+
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
167
|
+
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
168
|
+
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
169
|
+
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
170
|
+
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
171
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
172
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
173
|
+
|
174
|
+
# header parameters
|
175
|
+
header_params = opts[:header_params] || {}
|
176
|
+
# HTTP header 'Accept' (if needed)
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
178
|
+
|
179
|
+
# form parameters
|
180
|
+
form_params = opts[:form_params] || {}
|
181
|
+
|
182
|
+
# http body (model)
|
183
|
+
post_body = opts[:body]
|
184
|
+
|
185
|
+
# return_type
|
186
|
+
return_type = opts[:return_type] || 'PaginatedRepositoryVersionResponseList'
|
187
|
+
|
188
|
+
# auth_names
|
189
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
190
|
+
|
191
|
+
new_options = opts.merge(
|
192
|
+
:header_params => header_params,
|
193
|
+
:query_params => query_params,
|
194
|
+
:form_params => form_params,
|
195
|
+
:body => post_body,
|
196
|
+
:auth_names => auth_names,
|
197
|
+
:return_type => return_type
|
198
|
+
)
|
199
|
+
|
200
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
201
|
+
if @api_client.config.debugging
|
202
|
+
@api_client.config.logger.debug "API called: RepositoriesVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
203
|
+
end
|
204
|
+
return data, status_code, headers
|
205
|
+
end
|
206
|
+
|
207
|
+
# Inspect a repository version
|
208
|
+
# 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.
|
209
|
+
# @param repositories_repository_version_href [String]
|
210
|
+
# @param [Hash] opts the optional parameters
|
211
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
212
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
213
|
+
# @return [RepositoryVersionResponse]
|
214
|
+
def read(repositories_repository_version_href, opts = {})
|
215
|
+
data, _status_code, _headers = read_with_http_info(repositories_repository_version_href, opts)
|
216
|
+
data
|
217
|
+
end
|
218
|
+
|
219
|
+
# Inspect a repository version
|
220
|
+
# 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.
|
221
|
+
# @param repositories_repository_version_href [String]
|
222
|
+
# @param [Hash] opts the optional parameters
|
223
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
224
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
225
|
+
# @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
|
226
|
+
def read_with_http_info(repositories_repository_version_href, opts = {})
|
227
|
+
if @api_client.config.debugging
|
228
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesVersionsApi.read ...'
|
229
|
+
end
|
230
|
+
# verify the required parameter 'repositories_repository_version_href' is set
|
231
|
+
if @api_client.config.client_side_validation && repositories_repository_version_href.nil?
|
232
|
+
fail ArgumentError, "Missing the required parameter 'repositories_repository_version_href' when calling RepositoriesVersionsApi.read"
|
233
|
+
end
|
234
|
+
# resource path
|
235
|
+
local_var_path = '{repositories_repository_version_href}'.sub('{' + 'repositories_repository_version_href' + '}', CGI.escape(repositories_repository_version_href.to_s).gsub('%2F', '/'))
|
236
|
+
|
237
|
+
# query parameters
|
238
|
+
query_params = opts[:query_params] || {}
|
239
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
240
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
241
|
+
|
242
|
+
# header parameters
|
243
|
+
header_params = opts[:header_params] || {}
|
244
|
+
# HTTP header 'Accept' (if needed)
|
245
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
246
|
+
|
247
|
+
# form parameters
|
248
|
+
form_params = opts[:form_params] || {}
|
249
|
+
|
250
|
+
# http body (model)
|
251
|
+
post_body = opts[:body]
|
252
|
+
|
253
|
+
# return_type
|
254
|
+
return_type = opts[:return_type] || 'RepositoryVersionResponse'
|
255
|
+
|
256
|
+
# auth_names
|
257
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
258
|
+
|
259
|
+
new_options = opts.merge(
|
260
|
+
:header_params => header_params,
|
261
|
+
:query_params => query_params,
|
262
|
+
:form_params => form_params,
|
263
|
+
:body => post_body,
|
264
|
+
:auth_names => auth_names,
|
265
|
+
:return_type => return_type
|
266
|
+
)
|
267
|
+
|
268
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
269
|
+
if @api_client.config.debugging
|
270
|
+
@api_client.config.logger.debug "API called: RepositoriesVersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
271
|
+
end
|
272
|
+
return data, status_code, headers
|
273
|
+
end
|
274
|
+
|
275
|
+
# Trigger an asynchronous task to repair a repository version.
|
276
|
+
# @param repositories_repository_version_href [String]
|
277
|
+
# @param repair [Repair]
|
278
|
+
# @param [Hash] opts the optional parameters
|
279
|
+
# @return [AsyncOperationResponse]
|
280
|
+
def repair(repositories_repository_version_href, repair, opts = {})
|
281
|
+
data, _status_code, _headers = repair_with_http_info(repositories_repository_version_href, repair, opts)
|
282
|
+
data
|
283
|
+
end
|
284
|
+
|
285
|
+
# Trigger an asynchronous task to repair a repository version.
|
286
|
+
# @param repositories_repository_version_href [String]
|
287
|
+
# @param repair [Repair]
|
288
|
+
# @param [Hash] opts the optional parameters
|
289
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
290
|
+
def repair_with_http_info(repositories_repository_version_href, repair, opts = {})
|
291
|
+
if @api_client.config.debugging
|
292
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesVersionsApi.repair ...'
|
293
|
+
end
|
294
|
+
# verify the required parameter 'repositories_repository_version_href' is set
|
295
|
+
if @api_client.config.client_side_validation && repositories_repository_version_href.nil?
|
296
|
+
fail ArgumentError, "Missing the required parameter 'repositories_repository_version_href' when calling RepositoriesVersionsApi.repair"
|
297
|
+
end
|
298
|
+
# verify the required parameter 'repair' is set
|
299
|
+
if @api_client.config.client_side_validation && repair.nil?
|
300
|
+
fail ArgumentError, "Missing the required parameter 'repair' when calling RepositoriesVersionsApi.repair"
|
301
|
+
end
|
302
|
+
# resource path
|
303
|
+
local_var_path = '{repositories_repository_version_href}repair/'.sub('{' + 'repositories_repository_version_href' + '}', CGI.escape(repositories_repository_version_href.to_s).gsub('%2F', '/'))
|
304
|
+
|
305
|
+
# query parameters
|
306
|
+
query_params = opts[:query_params] || {}
|
307
|
+
|
308
|
+
# header parameters
|
309
|
+
header_params = opts[:header_params] || {}
|
310
|
+
# HTTP header 'Accept' (if needed)
|
311
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
312
|
+
# HTTP header 'Content-Type'
|
313
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
314
|
+
|
315
|
+
# form parameters
|
316
|
+
form_params = opts[:form_params] || {}
|
317
|
+
|
318
|
+
# http body (model)
|
319
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repair)
|
320
|
+
|
321
|
+
# return_type
|
322
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
323
|
+
|
324
|
+
# auth_names
|
325
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
326
|
+
|
327
|
+
new_options = opts.merge(
|
328
|
+
:header_params => header_params,
|
329
|
+
:query_params => query_params,
|
330
|
+
:form_params => form_params,
|
331
|
+
:body => post_body,
|
332
|
+
:auth_names => auth_names,
|
333
|
+
:return_type => return_type
|
334
|
+
)
|
335
|
+
|
336
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
337
|
+
if @api_client.config.debugging
|
338
|
+
@api_client.config.logger.debug "API called: RepositoriesVersionsApi#repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
339
|
+
end
|
340
|
+
return data, status_code, headers
|
341
|
+
end
|
342
|
+
end
|
343
|
+
end
|
@@ -31,6 +31,7 @@ module PulpcoreClient
|
|
31
31
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
32
32
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
33
33
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
34
|
+
# @option opts [Array<String>] :ordering Ordering
|
34
35
|
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
35
36
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
36
37
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
@@ -57,6 +58,7 @@ module PulpcoreClient
|
|
57
58
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
58
59
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
59
60
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
61
|
+
# @option opts [Array<String>] :ordering Ordering
|
60
62
|
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
61
63
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
62
64
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
@@ -70,6 +72,10 @@ module PulpcoreClient
|
|
70
72
|
if @api_client.config.debugging
|
71
73
|
@api_client.config.logger.debug 'Calling API: RepositoryVersionsApi.list ...'
|
72
74
|
end
|
75
|
+
allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
|
76
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
77
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
78
|
+
end
|
73
79
|
# resource path
|
74
80
|
local_var_path = '/pulp/api/v3/repository_versions/'
|
75
81
|
|
@@ -85,6 +91,7 @@ module PulpcoreClient
|
|
85
91
|
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
86
92
|
query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
|
87
93
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
94
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
88
95
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
89
96
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
90
97
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
@@ -146,10 +146,12 @@ module PulpcoreClient
|
|
146
146
|
# List roles
|
147
147
|
# ViewSet for Role. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
148
148
|
# @param [Hash] opts the optional parameters
|
149
|
+
# @option opts [Array<String>] :contains_permission Filter roles that have any of the permissions in the list.
|
149
150
|
# @option opts [String] :description Filter results where description matches value
|
150
151
|
# @option opts [String] :description__contains Filter results where description contains value
|
151
152
|
# @option opts [String] :description__icontains Filter results where description contains value
|
152
153
|
# @option opts [String] :description__iexact Filter results where description matches value
|
154
|
+
# @option opts [String] :for_object_type Filter roles that only have permissions for the specified object HREF.
|
153
155
|
# @option opts [Integer] :limit Number of results to return per page.
|
154
156
|
# @option opts [Boolean] :locked Filter results where locked matches value
|
155
157
|
# @option opts [String] :name Filter results where name matches value
|
@@ -158,7 +160,7 @@ module PulpcoreClient
|
|
158
160
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
159
161
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
160
162
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
161
|
-
# @option opts [String] :ordering
|
163
|
+
# @option opts [Array<String>] :ordering Ordering
|
162
164
|
# @option opts [String] :fields A list of fields to include in the response.
|
163
165
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
164
166
|
# @return [PaginatedRoleResponseList]
|
@@ -170,10 +172,12 @@ module PulpcoreClient
|
|
170
172
|
# List roles
|
171
173
|
# ViewSet for Role. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
172
174
|
# @param [Hash] opts the optional parameters
|
175
|
+
# @option opts [Array<String>] :contains_permission Filter roles that have any of the permissions in the list.
|
173
176
|
# @option opts [String] :description Filter results where description matches value
|
174
177
|
# @option opts [String] :description__contains Filter results where description contains value
|
175
178
|
# @option opts [String] :description__icontains Filter results where description contains value
|
176
179
|
# @option opts [String] :description__iexact Filter results where description matches value
|
180
|
+
# @option opts [String] :for_object_type Filter roles that only have permissions for the specified object HREF.
|
177
181
|
# @option opts [Integer] :limit Number of results to return per page.
|
178
182
|
# @option opts [Boolean] :locked Filter results where locked matches value
|
179
183
|
# @option opts [String] :name Filter results where name matches value
|
@@ -182,7 +186,7 @@ module PulpcoreClient
|
|
182
186
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
183
187
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
184
188
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
185
|
-
# @option opts [String] :ordering
|
189
|
+
# @option opts [Array<String>] :ordering Ordering
|
186
190
|
# @option opts [String] :fields A list of fields to include in the response.
|
187
191
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
188
192
|
# @return [Array<(PaginatedRoleResponseList, Integer, Hash)>] PaginatedRoleResponseList data, response status code and response headers
|
@@ -190,15 +194,21 @@ module PulpcoreClient
|
|
190
194
|
if @api_client.config.debugging
|
191
195
|
@api_client.config.logger.debug 'Calling API: RolesApi.list ...'
|
192
196
|
end
|
197
|
+
allowable_values = ["-description", "-group_roles", "-locked", "-name", "-object_groups", "-object_users", "-permissions", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-user_roles", "description", "group_roles", "locked", "name", "object_groups", "object_users", "permissions", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "user_roles"]
|
198
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
199
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
200
|
+
end
|
193
201
|
# resource path
|
194
202
|
local_var_path = '/pulp/api/v3/roles/'
|
195
203
|
|
196
204
|
# query parameters
|
197
205
|
query_params = opts[:query_params] || {}
|
206
|
+
query_params[:'contains_permission'] = @api_client.build_collection_param(opts[:'contains_permission'], :multi) if !opts[:'contains_permission'].nil?
|
198
207
|
query_params[:'description'] = opts[:'description'] if !opts[:'description'].nil?
|
199
208
|
query_params[:'description__contains'] = opts[:'description__contains'] if !opts[:'description__contains'].nil?
|
200
209
|
query_params[:'description__icontains'] = opts[:'description__icontains'] if !opts[:'description__icontains'].nil?
|
201
210
|
query_params[:'description__iexact'] = opts[:'description__iexact'] if !opts[:'description__iexact'].nil?
|
211
|
+
query_params[:'for_object_type'] = opts[:'for_object_type'] if !opts[:'for_object_type'].nil?
|
202
212
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
203
213
|
query_params[:'locked'] = opts[:'locked'] if !opts[:'locked'].nil?
|
204
214
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
@@ -207,7 +217,7 @@ module PulpcoreClient
|
|
207
217
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
208
218
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
209
219
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
210
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
220
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
211
221
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
212
222
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
213
223
|
|
@@ -25,7 +25,6 @@ module PulpcoreClient
|
|
25
25
|
# @option opts [Integer] :limit Number of results to return per page.
|
26
26
|
# @option opts [String] :name
|
27
27
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
28
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
29
28
|
# @option opts [String] :fields A list of fields to include in the response.
|
30
29
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
31
30
|
# @return [PaginatedSigningServiceResponseList]
|
@@ -40,7 +39,6 @@ module PulpcoreClient
|
|
40
39
|
# @option opts [Integer] :limit Number of results to return per page.
|
41
40
|
# @option opts [String] :name
|
42
41
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
43
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
44
42
|
# @option opts [String] :fields A list of fields to include in the response.
|
45
43
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
46
44
|
# @return [Array<(PaginatedSigningServiceResponseList, Integer, Hash)>] PaginatedSigningServiceResponseList data, response status code and response headers
|
@@ -56,7 +54,6 @@ module PulpcoreClient
|
|
56
54
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
57
55
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
58
56
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
59
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
60
57
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
61
58
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
62
59
|
|
@@ -24,7 +24,7 @@ module PulpcoreClient
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [Integer] :limit Number of results to return per page.
|
26
26
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
27
|
-
# @option opts [String] :ordering
|
27
|
+
# @option opts [Array<String>] :ordering Ordering
|
28
28
|
# @option opts [String] :fields A list of fields to include in the response.
|
29
29
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
30
30
|
# @return [PaginatedTaskGroupResponseList]
|
@@ -38,7 +38,7 @@ module PulpcoreClient
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @option opts [Integer] :limit Number of results to return per page.
|
40
40
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
41
|
-
# @option opts [String] :ordering
|
41
|
+
# @option opts [Array<String>] :ordering Ordering
|
42
42
|
# @option opts [String] :fields A list of fields to include in the response.
|
43
43
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
44
44
|
# @return [Array<(PaginatedTaskGroupResponseList, Integer, Hash)>] PaginatedTaskGroupResponseList data, response status code and response headers
|
@@ -46,6 +46,10 @@ module PulpcoreClient
|
|
46
46
|
if @api_client.config.debugging
|
47
47
|
@api_client.config.logger.debug 'Calling API: TaskGroupsApi.list ...'
|
48
48
|
end
|
49
|
+
allowable_values = ["-all_tasks_dispatched", "-description", "-group_progress_reports", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-tasks", "-user_roles", "all_tasks_dispatched", "description", "group_progress_reports", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "tasks", "user_roles"]
|
50
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
51
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
52
|
+
end
|
49
53
|
# resource path
|
50
54
|
local_var_path = '/pulp/api/v3/task-groups/'
|
51
55
|
|
@@ -53,7 +57,7 @@ module PulpcoreClient
|
|
53
57
|
query_params = opts[:query_params] || {}
|
54
58
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
55
59
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
56
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
60
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
57
61
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
58
62
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
59
63
|
|
@@ -94,7 +94,7 @@ module PulpcoreClient
|
|
94
94
|
# @option opts [String] :name
|
95
95
|
# @option opts [String] :name__contains Filter results where name contains value
|
96
96
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
97
|
-
# @option opts [String] :ordering
|
97
|
+
# @option opts [Array<String>] :ordering Ordering
|
98
98
|
# @option opts [String] :task_name
|
99
99
|
# @option opts [String] :task_name__contains Filter results where task_name contains value
|
100
100
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -112,7 +112,7 @@ module PulpcoreClient
|
|
112
112
|
# @option opts [String] :name
|
113
113
|
# @option opts [String] :name__contains Filter results where name contains value
|
114
114
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
115
|
-
# @option opts [String] :ordering
|
115
|
+
# @option opts [Array<String>] :ordering Ordering
|
116
116
|
# @option opts [String] :task_name
|
117
117
|
# @option opts [String] :task_name__contains Filter results where task_name contains value
|
118
118
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -122,6 +122,10 @@ module PulpcoreClient
|
|
122
122
|
if @api_client.config.debugging
|
123
123
|
@api_client.config.logger.debug 'Calling API: TaskSchedulesApi.list ...'
|
124
124
|
end
|
125
|
+
allowable_values = ["-dispatch_interval", "-group_roles", "-last_task", "-name", "-next_dispatch", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-task_name", "-user_roles", "dispatch_interval", "group_roles", "last_task", "name", "next_dispatch", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "task_name", "user_roles"]
|
126
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
127
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
128
|
+
end
|
125
129
|
# resource path
|
126
130
|
local_var_path = '/pulp/api/v3/task-schedules/'
|
127
131
|
|
@@ -131,7 +135,7 @@ module PulpcoreClient
|
|
131
135
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
132
136
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
133
137
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
134
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
138
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
135
139
|
query_params[:'task_name'] = opts[:'task_name'] if !opts[:'task_name'].nil?
|
136
140
|
query_params[:'task_name__contains'] = opts[:'task_name__contains'] if !opts[:'task_name__contains'].nil?
|
137
141
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
@@ -164,7 +164,7 @@ module PulpcoreClient
|
|
164
164
|
# @option opts [String] :name
|
165
165
|
# @option opts [String] :name__contains Filter results where name contains value
|
166
166
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
167
|
-
# @option opts [String] :ordering
|
167
|
+
# @option opts [Array<String>] :ordering Ordering
|
168
168
|
# @option opts [String] :parent_task Foreign Key referenced by HREF
|
169
169
|
# @option opts [Array<String>] :reserved_resources_record
|
170
170
|
# @option opts [DateTime] :started_at ISO 8601 formatted dates are supported
|
@@ -203,7 +203,7 @@ module PulpcoreClient
|
|
203
203
|
# @option opts [String] :name
|
204
204
|
# @option opts [String] :name__contains Filter results where name contains value
|
205
205
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
206
|
-
# @option opts [String] :ordering
|
206
|
+
# @option opts [Array<String>] :ordering Ordering
|
207
207
|
# @option opts [String] :parent_task Foreign Key referenced by HREF
|
208
208
|
# @option opts [Array<String>] :reserved_resources_record
|
209
209
|
# @option opts [DateTime] :started_at ISO 8601 formatted dates are supported
|
@@ -224,6 +224,10 @@ module PulpcoreClient
|
|
224
224
|
if @api_client.config.debugging
|
225
225
|
@api_client.config.logger.debug 'Calling API: TasksApi.list ...'
|
226
226
|
end
|
227
|
+
allowable_values = ["-args", "-child_tasks", "-created_resources", "-error", "-export", "-finished_at", "-group_roles", "-import", "-kwargs", "-logging_cid", "-name", "-parent_task", "-pk", "-progress_reports", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-reserved_resources_record", "-started_at", "-state", "-task_group", "-taskschedule", "-user_roles", "-worker", "args", "child_tasks", "created_resources", "error", "export", "finished_at", "group_roles", "import", "kwargs", "logging_cid", "name", "parent_task", "pk", "progress_reports", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "reserved_resources_record", "started_at", "state", "task_group", "taskschedule", "user_roles", "worker"]
|
228
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
229
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
230
|
+
end
|
227
231
|
allowable_values = ["canceled", "canceling", "completed", "failed", "running", "skipped", "waiting"]
|
228
232
|
if @api_client.config.client_side_validation && opts[:'state'] && !allowable_values.include?(opts[:'state'])
|
229
233
|
fail ArgumentError, "invalid value for \"state\", must be one of #{allowable_values}"
|
@@ -247,7 +251,7 @@ module PulpcoreClient
|
|
247
251
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
248
252
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
249
253
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
250
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
254
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
251
255
|
query_params[:'parent_task'] = opts[:'parent_task'] if !opts[:'parent_task'].nil?
|
252
256
|
query_params[:'reserved_resources_record'] = @api_client.build_collection_param(opts[:'reserved_resources_record'], :multi) if !opts[:'reserved_resources_record'].nil?
|
253
257
|
query_params[:'started_at'] = opts[:'started_at'] if !opts[:'started_at'].nil?
|
@@ -218,7 +218,6 @@ module PulpcoreClient
|
|
218
218
|
# @param [Hash] opts the optional parameters
|
219
219
|
# @option opts [Integer] :limit Number of results to return per page.
|
220
220
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
221
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
222
221
|
# @option opts [String] :fields A list of fields to include in the response.
|
223
222
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
224
223
|
# @return [PaginatedUploadResponseList]
|
@@ -232,7 +231,6 @@ module PulpcoreClient
|
|
232
231
|
# @param [Hash] opts the optional parameters
|
233
232
|
# @option opts [Integer] :limit Number of results to return per page.
|
234
233
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
235
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
236
234
|
# @option opts [String] :fields A list of fields to include in the response.
|
237
235
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
238
236
|
# @return [Array<(PaginatedUploadResponseList, Integer, Hash)>] PaginatedUploadResponseList data, response status code and response headers
|
@@ -247,7 +245,6 @@ module PulpcoreClient
|
|
247
245
|
query_params = opts[:query_params] || {}
|
248
246
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
249
247
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
250
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
251
248
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
252
249
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
253
250
|
|