pulpcore_client 3.21.32 → 3.22.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 +147 -143
- data/docs/AccessPoliciesApi.md +28 -28
- data/docs/ArtifactDistributionResponse.md +29 -0
- data/docs/ArtifactsApi.md +21 -21
- data/docs/ContentApi.md +6 -6
- data/docs/ContentSettingsResponse.md +19 -0
- data/docs/ContentguardsApi.md +8 -8
- data/docs/ContentguardsContentRedirectApi.md +53 -53
- data/docs/ContentguardsRbacApi.md +53 -53
- data/docs/DistributionResponse.md +1 -1
- data/docs/DistributionsApi.md +11 -11
- data/docs/DistributionsArtifactsApi.md +154 -0
- data/docs/ExportersFilesystemApi.md +33 -33
- data/docs/ExportersFilesystemExportsApi.md +21 -21
- data/docs/ExportersPulpApi.md +33 -33
- data/docs/ExportersPulpExportsApi.md +21 -21
- data/docs/FilesystemExport.md +1 -3
- data/docs/GroupsApi.md +51 -51
- data/docs/GroupsRolesApi.md +21 -21
- data/docs/GroupsUsersApi.md +16 -16
- data/docs/ImportersPulpApi.md +33 -33
- data/docs/ImportersPulpImportCheckApi.md +1 -1
- data/docs/ImportersPulpImportsApi.md +21 -21
- data/docs/OrphansApi.md +6 -6
- data/docs/OrphansCleanupApi.md +6 -6
- data/docs/PaginatedArtifactDistributionResponseList.md +23 -0
- data/docs/PublicationsApi.md +8 -8
- data/docs/RemoteResponse.md +4 -2
- data/docs/RemoteResponseHiddenFields.md +19 -0
- data/docs/RemotesApi.md +10 -10
- data/docs/RepairApi.md +6 -6
- data/docs/RepositoriesApi.md +9 -9
- data/docs/RepositoriesReclaimSpaceApi.md +6 -6
- data/docs/RepositoryResponse.md +1 -1
- data/docs/RepositoryVersionsApi.md +10 -10
- data/docs/RolesApi.md +31 -31
- data/docs/SigningServicesApi.md +15 -13
- data/docs/StatusApi.md +1 -1
- data/docs/StatusResponse.md +3 -1
- data/docs/TaskGroupsApi.md +11 -13
- data/docs/TaskSchedulesApi.md +35 -35
- data/docs/TasksApi.md +128 -114
- data/docs/UploadsApi.md +61 -51
- data/docs/UserResponse.md +3 -1
- data/docs/UsersApi.md +31 -31
- data/docs/UsersRolesApi.md +21 -21
- data/docs/WorkersApi.md +15 -15
- data/lib/pulpcore_client/api/access_policies_api.rb +34 -34
- data/lib/pulpcore_client/api/artifacts_api.rb +30 -30
- data/lib/pulpcore_client/api/content_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +8 -8
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +66 -66
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +66 -66
- data/lib/pulpcore_client/api/distributions_api.rb +12 -12
- data/lib/pulpcore_client/api/distributions_artifacts_api.rb +198 -0
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +40 -40
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +40 -40
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_api.rb +64 -64
- data/lib/pulpcore_client/api/groups_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_users_api.rb +19 -19
- data/lib/pulpcore_client/api/importers_pulp_api.rb +40 -40
- data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +25 -25
- data/lib/pulpcore_client/api/orphans_api.rb +5 -5
- data/lib/pulpcore_client/api/orphans_cleanup_api.rb +6 -6
- data/lib/pulpcore_client/api/publications_api.rb +8 -8
- data/lib/pulpcore_client/api/remotes_api.rb +10 -10
- data/lib/pulpcore_client/api/repair_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +8 -8
- data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +6 -6
- data/lib/pulpcore_client/api/repository_versions_api.rb +10 -10
- data/lib/pulpcore_client/api/roles_api.rb +38 -38
- data/lib/pulpcore_client/api/signing_services_api.rb +20 -13
- data/lib/pulpcore_client/api/task_groups_api.rb +11 -18
- data/lib/pulpcore_client/api/task_schedules_api.rb +42 -42
- data/lib/pulpcore_client/api/tasks_api.rb +159 -138
- data/lib/pulpcore_client/api/uploads_api.rb +84 -65
- data/lib/pulpcore_client/api/users_api.rb +38 -38
- data/lib/pulpcore_client/api/users_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/workers_api.rb +16 -16
- data/lib/pulpcore_client/configuration.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +279 -0
- data/lib/pulpcore_client/models/content_settings_response.rb +228 -0
- data/lib/pulpcore_client/models/distribution_response.rb +4 -2
- data/lib/pulpcore_client/models/filesystem_export.rb +4 -14
- data/lib/pulpcore_client/models/group_role.rb +19 -0
- data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +237 -0
- data/lib/pulpcore_client/models/remote_response.rb +41 -27
- data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +215 -0
- data/lib/pulpcore_client/models/repository_response.rb +4 -2
- data/lib/pulpcore_client/models/status_response.rb +19 -4
- data/lib/pulpcore_client/models/user_response.rb +16 -4
- data/lib/pulpcore_client/models/user_role.rb +19 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +5 -2
- data/spec/api/access_policies_api_spec.rb +11 -11
- data/spec/api/artifacts_api_spec.rb +8 -8
- data/spec/api/content_api_spec.rb +2 -2
- data/spec/api/contentguards_api_spec.rb +3 -3
- data/spec/api/contentguards_content_redirect_api_spec.rb +21 -21
- data/spec/api/contentguards_rbac_api_spec.rb +21 -21
- data/spec/api/distributions_api_spec.rb +5 -5
- data/spec/api/distributions_artifacts_api_spec.rb +76 -0
- data/spec/api/exporters_filesystem_api_spec.rb +13 -13
- data/spec/api/exporters_filesystem_exports_api_spec.rb +8 -8
- data/spec/api/exporters_pulp_api_spec.rb +13 -13
- data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
- data/spec/api/groups_api_spec.rb +20 -20
- data/spec/api/groups_roles_api_spec.rb +8 -8
- data/spec/api/groups_users_api_spec.rb +6 -6
- data/spec/api/importers_pulp_api_spec.rb +13 -13
- data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/orphans_cleanup_api_spec.rb +2 -2
- data/spec/api/publications_api_spec.rb +3 -3
- data/spec/api/remotes_api_spec.rb +4 -4
- data/spec/api/repair_api_spec.rb +2 -2
- data/spec/api/repositories_api_spec.rb +3 -3
- data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
- data/spec/api/repository_versions_api_spec.rb +4 -4
- data/spec/api/roles_api_spec.rb +12 -12
- data/spec/api/signing_services_api_spec.rb +6 -5
- data/spec/api/task_groups_api_spec.rb +4 -5
- data/spec/api/task_schedules_api_spec.rb +14 -14
- data/spec/api/tasks_api_spec.rb +45 -38
- data/spec/api/uploads_api_spec.rb +25 -20
- data/spec/api/users_api_spec.rb +12 -12
- data/spec/api/users_roles_api_spec.rb +8 -8
- data/spec/api/workers_api_spec.rb +6 -6
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +77 -0
- data/spec/models/content_settings_response_spec.rb +47 -0
- data/spec/models/filesystem_export_spec.rb +0 -6
- data/spec/models/paginated_artifact_distribution_response_list_spec.rb +59 -0
- data/spec/models/remote_response_hidden_fields_spec.rb +47 -0
- data/spec/models/remote_response_spec.rb +6 -0
- data/spec/models/status_response_spec.rb +6 -0
- data/spec/models/user_response_spec.rb +6 -0
- metadata +162 -150
- data/docs/DocsApiJsonApi.md +0 -61
- data/docs/DocsApiYamlApi.md +0 -61
- data/lib/pulpcore_client/api/docs_api_json_api.rb +0 -89
- data/lib/pulpcore_client/api/docs_api_yaml_api.rb +0 -89
- data/spec/api/docs_api_json_api_spec.rb +0 -48
- data/spec/api/docs_api_yaml_api_spec.rb +0 -48
|
@@ -25,8 +25,8 @@ module PulpcoreClient
|
|
|
25
25
|
# @param user_role [UserRole]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
27
|
# @return [UserRoleResponse]
|
|
28
|
-
def
|
|
29
|
-
data, _status_code, _headers =
|
|
28
|
+
def create(auth_user_href, user_role, opts = {})
|
|
29
|
+
data, _status_code, _headers = create_with_http_info(auth_user_href, user_role, opts)
|
|
30
30
|
data
|
|
31
31
|
end
|
|
32
32
|
|
|
@@ -36,17 +36,17 @@ module PulpcoreClient
|
|
|
36
36
|
# @param user_role [UserRole]
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
38
|
# @return [Array<(UserRoleResponse, Integer, Hash)>] UserRoleResponse data, response status code and response headers
|
|
39
|
-
def
|
|
39
|
+
def create_with_http_info(auth_user_href, user_role, opts = {})
|
|
40
40
|
if @api_client.config.debugging
|
|
41
|
-
@api_client.config.logger.debug 'Calling API: UsersRolesApi.
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: UsersRolesApi.create ...'
|
|
42
42
|
end
|
|
43
43
|
# verify the required parameter 'auth_user_href' is set
|
|
44
44
|
if @api_client.config.client_side_validation && auth_user_href.nil?
|
|
45
|
-
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersRolesApi.
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersRolesApi.create"
|
|
46
46
|
end
|
|
47
47
|
# verify the required parameter 'user_role' is set
|
|
48
48
|
if @api_client.config.client_side_validation && user_role.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'user_role' when calling UsersRolesApi.
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'user_role' when calling UsersRolesApi.create"
|
|
50
50
|
end
|
|
51
51
|
# resource path
|
|
52
52
|
local_var_path = '{auth_user_href}roles/'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_href.to_s).gsub('%2F', '/'))
|
|
@@ -84,7 +84,7 @@ module PulpcoreClient
|
|
|
84
84
|
|
|
85
85
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
86
86
|
if @api_client.config.debugging
|
|
87
|
-
@api_client.config.logger.debug "API called: UsersRolesApi#
|
|
87
|
+
@api_client.config.logger.debug "API called: UsersRolesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
88
88
|
end
|
|
89
89
|
return data, status_code, headers
|
|
90
90
|
end
|
|
@@ -94,8 +94,8 @@ module PulpcoreClient
|
|
|
94
94
|
# @param auth_users_user_role_href [String]
|
|
95
95
|
# @param [Hash] opts the optional parameters
|
|
96
96
|
# @return [nil]
|
|
97
|
-
def
|
|
98
|
-
|
|
97
|
+
def delete(auth_users_user_role_href, opts = {})
|
|
98
|
+
delete_with_http_info(auth_users_user_role_href, opts)
|
|
99
99
|
nil
|
|
100
100
|
end
|
|
101
101
|
|
|
@@ -104,13 +104,13 @@ module PulpcoreClient
|
|
|
104
104
|
# @param auth_users_user_role_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
|
|
107
|
+
def delete_with_http_info(auth_users_user_role_href, opts = {})
|
|
108
108
|
if @api_client.config.debugging
|
|
109
|
-
@api_client.config.logger.debug 'Calling API: UsersRolesApi.
|
|
109
|
+
@api_client.config.logger.debug 'Calling API: UsersRolesApi.delete ...'
|
|
110
110
|
end
|
|
111
111
|
# verify the required parameter 'auth_users_user_role_href' is set
|
|
112
112
|
if @api_client.config.client_side_validation && auth_users_user_role_href.nil?
|
|
113
|
-
fail ArgumentError, "Missing the required parameter 'auth_users_user_role_href' when calling UsersRolesApi.
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'auth_users_user_role_href' when calling UsersRolesApi.delete"
|
|
114
114
|
end
|
|
115
115
|
# resource path
|
|
116
116
|
local_var_path = '{auth_users_user_role_href}'.sub('{' + 'auth_users_user_role_href' + '}', CGI.escape(auth_users_user_role_href.to_s).gsub('%2F', '/'))
|
|
@@ -144,7 +144,7 @@ module PulpcoreClient
|
|
|
144
144
|
|
|
145
145
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
146
146
|
if @api_client.config.debugging
|
|
147
|
-
@api_client.config.logger.debug "API called: UsersRolesApi#
|
|
147
|
+
@api_client.config.logger.debug "API called: UsersRolesApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
148
148
|
end
|
|
149
149
|
return data, status_code, headers
|
|
150
150
|
end
|
|
@@ -165,8 +165,8 @@ module PulpcoreClient
|
|
|
165
165
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
166
166
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
167
167
|
# @return [PaginatedUserRoleResponseList]
|
|
168
|
-
def
|
|
169
|
-
data, _status_code, _headers =
|
|
168
|
+
def list(auth_user_href, opts = {})
|
|
169
|
+
data, _status_code, _headers = list_with_http_info(auth_user_href, opts)
|
|
170
170
|
data
|
|
171
171
|
end
|
|
172
172
|
|
|
@@ -186,13 +186,13 @@ module PulpcoreClient
|
|
|
186
186
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
187
187
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
188
188
|
# @return [Array<(PaginatedUserRoleResponseList, Integer, Hash)>] PaginatedUserRoleResponseList data, response status code and response headers
|
|
189
|
-
def
|
|
189
|
+
def list_with_http_info(auth_user_href, opts = {})
|
|
190
190
|
if @api_client.config.debugging
|
|
191
|
-
@api_client.config.logger.debug 'Calling API: UsersRolesApi.
|
|
191
|
+
@api_client.config.logger.debug 'Calling API: UsersRolesApi.list ...'
|
|
192
192
|
end
|
|
193
193
|
# verify the required parameter 'auth_user_href' is set
|
|
194
194
|
if @api_client.config.client_side_validation && auth_user_href.nil?
|
|
195
|
-
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersRolesApi.
|
|
195
|
+
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersRolesApi.list"
|
|
196
196
|
end
|
|
197
197
|
allowable_values = ["-description", "-pk", "-pulp_created", "-role", "description", "pk", "pulp_created", "role"]
|
|
198
198
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
@@ -243,7 +243,7 @@ module PulpcoreClient
|
|
|
243
243
|
|
|
244
244
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
245
245
|
if @api_client.config.debugging
|
|
246
|
-
@api_client.config.logger.debug "API called: UsersRolesApi#
|
|
246
|
+
@api_client.config.logger.debug "API called: UsersRolesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
247
247
|
end
|
|
248
248
|
return data, status_code, headers
|
|
249
249
|
end
|
|
@@ -255,8 +255,8 @@ module PulpcoreClient
|
|
|
255
255
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
256
256
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
257
257
|
# @return [UserRoleResponse]
|
|
258
|
-
def
|
|
259
|
-
data, _status_code, _headers =
|
|
258
|
+
def read(auth_users_user_role_href, opts = {})
|
|
259
|
+
data, _status_code, _headers = read_with_http_info(auth_users_user_role_href, opts)
|
|
260
260
|
data
|
|
261
261
|
end
|
|
262
262
|
|
|
@@ -267,13 +267,13 @@ module PulpcoreClient
|
|
|
267
267
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
268
268
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
269
269
|
# @return [Array<(UserRoleResponse, Integer, Hash)>] UserRoleResponse data, response status code and response headers
|
|
270
|
-
def
|
|
270
|
+
def read_with_http_info(auth_users_user_role_href, opts = {})
|
|
271
271
|
if @api_client.config.debugging
|
|
272
|
-
@api_client.config.logger.debug 'Calling API: UsersRolesApi.
|
|
272
|
+
@api_client.config.logger.debug 'Calling API: UsersRolesApi.read ...'
|
|
273
273
|
end
|
|
274
274
|
# verify the required parameter 'auth_users_user_role_href' is set
|
|
275
275
|
if @api_client.config.client_side_validation && auth_users_user_role_href.nil?
|
|
276
|
-
fail ArgumentError, "Missing the required parameter 'auth_users_user_role_href' when calling UsersRolesApi.
|
|
276
|
+
fail ArgumentError, "Missing the required parameter 'auth_users_user_role_href' when calling UsersRolesApi.read"
|
|
277
277
|
end
|
|
278
278
|
# resource path
|
|
279
279
|
local_var_path = '{auth_users_user_role_href}'.sub('{' + 'auth_users_user_role_href' + '}', CGI.escape(auth_users_user_role_href.to_s).gsub('%2F', '/'))
|
|
@@ -311,7 +311,7 @@ module PulpcoreClient
|
|
|
311
311
|
|
|
312
312
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
313
313
|
if @api_client.config.debugging
|
|
314
|
-
@api_client.config.logger.debug "API called: UsersRolesApi#
|
|
314
|
+
@api_client.config.logger.debug "API called: UsersRolesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
315
315
|
end
|
|
316
316
|
return data, status_code, headers
|
|
317
317
|
end
|
|
@@ -22,7 +22,7 @@ module PulpcoreClient
|
|
|
22
22
|
# List workers
|
|
23
23
|
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @option opts [DateTime] :last_heartbeat
|
|
25
|
+
# @option opts [DateTime] :last_heartbeat Filter results where last_heartbeat matches value
|
|
26
26
|
# @option opts [DateTime] :last_heartbeat__gt Filter results where last_heartbeat is greater than value
|
|
27
27
|
# @option opts [DateTime] :last_heartbeat__gte Filter results where last_heartbeat is greater than or equal to value
|
|
28
28
|
# @option opts [DateTime] :last_heartbeat__lt Filter results where last_heartbeat is less than value
|
|
@@ -30,7 +30,7 @@ module PulpcoreClient
|
|
|
30
30
|
# @option opts [Array<DateTime>] :last_heartbeat__range Filter results where last_heartbeat is between two comma separated values
|
|
31
31
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
32
32
|
# @option opts [Boolean] :missing
|
|
33
|
-
# @option opts [String] :name
|
|
33
|
+
# @option opts [String] :name Filter results where name matches value
|
|
34
34
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
35
35
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
36
36
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
@@ -41,15 +41,15 @@ module PulpcoreClient
|
|
|
41
41
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
42
42
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
43
43
|
# @return [PaginatedWorkerResponseList]
|
|
44
|
-
def
|
|
45
|
-
data, _status_code, _headers =
|
|
44
|
+
def list(opts = {})
|
|
45
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
46
46
|
data
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
# List workers
|
|
50
50
|
# 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.
|
|
51
51
|
# @param [Hash] opts the optional parameters
|
|
52
|
-
# @option opts [DateTime] :last_heartbeat
|
|
52
|
+
# @option opts [DateTime] :last_heartbeat Filter results where last_heartbeat matches value
|
|
53
53
|
# @option opts [DateTime] :last_heartbeat__gt Filter results where last_heartbeat is greater than value
|
|
54
54
|
# @option opts [DateTime] :last_heartbeat__gte Filter results where last_heartbeat is greater than or equal to value
|
|
55
55
|
# @option opts [DateTime] :last_heartbeat__lt Filter results where last_heartbeat is less than value
|
|
@@ -57,7 +57,7 @@ module PulpcoreClient
|
|
|
57
57
|
# @option opts [Array<DateTime>] :last_heartbeat__range Filter results where last_heartbeat is between two comma separated values
|
|
58
58
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
59
59
|
# @option opts [Boolean] :missing
|
|
60
|
-
# @option opts [String] :name
|
|
60
|
+
# @option opts [String] :name Filter results where name matches value
|
|
61
61
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
62
62
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
63
63
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
@@ -68,11 +68,11 @@ module PulpcoreClient
|
|
|
68
68
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
69
69
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
70
70
|
# @return [Array<(PaginatedWorkerResponseList, Integer, Hash)>] PaginatedWorkerResponseList data, response status code and response headers
|
|
71
|
-
def
|
|
71
|
+
def list_with_http_info(opts = {})
|
|
72
72
|
if @api_client.config.debugging
|
|
73
|
-
@api_client.config.logger.debug 'Calling API: WorkersApi.
|
|
73
|
+
@api_client.config.logger.debug 'Calling API: WorkersApi.list ...'
|
|
74
74
|
end
|
|
75
|
-
allowable_values = ["-
|
|
75
|
+
allowable_values = ["-last_heartbeat", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "last_heartbeat", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
|
|
76
76
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
77
77
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
78
78
|
end
|
|
@@ -128,7 +128,7 @@ module PulpcoreClient
|
|
|
128
128
|
|
|
129
129
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
130
130
|
if @api_client.config.debugging
|
|
131
|
-
@api_client.config.logger.debug "API called: WorkersApi#
|
|
131
|
+
@api_client.config.logger.debug "API called: WorkersApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
132
132
|
end
|
|
133
133
|
return data, status_code, headers
|
|
134
134
|
end
|
|
@@ -140,8 +140,8 @@ module PulpcoreClient
|
|
|
140
140
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
141
141
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
142
142
|
# @return [WorkerResponse]
|
|
143
|
-
def
|
|
144
|
-
data, _status_code, _headers =
|
|
143
|
+
def read(worker_href, opts = {})
|
|
144
|
+
data, _status_code, _headers = read_with_http_info(worker_href, opts)
|
|
145
145
|
data
|
|
146
146
|
end
|
|
147
147
|
|
|
@@ -152,13 +152,13 @@ module PulpcoreClient
|
|
|
152
152
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
153
153
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
154
154
|
# @return [Array<(WorkerResponse, Integer, Hash)>] WorkerResponse data, response status code and response headers
|
|
155
|
-
def
|
|
155
|
+
def read_with_http_info(worker_href, opts = {})
|
|
156
156
|
if @api_client.config.debugging
|
|
157
|
-
@api_client.config.logger.debug 'Calling API: WorkersApi.
|
|
157
|
+
@api_client.config.logger.debug 'Calling API: WorkersApi.read ...'
|
|
158
158
|
end
|
|
159
159
|
# verify the required parameter 'worker_href' is set
|
|
160
160
|
if @api_client.config.client_side_validation && worker_href.nil?
|
|
161
|
-
fail ArgumentError, "Missing the required parameter 'worker_href' when calling WorkersApi.
|
|
161
|
+
fail ArgumentError, "Missing the required parameter 'worker_href' when calling WorkersApi.read"
|
|
162
162
|
end
|
|
163
163
|
# resource path
|
|
164
164
|
local_var_path = '{worker_href}'.sub('{' + 'worker_href' + '}', CGI.escape(worker_href.to_s).gsub('%2F', '/'))
|
|
@@ -196,7 +196,7 @@ module PulpcoreClient
|
|
|
196
196
|
|
|
197
197
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
198
198
|
if @api_client.config.debugging
|
|
199
|
-
@api_client.config.logger.debug "API called: WorkersApi#
|
|
199
|
+
@api_client.config.logger.debug "API called: WorkersApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
200
200
|
end
|
|
201
201
|
return data, status_code, headers
|
|
202
202
|
end
|
|
@@ -127,8 +127,8 @@ module PulpcoreClient
|
|
|
127
127
|
attr_accessor :force_ending_format
|
|
128
128
|
|
|
129
129
|
def initialize
|
|
130
|
-
@scheme = '
|
|
131
|
-
@host = '
|
|
130
|
+
@scheme = 'https'
|
|
131
|
+
@host = 'pulp'
|
|
132
132
|
@base_path = ''
|
|
133
133
|
@api_key = {}
|
|
134
134
|
@api_key_prefix = {}
|
|
@@ -210,7 +210,7 @@ module PulpcoreClient
|
|
|
210
210
|
def server_settings
|
|
211
211
|
[
|
|
212
212
|
{
|
|
213
|
-
url: "
|
|
213
|
+
url: "https://pulp/",
|
|
214
214
|
description: "No description provided",
|
|
215
215
|
}
|
|
216
216
|
]
|
|
@@ -0,0 +1,279 @@
|
|
|
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 'date'
|
|
14
|
+
|
|
15
|
+
module PulpcoreClient
|
|
16
|
+
# A serializer for ArtifactDistribution.
|
|
17
|
+
class ArtifactDistributionResponse
|
|
18
|
+
# An optional content-guard.
|
|
19
|
+
attr_accessor :content_guard
|
|
20
|
+
|
|
21
|
+
attr_accessor :pulp_labels
|
|
22
|
+
|
|
23
|
+
# Timestamp of creation.
|
|
24
|
+
attr_accessor :pulp_created
|
|
25
|
+
|
|
26
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
27
|
+
attr_accessor :base_path
|
|
28
|
+
|
|
29
|
+
# The URL for accessing the publication as defined by this distribution.
|
|
30
|
+
attr_accessor :base_url
|
|
31
|
+
|
|
32
|
+
attr_accessor :pulp_href
|
|
33
|
+
|
|
34
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
35
|
+
attr_accessor :name
|
|
36
|
+
|
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
|
+
def self.attribute_map
|
|
39
|
+
{
|
|
40
|
+
:'content_guard' => :'content_guard',
|
|
41
|
+
:'pulp_labels' => :'pulp_labels',
|
|
42
|
+
:'pulp_created' => :'pulp_created',
|
|
43
|
+
:'base_path' => :'base_path',
|
|
44
|
+
:'base_url' => :'base_url',
|
|
45
|
+
:'pulp_href' => :'pulp_href',
|
|
46
|
+
:'name' => :'name'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Attribute type mapping.
|
|
51
|
+
def self.openapi_types
|
|
52
|
+
{
|
|
53
|
+
:'content_guard' => :'String',
|
|
54
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
55
|
+
:'pulp_created' => :'DateTime',
|
|
56
|
+
:'base_path' => :'String',
|
|
57
|
+
:'base_url' => :'String',
|
|
58
|
+
:'pulp_href' => :'String',
|
|
59
|
+
:'name' => :'String'
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# List of attributes with nullable: true
|
|
64
|
+
def self.openapi_nullable
|
|
65
|
+
Set.new([
|
|
66
|
+
:'content_guard',
|
|
67
|
+
])
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Initializes the object
|
|
71
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
72
|
+
def initialize(attributes = {})
|
|
73
|
+
if (!attributes.is_a?(Hash))
|
|
74
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::ArtifactDistributionResponse` initialize method"
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
78
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
79
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
80
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::ArtifactDistributionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
81
|
+
end
|
|
82
|
+
h[k.to_sym] = v
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'content_guard')
|
|
86
|
+
self.content_guard = attributes[:'content_guard']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'pulp_labels')
|
|
90
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
91
|
+
self.pulp_labels = value
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'pulp_created')
|
|
96
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'base_path')
|
|
100
|
+
self.base_path = attributes[:'base_path']
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'base_url')
|
|
104
|
+
self.base_url = attributes[:'base_url']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'pulp_href')
|
|
108
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'name')
|
|
112
|
+
self.name = attributes[:'name']
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
117
|
+
# @return Array for valid properties with the reasons
|
|
118
|
+
def list_invalid_properties
|
|
119
|
+
invalid_properties = Array.new
|
|
120
|
+
if @base_path.nil?
|
|
121
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if @name.nil?
|
|
125
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
invalid_properties
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Check to see if the all the properties in the model are valid
|
|
132
|
+
# @return true if the model is valid
|
|
133
|
+
def valid?
|
|
134
|
+
return false if @base_path.nil?
|
|
135
|
+
return false if @name.nil?
|
|
136
|
+
true
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Checks equality by comparing each attribute.
|
|
140
|
+
# @param [Object] Object to be compared
|
|
141
|
+
def ==(o)
|
|
142
|
+
return true if self.equal?(o)
|
|
143
|
+
self.class == o.class &&
|
|
144
|
+
content_guard == o.content_guard &&
|
|
145
|
+
pulp_labels == o.pulp_labels &&
|
|
146
|
+
pulp_created == o.pulp_created &&
|
|
147
|
+
base_path == o.base_path &&
|
|
148
|
+
base_url == o.base_url &&
|
|
149
|
+
pulp_href == o.pulp_href &&
|
|
150
|
+
name == o.name
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# @see the `==` method
|
|
154
|
+
# @param [Object] Object to be compared
|
|
155
|
+
def eql?(o)
|
|
156
|
+
self == o
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Calculates hash code according to all attributes.
|
|
160
|
+
# @return [Integer] Hash code
|
|
161
|
+
def hash
|
|
162
|
+
[content_guard, pulp_labels, pulp_created, base_path, base_url, pulp_href, name].hash
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Builds the object from hash
|
|
166
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
167
|
+
# @return [Object] Returns the model itself
|
|
168
|
+
def self.build_from_hash(attributes)
|
|
169
|
+
new.build_from_hash(attributes)
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Builds the object from hash
|
|
173
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
174
|
+
# @return [Object] Returns the model itself
|
|
175
|
+
def build_from_hash(attributes)
|
|
176
|
+
return nil unless attributes.is_a?(Hash)
|
|
177
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
178
|
+
if type =~ /\AArray<(.*)>/i
|
|
179
|
+
# check to ensure the input is an array given that the attribute
|
|
180
|
+
# is documented as an array but the input is not
|
|
181
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
182
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
183
|
+
end
|
|
184
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
185
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
186
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
self
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Deserializes the data based on type
|
|
193
|
+
# @param string type Data type
|
|
194
|
+
# @param string value Value to be deserialized
|
|
195
|
+
# @return [Object] Deserialized data
|
|
196
|
+
def _deserialize(type, value)
|
|
197
|
+
case type.to_sym
|
|
198
|
+
when :DateTime
|
|
199
|
+
DateTime.parse(value)
|
|
200
|
+
when :Date
|
|
201
|
+
Date.parse(value)
|
|
202
|
+
when :String
|
|
203
|
+
value.to_s
|
|
204
|
+
when :Integer
|
|
205
|
+
value.to_i
|
|
206
|
+
when :Float
|
|
207
|
+
value.to_f
|
|
208
|
+
when :Boolean
|
|
209
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
210
|
+
true
|
|
211
|
+
else
|
|
212
|
+
false
|
|
213
|
+
end
|
|
214
|
+
when :Object
|
|
215
|
+
# generic object (usually a Hash), return directly
|
|
216
|
+
value
|
|
217
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
218
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
219
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
220
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
221
|
+
k_type = Regexp.last_match[:k_type]
|
|
222
|
+
v_type = Regexp.last_match[:v_type]
|
|
223
|
+
{}.tap do |hash|
|
|
224
|
+
value.each do |k, v|
|
|
225
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
else # model
|
|
229
|
+
PulpcoreClient.const_get(type).build_from_hash(value)
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# Returns the string representation of the object
|
|
234
|
+
# @return [String] String presentation of the object
|
|
235
|
+
def to_s
|
|
236
|
+
to_hash.to_s
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
240
|
+
# @return [Hash] Returns the object in the form of hash
|
|
241
|
+
def to_body
|
|
242
|
+
to_hash
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# Returns the object in the form of hash
|
|
246
|
+
# @return [Hash] Returns the object in the form of hash
|
|
247
|
+
def to_hash
|
|
248
|
+
hash = {}
|
|
249
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
250
|
+
value = self.send(attr)
|
|
251
|
+
if value.nil?
|
|
252
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
253
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
hash[param] = _to_hash(value)
|
|
257
|
+
end
|
|
258
|
+
hash
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
# Outputs non-array value in the form of hash
|
|
262
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
263
|
+
# @param [Object] value Any valid value
|
|
264
|
+
# @return [Hash] Returns the value in the form of hash
|
|
265
|
+
def _to_hash(value)
|
|
266
|
+
if value.is_a?(Array)
|
|
267
|
+
value.compact.map { |v| _to_hash(v) }
|
|
268
|
+
elsif value.is_a?(Hash)
|
|
269
|
+
{}.tap do |hash|
|
|
270
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
271
|
+
end
|
|
272
|
+
elsif value.respond_to? :to_hash
|
|
273
|
+
value.to_hash
|
|
274
|
+
else
|
|
275
|
+
value
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
end
|