pulp_container_client 2.14.14 → 2.14.16
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 +222 -246
- data/docs/AccessPoliciesApi.md +28 -32
- data/docs/ArtifactDistributionResponse.md +7 -7
- data/docs/ArtifactsApi.md +23 -27
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +8 -8
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +1 -1
- data/docs/ContainerContainerRepository.md +1 -1
- data/docs/ContainerContainerRepositoryResponse.md +1 -1
- data/docs/ContentApi.md +8 -14
- data/docs/ContentBlobsApi.md +13 -17
- data/docs/ContentManifestsApi.md +15 -19
- data/docs/ContentSignaturesApi.md +13 -17
- data/docs/ContentTagsApi.md +15 -19
- data/docs/ContentguardsApi.md +8 -14
- data/docs/ContentguardsContentRedirectApi.md +53 -57
- data/docs/ContentguardsRbacApi.md +53 -57
- data/docs/DistributionsApi.md +8 -18
- data/docs/DistributionsArtifactsApi.md +13 -21
- data/docs/DistributionsContainerApi.md +53 -61
- data/docs/DocsApiJsonApi.md +6 -6
- data/docs/DocsApiYamlApi.md +6 -6
- data/docs/ExportersFilesystemApi.md +36 -40
- data/docs/ExportersFilesystemExportsApi.md +24 -24
- data/docs/ExportersPulpApi.md +33 -37
- data/docs/ExportersPulpExportsApi.md +21 -21
- data/docs/FilesystemExporter.md +1 -1
- data/docs/FilesystemExporterResponse.md +1 -1
- data/docs/GroupRole.md +1 -3
- data/docs/GroupRoleResponse.md +1 -3
- data/docs/GroupsApi.md +59 -63
- data/docs/GroupsRolesApi.md +27 -33
- data/docs/GroupsUsersApi.md +16 -16
- data/docs/ImportersPulpApi.md +33 -37
- 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/PatchedFilesystemExporter.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/docs/PatchedcontainerContainerRemote.md +1 -1
- data/docs/PatchedcontainerContainerRepository.md +1 -1
- data/docs/PublicationsApi.md +9 -15
- data/docs/PulpContainerNamespacesApi.md +43 -47
- data/docs/RemoteResponse.md +1 -1
- data/docs/RemoteResponseHiddenFields.md +2 -2
- data/docs/RemotesApi.md +8 -14
- data/docs/RemotesContainerApi.md +53 -57
- data/docs/RepairApi.md +6 -6
- data/docs/RepositoriesApi.md +8 -30
- data/docs/RepositoriesContainerApi.md +102 -122
- data/docs/RepositoriesContainerPushApi.md +68 -88
- data/docs/RepositoriesContainerPushVersionsApi.md +23 -25
- data/docs/RepositoriesContainerVersionsApi.md +23 -25
- data/docs/RepositoriesReclaimSpaceApi.md +6 -6
- data/docs/RepositoryResponse.md +1 -1
- data/docs/RepositoryVersionsApi.md +8 -12
- data/docs/RolesApi.md +39 -43
- data/docs/SigningServicesApi.md +13 -17
- data/docs/StatusApi.md +1 -1
- data/docs/StatusResponse.md +1 -3
- data/docs/TaskGroupsApi.md +11 -11
- data/docs/TaskSchedulesApi.md +35 -39
- data/docs/TasksApi.md +101 -105
- data/docs/TokenApi.md +6 -6
- data/docs/UploadsApi.md +53 -57
- data/docs/UserRole.md +2 -4
- data/docs/UserRoleResponse.md +2 -4
- data/docs/UsersApi.md +39 -43
- data/docs/UsersRolesApi.md +27 -33
- data/docs/VersionResponse.md +1 -3
- data/docs/WorkersApi.md +13 -17
- data/lib/pulp_container_client/api/access_policies_api.rb +33 -39
- data/lib/pulp_container_client/api/artifacts_api.rb +31 -37
- data/lib/pulp_container_client/api/content_api.rb +7 -20
- data/lib/pulp_container_client/api/content_blobs_api.rb +13 -19
- data/lib/pulp_container_client/api/content_manifests_api.rb +15 -21
- data/lib/pulp_container_client/api/content_signatures_api.rb +13 -19
- data/lib/pulp_container_client/api/content_tags_api.rb +15 -21
- data/lib/pulp_container_client/api/contentguards_api.rb +7 -20
- data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +65 -71
- data/lib/pulp_container_client/api/contentguards_rbac_api.rb +65 -71
- data/lib/pulp_container_client/api/distributions_api.rb +7 -26
- data/lib/pulp_container_client/api/distributions_artifacts_api.rb +13 -25
- data/lib/pulp_container_client/api/distributions_container_api.rb +65 -77
- data/lib/pulp_container_client/api/docs_api_json_api.rb +5 -5
- data/lib/pulp_container_client/api/docs_api_yaml_api.rb +5 -5
- data/lib/pulp_container_client/api/exporters_filesystem_api.rb +45 -51
- data/lib/pulp_container_client/api/exporters_filesystem_exports_api.rb +31 -31
- data/lib/pulp_container_client/api/exporters_pulp_api.rb +39 -45
- data/lib/pulp_container_client/api/exporters_pulp_exports_api.rb +25 -25
- data/lib/pulp_container_client/api/groups_api.rb +77 -83
- data/lib/pulp_container_client/api/groups_roles_api.rb +35 -44
- data/lib/pulp_container_client/api/groups_users_api.rb +19 -19
- data/lib/pulp_container_client/api/importers_pulp_api.rb +39 -45
- data/lib/pulp_container_client/api/importers_pulp_imports_api.rb +25 -25
- data/lib/pulp_container_client/api/orphans_api.rb +5 -5
- data/lib/pulp_container_client/api/orphans_cleanup_api.rb +6 -6
- data/lib/pulp_container_client/api/publications_api.rb +9 -18
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +51 -57
- data/lib/pulp_container_client/api/remotes_api.rb +7 -20
- data/lib/pulp_container_client/api/remotes_container_api.rb +65 -71
- data/lib/pulp_container_client/api/repair_api.rb +6 -6
- data/lib/pulp_container_client/api/repositories_api.rb +7 -44
- data/lib/pulp_container_client/api/repositories_container_api.rb +128 -158
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +88 -118
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +27 -30
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +27 -30
- data/lib/pulp_container_client/api/repositories_reclaim_space_api.rb +6 -6
- data/lib/pulp_container_client/api/repository_versions_api.rb +7 -12
- data/lib/pulp_container_client/api/roles_api.rb +51 -57
- data/lib/pulp_container_client/api/signing_services_api.rb +13 -19
- data/lib/pulp_container_client/api/task_groups_api.rb +11 -11
- data/lib/pulp_container_client/api/task_schedules_api.rb +43 -49
- data/lib/pulp_container_client/api/tasks_api.rb +125 -131
- data/lib/pulp_container_client/api/token_api.rb +5 -5
- data/lib/pulp_container_client/api/uploads_api.rb +67 -73
- data/lib/pulp_container_client/api/users_api.rb +51 -57
- data/lib/pulp_container_client/api/users_roles_api.rb +35 -44
- data/lib/pulp_container_client/api/workers_api.rb +14 -20
- data/lib/pulp_container_client/configuration.rb +3 -3
- data/lib/pulp_container_client/models/artifact_distribution_response.rb +35 -35
- data/lib/pulp_container_client/models/container_container_distribution.rb +45 -45
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +39 -39
- data/lib/pulp_container_client/models/container_container_push_repository.rb +37 -37
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +33 -33
- data/lib/pulp_container_client/models/container_container_remote.rb +21 -21
- data/lib/pulp_container_client/models/container_container_remote_response.rb +21 -21
- data/lib/pulp_container_client/models/container_container_repository.rb +1 -1
- data/lib/pulp_container_client/models/container_container_repository_response.rb +1 -1
- data/lib/pulp_container_client/models/filesystem_exporter.rb +1 -1
- data/lib/pulp_container_client/models/filesystem_exporter_response.rb +1 -1
- data/lib/pulp_container_client/models/group_role.rb +5 -16
- data/lib/pulp_container_client/models/group_role_response.rb +4 -15
- data/lib/pulp_container_client/models/nested_role.rb +0 -19
- data/lib/pulp_container_client/models/patched_filesystem_exporter.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +36 -36
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +37 -37
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +21 -21
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +1 -1
- data/lib/pulp_container_client/models/remote_response.rb +21 -21
- data/lib/pulp_container_client/models/remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_container_client/models/repository_response.rb +1 -1
- data/lib/pulp_container_client/models/status_response.rb +4 -19
- data/lib/pulp_container_client/models/user_role.rb +6 -17
- data/lib/pulp_container_client/models/user_role_response.rb +5 -16
- data/lib/pulp_container_client/models/version_response.rb +4 -19
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +0 -11
- data/spec/api/access_policies_api_spec.rb +11 -13
- data/spec/api/artifacts_api_spec.rb +9 -11
- data/spec/api/content_api_spec.rb +3 -6
- data/spec/api/content_blobs_api_spec.rb +5 -7
- data/spec/api/content_manifests_api_spec.rb +6 -8
- data/spec/api/content_signatures_api_spec.rb +5 -7
- data/spec/api/content_tags_api_spec.rb +6 -8
- data/spec/api/contentguards_api_spec.rb +3 -6
- data/spec/api/contentguards_content_redirect_api_spec.rb +21 -23
- data/spec/api/contentguards_rbac_api_spec.rb +21 -23
- data/spec/api/distributions_api_spec.rb +3 -8
- data/spec/api/distributions_artifacts_api_spec.rb +5 -9
- data/spec/api/distributions_container_api_spec.rb +21 -25
- data/spec/api/docs_api_json_api_spec.rb +2 -2
- data/spec/api/docs_api_yaml_api_spec.rb +2 -2
- data/spec/api/exporters_filesystem_api_spec.rb +16 -18
- data/spec/api/exporters_filesystem_exports_api_spec.rb +11 -11
- data/spec/api/exporters_pulp_api_spec.rb +13 -15
- data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
- data/spec/api/groups_api_spec.rb +27 -29
- data/spec/api/groups_roles_api_spec.rb +13 -16
- data/spec/api/groups_users_api_spec.rb +6 -6
- data/spec/api/importers_pulp_api_spec.rb +13 -15
- 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 +4 -7
- data/spec/api/pulp_container_namespaces_api_spec.rb +17 -19
- data/spec/api/remotes_api_spec.rb +3 -6
- data/spec/api/remotes_container_api_spec.rb +21 -23
- data/spec/api/repair_api_spec.rb +2 -2
- data/spec/api/repositories_api_spec.rb +3 -14
- data/spec/api/repositories_container_api_spec.rb +39 -49
- data/spec/api/repositories_container_push_api_spec.rb +27 -37
- data/spec/api/repositories_container_push_versions_api_spec.rb +9 -10
- data/spec/api/repositories_container_versions_api_spec.rb +9 -10
- data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
- data/spec/api/repository_versions_api_spec.rb +3 -5
- data/spec/api/roles_api_spec.rb +19 -21
- data/spec/api/signing_services_api_spec.rb +5 -7
- data/spec/api/task_groups_api_spec.rb +4 -4
- data/spec/api/task_schedules_api_spec.rb +15 -17
- data/spec/api/tasks_api_spec.rb +32 -34
- data/spec/api/token_api_spec.rb +2 -2
- data/spec/api/uploads_api_spec.rb +21 -23
- data/spec/api/users_api_spec.rb +19 -21
- data/spec/api/users_roles_api_spec.rb +13 -16
- data/spec/api/workers_api_spec.rb +5 -7
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +6 -6
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/group_role_response_spec.rb +0 -6
- data/spec/models/group_role_spec.rb +0 -6
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- data/spec/models/status_response_spec.rb +0 -6
- data/spec/models/user_role_response_spec.rb +0 -6
- data/spec/models/user_role_spec.rb +0 -6
- data/spec/models/version_response_spec.rb +0 -6
- metadata +196 -240
- data/docs/Domain.md +0 -27
- data/docs/DomainResponse.md +0 -31
- data/docs/DomainsApi.md +0 -366
- data/docs/PaginatedDomainResponseList.md +0 -23
- data/docs/PaginatedUpstreamPulpResponseList.md +0 -23
- data/docs/PatchedDomain.md +0 -27
- data/docs/PatchedUpstreamPulp.md +0 -37
- data/docs/StorageClassEnum.md +0 -16
- data/docs/UpstreamPulp.md +0 -37
- data/docs/UpstreamPulpResponse.md +0 -39
- data/docs/UpstreamPulpsApi.md +0 -405
- data/lib/pulp_container_client/api/domains_api.rb +0 -452
- data/lib/pulp_container_client/api/upstream_pulps_api.rb +0 -492
- data/lib/pulp_container_client/models/domain.rb +0 -323
- data/lib/pulp_container_client/models/domain_response.rb +0 -318
- data/lib/pulp_container_client/models/paginated_domain_response_list.rb +0 -237
- data/lib/pulp_container_client/models/paginated_upstream_pulp_response_list.rb +0 -237
- data/lib/pulp_container_client/models/patched_domain.rb +0 -304
- data/lib/pulp_container_client/models/patched_upstream_pulp.rb +0 -450
- data/lib/pulp_container_client/models/storage_class_enum.rb +0 -37
- data/lib/pulp_container_client/models/upstream_pulp.rb +0 -477
- data/lib/pulp_container_client/models/upstream_pulp_response.rb +0 -338
- data/spec/api/domains_api_spec.rb +0 -122
- data/spec/api/upstream_pulps_api_spec.rb +0 -127
- data/spec/models/domain_response_spec.rb +0 -83
- data/spec/models/domain_spec.rb +0 -71
- data/spec/models/paginated_domain_response_list_spec.rb +0 -59
- data/spec/models/paginated_upstream_pulp_response_list_spec.rb +0 -59
- data/spec/models/patched_domain_spec.rb +0 -71
- data/spec/models/patched_upstream_pulp_spec.rb +0 -101
- data/spec/models/storage_class_enum_spec.rb +0 -35
- data/spec/models/upstream_pulp_response_spec.rb +0 -107
- data/spec/models/upstream_pulp_spec.rb +0 -101
|
@@ -20,27 +20,27 @@ module PulpContainerClient
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# Create an user
|
|
23
|
-
# ViewSet for User.
|
|
23
|
+
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
24
24
|
# @param user [User]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [UserResponse]
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
27
|
+
def users_create(user, opts = {})
|
|
28
|
+
data, _status_code, _headers = users_create_with_http_info(user, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Create an user
|
|
33
|
-
# ViewSet for User.
|
|
33
|
+
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
34
34
|
# @param user [User]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
|
|
37
|
-
def
|
|
37
|
+
def users_create_with_http_info(user, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.users_create ...'
|
|
40
40
|
end
|
|
41
41
|
# verify the required parameter 'user' is set
|
|
42
42
|
if @api_client.config.client_side_validation && user.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.users_create"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/pulp/api/v3/users/'
|
|
@@ -78,33 +78,33 @@ module PulpContainerClient
|
|
|
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: UsersApi#
|
|
81
|
+
@api_client.config.logger.debug "API called: UsersApi#users_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
82
|
end
|
|
83
83
|
return data, status_code, headers
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
# Delete an user
|
|
87
|
-
# ViewSet for User.
|
|
87
|
+
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
88
88
|
# @param auth_user_href [String]
|
|
89
89
|
# @param [Hash] opts the optional parameters
|
|
90
90
|
# @return [nil]
|
|
91
|
-
def
|
|
92
|
-
|
|
91
|
+
def users_delete(auth_user_href, opts = {})
|
|
92
|
+
users_delete_with_http_info(auth_user_href, opts)
|
|
93
93
|
nil
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
# Delete an user
|
|
97
|
-
# ViewSet for User.
|
|
97
|
+
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
98
98
|
# @param auth_user_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 users_delete_with_http_info(auth_user_href, opts = {})
|
|
102
102
|
if @api_client.config.debugging
|
|
103
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.users_delete ...'
|
|
104
104
|
end
|
|
105
105
|
# verify the required parameter 'auth_user_href' is set
|
|
106
106
|
if @api_client.config.client_side_validation && auth_user_href.nil?
|
|
107
|
-
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.users_delete"
|
|
108
108
|
end
|
|
109
109
|
# resource path
|
|
110
110
|
local_var_path = '{auth_user_href}'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_href.to_s).gsub('%2F', '/'))
|
|
@@ -138,13 +138,13 @@ module PulpContainerClient
|
|
|
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: UsersApi#
|
|
141
|
+
@api_client.config.logger.debug "API called: UsersApi#users_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
142
142
|
end
|
|
143
143
|
return data, status_code, headers
|
|
144
144
|
end
|
|
145
145
|
|
|
146
146
|
# List users
|
|
147
|
-
# ViewSet for User.
|
|
147
|
+
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
148
148
|
# @param [Hash] opts the optional parameters
|
|
149
149
|
# @option opts [String] :email Filter results where email matches value
|
|
150
150
|
# @option opts [String] :email__contains Filter results where email contains value
|
|
@@ -165,9 +165,7 @@ module PulpContainerClient
|
|
|
165
165
|
# @option opts [Array<String>] :last_name__in Filter results where last_name is in a comma-separated list of values
|
|
166
166
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
167
167
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
168
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
169
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
170
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
168
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
171
169
|
# @option opts [String] :username Filter results where username matches value
|
|
172
170
|
# @option opts [String] :username__contains Filter results where username contains value
|
|
173
171
|
# @option opts [String] :username__icontains Filter results where username contains value
|
|
@@ -176,13 +174,13 @@ module PulpContainerClient
|
|
|
176
174
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
177
175
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
178
176
|
# @return [PaginatedUserResponseList]
|
|
179
|
-
def
|
|
180
|
-
data, _status_code, _headers =
|
|
177
|
+
def users_list(opts = {})
|
|
178
|
+
data, _status_code, _headers = users_list_with_http_info(opts)
|
|
181
179
|
data
|
|
182
180
|
end
|
|
183
181
|
|
|
184
182
|
# List users
|
|
185
|
-
# ViewSet for User.
|
|
183
|
+
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
186
184
|
# @param [Hash] opts the optional parameters
|
|
187
185
|
# @option opts [String] :email Filter results where email matches value
|
|
188
186
|
# @option opts [String] :email__contains Filter results where email contains value
|
|
@@ -203,9 +201,7 @@ module PulpContainerClient
|
|
|
203
201
|
# @option opts [Array<String>] :last_name__in Filter results where last_name is in a comma-separated list of values
|
|
204
202
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
205
203
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
206
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
207
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
208
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
204
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
209
205
|
# @option opts [String] :username Filter results where username matches value
|
|
210
206
|
# @option opts [String] :username__contains Filter results where username contains value
|
|
211
207
|
# @option opts [String] :username__icontains Filter results where username contains value
|
|
@@ -214,9 +210,9 @@ module PulpContainerClient
|
|
|
214
210
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
215
211
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
216
212
|
# @return [Array<(PaginatedUserResponseList, Integer, Hash)>] PaginatedUserResponseList data, response status code and response headers
|
|
217
|
-
def
|
|
213
|
+
def users_list_with_http_info(opts = {})
|
|
218
214
|
if @api_client.config.debugging
|
|
219
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
215
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.users_list ...'
|
|
220
216
|
end
|
|
221
217
|
allowable_values = ["-date_joined", "-email", "-first_name", "-id", "-is_active", "-is_staff", "-is_superuser", "-last_login", "-last_name", "-password", "-pk", "-username", "date_joined", "email", "first_name", "id", "is_active", "is_staff", "is_superuser", "last_login", "last_name", "password", "pk", "username"]
|
|
222
218
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
@@ -247,8 +243,6 @@ module PulpContainerClient
|
|
|
247
243
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
248
244
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
249
245
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
250
|
-
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
|
251
|
-
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
252
246
|
query_params[:'username'] = opts[:'username'] if !opts[:'username'].nil?
|
|
253
247
|
query_params[:'username__contains'] = opts[:'username__contains'] if !opts[:'username__contains'].nil?
|
|
254
248
|
query_params[:'username__icontains'] = opts[:'username__icontains'] if !opts[:'username__icontains'].nil?
|
|
@@ -285,39 +279,39 @@ module PulpContainerClient
|
|
|
285
279
|
|
|
286
280
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
287
281
|
if @api_client.config.debugging
|
|
288
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
|
282
|
+
@api_client.config.logger.debug "API called: UsersApi#users_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
289
283
|
end
|
|
290
284
|
return data, status_code, headers
|
|
291
285
|
end
|
|
292
286
|
|
|
293
287
|
# Update an user
|
|
294
|
-
# ViewSet for User.
|
|
288
|
+
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
295
289
|
# @param auth_user_href [String]
|
|
296
290
|
# @param patched_user [PatchedUser]
|
|
297
291
|
# @param [Hash] opts the optional parameters
|
|
298
292
|
# @return [UserResponse]
|
|
299
|
-
def
|
|
300
|
-
data, _status_code, _headers =
|
|
293
|
+
def users_partial_update(auth_user_href, patched_user, opts = {})
|
|
294
|
+
data, _status_code, _headers = users_partial_update_with_http_info(auth_user_href, patched_user, opts)
|
|
301
295
|
data
|
|
302
296
|
end
|
|
303
297
|
|
|
304
298
|
# Update an user
|
|
305
|
-
# ViewSet for User.
|
|
299
|
+
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
306
300
|
# @param auth_user_href [String]
|
|
307
301
|
# @param patched_user [PatchedUser]
|
|
308
302
|
# @param [Hash] opts the optional parameters
|
|
309
303
|
# @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
|
|
310
|
-
def
|
|
304
|
+
def users_partial_update_with_http_info(auth_user_href, patched_user, opts = {})
|
|
311
305
|
if @api_client.config.debugging
|
|
312
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
306
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.users_partial_update ...'
|
|
313
307
|
end
|
|
314
308
|
# verify the required parameter 'auth_user_href' is set
|
|
315
309
|
if @api_client.config.client_side_validation && auth_user_href.nil?
|
|
316
|
-
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.
|
|
310
|
+
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.users_partial_update"
|
|
317
311
|
end
|
|
318
312
|
# verify the required parameter 'patched_user' is set
|
|
319
313
|
if @api_client.config.client_side_validation && patched_user.nil?
|
|
320
|
-
fail ArgumentError, "Missing the required parameter 'patched_user' when calling UsersApi.
|
|
314
|
+
fail ArgumentError, "Missing the required parameter 'patched_user' when calling UsersApi.users_partial_update"
|
|
321
315
|
end
|
|
322
316
|
# resource path
|
|
323
317
|
local_var_path = '{auth_user_href}'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_href.to_s).gsub('%2F', '/'))
|
|
@@ -355,37 +349,37 @@ module PulpContainerClient
|
|
|
355
349
|
|
|
356
350
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
357
351
|
if @api_client.config.debugging
|
|
358
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
|
352
|
+
@api_client.config.logger.debug "API called: UsersApi#users_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
359
353
|
end
|
|
360
354
|
return data, status_code, headers
|
|
361
355
|
end
|
|
362
356
|
|
|
363
357
|
# Inspect an user
|
|
364
|
-
# ViewSet for User.
|
|
358
|
+
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
365
359
|
# @param auth_user_href [String]
|
|
366
360
|
# @param [Hash] opts the optional parameters
|
|
367
361
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
368
362
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
369
363
|
# @return [UserResponse]
|
|
370
|
-
def
|
|
371
|
-
data, _status_code, _headers =
|
|
364
|
+
def users_read(auth_user_href, opts = {})
|
|
365
|
+
data, _status_code, _headers = users_read_with_http_info(auth_user_href, opts)
|
|
372
366
|
data
|
|
373
367
|
end
|
|
374
368
|
|
|
375
369
|
# Inspect an user
|
|
376
|
-
# ViewSet for User.
|
|
370
|
+
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
377
371
|
# @param auth_user_href [String]
|
|
378
372
|
# @param [Hash] opts the optional parameters
|
|
379
373
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
380
374
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
381
375
|
# @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
|
|
382
|
-
def
|
|
376
|
+
def users_read_with_http_info(auth_user_href, opts = {})
|
|
383
377
|
if @api_client.config.debugging
|
|
384
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
378
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.users_read ...'
|
|
385
379
|
end
|
|
386
380
|
# verify the required parameter 'auth_user_href' is set
|
|
387
381
|
if @api_client.config.client_side_validation && auth_user_href.nil?
|
|
388
|
-
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.
|
|
382
|
+
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.users_read"
|
|
389
383
|
end
|
|
390
384
|
# resource path
|
|
391
385
|
local_var_path = '{auth_user_href}'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_href.to_s).gsub('%2F', '/'))
|
|
@@ -423,39 +417,39 @@ module PulpContainerClient
|
|
|
423
417
|
|
|
424
418
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
425
419
|
if @api_client.config.debugging
|
|
426
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
|
420
|
+
@api_client.config.logger.debug "API called: UsersApi#users_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
427
421
|
end
|
|
428
422
|
return data, status_code, headers
|
|
429
423
|
end
|
|
430
424
|
|
|
431
425
|
# Update an user
|
|
432
|
-
# ViewSet for User.
|
|
426
|
+
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
433
427
|
# @param auth_user_href [String]
|
|
434
428
|
# @param user [User]
|
|
435
429
|
# @param [Hash] opts the optional parameters
|
|
436
430
|
# @return [UserResponse]
|
|
437
|
-
def
|
|
438
|
-
data, _status_code, _headers =
|
|
431
|
+
def users_update(auth_user_href, user, opts = {})
|
|
432
|
+
data, _status_code, _headers = users_update_with_http_info(auth_user_href, user, opts)
|
|
439
433
|
data
|
|
440
434
|
end
|
|
441
435
|
|
|
442
436
|
# Update an user
|
|
443
|
-
# ViewSet for User.
|
|
437
|
+
# ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
444
438
|
# @param auth_user_href [String]
|
|
445
439
|
# @param user [User]
|
|
446
440
|
# @param [Hash] opts the optional parameters
|
|
447
441
|
# @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
|
|
448
|
-
def
|
|
442
|
+
def users_update_with_http_info(auth_user_href, user, opts = {})
|
|
449
443
|
if @api_client.config.debugging
|
|
450
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
444
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.users_update ...'
|
|
451
445
|
end
|
|
452
446
|
# verify the required parameter 'auth_user_href' is set
|
|
453
447
|
if @api_client.config.client_side_validation && auth_user_href.nil?
|
|
454
|
-
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.
|
|
448
|
+
fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.users_update"
|
|
455
449
|
end
|
|
456
450
|
# verify the required parameter 'user' is set
|
|
457
451
|
if @api_client.config.client_side_validation && user.nil?
|
|
458
|
-
fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.
|
|
452
|
+
fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.users_update"
|
|
459
453
|
end
|
|
460
454
|
# resource path
|
|
461
455
|
local_var_path = '{auth_user_href}'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_href.to_s).gsub('%2F', '/'))
|
|
@@ -493,7 +487,7 @@ module PulpContainerClient
|
|
|
493
487
|
|
|
494
488
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
495
489
|
if @api_client.config.debugging
|
|
496
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
|
490
|
+
@api_client.config.logger.debug "API called: UsersApi#users_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
497
491
|
end
|
|
498
492
|
return data, status_code, headers
|
|
499
493
|
end
|
|
@@ -20,33 +20,33 @@ module PulpContainerClient
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# Create an user role
|
|
23
|
-
# ViewSet for UserRole.
|
|
23
|
+
# ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
24
24
|
# @param auth_user_href [String]
|
|
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 users_roles_create(auth_user_href, user_role, opts = {})
|
|
29
|
+
data, _status_code, _headers = users_roles_create_with_http_info(auth_user_href, user_role, opts)
|
|
30
30
|
data
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
# Create an user role
|
|
34
|
-
# ViewSet for UserRole.
|
|
34
|
+
# ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
35
35
|
# @param auth_user_href [String]
|
|
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 users_roles_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.users_roles_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.users_roles_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.users_roles_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,33 +84,33 @@ module PulpContainerClient
|
|
|
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#users_roles_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
88
88
|
end
|
|
89
89
|
return data, status_code, headers
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
# Delete an user role
|
|
93
|
-
# ViewSet for UserRole.
|
|
93
|
+
# ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
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 users_roles_delete(auth_users_user_role_href, opts = {})
|
|
98
|
+
users_roles_delete_with_http_info(auth_users_user_role_href, opts)
|
|
99
99
|
nil
|
|
100
100
|
end
|
|
101
101
|
|
|
102
102
|
# Delete an user role
|
|
103
|
-
# ViewSet for UserRole.
|
|
103
|
+
# ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
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 users_roles_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.users_roles_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.users_roles_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,22 +144,19 @@ module PulpContainerClient
|
|
|
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#users_roles_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
148
148
|
end
|
|
149
149
|
return data, status_code, headers
|
|
150
150
|
end
|
|
151
151
|
|
|
152
152
|
# List user roles
|
|
153
|
-
# ViewSet for UserRole.
|
|
153
|
+
# ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
154
154
|
# @param auth_user_href [String]
|
|
155
155
|
# @param [Hash] opts the optional parameters
|
|
156
156
|
# @option opts [String] :content_object content_object
|
|
157
|
-
# @option opts [String] :domain Foreign Key referenced by HREF
|
|
158
157
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
159
158
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
160
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
161
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
162
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
159
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
163
160
|
# @option opts [String] :role
|
|
164
161
|
# @option opts [String] :role__contains
|
|
165
162
|
# @option opts [String] :role__icontains
|
|
@@ -168,22 +165,19 @@ module PulpContainerClient
|
|
|
168
165
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
169
166
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
170
167
|
# @return [PaginatedUserRoleResponseList]
|
|
171
|
-
def
|
|
172
|
-
data, _status_code, _headers =
|
|
168
|
+
def users_roles_list(auth_user_href, opts = {})
|
|
169
|
+
data, _status_code, _headers = users_roles_list_with_http_info(auth_user_href, opts)
|
|
173
170
|
data
|
|
174
171
|
end
|
|
175
172
|
|
|
176
173
|
# List user roles
|
|
177
|
-
# ViewSet for UserRole.
|
|
174
|
+
# ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
178
175
|
# @param auth_user_href [String]
|
|
179
176
|
# @param [Hash] opts the optional parameters
|
|
180
177
|
# @option opts [String] :content_object content_object
|
|
181
|
-
# @option opts [String] :domain Foreign Key referenced by HREF
|
|
182
178
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
183
179
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
184
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
185
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
186
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
180
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
187
181
|
# @option opts [String] :role
|
|
188
182
|
# @option opts [String] :role__contains
|
|
189
183
|
# @option opts [String] :role__icontains
|
|
@@ -192,13 +186,13 @@ module PulpContainerClient
|
|
|
192
186
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
193
187
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
194
188
|
# @return [Array<(PaginatedUserRoleResponseList, Integer, Hash)>] PaginatedUserRoleResponseList data, response status code and response headers
|
|
195
|
-
def
|
|
189
|
+
def users_roles_list_with_http_info(auth_user_href, opts = {})
|
|
196
190
|
if @api_client.config.debugging
|
|
197
|
-
@api_client.config.logger.debug 'Calling API: UsersRolesApi.
|
|
191
|
+
@api_client.config.logger.debug 'Calling API: UsersRolesApi.users_roles_list ...'
|
|
198
192
|
end
|
|
199
193
|
# verify the required parameter 'auth_user_href' is set
|
|
200
194
|
if @api_client.config.client_side_validation && auth_user_href.nil?
|
|
201
|
-
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.users_roles_list"
|
|
202
196
|
end
|
|
203
197
|
allowable_values = ["-description", "-pk", "-pulp_created", "-role", "description", "pk", "pulp_created", "role"]
|
|
204
198
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
@@ -210,12 +204,9 @@ module PulpContainerClient
|
|
|
210
204
|
# query parameters
|
|
211
205
|
query_params = opts[:query_params] || {}
|
|
212
206
|
query_params[:'content_object'] = opts[:'content_object'] if !opts[:'content_object'].nil?
|
|
213
|
-
query_params[:'domain'] = opts[:'domain'] if !opts[:'domain'].nil?
|
|
214
207
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
215
208
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
216
209
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
217
|
-
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
|
218
|
-
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
219
210
|
query_params[:'role'] = opts[:'role'] if !opts[:'role'].nil?
|
|
220
211
|
query_params[:'role__contains'] = opts[:'role__contains'] if !opts[:'role__contains'].nil?
|
|
221
212
|
query_params[:'role__icontains'] = opts[:'role__icontains'] if !opts[:'role__icontains'].nil?
|
|
@@ -252,37 +243,37 @@ module PulpContainerClient
|
|
|
252
243
|
|
|
253
244
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
254
245
|
if @api_client.config.debugging
|
|
255
|
-
@api_client.config.logger.debug "API called: UsersRolesApi#
|
|
246
|
+
@api_client.config.logger.debug "API called: UsersRolesApi#users_roles_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
256
247
|
end
|
|
257
248
|
return data, status_code, headers
|
|
258
249
|
end
|
|
259
250
|
|
|
260
251
|
# Inspect an user role
|
|
261
|
-
# ViewSet for UserRole.
|
|
252
|
+
# ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
262
253
|
# @param auth_users_user_role_href [String]
|
|
263
254
|
# @param [Hash] opts the optional parameters
|
|
264
255
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
265
256
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
266
257
|
# @return [UserRoleResponse]
|
|
267
|
-
def
|
|
268
|
-
data, _status_code, _headers =
|
|
258
|
+
def users_roles_read(auth_users_user_role_href, opts = {})
|
|
259
|
+
data, _status_code, _headers = users_roles_read_with_http_info(auth_users_user_role_href, opts)
|
|
269
260
|
data
|
|
270
261
|
end
|
|
271
262
|
|
|
272
263
|
# Inspect an user role
|
|
273
|
-
# ViewSet for UserRole.
|
|
264
|
+
# ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
274
265
|
# @param auth_users_user_role_href [String]
|
|
275
266
|
# @param [Hash] opts the optional parameters
|
|
276
267
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
277
268
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
278
269
|
# @return [Array<(UserRoleResponse, Integer, Hash)>] UserRoleResponse data, response status code and response headers
|
|
279
|
-
def
|
|
270
|
+
def users_roles_read_with_http_info(auth_users_user_role_href, opts = {})
|
|
280
271
|
if @api_client.config.debugging
|
|
281
|
-
@api_client.config.logger.debug 'Calling API: UsersRolesApi.
|
|
272
|
+
@api_client.config.logger.debug 'Calling API: UsersRolesApi.users_roles_read ...'
|
|
282
273
|
end
|
|
283
274
|
# verify the required parameter 'auth_users_user_role_href' is set
|
|
284
275
|
if @api_client.config.client_side_validation && auth_users_user_role_href.nil?
|
|
285
|
-
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.users_roles_read"
|
|
286
277
|
end
|
|
287
278
|
# resource path
|
|
288
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', '/'))
|
|
@@ -320,7 +311,7 @@ module PulpContainerClient
|
|
|
320
311
|
|
|
321
312
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
322
313
|
if @api_client.config.debugging
|
|
323
|
-
@api_client.config.logger.debug "API called: UsersRolesApi#
|
|
314
|
+
@api_client.config.logger.debug "API called: UsersRolesApi#users_roles_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
324
315
|
end
|
|
325
316
|
return data, status_code, headers
|
|
326
317
|
end
|
|
@@ -37,14 +37,12 @@ module PulpContainerClient
|
|
|
37
37
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
38
38
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
39
39
|
# @option opts [Boolean] :online
|
|
40
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
41
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
42
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
40
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
43
41
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
44
42
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
45
43
|
# @return [PaginatedWorkerResponseList]
|
|
46
|
-
def
|
|
47
|
-
data, _status_code, _headers =
|
|
44
|
+
def workers_list(opts = {})
|
|
45
|
+
data, _status_code, _headers = workers_list_with_http_info(opts)
|
|
48
46
|
data
|
|
49
47
|
end
|
|
50
48
|
|
|
@@ -66,17 +64,15 @@ module PulpContainerClient
|
|
|
66
64
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
67
65
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
68
66
|
# @option opts [Boolean] :online
|
|
69
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
70
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
71
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
67
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
72
68
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
73
69
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
74
70
|
# @return [Array<(PaginatedWorkerResponseList, Integer, Hash)>] PaginatedWorkerResponseList data, response status code and response headers
|
|
75
|
-
def
|
|
71
|
+
def workers_list_with_http_info(opts = {})
|
|
76
72
|
if @api_client.config.debugging
|
|
77
|
-
@api_client.config.logger.debug 'Calling API: WorkersApi.
|
|
73
|
+
@api_client.config.logger.debug 'Calling API: WorkersApi.workers_list ...'
|
|
78
74
|
end
|
|
79
|
-
allowable_values = ["-last_heartbeat", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "
|
|
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"]
|
|
80
76
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
81
77
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
82
78
|
end
|
|
@@ -101,8 +97,6 @@ module PulpContainerClient
|
|
|
101
97
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
102
98
|
query_params[:'online'] = opts[:'online'] if !opts[:'online'].nil?
|
|
103
99
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
104
|
-
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
|
105
|
-
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
106
100
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
107
101
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
108
102
|
|
|
@@ -134,7 +128,7 @@ module PulpContainerClient
|
|
|
134
128
|
|
|
135
129
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
136
130
|
if @api_client.config.debugging
|
|
137
|
-
@api_client.config.logger.debug "API called: WorkersApi#
|
|
131
|
+
@api_client.config.logger.debug "API called: WorkersApi#workers_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
138
132
|
end
|
|
139
133
|
return data, status_code, headers
|
|
140
134
|
end
|
|
@@ -146,8 +140,8 @@ module PulpContainerClient
|
|
|
146
140
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
147
141
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
148
142
|
# @return [WorkerResponse]
|
|
149
|
-
def
|
|
150
|
-
data, _status_code, _headers =
|
|
143
|
+
def workers_read(worker_href, opts = {})
|
|
144
|
+
data, _status_code, _headers = workers_read_with_http_info(worker_href, opts)
|
|
151
145
|
data
|
|
152
146
|
end
|
|
153
147
|
|
|
@@ -158,13 +152,13 @@ module PulpContainerClient
|
|
|
158
152
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
159
153
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
160
154
|
# @return [Array<(WorkerResponse, Integer, Hash)>] WorkerResponse data, response status code and response headers
|
|
161
|
-
def
|
|
155
|
+
def workers_read_with_http_info(worker_href, opts = {})
|
|
162
156
|
if @api_client.config.debugging
|
|
163
|
-
@api_client.config.logger.debug 'Calling API: WorkersApi.
|
|
157
|
+
@api_client.config.logger.debug 'Calling API: WorkersApi.workers_read ...'
|
|
164
158
|
end
|
|
165
159
|
# verify the required parameter 'worker_href' is set
|
|
166
160
|
if @api_client.config.client_side_validation && worker_href.nil?
|
|
167
|
-
fail ArgumentError, "Missing the required parameter 'worker_href' when calling WorkersApi.
|
|
161
|
+
fail ArgumentError, "Missing the required parameter 'worker_href' when calling WorkersApi.workers_read"
|
|
168
162
|
end
|
|
169
163
|
# resource path
|
|
170
164
|
local_var_path = '{worker_href}'.sub('{' + 'worker_href' + '}', CGI.escape(worker_href.to_s).gsub('%2F', '/'))
|
|
@@ -202,7 +196,7 @@ module PulpContainerClient
|
|
|
202
196
|
|
|
203
197
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
204
198
|
if @api_client.config.debugging
|
|
205
|
-
@api_client.config.logger.debug "API called: WorkersApi#
|
|
199
|
+
@api_client.config.logger.debug "API called: WorkersApi#workers_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
206
200
|
end
|
|
207
201
|
return data, status_code, headers
|
|
208
202
|
end
|