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
|
@@ -24,8 +24,8 @@ module PulpcoreClient
|
|
|
24
24
|
# @param repair [Repair]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [AsyncOperationResponse]
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
27
|
+
def post(repair, opts = {})
|
|
28
|
+
data, _status_code, _headers = post_with_http_info(repair, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -34,13 +34,13 @@ module PulpcoreClient
|
|
|
34
34
|
# @param repair [Repair]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
37
|
-
def
|
|
37
|
+
def post_with_http_info(repair, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: RepairApi.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: RepairApi.post ...'
|
|
40
40
|
end
|
|
41
41
|
# verify the required parameter 'repair' is set
|
|
42
42
|
if @api_client.config.client_side_validation && repair.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'repair' when calling RepairApi.
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'repair' when calling RepairApi.post"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/pulp/api/v3/repair/'
|
|
@@ -78,7 +78,7 @@ module PulpcoreClient
|
|
|
78
78
|
|
|
79
79
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
80
80
|
if @api_client.config.debugging
|
|
81
|
-
@api_client.config.logger.debug "API called: RepairApi#
|
|
81
|
+
@api_client.config.logger.debug "API called: RepairApi#post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
82
|
end
|
|
83
83
|
return data, status_code, headers
|
|
84
84
|
end
|
|
@@ -23,7 +23,7 @@ module PulpcoreClient
|
|
|
23
23
|
# Endpoint to list all repositories.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
26
|
-
# @option opts [String] :name
|
|
26
|
+
# @option opts [String] :name Filter results where name matches value
|
|
27
27
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
28
28
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
29
29
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
@@ -35,8 +35,8 @@ module PulpcoreClient
|
|
|
35
35
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
36
36
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
37
37
|
# @return [PaginatedRepositoryResponseList]
|
|
38
|
-
def
|
|
39
|
-
data, _status_code, _headers =
|
|
38
|
+
def list(opts = {})
|
|
39
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
40
40
|
data
|
|
41
41
|
end
|
|
42
42
|
|
|
@@ -44,7 +44,7 @@ module PulpcoreClient
|
|
|
44
44
|
# Endpoint to list all repositories.
|
|
45
45
|
# @param [Hash] opts the optional parameters
|
|
46
46
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
47
|
-
# @option opts [String] :name
|
|
47
|
+
# @option opts [String] :name Filter results where name matches value
|
|
48
48
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
49
49
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
50
50
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
@@ -56,11 +56,11 @@ module PulpcoreClient
|
|
|
56
56
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
57
57
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
58
58
|
# @return [Array<(PaginatedRepositoryResponseList, Integer, Hash)>] PaginatedRepositoryResponseList data, response status code and response headers
|
|
59
|
-
def
|
|
59
|
+
def list_with_http_info(opts = {})
|
|
60
60
|
if @api_client.config.debugging
|
|
61
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.
|
|
61
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesApi.list ...'
|
|
62
62
|
end
|
|
63
|
-
allowable_values = ["-
|
|
63
|
+
allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
|
|
64
64
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
65
65
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
66
66
|
end
|
|
@@ -110,7 +110,7 @@ module PulpcoreClient
|
|
|
110
110
|
|
|
111
111
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
112
112
|
if @api_client.config.debugging
|
|
113
|
-
@api_client.config.logger.debug "API called: RepositoriesApi#
|
|
113
|
+
@api_client.config.logger.debug "API called: RepositoriesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
114
114
|
end
|
|
115
115
|
return data, status_code, headers
|
|
116
116
|
end
|
|
@@ -23,8 +23,8 @@ module PulpcoreClient
|
|
|
23
23
|
# @param reclaim_space [ReclaimSpace]
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @return [AsyncOperationResponse]
|
|
26
|
-
def
|
|
27
|
-
data, _status_code, _headers =
|
|
26
|
+
def reclaim(reclaim_space, opts = {})
|
|
27
|
+
data, _status_code, _headers = reclaim_with_http_info(reclaim_space, opts)
|
|
28
28
|
data
|
|
29
29
|
end
|
|
30
30
|
|
|
@@ -32,13 +32,13 @@ module PulpcoreClient
|
|
|
32
32
|
# @param reclaim_space [ReclaimSpace]
|
|
33
33
|
# @param [Hash] opts the optional parameters
|
|
34
34
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
35
|
-
def
|
|
35
|
+
def reclaim_with_http_info(reclaim_space, opts = {})
|
|
36
36
|
if @api_client.config.debugging
|
|
37
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesReclaimSpaceApi.
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesReclaimSpaceApi.reclaim ...'
|
|
38
38
|
end
|
|
39
39
|
# verify the required parameter 'reclaim_space' is set
|
|
40
40
|
if @api_client.config.client_side_validation && reclaim_space.nil?
|
|
41
|
-
fail ArgumentError, "Missing the required parameter 'reclaim_space' when calling RepositoriesReclaimSpaceApi.
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'reclaim_space' when calling RepositoriesReclaimSpaceApi.reclaim"
|
|
42
42
|
end
|
|
43
43
|
# resource path
|
|
44
44
|
local_var_path = '/pulp/api/v3/repositories/reclaim_space/'
|
|
@@ -76,7 +76,7 @@ module PulpcoreClient
|
|
|
76
76
|
|
|
77
77
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
78
78
|
if @api_client.config.debugging
|
|
79
|
-
@api_client.config.logger.debug "API called: RepositoriesReclaimSpaceApi#
|
|
79
|
+
@api_client.config.logger.debug "API called: RepositoriesReclaimSpaceApi#reclaim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
80
80
|
end
|
|
81
81
|
return data, status_code, headers
|
|
82
82
|
end
|
|
@@ -24,7 +24,7 @@ module PulpcoreClient
|
|
|
24
24
|
# @option opts [String] :content Content Unit referenced by HREF
|
|
25
25
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
|
26
26
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
27
|
-
# @option opts [Integer] :number
|
|
27
|
+
# @option opts [Integer] :number Filter results where number matches value
|
|
28
28
|
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
|
29
29
|
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
|
30
30
|
# @option opts [Integer] :number__lt Filter results where number is less than value
|
|
@@ -32,7 +32,7 @@ module PulpcoreClient
|
|
|
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
34
|
# @option opts [Array<String>] :ordering Ordering
|
|
35
|
-
# @option opts [DateTime] :pulp_created
|
|
35
|
+
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
|
36
36
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
37
37
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
|
38
38
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
|
@@ -41,8 +41,8 @@ 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 [PaginatedRepositoryVersionResponseList]
|
|
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
|
|
|
@@ -51,7 +51,7 @@ module PulpcoreClient
|
|
|
51
51
|
# @option opts [String] :content Content Unit referenced by HREF
|
|
52
52
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
|
53
53
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
54
|
-
# @option opts [Integer] :number
|
|
54
|
+
# @option opts [Integer] :number Filter results where number matches value
|
|
55
55
|
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
|
56
56
|
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
|
57
57
|
# @option opts [Integer] :number__lt Filter results where number is less than value
|
|
@@ -59,7 +59,7 @@ module PulpcoreClient
|
|
|
59
59
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
|
60
60
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
61
61
|
# @option opts [Array<String>] :ordering Ordering
|
|
62
|
-
# @option opts [DateTime] :pulp_created
|
|
62
|
+
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
|
63
63
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
64
64
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
|
65
65
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
|
@@ -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<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList 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: RepositoryVersionsApi.
|
|
73
|
+
@api_client.config.logger.debug 'Calling API: RepositoryVersionsApi.list ...'
|
|
74
74
|
end
|
|
75
|
-
allowable_values = ["-
|
|
75
|
+
allowable_values = ["-complete", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "info", "number", "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
|
|
@@ -129,7 +129,7 @@ module PulpcoreClient
|
|
|
129
129
|
|
|
130
130
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
131
131
|
if @api_client.config.debugging
|
|
132
|
-
@api_client.config.logger.debug "API called: RepositoryVersionsApi#
|
|
132
|
+
@api_client.config.logger.debug "API called: RepositoryVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
133
133
|
end
|
|
134
134
|
return data, status_code, headers
|
|
135
135
|
end
|
|
@@ -24,8 +24,8 @@ module PulpcoreClient
|
|
|
24
24
|
# @param role [Role]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [RoleResponse]
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
27
|
+
def create(role, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_with_http_info(role, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -34,13 +34,13 @@ module PulpcoreClient
|
|
|
34
34
|
# @param role [Role]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(RoleResponse, Integer, Hash)>] RoleResponse data, response status code and response headers
|
|
37
|
-
def
|
|
37
|
+
def create_with_http_info(role, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: RolesApi.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: RolesApi.create ...'
|
|
40
40
|
end
|
|
41
41
|
# verify the required parameter 'role' is set
|
|
42
42
|
if @api_client.config.client_side_validation && role.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'role' when calling RolesApi.
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'role' when calling RolesApi.create"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/pulp/api/v3/roles/'
|
|
@@ -78,7 +78,7 @@ module PulpcoreClient
|
|
|
78
78
|
|
|
79
79
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
80
80
|
if @api_client.config.debugging
|
|
81
|
-
@api_client.config.logger.debug "API called: RolesApi#
|
|
81
|
+
@api_client.config.logger.debug "API called: RolesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
82
|
end
|
|
83
83
|
return data, status_code, headers
|
|
84
84
|
end
|
|
@@ -88,8 +88,8 @@ module PulpcoreClient
|
|
|
88
88
|
# @param role_href [String]
|
|
89
89
|
# @param [Hash] opts the optional parameters
|
|
90
90
|
# @return [nil]
|
|
91
|
-
def
|
|
92
|
-
|
|
91
|
+
def delete(role_href, opts = {})
|
|
92
|
+
delete_with_http_info(role_href, opts)
|
|
93
93
|
nil
|
|
94
94
|
end
|
|
95
95
|
|
|
@@ -98,13 +98,13 @@ module PulpcoreClient
|
|
|
98
98
|
# @param role_href [String]
|
|
99
99
|
# @param [Hash] opts the optional parameters
|
|
100
100
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
101
|
-
def
|
|
101
|
+
def delete_with_http_info(role_href, opts = {})
|
|
102
102
|
if @api_client.config.debugging
|
|
103
|
-
@api_client.config.logger.debug 'Calling API: RolesApi.
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: RolesApi.delete ...'
|
|
104
104
|
end
|
|
105
105
|
# verify the required parameter 'role_href' is set
|
|
106
106
|
if @api_client.config.client_side_validation && role_href.nil?
|
|
107
|
-
fail ArgumentError, "Missing the required parameter 'role_href' when calling RolesApi.
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'role_href' when calling RolesApi.delete"
|
|
108
108
|
end
|
|
109
109
|
# resource path
|
|
110
110
|
local_var_path = '{role_href}'.sub('{' + 'role_href' + '}', CGI.escape(role_href.to_s).gsub('%2F', '/'))
|
|
@@ -138,7 +138,7 @@ module PulpcoreClient
|
|
|
138
138
|
|
|
139
139
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
140
140
|
if @api_client.config.debugging
|
|
141
|
-
@api_client.config.logger.debug "API called: RolesApi#
|
|
141
|
+
@api_client.config.logger.debug "API called: RolesApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
142
142
|
end
|
|
143
143
|
return data, status_code, headers
|
|
144
144
|
end
|
|
@@ -164,8 +164,8 @@ module PulpcoreClient
|
|
|
164
164
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
165
165
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
166
166
|
# @return [PaginatedRoleResponseList]
|
|
167
|
-
def
|
|
168
|
-
data, _status_code, _headers =
|
|
167
|
+
def list(opts = {})
|
|
168
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
169
169
|
data
|
|
170
170
|
end
|
|
171
171
|
|
|
@@ -190,11 +190,11 @@ module PulpcoreClient
|
|
|
190
190
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
191
191
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
192
192
|
# @return [Array<(PaginatedRoleResponseList, Integer, Hash)>] PaginatedRoleResponseList data, response status code and response headers
|
|
193
|
-
def
|
|
193
|
+
def list_with_http_info(opts = {})
|
|
194
194
|
if @api_client.config.debugging
|
|
195
|
-
@api_client.config.logger.debug 'Calling API: RolesApi.
|
|
195
|
+
@api_client.config.logger.debug 'Calling API: RolesApi.list ...'
|
|
196
196
|
end
|
|
197
|
-
allowable_values = ["-description", "-
|
|
197
|
+
allowable_values = ["-description", "-locked", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "description", "locked", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
|
|
198
198
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
199
199
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
200
200
|
end
|
|
@@ -249,7 +249,7 @@ module PulpcoreClient
|
|
|
249
249
|
|
|
250
250
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
251
251
|
if @api_client.config.debugging
|
|
252
|
-
@api_client.config.logger.debug "API called: RolesApi#
|
|
252
|
+
@api_client.config.logger.debug "API called: RolesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
253
253
|
end
|
|
254
254
|
return data, status_code, headers
|
|
255
255
|
end
|
|
@@ -260,8 +260,8 @@ module PulpcoreClient
|
|
|
260
260
|
# @param patched_role [PatchedRole]
|
|
261
261
|
# @param [Hash] opts the optional parameters
|
|
262
262
|
# @return [RoleResponse]
|
|
263
|
-
def
|
|
264
|
-
data, _status_code, _headers =
|
|
263
|
+
def partial_update(role_href, patched_role, opts = {})
|
|
264
|
+
data, _status_code, _headers = partial_update_with_http_info(role_href, patched_role, opts)
|
|
265
265
|
data
|
|
266
266
|
end
|
|
267
267
|
|
|
@@ -271,17 +271,17 @@ module PulpcoreClient
|
|
|
271
271
|
# @param patched_role [PatchedRole]
|
|
272
272
|
# @param [Hash] opts the optional parameters
|
|
273
273
|
# @return [Array<(RoleResponse, Integer, Hash)>] RoleResponse data, response status code and response headers
|
|
274
|
-
def
|
|
274
|
+
def partial_update_with_http_info(role_href, patched_role, opts = {})
|
|
275
275
|
if @api_client.config.debugging
|
|
276
|
-
@api_client.config.logger.debug 'Calling API: RolesApi.
|
|
276
|
+
@api_client.config.logger.debug 'Calling API: RolesApi.partial_update ...'
|
|
277
277
|
end
|
|
278
278
|
# verify the required parameter 'role_href' is set
|
|
279
279
|
if @api_client.config.client_side_validation && role_href.nil?
|
|
280
|
-
fail ArgumentError, "Missing the required parameter 'role_href' when calling RolesApi.
|
|
280
|
+
fail ArgumentError, "Missing the required parameter 'role_href' when calling RolesApi.partial_update"
|
|
281
281
|
end
|
|
282
282
|
# verify the required parameter 'patched_role' is set
|
|
283
283
|
if @api_client.config.client_side_validation && patched_role.nil?
|
|
284
|
-
fail ArgumentError, "Missing the required parameter 'patched_role' when calling RolesApi.
|
|
284
|
+
fail ArgumentError, "Missing the required parameter 'patched_role' when calling RolesApi.partial_update"
|
|
285
285
|
end
|
|
286
286
|
# resource path
|
|
287
287
|
local_var_path = '{role_href}'.sub('{' + 'role_href' + '}', CGI.escape(role_href.to_s).gsub('%2F', '/'))
|
|
@@ -319,7 +319,7 @@ module PulpcoreClient
|
|
|
319
319
|
|
|
320
320
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
321
321
|
if @api_client.config.debugging
|
|
322
|
-
@api_client.config.logger.debug "API called: RolesApi#
|
|
322
|
+
@api_client.config.logger.debug "API called: RolesApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
323
323
|
end
|
|
324
324
|
return data, status_code, headers
|
|
325
325
|
end
|
|
@@ -331,8 +331,8 @@ module PulpcoreClient
|
|
|
331
331
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
332
332
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
333
333
|
# @return [RoleResponse]
|
|
334
|
-
def
|
|
335
|
-
data, _status_code, _headers =
|
|
334
|
+
def read(role_href, opts = {})
|
|
335
|
+
data, _status_code, _headers = read_with_http_info(role_href, opts)
|
|
336
336
|
data
|
|
337
337
|
end
|
|
338
338
|
|
|
@@ -343,13 +343,13 @@ module PulpcoreClient
|
|
|
343
343
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
344
344
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
345
345
|
# @return [Array<(RoleResponse, Integer, Hash)>] RoleResponse data, response status code and response headers
|
|
346
|
-
def
|
|
346
|
+
def read_with_http_info(role_href, opts = {})
|
|
347
347
|
if @api_client.config.debugging
|
|
348
|
-
@api_client.config.logger.debug 'Calling API: RolesApi.
|
|
348
|
+
@api_client.config.logger.debug 'Calling API: RolesApi.read ...'
|
|
349
349
|
end
|
|
350
350
|
# verify the required parameter 'role_href' is set
|
|
351
351
|
if @api_client.config.client_side_validation && role_href.nil?
|
|
352
|
-
fail ArgumentError, "Missing the required parameter 'role_href' when calling RolesApi.
|
|
352
|
+
fail ArgumentError, "Missing the required parameter 'role_href' when calling RolesApi.read"
|
|
353
353
|
end
|
|
354
354
|
# resource path
|
|
355
355
|
local_var_path = '{role_href}'.sub('{' + 'role_href' + '}', CGI.escape(role_href.to_s).gsub('%2F', '/'))
|
|
@@ -387,7 +387,7 @@ module PulpcoreClient
|
|
|
387
387
|
|
|
388
388
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
389
389
|
if @api_client.config.debugging
|
|
390
|
-
@api_client.config.logger.debug "API called: RolesApi#
|
|
390
|
+
@api_client.config.logger.debug "API called: RolesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
391
391
|
end
|
|
392
392
|
return data, status_code, headers
|
|
393
393
|
end
|
|
@@ -398,8 +398,8 @@ module PulpcoreClient
|
|
|
398
398
|
# @param role [Role]
|
|
399
399
|
# @param [Hash] opts the optional parameters
|
|
400
400
|
# @return [RoleResponse]
|
|
401
|
-
def
|
|
402
|
-
data, _status_code, _headers =
|
|
401
|
+
def update(role_href, role, opts = {})
|
|
402
|
+
data, _status_code, _headers = update_with_http_info(role_href, role, opts)
|
|
403
403
|
data
|
|
404
404
|
end
|
|
405
405
|
|
|
@@ -409,17 +409,17 @@ module PulpcoreClient
|
|
|
409
409
|
# @param role [Role]
|
|
410
410
|
# @param [Hash] opts the optional parameters
|
|
411
411
|
# @return [Array<(RoleResponse, Integer, Hash)>] RoleResponse data, response status code and response headers
|
|
412
|
-
def
|
|
412
|
+
def update_with_http_info(role_href, role, opts = {})
|
|
413
413
|
if @api_client.config.debugging
|
|
414
|
-
@api_client.config.logger.debug 'Calling API: RolesApi.
|
|
414
|
+
@api_client.config.logger.debug 'Calling API: RolesApi.update ...'
|
|
415
415
|
end
|
|
416
416
|
# verify the required parameter 'role_href' is set
|
|
417
417
|
if @api_client.config.client_side_validation && role_href.nil?
|
|
418
|
-
fail ArgumentError, "Missing the required parameter 'role_href' when calling RolesApi.
|
|
418
|
+
fail ArgumentError, "Missing the required parameter 'role_href' when calling RolesApi.update"
|
|
419
419
|
end
|
|
420
420
|
# verify the required parameter 'role' is set
|
|
421
421
|
if @api_client.config.client_side_validation && role.nil?
|
|
422
|
-
fail ArgumentError, "Missing the required parameter 'role' when calling RolesApi.
|
|
422
|
+
fail ArgumentError, "Missing the required parameter 'role' when calling RolesApi.update"
|
|
423
423
|
end
|
|
424
424
|
# resource path
|
|
425
425
|
local_var_path = '{role_href}'.sub('{' + 'role_href' + '}', CGI.escape(role_href.to_s).gsub('%2F', '/'))
|
|
@@ -457,7 +457,7 @@ module PulpcoreClient
|
|
|
457
457
|
|
|
458
458
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
459
459
|
if @api_client.config.debugging
|
|
460
|
-
@api_client.config.logger.debug "API called: RolesApi#
|
|
460
|
+
@api_client.config.logger.debug "API called: RolesApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
461
461
|
end
|
|
462
462
|
return data, status_code, headers
|
|
463
463
|
end
|
|
@@ -23,13 +23,14 @@ module PulpcoreClient
|
|
|
23
23
|
# A ViewSet that supports browsing of existing signing services.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
26
|
-
# @option opts [String] :name
|
|
26
|
+
# @option opts [String] :name Filter results where name matches value
|
|
27
27
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
28
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
28
29
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
29
30
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
30
31
|
# @return [PaginatedSigningServiceResponseList]
|
|
31
|
-
def
|
|
32
|
-
data, _status_code, _headers =
|
|
32
|
+
def list(opts = {})
|
|
33
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
33
34
|
data
|
|
34
35
|
end
|
|
35
36
|
|
|
@@ -37,14 +38,19 @@ module PulpcoreClient
|
|
|
37
38
|
# A ViewSet that supports browsing of existing signing services.
|
|
38
39
|
# @param [Hash] opts the optional parameters
|
|
39
40
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
40
|
-
# @option opts [String] :name
|
|
41
|
+
# @option opts [String] :name Filter results where name matches value
|
|
41
42
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
43
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
42
44
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
43
45
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
44
46
|
# @return [Array<(PaginatedSigningServiceResponseList, Integer, Hash)>] PaginatedSigningServiceResponseList data, response status code and response headers
|
|
45
|
-
def
|
|
47
|
+
def list_with_http_info(opts = {})
|
|
46
48
|
if @api_client.config.debugging
|
|
47
|
-
@api_client.config.logger.debug 'Calling API: SigningServicesApi.
|
|
49
|
+
@api_client.config.logger.debug 'Calling API: SigningServicesApi.list ...'
|
|
50
|
+
end
|
|
51
|
+
allowable_values = ["-name", "-pk", "-pubkey_fingerprint", "-public_key", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-script", "name", "pk", "pubkey_fingerprint", "public_key", "pulp_created", "pulp_id", "pulp_last_updated", "script"]
|
|
52
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
53
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
48
54
|
end
|
|
49
55
|
# resource path
|
|
50
56
|
local_var_path = '/pulp/api/v3/signing-services/'
|
|
@@ -54,6 +60,7 @@ module PulpcoreClient
|
|
|
54
60
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
55
61
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
56
62
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
63
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
57
64
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
58
65
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
59
66
|
|
|
@@ -85,7 +92,7 @@ module PulpcoreClient
|
|
|
85
92
|
|
|
86
93
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
87
94
|
if @api_client.config.debugging
|
|
88
|
-
@api_client.config.logger.debug "API called: SigningServicesApi#
|
|
95
|
+
@api_client.config.logger.debug "API called: SigningServicesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
89
96
|
end
|
|
90
97
|
return data, status_code, headers
|
|
91
98
|
end
|
|
@@ -97,8 +104,8 @@ module PulpcoreClient
|
|
|
97
104
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
98
105
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
99
106
|
# @return [SigningServiceResponse]
|
|
100
|
-
def
|
|
101
|
-
data, _status_code, _headers =
|
|
107
|
+
def read(signing_service_href, opts = {})
|
|
108
|
+
data, _status_code, _headers = read_with_http_info(signing_service_href, opts)
|
|
102
109
|
data
|
|
103
110
|
end
|
|
104
111
|
|
|
@@ -109,13 +116,13 @@ module PulpcoreClient
|
|
|
109
116
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
110
117
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
111
118
|
# @return [Array<(SigningServiceResponse, Integer, Hash)>] SigningServiceResponse data, response status code and response headers
|
|
112
|
-
def
|
|
119
|
+
def read_with_http_info(signing_service_href, opts = {})
|
|
113
120
|
if @api_client.config.debugging
|
|
114
|
-
@api_client.config.logger.debug 'Calling API: SigningServicesApi.
|
|
121
|
+
@api_client.config.logger.debug 'Calling API: SigningServicesApi.read ...'
|
|
115
122
|
end
|
|
116
123
|
# verify the required parameter 'signing_service_href' is set
|
|
117
124
|
if @api_client.config.client_side_validation && signing_service_href.nil?
|
|
118
|
-
fail ArgumentError, "Missing the required parameter 'signing_service_href' when calling SigningServicesApi.
|
|
125
|
+
fail ArgumentError, "Missing the required parameter 'signing_service_href' when calling SigningServicesApi.read"
|
|
119
126
|
end
|
|
120
127
|
# resource path
|
|
121
128
|
local_var_path = '{signing_service_href}'.sub('{' + 'signing_service_href' + '}', CGI.escape(signing_service_href.to_s).gsub('%2F', '/'))
|
|
@@ -153,7 +160,7 @@ module PulpcoreClient
|
|
|
153
160
|
|
|
154
161
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
155
162
|
if @api_client.config.debugging
|
|
156
|
-
@api_client.config.logger.debug "API called: SigningServicesApi#
|
|
163
|
+
@api_client.config.logger.debug "API called: SigningServicesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
157
164
|
end
|
|
158
165
|
return data, status_code, headers
|
|
159
166
|
end
|
|
@@ -24,12 +24,11 @@ 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 [Array<String>] :ordering Ordering
|
|
28
27
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
29
28
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
30
29
|
# @return [PaginatedTaskGroupResponseList]
|
|
31
|
-
def
|
|
32
|
-
data, _status_code, _headers =
|
|
30
|
+
def list(opts = {})
|
|
31
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
33
32
|
data
|
|
34
33
|
end
|
|
35
34
|
|
|
@@ -38,17 +37,12 @@ module PulpcoreClient
|
|
|
38
37
|
# @param [Hash] opts the optional parameters
|
|
39
38
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
40
39
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
41
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
42
40
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
43
41
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
44
42
|
# @return [Array<(PaginatedTaskGroupResponseList, Integer, Hash)>] PaginatedTaskGroupResponseList data, response status code and response headers
|
|
45
|
-
def
|
|
43
|
+
def list_with_http_info(opts = {})
|
|
46
44
|
if @api_client.config.debugging
|
|
47
|
-
@api_client.config.logger.debug 'Calling API: TaskGroupsApi.
|
|
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}"
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: TaskGroupsApi.list ...'
|
|
52
46
|
end
|
|
53
47
|
# resource path
|
|
54
48
|
local_var_path = '/pulp/api/v3/task-groups/'
|
|
@@ -57,7 +51,6 @@ module PulpcoreClient
|
|
|
57
51
|
query_params = opts[:query_params] || {}
|
|
58
52
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
59
53
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
60
|
-
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
61
54
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
62
55
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
63
56
|
|
|
@@ -89,7 +82,7 @@ module PulpcoreClient
|
|
|
89
82
|
|
|
90
83
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
91
84
|
if @api_client.config.debugging
|
|
92
|
-
@api_client.config.logger.debug "API called: TaskGroupsApi#
|
|
85
|
+
@api_client.config.logger.debug "API called: TaskGroupsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
93
86
|
end
|
|
94
87
|
return data, status_code, headers
|
|
95
88
|
end
|
|
@@ -101,8 +94,8 @@ module PulpcoreClient
|
|
|
101
94
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
102
95
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
103
96
|
# @return [TaskGroupResponse]
|
|
104
|
-
def
|
|
105
|
-
data, _status_code, _headers =
|
|
97
|
+
def read(task_group_href, opts = {})
|
|
98
|
+
data, _status_code, _headers = read_with_http_info(task_group_href, opts)
|
|
106
99
|
data
|
|
107
100
|
end
|
|
108
101
|
|
|
@@ -113,13 +106,13 @@ module PulpcoreClient
|
|
|
113
106
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
114
107
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
115
108
|
# @return [Array<(TaskGroupResponse, Integer, Hash)>] TaskGroupResponse data, response status code and response headers
|
|
116
|
-
def
|
|
109
|
+
def read_with_http_info(task_group_href, opts = {})
|
|
117
110
|
if @api_client.config.debugging
|
|
118
|
-
@api_client.config.logger.debug 'Calling API: TaskGroupsApi.
|
|
111
|
+
@api_client.config.logger.debug 'Calling API: TaskGroupsApi.read ...'
|
|
119
112
|
end
|
|
120
113
|
# verify the required parameter 'task_group_href' is set
|
|
121
114
|
if @api_client.config.client_side_validation && task_group_href.nil?
|
|
122
|
-
fail ArgumentError, "Missing the required parameter 'task_group_href' when calling TaskGroupsApi.
|
|
115
|
+
fail ArgumentError, "Missing the required parameter 'task_group_href' when calling TaskGroupsApi.read"
|
|
123
116
|
end
|
|
124
117
|
# resource path
|
|
125
118
|
local_var_path = '{task_group_href}'.sub('{' + 'task_group_href' + '}', CGI.escape(task_group_href.to_s).gsub('%2F', '/'))
|
|
@@ -157,7 +150,7 @@ module PulpcoreClient
|
|
|
157
150
|
|
|
158
151
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
159
152
|
if @api_client.config.debugging
|
|
160
|
-
@api_client.config.logger.debug "API called: TaskGroupsApi#
|
|
153
|
+
@api_client.config.logger.debug "API called: TaskGroupsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
161
154
|
end
|
|
162
155
|
return data, status_code, headers
|
|
163
156
|
end
|