pulpcore_client 3.9.1 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +37 -16
- data/docs/AccessPoliciesApi.md +12 -0
- data/docs/AccessPolicy.md +1 -3
- data/docs/AccessPolicyResponse.md +4 -2
- data/docs/ContentApi.md +78 -0
- data/docs/ContentGuardResponse.md +23 -0
- data/docs/ContentGuardsApi.md +82 -0
- data/docs/EvaluationResponse.md +21 -0
- data/docs/ExportersCoreExportsApi.md +15 -15
- data/docs/ExportersPulpApi.md +6 -0
- data/docs/GroupsApi.md +14 -0
- data/docs/GroupsModelPermissionsApi.md +118 -5
- data/docs/GroupsObjectPermissionsApi.md +15 -15
- data/docs/GroupsUsersApi.md +10 -10
- data/docs/ImportersCoreImportCheckApi.md +62 -0
- data/docs/ImportersCoreImportsApi.md +15 -15
- data/docs/ImportersPulpApi.md +6 -0
- data/docs/MultipleArtifactContentResponse.md +21 -0
- data/docs/PaginatedContentGuardResponseList.md +23 -0
- data/docs/PaginatedMultipleArtifactContentResponseList.md +23 -0
- data/docs/PaginatedRepositoryResponseList.md +23 -0
- data/docs/PatchedAccessPolicy.md +1 -3
- data/docs/PermissionResponse.md +1 -1
- data/docs/PulpImportCheck.md +21 -0
- data/docs/PulpImportCheckResponse.md +21 -0
- data/docs/RepositoriesApi.md +84 -0
- data/docs/RepositoryResponse.md +31 -0
- data/docs/SigningServiceResponse.md +4 -0
- data/docs/UsersApi.md +44 -0
- data/docs/WorkerResponse.md +3 -3
- data/docs/WorkersApi.md +6 -0
- data/lib/pulpcore_client/api/access_policies_api.rb +18 -0
- data/lib/pulpcore_client/api/content_api.rb +102 -0
- data/lib/pulpcore_client/api/content_guards_api.rb +108 -0
- data/lib/pulpcore_client/api/exporters_core_exports_api.rb +27 -27
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +9 -0
- data/lib/pulpcore_client/api/groups_api.rb +21 -0
- data/lib/pulpcore_client/api/groups_model_permissions_api.rb +137 -9
- data/lib/pulpcore_client/api/groups_object_permissions_api.rb +27 -27
- data/lib/pulpcore_client/api/groups_users_api.rb +18 -18
- data/lib/pulpcore_client/api/importers_core_import_check_api.rb +86 -0
- data/lib/pulpcore_client/api/importers_core_imports_api.rb +27 -27
- data/lib/pulpcore_client/api/importers_pulp_api.rb +9 -0
- data/lib/pulpcore_client/api/repositories_api.rb +111 -0
- data/lib/pulpcore_client/api/users_api.rb +66 -0
- data/lib/pulpcore_client/api/workers_api.rb +9 -0
- data/lib/pulpcore_client/models/access_policy.rb +4 -19
- data/lib/pulpcore_client/models/access_policy_response.rb +14 -9
- data/lib/pulpcore_client/models/content_guard_response.rb +243 -0
- data/lib/pulpcore_client/models/evaluation_response.rb +245 -0
- data/lib/pulpcore_client/models/multiple_artifact_content_response.rb +232 -0
- data/lib/pulpcore_client/models/paginated_content_guard_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_multiple_artifact_content_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_repository_response_list.rb +237 -0
- data/lib/pulpcore_client/models/patched_access_policy.rb +4 -14
- data/lib/pulpcore_client/models/permission_response.rb +1 -1
- data/lib/pulpcore_client/models/pulp_import_check.rb +228 -0
- data/lib/pulpcore_client/models/pulp_import_check_response.rb +228 -0
- data/lib/pulpcore_client/models/repository_response.rb +280 -0
- data/lib/pulpcore_client/models/signing_service_response.rb +31 -1
- data/lib/pulpcore_client/models/worker_response.rb +10 -10
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +13 -0
- data/spec/api/access_policies_api_spec.rb +6 -0
- data/spec/api/content_api_spec.rb +54 -0
- data/spec/api/content_guards_api_spec.rb +56 -0
- data/spec/api/exporters_core_exports_api_spec.rb +3 -3
- data/spec/api/exporters_pulp_api_spec.rb +3 -0
- data/spec/api/groups_api_spec.rb +7 -0
- data/spec/api/groups_model_permissions_api_spec.rb +27 -1
- data/spec/api/groups_object_permissions_api_spec.rb +3 -3
- data/spec/api/groups_users_api_spec.rb +2 -2
- data/spec/api/importers_core_import_check_api_spec.rb +47 -0
- data/spec/api/importers_core_imports_api_spec.rb +3 -3
- data/spec/api/importers_pulp_api_spec.rb +3 -0
- data/spec/api/repositories_api_spec.rb +57 -0
- data/spec/api/users_api_spec.rb +22 -0
- data/spec/api/workers_api_spec.rb +3 -0
- data/spec/models/access_policy_response_spec.rb +6 -0
- data/spec/models/access_policy_spec.rb +0 -6
- data/spec/models/content_guard_response_spec.rb +59 -0
- data/spec/models/evaluation_response_spec.rb +53 -0
- data/spec/models/multiple_artifact_content_response_spec.rb +53 -0
- data/spec/models/paginated_content_guard_response_list_spec.rb +59 -0
- data/spec/models/paginated_multiple_artifact_content_response_list_spec.rb +59 -0
- data/spec/models/paginated_repository_response_list_spec.rb +59 -0
- data/spec/models/patched_access_policy_spec.rb +0 -6
- data/spec/models/pulp_import_check_response_spec.rb +53 -0
- data/spec/models/pulp_import_check_spec.rb +53 -0
- data/spec/models/repository_response_spec.rb +83 -0
- data/spec/models/signing_service_response_spec.rb +12 -0
- data/spec/models/worker_response_spec.rb +2 -2
- metadata +112 -60
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module PulpcoreClient
|
|
16
|
+
class ImportersCoreImportCheckApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Validate the parameters to be used for a PulpImport call
|
|
23
|
+
# Evaluates validity of proposed PulpImport parameters 'toc', 'path', and 'repo_mapping'. * Checks that toc, path are in ALLOWED_IMPORT_PATHS * if ALLOWED: * Checks that toc, path exist and are readable * If toc specified, checks that containing dir is writeable * Checks that repo_mapping is valid JSON
|
|
24
|
+
# @param pulp_import_check [PulpImportCheck]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [PulpImportCheckResponse]
|
|
27
|
+
def pulp_import_check_post(pulp_import_check, opts = {})
|
|
28
|
+
data, _status_code, _headers = pulp_import_check_post_with_http_info(pulp_import_check, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Validate the parameters to be used for a PulpImport call
|
|
33
|
+
# Evaluates validity of proposed PulpImport parameters 'toc', 'path', and 'repo_mapping'. * Checks that toc, path are in ALLOWED_IMPORT_PATHS * if ALLOWED: * Checks that toc, path exist and are readable * If toc specified, checks that containing dir is writeable * Checks that repo_mapping is valid JSON
|
|
34
|
+
# @param pulp_import_check [PulpImportCheck]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(PulpImportCheckResponse, Integer, Hash)>] PulpImportCheckResponse data, response status code and response headers
|
|
37
|
+
def pulp_import_check_post_with_http_info(pulp_import_check, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: ImportersCoreImportCheckApi.pulp_import_check_post ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'pulp_import_check' is set
|
|
42
|
+
if @api_client.config.client_side_validation && pulp_import_check.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'pulp_import_check' when calling ImportersCoreImportCheckApi.pulp_import_check_post"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/pulp/api/v3/importers/core/pulp/import-check/'
|
|
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
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
57
|
+
|
|
58
|
+
# form parameters
|
|
59
|
+
form_params = opts[:form_params] || {}
|
|
60
|
+
|
|
61
|
+
# http body (model)
|
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(pulp_import_check)
|
|
63
|
+
|
|
64
|
+
# return_type
|
|
65
|
+
return_type = opts[:return_type] || 'PulpImportCheckResponse'
|
|
66
|
+
|
|
67
|
+
# auth_names
|
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
69
|
+
|
|
70
|
+
new_options = opts.merge(
|
|
71
|
+
:header_params => header_params,
|
|
72
|
+
:query_params => query_params,
|
|
73
|
+
:form_params => form_params,
|
|
74
|
+
:body => post_body,
|
|
75
|
+
:auth_names => auth_names,
|
|
76
|
+
:return_type => return_type
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
80
|
+
if @api_client.config.debugging
|
|
81
|
+
@api_client.config.logger.debug "API called: ImportersCoreImportCheckApi#pulp_import_check_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
@@ -21,35 +21,35 @@ module PulpcoreClient
|
|
|
21
21
|
end
|
|
22
22
|
# Create a pulp import
|
|
23
23
|
# Trigger an asynchronous task to import a Pulp export.
|
|
24
|
-
# @param
|
|
24
|
+
# @param pulp_importer_href [String]
|
|
25
25
|
# @param pulp_import [PulpImport]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
27
|
# @return [AsyncOperationResponse]
|
|
28
|
-
def create(
|
|
29
|
-
data, _status_code, _headers = create_with_http_info(
|
|
28
|
+
def create(pulp_importer_href, pulp_import, opts = {})
|
|
29
|
+
data, _status_code, _headers = create_with_http_info(pulp_importer_href, pulp_import, opts)
|
|
30
30
|
data
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
# Create a pulp import
|
|
34
34
|
# Trigger an asynchronous task to import a Pulp export.
|
|
35
|
-
# @param
|
|
35
|
+
# @param pulp_importer_href [String]
|
|
36
36
|
# @param pulp_import [PulpImport]
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
38
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
39
|
-
def create_with_http_info(
|
|
39
|
+
def create_with_http_info(pulp_importer_href, pulp_import, opts = {})
|
|
40
40
|
if @api_client.config.debugging
|
|
41
41
|
@api_client.config.logger.debug 'Calling API: ImportersCoreImportsApi.create ...'
|
|
42
42
|
end
|
|
43
|
-
# verify the required parameter '
|
|
44
|
-
if @api_client.config.client_side_validation &&
|
|
45
|
-
fail ArgumentError, "Missing the required parameter '
|
|
43
|
+
# verify the required parameter 'pulp_importer_href' is set
|
|
44
|
+
if @api_client.config.client_side_validation && pulp_importer_href.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersCoreImportsApi.create"
|
|
46
46
|
end
|
|
47
47
|
# verify the required parameter 'pulp_import' is set
|
|
48
48
|
if @api_client.config.client_side_validation && pulp_import.nil?
|
|
49
49
|
fail ArgumentError, "Missing the required parameter 'pulp_import' when calling ImportersCoreImportsApi.create"
|
|
50
50
|
end
|
|
51
51
|
# resource path
|
|
52
|
-
local_var_path = '{
|
|
52
|
+
local_var_path = '{pulp_importer_href}imports/'.sub('{' + 'pulp_importer_href' + '}', CGI.escape(pulp_importer_href.to_s).gsub('%2F', '/'))
|
|
53
53
|
|
|
54
54
|
# query parameters
|
|
55
55
|
query_params = opts[:query_params] || {}
|
|
@@ -91,29 +91,29 @@ module PulpcoreClient
|
|
|
91
91
|
|
|
92
92
|
# Delete a pulp import
|
|
93
93
|
# ViewSet for PulpImports.
|
|
94
|
-
# @param
|
|
94
|
+
# @param pulp_pulp_import_href [String]
|
|
95
95
|
# @param [Hash] opts the optional parameters
|
|
96
96
|
# @return [nil]
|
|
97
|
-
def delete(
|
|
98
|
-
delete_with_http_info(
|
|
97
|
+
def delete(pulp_pulp_import_href, opts = {})
|
|
98
|
+
delete_with_http_info(pulp_pulp_import_href, opts)
|
|
99
99
|
nil
|
|
100
100
|
end
|
|
101
101
|
|
|
102
102
|
# Delete a pulp import
|
|
103
103
|
# ViewSet for PulpImports.
|
|
104
|
-
# @param
|
|
104
|
+
# @param pulp_pulp_import_href [String]
|
|
105
105
|
# @param [Hash] opts the optional parameters
|
|
106
106
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
107
|
-
def delete_with_http_info(
|
|
107
|
+
def delete_with_http_info(pulp_pulp_import_href, opts = {})
|
|
108
108
|
if @api_client.config.debugging
|
|
109
109
|
@api_client.config.logger.debug 'Calling API: ImportersCoreImportsApi.delete ...'
|
|
110
110
|
end
|
|
111
|
-
# verify the required parameter '
|
|
112
|
-
if @api_client.config.client_side_validation &&
|
|
113
|
-
fail ArgumentError, "Missing the required parameter '
|
|
111
|
+
# verify the required parameter 'pulp_pulp_import_href' is set
|
|
112
|
+
if @api_client.config.client_side_validation && pulp_pulp_import_href.nil?
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'pulp_pulp_import_href' when calling ImportersCoreImportsApi.delete"
|
|
114
114
|
end
|
|
115
115
|
# resource path
|
|
116
|
-
local_var_path = '{
|
|
116
|
+
local_var_path = '{pulp_pulp_import_href}'.sub('{' + 'pulp_pulp_import_href' + '}', CGI.escape(pulp_pulp_import_href.to_s).gsub('%2F', '/'))
|
|
117
117
|
|
|
118
118
|
# query parameters
|
|
119
119
|
query_params = opts[:query_params] || {}
|
|
@@ -228,33 +228,33 @@ module PulpcoreClient
|
|
|
228
228
|
|
|
229
229
|
# Inspect a pulp import
|
|
230
230
|
# ViewSet for PulpImports.
|
|
231
|
-
# @param
|
|
231
|
+
# @param pulp_pulp_import_href [String]
|
|
232
232
|
# @param [Hash] opts the optional parameters
|
|
233
233
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
234
234
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
235
235
|
# @return [ImportResponse]
|
|
236
|
-
def read(
|
|
237
|
-
data, _status_code, _headers = read_with_http_info(
|
|
236
|
+
def read(pulp_pulp_import_href, opts = {})
|
|
237
|
+
data, _status_code, _headers = read_with_http_info(pulp_pulp_import_href, opts)
|
|
238
238
|
data
|
|
239
239
|
end
|
|
240
240
|
|
|
241
241
|
# Inspect a pulp import
|
|
242
242
|
# ViewSet for PulpImports.
|
|
243
|
-
# @param
|
|
243
|
+
# @param pulp_pulp_import_href [String]
|
|
244
244
|
# @param [Hash] opts the optional parameters
|
|
245
245
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
246
246
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
247
247
|
# @return [Array<(ImportResponse, Integer, Hash)>] ImportResponse data, response status code and response headers
|
|
248
|
-
def read_with_http_info(
|
|
248
|
+
def read_with_http_info(pulp_pulp_import_href, opts = {})
|
|
249
249
|
if @api_client.config.debugging
|
|
250
250
|
@api_client.config.logger.debug 'Calling API: ImportersCoreImportsApi.read ...'
|
|
251
251
|
end
|
|
252
|
-
# verify the required parameter '
|
|
253
|
-
if @api_client.config.client_side_validation &&
|
|
254
|
-
fail ArgumentError, "Missing the required parameter '
|
|
252
|
+
# verify the required parameter 'pulp_pulp_import_href' is set
|
|
253
|
+
if @api_client.config.client_side_validation && pulp_pulp_import_href.nil?
|
|
254
|
+
fail ArgumentError, "Missing the required parameter 'pulp_pulp_import_href' when calling ImportersCoreImportsApi.read"
|
|
255
255
|
end
|
|
256
256
|
# resource path
|
|
257
|
-
local_var_path = '{
|
|
257
|
+
local_var_path = '{pulp_pulp_import_href}'.sub('{' + 'pulp_pulp_import_href' + '}', CGI.escape(pulp_pulp_import_href.to_s).gsub('%2F', '/'))
|
|
258
258
|
|
|
259
259
|
# query parameters
|
|
260
260
|
query_params = opts[:query_params] || {}
|
|
@@ -148,7 +148,10 @@ module PulpcoreClient
|
|
|
148
148
|
# @param [Hash] opts the optional parameters
|
|
149
149
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
150
150
|
# @option opts [String] :name name
|
|
151
|
+
# @option opts [String] :name__contains name__contains
|
|
152
|
+
# @option opts [String] :name__icontains name__icontains
|
|
151
153
|
# @option opts [String] :name__in name__in
|
|
154
|
+
# @option opts [String] :name__startswith name__startswith
|
|
152
155
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
153
156
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
154
157
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
@@ -164,7 +167,10 @@ module PulpcoreClient
|
|
|
164
167
|
# @param [Hash] opts the optional parameters
|
|
165
168
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
166
169
|
# @option opts [String] :name name
|
|
170
|
+
# @option opts [String] :name__contains name__contains
|
|
171
|
+
# @option opts [String] :name__icontains name__icontains
|
|
167
172
|
# @option opts [String] :name__in name__in
|
|
173
|
+
# @option opts [String] :name__startswith name__startswith
|
|
168
174
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
169
175
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
170
176
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
@@ -181,7 +187,10 @@ module PulpcoreClient
|
|
|
181
187
|
query_params = opts[:query_params] || {}
|
|
182
188
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
183
189
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
190
|
+
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
|
191
|
+
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
|
184
192
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
|
193
|
+
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
|
185
194
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
186
195
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
187
196
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module PulpcoreClient
|
|
16
|
+
class RepositoriesApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# List repositories
|
|
23
|
+
# Endpoint to list all repositories.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
26
|
+
# @option opts [String] :name name
|
|
27
|
+
# @option opts [String] :name__contains name__contains
|
|
28
|
+
# @option opts [String] :name__icontains name__icontains
|
|
29
|
+
# @option opts [String] :name__in name__in
|
|
30
|
+
# @option opts [String] :name__startswith name__startswith
|
|
31
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
32
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
33
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
|
34
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
35
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
36
|
+
# @return [PaginatedRepositoryResponseList]
|
|
37
|
+
def list(opts = {})
|
|
38
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
39
|
+
data
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# List repositories
|
|
43
|
+
# Endpoint to list all repositories.
|
|
44
|
+
# @param [Hash] opts the optional parameters
|
|
45
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
46
|
+
# @option opts [String] :name name
|
|
47
|
+
# @option opts [String] :name__contains name__contains
|
|
48
|
+
# @option opts [String] :name__icontains name__icontains
|
|
49
|
+
# @option opts [String] :name__in name__in
|
|
50
|
+
# @option opts [String] :name__startswith name__startswith
|
|
51
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
52
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
53
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
|
54
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
55
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
56
|
+
# @return [Array<(PaginatedRepositoryResponseList, Integer, Hash)>] PaginatedRepositoryResponseList data, response status code and response headers
|
|
57
|
+
def list_with_http_info(opts = {})
|
|
58
|
+
if @api_client.config.debugging
|
|
59
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesApi.list ...'
|
|
60
|
+
end
|
|
61
|
+
# resource path
|
|
62
|
+
local_var_path = '/pulp/api/v3/repositories/'
|
|
63
|
+
|
|
64
|
+
# query parameters
|
|
65
|
+
query_params = opts[:query_params] || {}
|
|
66
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
67
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
68
|
+
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
|
69
|
+
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
|
70
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
|
71
|
+
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
|
72
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
73
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
74
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
75
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
76
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
77
|
+
|
|
78
|
+
# header parameters
|
|
79
|
+
header_params = opts[:header_params] || {}
|
|
80
|
+
# HTTP header 'Accept' (if needed)
|
|
81
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
82
|
+
|
|
83
|
+
# form parameters
|
|
84
|
+
form_params = opts[:form_params] || {}
|
|
85
|
+
|
|
86
|
+
# http body (model)
|
|
87
|
+
post_body = opts[:body]
|
|
88
|
+
|
|
89
|
+
# return_type
|
|
90
|
+
return_type = opts[:return_type] || 'PaginatedRepositoryResponseList'
|
|
91
|
+
|
|
92
|
+
# auth_names
|
|
93
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
94
|
+
|
|
95
|
+
new_options = opts.merge(
|
|
96
|
+
:header_params => header_params,
|
|
97
|
+
:query_params => query_params,
|
|
98
|
+
:form_params => form_params,
|
|
99
|
+
:body => post_body,
|
|
100
|
+
:auth_names => auth_names,
|
|
101
|
+
:return_type => return_type
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
105
|
+
if @api_client.config.debugging
|
|
106
|
+
@api_client.config.logger.debug "API called: RepositoriesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
107
|
+
end
|
|
108
|
+
return data, status_code, headers
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
@@ -22,9 +22,31 @@ module PulpcoreClient
|
|
|
22
22
|
# List users
|
|
23
23
|
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [String] :email email
|
|
26
|
+
# @option opts [String] :email__contains email__contains
|
|
27
|
+
# @option opts [String] :email__icontains email__icontains
|
|
28
|
+
# @option opts [String] :email__iexact email__iexact
|
|
29
|
+
# @option opts [String] :email__in email__in
|
|
30
|
+
# @option opts [String] :first_name first_name
|
|
31
|
+
# @option opts [String] :first_name__contains first_name__contains
|
|
32
|
+
# @option opts [String] :first_name__icontains first_name__icontains
|
|
33
|
+
# @option opts [String] :first_name__iexact first_name__iexact
|
|
34
|
+
# @option opts [String] :first_name__in first_name__in
|
|
35
|
+
# @option opts [String] :is_active is_active
|
|
36
|
+
# @option opts [String] :is_staff is_staff
|
|
37
|
+
# @option opts [String] :last_name last_name
|
|
38
|
+
# @option opts [String] :last_name__contains last_name__contains
|
|
39
|
+
# @option opts [String] :last_name__icontains last_name__icontains
|
|
40
|
+
# @option opts [String] :last_name__iexact last_name__iexact
|
|
41
|
+
# @option opts [String] :last_name__in last_name__in
|
|
25
42
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
26
43
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
27
44
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
45
|
+
# @option opts [String] :username username
|
|
46
|
+
# @option opts [String] :username__contains username__contains
|
|
47
|
+
# @option opts [String] :username__icontains username__icontains
|
|
48
|
+
# @option opts [String] :username__iexact username__iexact
|
|
49
|
+
# @option opts [String] :username__in username__in
|
|
28
50
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
29
51
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
30
52
|
# @return [PaginatedUserResponseList]
|
|
@@ -36,9 +58,31 @@ module PulpcoreClient
|
|
|
36
58
|
# List users
|
|
37
59
|
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
38
60
|
# @param [Hash] opts the optional parameters
|
|
61
|
+
# @option opts [String] :email email
|
|
62
|
+
# @option opts [String] :email__contains email__contains
|
|
63
|
+
# @option opts [String] :email__icontains email__icontains
|
|
64
|
+
# @option opts [String] :email__iexact email__iexact
|
|
65
|
+
# @option opts [String] :email__in email__in
|
|
66
|
+
# @option opts [String] :first_name first_name
|
|
67
|
+
# @option opts [String] :first_name__contains first_name__contains
|
|
68
|
+
# @option opts [String] :first_name__icontains first_name__icontains
|
|
69
|
+
# @option opts [String] :first_name__iexact first_name__iexact
|
|
70
|
+
# @option opts [String] :first_name__in first_name__in
|
|
71
|
+
# @option opts [String] :is_active is_active
|
|
72
|
+
# @option opts [String] :is_staff is_staff
|
|
73
|
+
# @option opts [String] :last_name last_name
|
|
74
|
+
# @option opts [String] :last_name__contains last_name__contains
|
|
75
|
+
# @option opts [String] :last_name__icontains last_name__icontains
|
|
76
|
+
# @option opts [String] :last_name__iexact last_name__iexact
|
|
77
|
+
# @option opts [String] :last_name__in last_name__in
|
|
39
78
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
40
79
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
41
80
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
81
|
+
# @option opts [String] :username username
|
|
82
|
+
# @option opts [String] :username__contains username__contains
|
|
83
|
+
# @option opts [String] :username__icontains username__icontains
|
|
84
|
+
# @option opts [String] :username__iexact username__iexact
|
|
85
|
+
# @option opts [String] :username__in username__in
|
|
42
86
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
43
87
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
44
88
|
# @return [Array<(PaginatedUserResponseList, Integer, Hash)>] PaginatedUserResponseList data, response status code and response headers
|
|
@@ -51,9 +95,31 @@ module PulpcoreClient
|
|
|
51
95
|
|
|
52
96
|
# query parameters
|
|
53
97
|
query_params = opts[:query_params] || {}
|
|
98
|
+
query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
|
|
99
|
+
query_params[:'email__contains'] = opts[:'email__contains'] if !opts[:'email__contains'].nil?
|
|
100
|
+
query_params[:'email__icontains'] = opts[:'email__icontains'] if !opts[:'email__icontains'].nil?
|
|
101
|
+
query_params[:'email__iexact'] = opts[:'email__iexact'] if !opts[:'email__iexact'].nil?
|
|
102
|
+
query_params[:'email__in'] = opts[:'email__in'] if !opts[:'email__in'].nil?
|
|
103
|
+
query_params[:'first_name'] = opts[:'first_name'] if !opts[:'first_name'].nil?
|
|
104
|
+
query_params[:'first_name__contains'] = opts[:'first_name__contains'] if !opts[:'first_name__contains'].nil?
|
|
105
|
+
query_params[:'first_name__icontains'] = opts[:'first_name__icontains'] if !opts[:'first_name__icontains'].nil?
|
|
106
|
+
query_params[:'first_name__iexact'] = opts[:'first_name__iexact'] if !opts[:'first_name__iexact'].nil?
|
|
107
|
+
query_params[:'first_name__in'] = opts[:'first_name__in'] if !opts[:'first_name__in'].nil?
|
|
108
|
+
query_params[:'is_active'] = opts[:'is_active'] if !opts[:'is_active'].nil?
|
|
109
|
+
query_params[:'is_staff'] = opts[:'is_staff'] if !opts[:'is_staff'].nil?
|
|
110
|
+
query_params[:'last_name'] = opts[:'last_name'] if !opts[:'last_name'].nil?
|
|
111
|
+
query_params[:'last_name__contains'] = opts[:'last_name__contains'] if !opts[:'last_name__contains'].nil?
|
|
112
|
+
query_params[:'last_name__icontains'] = opts[:'last_name__icontains'] if !opts[:'last_name__icontains'].nil?
|
|
113
|
+
query_params[:'last_name__iexact'] = opts[:'last_name__iexact'] if !opts[:'last_name__iexact'].nil?
|
|
114
|
+
query_params[:'last_name__in'] = opts[:'last_name__in'] if !opts[:'last_name__in'].nil?
|
|
54
115
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
55
116
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
56
117
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
118
|
+
query_params[:'username'] = opts[:'username'] if !opts[:'username'].nil?
|
|
119
|
+
query_params[:'username__contains'] = opts[:'username__contains'] if !opts[:'username__contains'].nil?
|
|
120
|
+
query_params[:'username__icontains'] = opts[:'username__icontains'] if !opts[:'username__icontains'].nil?
|
|
121
|
+
query_params[:'username__iexact'] = opts[:'username__iexact'] if !opts[:'username__iexact'].nil?
|
|
122
|
+
query_params[:'username__in'] = opts[:'username__in'] if !opts[:'username__in'].nil?
|
|
57
123
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
58
124
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
59
125
|
|
|
@@ -31,7 +31,10 @@ module PulpcoreClient
|
|
|
31
31
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
32
32
|
# @option opts [String] :missing missing
|
|
33
33
|
# @option opts [String] :name name
|
|
34
|
+
# @option opts [String] :name__contains name__contains
|
|
35
|
+
# @option opts [String] :name__icontains name__icontains
|
|
34
36
|
# @option opts [String] :name__in name__in
|
|
37
|
+
# @option opts [String] :name__startswith name__startswith
|
|
35
38
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
36
39
|
# @option opts [String] :online online
|
|
37
40
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
@@ -55,7 +58,10 @@ module PulpcoreClient
|
|
|
55
58
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
56
59
|
# @option opts [String] :missing missing
|
|
57
60
|
# @option opts [String] :name name
|
|
61
|
+
# @option opts [String] :name__contains name__contains
|
|
62
|
+
# @option opts [String] :name__icontains name__icontains
|
|
58
63
|
# @option opts [String] :name__in name__in
|
|
64
|
+
# @option opts [String] :name__startswith name__startswith
|
|
59
65
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
60
66
|
# @option opts [String] :online online
|
|
61
67
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
@@ -80,7 +86,10 @@ module PulpcoreClient
|
|
|
80
86
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
81
87
|
query_params[:'missing'] = opts[:'missing'] if !opts[:'missing'].nil?
|
|
82
88
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
89
|
+
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
|
90
|
+
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
|
83
91
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
|
92
|
+
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
|
84
93
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
85
94
|
query_params[:'online'] = opts[:'online'] if !opts[:'online'].nil?
|
|
86
95
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
@@ -21,15 +21,11 @@ module PulpcoreClient
|
|
|
21
21
|
# List of policy statements defining the policy.
|
|
22
22
|
attr_accessor :statements
|
|
23
23
|
|
|
24
|
-
# The name of ViewSet this AccessPolicy authorizes.
|
|
25
|
-
attr_accessor :viewset_name
|
|
26
|
-
|
|
27
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
25
|
def self.attribute_map
|
|
29
26
|
{
|
|
30
27
|
:'permissions_assignment' => :'permissions_assignment',
|
|
31
|
-
:'statements' => :'statements'
|
|
32
|
-
:'viewset_name' => :'viewset_name'
|
|
28
|
+
:'statements' => :'statements'
|
|
33
29
|
}
|
|
34
30
|
end
|
|
35
31
|
|
|
@@ -37,8 +33,7 @@ module PulpcoreClient
|
|
|
37
33
|
def self.openapi_types
|
|
38
34
|
{
|
|
39
35
|
:'permissions_assignment' => :'Array<Object>',
|
|
40
|
-
:'statements' => :'Array<Object>'
|
|
41
|
-
:'viewset_name' => :'String'
|
|
36
|
+
:'statements' => :'Array<Object>'
|
|
42
37
|
}
|
|
43
38
|
end
|
|
44
39
|
|
|
@@ -74,10 +69,6 @@ module PulpcoreClient
|
|
|
74
69
|
self.statements = value
|
|
75
70
|
end
|
|
76
71
|
end
|
|
77
|
-
|
|
78
|
-
if attributes.key?(:'viewset_name')
|
|
79
|
-
self.viewset_name = attributes[:'viewset_name']
|
|
80
|
-
end
|
|
81
72
|
end
|
|
82
73
|
|
|
83
74
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -92,10 +83,6 @@ module PulpcoreClient
|
|
|
92
83
|
invalid_properties.push('invalid value for "statements", statements cannot be nil.')
|
|
93
84
|
end
|
|
94
85
|
|
|
95
|
-
if @viewset_name.nil?
|
|
96
|
-
invalid_properties.push('invalid value for "viewset_name", viewset_name cannot be nil.')
|
|
97
|
-
end
|
|
98
|
-
|
|
99
86
|
invalid_properties
|
|
100
87
|
end
|
|
101
88
|
|
|
@@ -104,7 +91,6 @@ module PulpcoreClient
|
|
|
104
91
|
def valid?
|
|
105
92
|
return false if @permissions_assignment.nil?
|
|
106
93
|
return false if @statements.nil?
|
|
107
|
-
return false if @viewset_name.nil?
|
|
108
94
|
true
|
|
109
95
|
end
|
|
110
96
|
|
|
@@ -114,8 +100,7 @@ module PulpcoreClient
|
|
|
114
100
|
return true if self.equal?(o)
|
|
115
101
|
self.class == o.class &&
|
|
116
102
|
permissions_assignment == o.permissions_assignment &&
|
|
117
|
-
statements == o.statements
|
|
118
|
-
viewset_name == o.viewset_name
|
|
103
|
+
statements == o.statements
|
|
119
104
|
end
|
|
120
105
|
|
|
121
106
|
# @see the `==` method
|
|
@@ -127,7 +112,7 @@ module PulpcoreClient
|
|
|
127
112
|
# Calculates hash code according to all attributes.
|
|
128
113
|
# @return [Integer] Hash code
|
|
129
114
|
def hash
|
|
130
|
-
[permissions_assignment, statements
|
|
115
|
+
[permissions_assignment, statements].hash
|
|
131
116
|
end
|
|
132
117
|
|
|
133
118
|
# Builds the object from hash
|
|
@@ -29,6 +29,9 @@ module PulpcoreClient
|
|
|
29
29
|
# The name of ViewSet this AccessPolicy authorizes.
|
|
30
30
|
attr_accessor :viewset_name
|
|
31
31
|
|
|
32
|
+
# True if the AccessPolicy has been user-modified. False otherwise.
|
|
33
|
+
attr_accessor :customized
|
|
34
|
+
|
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
36
|
def self.attribute_map
|
|
34
37
|
{
|
|
@@ -36,7 +39,8 @@ module PulpcoreClient
|
|
|
36
39
|
:'pulp_created' => :'pulp_created',
|
|
37
40
|
:'permissions_assignment' => :'permissions_assignment',
|
|
38
41
|
:'statements' => :'statements',
|
|
39
|
-
:'viewset_name' => :'viewset_name'
|
|
42
|
+
:'viewset_name' => :'viewset_name',
|
|
43
|
+
:'customized' => :'customized'
|
|
40
44
|
}
|
|
41
45
|
end
|
|
42
46
|
|
|
@@ -47,7 +51,8 @@ module PulpcoreClient
|
|
|
47
51
|
:'pulp_created' => :'DateTime',
|
|
48
52
|
:'permissions_assignment' => :'Array<Object>',
|
|
49
53
|
:'statements' => :'Array<Object>',
|
|
50
|
-
:'viewset_name' => :'String'
|
|
54
|
+
:'viewset_name' => :'String',
|
|
55
|
+
:'customized' => :'Boolean'
|
|
51
56
|
}
|
|
52
57
|
end
|
|
53
58
|
|
|
@@ -95,6 +100,10 @@ module PulpcoreClient
|
|
|
95
100
|
if attributes.key?(:'viewset_name')
|
|
96
101
|
self.viewset_name = attributes[:'viewset_name']
|
|
97
102
|
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'customized')
|
|
105
|
+
self.customized = attributes[:'customized']
|
|
106
|
+
end
|
|
98
107
|
end
|
|
99
108
|
|
|
100
109
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -109,10 +118,6 @@ module PulpcoreClient
|
|
|
109
118
|
invalid_properties.push('invalid value for "statements", statements cannot be nil.')
|
|
110
119
|
end
|
|
111
120
|
|
|
112
|
-
if @viewset_name.nil?
|
|
113
|
-
invalid_properties.push('invalid value for "viewset_name", viewset_name cannot be nil.')
|
|
114
|
-
end
|
|
115
|
-
|
|
116
121
|
invalid_properties
|
|
117
122
|
end
|
|
118
123
|
|
|
@@ -121,7 +126,6 @@ module PulpcoreClient
|
|
|
121
126
|
def valid?
|
|
122
127
|
return false if @permissions_assignment.nil?
|
|
123
128
|
return false if @statements.nil?
|
|
124
|
-
return false if @viewset_name.nil?
|
|
125
129
|
true
|
|
126
130
|
end
|
|
127
131
|
|
|
@@ -134,7 +138,8 @@ module PulpcoreClient
|
|
|
134
138
|
pulp_created == o.pulp_created &&
|
|
135
139
|
permissions_assignment == o.permissions_assignment &&
|
|
136
140
|
statements == o.statements &&
|
|
137
|
-
viewset_name == o.viewset_name
|
|
141
|
+
viewset_name == o.viewset_name &&
|
|
142
|
+
customized == o.customized
|
|
138
143
|
end
|
|
139
144
|
|
|
140
145
|
# @see the `==` method
|
|
@@ -146,7 +151,7 @@ module PulpcoreClient
|
|
|
146
151
|
# Calculates hash code according to all attributes.
|
|
147
152
|
# @return [Integer] Hash code
|
|
148
153
|
def hash
|
|
149
|
-
[pulp_href, pulp_created, permissions_assignment, statements, viewset_name].hash
|
|
154
|
+
[pulp_href, pulp_created, permissions_assignment, statements, viewset_name, customized].hash
|
|
150
155
|
end
|
|
151
156
|
|
|
152
157
|
# Builds the object from hash
|