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
|
@@ -24,8 +24,8 @@ module PulpContainerClient
|
|
|
24
24
|
# @param nested_role [NestedRole]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [NestedRoleResponse]
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
27
|
+
def groups_add_role(group_href, nested_role, opts = {})
|
|
28
|
+
data, _status_code, _headers = groups_add_role_with_http_info(group_href, nested_role, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -34,17 +34,17 @@ module PulpContainerClient
|
|
|
34
34
|
# @param nested_role [NestedRole]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
37
|
-
def
|
|
37
|
+
def groups_add_role_with_http_info(group_href, nested_role, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.groups_add_role ...'
|
|
40
40
|
end
|
|
41
41
|
# verify the required parameter 'group_href' is set
|
|
42
42
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.groups_add_role"
|
|
44
44
|
end
|
|
45
45
|
# verify the required parameter 'nested_role' is set
|
|
46
46
|
if @api_client.config.client_side_validation && nested_role.nil?
|
|
47
|
-
fail ArgumentError, "Missing the required parameter 'nested_role' when calling GroupsApi.
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling GroupsApi.groups_add_role"
|
|
48
48
|
end
|
|
49
49
|
# resource path
|
|
50
50
|
local_var_path = '{group_href}add_role/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -82,33 +82,33 @@ module PulpContainerClient
|
|
|
82
82
|
|
|
83
83
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
84
|
if @api_client.config.debugging
|
|
85
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
85
|
+
@api_client.config.logger.debug "API called: GroupsApi#groups_add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
86
|
end
|
|
87
87
|
return data, status_code, headers
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
# Create a group
|
|
91
|
-
# ViewSet for Group.
|
|
91
|
+
# ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
92
92
|
# @param group [Group]
|
|
93
93
|
# @param [Hash] opts the optional parameters
|
|
94
94
|
# @return [GroupResponse]
|
|
95
|
-
def
|
|
96
|
-
data, _status_code, _headers =
|
|
95
|
+
def groups_create(group, opts = {})
|
|
96
|
+
data, _status_code, _headers = groups_create_with_http_info(group, opts)
|
|
97
97
|
data
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
# Create a group
|
|
101
|
-
# ViewSet for Group.
|
|
101
|
+
# ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
102
102
|
# @param group [Group]
|
|
103
103
|
# @param [Hash] opts the optional parameters
|
|
104
104
|
# @return [Array<(GroupResponse, Integer, Hash)>] GroupResponse data, response status code and response headers
|
|
105
|
-
def
|
|
105
|
+
def groups_create_with_http_info(group, opts = {})
|
|
106
106
|
if @api_client.config.debugging
|
|
107
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
107
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.groups_create ...'
|
|
108
108
|
end
|
|
109
109
|
# verify the required parameter 'group' is set
|
|
110
110
|
if @api_client.config.client_side_validation && group.nil?
|
|
111
|
-
fail ArgumentError, "Missing the required parameter 'group' when calling GroupsApi.
|
|
111
|
+
fail ArgumentError, "Missing the required parameter 'group' when calling GroupsApi.groups_create"
|
|
112
112
|
end
|
|
113
113
|
# resource path
|
|
114
114
|
local_var_path = '/pulp/api/v3/groups/'
|
|
@@ -146,33 +146,33 @@ module PulpContainerClient
|
|
|
146
146
|
|
|
147
147
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
148
148
|
if @api_client.config.debugging
|
|
149
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
149
|
+
@api_client.config.logger.debug "API called: GroupsApi#groups_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
150
150
|
end
|
|
151
151
|
return data, status_code, headers
|
|
152
152
|
end
|
|
153
153
|
|
|
154
154
|
# Delete a group
|
|
155
|
-
# ViewSet for Group.
|
|
155
|
+
# ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
156
156
|
# @param group_href [String]
|
|
157
157
|
# @param [Hash] opts the optional parameters
|
|
158
158
|
# @return [nil]
|
|
159
|
-
def
|
|
160
|
-
|
|
159
|
+
def groups_delete(group_href, opts = {})
|
|
160
|
+
groups_delete_with_http_info(group_href, opts)
|
|
161
161
|
nil
|
|
162
162
|
end
|
|
163
163
|
|
|
164
164
|
# Delete a group
|
|
165
|
-
# ViewSet for Group.
|
|
165
|
+
# ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
166
166
|
# @param group_href [String]
|
|
167
167
|
# @param [Hash] opts the optional parameters
|
|
168
168
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
169
|
-
def
|
|
169
|
+
def groups_delete_with_http_info(group_href, opts = {})
|
|
170
170
|
if @api_client.config.debugging
|
|
171
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
171
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.groups_delete ...'
|
|
172
172
|
end
|
|
173
173
|
# verify the required parameter 'group_href' is set
|
|
174
174
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
175
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
175
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.groups_delete"
|
|
176
176
|
end
|
|
177
177
|
# resource path
|
|
178
178
|
local_var_path = '{group_href}'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -206,13 +206,13 @@ module PulpContainerClient
|
|
|
206
206
|
|
|
207
207
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
208
208
|
if @api_client.config.debugging
|
|
209
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
209
|
+
@api_client.config.logger.debug "API called: GroupsApi#groups_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
210
210
|
end
|
|
211
211
|
return data, status_code, headers
|
|
212
212
|
end
|
|
213
213
|
|
|
214
214
|
# List groups
|
|
215
|
-
# ViewSet for Group.
|
|
215
|
+
# ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
216
216
|
# @param [Hash] opts the optional parameters
|
|
217
217
|
# @option opts [Integer] :id Filter results where id matches value
|
|
218
218
|
# @option opts [Array<Integer>] :id__in Filter results where id is in a comma-separated list of values
|
|
@@ -223,19 +223,17 @@ module PulpContainerClient
|
|
|
223
223
|
# @option opts [String] :name__iexact Filter results where name matches value
|
|
224
224
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
225
225
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
226
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
227
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
228
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
226
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
229
227
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
230
228
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
231
229
|
# @return [PaginatedGroupResponseList]
|
|
232
|
-
def
|
|
233
|
-
data, _status_code, _headers =
|
|
230
|
+
def groups_list(opts = {})
|
|
231
|
+
data, _status_code, _headers = groups_list_with_http_info(opts)
|
|
234
232
|
data
|
|
235
233
|
end
|
|
236
234
|
|
|
237
235
|
# List groups
|
|
238
|
-
# ViewSet for Group.
|
|
236
|
+
# ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
239
237
|
# @param [Hash] opts the optional parameters
|
|
240
238
|
# @option opts [Integer] :id Filter results where id matches value
|
|
241
239
|
# @option opts [Array<Integer>] :id__in Filter results where id is in a comma-separated list of values
|
|
@@ -246,15 +244,13 @@ module PulpContainerClient
|
|
|
246
244
|
# @option opts [String] :name__iexact Filter results where name matches value
|
|
247
245
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
248
246
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
249
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
250
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
251
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
247
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
252
248
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
253
249
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
254
250
|
# @return [Array<(PaginatedGroupResponseList, Integer, Hash)>] PaginatedGroupResponseList data, response status code and response headers
|
|
255
|
-
def
|
|
251
|
+
def groups_list_with_http_info(opts = {})
|
|
256
252
|
if @api_client.config.debugging
|
|
257
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
253
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.groups_list ...'
|
|
258
254
|
end
|
|
259
255
|
allowable_values = ["-id", "-name", "-pk", "id", "name", "pk"]
|
|
260
256
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
@@ -275,8 +271,6 @@ module PulpContainerClient
|
|
|
275
271
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
|
276
272
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
277
273
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
278
|
-
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
|
279
|
-
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
280
274
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
281
275
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
282
276
|
|
|
@@ -308,7 +302,7 @@ module PulpContainerClient
|
|
|
308
302
|
|
|
309
303
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
310
304
|
if @api_client.config.debugging
|
|
311
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
305
|
+
@api_client.config.logger.debug "API called: GroupsApi#groups_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
312
306
|
end
|
|
313
307
|
return data, status_code, headers
|
|
314
308
|
end
|
|
@@ -319,8 +313,8 @@ module PulpContainerClient
|
|
|
319
313
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
320
314
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
321
315
|
# @return [ObjectRolesResponse]
|
|
322
|
-
def
|
|
323
|
-
data, _status_code, _headers =
|
|
316
|
+
def groups_list_roles(group_href, opts = {})
|
|
317
|
+
data, _status_code, _headers = groups_list_roles_with_http_info(group_href, opts)
|
|
324
318
|
data
|
|
325
319
|
end
|
|
326
320
|
|
|
@@ -330,13 +324,13 @@ module PulpContainerClient
|
|
|
330
324
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
331
325
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
332
326
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
|
333
|
-
def
|
|
327
|
+
def groups_list_roles_with_http_info(group_href, opts = {})
|
|
334
328
|
if @api_client.config.debugging
|
|
335
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
329
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.groups_list_roles ...'
|
|
336
330
|
end
|
|
337
331
|
# verify the required parameter 'group_href' is set
|
|
338
332
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
339
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
333
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.groups_list_roles"
|
|
340
334
|
end
|
|
341
335
|
# resource path
|
|
342
336
|
local_var_path = '{group_href}list_roles/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -374,7 +368,7 @@ module PulpContainerClient
|
|
|
374
368
|
|
|
375
369
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
376
370
|
if @api_client.config.debugging
|
|
377
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
371
|
+
@api_client.config.logger.debug "API called: GroupsApi#groups_list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
378
372
|
end
|
|
379
373
|
return data, status_code, headers
|
|
380
374
|
end
|
|
@@ -385,8 +379,8 @@ module PulpContainerClient
|
|
|
385
379
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
386
380
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
387
381
|
# @return [MyPermissionsResponse]
|
|
388
|
-
def
|
|
389
|
-
data, _status_code, _headers =
|
|
382
|
+
def groups_my_permissions(group_href, opts = {})
|
|
383
|
+
data, _status_code, _headers = groups_my_permissions_with_http_info(group_href, opts)
|
|
390
384
|
data
|
|
391
385
|
end
|
|
392
386
|
|
|
@@ -396,13 +390,13 @@ module PulpContainerClient
|
|
|
396
390
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
397
391
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
398
392
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
|
399
|
-
def
|
|
393
|
+
def groups_my_permissions_with_http_info(group_href, opts = {})
|
|
400
394
|
if @api_client.config.debugging
|
|
401
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
395
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.groups_my_permissions ...'
|
|
402
396
|
end
|
|
403
397
|
# verify the required parameter 'group_href' is set
|
|
404
398
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
405
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
399
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.groups_my_permissions"
|
|
406
400
|
end
|
|
407
401
|
# resource path
|
|
408
402
|
local_var_path = '{group_href}my_permissions/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -440,39 +434,39 @@ module PulpContainerClient
|
|
|
440
434
|
|
|
441
435
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
442
436
|
if @api_client.config.debugging
|
|
443
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
437
|
+
@api_client.config.logger.debug "API called: GroupsApi#groups_my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
444
438
|
end
|
|
445
439
|
return data, status_code, headers
|
|
446
440
|
end
|
|
447
441
|
|
|
448
442
|
# Update a group
|
|
449
|
-
# ViewSet for Group.
|
|
443
|
+
# ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
450
444
|
# @param group_href [String]
|
|
451
445
|
# @param patched_group [PatchedGroup]
|
|
452
446
|
# @param [Hash] opts the optional parameters
|
|
453
447
|
# @return [GroupResponse]
|
|
454
|
-
def
|
|
455
|
-
data, _status_code, _headers =
|
|
448
|
+
def groups_partial_update(group_href, patched_group, opts = {})
|
|
449
|
+
data, _status_code, _headers = groups_partial_update_with_http_info(group_href, patched_group, opts)
|
|
456
450
|
data
|
|
457
451
|
end
|
|
458
452
|
|
|
459
453
|
# Update a group
|
|
460
|
-
# ViewSet for Group.
|
|
454
|
+
# ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
461
455
|
# @param group_href [String]
|
|
462
456
|
# @param patched_group [PatchedGroup]
|
|
463
457
|
# @param [Hash] opts the optional parameters
|
|
464
458
|
# @return [Array<(GroupResponse, Integer, Hash)>] GroupResponse data, response status code and response headers
|
|
465
|
-
def
|
|
459
|
+
def groups_partial_update_with_http_info(group_href, patched_group, opts = {})
|
|
466
460
|
if @api_client.config.debugging
|
|
467
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
461
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.groups_partial_update ...'
|
|
468
462
|
end
|
|
469
463
|
# verify the required parameter 'group_href' is set
|
|
470
464
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
471
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
465
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.groups_partial_update"
|
|
472
466
|
end
|
|
473
467
|
# verify the required parameter 'patched_group' is set
|
|
474
468
|
if @api_client.config.client_side_validation && patched_group.nil?
|
|
475
|
-
fail ArgumentError, "Missing the required parameter 'patched_group' when calling GroupsApi.
|
|
469
|
+
fail ArgumentError, "Missing the required parameter 'patched_group' when calling GroupsApi.groups_partial_update"
|
|
476
470
|
end
|
|
477
471
|
# resource path
|
|
478
472
|
local_var_path = '{group_href}'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -510,37 +504,37 @@ module PulpContainerClient
|
|
|
510
504
|
|
|
511
505
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
512
506
|
if @api_client.config.debugging
|
|
513
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
507
|
+
@api_client.config.logger.debug "API called: GroupsApi#groups_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
514
508
|
end
|
|
515
509
|
return data, status_code, headers
|
|
516
510
|
end
|
|
517
511
|
|
|
518
512
|
# Inspect a group
|
|
519
|
-
# ViewSet for Group.
|
|
513
|
+
# ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
520
514
|
# @param group_href [String]
|
|
521
515
|
# @param [Hash] opts the optional parameters
|
|
522
516
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
523
517
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
524
518
|
# @return [GroupResponse]
|
|
525
|
-
def
|
|
526
|
-
data, _status_code, _headers =
|
|
519
|
+
def groups_read(group_href, opts = {})
|
|
520
|
+
data, _status_code, _headers = groups_read_with_http_info(group_href, opts)
|
|
527
521
|
data
|
|
528
522
|
end
|
|
529
523
|
|
|
530
524
|
# Inspect a group
|
|
531
|
-
# ViewSet for Group.
|
|
525
|
+
# ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
532
526
|
# @param group_href [String]
|
|
533
527
|
# @param [Hash] opts the optional parameters
|
|
534
528
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
535
529
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
536
530
|
# @return [Array<(GroupResponse, Integer, Hash)>] GroupResponse data, response status code and response headers
|
|
537
|
-
def
|
|
531
|
+
def groups_read_with_http_info(group_href, opts = {})
|
|
538
532
|
if @api_client.config.debugging
|
|
539
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
533
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.groups_read ...'
|
|
540
534
|
end
|
|
541
535
|
# verify the required parameter 'group_href' is set
|
|
542
536
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
543
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
537
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.groups_read"
|
|
544
538
|
end
|
|
545
539
|
# resource path
|
|
546
540
|
local_var_path = '{group_href}'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -578,7 +572,7 @@ module PulpContainerClient
|
|
|
578
572
|
|
|
579
573
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
580
574
|
if @api_client.config.debugging
|
|
581
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
575
|
+
@api_client.config.logger.debug "API called: GroupsApi#groups_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
582
576
|
end
|
|
583
577
|
return data, status_code, headers
|
|
584
578
|
end
|
|
@@ -588,8 +582,8 @@ module PulpContainerClient
|
|
|
588
582
|
# @param nested_role [NestedRole]
|
|
589
583
|
# @param [Hash] opts the optional parameters
|
|
590
584
|
# @return [NestedRoleResponse]
|
|
591
|
-
def
|
|
592
|
-
data, _status_code, _headers =
|
|
585
|
+
def groups_remove_role(group_href, nested_role, opts = {})
|
|
586
|
+
data, _status_code, _headers = groups_remove_role_with_http_info(group_href, nested_role, opts)
|
|
593
587
|
data
|
|
594
588
|
end
|
|
595
589
|
|
|
@@ -598,17 +592,17 @@ module PulpContainerClient
|
|
|
598
592
|
# @param nested_role [NestedRole]
|
|
599
593
|
# @param [Hash] opts the optional parameters
|
|
600
594
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
601
|
-
def
|
|
595
|
+
def groups_remove_role_with_http_info(group_href, nested_role, opts = {})
|
|
602
596
|
if @api_client.config.debugging
|
|
603
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
597
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.groups_remove_role ...'
|
|
604
598
|
end
|
|
605
599
|
# verify the required parameter 'group_href' is set
|
|
606
600
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
607
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
601
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.groups_remove_role"
|
|
608
602
|
end
|
|
609
603
|
# verify the required parameter 'nested_role' is set
|
|
610
604
|
if @api_client.config.client_side_validation && nested_role.nil?
|
|
611
|
-
fail ArgumentError, "Missing the required parameter 'nested_role' when calling GroupsApi.
|
|
605
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling GroupsApi.groups_remove_role"
|
|
612
606
|
end
|
|
613
607
|
# resource path
|
|
614
608
|
local_var_path = '{group_href}remove_role/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -646,39 +640,39 @@ module PulpContainerClient
|
|
|
646
640
|
|
|
647
641
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
648
642
|
if @api_client.config.debugging
|
|
649
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
643
|
+
@api_client.config.logger.debug "API called: GroupsApi#groups_remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
650
644
|
end
|
|
651
645
|
return data, status_code, headers
|
|
652
646
|
end
|
|
653
647
|
|
|
654
648
|
# Update a group
|
|
655
|
-
# ViewSet for Group.
|
|
649
|
+
# ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
656
650
|
# @param group_href [String]
|
|
657
651
|
# @param group [Group]
|
|
658
652
|
# @param [Hash] opts the optional parameters
|
|
659
653
|
# @return [GroupResponse]
|
|
660
|
-
def
|
|
661
|
-
data, _status_code, _headers =
|
|
654
|
+
def groups_update(group_href, group, opts = {})
|
|
655
|
+
data, _status_code, _headers = groups_update_with_http_info(group_href, group, opts)
|
|
662
656
|
data
|
|
663
657
|
end
|
|
664
658
|
|
|
665
659
|
# Update a group
|
|
666
|
-
# ViewSet for Group.
|
|
660
|
+
# ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
667
661
|
# @param group_href [String]
|
|
668
662
|
# @param group [Group]
|
|
669
663
|
# @param [Hash] opts the optional parameters
|
|
670
664
|
# @return [Array<(GroupResponse, Integer, Hash)>] GroupResponse data, response status code and response headers
|
|
671
|
-
def
|
|
665
|
+
def groups_update_with_http_info(group_href, group, opts = {})
|
|
672
666
|
if @api_client.config.debugging
|
|
673
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
667
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.groups_update ...'
|
|
674
668
|
end
|
|
675
669
|
# verify the required parameter 'group_href' is set
|
|
676
670
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
677
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
671
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.groups_update"
|
|
678
672
|
end
|
|
679
673
|
# verify the required parameter 'group' is set
|
|
680
674
|
if @api_client.config.client_side_validation && group.nil?
|
|
681
|
-
fail ArgumentError, "Missing the required parameter 'group' when calling GroupsApi.
|
|
675
|
+
fail ArgumentError, "Missing the required parameter 'group' when calling GroupsApi.groups_update"
|
|
682
676
|
end
|
|
683
677
|
# resource path
|
|
684
678
|
local_var_path = '{group_href}'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -716,7 +710,7 @@ module PulpContainerClient
|
|
|
716
710
|
|
|
717
711
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
718
712
|
if @api_client.config.debugging
|
|
719
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
713
|
+
@api_client.config.logger.debug "API called: GroupsApi#groups_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
720
714
|
end
|
|
721
715
|
return data, status_code, headers
|
|
722
716
|
end
|