crc-pulpcore-client 20250819.1__py3-none-any.whl
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.
Potentially problematic release.
This version of crc-pulpcore-client might be problematic. Click here for more details.
- crc-pulpcore-client/__init__.py +2 -0
- crc-pulpcore-client/api/__init__.py +53 -0
- crc-pulpcore-client/api/access_policies_api.py +1864 -0
- crc-pulpcore-client/api/artifacts_api.py +1615 -0
- crc-pulpcore-client/api/content_api.py +598 -0
- crc-pulpcore-client/api/content_openpgp_publickey_api.py +1887 -0
- crc-pulpcore-client/api/content_openpgp_publicsubkey_api.py +1518 -0
- crc-pulpcore-client/api/content_openpgp_signature_api.py +1518 -0
- crc-pulpcore-client/api/content_openpgp_userattribute_api.py +1518 -0
- crc-pulpcore-client/api/content_openpgp_userid_api.py +1655 -0
- crc-pulpcore-client/api/contentguards_api.py +667 -0
- crc-pulpcore-client/api/contentguards_composite_api.py +3401 -0
- crc-pulpcore-client/api/contentguards_content_redirect_api.py +3401 -0
- crc-pulpcore-client/api/contentguards_header_api.py +3401 -0
- crc-pulpcore-client/api/contentguards_rbac_api.py +3401 -0
- crc-pulpcore-client/api/distributions_api.py +822 -0
- crc-pulpcore-client/api/distributions_artifacts_api.py +1103 -0
- crc-pulpcore-client/api/distributions_openpgp_api.py +2676 -0
- crc-pulpcore-client/api/domains_api.py +3106 -0
- crc-pulpcore-client/api/exporters_filesystem_api.py +2157 -0
- crc-pulpcore-client/api/exporters_filesystem_exports_api.py +1288 -0
- crc-pulpcore-client/api/exporters_pulp_api.py +2157 -0
- crc-pulpcore-client/api/exporters_pulp_exports_api.py +1288 -0
- crc-pulpcore-client/api/groups_api.py +3368 -0
- crc-pulpcore-client/api/groups_roles_api.py +1496 -0
- crc-pulpcore-client/api/groups_users_api.py +972 -0
- crc-pulpcore-client/api/importers_pulp_api.py +2149 -0
- crc-pulpcore-client/api/importers_pulp_import_check_api.py +350 -0
- crc-pulpcore-client/api/importers_pulp_imports_api.py +1288 -0
- crc-pulpcore-client/api/livez_api.py +329 -0
- crc-pulpcore-client/api/login_api.py +897 -0
- crc-pulpcore-client/api/orphans_api.py +319 -0
- crc-pulpcore-client/api/orphans_cleanup_api.py +350 -0
- crc-pulpcore-client/api/publications_api.py +765 -0
- crc-pulpcore-client/api/remotes_api.py +850 -0
- crc-pulpcore-client/api/repair_api.py +350 -0
- crc-pulpcore-client/api/repositories_api.py +872 -0
- crc-pulpcore-client/api/repositories_openpgp_keyring_api.py +4546 -0
- crc-pulpcore-client/api/repositories_reclaim_space_api.py +350 -0
- crc-pulpcore-client/api/repository_versions_api.py +764 -0
- crc-pulpcore-client/api/roles_api.py +2269 -0
- crc-pulpcore-client/api/signing_services_api.py +811 -0
- crc-pulpcore-client/api/status_api.py +337 -0
- crc-pulpcore-client/api/task_groups_api.py +1012 -0
- crc-pulpcore-client/api/task_schedules_api.py +2114 -0
- crc-pulpcore-client/api/tasks_api.py +4299 -0
- crc-pulpcore-client/api/uploads_api.py +3346 -0
- crc-pulpcore-client/api/upstream_pulps_api.py +4001 -0
- crc-pulpcore-client/api/users_api.py +2373 -0
- crc-pulpcore-client/api/users_roles_api.py +1496 -0
- crc-pulpcore-client/api/workers_api.py +1148 -0
- crc-pulpcore-client/api_client.py +798 -0
- crc-pulpcore-client/api_response.py +21 -0
- crc-pulpcore-client/configuration.py +628 -0
- crc-pulpcore-client/exceptions.py +200 -0
- crc-pulpcore-client/models/__init__.py +189 -0
- crc-pulpcore-client/models/access_policy.py +94 -0
- crc-pulpcore-client/models/access_policy_response.py +119 -0
- crc-pulpcore-client/models/api_app_status_response.py +99 -0
- crc-pulpcore-client/models/artifact_distribution_response.py +126 -0
- crc-pulpcore-client/models/artifact_response.py +149 -0
- crc-pulpcore-client/models/async_operation_response.py +88 -0
- crc-pulpcore-client/models/composite_content_guard.py +98 -0
- crc-pulpcore-client/models/composite_content_guard_response.py +114 -0
- crc-pulpcore-client/models/content_app_status_response.py +99 -0
- crc-pulpcore-client/models/content_guard_response.py +112 -0
- crc-pulpcore-client/models/content_redirect_content_guard.py +96 -0
- crc-pulpcore-client/models/content_redirect_content_guard_response.py +112 -0
- crc-pulpcore-client/models/content_settings_response.py +95 -0
- crc-pulpcore-client/models/content_summary_response.py +92 -0
- crc-pulpcore-client/models/database_connection_response.py +88 -0
- crc-pulpcore-client/models/distribution_response.py +133 -0
- crc-pulpcore-client/models/domain.py +114 -0
- crc-pulpcore-client/models/domain_backend_migrator.py +91 -0
- crc-pulpcore-client/models/domain_response.py +131 -0
- crc-pulpcore-client/models/evaluation_response.py +92 -0
- crc-pulpcore-client/models/filesystem_export.py +99 -0
- crc-pulpcore-client/models/filesystem_export_response.py +118 -0
- crc-pulpcore-client/models/filesystem_exporter.py +94 -0
- crc-pulpcore-client/models/filesystem_exporter_response.py +110 -0
- crc-pulpcore-client/models/generic_remote_response.py +199 -0
- crc-pulpcore-client/models/generic_remote_response_hidden_fields_inner.py +90 -0
- crc-pulpcore-client/models/generic_remote_response_policy_enum.py +39 -0
- crc-pulpcore-client/models/group.py +89 -0
- crc-pulpcore-client/models/group_progress_report_response.py +111 -0
- crc-pulpcore-client/models/group_response.py +101 -0
- crc-pulpcore-client/models/group_role.py +110 -0
- crc-pulpcore-client/models/group_role_response.py +134 -0
- crc-pulpcore-client/models/group_user.py +89 -0
- crc-pulpcore-client/models/group_user_response.py +97 -0
- crc-pulpcore-client/models/header_content_guard.py +107 -0
- crc-pulpcore-client/models/header_content_guard_response.py +123 -0
- crc-pulpcore-client/models/import_response.py +107 -0
- crc-pulpcore-client/models/login_response.py +98 -0
- crc-pulpcore-client/models/method_enum.py +39 -0
- crc-pulpcore-client/models/minimal_task_response.py +125 -0
- crc-pulpcore-client/models/multiple_artifact_content_response.py +107 -0
- crc-pulpcore-client/models/my_permissions_response.py +88 -0
- crc-pulpcore-client/models/nested_open_pgp_public_subkey.py +92 -0
- crc-pulpcore-client/models/nested_open_pgp_public_subkey_response.py +104 -0
- crc-pulpcore-client/models/nested_open_pgp_signature.py +120 -0
- crc-pulpcore-client/models/nested_open_pgp_signature_response.py +124 -0
- crc-pulpcore-client/models/nested_open_pgp_user_attribute.py +89 -0
- crc-pulpcore-client/models/nested_open_pgp_user_attribute_response.py +101 -0
- crc-pulpcore-client/models/nested_open_pgp_user_id.py +89 -0
- crc-pulpcore-client/models/nested_open_pgp_user_id_response.py +100 -0
- crc-pulpcore-client/models/nested_role.py +93 -0
- crc-pulpcore-client/models/nested_role_response.py +92 -0
- crc-pulpcore-client/models/object_roles_response.py +96 -0
- crc-pulpcore-client/models/open_pgp_distribution.py +116 -0
- crc-pulpcore-client/models/open_pgp_distribution_response.py +140 -0
- crc-pulpcore-client/models/open_pgp_keyring.py +112 -0
- crc-pulpcore-client/models/open_pgp_keyring_response.py +137 -0
- crc-pulpcore-client/models/open_pgp_public_key_response.py +150 -0
- crc-pulpcore-client/models/open_pgp_public_subkey_response.py +126 -0
- crc-pulpcore-client/models/open_pgp_signature_response.py +146 -0
- crc-pulpcore-client/models/open_pgp_user_attribute_response.py +124 -0
- crc-pulpcore-client/models/open_pgp_user_id_response.py +123 -0
- crc-pulpcore-client/models/orphans_cleanup.py +96 -0
- crc-pulpcore-client/models/paginated_access_policy_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_artifact_distribution_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_artifact_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_composite_content_guard_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_content_guard_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_content_redirect_content_guard_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_distribution_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_domain_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_filesystem_export_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_filesystem_exporter_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_generic_remote_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_group_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_group_role_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_group_user_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_header_content_guard_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_import_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_multiple_artifact_content_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_open_pgp_distribution_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_open_pgp_keyring_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_open_pgp_public_key_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_open_pgp_public_subkey_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_open_pgp_signature_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_open_pgp_user_attribute_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_open_pgp_user_id_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_publication_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_pulp_export_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_pulp_exporter_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_pulp_importer_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_rbac_content_guard_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_repository_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_repository_version_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_role_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_signing_service_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_task_group_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_task_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_task_schedule_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_upload_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_upstream_pulp_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_user_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_user_role_response_list.py +112 -0
- crc-pulpcore-client/models/paginated_worker_response_list.py +112 -0
- crc-pulpcore-client/models/patched_access_policy.py +94 -0
- crc-pulpcore-client/models/patched_composite_content_guard.py +98 -0
- crc-pulpcore-client/models/patched_content_redirect_content_guard.py +96 -0
- crc-pulpcore-client/models/patched_domain.py +117 -0
- crc-pulpcore-client/models/patched_filesystem_exporter.py +94 -0
- crc-pulpcore-client/models/patched_group.py +89 -0
- crc-pulpcore-client/models/patched_header_content_guard.py +107 -0
- crc-pulpcore-client/models/patched_open_pgp_distribution.py +116 -0
- crc-pulpcore-client/models/patched_open_pgp_keyring.py +112 -0
- crc-pulpcore-client/models/patched_pulp_exporter.py +100 -0
- crc-pulpcore-client/models/patched_pulp_importer.py +91 -0
- crc-pulpcore-client/models/patched_rbac_content_guard.py +96 -0
- crc-pulpcore-client/models/patched_role.py +98 -0
- crc-pulpcore-client/models/patched_task_cancel.py +89 -0
- crc-pulpcore-client/models/patched_upstream_pulp.py +147 -0
- crc-pulpcore-client/models/patched_user.py +106 -0
- crc-pulpcore-client/models/policy357_enum.py +39 -0
- crc-pulpcore-client/models/profile_artifact_response.py +88 -0
- crc-pulpcore-client/models/progress_report_response.py +115 -0
- crc-pulpcore-client/models/publication_response.py +107 -0
- crc-pulpcore-client/models/pulp_export.py +104 -0
- crc-pulpcore-client/models/pulp_export_response.py +126 -0
- crc-pulpcore-client/models/pulp_exporter.py +100 -0
- crc-pulpcore-client/models/pulp_exporter_response.py +116 -0
- crc-pulpcore-client/models/pulp_import.py +93 -0
- crc-pulpcore-client/models/pulp_import_check.py +93 -0
- crc-pulpcore-client/models/pulp_import_check_response.py +102 -0
- crc-pulpcore-client/models/pulp_importer.py +91 -0
- crc-pulpcore-client/models/pulp_importer_response.py +107 -0
- crc-pulpcore-client/models/purge.py +92 -0
- crc-pulpcore-client/models/rbac_content_guard.py +96 -0
- crc-pulpcore-client/models/rbac_content_guard_response.py +136 -0
- crc-pulpcore-client/models/reclaim_space.py +90 -0
- crc-pulpcore-client/models/redis_connection_response.py +88 -0
- crc-pulpcore-client/models/repair.py +88 -0
- crc-pulpcore-client/models/repository_add_remove_content.py +93 -0
- crc-pulpcore-client/models/repository_response.py +137 -0
- crc-pulpcore-client/models/repository_version_response.py +121 -0
- crc-pulpcore-client/models/role.py +98 -0
- crc-pulpcore-client/models/role_response.py +118 -0
- crc-pulpcore-client/models/set_label.py +103 -0
- crc-pulpcore-client/models/set_label_response.py +103 -0
- crc-pulpcore-client/models/signing_service_response.py +111 -0
- crc-pulpcore-client/models/states_enum.py +40 -0
- crc-pulpcore-client/models/status_response.py +152 -0
- crc-pulpcore-client/models/storage_class_enum.py +40 -0
- crc-pulpcore-client/models/storage_response.py +108 -0
- crc-pulpcore-client/models/task_group_operation_response.py +88 -0
- crc-pulpcore-client/models/task_group_response.py +150 -0
- crc-pulpcore-client/models/task_response.py +167 -0
- crc-pulpcore-client/models/task_schedule_response.py +127 -0
- crc-pulpcore-client/models/unset_label.py +96 -0
- crc-pulpcore-client/models/unset_label_response.py +100 -0
- crc-pulpcore-client/models/upload.py +88 -0
- crc-pulpcore-client/models/upload_chunk_response.py +94 -0
- crc-pulpcore-client/models/upload_commit.py +89 -0
- crc-pulpcore-client/models/upload_detail_response.py +121 -0
- crc-pulpcore-client/models/upload_response.py +109 -0
- crc-pulpcore-client/models/upstream_pulp.py +147 -0
- crc-pulpcore-client/models/upstream_pulp_response.py +158 -0
- crc-pulpcore-client/models/user.py +106 -0
- crc-pulpcore-client/models/user_group.py +89 -0
- crc-pulpcore-client/models/user_group_response.py +97 -0
- crc-pulpcore-client/models/user_response.py +140 -0
- crc-pulpcore-client/models/user_role.py +110 -0
- crc-pulpcore-client/models/user_role_response.py +134 -0
- crc-pulpcore-client/models/version_response.py +96 -0
- crc-pulpcore-client/models/worker_response.py +119 -0
- crc-pulpcore-client/py.typed +0 -0
- crc-pulpcore-client/rest.py +258 -0
- crc_pulpcore_client-20250819.1.dist-info/METADATA +25 -0
- crc_pulpcore_client-20250819.1.dist-info/RECORD +464 -0
- crc_pulpcore_client-20250819.1.dist-info/WHEEL +5 -0
- crc_pulpcore_client-20250819.1.dist-info/top_level.txt +2 -0
- services-pulpcore-client/__init__.py +2 -0
- services-pulpcore-client/api/__init__.py +53 -0
- services-pulpcore-client/api/access_policies_api.py +1864 -0
- services-pulpcore-client/api/artifacts_api.py +1615 -0
- services-pulpcore-client/api/content_api.py +598 -0
- services-pulpcore-client/api/content_openpgp_publickey_api.py +1887 -0
- services-pulpcore-client/api/content_openpgp_publicsubkey_api.py +1518 -0
- services-pulpcore-client/api/content_openpgp_signature_api.py +1518 -0
- services-pulpcore-client/api/content_openpgp_userattribute_api.py +1518 -0
- services-pulpcore-client/api/content_openpgp_userid_api.py +1655 -0
- services-pulpcore-client/api/contentguards_api.py +667 -0
- services-pulpcore-client/api/contentguards_composite_api.py +3401 -0
- services-pulpcore-client/api/contentguards_content_redirect_api.py +3401 -0
- services-pulpcore-client/api/contentguards_header_api.py +3401 -0
- services-pulpcore-client/api/contentguards_rbac_api.py +3401 -0
- services-pulpcore-client/api/distributions_api.py +822 -0
- services-pulpcore-client/api/distributions_artifacts_api.py +1103 -0
- services-pulpcore-client/api/distributions_openpgp_api.py +2676 -0
- services-pulpcore-client/api/domains_api.py +3106 -0
- services-pulpcore-client/api/exporters_filesystem_api.py +2157 -0
- services-pulpcore-client/api/exporters_filesystem_exports_api.py +1288 -0
- services-pulpcore-client/api/exporters_pulp_api.py +2157 -0
- services-pulpcore-client/api/exporters_pulp_exports_api.py +1288 -0
- services-pulpcore-client/api/groups_api.py +3368 -0
- services-pulpcore-client/api/groups_roles_api.py +1496 -0
- services-pulpcore-client/api/groups_users_api.py +972 -0
- services-pulpcore-client/api/importers_pulp_api.py +2149 -0
- services-pulpcore-client/api/importers_pulp_import_check_api.py +350 -0
- services-pulpcore-client/api/importers_pulp_imports_api.py +1288 -0
- services-pulpcore-client/api/livez_api.py +329 -0
- services-pulpcore-client/api/login_api.py +897 -0
- services-pulpcore-client/api/orphans_api.py +319 -0
- services-pulpcore-client/api/orphans_cleanup_api.py +350 -0
- services-pulpcore-client/api/publications_api.py +765 -0
- services-pulpcore-client/api/remotes_api.py +850 -0
- services-pulpcore-client/api/repair_api.py +350 -0
- services-pulpcore-client/api/repositories_api.py +872 -0
- services-pulpcore-client/api/repositories_openpgp_keyring_api.py +4546 -0
- services-pulpcore-client/api/repositories_reclaim_space_api.py +350 -0
- services-pulpcore-client/api/repository_versions_api.py +764 -0
- services-pulpcore-client/api/roles_api.py +2269 -0
- services-pulpcore-client/api/signing_services_api.py +811 -0
- services-pulpcore-client/api/status_api.py +337 -0
- services-pulpcore-client/api/task_groups_api.py +1012 -0
- services-pulpcore-client/api/task_schedules_api.py +2114 -0
- services-pulpcore-client/api/tasks_api.py +4299 -0
- services-pulpcore-client/api/uploads_api.py +3346 -0
- services-pulpcore-client/api/upstream_pulps_api.py +4001 -0
- services-pulpcore-client/api/users_api.py +2373 -0
- services-pulpcore-client/api/users_roles_api.py +1496 -0
- services-pulpcore-client/api/workers_api.py +1148 -0
- services-pulpcore-client/api_client.py +798 -0
- services-pulpcore-client/api_response.py +21 -0
- services-pulpcore-client/configuration.py +628 -0
- services-pulpcore-client/exceptions.py +200 -0
- services-pulpcore-client/models/__init__.py +189 -0
- services-pulpcore-client/models/access_policy.py +94 -0
- services-pulpcore-client/models/access_policy_response.py +119 -0
- services-pulpcore-client/models/api_app_status_response.py +99 -0
- services-pulpcore-client/models/artifact_distribution_response.py +126 -0
- services-pulpcore-client/models/artifact_response.py +149 -0
- services-pulpcore-client/models/async_operation_response.py +88 -0
- services-pulpcore-client/models/composite_content_guard.py +98 -0
- services-pulpcore-client/models/composite_content_guard_response.py +114 -0
- services-pulpcore-client/models/content_app_status_response.py +99 -0
- services-pulpcore-client/models/content_guard_response.py +112 -0
- services-pulpcore-client/models/content_redirect_content_guard.py +96 -0
- services-pulpcore-client/models/content_redirect_content_guard_response.py +112 -0
- services-pulpcore-client/models/content_settings_response.py +95 -0
- services-pulpcore-client/models/content_summary_response.py +92 -0
- services-pulpcore-client/models/database_connection_response.py +88 -0
- services-pulpcore-client/models/distribution_response.py +133 -0
- services-pulpcore-client/models/domain.py +114 -0
- services-pulpcore-client/models/domain_backend_migrator.py +91 -0
- services-pulpcore-client/models/domain_response.py +131 -0
- services-pulpcore-client/models/evaluation_response.py +92 -0
- services-pulpcore-client/models/filesystem_export.py +99 -0
- services-pulpcore-client/models/filesystem_export_response.py +118 -0
- services-pulpcore-client/models/filesystem_exporter.py +94 -0
- services-pulpcore-client/models/filesystem_exporter_response.py +110 -0
- services-pulpcore-client/models/generic_remote_response.py +199 -0
- services-pulpcore-client/models/generic_remote_response_hidden_fields_inner.py +90 -0
- services-pulpcore-client/models/generic_remote_response_policy_enum.py +39 -0
- services-pulpcore-client/models/group.py +89 -0
- services-pulpcore-client/models/group_progress_report_response.py +111 -0
- services-pulpcore-client/models/group_response.py +101 -0
- services-pulpcore-client/models/group_role.py +110 -0
- services-pulpcore-client/models/group_role_response.py +134 -0
- services-pulpcore-client/models/group_user.py +89 -0
- services-pulpcore-client/models/group_user_response.py +97 -0
- services-pulpcore-client/models/header_content_guard.py +107 -0
- services-pulpcore-client/models/header_content_guard_response.py +123 -0
- services-pulpcore-client/models/import_response.py +107 -0
- services-pulpcore-client/models/login_response.py +98 -0
- services-pulpcore-client/models/method_enum.py +39 -0
- services-pulpcore-client/models/minimal_task_response.py +125 -0
- services-pulpcore-client/models/multiple_artifact_content_response.py +107 -0
- services-pulpcore-client/models/my_permissions_response.py +88 -0
- services-pulpcore-client/models/nested_open_pgp_public_subkey.py +92 -0
- services-pulpcore-client/models/nested_open_pgp_public_subkey_response.py +104 -0
- services-pulpcore-client/models/nested_open_pgp_signature.py +120 -0
- services-pulpcore-client/models/nested_open_pgp_signature_response.py +124 -0
- services-pulpcore-client/models/nested_open_pgp_user_attribute.py +89 -0
- services-pulpcore-client/models/nested_open_pgp_user_attribute_response.py +101 -0
- services-pulpcore-client/models/nested_open_pgp_user_id.py +89 -0
- services-pulpcore-client/models/nested_open_pgp_user_id_response.py +100 -0
- services-pulpcore-client/models/nested_role.py +93 -0
- services-pulpcore-client/models/nested_role_response.py +92 -0
- services-pulpcore-client/models/object_roles_response.py +96 -0
- services-pulpcore-client/models/open_pgp_distribution.py +116 -0
- services-pulpcore-client/models/open_pgp_distribution_response.py +140 -0
- services-pulpcore-client/models/open_pgp_keyring.py +112 -0
- services-pulpcore-client/models/open_pgp_keyring_response.py +137 -0
- services-pulpcore-client/models/open_pgp_public_key_response.py +150 -0
- services-pulpcore-client/models/open_pgp_public_subkey_response.py +126 -0
- services-pulpcore-client/models/open_pgp_signature_response.py +146 -0
- services-pulpcore-client/models/open_pgp_user_attribute_response.py +124 -0
- services-pulpcore-client/models/open_pgp_user_id_response.py +123 -0
- services-pulpcore-client/models/orphans_cleanup.py +96 -0
- services-pulpcore-client/models/paginated_access_policy_response_list.py +112 -0
- services-pulpcore-client/models/paginated_artifact_distribution_response_list.py +112 -0
- services-pulpcore-client/models/paginated_artifact_response_list.py +112 -0
- services-pulpcore-client/models/paginated_composite_content_guard_response_list.py +112 -0
- services-pulpcore-client/models/paginated_content_guard_response_list.py +112 -0
- services-pulpcore-client/models/paginated_content_redirect_content_guard_response_list.py +112 -0
- services-pulpcore-client/models/paginated_distribution_response_list.py +112 -0
- services-pulpcore-client/models/paginated_domain_response_list.py +112 -0
- services-pulpcore-client/models/paginated_filesystem_export_response_list.py +112 -0
- services-pulpcore-client/models/paginated_filesystem_exporter_response_list.py +112 -0
- services-pulpcore-client/models/paginated_generic_remote_response_list.py +112 -0
- services-pulpcore-client/models/paginated_group_response_list.py +112 -0
- services-pulpcore-client/models/paginated_group_role_response_list.py +112 -0
- services-pulpcore-client/models/paginated_group_user_response_list.py +112 -0
- services-pulpcore-client/models/paginated_header_content_guard_response_list.py +112 -0
- services-pulpcore-client/models/paginated_import_response_list.py +112 -0
- services-pulpcore-client/models/paginated_multiple_artifact_content_response_list.py +112 -0
- services-pulpcore-client/models/paginated_open_pgp_distribution_response_list.py +112 -0
- services-pulpcore-client/models/paginated_open_pgp_keyring_response_list.py +112 -0
- services-pulpcore-client/models/paginated_open_pgp_public_key_response_list.py +112 -0
- services-pulpcore-client/models/paginated_open_pgp_public_subkey_response_list.py +112 -0
- services-pulpcore-client/models/paginated_open_pgp_signature_response_list.py +112 -0
- services-pulpcore-client/models/paginated_open_pgp_user_attribute_response_list.py +112 -0
- services-pulpcore-client/models/paginated_open_pgp_user_id_response_list.py +112 -0
- services-pulpcore-client/models/paginated_publication_response_list.py +112 -0
- services-pulpcore-client/models/paginated_pulp_export_response_list.py +112 -0
- services-pulpcore-client/models/paginated_pulp_exporter_response_list.py +112 -0
- services-pulpcore-client/models/paginated_pulp_importer_response_list.py +112 -0
- services-pulpcore-client/models/paginated_rbac_content_guard_response_list.py +112 -0
- services-pulpcore-client/models/paginated_repository_response_list.py +112 -0
- services-pulpcore-client/models/paginated_repository_version_response_list.py +112 -0
- services-pulpcore-client/models/paginated_role_response_list.py +112 -0
- services-pulpcore-client/models/paginated_signing_service_response_list.py +112 -0
- services-pulpcore-client/models/paginated_task_group_response_list.py +112 -0
- services-pulpcore-client/models/paginated_task_response_list.py +112 -0
- services-pulpcore-client/models/paginated_task_schedule_response_list.py +112 -0
- services-pulpcore-client/models/paginated_upload_response_list.py +112 -0
- services-pulpcore-client/models/paginated_upstream_pulp_response_list.py +112 -0
- services-pulpcore-client/models/paginated_user_response_list.py +112 -0
- services-pulpcore-client/models/paginated_user_role_response_list.py +112 -0
- services-pulpcore-client/models/paginated_worker_response_list.py +112 -0
- services-pulpcore-client/models/patched_access_policy.py +94 -0
- services-pulpcore-client/models/patched_composite_content_guard.py +98 -0
- services-pulpcore-client/models/patched_content_redirect_content_guard.py +96 -0
- services-pulpcore-client/models/patched_domain.py +117 -0
- services-pulpcore-client/models/patched_filesystem_exporter.py +94 -0
- services-pulpcore-client/models/patched_group.py +89 -0
- services-pulpcore-client/models/patched_header_content_guard.py +107 -0
- services-pulpcore-client/models/patched_open_pgp_distribution.py +116 -0
- services-pulpcore-client/models/patched_open_pgp_keyring.py +112 -0
- services-pulpcore-client/models/patched_pulp_exporter.py +100 -0
- services-pulpcore-client/models/patched_pulp_importer.py +91 -0
- services-pulpcore-client/models/patched_rbac_content_guard.py +96 -0
- services-pulpcore-client/models/patched_role.py +98 -0
- services-pulpcore-client/models/patched_task_cancel.py +89 -0
- services-pulpcore-client/models/patched_upstream_pulp.py +147 -0
- services-pulpcore-client/models/patched_user.py +106 -0
- services-pulpcore-client/models/policy357_enum.py +39 -0
- services-pulpcore-client/models/profile_artifact_response.py +88 -0
- services-pulpcore-client/models/progress_report_response.py +115 -0
- services-pulpcore-client/models/publication_response.py +107 -0
- services-pulpcore-client/models/pulp_export.py +104 -0
- services-pulpcore-client/models/pulp_export_response.py +126 -0
- services-pulpcore-client/models/pulp_exporter.py +100 -0
- services-pulpcore-client/models/pulp_exporter_response.py +116 -0
- services-pulpcore-client/models/pulp_import.py +93 -0
- services-pulpcore-client/models/pulp_import_check.py +93 -0
- services-pulpcore-client/models/pulp_import_check_response.py +102 -0
- services-pulpcore-client/models/pulp_importer.py +91 -0
- services-pulpcore-client/models/pulp_importer_response.py +107 -0
- services-pulpcore-client/models/purge.py +92 -0
- services-pulpcore-client/models/rbac_content_guard.py +96 -0
- services-pulpcore-client/models/rbac_content_guard_response.py +136 -0
- services-pulpcore-client/models/reclaim_space.py +90 -0
- services-pulpcore-client/models/redis_connection_response.py +88 -0
- services-pulpcore-client/models/repair.py +88 -0
- services-pulpcore-client/models/repository_add_remove_content.py +93 -0
- services-pulpcore-client/models/repository_response.py +137 -0
- services-pulpcore-client/models/repository_version_response.py +121 -0
- services-pulpcore-client/models/role.py +98 -0
- services-pulpcore-client/models/role_response.py +118 -0
- services-pulpcore-client/models/set_label.py +103 -0
- services-pulpcore-client/models/set_label_response.py +103 -0
- services-pulpcore-client/models/signing_service_response.py +111 -0
- services-pulpcore-client/models/states_enum.py +40 -0
- services-pulpcore-client/models/status_response.py +152 -0
- services-pulpcore-client/models/storage_class_enum.py +40 -0
- services-pulpcore-client/models/storage_response.py +108 -0
- services-pulpcore-client/models/task_group_operation_response.py +88 -0
- services-pulpcore-client/models/task_group_response.py +150 -0
- services-pulpcore-client/models/task_response.py +167 -0
- services-pulpcore-client/models/task_schedule_response.py +127 -0
- services-pulpcore-client/models/unset_label.py +96 -0
- services-pulpcore-client/models/unset_label_response.py +100 -0
- services-pulpcore-client/models/upload.py +88 -0
- services-pulpcore-client/models/upload_chunk_response.py +94 -0
- services-pulpcore-client/models/upload_commit.py +89 -0
- services-pulpcore-client/models/upload_detail_response.py +121 -0
- services-pulpcore-client/models/upload_response.py +109 -0
- services-pulpcore-client/models/upstream_pulp.py +147 -0
- services-pulpcore-client/models/upstream_pulp_response.py +158 -0
- services-pulpcore-client/models/user.py +106 -0
- services-pulpcore-client/models/user_group.py +89 -0
- services-pulpcore-client/models/user_group_response.py +97 -0
- services-pulpcore-client/models/user_response.py +140 -0
- services-pulpcore-client/models/user_role.py +110 -0
- services-pulpcore-client/models/user_role_response.py +134 -0
- services-pulpcore-client/models/version_response.py +96 -0
- services-pulpcore-client/models/worker_response.py +119 -0
- services-pulpcore-client/py.typed +0 -0
- services-pulpcore-client/rest.py +258 -0
|
@@ -0,0 +1,4546 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Pulp 3 API
|
|
5
|
+
|
|
6
|
+
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v3
|
|
9
|
+
Contact: pulp-list@redhat.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from crc-pulpcore-client.models.async_operation_response import AsyncOperationResponse
|
|
24
|
+
from crc-pulpcore-client.models.my_permissions_response import MyPermissionsResponse
|
|
25
|
+
from crc-pulpcore-client.models.nested_role import NestedRole
|
|
26
|
+
from crc-pulpcore-client.models.nested_role_response import NestedRoleResponse
|
|
27
|
+
from crc-pulpcore-client.models.object_roles_response import ObjectRolesResponse
|
|
28
|
+
from crc-pulpcore-client.models.open_pgp_keyring import OpenPGPKeyring
|
|
29
|
+
from crc-pulpcore-client.models.open_pgp_keyring_response import OpenPGPKeyringResponse
|
|
30
|
+
from crc-pulpcore-client.models.paginated_open_pgp_keyring_response_list import PaginatedOpenPGPKeyringResponseList
|
|
31
|
+
from crc-pulpcore-client.models.patched_open_pgp_keyring import PatchedOpenPGPKeyring
|
|
32
|
+
from crc-pulpcore-client.models.repository_add_remove_content import RepositoryAddRemoveContent
|
|
33
|
+
from crc-pulpcore-client.models.set_label import SetLabel
|
|
34
|
+
from crc-pulpcore-client.models.set_label_response import SetLabelResponse
|
|
35
|
+
from crc-pulpcore-client.models.unset_label import UnsetLabel
|
|
36
|
+
from crc-pulpcore-client.models.unset_label_response import UnsetLabelResponse
|
|
37
|
+
|
|
38
|
+
from crc-pulpcore-client.api_client import ApiClient, RequestSerialized
|
|
39
|
+
from crc-pulpcore-client.api_response import ApiResponse
|
|
40
|
+
from crc-pulpcore-client.rest import RESTResponseType
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class RepositoriesOpenpgpKeyringApi:
|
|
44
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
45
|
+
Ref: https://openapi-generator.tech
|
|
46
|
+
|
|
47
|
+
Do not edit the class manually.
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
def __init__(self, api_client=None) -> None:
|
|
51
|
+
if api_client is None:
|
|
52
|
+
api_client = ApiClient.get_default()
|
|
53
|
+
self.api_client = api_client
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
@validate_call
|
|
57
|
+
def add_role(
|
|
58
|
+
self,
|
|
59
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
60
|
+
nested_role: NestedRole,
|
|
61
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
62
|
+
_request_timeout: Union[
|
|
63
|
+
None,
|
|
64
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
65
|
+
Tuple[
|
|
66
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
67
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
68
|
+
]
|
|
69
|
+
] = None,
|
|
70
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
71
|
+
_content_type: Optional[StrictStr] = None,
|
|
72
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
73
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
74
|
+
) -> NestedRoleResponse:
|
|
75
|
+
"""Add a role
|
|
76
|
+
|
|
77
|
+
Add a role for this object to users/groups.
|
|
78
|
+
|
|
79
|
+
:param open_p_g_p_keyring_href: (required)
|
|
80
|
+
:type open_p_g_p_keyring_href: str
|
|
81
|
+
:param nested_role: (required)
|
|
82
|
+
:type nested_role: NestedRole
|
|
83
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
84
|
+
:type x_task_diagnostics: List[str]
|
|
85
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
86
|
+
number provided, it will be total request
|
|
87
|
+
timeout. It can also be a pair (tuple) of
|
|
88
|
+
(connection, read) timeouts.
|
|
89
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
90
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
91
|
+
request; this effectively ignores the
|
|
92
|
+
authentication in the spec for a single request.
|
|
93
|
+
:type _request_auth: dict, optional
|
|
94
|
+
:param _content_type: force content-type for the request.
|
|
95
|
+
:type _content_type: str, Optional
|
|
96
|
+
:param _headers: set to override the headers for a single
|
|
97
|
+
request; this effectively ignores the headers
|
|
98
|
+
in the spec for a single request.
|
|
99
|
+
:type _headers: dict, optional
|
|
100
|
+
:param _host_index: set to override the host_index for a single
|
|
101
|
+
request; this effectively ignores the host_index
|
|
102
|
+
in the spec for a single request.
|
|
103
|
+
:type _host_index: int, optional
|
|
104
|
+
:return: Returns the result object.
|
|
105
|
+
""" # noqa: E501
|
|
106
|
+
|
|
107
|
+
_param = self._add_role_serialize(
|
|
108
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
109
|
+
nested_role=nested_role,
|
|
110
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
111
|
+
_request_auth=_request_auth,
|
|
112
|
+
_content_type=_content_type,
|
|
113
|
+
_headers=_headers,
|
|
114
|
+
_host_index=_host_index
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
118
|
+
'201': "NestedRoleResponse",
|
|
119
|
+
}
|
|
120
|
+
response_data = self.api_client.call_api(
|
|
121
|
+
*_param,
|
|
122
|
+
_request_timeout=_request_timeout
|
|
123
|
+
)
|
|
124
|
+
response_data.read()
|
|
125
|
+
return self.api_client.response_deserialize(
|
|
126
|
+
response_data=response_data,
|
|
127
|
+
response_types_map=_response_types_map,
|
|
128
|
+
).data
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
@validate_call
|
|
132
|
+
def add_role_with_http_info(
|
|
133
|
+
self,
|
|
134
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
135
|
+
nested_role: NestedRole,
|
|
136
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
137
|
+
_request_timeout: Union[
|
|
138
|
+
None,
|
|
139
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
140
|
+
Tuple[
|
|
141
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
142
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
143
|
+
]
|
|
144
|
+
] = None,
|
|
145
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
146
|
+
_content_type: Optional[StrictStr] = None,
|
|
147
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
148
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
149
|
+
) -> ApiResponse[NestedRoleResponse]:
|
|
150
|
+
"""Add a role
|
|
151
|
+
|
|
152
|
+
Add a role for this object to users/groups.
|
|
153
|
+
|
|
154
|
+
:param open_p_g_p_keyring_href: (required)
|
|
155
|
+
:type open_p_g_p_keyring_href: str
|
|
156
|
+
:param nested_role: (required)
|
|
157
|
+
:type nested_role: NestedRole
|
|
158
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
159
|
+
:type x_task_diagnostics: List[str]
|
|
160
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
161
|
+
number provided, it will be total request
|
|
162
|
+
timeout. It can also be a pair (tuple) of
|
|
163
|
+
(connection, read) timeouts.
|
|
164
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
165
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
166
|
+
request; this effectively ignores the
|
|
167
|
+
authentication in the spec for a single request.
|
|
168
|
+
:type _request_auth: dict, optional
|
|
169
|
+
:param _content_type: force content-type for the request.
|
|
170
|
+
:type _content_type: str, Optional
|
|
171
|
+
:param _headers: set to override the headers for a single
|
|
172
|
+
request; this effectively ignores the headers
|
|
173
|
+
in the spec for a single request.
|
|
174
|
+
:type _headers: dict, optional
|
|
175
|
+
:param _host_index: set to override the host_index for a single
|
|
176
|
+
request; this effectively ignores the host_index
|
|
177
|
+
in the spec for a single request.
|
|
178
|
+
:type _host_index: int, optional
|
|
179
|
+
:return: Returns the result object.
|
|
180
|
+
""" # noqa: E501
|
|
181
|
+
|
|
182
|
+
_param = self._add_role_serialize(
|
|
183
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
184
|
+
nested_role=nested_role,
|
|
185
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
186
|
+
_request_auth=_request_auth,
|
|
187
|
+
_content_type=_content_type,
|
|
188
|
+
_headers=_headers,
|
|
189
|
+
_host_index=_host_index
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
193
|
+
'201': "NestedRoleResponse",
|
|
194
|
+
}
|
|
195
|
+
response_data = self.api_client.call_api(
|
|
196
|
+
*_param,
|
|
197
|
+
_request_timeout=_request_timeout
|
|
198
|
+
)
|
|
199
|
+
response_data.read()
|
|
200
|
+
return self.api_client.response_deserialize(
|
|
201
|
+
response_data=response_data,
|
|
202
|
+
response_types_map=_response_types_map,
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
@validate_call
|
|
207
|
+
def add_role_without_preload_content(
|
|
208
|
+
self,
|
|
209
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
210
|
+
nested_role: NestedRole,
|
|
211
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
212
|
+
_request_timeout: Union[
|
|
213
|
+
None,
|
|
214
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
215
|
+
Tuple[
|
|
216
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
217
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
218
|
+
]
|
|
219
|
+
] = None,
|
|
220
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
221
|
+
_content_type: Optional[StrictStr] = None,
|
|
222
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
223
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
224
|
+
) -> RESTResponseType:
|
|
225
|
+
"""Add a role
|
|
226
|
+
|
|
227
|
+
Add a role for this object to users/groups.
|
|
228
|
+
|
|
229
|
+
:param open_p_g_p_keyring_href: (required)
|
|
230
|
+
:type open_p_g_p_keyring_href: str
|
|
231
|
+
:param nested_role: (required)
|
|
232
|
+
:type nested_role: NestedRole
|
|
233
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
234
|
+
:type x_task_diagnostics: List[str]
|
|
235
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
236
|
+
number provided, it will be total request
|
|
237
|
+
timeout. It can also be a pair (tuple) of
|
|
238
|
+
(connection, read) timeouts.
|
|
239
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
240
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
241
|
+
request; this effectively ignores the
|
|
242
|
+
authentication in the spec for a single request.
|
|
243
|
+
:type _request_auth: dict, optional
|
|
244
|
+
:param _content_type: force content-type for the request.
|
|
245
|
+
:type _content_type: str, Optional
|
|
246
|
+
:param _headers: set to override the headers for a single
|
|
247
|
+
request; this effectively ignores the headers
|
|
248
|
+
in the spec for a single request.
|
|
249
|
+
:type _headers: dict, optional
|
|
250
|
+
:param _host_index: set to override the host_index for a single
|
|
251
|
+
request; this effectively ignores the host_index
|
|
252
|
+
in the spec for a single request.
|
|
253
|
+
:type _host_index: int, optional
|
|
254
|
+
:return: Returns the result object.
|
|
255
|
+
""" # noqa: E501
|
|
256
|
+
|
|
257
|
+
_param = self._add_role_serialize(
|
|
258
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
259
|
+
nested_role=nested_role,
|
|
260
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
261
|
+
_request_auth=_request_auth,
|
|
262
|
+
_content_type=_content_type,
|
|
263
|
+
_headers=_headers,
|
|
264
|
+
_host_index=_host_index
|
|
265
|
+
)
|
|
266
|
+
|
|
267
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
268
|
+
'201': "NestedRoleResponse",
|
|
269
|
+
}
|
|
270
|
+
response_data = self.api_client.call_api(
|
|
271
|
+
*_param,
|
|
272
|
+
_request_timeout=_request_timeout
|
|
273
|
+
)
|
|
274
|
+
return response_data.response
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
def _add_role_serialize(
|
|
278
|
+
self,
|
|
279
|
+
open_p_g_p_keyring_href,
|
|
280
|
+
nested_role,
|
|
281
|
+
x_task_diagnostics,
|
|
282
|
+
_request_auth,
|
|
283
|
+
_content_type,
|
|
284
|
+
_headers,
|
|
285
|
+
_host_index,
|
|
286
|
+
) -> RequestSerialized:
|
|
287
|
+
|
|
288
|
+
_host = None
|
|
289
|
+
|
|
290
|
+
_collection_formats: Dict[str, str] = {
|
|
291
|
+
'X-Task-Diagnostics': 'csv',
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
_path_params: Dict[str, str] = {}
|
|
295
|
+
_query_params: List[Tuple[str, str]] = []
|
|
296
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
297
|
+
_form_params: List[Tuple[str, str]] = []
|
|
298
|
+
_files: Dict[
|
|
299
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
300
|
+
] = {}
|
|
301
|
+
_body_params: Optional[bytes] = None
|
|
302
|
+
|
|
303
|
+
# process the path parameters
|
|
304
|
+
if open_p_g_p_keyring_href is not None:
|
|
305
|
+
_path_params['open_p_g_p_keyring_href'] = open_p_g_p_keyring_href
|
|
306
|
+
# process the query parameters
|
|
307
|
+
# process the header parameters
|
|
308
|
+
if x_task_diagnostics is not None:
|
|
309
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
310
|
+
# process the form parameters
|
|
311
|
+
# process the body parameter
|
|
312
|
+
if nested_role is not None:
|
|
313
|
+
_body_params = nested_role
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
# set the HTTP header `Accept`
|
|
317
|
+
if 'Accept' not in _header_params:
|
|
318
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
319
|
+
[
|
|
320
|
+
'application/json'
|
|
321
|
+
]
|
|
322
|
+
)
|
|
323
|
+
|
|
324
|
+
# set the HTTP header `Content-Type`
|
|
325
|
+
if _content_type:
|
|
326
|
+
_header_params['Content-Type'] = _content_type
|
|
327
|
+
else:
|
|
328
|
+
_default_content_type = (
|
|
329
|
+
self.api_client.select_header_content_type(
|
|
330
|
+
[
|
|
331
|
+
'application/json',
|
|
332
|
+
'application/x-www-form-urlencoded',
|
|
333
|
+
'multipart/form-data'
|
|
334
|
+
]
|
|
335
|
+
)
|
|
336
|
+
)
|
|
337
|
+
if _default_content_type is not None:
|
|
338
|
+
_header_params['Content-Type'] = _default_content_type
|
|
339
|
+
|
|
340
|
+
# authentication setting
|
|
341
|
+
_auth_settings: List[str] = [
|
|
342
|
+
'json_header_remote_authentication',
|
|
343
|
+
'basicAuth',
|
|
344
|
+
'cookieAuth'
|
|
345
|
+
]
|
|
346
|
+
|
|
347
|
+
return self.api_client.param_serialize(
|
|
348
|
+
method='POST',
|
|
349
|
+
resource_path='{open_p_g_p_keyring_href}add_role/',
|
|
350
|
+
path_params=_path_params,
|
|
351
|
+
query_params=_query_params,
|
|
352
|
+
header_params=_header_params,
|
|
353
|
+
body=_body_params,
|
|
354
|
+
post_params=_form_params,
|
|
355
|
+
files=_files,
|
|
356
|
+
auth_settings=_auth_settings,
|
|
357
|
+
collection_formats=_collection_formats,
|
|
358
|
+
_host=_host,
|
|
359
|
+
_request_auth=_request_auth
|
|
360
|
+
)
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
@validate_call
|
|
366
|
+
def create(
|
|
367
|
+
self,
|
|
368
|
+
open_pgp_keyring: OpenPGPKeyring,
|
|
369
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
370
|
+
pulp_domain: StrictStr = "default",
|
|
371
|
+
_request_timeout: Union[
|
|
372
|
+
None,
|
|
373
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
374
|
+
Tuple[
|
|
375
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
376
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
377
|
+
]
|
|
378
|
+
] = None,
|
|
379
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
380
|
+
_content_type: Optional[StrictStr] = None,
|
|
381
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
382
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
383
|
+
) -> OpenPGPKeyringResponse:
|
|
384
|
+
"""Create an open pgp keyring
|
|
385
|
+
|
|
386
|
+
A ViewSet for an ordinary repository.
|
|
387
|
+
|
|
388
|
+
:param pulp_domain: (required)
|
|
389
|
+
:type pulp_domain: str
|
|
390
|
+
:param open_pgp_keyring: (required)
|
|
391
|
+
:type open_pgp_keyring: OpenPGPKeyring
|
|
392
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
393
|
+
:type x_task_diagnostics: List[str]
|
|
394
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
395
|
+
number provided, it will be total request
|
|
396
|
+
timeout. It can also be a pair (tuple) of
|
|
397
|
+
(connection, read) timeouts.
|
|
398
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
399
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
400
|
+
request; this effectively ignores the
|
|
401
|
+
authentication in the spec for a single request.
|
|
402
|
+
:type _request_auth: dict, optional
|
|
403
|
+
:param _content_type: force content-type for the request.
|
|
404
|
+
:type _content_type: str, Optional
|
|
405
|
+
:param _headers: set to override the headers for a single
|
|
406
|
+
request; this effectively ignores the headers
|
|
407
|
+
in the spec for a single request.
|
|
408
|
+
:type _headers: dict, optional
|
|
409
|
+
:param _host_index: set to override the host_index for a single
|
|
410
|
+
request; this effectively ignores the host_index
|
|
411
|
+
in the spec for a single request.
|
|
412
|
+
:type _host_index: int, optional
|
|
413
|
+
:return: Returns the result object.
|
|
414
|
+
""" # noqa: E501
|
|
415
|
+
|
|
416
|
+
_param = self._create_serialize(
|
|
417
|
+
pulp_domain=pulp_domain,
|
|
418
|
+
open_pgp_keyring=open_pgp_keyring,
|
|
419
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
420
|
+
_request_auth=_request_auth,
|
|
421
|
+
_content_type=_content_type,
|
|
422
|
+
_headers=_headers,
|
|
423
|
+
_host_index=_host_index
|
|
424
|
+
)
|
|
425
|
+
|
|
426
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
427
|
+
'201': "OpenPGPKeyringResponse",
|
|
428
|
+
}
|
|
429
|
+
response_data = self.api_client.call_api(
|
|
430
|
+
*_param,
|
|
431
|
+
_request_timeout=_request_timeout
|
|
432
|
+
)
|
|
433
|
+
response_data.read()
|
|
434
|
+
return self.api_client.response_deserialize(
|
|
435
|
+
response_data=response_data,
|
|
436
|
+
response_types_map=_response_types_map,
|
|
437
|
+
).data
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
@validate_call
|
|
441
|
+
def create_with_http_info(
|
|
442
|
+
self,
|
|
443
|
+
open_pgp_keyring: OpenPGPKeyring,
|
|
444
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
445
|
+
pulp_domain: StrictStr = "default",
|
|
446
|
+
_request_timeout: Union[
|
|
447
|
+
None,
|
|
448
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
449
|
+
Tuple[
|
|
450
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
451
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
452
|
+
]
|
|
453
|
+
] = None,
|
|
454
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
455
|
+
_content_type: Optional[StrictStr] = None,
|
|
456
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
457
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
458
|
+
) -> ApiResponse[OpenPGPKeyringResponse]:
|
|
459
|
+
"""Create an open pgp keyring
|
|
460
|
+
|
|
461
|
+
A ViewSet for an ordinary repository.
|
|
462
|
+
|
|
463
|
+
:param pulp_domain: (required)
|
|
464
|
+
:type pulp_domain: str
|
|
465
|
+
:param open_pgp_keyring: (required)
|
|
466
|
+
:type open_pgp_keyring: OpenPGPKeyring
|
|
467
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
468
|
+
:type x_task_diagnostics: List[str]
|
|
469
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
470
|
+
number provided, it will be total request
|
|
471
|
+
timeout. It can also be a pair (tuple) of
|
|
472
|
+
(connection, read) timeouts.
|
|
473
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
474
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
475
|
+
request; this effectively ignores the
|
|
476
|
+
authentication in the spec for a single request.
|
|
477
|
+
:type _request_auth: dict, optional
|
|
478
|
+
:param _content_type: force content-type for the request.
|
|
479
|
+
:type _content_type: str, Optional
|
|
480
|
+
:param _headers: set to override the headers for a single
|
|
481
|
+
request; this effectively ignores the headers
|
|
482
|
+
in the spec for a single request.
|
|
483
|
+
:type _headers: dict, optional
|
|
484
|
+
:param _host_index: set to override the host_index for a single
|
|
485
|
+
request; this effectively ignores the host_index
|
|
486
|
+
in the spec for a single request.
|
|
487
|
+
:type _host_index: int, optional
|
|
488
|
+
:return: Returns the result object.
|
|
489
|
+
""" # noqa: E501
|
|
490
|
+
|
|
491
|
+
_param = self._create_serialize(
|
|
492
|
+
pulp_domain=pulp_domain,
|
|
493
|
+
open_pgp_keyring=open_pgp_keyring,
|
|
494
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
495
|
+
_request_auth=_request_auth,
|
|
496
|
+
_content_type=_content_type,
|
|
497
|
+
_headers=_headers,
|
|
498
|
+
_host_index=_host_index
|
|
499
|
+
)
|
|
500
|
+
|
|
501
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
502
|
+
'201': "OpenPGPKeyringResponse",
|
|
503
|
+
}
|
|
504
|
+
response_data = self.api_client.call_api(
|
|
505
|
+
*_param,
|
|
506
|
+
_request_timeout=_request_timeout
|
|
507
|
+
)
|
|
508
|
+
response_data.read()
|
|
509
|
+
return self.api_client.response_deserialize(
|
|
510
|
+
response_data=response_data,
|
|
511
|
+
response_types_map=_response_types_map,
|
|
512
|
+
)
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
@validate_call
|
|
516
|
+
def create_without_preload_content(
|
|
517
|
+
self,
|
|
518
|
+
open_pgp_keyring: OpenPGPKeyring,
|
|
519
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
520
|
+
pulp_domain: StrictStr = "default",
|
|
521
|
+
_request_timeout: Union[
|
|
522
|
+
None,
|
|
523
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
524
|
+
Tuple[
|
|
525
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
526
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
527
|
+
]
|
|
528
|
+
] = None,
|
|
529
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
530
|
+
_content_type: Optional[StrictStr] = None,
|
|
531
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
532
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
533
|
+
) -> RESTResponseType:
|
|
534
|
+
"""Create an open pgp keyring
|
|
535
|
+
|
|
536
|
+
A ViewSet for an ordinary repository.
|
|
537
|
+
|
|
538
|
+
:param pulp_domain: (required)
|
|
539
|
+
:type pulp_domain: str
|
|
540
|
+
:param open_pgp_keyring: (required)
|
|
541
|
+
:type open_pgp_keyring: OpenPGPKeyring
|
|
542
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
543
|
+
:type x_task_diagnostics: List[str]
|
|
544
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
545
|
+
number provided, it will be total request
|
|
546
|
+
timeout. It can also be a pair (tuple) of
|
|
547
|
+
(connection, read) timeouts.
|
|
548
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
549
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
550
|
+
request; this effectively ignores the
|
|
551
|
+
authentication in the spec for a single request.
|
|
552
|
+
:type _request_auth: dict, optional
|
|
553
|
+
:param _content_type: force content-type for the request.
|
|
554
|
+
:type _content_type: str, Optional
|
|
555
|
+
:param _headers: set to override the headers for a single
|
|
556
|
+
request; this effectively ignores the headers
|
|
557
|
+
in the spec for a single request.
|
|
558
|
+
:type _headers: dict, optional
|
|
559
|
+
:param _host_index: set to override the host_index for a single
|
|
560
|
+
request; this effectively ignores the host_index
|
|
561
|
+
in the spec for a single request.
|
|
562
|
+
:type _host_index: int, optional
|
|
563
|
+
:return: Returns the result object.
|
|
564
|
+
""" # noqa: E501
|
|
565
|
+
|
|
566
|
+
_param = self._create_serialize(
|
|
567
|
+
pulp_domain=pulp_domain,
|
|
568
|
+
open_pgp_keyring=open_pgp_keyring,
|
|
569
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
570
|
+
_request_auth=_request_auth,
|
|
571
|
+
_content_type=_content_type,
|
|
572
|
+
_headers=_headers,
|
|
573
|
+
_host_index=_host_index
|
|
574
|
+
)
|
|
575
|
+
|
|
576
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
577
|
+
'201': "OpenPGPKeyringResponse",
|
|
578
|
+
}
|
|
579
|
+
response_data = self.api_client.call_api(
|
|
580
|
+
*_param,
|
|
581
|
+
_request_timeout=_request_timeout
|
|
582
|
+
)
|
|
583
|
+
return response_data.response
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
def _create_serialize(
|
|
587
|
+
self,
|
|
588
|
+
pulp_domain,
|
|
589
|
+
open_pgp_keyring,
|
|
590
|
+
x_task_diagnostics,
|
|
591
|
+
_request_auth,
|
|
592
|
+
_content_type,
|
|
593
|
+
_headers,
|
|
594
|
+
_host_index,
|
|
595
|
+
) -> RequestSerialized:
|
|
596
|
+
|
|
597
|
+
_host = None
|
|
598
|
+
|
|
599
|
+
_collection_formats: Dict[str, str] = {
|
|
600
|
+
'X-Task-Diagnostics': 'csv',
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
_path_params: Dict[str, str] = {}
|
|
604
|
+
_query_params: List[Tuple[str, str]] = []
|
|
605
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
606
|
+
_form_params: List[Tuple[str, str]] = []
|
|
607
|
+
_files: Dict[
|
|
608
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
609
|
+
] = {}
|
|
610
|
+
_body_params: Optional[bytes] = None
|
|
611
|
+
|
|
612
|
+
# process the path parameters
|
|
613
|
+
if pulp_domain is not None:
|
|
614
|
+
_path_params['pulp_domain'] = pulp_domain
|
|
615
|
+
# process the query parameters
|
|
616
|
+
# process the header parameters
|
|
617
|
+
if x_task_diagnostics is not None:
|
|
618
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
619
|
+
# process the form parameters
|
|
620
|
+
# process the body parameter
|
|
621
|
+
if open_pgp_keyring is not None:
|
|
622
|
+
_body_params = open_pgp_keyring
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
# set the HTTP header `Accept`
|
|
626
|
+
if 'Accept' not in _header_params:
|
|
627
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
628
|
+
[
|
|
629
|
+
'application/json'
|
|
630
|
+
]
|
|
631
|
+
)
|
|
632
|
+
|
|
633
|
+
# set the HTTP header `Content-Type`
|
|
634
|
+
if _content_type:
|
|
635
|
+
_header_params['Content-Type'] = _content_type
|
|
636
|
+
else:
|
|
637
|
+
_default_content_type = (
|
|
638
|
+
self.api_client.select_header_content_type(
|
|
639
|
+
[
|
|
640
|
+
'application/json',
|
|
641
|
+
'application/x-www-form-urlencoded',
|
|
642
|
+
'multipart/form-data'
|
|
643
|
+
]
|
|
644
|
+
)
|
|
645
|
+
)
|
|
646
|
+
if _default_content_type is not None:
|
|
647
|
+
_header_params['Content-Type'] = _default_content_type
|
|
648
|
+
|
|
649
|
+
# authentication setting
|
|
650
|
+
_auth_settings: List[str] = [
|
|
651
|
+
'json_header_remote_authentication',
|
|
652
|
+
'basicAuth',
|
|
653
|
+
'cookieAuth'
|
|
654
|
+
]
|
|
655
|
+
|
|
656
|
+
return self.api_client.param_serialize(
|
|
657
|
+
method='POST',
|
|
658
|
+
resource_path='/api/pulp/{pulp_domain}/api/v3/repositories/core/openpgp_keyring/',
|
|
659
|
+
path_params=_path_params,
|
|
660
|
+
query_params=_query_params,
|
|
661
|
+
header_params=_header_params,
|
|
662
|
+
body=_body_params,
|
|
663
|
+
post_params=_form_params,
|
|
664
|
+
files=_files,
|
|
665
|
+
auth_settings=_auth_settings,
|
|
666
|
+
collection_formats=_collection_formats,
|
|
667
|
+
_host=_host,
|
|
668
|
+
_request_auth=_request_auth
|
|
669
|
+
)
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
@validate_call
|
|
675
|
+
def delete(
|
|
676
|
+
self,
|
|
677
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
678
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
679
|
+
_request_timeout: Union[
|
|
680
|
+
None,
|
|
681
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
682
|
+
Tuple[
|
|
683
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
684
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
685
|
+
]
|
|
686
|
+
] = None,
|
|
687
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
688
|
+
_content_type: Optional[StrictStr] = None,
|
|
689
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
690
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
691
|
+
) -> AsyncOperationResponse:
|
|
692
|
+
"""Delete an open pgp keyring
|
|
693
|
+
|
|
694
|
+
Trigger an asynchronous delete task
|
|
695
|
+
|
|
696
|
+
:param open_p_g_p_keyring_href: (required)
|
|
697
|
+
:type open_p_g_p_keyring_href: str
|
|
698
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
699
|
+
:type x_task_diagnostics: List[str]
|
|
700
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
701
|
+
number provided, it will be total request
|
|
702
|
+
timeout. It can also be a pair (tuple) of
|
|
703
|
+
(connection, read) timeouts.
|
|
704
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
705
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
706
|
+
request; this effectively ignores the
|
|
707
|
+
authentication in the spec for a single request.
|
|
708
|
+
:type _request_auth: dict, optional
|
|
709
|
+
:param _content_type: force content-type for the request.
|
|
710
|
+
:type _content_type: str, Optional
|
|
711
|
+
:param _headers: set to override the headers for a single
|
|
712
|
+
request; this effectively ignores the headers
|
|
713
|
+
in the spec for a single request.
|
|
714
|
+
:type _headers: dict, optional
|
|
715
|
+
:param _host_index: set to override the host_index for a single
|
|
716
|
+
request; this effectively ignores the host_index
|
|
717
|
+
in the spec for a single request.
|
|
718
|
+
:type _host_index: int, optional
|
|
719
|
+
:return: Returns the result object.
|
|
720
|
+
""" # noqa: E501
|
|
721
|
+
|
|
722
|
+
_param = self._delete_serialize(
|
|
723
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
724
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
725
|
+
_request_auth=_request_auth,
|
|
726
|
+
_content_type=_content_type,
|
|
727
|
+
_headers=_headers,
|
|
728
|
+
_host_index=_host_index
|
|
729
|
+
)
|
|
730
|
+
|
|
731
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
732
|
+
'202': "AsyncOperationResponse",
|
|
733
|
+
}
|
|
734
|
+
response_data = self.api_client.call_api(
|
|
735
|
+
*_param,
|
|
736
|
+
_request_timeout=_request_timeout
|
|
737
|
+
)
|
|
738
|
+
response_data.read()
|
|
739
|
+
return self.api_client.response_deserialize(
|
|
740
|
+
response_data=response_data,
|
|
741
|
+
response_types_map=_response_types_map,
|
|
742
|
+
).data
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
@validate_call
|
|
746
|
+
def delete_with_http_info(
|
|
747
|
+
self,
|
|
748
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
749
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
750
|
+
_request_timeout: Union[
|
|
751
|
+
None,
|
|
752
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
753
|
+
Tuple[
|
|
754
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
755
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
756
|
+
]
|
|
757
|
+
] = None,
|
|
758
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
759
|
+
_content_type: Optional[StrictStr] = None,
|
|
760
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
761
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
762
|
+
) -> ApiResponse[AsyncOperationResponse]:
|
|
763
|
+
"""Delete an open pgp keyring
|
|
764
|
+
|
|
765
|
+
Trigger an asynchronous delete task
|
|
766
|
+
|
|
767
|
+
:param open_p_g_p_keyring_href: (required)
|
|
768
|
+
:type open_p_g_p_keyring_href: str
|
|
769
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
770
|
+
:type x_task_diagnostics: List[str]
|
|
771
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
772
|
+
number provided, it will be total request
|
|
773
|
+
timeout. It can also be a pair (tuple) of
|
|
774
|
+
(connection, read) timeouts.
|
|
775
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
776
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
777
|
+
request; this effectively ignores the
|
|
778
|
+
authentication in the spec for a single request.
|
|
779
|
+
:type _request_auth: dict, optional
|
|
780
|
+
:param _content_type: force content-type for the request.
|
|
781
|
+
:type _content_type: str, Optional
|
|
782
|
+
:param _headers: set to override the headers for a single
|
|
783
|
+
request; this effectively ignores the headers
|
|
784
|
+
in the spec for a single request.
|
|
785
|
+
:type _headers: dict, optional
|
|
786
|
+
:param _host_index: set to override the host_index for a single
|
|
787
|
+
request; this effectively ignores the host_index
|
|
788
|
+
in the spec for a single request.
|
|
789
|
+
:type _host_index: int, optional
|
|
790
|
+
:return: Returns the result object.
|
|
791
|
+
""" # noqa: E501
|
|
792
|
+
|
|
793
|
+
_param = self._delete_serialize(
|
|
794
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
795
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
796
|
+
_request_auth=_request_auth,
|
|
797
|
+
_content_type=_content_type,
|
|
798
|
+
_headers=_headers,
|
|
799
|
+
_host_index=_host_index
|
|
800
|
+
)
|
|
801
|
+
|
|
802
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
803
|
+
'202': "AsyncOperationResponse",
|
|
804
|
+
}
|
|
805
|
+
response_data = self.api_client.call_api(
|
|
806
|
+
*_param,
|
|
807
|
+
_request_timeout=_request_timeout
|
|
808
|
+
)
|
|
809
|
+
response_data.read()
|
|
810
|
+
return self.api_client.response_deserialize(
|
|
811
|
+
response_data=response_data,
|
|
812
|
+
response_types_map=_response_types_map,
|
|
813
|
+
)
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
@validate_call
|
|
817
|
+
def delete_without_preload_content(
|
|
818
|
+
self,
|
|
819
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
820
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
821
|
+
_request_timeout: Union[
|
|
822
|
+
None,
|
|
823
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
824
|
+
Tuple[
|
|
825
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
826
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
827
|
+
]
|
|
828
|
+
] = None,
|
|
829
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
830
|
+
_content_type: Optional[StrictStr] = None,
|
|
831
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
832
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
833
|
+
) -> RESTResponseType:
|
|
834
|
+
"""Delete an open pgp keyring
|
|
835
|
+
|
|
836
|
+
Trigger an asynchronous delete task
|
|
837
|
+
|
|
838
|
+
:param open_p_g_p_keyring_href: (required)
|
|
839
|
+
:type open_p_g_p_keyring_href: str
|
|
840
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
841
|
+
:type x_task_diagnostics: List[str]
|
|
842
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
843
|
+
number provided, it will be total request
|
|
844
|
+
timeout. It can also be a pair (tuple) of
|
|
845
|
+
(connection, read) timeouts.
|
|
846
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
847
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
848
|
+
request; this effectively ignores the
|
|
849
|
+
authentication in the spec for a single request.
|
|
850
|
+
:type _request_auth: dict, optional
|
|
851
|
+
:param _content_type: force content-type for the request.
|
|
852
|
+
:type _content_type: str, Optional
|
|
853
|
+
:param _headers: set to override the headers for a single
|
|
854
|
+
request; this effectively ignores the headers
|
|
855
|
+
in the spec for a single request.
|
|
856
|
+
:type _headers: dict, optional
|
|
857
|
+
:param _host_index: set to override the host_index for a single
|
|
858
|
+
request; this effectively ignores the host_index
|
|
859
|
+
in the spec for a single request.
|
|
860
|
+
:type _host_index: int, optional
|
|
861
|
+
:return: Returns the result object.
|
|
862
|
+
""" # noqa: E501
|
|
863
|
+
|
|
864
|
+
_param = self._delete_serialize(
|
|
865
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
866
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
867
|
+
_request_auth=_request_auth,
|
|
868
|
+
_content_type=_content_type,
|
|
869
|
+
_headers=_headers,
|
|
870
|
+
_host_index=_host_index
|
|
871
|
+
)
|
|
872
|
+
|
|
873
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
874
|
+
'202': "AsyncOperationResponse",
|
|
875
|
+
}
|
|
876
|
+
response_data = self.api_client.call_api(
|
|
877
|
+
*_param,
|
|
878
|
+
_request_timeout=_request_timeout
|
|
879
|
+
)
|
|
880
|
+
return response_data.response
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
def _delete_serialize(
|
|
884
|
+
self,
|
|
885
|
+
open_p_g_p_keyring_href,
|
|
886
|
+
x_task_diagnostics,
|
|
887
|
+
_request_auth,
|
|
888
|
+
_content_type,
|
|
889
|
+
_headers,
|
|
890
|
+
_host_index,
|
|
891
|
+
) -> RequestSerialized:
|
|
892
|
+
|
|
893
|
+
_host = None
|
|
894
|
+
|
|
895
|
+
_collection_formats: Dict[str, str] = {
|
|
896
|
+
'X-Task-Diagnostics': 'csv',
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
_path_params: Dict[str, str] = {}
|
|
900
|
+
_query_params: List[Tuple[str, str]] = []
|
|
901
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
902
|
+
_form_params: List[Tuple[str, str]] = []
|
|
903
|
+
_files: Dict[
|
|
904
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
905
|
+
] = {}
|
|
906
|
+
_body_params: Optional[bytes] = None
|
|
907
|
+
|
|
908
|
+
# process the path parameters
|
|
909
|
+
if open_p_g_p_keyring_href is not None:
|
|
910
|
+
_path_params['open_p_g_p_keyring_href'] = open_p_g_p_keyring_href
|
|
911
|
+
# process the query parameters
|
|
912
|
+
# process the header parameters
|
|
913
|
+
if x_task_diagnostics is not None:
|
|
914
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
915
|
+
# process the form parameters
|
|
916
|
+
# process the body parameter
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
# set the HTTP header `Accept`
|
|
920
|
+
if 'Accept' not in _header_params:
|
|
921
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
922
|
+
[
|
|
923
|
+
'application/json'
|
|
924
|
+
]
|
|
925
|
+
)
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
# authentication setting
|
|
929
|
+
_auth_settings: List[str] = [
|
|
930
|
+
'json_header_remote_authentication',
|
|
931
|
+
'basicAuth',
|
|
932
|
+
'cookieAuth'
|
|
933
|
+
]
|
|
934
|
+
|
|
935
|
+
return self.api_client.param_serialize(
|
|
936
|
+
method='DELETE',
|
|
937
|
+
resource_path='{open_p_g_p_keyring_href}',
|
|
938
|
+
path_params=_path_params,
|
|
939
|
+
query_params=_query_params,
|
|
940
|
+
header_params=_header_params,
|
|
941
|
+
body=_body_params,
|
|
942
|
+
post_params=_form_params,
|
|
943
|
+
files=_files,
|
|
944
|
+
auth_settings=_auth_settings,
|
|
945
|
+
collection_formats=_collection_formats,
|
|
946
|
+
_host=_host,
|
|
947
|
+
_request_auth=_request_auth
|
|
948
|
+
)
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
@validate_call
|
|
954
|
+
def list(
|
|
955
|
+
self,
|
|
956
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
957
|
+
latest_with_content: Annotated[Optional[StrictStr], Field(description="Content Unit referenced by HREF/PRN")] = None,
|
|
958
|
+
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
959
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
960
|
+
name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
961
|
+
name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
962
|
+
name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
963
|
+
name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
|
|
964
|
+
name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
965
|
+
name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
966
|
+
name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
967
|
+
name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
968
|
+
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
969
|
+
ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
970
|
+
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
971
|
+
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
972
|
+
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
973
|
+
pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
|
|
974
|
+
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
975
|
+
remote: Annotated[Optional[StrictStr], Field(description="Foreign Key referenced by HREF")] = None,
|
|
976
|
+
retain_repo_versions: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions matches value")] = None,
|
|
977
|
+
retain_repo_versions__gt: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is greater than value")] = None,
|
|
978
|
+
retain_repo_versions__gte: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is greater than or equal to value")] = None,
|
|
979
|
+
retain_repo_versions__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where retain_repo_versions has a null value")] = None,
|
|
980
|
+
retain_repo_versions__lt: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is less than value")] = None,
|
|
981
|
+
retain_repo_versions__lte: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is less than or equal to value")] = None,
|
|
982
|
+
retain_repo_versions__ne: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions not equal to value")] = None,
|
|
983
|
+
retain_repo_versions__range: Annotated[Optional[List[StrictInt]], Field(description="Filter results where retain_repo_versions is between two comma separated values")] = None,
|
|
984
|
+
with_content: Annotated[Optional[StrictStr], Field(description="Content Unit referenced by HREF/PRN")] = None,
|
|
985
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
986
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
987
|
+
pulp_domain: StrictStr = "default",
|
|
988
|
+
_request_timeout: Union[
|
|
989
|
+
None,
|
|
990
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
991
|
+
Tuple[
|
|
992
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
993
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
994
|
+
]
|
|
995
|
+
] = None,
|
|
996
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
997
|
+
_content_type: Optional[StrictStr] = None,
|
|
998
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
999
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1000
|
+
) -> PaginatedOpenPGPKeyringResponseList:
|
|
1001
|
+
"""List open pgp keyrings
|
|
1002
|
+
|
|
1003
|
+
A ViewSet for an ordinary repository.
|
|
1004
|
+
|
|
1005
|
+
:param pulp_domain: (required)
|
|
1006
|
+
:type pulp_domain: str
|
|
1007
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1008
|
+
:type x_task_diagnostics: List[str]
|
|
1009
|
+
:param latest_with_content: Content Unit referenced by HREF/PRN
|
|
1010
|
+
:type latest_with_content: str
|
|
1011
|
+
:param limit: Number of results to return per page.
|
|
1012
|
+
:type limit: int
|
|
1013
|
+
:param name: Filter results where name matches value
|
|
1014
|
+
:type name: str
|
|
1015
|
+
:param name__contains: Filter results where name contains value
|
|
1016
|
+
:type name__contains: str
|
|
1017
|
+
:param name__icontains: Filter results where name contains value
|
|
1018
|
+
:type name__icontains: str
|
|
1019
|
+
:param name__iexact: Filter results where name matches value
|
|
1020
|
+
:type name__iexact: str
|
|
1021
|
+
:param name__in: Filter results where name is in a comma-separated list of values
|
|
1022
|
+
:type name__in: List[str]
|
|
1023
|
+
:param name__iregex: Filter results where name matches regex value
|
|
1024
|
+
:type name__iregex: str
|
|
1025
|
+
:param name__istartswith: Filter results where name starts with value
|
|
1026
|
+
:type name__istartswith: str
|
|
1027
|
+
:param name__regex: Filter results where name matches regex value
|
|
1028
|
+
:type name__regex: str
|
|
1029
|
+
:param name__startswith: Filter results where name starts with value
|
|
1030
|
+
:type name__startswith: str
|
|
1031
|
+
:param offset: The initial index from which to return the results.
|
|
1032
|
+
:type offset: int
|
|
1033
|
+
:param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
1034
|
+
:type ordering: List[str]
|
|
1035
|
+
:param prn__in: Multiple values may be separated by commas.
|
|
1036
|
+
:type prn__in: List[str]
|
|
1037
|
+
:param pulp_href__in: Multiple values may be separated by commas.
|
|
1038
|
+
:type pulp_href__in: List[str]
|
|
1039
|
+
:param pulp_id__in: Multiple values may be separated by commas.
|
|
1040
|
+
:type pulp_id__in: List[str]
|
|
1041
|
+
:param pulp_label_select: Filter labels by search string
|
|
1042
|
+
:type pulp_label_select: str
|
|
1043
|
+
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
1044
|
+
:type q: str
|
|
1045
|
+
:param remote: Foreign Key referenced by HREF
|
|
1046
|
+
:type remote: str
|
|
1047
|
+
:param retain_repo_versions: Filter results where retain_repo_versions matches value
|
|
1048
|
+
:type retain_repo_versions: int
|
|
1049
|
+
:param retain_repo_versions__gt: Filter results where retain_repo_versions is greater than value
|
|
1050
|
+
:type retain_repo_versions__gt: int
|
|
1051
|
+
:param retain_repo_versions__gte: Filter results where retain_repo_versions is greater than or equal to value
|
|
1052
|
+
:type retain_repo_versions__gte: int
|
|
1053
|
+
:param retain_repo_versions__isnull: Filter results where retain_repo_versions has a null value
|
|
1054
|
+
:type retain_repo_versions__isnull: bool
|
|
1055
|
+
:param retain_repo_versions__lt: Filter results where retain_repo_versions is less than value
|
|
1056
|
+
:type retain_repo_versions__lt: int
|
|
1057
|
+
:param retain_repo_versions__lte: Filter results where retain_repo_versions is less than or equal to value
|
|
1058
|
+
:type retain_repo_versions__lte: int
|
|
1059
|
+
:param retain_repo_versions__ne: Filter results where retain_repo_versions not equal to value
|
|
1060
|
+
:type retain_repo_versions__ne: int
|
|
1061
|
+
:param retain_repo_versions__range: Filter results where retain_repo_versions is between two comma separated values
|
|
1062
|
+
:type retain_repo_versions__range: List[int]
|
|
1063
|
+
:param with_content: Content Unit referenced by HREF/PRN
|
|
1064
|
+
:type with_content: str
|
|
1065
|
+
:param fields: A list of fields to include in the response.
|
|
1066
|
+
:type fields: List[str]
|
|
1067
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1068
|
+
:type exclude_fields: List[str]
|
|
1069
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1070
|
+
number provided, it will be total request
|
|
1071
|
+
timeout. It can also be a pair (tuple) of
|
|
1072
|
+
(connection, read) timeouts.
|
|
1073
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1074
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1075
|
+
request; this effectively ignores the
|
|
1076
|
+
authentication in the spec for a single request.
|
|
1077
|
+
:type _request_auth: dict, optional
|
|
1078
|
+
:param _content_type: force content-type for the request.
|
|
1079
|
+
:type _content_type: str, Optional
|
|
1080
|
+
:param _headers: set to override the headers for a single
|
|
1081
|
+
request; this effectively ignores the headers
|
|
1082
|
+
in the spec for a single request.
|
|
1083
|
+
:type _headers: dict, optional
|
|
1084
|
+
:param _host_index: set to override the host_index for a single
|
|
1085
|
+
request; this effectively ignores the host_index
|
|
1086
|
+
in the spec for a single request.
|
|
1087
|
+
:type _host_index: int, optional
|
|
1088
|
+
:return: Returns the result object.
|
|
1089
|
+
""" # noqa: E501
|
|
1090
|
+
|
|
1091
|
+
_param = self._list_serialize(
|
|
1092
|
+
pulp_domain=pulp_domain,
|
|
1093
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1094
|
+
latest_with_content=latest_with_content,
|
|
1095
|
+
limit=limit,
|
|
1096
|
+
name=name,
|
|
1097
|
+
name__contains=name__contains,
|
|
1098
|
+
name__icontains=name__icontains,
|
|
1099
|
+
name__iexact=name__iexact,
|
|
1100
|
+
name__in=name__in,
|
|
1101
|
+
name__iregex=name__iregex,
|
|
1102
|
+
name__istartswith=name__istartswith,
|
|
1103
|
+
name__regex=name__regex,
|
|
1104
|
+
name__startswith=name__startswith,
|
|
1105
|
+
offset=offset,
|
|
1106
|
+
ordering=ordering,
|
|
1107
|
+
prn__in=prn__in,
|
|
1108
|
+
pulp_href__in=pulp_href__in,
|
|
1109
|
+
pulp_id__in=pulp_id__in,
|
|
1110
|
+
pulp_label_select=pulp_label_select,
|
|
1111
|
+
q=q,
|
|
1112
|
+
remote=remote,
|
|
1113
|
+
retain_repo_versions=retain_repo_versions,
|
|
1114
|
+
retain_repo_versions__gt=retain_repo_versions__gt,
|
|
1115
|
+
retain_repo_versions__gte=retain_repo_versions__gte,
|
|
1116
|
+
retain_repo_versions__isnull=retain_repo_versions__isnull,
|
|
1117
|
+
retain_repo_versions__lt=retain_repo_versions__lt,
|
|
1118
|
+
retain_repo_versions__lte=retain_repo_versions__lte,
|
|
1119
|
+
retain_repo_versions__ne=retain_repo_versions__ne,
|
|
1120
|
+
retain_repo_versions__range=retain_repo_versions__range,
|
|
1121
|
+
with_content=with_content,
|
|
1122
|
+
fields=fields,
|
|
1123
|
+
exclude_fields=exclude_fields,
|
|
1124
|
+
_request_auth=_request_auth,
|
|
1125
|
+
_content_type=_content_type,
|
|
1126
|
+
_headers=_headers,
|
|
1127
|
+
_host_index=_host_index
|
|
1128
|
+
)
|
|
1129
|
+
|
|
1130
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1131
|
+
'200': "PaginatedOpenPGPKeyringResponseList",
|
|
1132
|
+
}
|
|
1133
|
+
response_data = self.api_client.call_api(
|
|
1134
|
+
*_param,
|
|
1135
|
+
_request_timeout=_request_timeout
|
|
1136
|
+
)
|
|
1137
|
+
response_data.read()
|
|
1138
|
+
return self.api_client.response_deserialize(
|
|
1139
|
+
response_data=response_data,
|
|
1140
|
+
response_types_map=_response_types_map,
|
|
1141
|
+
).data
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
@validate_call
|
|
1145
|
+
def list_with_http_info(
|
|
1146
|
+
self,
|
|
1147
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1148
|
+
latest_with_content: Annotated[Optional[StrictStr], Field(description="Content Unit referenced by HREF/PRN")] = None,
|
|
1149
|
+
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
1150
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
1151
|
+
name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
1152
|
+
name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
1153
|
+
name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
1154
|
+
name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
|
|
1155
|
+
name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
1156
|
+
name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
1157
|
+
name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
1158
|
+
name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
1159
|
+
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
1160
|
+
ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
1161
|
+
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1162
|
+
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1163
|
+
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1164
|
+
pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
|
|
1165
|
+
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
1166
|
+
remote: Annotated[Optional[StrictStr], Field(description="Foreign Key referenced by HREF")] = None,
|
|
1167
|
+
retain_repo_versions: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions matches value")] = None,
|
|
1168
|
+
retain_repo_versions__gt: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is greater than value")] = None,
|
|
1169
|
+
retain_repo_versions__gte: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is greater than or equal to value")] = None,
|
|
1170
|
+
retain_repo_versions__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where retain_repo_versions has a null value")] = None,
|
|
1171
|
+
retain_repo_versions__lt: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is less than value")] = None,
|
|
1172
|
+
retain_repo_versions__lte: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is less than or equal to value")] = None,
|
|
1173
|
+
retain_repo_versions__ne: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions not equal to value")] = None,
|
|
1174
|
+
retain_repo_versions__range: Annotated[Optional[List[StrictInt]], Field(description="Filter results where retain_repo_versions is between two comma separated values")] = None,
|
|
1175
|
+
with_content: Annotated[Optional[StrictStr], Field(description="Content Unit referenced by HREF/PRN")] = None,
|
|
1176
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1177
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1178
|
+
pulp_domain: StrictStr = "default",
|
|
1179
|
+
_request_timeout: Union[
|
|
1180
|
+
None,
|
|
1181
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1182
|
+
Tuple[
|
|
1183
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1184
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1185
|
+
]
|
|
1186
|
+
] = None,
|
|
1187
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1188
|
+
_content_type: Optional[StrictStr] = None,
|
|
1189
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1190
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1191
|
+
) -> ApiResponse[PaginatedOpenPGPKeyringResponseList]:
|
|
1192
|
+
"""List open pgp keyrings
|
|
1193
|
+
|
|
1194
|
+
A ViewSet for an ordinary repository.
|
|
1195
|
+
|
|
1196
|
+
:param pulp_domain: (required)
|
|
1197
|
+
:type pulp_domain: str
|
|
1198
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1199
|
+
:type x_task_diagnostics: List[str]
|
|
1200
|
+
:param latest_with_content: Content Unit referenced by HREF/PRN
|
|
1201
|
+
:type latest_with_content: str
|
|
1202
|
+
:param limit: Number of results to return per page.
|
|
1203
|
+
:type limit: int
|
|
1204
|
+
:param name: Filter results where name matches value
|
|
1205
|
+
:type name: str
|
|
1206
|
+
:param name__contains: Filter results where name contains value
|
|
1207
|
+
:type name__contains: str
|
|
1208
|
+
:param name__icontains: Filter results where name contains value
|
|
1209
|
+
:type name__icontains: str
|
|
1210
|
+
:param name__iexact: Filter results where name matches value
|
|
1211
|
+
:type name__iexact: str
|
|
1212
|
+
:param name__in: Filter results where name is in a comma-separated list of values
|
|
1213
|
+
:type name__in: List[str]
|
|
1214
|
+
:param name__iregex: Filter results where name matches regex value
|
|
1215
|
+
:type name__iregex: str
|
|
1216
|
+
:param name__istartswith: Filter results where name starts with value
|
|
1217
|
+
:type name__istartswith: str
|
|
1218
|
+
:param name__regex: Filter results where name matches regex value
|
|
1219
|
+
:type name__regex: str
|
|
1220
|
+
:param name__startswith: Filter results where name starts with value
|
|
1221
|
+
:type name__startswith: str
|
|
1222
|
+
:param offset: The initial index from which to return the results.
|
|
1223
|
+
:type offset: int
|
|
1224
|
+
:param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
1225
|
+
:type ordering: List[str]
|
|
1226
|
+
:param prn__in: Multiple values may be separated by commas.
|
|
1227
|
+
:type prn__in: List[str]
|
|
1228
|
+
:param pulp_href__in: Multiple values may be separated by commas.
|
|
1229
|
+
:type pulp_href__in: List[str]
|
|
1230
|
+
:param pulp_id__in: Multiple values may be separated by commas.
|
|
1231
|
+
:type pulp_id__in: List[str]
|
|
1232
|
+
:param pulp_label_select: Filter labels by search string
|
|
1233
|
+
:type pulp_label_select: str
|
|
1234
|
+
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
1235
|
+
:type q: str
|
|
1236
|
+
:param remote: Foreign Key referenced by HREF
|
|
1237
|
+
:type remote: str
|
|
1238
|
+
:param retain_repo_versions: Filter results where retain_repo_versions matches value
|
|
1239
|
+
:type retain_repo_versions: int
|
|
1240
|
+
:param retain_repo_versions__gt: Filter results where retain_repo_versions is greater than value
|
|
1241
|
+
:type retain_repo_versions__gt: int
|
|
1242
|
+
:param retain_repo_versions__gte: Filter results where retain_repo_versions is greater than or equal to value
|
|
1243
|
+
:type retain_repo_versions__gte: int
|
|
1244
|
+
:param retain_repo_versions__isnull: Filter results where retain_repo_versions has a null value
|
|
1245
|
+
:type retain_repo_versions__isnull: bool
|
|
1246
|
+
:param retain_repo_versions__lt: Filter results where retain_repo_versions is less than value
|
|
1247
|
+
:type retain_repo_versions__lt: int
|
|
1248
|
+
:param retain_repo_versions__lte: Filter results where retain_repo_versions is less than or equal to value
|
|
1249
|
+
:type retain_repo_versions__lte: int
|
|
1250
|
+
:param retain_repo_versions__ne: Filter results where retain_repo_versions not equal to value
|
|
1251
|
+
:type retain_repo_versions__ne: int
|
|
1252
|
+
:param retain_repo_versions__range: Filter results where retain_repo_versions is between two comma separated values
|
|
1253
|
+
:type retain_repo_versions__range: List[int]
|
|
1254
|
+
:param with_content: Content Unit referenced by HREF/PRN
|
|
1255
|
+
:type with_content: str
|
|
1256
|
+
:param fields: A list of fields to include in the response.
|
|
1257
|
+
:type fields: List[str]
|
|
1258
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1259
|
+
:type exclude_fields: List[str]
|
|
1260
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1261
|
+
number provided, it will be total request
|
|
1262
|
+
timeout. It can also be a pair (tuple) of
|
|
1263
|
+
(connection, read) timeouts.
|
|
1264
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1265
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1266
|
+
request; this effectively ignores the
|
|
1267
|
+
authentication in the spec for a single request.
|
|
1268
|
+
:type _request_auth: dict, optional
|
|
1269
|
+
:param _content_type: force content-type for the request.
|
|
1270
|
+
:type _content_type: str, Optional
|
|
1271
|
+
:param _headers: set to override the headers for a single
|
|
1272
|
+
request; this effectively ignores the headers
|
|
1273
|
+
in the spec for a single request.
|
|
1274
|
+
:type _headers: dict, optional
|
|
1275
|
+
:param _host_index: set to override the host_index for a single
|
|
1276
|
+
request; this effectively ignores the host_index
|
|
1277
|
+
in the spec for a single request.
|
|
1278
|
+
:type _host_index: int, optional
|
|
1279
|
+
:return: Returns the result object.
|
|
1280
|
+
""" # noqa: E501
|
|
1281
|
+
|
|
1282
|
+
_param = self._list_serialize(
|
|
1283
|
+
pulp_domain=pulp_domain,
|
|
1284
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1285
|
+
latest_with_content=latest_with_content,
|
|
1286
|
+
limit=limit,
|
|
1287
|
+
name=name,
|
|
1288
|
+
name__contains=name__contains,
|
|
1289
|
+
name__icontains=name__icontains,
|
|
1290
|
+
name__iexact=name__iexact,
|
|
1291
|
+
name__in=name__in,
|
|
1292
|
+
name__iregex=name__iregex,
|
|
1293
|
+
name__istartswith=name__istartswith,
|
|
1294
|
+
name__regex=name__regex,
|
|
1295
|
+
name__startswith=name__startswith,
|
|
1296
|
+
offset=offset,
|
|
1297
|
+
ordering=ordering,
|
|
1298
|
+
prn__in=prn__in,
|
|
1299
|
+
pulp_href__in=pulp_href__in,
|
|
1300
|
+
pulp_id__in=pulp_id__in,
|
|
1301
|
+
pulp_label_select=pulp_label_select,
|
|
1302
|
+
q=q,
|
|
1303
|
+
remote=remote,
|
|
1304
|
+
retain_repo_versions=retain_repo_versions,
|
|
1305
|
+
retain_repo_versions__gt=retain_repo_versions__gt,
|
|
1306
|
+
retain_repo_versions__gte=retain_repo_versions__gte,
|
|
1307
|
+
retain_repo_versions__isnull=retain_repo_versions__isnull,
|
|
1308
|
+
retain_repo_versions__lt=retain_repo_versions__lt,
|
|
1309
|
+
retain_repo_versions__lte=retain_repo_versions__lte,
|
|
1310
|
+
retain_repo_versions__ne=retain_repo_versions__ne,
|
|
1311
|
+
retain_repo_versions__range=retain_repo_versions__range,
|
|
1312
|
+
with_content=with_content,
|
|
1313
|
+
fields=fields,
|
|
1314
|
+
exclude_fields=exclude_fields,
|
|
1315
|
+
_request_auth=_request_auth,
|
|
1316
|
+
_content_type=_content_type,
|
|
1317
|
+
_headers=_headers,
|
|
1318
|
+
_host_index=_host_index
|
|
1319
|
+
)
|
|
1320
|
+
|
|
1321
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1322
|
+
'200': "PaginatedOpenPGPKeyringResponseList",
|
|
1323
|
+
}
|
|
1324
|
+
response_data = self.api_client.call_api(
|
|
1325
|
+
*_param,
|
|
1326
|
+
_request_timeout=_request_timeout
|
|
1327
|
+
)
|
|
1328
|
+
response_data.read()
|
|
1329
|
+
return self.api_client.response_deserialize(
|
|
1330
|
+
response_data=response_data,
|
|
1331
|
+
response_types_map=_response_types_map,
|
|
1332
|
+
)
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
@validate_call
|
|
1336
|
+
def list_without_preload_content(
|
|
1337
|
+
self,
|
|
1338
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1339
|
+
latest_with_content: Annotated[Optional[StrictStr], Field(description="Content Unit referenced by HREF/PRN")] = None,
|
|
1340
|
+
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
1341
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
1342
|
+
name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
1343
|
+
name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
1344
|
+
name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
1345
|
+
name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
|
|
1346
|
+
name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
1347
|
+
name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
1348
|
+
name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
1349
|
+
name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
1350
|
+
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
1351
|
+
ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
1352
|
+
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1353
|
+
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1354
|
+
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1355
|
+
pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
|
|
1356
|
+
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
1357
|
+
remote: Annotated[Optional[StrictStr], Field(description="Foreign Key referenced by HREF")] = None,
|
|
1358
|
+
retain_repo_versions: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions matches value")] = None,
|
|
1359
|
+
retain_repo_versions__gt: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is greater than value")] = None,
|
|
1360
|
+
retain_repo_versions__gte: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is greater than or equal to value")] = None,
|
|
1361
|
+
retain_repo_versions__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where retain_repo_versions has a null value")] = None,
|
|
1362
|
+
retain_repo_versions__lt: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is less than value")] = None,
|
|
1363
|
+
retain_repo_versions__lte: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions is less than or equal to value")] = None,
|
|
1364
|
+
retain_repo_versions__ne: Annotated[Optional[StrictInt], Field(description="Filter results where retain_repo_versions not equal to value")] = None,
|
|
1365
|
+
retain_repo_versions__range: Annotated[Optional[List[StrictInt]], Field(description="Filter results where retain_repo_versions is between two comma separated values")] = None,
|
|
1366
|
+
with_content: Annotated[Optional[StrictStr], Field(description="Content Unit referenced by HREF/PRN")] = None,
|
|
1367
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1368
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1369
|
+
pulp_domain: StrictStr = "default",
|
|
1370
|
+
_request_timeout: Union[
|
|
1371
|
+
None,
|
|
1372
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1373
|
+
Tuple[
|
|
1374
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1375
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1376
|
+
]
|
|
1377
|
+
] = None,
|
|
1378
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1379
|
+
_content_type: Optional[StrictStr] = None,
|
|
1380
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1381
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1382
|
+
) -> RESTResponseType:
|
|
1383
|
+
"""List open pgp keyrings
|
|
1384
|
+
|
|
1385
|
+
A ViewSet for an ordinary repository.
|
|
1386
|
+
|
|
1387
|
+
:param pulp_domain: (required)
|
|
1388
|
+
:type pulp_domain: str
|
|
1389
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1390
|
+
:type x_task_diagnostics: List[str]
|
|
1391
|
+
:param latest_with_content: Content Unit referenced by HREF/PRN
|
|
1392
|
+
:type latest_with_content: str
|
|
1393
|
+
:param limit: Number of results to return per page.
|
|
1394
|
+
:type limit: int
|
|
1395
|
+
:param name: Filter results where name matches value
|
|
1396
|
+
:type name: str
|
|
1397
|
+
:param name__contains: Filter results where name contains value
|
|
1398
|
+
:type name__contains: str
|
|
1399
|
+
:param name__icontains: Filter results where name contains value
|
|
1400
|
+
:type name__icontains: str
|
|
1401
|
+
:param name__iexact: Filter results where name matches value
|
|
1402
|
+
:type name__iexact: str
|
|
1403
|
+
:param name__in: Filter results where name is in a comma-separated list of values
|
|
1404
|
+
:type name__in: List[str]
|
|
1405
|
+
:param name__iregex: Filter results where name matches regex value
|
|
1406
|
+
:type name__iregex: str
|
|
1407
|
+
:param name__istartswith: Filter results where name starts with value
|
|
1408
|
+
:type name__istartswith: str
|
|
1409
|
+
:param name__regex: Filter results where name matches regex value
|
|
1410
|
+
:type name__regex: str
|
|
1411
|
+
:param name__startswith: Filter results where name starts with value
|
|
1412
|
+
:type name__startswith: str
|
|
1413
|
+
:param offset: The initial index from which to return the results.
|
|
1414
|
+
:type offset: int
|
|
1415
|
+
:param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
1416
|
+
:type ordering: List[str]
|
|
1417
|
+
:param prn__in: Multiple values may be separated by commas.
|
|
1418
|
+
:type prn__in: List[str]
|
|
1419
|
+
:param pulp_href__in: Multiple values may be separated by commas.
|
|
1420
|
+
:type pulp_href__in: List[str]
|
|
1421
|
+
:param pulp_id__in: Multiple values may be separated by commas.
|
|
1422
|
+
:type pulp_id__in: List[str]
|
|
1423
|
+
:param pulp_label_select: Filter labels by search string
|
|
1424
|
+
:type pulp_label_select: str
|
|
1425
|
+
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
1426
|
+
:type q: str
|
|
1427
|
+
:param remote: Foreign Key referenced by HREF
|
|
1428
|
+
:type remote: str
|
|
1429
|
+
:param retain_repo_versions: Filter results where retain_repo_versions matches value
|
|
1430
|
+
:type retain_repo_versions: int
|
|
1431
|
+
:param retain_repo_versions__gt: Filter results where retain_repo_versions is greater than value
|
|
1432
|
+
:type retain_repo_versions__gt: int
|
|
1433
|
+
:param retain_repo_versions__gte: Filter results where retain_repo_versions is greater than or equal to value
|
|
1434
|
+
:type retain_repo_versions__gte: int
|
|
1435
|
+
:param retain_repo_versions__isnull: Filter results where retain_repo_versions has a null value
|
|
1436
|
+
:type retain_repo_versions__isnull: bool
|
|
1437
|
+
:param retain_repo_versions__lt: Filter results where retain_repo_versions is less than value
|
|
1438
|
+
:type retain_repo_versions__lt: int
|
|
1439
|
+
:param retain_repo_versions__lte: Filter results where retain_repo_versions is less than or equal to value
|
|
1440
|
+
:type retain_repo_versions__lte: int
|
|
1441
|
+
:param retain_repo_versions__ne: Filter results where retain_repo_versions not equal to value
|
|
1442
|
+
:type retain_repo_versions__ne: int
|
|
1443
|
+
:param retain_repo_versions__range: Filter results where retain_repo_versions is between two comma separated values
|
|
1444
|
+
:type retain_repo_versions__range: List[int]
|
|
1445
|
+
:param with_content: Content Unit referenced by HREF/PRN
|
|
1446
|
+
:type with_content: str
|
|
1447
|
+
:param fields: A list of fields to include in the response.
|
|
1448
|
+
:type fields: List[str]
|
|
1449
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1450
|
+
:type exclude_fields: List[str]
|
|
1451
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1452
|
+
number provided, it will be total request
|
|
1453
|
+
timeout. It can also be a pair (tuple) of
|
|
1454
|
+
(connection, read) timeouts.
|
|
1455
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1456
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1457
|
+
request; this effectively ignores the
|
|
1458
|
+
authentication in the spec for a single request.
|
|
1459
|
+
:type _request_auth: dict, optional
|
|
1460
|
+
:param _content_type: force content-type for the request.
|
|
1461
|
+
:type _content_type: str, Optional
|
|
1462
|
+
:param _headers: set to override the headers for a single
|
|
1463
|
+
request; this effectively ignores the headers
|
|
1464
|
+
in the spec for a single request.
|
|
1465
|
+
:type _headers: dict, optional
|
|
1466
|
+
:param _host_index: set to override the host_index for a single
|
|
1467
|
+
request; this effectively ignores the host_index
|
|
1468
|
+
in the spec for a single request.
|
|
1469
|
+
:type _host_index: int, optional
|
|
1470
|
+
:return: Returns the result object.
|
|
1471
|
+
""" # noqa: E501
|
|
1472
|
+
|
|
1473
|
+
_param = self._list_serialize(
|
|
1474
|
+
pulp_domain=pulp_domain,
|
|
1475
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1476
|
+
latest_with_content=latest_with_content,
|
|
1477
|
+
limit=limit,
|
|
1478
|
+
name=name,
|
|
1479
|
+
name__contains=name__contains,
|
|
1480
|
+
name__icontains=name__icontains,
|
|
1481
|
+
name__iexact=name__iexact,
|
|
1482
|
+
name__in=name__in,
|
|
1483
|
+
name__iregex=name__iregex,
|
|
1484
|
+
name__istartswith=name__istartswith,
|
|
1485
|
+
name__regex=name__regex,
|
|
1486
|
+
name__startswith=name__startswith,
|
|
1487
|
+
offset=offset,
|
|
1488
|
+
ordering=ordering,
|
|
1489
|
+
prn__in=prn__in,
|
|
1490
|
+
pulp_href__in=pulp_href__in,
|
|
1491
|
+
pulp_id__in=pulp_id__in,
|
|
1492
|
+
pulp_label_select=pulp_label_select,
|
|
1493
|
+
q=q,
|
|
1494
|
+
remote=remote,
|
|
1495
|
+
retain_repo_versions=retain_repo_versions,
|
|
1496
|
+
retain_repo_versions__gt=retain_repo_versions__gt,
|
|
1497
|
+
retain_repo_versions__gte=retain_repo_versions__gte,
|
|
1498
|
+
retain_repo_versions__isnull=retain_repo_versions__isnull,
|
|
1499
|
+
retain_repo_versions__lt=retain_repo_versions__lt,
|
|
1500
|
+
retain_repo_versions__lte=retain_repo_versions__lte,
|
|
1501
|
+
retain_repo_versions__ne=retain_repo_versions__ne,
|
|
1502
|
+
retain_repo_versions__range=retain_repo_versions__range,
|
|
1503
|
+
with_content=with_content,
|
|
1504
|
+
fields=fields,
|
|
1505
|
+
exclude_fields=exclude_fields,
|
|
1506
|
+
_request_auth=_request_auth,
|
|
1507
|
+
_content_type=_content_type,
|
|
1508
|
+
_headers=_headers,
|
|
1509
|
+
_host_index=_host_index
|
|
1510
|
+
)
|
|
1511
|
+
|
|
1512
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1513
|
+
'200': "PaginatedOpenPGPKeyringResponseList",
|
|
1514
|
+
}
|
|
1515
|
+
response_data = self.api_client.call_api(
|
|
1516
|
+
*_param,
|
|
1517
|
+
_request_timeout=_request_timeout
|
|
1518
|
+
)
|
|
1519
|
+
return response_data.response
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
def _list_serialize(
|
|
1523
|
+
self,
|
|
1524
|
+
pulp_domain,
|
|
1525
|
+
x_task_diagnostics,
|
|
1526
|
+
latest_with_content,
|
|
1527
|
+
limit,
|
|
1528
|
+
name,
|
|
1529
|
+
name__contains,
|
|
1530
|
+
name__icontains,
|
|
1531
|
+
name__iexact,
|
|
1532
|
+
name__in,
|
|
1533
|
+
name__iregex,
|
|
1534
|
+
name__istartswith,
|
|
1535
|
+
name__regex,
|
|
1536
|
+
name__startswith,
|
|
1537
|
+
offset,
|
|
1538
|
+
ordering,
|
|
1539
|
+
prn__in,
|
|
1540
|
+
pulp_href__in,
|
|
1541
|
+
pulp_id__in,
|
|
1542
|
+
pulp_label_select,
|
|
1543
|
+
q,
|
|
1544
|
+
remote,
|
|
1545
|
+
retain_repo_versions,
|
|
1546
|
+
retain_repo_versions__gt,
|
|
1547
|
+
retain_repo_versions__gte,
|
|
1548
|
+
retain_repo_versions__isnull,
|
|
1549
|
+
retain_repo_versions__lt,
|
|
1550
|
+
retain_repo_versions__lte,
|
|
1551
|
+
retain_repo_versions__ne,
|
|
1552
|
+
retain_repo_versions__range,
|
|
1553
|
+
with_content,
|
|
1554
|
+
fields,
|
|
1555
|
+
exclude_fields,
|
|
1556
|
+
_request_auth,
|
|
1557
|
+
_content_type,
|
|
1558
|
+
_headers,
|
|
1559
|
+
_host_index,
|
|
1560
|
+
) -> RequestSerialized:
|
|
1561
|
+
|
|
1562
|
+
_host = None
|
|
1563
|
+
|
|
1564
|
+
_collection_formats: Dict[str, str] = {
|
|
1565
|
+
'X-Task-Diagnostics': 'csv',
|
|
1566
|
+
'name__in': 'csv',
|
|
1567
|
+
'ordering': 'csv',
|
|
1568
|
+
'prn__in': 'csv',
|
|
1569
|
+
'pulp_href__in': 'csv',
|
|
1570
|
+
'pulp_id__in': 'csv',
|
|
1571
|
+
'retain_repo_versions__range': 'csv',
|
|
1572
|
+
'fields': 'multi',
|
|
1573
|
+
'exclude_fields': 'multi',
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
_path_params: Dict[str, str] = {}
|
|
1577
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1578
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1579
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1580
|
+
_files: Dict[
|
|
1581
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1582
|
+
] = {}
|
|
1583
|
+
_body_params: Optional[bytes] = None
|
|
1584
|
+
|
|
1585
|
+
# process the path parameters
|
|
1586
|
+
if pulp_domain is not None:
|
|
1587
|
+
_path_params['pulp_domain'] = pulp_domain
|
|
1588
|
+
# process the query parameters
|
|
1589
|
+
if latest_with_content is not None:
|
|
1590
|
+
|
|
1591
|
+
_query_params.append(('latest_with_content', latest_with_content))
|
|
1592
|
+
|
|
1593
|
+
if limit is not None:
|
|
1594
|
+
|
|
1595
|
+
_query_params.append(('limit', limit))
|
|
1596
|
+
|
|
1597
|
+
if name is not None:
|
|
1598
|
+
|
|
1599
|
+
_query_params.append(('name', name))
|
|
1600
|
+
|
|
1601
|
+
if name__contains is not None:
|
|
1602
|
+
|
|
1603
|
+
_query_params.append(('name__contains', name__contains))
|
|
1604
|
+
|
|
1605
|
+
if name__icontains is not None:
|
|
1606
|
+
|
|
1607
|
+
_query_params.append(('name__icontains', name__icontains))
|
|
1608
|
+
|
|
1609
|
+
if name__iexact is not None:
|
|
1610
|
+
|
|
1611
|
+
_query_params.append(('name__iexact', name__iexact))
|
|
1612
|
+
|
|
1613
|
+
if name__in is not None:
|
|
1614
|
+
|
|
1615
|
+
_query_params.append(('name__in', name__in))
|
|
1616
|
+
|
|
1617
|
+
if name__iregex is not None:
|
|
1618
|
+
|
|
1619
|
+
_query_params.append(('name__iregex', name__iregex))
|
|
1620
|
+
|
|
1621
|
+
if name__istartswith is not None:
|
|
1622
|
+
|
|
1623
|
+
_query_params.append(('name__istartswith', name__istartswith))
|
|
1624
|
+
|
|
1625
|
+
if name__regex is not None:
|
|
1626
|
+
|
|
1627
|
+
_query_params.append(('name__regex', name__regex))
|
|
1628
|
+
|
|
1629
|
+
if name__startswith is not None:
|
|
1630
|
+
|
|
1631
|
+
_query_params.append(('name__startswith', name__startswith))
|
|
1632
|
+
|
|
1633
|
+
if offset is not None:
|
|
1634
|
+
|
|
1635
|
+
_query_params.append(('offset', offset))
|
|
1636
|
+
|
|
1637
|
+
if ordering is not None:
|
|
1638
|
+
|
|
1639
|
+
_query_params.append(('ordering', ordering))
|
|
1640
|
+
|
|
1641
|
+
if prn__in is not None:
|
|
1642
|
+
|
|
1643
|
+
_query_params.append(('prn__in', prn__in))
|
|
1644
|
+
|
|
1645
|
+
if pulp_href__in is not None:
|
|
1646
|
+
|
|
1647
|
+
_query_params.append(('pulp_href__in', pulp_href__in))
|
|
1648
|
+
|
|
1649
|
+
if pulp_id__in is not None:
|
|
1650
|
+
|
|
1651
|
+
_query_params.append(('pulp_id__in', pulp_id__in))
|
|
1652
|
+
|
|
1653
|
+
if pulp_label_select is not None:
|
|
1654
|
+
|
|
1655
|
+
_query_params.append(('pulp_label_select', pulp_label_select))
|
|
1656
|
+
|
|
1657
|
+
if q is not None:
|
|
1658
|
+
|
|
1659
|
+
_query_params.append(('q', q))
|
|
1660
|
+
|
|
1661
|
+
if remote is not None:
|
|
1662
|
+
|
|
1663
|
+
_query_params.append(('remote', remote))
|
|
1664
|
+
|
|
1665
|
+
if retain_repo_versions is not None:
|
|
1666
|
+
|
|
1667
|
+
_query_params.append(('retain_repo_versions', retain_repo_versions))
|
|
1668
|
+
|
|
1669
|
+
if retain_repo_versions__gt is not None:
|
|
1670
|
+
|
|
1671
|
+
_query_params.append(('retain_repo_versions__gt', retain_repo_versions__gt))
|
|
1672
|
+
|
|
1673
|
+
if retain_repo_versions__gte is not None:
|
|
1674
|
+
|
|
1675
|
+
_query_params.append(('retain_repo_versions__gte', retain_repo_versions__gte))
|
|
1676
|
+
|
|
1677
|
+
if retain_repo_versions__isnull is not None:
|
|
1678
|
+
|
|
1679
|
+
_query_params.append(('retain_repo_versions__isnull', retain_repo_versions__isnull))
|
|
1680
|
+
|
|
1681
|
+
if retain_repo_versions__lt is not None:
|
|
1682
|
+
|
|
1683
|
+
_query_params.append(('retain_repo_versions__lt', retain_repo_versions__lt))
|
|
1684
|
+
|
|
1685
|
+
if retain_repo_versions__lte is not None:
|
|
1686
|
+
|
|
1687
|
+
_query_params.append(('retain_repo_versions__lte', retain_repo_versions__lte))
|
|
1688
|
+
|
|
1689
|
+
if retain_repo_versions__ne is not None:
|
|
1690
|
+
|
|
1691
|
+
_query_params.append(('retain_repo_versions__ne', retain_repo_versions__ne))
|
|
1692
|
+
|
|
1693
|
+
if retain_repo_versions__range is not None:
|
|
1694
|
+
|
|
1695
|
+
_query_params.append(('retain_repo_versions__range', retain_repo_versions__range))
|
|
1696
|
+
|
|
1697
|
+
if with_content is not None:
|
|
1698
|
+
|
|
1699
|
+
_query_params.append(('with_content', with_content))
|
|
1700
|
+
|
|
1701
|
+
if fields is not None:
|
|
1702
|
+
|
|
1703
|
+
_query_params.append(('fields', fields))
|
|
1704
|
+
|
|
1705
|
+
if exclude_fields is not None:
|
|
1706
|
+
|
|
1707
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
1708
|
+
|
|
1709
|
+
# process the header parameters
|
|
1710
|
+
if x_task_diagnostics is not None:
|
|
1711
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
1712
|
+
# process the form parameters
|
|
1713
|
+
# process the body parameter
|
|
1714
|
+
|
|
1715
|
+
|
|
1716
|
+
# set the HTTP header `Accept`
|
|
1717
|
+
if 'Accept' not in _header_params:
|
|
1718
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1719
|
+
[
|
|
1720
|
+
'application/json'
|
|
1721
|
+
]
|
|
1722
|
+
)
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
# authentication setting
|
|
1726
|
+
_auth_settings: List[str] = [
|
|
1727
|
+
'json_header_remote_authentication',
|
|
1728
|
+
'basicAuth',
|
|
1729
|
+
'cookieAuth'
|
|
1730
|
+
]
|
|
1731
|
+
|
|
1732
|
+
return self.api_client.param_serialize(
|
|
1733
|
+
method='GET',
|
|
1734
|
+
resource_path='/api/pulp/{pulp_domain}/api/v3/repositories/core/openpgp_keyring/',
|
|
1735
|
+
path_params=_path_params,
|
|
1736
|
+
query_params=_query_params,
|
|
1737
|
+
header_params=_header_params,
|
|
1738
|
+
body=_body_params,
|
|
1739
|
+
post_params=_form_params,
|
|
1740
|
+
files=_files,
|
|
1741
|
+
auth_settings=_auth_settings,
|
|
1742
|
+
collection_formats=_collection_formats,
|
|
1743
|
+
_host=_host,
|
|
1744
|
+
_request_auth=_request_auth
|
|
1745
|
+
)
|
|
1746
|
+
|
|
1747
|
+
|
|
1748
|
+
|
|
1749
|
+
|
|
1750
|
+
@validate_call
|
|
1751
|
+
def list_roles(
|
|
1752
|
+
self,
|
|
1753
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
1754
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1755
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1756
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1757
|
+
_request_timeout: Union[
|
|
1758
|
+
None,
|
|
1759
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1760
|
+
Tuple[
|
|
1761
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1762
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1763
|
+
]
|
|
1764
|
+
] = None,
|
|
1765
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1766
|
+
_content_type: Optional[StrictStr] = None,
|
|
1767
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1768
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1769
|
+
) -> ObjectRolesResponse:
|
|
1770
|
+
"""List roles
|
|
1771
|
+
|
|
1772
|
+
List roles assigned to this object.
|
|
1773
|
+
|
|
1774
|
+
:param open_p_g_p_keyring_href: (required)
|
|
1775
|
+
:type open_p_g_p_keyring_href: str
|
|
1776
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1777
|
+
:type x_task_diagnostics: List[str]
|
|
1778
|
+
:param fields: A list of fields to include in the response.
|
|
1779
|
+
:type fields: List[str]
|
|
1780
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1781
|
+
:type exclude_fields: List[str]
|
|
1782
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1783
|
+
number provided, it will be total request
|
|
1784
|
+
timeout. It can also be a pair (tuple) of
|
|
1785
|
+
(connection, read) timeouts.
|
|
1786
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1787
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1788
|
+
request; this effectively ignores the
|
|
1789
|
+
authentication in the spec for a single request.
|
|
1790
|
+
:type _request_auth: dict, optional
|
|
1791
|
+
:param _content_type: force content-type for the request.
|
|
1792
|
+
:type _content_type: str, Optional
|
|
1793
|
+
:param _headers: set to override the headers for a single
|
|
1794
|
+
request; this effectively ignores the headers
|
|
1795
|
+
in the spec for a single request.
|
|
1796
|
+
:type _headers: dict, optional
|
|
1797
|
+
:param _host_index: set to override the host_index for a single
|
|
1798
|
+
request; this effectively ignores the host_index
|
|
1799
|
+
in the spec for a single request.
|
|
1800
|
+
:type _host_index: int, optional
|
|
1801
|
+
:return: Returns the result object.
|
|
1802
|
+
""" # noqa: E501
|
|
1803
|
+
|
|
1804
|
+
_param = self._list_roles_serialize(
|
|
1805
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
1806
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1807
|
+
fields=fields,
|
|
1808
|
+
exclude_fields=exclude_fields,
|
|
1809
|
+
_request_auth=_request_auth,
|
|
1810
|
+
_content_type=_content_type,
|
|
1811
|
+
_headers=_headers,
|
|
1812
|
+
_host_index=_host_index
|
|
1813
|
+
)
|
|
1814
|
+
|
|
1815
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1816
|
+
'200': "ObjectRolesResponse",
|
|
1817
|
+
}
|
|
1818
|
+
response_data = self.api_client.call_api(
|
|
1819
|
+
*_param,
|
|
1820
|
+
_request_timeout=_request_timeout
|
|
1821
|
+
)
|
|
1822
|
+
response_data.read()
|
|
1823
|
+
return self.api_client.response_deserialize(
|
|
1824
|
+
response_data=response_data,
|
|
1825
|
+
response_types_map=_response_types_map,
|
|
1826
|
+
).data
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
@validate_call
|
|
1830
|
+
def list_roles_with_http_info(
|
|
1831
|
+
self,
|
|
1832
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
1833
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1834
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1835
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1836
|
+
_request_timeout: Union[
|
|
1837
|
+
None,
|
|
1838
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1839
|
+
Tuple[
|
|
1840
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1841
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1842
|
+
]
|
|
1843
|
+
] = None,
|
|
1844
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1845
|
+
_content_type: Optional[StrictStr] = None,
|
|
1846
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1847
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1848
|
+
) -> ApiResponse[ObjectRolesResponse]:
|
|
1849
|
+
"""List roles
|
|
1850
|
+
|
|
1851
|
+
List roles assigned to this object.
|
|
1852
|
+
|
|
1853
|
+
:param open_p_g_p_keyring_href: (required)
|
|
1854
|
+
:type open_p_g_p_keyring_href: str
|
|
1855
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1856
|
+
:type x_task_diagnostics: List[str]
|
|
1857
|
+
:param fields: A list of fields to include in the response.
|
|
1858
|
+
:type fields: List[str]
|
|
1859
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1860
|
+
:type exclude_fields: List[str]
|
|
1861
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1862
|
+
number provided, it will be total request
|
|
1863
|
+
timeout. It can also be a pair (tuple) of
|
|
1864
|
+
(connection, read) timeouts.
|
|
1865
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1866
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1867
|
+
request; this effectively ignores the
|
|
1868
|
+
authentication in the spec for a single request.
|
|
1869
|
+
:type _request_auth: dict, optional
|
|
1870
|
+
:param _content_type: force content-type for the request.
|
|
1871
|
+
:type _content_type: str, Optional
|
|
1872
|
+
:param _headers: set to override the headers for a single
|
|
1873
|
+
request; this effectively ignores the headers
|
|
1874
|
+
in the spec for a single request.
|
|
1875
|
+
:type _headers: dict, optional
|
|
1876
|
+
:param _host_index: set to override the host_index for a single
|
|
1877
|
+
request; this effectively ignores the host_index
|
|
1878
|
+
in the spec for a single request.
|
|
1879
|
+
:type _host_index: int, optional
|
|
1880
|
+
:return: Returns the result object.
|
|
1881
|
+
""" # noqa: E501
|
|
1882
|
+
|
|
1883
|
+
_param = self._list_roles_serialize(
|
|
1884
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
1885
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1886
|
+
fields=fields,
|
|
1887
|
+
exclude_fields=exclude_fields,
|
|
1888
|
+
_request_auth=_request_auth,
|
|
1889
|
+
_content_type=_content_type,
|
|
1890
|
+
_headers=_headers,
|
|
1891
|
+
_host_index=_host_index
|
|
1892
|
+
)
|
|
1893
|
+
|
|
1894
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1895
|
+
'200': "ObjectRolesResponse",
|
|
1896
|
+
}
|
|
1897
|
+
response_data = self.api_client.call_api(
|
|
1898
|
+
*_param,
|
|
1899
|
+
_request_timeout=_request_timeout
|
|
1900
|
+
)
|
|
1901
|
+
response_data.read()
|
|
1902
|
+
return self.api_client.response_deserialize(
|
|
1903
|
+
response_data=response_data,
|
|
1904
|
+
response_types_map=_response_types_map,
|
|
1905
|
+
)
|
|
1906
|
+
|
|
1907
|
+
|
|
1908
|
+
@validate_call
|
|
1909
|
+
def list_roles_without_preload_content(
|
|
1910
|
+
self,
|
|
1911
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
1912
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1913
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1914
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1915
|
+
_request_timeout: Union[
|
|
1916
|
+
None,
|
|
1917
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1918
|
+
Tuple[
|
|
1919
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1920
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1921
|
+
]
|
|
1922
|
+
] = None,
|
|
1923
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1924
|
+
_content_type: Optional[StrictStr] = None,
|
|
1925
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1926
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1927
|
+
) -> RESTResponseType:
|
|
1928
|
+
"""List roles
|
|
1929
|
+
|
|
1930
|
+
List roles assigned to this object.
|
|
1931
|
+
|
|
1932
|
+
:param open_p_g_p_keyring_href: (required)
|
|
1933
|
+
:type open_p_g_p_keyring_href: str
|
|
1934
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1935
|
+
:type x_task_diagnostics: List[str]
|
|
1936
|
+
:param fields: A list of fields to include in the response.
|
|
1937
|
+
:type fields: List[str]
|
|
1938
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
1939
|
+
:type exclude_fields: List[str]
|
|
1940
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1941
|
+
number provided, it will be total request
|
|
1942
|
+
timeout. It can also be a pair (tuple) of
|
|
1943
|
+
(connection, read) timeouts.
|
|
1944
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1945
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1946
|
+
request; this effectively ignores the
|
|
1947
|
+
authentication in the spec for a single request.
|
|
1948
|
+
:type _request_auth: dict, optional
|
|
1949
|
+
:param _content_type: force content-type for the request.
|
|
1950
|
+
:type _content_type: str, Optional
|
|
1951
|
+
:param _headers: set to override the headers for a single
|
|
1952
|
+
request; this effectively ignores the headers
|
|
1953
|
+
in the spec for a single request.
|
|
1954
|
+
:type _headers: dict, optional
|
|
1955
|
+
:param _host_index: set to override the host_index for a single
|
|
1956
|
+
request; this effectively ignores the host_index
|
|
1957
|
+
in the spec for a single request.
|
|
1958
|
+
:type _host_index: int, optional
|
|
1959
|
+
:return: Returns the result object.
|
|
1960
|
+
""" # noqa: E501
|
|
1961
|
+
|
|
1962
|
+
_param = self._list_roles_serialize(
|
|
1963
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
1964
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
1965
|
+
fields=fields,
|
|
1966
|
+
exclude_fields=exclude_fields,
|
|
1967
|
+
_request_auth=_request_auth,
|
|
1968
|
+
_content_type=_content_type,
|
|
1969
|
+
_headers=_headers,
|
|
1970
|
+
_host_index=_host_index
|
|
1971
|
+
)
|
|
1972
|
+
|
|
1973
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1974
|
+
'200': "ObjectRolesResponse",
|
|
1975
|
+
}
|
|
1976
|
+
response_data = self.api_client.call_api(
|
|
1977
|
+
*_param,
|
|
1978
|
+
_request_timeout=_request_timeout
|
|
1979
|
+
)
|
|
1980
|
+
return response_data.response
|
|
1981
|
+
|
|
1982
|
+
|
|
1983
|
+
def _list_roles_serialize(
|
|
1984
|
+
self,
|
|
1985
|
+
open_p_g_p_keyring_href,
|
|
1986
|
+
x_task_diagnostics,
|
|
1987
|
+
fields,
|
|
1988
|
+
exclude_fields,
|
|
1989
|
+
_request_auth,
|
|
1990
|
+
_content_type,
|
|
1991
|
+
_headers,
|
|
1992
|
+
_host_index,
|
|
1993
|
+
) -> RequestSerialized:
|
|
1994
|
+
|
|
1995
|
+
_host = None
|
|
1996
|
+
|
|
1997
|
+
_collection_formats: Dict[str, str] = {
|
|
1998
|
+
'X-Task-Diagnostics': 'csv',
|
|
1999
|
+
'fields': 'multi',
|
|
2000
|
+
'exclude_fields': 'multi',
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
_path_params: Dict[str, str] = {}
|
|
2004
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2005
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2006
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2007
|
+
_files: Dict[
|
|
2008
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2009
|
+
] = {}
|
|
2010
|
+
_body_params: Optional[bytes] = None
|
|
2011
|
+
|
|
2012
|
+
# process the path parameters
|
|
2013
|
+
if open_p_g_p_keyring_href is not None:
|
|
2014
|
+
_path_params['open_p_g_p_keyring_href'] = open_p_g_p_keyring_href
|
|
2015
|
+
# process the query parameters
|
|
2016
|
+
if fields is not None:
|
|
2017
|
+
|
|
2018
|
+
_query_params.append(('fields', fields))
|
|
2019
|
+
|
|
2020
|
+
if exclude_fields is not None:
|
|
2021
|
+
|
|
2022
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
2023
|
+
|
|
2024
|
+
# process the header parameters
|
|
2025
|
+
if x_task_diagnostics is not None:
|
|
2026
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
2027
|
+
# process the form parameters
|
|
2028
|
+
# process the body parameter
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
# set the HTTP header `Accept`
|
|
2032
|
+
if 'Accept' not in _header_params:
|
|
2033
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2034
|
+
[
|
|
2035
|
+
'application/json'
|
|
2036
|
+
]
|
|
2037
|
+
)
|
|
2038
|
+
|
|
2039
|
+
|
|
2040
|
+
# authentication setting
|
|
2041
|
+
_auth_settings: List[str] = [
|
|
2042
|
+
'json_header_remote_authentication',
|
|
2043
|
+
'basicAuth',
|
|
2044
|
+
'cookieAuth'
|
|
2045
|
+
]
|
|
2046
|
+
|
|
2047
|
+
return self.api_client.param_serialize(
|
|
2048
|
+
method='GET',
|
|
2049
|
+
resource_path='{open_p_g_p_keyring_href}list_roles/',
|
|
2050
|
+
path_params=_path_params,
|
|
2051
|
+
query_params=_query_params,
|
|
2052
|
+
header_params=_header_params,
|
|
2053
|
+
body=_body_params,
|
|
2054
|
+
post_params=_form_params,
|
|
2055
|
+
files=_files,
|
|
2056
|
+
auth_settings=_auth_settings,
|
|
2057
|
+
collection_formats=_collection_formats,
|
|
2058
|
+
_host=_host,
|
|
2059
|
+
_request_auth=_request_auth
|
|
2060
|
+
)
|
|
2061
|
+
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
|
|
2065
|
+
@validate_call
|
|
2066
|
+
def modify(
|
|
2067
|
+
self,
|
|
2068
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
2069
|
+
repository_add_remove_content: RepositoryAddRemoveContent,
|
|
2070
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2071
|
+
_request_timeout: Union[
|
|
2072
|
+
None,
|
|
2073
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2074
|
+
Tuple[
|
|
2075
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2076
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2077
|
+
]
|
|
2078
|
+
] = None,
|
|
2079
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2080
|
+
_content_type: Optional[StrictStr] = None,
|
|
2081
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2082
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2083
|
+
) -> AsyncOperationResponse:
|
|
2084
|
+
"""Modify Repository Content
|
|
2085
|
+
|
|
2086
|
+
Trigger an asynchronous task to create a new repository version.
|
|
2087
|
+
|
|
2088
|
+
:param open_p_g_p_keyring_href: (required)
|
|
2089
|
+
:type open_p_g_p_keyring_href: str
|
|
2090
|
+
:param repository_add_remove_content: (required)
|
|
2091
|
+
:type repository_add_remove_content: RepositoryAddRemoveContent
|
|
2092
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2093
|
+
:type x_task_diagnostics: List[str]
|
|
2094
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2095
|
+
number provided, it will be total request
|
|
2096
|
+
timeout. It can also be a pair (tuple) of
|
|
2097
|
+
(connection, read) timeouts.
|
|
2098
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2099
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2100
|
+
request; this effectively ignores the
|
|
2101
|
+
authentication in the spec for a single request.
|
|
2102
|
+
:type _request_auth: dict, optional
|
|
2103
|
+
:param _content_type: force content-type for the request.
|
|
2104
|
+
:type _content_type: str, Optional
|
|
2105
|
+
:param _headers: set to override the headers for a single
|
|
2106
|
+
request; this effectively ignores the headers
|
|
2107
|
+
in the spec for a single request.
|
|
2108
|
+
:type _headers: dict, optional
|
|
2109
|
+
:param _host_index: set to override the host_index for a single
|
|
2110
|
+
request; this effectively ignores the host_index
|
|
2111
|
+
in the spec for a single request.
|
|
2112
|
+
:type _host_index: int, optional
|
|
2113
|
+
:return: Returns the result object.
|
|
2114
|
+
""" # noqa: E501
|
|
2115
|
+
|
|
2116
|
+
_param = self._modify_serialize(
|
|
2117
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
2118
|
+
repository_add_remove_content=repository_add_remove_content,
|
|
2119
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2120
|
+
_request_auth=_request_auth,
|
|
2121
|
+
_content_type=_content_type,
|
|
2122
|
+
_headers=_headers,
|
|
2123
|
+
_host_index=_host_index
|
|
2124
|
+
)
|
|
2125
|
+
|
|
2126
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2127
|
+
'202': "AsyncOperationResponse",
|
|
2128
|
+
}
|
|
2129
|
+
response_data = self.api_client.call_api(
|
|
2130
|
+
*_param,
|
|
2131
|
+
_request_timeout=_request_timeout
|
|
2132
|
+
)
|
|
2133
|
+
response_data.read()
|
|
2134
|
+
return self.api_client.response_deserialize(
|
|
2135
|
+
response_data=response_data,
|
|
2136
|
+
response_types_map=_response_types_map,
|
|
2137
|
+
).data
|
|
2138
|
+
|
|
2139
|
+
|
|
2140
|
+
@validate_call
|
|
2141
|
+
def modify_with_http_info(
|
|
2142
|
+
self,
|
|
2143
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
2144
|
+
repository_add_remove_content: RepositoryAddRemoveContent,
|
|
2145
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2146
|
+
_request_timeout: Union[
|
|
2147
|
+
None,
|
|
2148
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2149
|
+
Tuple[
|
|
2150
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2151
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2152
|
+
]
|
|
2153
|
+
] = None,
|
|
2154
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2155
|
+
_content_type: Optional[StrictStr] = None,
|
|
2156
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2157
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2158
|
+
) -> ApiResponse[AsyncOperationResponse]:
|
|
2159
|
+
"""Modify Repository Content
|
|
2160
|
+
|
|
2161
|
+
Trigger an asynchronous task to create a new repository version.
|
|
2162
|
+
|
|
2163
|
+
:param open_p_g_p_keyring_href: (required)
|
|
2164
|
+
:type open_p_g_p_keyring_href: str
|
|
2165
|
+
:param repository_add_remove_content: (required)
|
|
2166
|
+
:type repository_add_remove_content: RepositoryAddRemoveContent
|
|
2167
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2168
|
+
:type x_task_diagnostics: List[str]
|
|
2169
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2170
|
+
number provided, it will be total request
|
|
2171
|
+
timeout. It can also be a pair (tuple) of
|
|
2172
|
+
(connection, read) timeouts.
|
|
2173
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2174
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2175
|
+
request; this effectively ignores the
|
|
2176
|
+
authentication in the spec for a single request.
|
|
2177
|
+
:type _request_auth: dict, optional
|
|
2178
|
+
:param _content_type: force content-type for the request.
|
|
2179
|
+
:type _content_type: str, Optional
|
|
2180
|
+
:param _headers: set to override the headers for a single
|
|
2181
|
+
request; this effectively ignores the headers
|
|
2182
|
+
in the spec for a single request.
|
|
2183
|
+
:type _headers: dict, optional
|
|
2184
|
+
:param _host_index: set to override the host_index for a single
|
|
2185
|
+
request; this effectively ignores the host_index
|
|
2186
|
+
in the spec for a single request.
|
|
2187
|
+
:type _host_index: int, optional
|
|
2188
|
+
:return: Returns the result object.
|
|
2189
|
+
""" # noqa: E501
|
|
2190
|
+
|
|
2191
|
+
_param = self._modify_serialize(
|
|
2192
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
2193
|
+
repository_add_remove_content=repository_add_remove_content,
|
|
2194
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2195
|
+
_request_auth=_request_auth,
|
|
2196
|
+
_content_type=_content_type,
|
|
2197
|
+
_headers=_headers,
|
|
2198
|
+
_host_index=_host_index
|
|
2199
|
+
)
|
|
2200
|
+
|
|
2201
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2202
|
+
'202': "AsyncOperationResponse",
|
|
2203
|
+
}
|
|
2204
|
+
response_data = self.api_client.call_api(
|
|
2205
|
+
*_param,
|
|
2206
|
+
_request_timeout=_request_timeout
|
|
2207
|
+
)
|
|
2208
|
+
response_data.read()
|
|
2209
|
+
return self.api_client.response_deserialize(
|
|
2210
|
+
response_data=response_data,
|
|
2211
|
+
response_types_map=_response_types_map,
|
|
2212
|
+
)
|
|
2213
|
+
|
|
2214
|
+
|
|
2215
|
+
@validate_call
|
|
2216
|
+
def modify_without_preload_content(
|
|
2217
|
+
self,
|
|
2218
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
2219
|
+
repository_add_remove_content: RepositoryAddRemoveContent,
|
|
2220
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2221
|
+
_request_timeout: Union[
|
|
2222
|
+
None,
|
|
2223
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2224
|
+
Tuple[
|
|
2225
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2226
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2227
|
+
]
|
|
2228
|
+
] = None,
|
|
2229
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2230
|
+
_content_type: Optional[StrictStr] = None,
|
|
2231
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2232
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2233
|
+
) -> RESTResponseType:
|
|
2234
|
+
"""Modify Repository Content
|
|
2235
|
+
|
|
2236
|
+
Trigger an asynchronous task to create a new repository version.
|
|
2237
|
+
|
|
2238
|
+
:param open_p_g_p_keyring_href: (required)
|
|
2239
|
+
:type open_p_g_p_keyring_href: str
|
|
2240
|
+
:param repository_add_remove_content: (required)
|
|
2241
|
+
:type repository_add_remove_content: RepositoryAddRemoveContent
|
|
2242
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2243
|
+
:type x_task_diagnostics: List[str]
|
|
2244
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2245
|
+
number provided, it will be total request
|
|
2246
|
+
timeout. It can also be a pair (tuple) of
|
|
2247
|
+
(connection, read) timeouts.
|
|
2248
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2249
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2250
|
+
request; this effectively ignores the
|
|
2251
|
+
authentication in the spec for a single request.
|
|
2252
|
+
:type _request_auth: dict, optional
|
|
2253
|
+
:param _content_type: force content-type for the request.
|
|
2254
|
+
:type _content_type: str, Optional
|
|
2255
|
+
:param _headers: set to override the headers for a single
|
|
2256
|
+
request; this effectively ignores the headers
|
|
2257
|
+
in the spec for a single request.
|
|
2258
|
+
:type _headers: dict, optional
|
|
2259
|
+
:param _host_index: set to override the host_index for a single
|
|
2260
|
+
request; this effectively ignores the host_index
|
|
2261
|
+
in the spec for a single request.
|
|
2262
|
+
:type _host_index: int, optional
|
|
2263
|
+
:return: Returns the result object.
|
|
2264
|
+
""" # noqa: E501
|
|
2265
|
+
|
|
2266
|
+
_param = self._modify_serialize(
|
|
2267
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
2268
|
+
repository_add_remove_content=repository_add_remove_content,
|
|
2269
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2270
|
+
_request_auth=_request_auth,
|
|
2271
|
+
_content_type=_content_type,
|
|
2272
|
+
_headers=_headers,
|
|
2273
|
+
_host_index=_host_index
|
|
2274
|
+
)
|
|
2275
|
+
|
|
2276
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2277
|
+
'202': "AsyncOperationResponse",
|
|
2278
|
+
}
|
|
2279
|
+
response_data = self.api_client.call_api(
|
|
2280
|
+
*_param,
|
|
2281
|
+
_request_timeout=_request_timeout
|
|
2282
|
+
)
|
|
2283
|
+
return response_data.response
|
|
2284
|
+
|
|
2285
|
+
|
|
2286
|
+
def _modify_serialize(
|
|
2287
|
+
self,
|
|
2288
|
+
open_p_g_p_keyring_href,
|
|
2289
|
+
repository_add_remove_content,
|
|
2290
|
+
x_task_diagnostics,
|
|
2291
|
+
_request_auth,
|
|
2292
|
+
_content_type,
|
|
2293
|
+
_headers,
|
|
2294
|
+
_host_index,
|
|
2295
|
+
) -> RequestSerialized:
|
|
2296
|
+
|
|
2297
|
+
_host = None
|
|
2298
|
+
|
|
2299
|
+
_collection_formats: Dict[str, str] = {
|
|
2300
|
+
'X-Task-Diagnostics': 'csv',
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
_path_params: Dict[str, str] = {}
|
|
2304
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2305
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2306
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2307
|
+
_files: Dict[
|
|
2308
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2309
|
+
] = {}
|
|
2310
|
+
_body_params: Optional[bytes] = None
|
|
2311
|
+
|
|
2312
|
+
# process the path parameters
|
|
2313
|
+
if open_p_g_p_keyring_href is not None:
|
|
2314
|
+
_path_params['open_p_g_p_keyring_href'] = open_p_g_p_keyring_href
|
|
2315
|
+
# process the query parameters
|
|
2316
|
+
# process the header parameters
|
|
2317
|
+
if x_task_diagnostics is not None:
|
|
2318
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
2319
|
+
# process the form parameters
|
|
2320
|
+
# process the body parameter
|
|
2321
|
+
if repository_add_remove_content is not None:
|
|
2322
|
+
_body_params = repository_add_remove_content
|
|
2323
|
+
|
|
2324
|
+
|
|
2325
|
+
# set the HTTP header `Accept`
|
|
2326
|
+
if 'Accept' not in _header_params:
|
|
2327
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2328
|
+
[
|
|
2329
|
+
'application/json'
|
|
2330
|
+
]
|
|
2331
|
+
)
|
|
2332
|
+
|
|
2333
|
+
# set the HTTP header `Content-Type`
|
|
2334
|
+
if _content_type:
|
|
2335
|
+
_header_params['Content-Type'] = _content_type
|
|
2336
|
+
else:
|
|
2337
|
+
_default_content_type = (
|
|
2338
|
+
self.api_client.select_header_content_type(
|
|
2339
|
+
[
|
|
2340
|
+
'application/json',
|
|
2341
|
+
'application/x-www-form-urlencoded',
|
|
2342
|
+
'multipart/form-data'
|
|
2343
|
+
]
|
|
2344
|
+
)
|
|
2345
|
+
)
|
|
2346
|
+
if _default_content_type is not None:
|
|
2347
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2348
|
+
|
|
2349
|
+
# authentication setting
|
|
2350
|
+
_auth_settings: List[str] = [
|
|
2351
|
+
'json_header_remote_authentication',
|
|
2352
|
+
'basicAuth',
|
|
2353
|
+
'cookieAuth'
|
|
2354
|
+
]
|
|
2355
|
+
|
|
2356
|
+
return self.api_client.param_serialize(
|
|
2357
|
+
method='POST',
|
|
2358
|
+
resource_path='{open_p_g_p_keyring_href}modify/',
|
|
2359
|
+
path_params=_path_params,
|
|
2360
|
+
query_params=_query_params,
|
|
2361
|
+
header_params=_header_params,
|
|
2362
|
+
body=_body_params,
|
|
2363
|
+
post_params=_form_params,
|
|
2364
|
+
files=_files,
|
|
2365
|
+
auth_settings=_auth_settings,
|
|
2366
|
+
collection_formats=_collection_formats,
|
|
2367
|
+
_host=_host,
|
|
2368
|
+
_request_auth=_request_auth
|
|
2369
|
+
)
|
|
2370
|
+
|
|
2371
|
+
|
|
2372
|
+
|
|
2373
|
+
|
|
2374
|
+
@validate_call
|
|
2375
|
+
def my_permissions(
|
|
2376
|
+
self,
|
|
2377
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
2378
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2379
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2380
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2381
|
+
_request_timeout: Union[
|
|
2382
|
+
None,
|
|
2383
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2384
|
+
Tuple[
|
|
2385
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2386
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2387
|
+
]
|
|
2388
|
+
] = None,
|
|
2389
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2390
|
+
_content_type: Optional[StrictStr] = None,
|
|
2391
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2392
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2393
|
+
) -> MyPermissionsResponse:
|
|
2394
|
+
"""List user permissions
|
|
2395
|
+
|
|
2396
|
+
List permissions available to the current user on this object.
|
|
2397
|
+
|
|
2398
|
+
:param open_p_g_p_keyring_href: (required)
|
|
2399
|
+
:type open_p_g_p_keyring_href: str
|
|
2400
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2401
|
+
:type x_task_diagnostics: List[str]
|
|
2402
|
+
:param fields: A list of fields to include in the response.
|
|
2403
|
+
:type fields: List[str]
|
|
2404
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
2405
|
+
:type exclude_fields: List[str]
|
|
2406
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2407
|
+
number provided, it will be total request
|
|
2408
|
+
timeout. It can also be a pair (tuple) of
|
|
2409
|
+
(connection, read) timeouts.
|
|
2410
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2411
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2412
|
+
request; this effectively ignores the
|
|
2413
|
+
authentication in the spec for a single request.
|
|
2414
|
+
:type _request_auth: dict, optional
|
|
2415
|
+
:param _content_type: force content-type for the request.
|
|
2416
|
+
:type _content_type: str, Optional
|
|
2417
|
+
:param _headers: set to override the headers for a single
|
|
2418
|
+
request; this effectively ignores the headers
|
|
2419
|
+
in the spec for a single request.
|
|
2420
|
+
:type _headers: dict, optional
|
|
2421
|
+
:param _host_index: set to override the host_index for a single
|
|
2422
|
+
request; this effectively ignores the host_index
|
|
2423
|
+
in the spec for a single request.
|
|
2424
|
+
:type _host_index: int, optional
|
|
2425
|
+
:return: Returns the result object.
|
|
2426
|
+
""" # noqa: E501
|
|
2427
|
+
|
|
2428
|
+
_param = self._my_permissions_serialize(
|
|
2429
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
2430
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2431
|
+
fields=fields,
|
|
2432
|
+
exclude_fields=exclude_fields,
|
|
2433
|
+
_request_auth=_request_auth,
|
|
2434
|
+
_content_type=_content_type,
|
|
2435
|
+
_headers=_headers,
|
|
2436
|
+
_host_index=_host_index
|
|
2437
|
+
)
|
|
2438
|
+
|
|
2439
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2440
|
+
'200': "MyPermissionsResponse",
|
|
2441
|
+
}
|
|
2442
|
+
response_data = self.api_client.call_api(
|
|
2443
|
+
*_param,
|
|
2444
|
+
_request_timeout=_request_timeout
|
|
2445
|
+
)
|
|
2446
|
+
response_data.read()
|
|
2447
|
+
return self.api_client.response_deserialize(
|
|
2448
|
+
response_data=response_data,
|
|
2449
|
+
response_types_map=_response_types_map,
|
|
2450
|
+
).data
|
|
2451
|
+
|
|
2452
|
+
|
|
2453
|
+
@validate_call
|
|
2454
|
+
def my_permissions_with_http_info(
|
|
2455
|
+
self,
|
|
2456
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
2457
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2458
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2459
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2460
|
+
_request_timeout: Union[
|
|
2461
|
+
None,
|
|
2462
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2463
|
+
Tuple[
|
|
2464
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2465
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2466
|
+
]
|
|
2467
|
+
] = None,
|
|
2468
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2469
|
+
_content_type: Optional[StrictStr] = None,
|
|
2470
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2471
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2472
|
+
) -> ApiResponse[MyPermissionsResponse]:
|
|
2473
|
+
"""List user permissions
|
|
2474
|
+
|
|
2475
|
+
List permissions available to the current user on this object.
|
|
2476
|
+
|
|
2477
|
+
:param open_p_g_p_keyring_href: (required)
|
|
2478
|
+
:type open_p_g_p_keyring_href: str
|
|
2479
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2480
|
+
:type x_task_diagnostics: List[str]
|
|
2481
|
+
:param fields: A list of fields to include in the response.
|
|
2482
|
+
:type fields: List[str]
|
|
2483
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
2484
|
+
:type exclude_fields: List[str]
|
|
2485
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2486
|
+
number provided, it will be total request
|
|
2487
|
+
timeout. It can also be a pair (tuple) of
|
|
2488
|
+
(connection, read) timeouts.
|
|
2489
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2490
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2491
|
+
request; this effectively ignores the
|
|
2492
|
+
authentication in the spec for a single request.
|
|
2493
|
+
:type _request_auth: dict, optional
|
|
2494
|
+
:param _content_type: force content-type for the request.
|
|
2495
|
+
:type _content_type: str, Optional
|
|
2496
|
+
:param _headers: set to override the headers for a single
|
|
2497
|
+
request; this effectively ignores the headers
|
|
2498
|
+
in the spec for a single request.
|
|
2499
|
+
:type _headers: dict, optional
|
|
2500
|
+
:param _host_index: set to override the host_index for a single
|
|
2501
|
+
request; this effectively ignores the host_index
|
|
2502
|
+
in the spec for a single request.
|
|
2503
|
+
:type _host_index: int, optional
|
|
2504
|
+
:return: Returns the result object.
|
|
2505
|
+
""" # noqa: E501
|
|
2506
|
+
|
|
2507
|
+
_param = self._my_permissions_serialize(
|
|
2508
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
2509
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2510
|
+
fields=fields,
|
|
2511
|
+
exclude_fields=exclude_fields,
|
|
2512
|
+
_request_auth=_request_auth,
|
|
2513
|
+
_content_type=_content_type,
|
|
2514
|
+
_headers=_headers,
|
|
2515
|
+
_host_index=_host_index
|
|
2516
|
+
)
|
|
2517
|
+
|
|
2518
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2519
|
+
'200': "MyPermissionsResponse",
|
|
2520
|
+
}
|
|
2521
|
+
response_data = self.api_client.call_api(
|
|
2522
|
+
*_param,
|
|
2523
|
+
_request_timeout=_request_timeout
|
|
2524
|
+
)
|
|
2525
|
+
response_data.read()
|
|
2526
|
+
return self.api_client.response_deserialize(
|
|
2527
|
+
response_data=response_data,
|
|
2528
|
+
response_types_map=_response_types_map,
|
|
2529
|
+
)
|
|
2530
|
+
|
|
2531
|
+
|
|
2532
|
+
@validate_call
|
|
2533
|
+
def my_permissions_without_preload_content(
|
|
2534
|
+
self,
|
|
2535
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
2536
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2537
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2538
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2539
|
+
_request_timeout: Union[
|
|
2540
|
+
None,
|
|
2541
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2542
|
+
Tuple[
|
|
2543
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2544
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2545
|
+
]
|
|
2546
|
+
] = None,
|
|
2547
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2548
|
+
_content_type: Optional[StrictStr] = None,
|
|
2549
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2550
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2551
|
+
) -> RESTResponseType:
|
|
2552
|
+
"""List user permissions
|
|
2553
|
+
|
|
2554
|
+
List permissions available to the current user on this object.
|
|
2555
|
+
|
|
2556
|
+
:param open_p_g_p_keyring_href: (required)
|
|
2557
|
+
:type open_p_g_p_keyring_href: str
|
|
2558
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2559
|
+
:type x_task_diagnostics: List[str]
|
|
2560
|
+
:param fields: A list of fields to include in the response.
|
|
2561
|
+
:type fields: List[str]
|
|
2562
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
2563
|
+
:type exclude_fields: List[str]
|
|
2564
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2565
|
+
number provided, it will be total request
|
|
2566
|
+
timeout. It can also be a pair (tuple) of
|
|
2567
|
+
(connection, read) timeouts.
|
|
2568
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2569
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2570
|
+
request; this effectively ignores the
|
|
2571
|
+
authentication in the spec for a single request.
|
|
2572
|
+
:type _request_auth: dict, optional
|
|
2573
|
+
:param _content_type: force content-type for the request.
|
|
2574
|
+
:type _content_type: str, Optional
|
|
2575
|
+
:param _headers: set to override the headers for a single
|
|
2576
|
+
request; this effectively ignores the headers
|
|
2577
|
+
in the spec for a single request.
|
|
2578
|
+
:type _headers: dict, optional
|
|
2579
|
+
:param _host_index: set to override the host_index for a single
|
|
2580
|
+
request; this effectively ignores the host_index
|
|
2581
|
+
in the spec for a single request.
|
|
2582
|
+
:type _host_index: int, optional
|
|
2583
|
+
:return: Returns the result object.
|
|
2584
|
+
""" # noqa: E501
|
|
2585
|
+
|
|
2586
|
+
_param = self._my_permissions_serialize(
|
|
2587
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
2588
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2589
|
+
fields=fields,
|
|
2590
|
+
exclude_fields=exclude_fields,
|
|
2591
|
+
_request_auth=_request_auth,
|
|
2592
|
+
_content_type=_content_type,
|
|
2593
|
+
_headers=_headers,
|
|
2594
|
+
_host_index=_host_index
|
|
2595
|
+
)
|
|
2596
|
+
|
|
2597
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2598
|
+
'200': "MyPermissionsResponse",
|
|
2599
|
+
}
|
|
2600
|
+
response_data = self.api_client.call_api(
|
|
2601
|
+
*_param,
|
|
2602
|
+
_request_timeout=_request_timeout
|
|
2603
|
+
)
|
|
2604
|
+
return response_data.response
|
|
2605
|
+
|
|
2606
|
+
|
|
2607
|
+
def _my_permissions_serialize(
|
|
2608
|
+
self,
|
|
2609
|
+
open_p_g_p_keyring_href,
|
|
2610
|
+
x_task_diagnostics,
|
|
2611
|
+
fields,
|
|
2612
|
+
exclude_fields,
|
|
2613
|
+
_request_auth,
|
|
2614
|
+
_content_type,
|
|
2615
|
+
_headers,
|
|
2616
|
+
_host_index,
|
|
2617
|
+
) -> RequestSerialized:
|
|
2618
|
+
|
|
2619
|
+
_host = None
|
|
2620
|
+
|
|
2621
|
+
_collection_formats: Dict[str, str] = {
|
|
2622
|
+
'X-Task-Diagnostics': 'csv',
|
|
2623
|
+
'fields': 'multi',
|
|
2624
|
+
'exclude_fields': 'multi',
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
_path_params: Dict[str, str] = {}
|
|
2628
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2629
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2630
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2631
|
+
_files: Dict[
|
|
2632
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2633
|
+
] = {}
|
|
2634
|
+
_body_params: Optional[bytes] = None
|
|
2635
|
+
|
|
2636
|
+
# process the path parameters
|
|
2637
|
+
if open_p_g_p_keyring_href is not None:
|
|
2638
|
+
_path_params['open_p_g_p_keyring_href'] = open_p_g_p_keyring_href
|
|
2639
|
+
# process the query parameters
|
|
2640
|
+
if fields is not None:
|
|
2641
|
+
|
|
2642
|
+
_query_params.append(('fields', fields))
|
|
2643
|
+
|
|
2644
|
+
if exclude_fields is not None:
|
|
2645
|
+
|
|
2646
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
2647
|
+
|
|
2648
|
+
# process the header parameters
|
|
2649
|
+
if x_task_diagnostics is not None:
|
|
2650
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
2651
|
+
# process the form parameters
|
|
2652
|
+
# process the body parameter
|
|
2653
|
+
|
|
2654
|
+
|
|
2655
|
+
# set the HTTP header `Accept`
|
|
2656
|
+
if 'Accept' not in _header_params:
|
|
2657
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2658
|
+
[
|
|
2659
|
+
'application/json'
|
|
2660
|
+
]
|
|
2661
|
+
)
|
|
2662
|
+
|
|
2663
|
+
|
|
2664
|
+
# authentication setting
|
|
2665
|
+
_auth_settings: List[str] = [
|
|
2666
|
+
'json_header_remote_authentication',
|
|
2667
|
+
'basicAuth',
|
|
2668
|
+
'cookieAuth'
|
|
2669
|
+
]
|
|
2670
|
+
|
|
2671
|
+
return self.api_client.param_serialize(
|
|
2672
|
+
method='GET',
|
|
2673
|
+
resource_path='{open_p_g_p_keyring_href}my_permissions/',
|
|
2674
|
+
path_params=_path_params,
|
|
2675
|
+
query_params=_query_params,
|
|
2676
|
+
header_params=_header_params,
|
|
2677
|
+
body=_body_params,
|
|
2678
|
+
post_params=_form_params,
|
|
2679
|
+
files=_files,
|
|
2680
|
+
auth_settings=_auth_settings,
|
|
2681
|
+
collection_formats=_collection_formats,
|
|
2682
|
+
_host=_host,
|
|
2683
|
+
_request_auth=_request_auth
|
|
2684
|
+
)
|
|
2685
|
+
|
|
2686
|
+
|
|
2687
|
+
|
|
2688
|
+
|
|
2689
|
+
@validate_call
|
|
2690
|
+
def partial_update(
|
|
2691
|
+
self,
|
|
2692
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
2693
|
+
patched_open_pgp_keyring: PatchedOpenPGPKeyring,
|
|
2694
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2695
|
+
_request_timeout: Union[
|
|
2696
|
+
None,
|
|
2697
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2698
|
+
Tuple[
|
|
2699
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2700
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2701
|
+
]
|
|
2702
|
+
] = None,
|
|
2703
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2704
|
+
_content_type: Optional[StrictStr] = None,
|
|
2705
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2706
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2707
|
+
) -> AsyncOperationResponse:
|
|
2708
|
+
"""Update an open pgp keyring
|
|
2709
|
+
|
|
2710
|
+
Trigger an asynchronous partial update task
|
|
2711
|
+
|
|
2712
|
+
:param open_p_g_p_keyring_href: (required)
|
|
2713
|
+
:type open_p_g_p_keyring_href: str
|
|
2714
|
+
:param patched_open_pgp_keyring: (required)
|
|
2715
|
+
:type patched_open_pgp_keyring: PatchedOpenPGPKeyring
|
|
2716
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2717
|
+
:type x_task_diagnostics: List[str]
|
|
2718
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2719
|
+
number provided, it will be total request
|
|
2720
|
+
timeout. It can also be a pair (tuple) of
|
|
2721
|
+
(connection, read) timeouts.
|
|
2722
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2723
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2724
|
+
request; this effectively ignores the
|
|
2725
|
+
authentication in the spec for a single request.
|
|
2726
|
+
:type _request_auth: dict, optional
|
|
2727
|
+
:param _content_type: force content-type for the request.
|
|
2728
|
+
:type _content_type: str, Optional
|
|
2729
|
+
:param _headers: set to override the headers for a single
|
|
2730
|
+
request; this effectively ignores the headers
|
|
2731
|
+
in the spec for a single request.
|
|
2732
|
+
:type _headers: dict, optional
|
|
2733
|
+
:param _host_index: set to override the host_index for a single
|
|
2734
|
+
request; this effectively ignores the host_index
|
|
2735
|
+
in the spec for a single request.
|
|
2736
|
+
:type _host_index: int, optional
|
|
2737
|
+
:return: Returns the result object.
|
|
2738
|
+
""" # noqa: E501
|
|
2739
|
+
|
|
2740
|
+
_param = self._partial_update_serialize(
|
|
2741
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
2742
|
+
patched_open_pgp_keyring=patched_open_pgp_keyring,
|
|
2743
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2744
|
+
_request_auth=_request_auth,
|
|
2745
|
+
_content_type=_content_type,
|
|
2746
|
+
_headers=_headers,
|
|
2747
|
+
_host_index=_host_index
|
|
2748
|
+
)
|
|
2749
|
+
|
|
2750
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2751
|
+
'202': "AsyncOperationResponse",
|
|
2752
|
+
}
|
|
2753
|
+
response_data = self.api_client.call_api(
|
|
2754
|
+
*_param,
|
|
2755
|
+
_request_timeout=_request_timeout
|
|
2756
|
+
)
|
|
2757
|
+
response_data.read()
|
|
2758
|
+
return self.api_client.response_deserialize(
|
|
2759
|
+
response_data=response_data,
|
|
2760
|
+
response_types_map=_response_types_map,
|
|
2761
|
+
).data
|
|
2762
|
+
|
|
2763
|
+
|
|
2764
|
+
@validate_call
|
|
2765
|
+
def partial_update_with_http_info(
|
|
2766
|
+
self,
|
|
2767
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
2768
|
+
patched_open_pgp_keyring: PatchedOpenPGPKeyring,
|
|
2769
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2770
|
+
_request_timeout: Union[
|
|
2771
|
+
None,
|
|
2772
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2773
|
+
Tuple[
|
|
2774
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2775
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2776
|
+
]
|
|
2777
|
+
] = None,
|
|
2778
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2779
|
+
_content_type: Optional[StrictStr] = None,
|
|
2780
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2781
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2782
|
+
) -> ApiResponse[AsyncOperationResponse]:
|
|
2783
|
+
"""Update an open pgp keyring
|
|
2784
|
+
|
|
2785
|
+
Trigger an asynchronous partial update task
|
|
2786
|
+
|
|
2787
|
+
:param open_p_g_p_keyring_href: (required)
|
|
2788
|
+
:type open_p_g_p_keyring_href: str
|
|
2789
|
+
:param patched_open_pgp_keyring: (required)
|
|
2790
|
+
:type patched_open_pgp_keyring: PatchedOpenPGPKeyring
|
|
2791
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2792
|
+
:type x_task_diagnostics: List[str]
|
|
2793
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2794
|
+
number provided, it will be total request
|
|
2795
|
+
timeout. It can also be a pair (tuple) of
|
|
2796
|
+
(connection, read) timeouts.
|
|
2797
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2798
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2799
|
+
request; this effectively ignores the
|
|
2800
|
+
authentication in the spec for a single request.
|
|
2801
|
+
:type _request_auth: dict, optional
|
|
2802
|
+
:param _content_type: force content-type for the request.
|
|
2803
|
+
:type _content_type: str, Optional
|
|
2804
|
+
:param _headers: set to override the headers for a single
|
|
2805
|
+
request; this effectively ignores the headers
|
|
2806
|
+
in the spec for a single request.
|
|
2807
|
+
:type _headers: dict, optional
|
|
2808
|
+
:param _host_index: set to override the host_index for a single
|
|
2809
|
+
request; this effectively ignores the host_index
|
|
2810
|
+
in the spec for a single request.
|
|
2811
|
+
:type _host_index: int, optional
|
|
2812
|
+
:return: Returns the result object.
|
|
2813
|
+
""" # noqa: E501
|
|
2814
|
+
|
|
2815
|
+
_param = self._partial_update_serialize(
|
|
2816
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
2817
|
+
patched_open_pgp_keyring=patched_open_pgp_keyring,
|
|
2818
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2819
|
+
_request_auth=_request_auth,
|
|
2820
|
+
_content_type=_content_type,
|
|
2821
|
+
_headers=_headers,
|
|
2822
|
+
_host_index=_host_index
|
|
2823
|
+
)
|
|
2824
|
+
|
|
2825
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2826
|
+
'202': "AsyncOperationResponse",
|
|
2827
|
+
}
|
|
2828
|
+
response_data = self.api_client.call_api(
|
|
2829
|
+
*_param,
|
|
2830
|
+
_request_timeout=_request_timeout
|
|
2831
|
+
)
|
|
2832
|
+
response_data.read()
|
|
2833
|
+
return self.api_client.response_deserialize(
|
|
2834
|
+
response_data=response_data,
|
|
2835
|
+
response_types_map=_response_types_map,
|
|
2836
|
+
)
|
|
2837
|
+
|
|
2838
|
+
|
|
2839
|
+
@validate_call
|
|
2840
|
+
def partial_update_without_preload_content(
|
|
2841
|
+
self,
|
|
2842
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
2843
|
+
patched_open_pgp_keyring: PatchedOpenPGPKeyring,
|
|
2844
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2845
|
+
_request_timeout: Union[
|
|
2846
|
+
None,
|
|
2847
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2848
|
+
Tuple[
|
|
2849
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2850
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2851
|
+
]
|
|
2852
|
+
] = None,
|
|
2853
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2854
|
+
_content_type: Optional[StrictStr] = None,
|
|
2855
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2856
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2857
|
+
) -> RESTResponseType:
|
|
2858
|
+
"""Update an open pgp keyring
|
|
2859
|
+
|
|
2860
|
+
Trigger an asynchronous partial update task
|
|
2861
|
+
|
|
2862
|
+
:param open_p_g_p_keyring_href: (required)
|
|
2863
|
+
:type open_p_g_p_keyring_href: str
|
|
2864
|
+
:param patched_open_pgp_keyring: (required)
|
|
2865
|
+
:type patched_open_pgp_keyring: PatchedOpenPGPKeyring
|
|
2866
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2867
|
+
:type x_task_diagnostics: List[str]
|
|
2868
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2869
|
+
number provided, it will be total request
|
|
2870
|
+
timeout. It can also be a pair (tuple) of
|
|
2871
|
+
(connection, read) timeouts.
|
|
2872
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2873
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2874
|
+
request; this effectively ignores the
|
|
2875
|
+
authentication in the spec for a single request.
|
|
2876
|
+
:type _request_auth: dict, optional
|
|
2877
|
+
:param _content_type: force content-type for the request.
|
|
2878
|
+
:type _content_type: str, Optional
|
|
2879
|
+
:param _headers: set to override the headers for a single
|
|
2880
|
+
request; this effectively ignores the headers
|
|
2881
|
+
in the spec for a single request.
|
|
2882
|
+
:type _headers: dict, optional
|
|
2883
|
+
:param _host_index: set to override the host_index for a single
|
|
2884
|
+
request; this effectively ignores the host_index
|
|
2885
|
+
in the spec for a single request.
|
|
2886
|
+
:type _host_index: int, optional
|
|
2887
|
+
:return: Returns the result object.
|
|
2888
|
+
""" # noqa: E501
|
|
2889
|
+
|
|
2890
|
+
_param = self._partial_update_serialize(
|
|
2891
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
2892
|
+
patched_open_pgp_keyring=patched_open_pgp_keyring,
|
|
2893
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2894
|
+
_request_auth=_request_auth,
|
|
2895
|
+
_content_type=_content_type,
|
|
2896
|
+
_headers=_headers,
|
|
2897
|
+
_host_index=_host_index
|
|
2898
|
+
)
|
|
2899
|
+
|
|
2900
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2901
|
+
'202': "AsyncOperationResponse",
|
|
2902
|
+
}
|
|
2903
|
+
response_data = self.api_client.call_api(
|
|
2904
|
+
*_param,
|
|
2905
|
+
_request_timeout=_request_timeout
|
|
2906
|
+
)
|
|
2907
|
+
return response_data.response
|
|
2908
|
+
|
|
2909
|
+
|
|
2910
|
+
def _partial_update_serialize(
|
|
2911
|
+
self,
|
|
2912
|
+
open_p_g_p_keyring_href,
|
|
2913
|
+
patched_open_pgp_keyring,
|
|
2914
|
+
x_task_diagnostics,
|
|
2915
|
+
_request_auth,
|
|
2916
|
+
_content_type,
|
|
2917
|
+
_headers,
|
|
2918
|
+
_host_index,
|
|
2919
|
+
) -> RequestSerialized:
|
|
2920
|
+
|
|
2921
|
+
_host = None
|
|
2922
|
+
|
|
2923
|
+
_collection_formats: Dict[str, str] = {
|
|
2924
|
+
'X-Task-Diagnostics': 'csv',
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
_path_params: Dict[str, str] = {}
|
|
2928
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2929
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2930
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2931
|
+
_files: Dict[
|
|
2932
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2933
|
+
] = {}
|
|
2934
|
+
_body_params: Optional[bytes] = None
|
|
2935
|
+
|
|
2936
|
+
# process the path parameters
|
|
2937
|
+
if open_p_g_p_keyring_href is not None:
|
|
2938
|
+
_path_params['open_p_g_p_keyring_href'] = open_p_g_p_keyring_href
|
|
2939
|
+
# process the query parameters
|
|
2940
|
+
# process the header parameters
|
|
2941
|
+
if x_task_diagnostics is not None:
|
|
2942
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
2943
|
+
# process the form parameters
|
|
2944
|
+
# process the body parameter
|
|
2945
|
+
if patched_open_pgp_keyring is not None:
|
|
2946
|
+
_body_params = patched_open_pgp_keyring
|
|
2947
|
+
|
|
2948
|
+
|
|
2949
|
+
# set the HTTP header `Accept`
|
|
2950
|
+
if 'Accept' not in _header_params:
|
|
2951
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2952
|
+
[
|
|
2953
|
+
'application/json'
|
|
2954
|
+
]
|
|
2955
|
+
)
|
|
2956
|
+
|
|
2957
|
+
# set the HTTP header `Content-Type`
|
|
2958
|
+
if _content_type:
|
|
2959
|
+
_header_params['Content-Type'] = _content_type
|
|
2960
|
+
else:
|
|
2961
|
+
_default_content_type = (
|
|
2962
|
+
self.api_client.select_header_content_type(
|
|
2963
|
+
[
|
|
2964
|
+
'application/json',
|
|
2965
|
+
'application/x-www-form-urlencoded',
|
|
2966
|
+
'multipart/form-data'
|
|
2967
|
+
]
|
|
2968
|
+
)
|
|
2969
|
+
)
|
|
2970
|
+
if _default_content_type is not None:
|
|
2971
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2972
|
+
|
|
2973
|
+
# authentication setting
|
|
2974
|
+
_auth_settings: List[str] = [
|
|
2975
|
+
'json_header_remote_authentication',
|
|
2976
|
+
'basicAuth',
|
|
2977
|
+
'cookieAuth'
|
|
2978
|
+
]
|
|
2979
|
+
|
|
2980
|
+
return self.api_client.param_serialize(
|
|
2981
|
+
method='PATCH',
|
|
2982
|
+
resource_path='{open_p_g_p_keyring_href}',
|
|
2983
|
+
path_params=_path_params,
|
|
2984
|
+
query_params=_query_params,
|
|
2985
|
+
header_params=_header_params,
|
|
2986
|
+
body=_body_params,
|
|
2987
|
+
post_params=_form_params,
|
|
2988
|
+
files=_files,
|
|
2989
|
+
auth_settings=_auth_settings,
|
|
2990
|
+
collection_formats=_collection_formats,
|
|
2991
|
+
_host=_host,
|
|
2992
|
+
_request_auth=_request_auth
|
|
2993
|
+
)
|
|
2994
|
+
|
|
2995
|
+
|
|
2996
|
+
|
|
2997
|
+
|
|
2998
|
+
@validate_call
|
|
2999
|
+
def read(
|
|
3000
|
+
self,
|
|
3001
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
3002
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3003
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
3004
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
3005
|
+
_request_timeout: Union[
|
|
3006
|
+
None,
|
|
3007
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3008
|
+
Tuple[
|
|
3009
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3010
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3011
|
+
]
|
|
3012
|
+
] = None,
|
|
3013
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3014
|
+
_content_type: Optional[StrictStr] = None,
|
|
3015
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3016
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3017
|
+
) -> OpenPGPKeyringResponse:
|
|
3018
|
+
"""Inspect an open pgp keyring
|
|
3019
|
+
|
|
3020
|
+
A ViewSet for an ordinary repository.
|
|
3021
|
+
|
|
3022
|
+
:param open_p_g_p_keyring_href: (required)
|
|
3023
|
+
:type open_p_g_p_keyring_href: str
|
|
3024
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3025
|
+
:type x_task_diagnostics: List[str]
|
|
3026
|
+
:param fields: A list of fields to include in the response.
|
|
3027
|
+
:type fields: List[str]
|
|
3028
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
3029
|
+
:type exclude_fields: List[str]
|
|
3030
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3031
|
+
number provided, it will be total request
|
|
3032
|
+
timeout. It can also be a pair (tuple) of
|
|
3033
|
+
(connection, read) timeouts.
|
|
3034
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3035
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3036
|
+
request; this effectively ignores the
|
|
3037
|
+
authentication in the spec for a single request.
|
|
3038
|
+
:type _request_auth: dict, optional
|
|
3039
|
+
:param _content_type: force content-type for the request.
|
|
3040
|
+
:type _content_type: str, Optional
|
|
3041
|
+
:param _headers: set to override the headers for a single
|
|
3042
|
+
request; this effectively ignores the headers
|
|
3043
|
+
in the spec for a single request.
|
|
3044
|
+
:type _headers: dict, optional
|
|
3045
|
+
:param _host_index: set to override the host_index for a single
|
|
3046
|
+
request; this effectively ignores the host_index
|
|
3047
|
+
in the spec for a single request.
|
|
3048
|
+
:type _host_index: int, optional
|
|
3049
|
+
:return: Returns the result object.
|
|
3050
|
+
""" # noqa: E501
|
|
3051
|
+
|
|
3052
|
+
_param = self._read_serialize(
|
|
3053
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
3054
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3055
|
+
fields=fields,
|
|
3056
|
+
exclude_fields=exclude_fields,
|
|
3057
|
+
_request_auth=_request_auth,
|
|
3058
|
+
_content_type=_content_type,
|
|
3059
|
+
_headers=_headers,
|
|
3060
|
+
_host_index=_host_index
|
|
3061
|
+
)
|
|
3062
|
+
|
|
3063
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3064
|
+
'200': "OpenPGPKeyringResponse",
|
|
3065
|
+
}
|
|
3066
|
+
response_data = self.api_client.call_api(
|
|
3067
|
+
*_param,
|
|
3068
|
+
_request_timeout=_request_timeout
|
|
3069
|
+
)
|
|
3070
|
+
response_data.read()
|
|
3071
|
+
return self.api_client.response_deserialize(
|
|
3072
|
+
response_data=response_data,
|
|
3073
|
+
response_types_map=_response_types_map,
|
|
3074
|
+
).data
|
|
3075
|
+
|
|
3076
|
+
|
|
3077
|
+
@validate_call
|
|
3078
|
+
def read_with_http_info(
|
|
3079
|
+
self,
|
|
3080
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
3081
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3082
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
3083
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
3084
|
+
_request_timeout: Union[
|
|
3085
|
+
None,
|
|
3086
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3087
|
+
Tuple[
|
|
3088
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3089
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3090
|
+
]
|
|
3091
|
+
] = None,
|
|
3092
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3093
|
+
_content_type: Optional[StrictStr] = None,
|
|
3094
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3095
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3096
|
+
) -> ApiResponse[OpenPGPKeyringResponse]:
|
|
3097
|
+
"""Inspect an open pgp keyring
|
|
3098
|
+
|
|
3099
|
+
A ViewSet for an ordinary repository.
|
|
3100
|
+
|
|
3101
|
+
:param open_p_g_p_keyring_href: (required)
|
|
3102
|
+
:type open_p_g_p_keyring_href: str
|
|
3103
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3104
|
+
:type x_task_diagnostics: List[str]
|
|
3105
|
+
:param fields: A list of fields to include in the response.
|
|
3106
|
+
:type fields: List[str]
|
|
3107
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
3108
|
+
:type exclude_fields: List[str]
|
|
3109
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3110
|
+
number provided, it will be total request
|
|
3111
|
+
timeout. It can also be a pair (tuple) of
|
|
3112
|
+
(connection, read) timeouts.
|
|
3113
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3114
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3115
|
+
request; this effectively ignores the
|
|
3116
|
+
authentication in the spec for a single request.
|
|
3117
|
+
:type _request_auth: dict, optional
|
|
3118
|
+
:param _content_type: force content-type for the request.
|
|
3119
|
+
:type _content_type: str, Optional
|
|
3120
|
+
:param _headers: set to override the headers for a single
|
|
3121
|
+
request; this effectively ignores the headers
|
|
3122
|
+
in the spec for a single request.
|
|
3123
|
+
:type _headers: dict, optional
|
|
3124
|
+
:param _host_index: set to override the host_index for a single
|
|
3125
|
+
request; this effectively ignores the host_index
|
|
3126
|
+
in the spec for a single request.
|
|
3127
|
+
:type _host_index: int, optional
|
|
3128
|
+
:return: Returns the result object.
|
|
3129
|
+
""" # noqa: E501
|
|
3130
|
+
|
|
3131
|
+
_param = self._read_serialize(
|
|
3132
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
3133
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3134
|
+
fields=fields,
|
|
3135
|
+
exclude_fields=exclude_fields,
|
|
3136
|
+
_request_auth=_request_auth,
|
|
3137
|
+
_content_type=_content_type,
|
|
3138
|
+
_headers=_headers,
|
|
3139
|
+
_host_index=_host_index
|
|
3140
|
+
)
|
|
3141
|
+
|
|
3142
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3143
|
+
'200': "OpenPGPKeyringResponse",
|
|
3144
|
+
}
|
|
3145
|
+
response_data = self.api_client.call_api(
|
|
3146
|
+
*_param,
|
|
3147
|
+
_request_timeout=_request_timeout
|
|
3148
|
+
)
|
|
3149
|
+
response_data.read()
|
|
3150
|
+
return self.api_client.response_deserialize(
|
|
3151
|
+
response_data=response_data,
|
|
3152
|
+
response_types_map=_response_types_map,
|
|
3153
|
+
)
|
|
3154
|
+
|
|
3155
|
+
|
|
3156
|
+
@validate_call
|
|
3157
|
+
def read_without_preload_content(
|
|
3158
|
+
self,
|
|
3159
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
3160
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3161
|
+
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
3162
|
+
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
3163
|
+
_request_timeout: Union[
|
|
3164
|
+
None,
|
|
3165
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3166
|
+
Tuple[
|
|
3167
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3168
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3169
|
+
]
|
|
3170
|
+
] = None,
|
|
3171
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3172
|
+
_content_type: Optional[StrictStr] = None,
|
|
3173
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3174
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3175
|
+
) -> RESTResponseType:
|
|
3176
|
+
"""Inspect an open pgp keyring
|
|
3177
|
+
|
|
3178
|
+
A ViewSet for an ordinary repository.
|
|
3179
|
+
|
|
3180
|
+
:param open_p_g_p_keyring_href: (required)
|
|
3181
|
+
:type open_p_g_p_keyring_href: str
|
|
3182
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3183
|
+
:type x_task_diagnostics: List[str]
|
|
3184
|
+
:param fields: A list of fields to include in the response.
|
|
3185
|
+
:type fields: List[str]
|
|
3186
|
+
:param exclude_fields: A list of fields to exclude from the response.
|
|
3187
|
+
:type exclude_fields: List[str]
|
|
3188
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3189
|
+
number provided, it will be total request
|
|
3190
|
+
timeout. It can also be a pair (tuple) of
|
|
3191
|
+
(connection, read) timeouts.
|
|
3192
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3193
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3194
|
+
request; this effectively ignores the
|
|
3195
|
+
authentication in the spec for a single request.
|
|
3196
|
+
:type _request_auth: dict, optional
|
|
3197
|
+
:param _content_type: force content-type for the request.
|
|
3198
|
+
:type _content_type: str, Optional
|
|
3199
|
+
:param _headers: set to override the headers for a single
|
|
3200
|
+
request; this effectively ignores the headers
|
|
3201
|
+
in the spec for a single request.
|
|
3202
|
+
:type _headers: dict, optional
|
|
3203
|
+
:param _host_index: set to override the host_index for a single
|
|
3204
|
+
request; this effectively ignores the host_index
|
|
3205
|
+
in the spec for a single request.
|
|
3206
|
+
:type _host_index: int, optional
|
|
3207
|
+
:return: Returns the result object.
|
|
3208
|
+
""" # noqa: E501
|
|
3209
|
+
|
|
3210
|
+
_param = self._read_serialize(
|
|
3211
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
3212
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3213
|
+
fields=fields,
|
|
3214
|
+
exclude_fields=exclude_fields,
|
|
3215
|
+
_request_auth=_request_auth,
|
|
3216
|
+
_content_type=_content_type,
|
|
3217
|
+
_headers=_headers,
|
|
3218
|
+
_host_index=_host_index
|
|
3219
|
+
)
|
|
3220
|
+
|
|
3221
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3222
|
+
'200': "OpenPGPKeyringResponse",
|
|
3223
|
+
}
|
|
3224
|
+
response_data = self.api_client.call_api(
|
|
3225
|
+
*_param,
|
|
3226
|
+
_request_timeout=_request_timeout
|
|
3227
|
+
)
|
|
3228
|
+
return response_data.response
|
|
3229
|
+
|
|
3230
|
+
|
|
3231
|
+
def _read_serialize(
|
|
3232
|
+
self,
|
|
3233
|
+
open_p_g_p_keyring_href,
|
|
3234
|
+
x_task_diagnostics,
|
|
3235
|
+
fields,
|
|
3236
|
+
exclude_fields,
|
|
3237
|
+
_request_auth,
|
|
3238
|
+
_content_type,
|
|
3239
|
+
_headers,
|
|
3240
|
+
_host_index,
|
|
3241
|
+
) -> RequestSerialized:
|
|
3242
|
+
|
|
3243
|
+
_host = None
|
|
3244
|
+
|
|
3245
|
+
_collection_formats: Dict[str, str] = {
|
|
3246
|
+
'X-Task-Diagnostics': 'csv',
|
|
3247
|
+
'fields': 'multi',
|
|
3248
|
+
'exclude_fields': 'multi',
|
|
3249
|
+
}
|
|
3250
|
+
|
|
3251
|
+
_path_params: Dict[str, str] = {}
|
|
3252
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3253
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3254
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3255
|
+
_files: Dict[
|
|
3256
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3257
|
+
] = {}
|
|
3258
|
+
_body_params: Optional[bytes] = None
|
|
3259
|
+
|
|
3260
|
+
# process the path parameters
|
|
3261
|
+
if open_p_g_p_keyring_href is not None:
|
|
3262
|
+
_path_params['open_p_g_p_keyring_href'] = open_p_g_p_keyring_href
|
|
3263
|
+
# process the query parameters
|
|
3264
|
+
if fields is not None:
|
|
3265
|
+
|
|
3266
|
+
_query_params.append(('fields', fields))
|
|
3267
|
+
|
|
3268
|
+
if exclude_fields is not None:
|
|
3269
|
+
|
|
3270
|
+
_query_params.append(('exclude_fields', exclude_fields))
|
|
3271
|
+
|
|
3272
|
+
# process the header parameters
|
|
3273
|
+
if x_task_diagnostics is not None:
|
|
3274
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
3275
|
+
# process the form parameters
|
|
3276
|
+
# process the body parameter
|
|
3277
|
+
|
|
3278
|
+
|
|
3279
|
+
# set the HTTP header `Accept`
|
|
3280
|
+
if 'Accept' not in _header_params:
|
|
3281
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3282
|
+
[
|
|
3283
|
+
'application/json'
|
|
3284
|
+
]
|
|
3285
|
+
)
|
|
3286
|
+
|
|
3287
|
+
|
|
3288
|
+
# authentication setting
|
|
3289
|
+
_auth_settings: List[str] = [
|
|
3290
|
+
'json_header_remote_authentication',
|
|
3291
|
+
'basicAuth',
|
|
3292
|
+
'cookieAuth'
|
|
3293
|
+
]
|
|
3294
|
+
|
|
3295
|
+
return self.api_client.param_serialize(
|
|
3296
|
+
method='GET',
|
|
3297
|
+
resource_path='{open_p_g_p_keyring_href}',
|
|
3298
|
+
path_params=_path_params,
|
|
3299
|
+
query_params=_query_params,
|
|
3300
|
+
header_params=_header_params,
|
|
3301
|
+
body=_body_params,
|
|
3302
|
+
post_params=_form_params,
|
|
3303
|
+
files=_files,
|
|
3304
|
+
auth_settings=_auth_settings,
|
|
3305
|
+
collection_formats=_collection_formats,
|
|
3306
|
+
_host=_host,
|
|
3307
|
+
_request_auth=_request_auth
|
|
3308
|
+
)
|
|
3309
|
+
|
|
3310
|
+
|
|
3311
|
+
|
|
3312
|
+
|
|
3313
|
+
@validate_call
|
|
3314
|
+
def remove_role(
|
|
3315
|
+
self,
|
|
3316
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
3317
|
+
nested_role: NestedRole,
|
|
3318
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3319
|
+
_request_timeout: Union[
|
|
3320
|
+
None,
|
|
3321
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3322
|
+
Tuple[
|
|
3323
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3324
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3325
|
+
]
|
|
3326
|
+
] = None,
|
|
3327
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3328
|
+
_content_type: Optional[StrictStr] = None,
|
|
3329
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3330
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3331
|
+
) -> NestedRoleResponse:
|
|
3332
|
+
"""Remove a role
|
|
3333
|
+
|
|
3334
|
+
Remove a role for this object from users/groups.
|
|
3335
|
+
|
|
3336
|
+
:param open_p_g_p_keyring_href: (required)
|
|
3337
|
+
:type open_p_g_p_keyring_href: str
|
|
3338
|
+
:param nested_role: (required)
|
|
3339
|
+
:type nested_role: NestedRole
|
|
3340
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3341
|
+
:type x_task_diagnostics: List[str]
|
|
3342
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3343
|
+
number provided, it will be total request
|
|
3344
|
+
timeout. It can also be a pair (tuple) of
|
|
3345
|
+
(connection, read) timeouts.
|
|
3346
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3347
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3348
|
+
request; this effectively ignores the
|
|
3349
|
+
authentication in the spec for a single request.
|
|
3350
|
+
:type _request_auth: dict, optional
|
|
3351
|
+
:param _content_type: force content-type for the request.
|
|
3352
|
+
:type _content_type: str, Optional
|
|
3353
|
+
:param _headers: set to override the headers for a single
|
|
3354
|
+
request; this effectively ignores the headers
|
|
3355
|
+
in the spec for a single request.
|
|
3356
|
+
:type _headers: dict, optional
|
|
3357
|
+
:param _host_index: set to override the host_index for a single
|
|
3358
|
+
request; this effectively ignores the host_index
|
|
3359
|
+
in the spec for a single request.
|
|
3360
|
+
:type _host_index: int, optional
|
|
3361
|
+
:return: Returns the result object.
|
|
3362
|
+
""" # noqa: E501
|
|
3363
|
+
|
|
3364
|
+
_param = self._remove_role_serialize(
|
|
3365
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
3366
|
+
nested_role=nested_role,
|
|
3367
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3368
|
+
_request_auth=_request_auth,
|
|
3369
|
+
_content_type=_content_type,
|
|
3370
|
+
_headers=_headers,
|
|
3371
|
+
_host_index=_host_index
|
|
3372
|
+
)
|
|
3373
|
+
|
|
3374
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3375
|
+
'201': "NestedRoleResponse",
|
|
3376
|
+
}
|
|
3377
|
+
response_data = self.api_client.call_api(
|
|
3378
|
+
*_param,
|
|
3379
|
+
_request_timeout=_request_timeout
|
|
3380
|
+
)
|
|
3381
|
+
response_data.read()
|
|
3382
|
+
return self.api_client.response_deserialize(
|
|
3383
|
+
response_data=response_data,
|
|
3384
|
+
response_types_map=_response_types_map,
|
|
3385
|
+
).data
|
|
3386
|
+
|
|
3387
|
+
|
|
3388
|
+
@validate_call
|
|
3389
|
+
def remove_role_with_http_info(
|
|
3390
|
+
self,
|
|
3391
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
3392
|
+
nested_role: NestedRole,
|
|
3393
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3394
|
+
_request_timeout: Union[
|
|
3395
|
+
None,
|
|
3396
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3397
|
+
Tuple[
|
|
3398
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3399
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3400
|
+
]
|
|
3401
|
+
] = None,
|
|
3402
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3403
|
+
_content_type: Optional[StrictStr] = None,
|
|
3404
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3405
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3406
|
+
) -> ApiResponse[NestedRoleResponse]:
|
|
3407
|
+
"""Remove a role
|
|
3408
|
+
|
|
3409
|
+
Remove a role for this object from users/groups.
|
|
3410
|
+
|
|
3411
|
+
:param open_p_g_p_keyring_href: (required)
|
|
3412
|
+
:type open_p_g_p_keyring_href: str
|
|
3413
|
+
:param nested_role: (required)
|
|
3414
|
+
:type nested_role: NestedRole
|
|
3415
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3416
|
+
:type x_task_diagnostics: List[str]
|
|
3417
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3418
|
+
number provided, it will be total request
|
|
3419
|
+
timeout. It can also be a pair (tuple) of
|
|
3420
|
+
(connection, read) timeouts.
|
|
3421
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3422
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3423
|
+
request; this effectively ignores the
|
|
3424
|
+
authentication in the spec for a single request.
|
|
3425
|
+
:type _request_auth: dict, optional
|
|
3426
|
+
:param _content_type: force content-type for the request.
|
|
3427
|
+
:type _content_type: str, Optional
|
|
3428
|
+
:param _headers: set to override the headers for a single
|
|
3429
|
+
request; this effectively ignores the headers
|
|
3430
|
+
in the spec for a single request.
|
|
3431
|
+
:type _headers: dict, optional
|
|
3432
|
+
:param _host_index: set to override the host_index for a single
|
|
3433
|
+
request; this effectively ignores the host_index
|
|
3434
|
+
in the spec for a single request.
|
|
3435
|
+
:type _host_index: int, optional
|
|
3436
|
+
:return: Returns the result object.
|
|
3437
|
+
""" # noqa: E501
|
|
3438
|
+
|
|
3439
|
+
_param = self._remove_role_serialize(
|
|
3440
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
3441
|
+
nested_role=nested_role,
|
|
3442
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3443
|
+
_request_auth=_request_auth,
|
|
3444
|
+
_content_type=_content_type,
|
|
3445
|
+
_headers=_headers,
|
|
3446
|
+
_host_index=_host_index
|
|
3447
|
+
)
|
|
3448
|
+
|
|
3449
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3450
|
+
'201': "NestedRoleResponse",
|
|
3451
|
+
}
|
|
3452
|
+
response_data = self.api_client.call_api(
|
|
3453
|
+
*_param,
|
|
3454
|
+
_request_timeout=_request_timeout
|
|
3455
|
+
)
|
|
3456
|
+
response_data.read()
|
|
3457
|
+
return self.api_client.response_deserialize(
|
|
3458
|
+
response_data=response_data,
|
|
3459
|
+
response_types_map=_response_types_map,
|
|
3460
|
+
)
|
|
3461
|
+
|
|
3462
|
+
|
|
3463
|
+
@validate_call
|
|
3464
|
+
def remove_role_without_preload_content(
|
|
3465
|
+
self,
|
|
3466
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
3467
|
+
nested_role: NestedRole,
|
|
3468
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3469
|
+
_request_timeout: Union[
|
|
3470
|
+
None,
|
|
3471
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3472
|
+
Tuple[
|
|
3473
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3474
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3475
|
+
]
|
|
3476
|
+
] = None,
|
|
3477
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3478
|
+
_content_type: Optional[StrictStr] = None,
|
|
3479
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3480
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3481
|
+
) -> RESTResponseType:
|
|
3482
|
+
"""Remove a role
|
|
3483
|
+
|
|
3484
|
+
Remove a role for this object from users/groups.
|
|
3485
|
+
|
|
3486
|
+
:param open_p_g_p_keyring_href: (required)
|
|
3487
|
+
:type open_p_g_p_keyring_href: str
|
|
3488
|
+
:param nested_role: (required)
|
|
3489
|
+
:type nested_role: NestedRole
|
|
3490
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3491
|
+
:type x_task_diagnostics: List[str]
|
|
3492
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3493
|
+
number provided, it will be total request
|
|
3494
|
+
timeout. It can also be a pair (tuple) of
|
|
3495
|
+
(connection, read) timeouts.
|
|
3496
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3497
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3498
|
+
request; this effectively ignores the
|
|
3499
|
+
authentication in the spec for a single request.
|
|
3500
|
+
:type _request_auth: dict, optional
|
|
3501
|
+
:param _content_type: force content-type for the request.
|
|
3502
|
+
:type _content_type: str, Optional
|
|
3503
|
+
:param _headers: set to override the headers for a single
|
|
3504
|
+
request; this effectively ignores the headers
|
|
3505
|
+
in the spec for a single request.
|
|
3506
|
+
:type _headers: dict, optional
|
|
3507
|
+
:param _host_index: set to override the host_index for a single
|
|
3508
|
+
request; this effectively ignores the host_index
|
|
3509
|
+
in the spec for a single request.
|
|
3510
|
+
:type _host_index: int, optional
|
|
3511
|
+
:return: Returns the result object.
|
|
3512
|
+
""" # noqa: E501
|
|
3513
|
+
|
|
3514
|
+
_param = self._remove_role_serialize(
|
|
3515
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
3516
|
+
nested_role=nested_role,
|
|
3517
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3518
|
+
_request_auth=_request_auth,
|
|
3519
|
+
_content_type=_content_type,
|
|
3520
|
+
_headers=_headers,
|
|
3521
|
+
_host_index=_host_index
|
|
3522
|
+
)
|
|
3523
|
+
|
|
3524
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3525
|
+
'201': "NestedRoleResponse",
|
|
3526
|
+
}
|
|
3527
|
+
response_data = self.api_client.call_api(
|
|
3528
|
+
*_param,
|
|
3529
|
+
_request_timeout=_request_timeout
|
|
3530
|
+
)
|
|
3531
|
+
return response_data.response
|
|
3532
|
+
|
|
3533
|
+
|
|
3534
|
+
def _remove_role_serialize(
|
|
3535
|
+
self,
|
|
3536
|
+
open_p_g_p_keyring_href,
|
|
3537
|
+
nested_role,
|
|
3538
|
+
x_task_diagnostics,
|
|
3539
|
+
_request_auth,
|
|
3540
|
+
_content_type,
|
|
3541
|
+
_headers,
|
|
3542
|
+
_host_index,
|
|
3543
|
+
) -> RequestSerialized:
|
|
3544
|
+
|
|
3545
|
+
_host = None
|
|
3546
|
+
|
|
3547
|
+
_collection_formats: Dict[str, str] = {
|
|
3548
|
+
'X-Task-Diagnostics': 'csv',
|
|
3549
|
+
}
|
|
3550
|
+
|
|
3551
|
+
_path_params: Dict[str, str] = {}
|
|
3552
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3553
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3554
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3555
|
+
_files: Dict[
|
|
3556
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3557
|
+
] = {}
|
|
3558
|
+
_body_params: Optional[bytes] = None
|
|
3559
|
+
|
|
3560
|
+
# process the path parameters
|
|
3561
|
+
if open_p_g_p_keyring_href is not None:
|
|
3562
|
+
_path_params['open_p_g_p_keyring_href'] = open_p_g_p_keyring_href
|
|
3563
|
+
# process the query parameters
|
|
3564
|
+
# process the header parameters
|
|
3565
|
+
if x_task_diagnostics is not None:
|
|
3566
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
3567
|
+
# process the form parameters
|
|
3568
|
+
# process the body parameter
|
|
3569
|
+
if nested_role is not None:
|
|
3570
|
+
_body_params = nested_role
|
|
3571
|
+
|
|
3572
|
+
|
|
3573
|
+
# set the HTTP header `Accept`
|
|
3574
|
+
if 'Accept' not in _header_params:
|
|
3575
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3576
|
+
[
|
|
3577
|
+
'application/json'
|
|
3578
|
+
]
|
|
3579
|
+
)
|
|
3580
|
+
|
|
3581
|
+
# set the HTTP header `Content-Type`
|
|
3582
|
+
if _content_type:
|
|
3583
|
+
_header_params['Content-Type'] = _content_type
|
|
3584
|
+
else:
|
|
3585
|
+
_default_content_type = (
|
|
3586
|
+
self.api_client.select_header_content_type(
|
|
3587
|
+
[
|
|
3588
|
+
'application/json',
|
|
3589
|
+
'application/x-www-form-urlencoded',
|
|
3590
|
+
'multipart/form-data'
|
|
3591
|
+
]
|
|
3592
|
+
)
|
|
3593
|
+
)
|
|
3594
|
+
if _default_content_type is not None:
|
|
3595
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3596
|
+
|
|
3597
|
+
# authentication setting
|
|
3598
|
+
_auth_settings: List[str] = [
|
|
3599
|
+
'json_header_remote_authentication',
|
|
3600
|
+
'basicAuth',
|
|
3601
|
+
'cookieAuth'
|
|
3602
|
+
]
|
|
3603
|
+
|
|
3604
|
+
return self.api_client.param_serialize(
|
|
3605
|
+
method='POST',
|
|
3606
|
+
resource_path='{open_p_g_p_keyring_href}remove_role/',
|
|
3607
|
+
path_params=_path_params,
|
|
3608
|
+
query_params=_query_params,
|
|
3609
|
+
header_params=_header_params,
|
|
3610
|
+
body=_body_params,
|
|
3611
|
+
post_params=_form_params,
|
|
3612
|
+
files=_files,
|
|
3613
|
+
auth_settings=_auth_settings,
|
|
3614
|
+
collection_formats=_collection_formats,
|
|
3615
|
+
_host=_host,
|
|
3616
|
+
_request_auth=_request_auth
|
|
3617
|
+
)
|
|
3618
|
+
|
|
3619
|
+
|
|
3620
|
+
|
|
3621
|
+
|
|
3622
|
+
@validate_call
|
|
3623
|
+
def set_label(
|
|
3624
|
+
self,
|
|
3625
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
3626
|
+
set_label: SetLabel,
|
|
3627
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3628
|
+
_request_timeout: Union[
|
|
3629
|
+
None,
|
|
3630
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3631
|
+
Tuple[
|
|
3632
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3633
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3634
|
+
]
|
|
3635
|
+
] = None,
|
|
3636
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3637
|
+
_content_type: Optional[StrictStr] = None,
|
|
3638
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3639
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3640
|
+
) -> SetLabelResponse:
|
|
3641
|
+
"""Set a label
|
|
3642
|
+
|
|
3643
|
+
Set a single pulp_label on the object to a specific value or null.
|
|
3644
|
+
|
|
3645
|
+
:param open_p_g_p_keyring_href: (required)
|
|
3646
|
+
:type open_p_g_p_keyring_href: str
|
|
3647
|
+
:param set_label: (required)
|
|
3648
|
+
:type set_label: SetLabel
|
|
3649
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3650
|
+
:type x_task_diagnostics: List[str]
|
|
3651
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3652
|
+
number provided, it will be total request
|
|
3653
|
+
timeout. It can also be a pair (tuple) of
|
|
3654
|
+
(connection, read) timeouts.
|
|
3655
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3656
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3657
|
+
request; this effectively ignores the
|
|
3658
|
+
authentication in the spec for a single request.
|
|
3659
|
+
:type _request_auth: dict, optional
|
|
3660
|
+
:param _content_type: force content-type for the request.
|
|
3661
|
+
:type _content_type: str, Optional
|
|
3662
|
+
:param _headers: set to override the headers for a single
|
|
3663
|
+
request; this effectively ignores the headers
|
|
3664
|
+
in the spec for a single request.
|
|
3665
|
+
:type _headers: dict, optional
|
|
3666
|
+
:param _host_index: set to override the host_index for a single
|
|
3667
|
+
request; this effectively ignores the host_index
|
|
3668
|
+
in the spec for a single request.
|
|
3669
|
+
:type _host_index: int, optional
|
|
3670
|
+
:return: Returns the result object.
|
|
3671
|
+
""" # noqa: E501
|
|
3672
|
+
|
|
3673
|
+
_param = self._set_label_serialize(
|
|
3674
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
3675
|
+
set_label=set_label,
|
|
3676
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3677
|
+
_request_auth=_request_auth,
|
|
3678
|
+
_content_type=_content_type,
|
|
3679
|
+
_headers=_headers,
|
|
3680
|
+
_host_index=_host_index
|
|
3681
|
+
)
|
|
3682
|
+
|
|
3683
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3684
|
+
'201': "SetLabelResponse",
|
|
3685
|
+
}
|
|
3686
|
+
response_data = self.api_client.call_api(
|
|
3687
|
+
*_param,
|
|
3688
|
+
_request_timeout=_request_timeout
|
|
3689
|
+
)
|
|
3690
|
+
response_data.read()
|
|
3691
|
+
return self.api_client.response_deserialize(
|
|
3692
|
+
response_data=response_data,
|
|
3693
|
+
response_types_map=_response_types_map,
|
|
3694
|
+
).data
|
|
3695
|
+
|
|
3696
|
+
|
|
3697
|
+
@validate_call
|
|
3698
|
+
def set_label_with_http_info(
|
|
3699
|
+
self,
|
|
3700
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
3701
|
+
set_label: SetLabel,
|
|
3702
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3703
|
+
_request_timeout: Union[
|
|
3704
|
+
None,
|
|
3705
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3706
|
+
Tuple[
|
|
3707
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3708
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3709
|
+
]
|
|
3710
|
+
] = None,
|
|
3711
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3712
|
+
_content_type: Optional[StrictStr] = None,
|
|
3713
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3714
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3715
|
+
) -> ApiResponse[SetLabelResponse]:
|
|
3716
|
+
"""Set a label
|
|
3717
|
+
|
|
3718
|
+
Set a single pulp_label on the object to a specific value or null.
|
|
3719
|
+
|
|
3720
|
+
:param open_p_g_p_keyring_href: (required)
|
|
3721
|
+
:type open_p_g_p_keyring_href: str
|
|
3722
|
+
:param set_label: (required)
|
|
3723
|
+
:type set_label: SetLabel
|
|
3724
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3725
|
+
:type x_task_diagnostics: List[str]
|
|
3726
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3727
|
+
number provided, it will be total request
|
|
3728
|
+
timeout. It can also be a pair (tuple) of
|
|
3729
|
+
(connection, read) timeouts.
|
|
3730
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3731
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3732
|
+
request; this effectively ignores the
|
|
3733
|
+
authentication in the spec for a single request.
|
|
3734
|
+
:type _request_auth: dict, optional
|
|
3735
|
+
:param _content_type: force content-type for the request.
|
|
3736
|
+
:type _content_type: str, Optional
|
|
3737
|
+
:param _headers: set to override the headers for a single
|
|
3738
|
+
request; this effectively ignores the headers
|
|
3739
|
+
in the spec for a single request.
|
|
3740
|
+
:type _headers: dict, optional
|
|
3741
|
+
:param _host_index: set to override the host_index for a single
|
|
3742
|
+
request; this effectively ignores the host_index
|
|
3743
|
+
in the spec for a single request.
|
|
3744
|
+
:type _host_index: int, optional
|
|
3745
|
+
:return: Returns the result object.
|
|
3746
|
+
""" # noqa: E501
|
|
3747
|
+
|
|
3748
|
+
_param = self._set_label_serialize(
|
|
3749
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
3750
|
+
set_label=set_label,
|
|
3751
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3752
|
+
_request_auth=_request_auth,
|
|
3753
|
+
_content_type=_content_type,
|
|
3754
|
+
_headers=_headers,
|
|
3755
|
+
_host_index=_host_index
|
|
3756
|
+
)
|
|
3757
|
+
|
|
3758
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3759
|
+
'201': "SetLabelResponse",
|
|
3760
|
+
}
|
|
3761
|
+
response_data = self.api_client.call_api(
|
|
3762
|
+
*_param,
|
|
3763
|
+
_request_timeout=_request_timeout
|
|
3764
|
+
)
|
|
3765
|
+
response_data.read()
|
|
3766
|
+
return self.api_client.response_deserialize(
|
|
3767
|
+
response_data=response_data,
|
|
3768
|
+
response_types_map=_response_types_map,
|
|
3769
|
+
)
|
|
3770
|
+
|
|
3771
|
+
|
|
3772
|
+
@validate_call
|
|
3773
|
+
def set_label_without_preload_content(
|
|
3774
|
+
self,
|
|
3775
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
3776
|
+
set_label: SetLabel,
|
|
3777
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3778
|
+
_request_timeout: Union[
|
|
3779
|
+
None,
|
|
3780
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3781
|
+
Tuple[
|
|
3782
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3783
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3784
|
+
]
|
|
3785
|
+
] = None,
|
|
3786
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3787
|
+
_content_type: Optional[StrictStr] = None,
|
|
3788
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3789
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3790
|
+
) -> RESTResponseType:
|
|
3791
|
+
"""Set a label
|
|
3792
|
+
|
|
3793
|
+
Set a single pulp_label on the object to a specific value or null.
|
|
3794
|
+
|
|
3795
|
+
:param open_p_g_p_keyring_href: (required)
|
|
3796
|
+
:type open_p_g_p_keyring_href: str
|
|
3797
|
+
:param set_label: (required)
|
|
3798
|
+
:type set_label: SetLabel
|
|
3799
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3800
|
+
:type x_task_diagnostics: List[str]
|
|
3801
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3802
|
+
number provided, it will be total request
|
|
3803
|
+
timeout. It can also be a pair (tuple) of
|
|
3804
|
+
(connection, read) timeouts.
|
|
3805
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3806
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3807
|
+
request; this effectively ignores the
|
|
3808
|
+
authentication in the spec for a single request.
|
|
3809
|
+
:type _request_auth: dict, optional
|
|
3810
|
+
:param _content_type: force content-type for the request.
|
|
3811
|
+
:type _content_type: str, Optional
|
|
3812
|
+
:param _headers: set to override the headers for a single
|
|
3813
|
+
request; this effectively ignores the headers
|
|
3814
|
+
in the spec for a single request.
|
|
3815
|
+
:type _headers: dict, optional
|
|
3816
|
+
:param _host_index: set to override the host_index for a single
|
|
3817
|
+
request; this effectively ignores the host_index
|
|
3818
|
+
in the spec for a single request.
|
|
3819
|
+
:type _host_index: int, optional
|
|
3820
|
+
:return: Returns the result object.
|
|
3821
|
+
""" # noqa: E501
|
|
3822
|
+
|
|
3823
|
+
_param = self._set_label_serialize(
|
|
3824
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
3825
|
+
set_label=set_label,
|
|
3826
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3827
|
+
_request_auth=_request_auth,
|
|
3828
|
+
_content_type=_content_type,
|
|
3829
|
+
_headers=_headers,
|
|
3830
|
+
_host_index=_host_index
|
|
3831
|
+
)
|
|
3832
|
+
|
|
3833
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3834
|
+
'201': "SetLabelResponse",
|
|
3835
|
+
}
|
|
3836
|
+
response_data = self.api_client.call_api(
|
|
3837
|
+
*_param,
|
|
3838
|
+
_request_timeout=_request_timeout
|
|
3839
|
+
)
|
|
3840
|
+
return response_data.response
|
|
3841
|
+
|
|
3842
|
+
|
|
3843
|
+
def _set_label_serialize(
|
|
3844
|
+
self,
|
|
3845
|
+
open_p_g_p_keyring_href,
|
|
3846
|
+
set_label,
|
|
3847
|
+
x_task_diagnostics,
|
|
3848
|
+
_request_auth,
|
|
3849
|
+
_content_type,
|
|
3850
|
+
_headers,
|
|
3851
|
+
_host_index,
|
|
3852
|
+
) -> RequestSerialized:
|
|
3853
|
+
|
|
3854
|
+
_host = None
|
|
3855
|
+
|
|
3856
|
+
_collection_formats: Dict[str, str] = {
|
|
3857
|
+
'X-Task-Diagnostics': 'csv',
|
|
3858
|
+
}
|
|
3859
|
+
|
|
3860
|
+
_path_params: Dict[str, str] = {}
|
|
3861
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3862
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3863
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3864
|
+
_files: Dict[
|
|
3865
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3866
|
+
] = {}
|
|
3867
|
+
_body_params: Optional[bytes] = None
|
|
3868
|
+
|
|
3869
|
+
# process the path parameters
|
|
3870
|
+
if open_p_g_p_keyring_href is not None:
|
|
3871
|
+
_path_params['open_p_g_p_keyring_href'] = open_p_g_p_keyring_href
|
|
3872
|
+
# process the query parameters
|
|
3873
|
+
# process the header parameters
|
|
3874
|
+
if x_task_diagnostics is not None:
|
|
3875
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
3876
|
+
# process the form parameters
|
|
3877
|
+
# process the body parameter
|
|
3878
|
+
if set_label is not None:
|
|
3879
|
+
_body_params = set_label
|
|
3880
|
+
|
|
3881
|
+
|
|
3882
|
+
# set the HTTP header `Accept`
|
|
3883
|
+
if 'Accept' not in _header_params:
|
|
3884
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3885
|
+
[
|
|
3886
|
+
'application/json'
|
|
3887
|
+
]
|
|
3888
|
+
)
|
|
3889
|
+
|
|
3890
|
+
# set the HTTP header `Content-Type`
|
|
3891
|
+
if _content_type:
|
|
3892
|
+
_header_params['Content-Type'] = _content_type
|
|
3893
|
+
else:
|
|
3894
|
+
_default_content_type = (
|
|
3895
|
+
self.api_client.select_header_content_type(
|
|
3896
|
+
[
|
|
3897
|
+
'application/json',
|
|
3898
|
+
'application/x-www-form-urlencoded',
|
|
3899
|
+
'multipart/form-data'
|
|
3900
|
+
]
|
|
3901
|
+
)
|
|
3902
|
+
)
|
|
3903
|
+
if _default_content_type is not None:
|
|
3904
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3905
|
+
|
|
3906
|
+
# authentication setting
|
|
3907
|
+
_auth_settings: List[str] = [
|
|
3908
|
+
'json_header_remote_authentication',
|
|
3909
|
+
'basicAuth',
|
|
3910
|
+
'cookieAuth'
|
|
3911
|
+
]
|
|
3912
|
+
|
|
3913
|
+
return self.api_client.param_serialize(
|
|
3914
|
+
method='POST',
|
|
3915
|
+
resource_path='{open_p_g_p_keyring_href}set_label/',
|
|
3916
|
+
path_params=_path_params,
|
|
3917
|
+
query_params=_query_params,
|
|
3918
|
+
header_params=_header_params,
|
|
3919
|
+
body=_body_params,
|
|
3920
|
+
post_params=_form_params,
|
|
3921
|
+
files=_files,
|
|
3922
|
+
auth_settings=_auth_settings,
|
|
3923
|
+
collection_formats=_collection_formats,
|
|
3924
|
+
_host=_host,
|
|
3925
|
+
_request_auth=_request_auth
|
|
3926
|
+
)
|
|
3927
|
+
|
|
3928
|
+
|
|
3929
|
+
|
|
3930
|
+
|
|
3931
|
+
@validate_call
|
|
3932
|
+
def unset_label(
|
|
3933
|
+
self,
|
|
3934
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
3935
|
+
unset_label: UnsetLabel,
|
|
3936
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3937
|
+
_request_timeout: Union[
|
|
3938
|
+
None,
|
|
3939
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3940
|
+
Tuple[
|
|
3941
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3942
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3943
|
+
]
|
|
3944
|
+
] = None,
|
|
3945
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3946
|
+
_content_type: Optional[StrictStr] = None,
|
|
3947
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3948
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3949
|
+
) -> UnsetLabelResponse:
|
|
3950
|
+
"""Unset a label
|
|
3951
|
+
|
|
3952
|
+
Unset a single pulp_label on the object.
|
|
3953
|
+
|
|
3954
|
+
:param open_p_g_p_keyring_href: (required)
|
|
3955
|
+
:type open_p_g_p_keyring_href: str
|
|
3956
|
+
:param unset_label: (required)
|
|
3957
|
+
:type unset_label: UnsetLabel
|
|
3958
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3959
|
+
:type x_task_diagnostics: List[str]
|
|
3960
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3961
|
+
number provided, it will be total request
|
|
3962
|
+
timeout. It can also be a pair (tuple) of
|
|
3963
|
+
(connection, read) timeouts.
|
|
3964
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3965
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3966
|
+
request; this effectively ignores the
|
|
3967
|
+
authentication in the spec for a single request.
|
|
3968
|
+
:type _request_auth: dict, optional
|
|
3969
|
+
:param _content_type: force content-type for the request.
|
|
3970
|
+
:type _content_type: str, Optional
|
|
3971
|
+
:param _headers: set to override the headers for a single
|
|
3972
|
+
request; this effectively ignores the headers
|
|
3973
|
+
in the spec for a single request.
|
|
3974
|
+
:type _headers: dict, optional
|
|
3975
|
+
:param _host_index: set to override the host_index for a single
|
|
3976
|
+
request; this effectively ignores the host_index
|
|
3977
|
+
in the spec for a single request.
|
|
3978
|
+
:type _host_index: int, optional
|
|
3979
|
+
:return: Returns the result object.
|
|
3980
|
+
""" # noqa: E501
|
|
3981
|
+
|
|
3982
|
+
_param = self._unset_label_serialize(
|
|
3983
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
3984
|
+
unset_label=unset_label,
|
|
3985
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3986
|
+
_request_auth=_request_auth,
|
|
3987
|
+
_content_type=_content_type,
|
|
3988
|
+
_headers=_headers,
|
|
3989
|
+
_host_index=_host_index
|
|
3990
|
+
)
|
|
3991
|
+
|
|
3992
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3993
|
+
'201': "UnsetLabelResponse",
|
|
3994
|
+
}
|
|
3995
|
+
response_data = self.api_client.call_api(
|
|
3996
|
+
*_param,
|
|
3997
|
+
_request_timeout=_request_timeout
|
|
3998
|
+
)
|
|
3999
|
+
response_data.read()
|
|
4000
|
+
return self.api_client.response_deserialize(
|
|
4001
|
+
response_data=response_data,
|
|
4002
|
+
response_types_map=_response_types_map,
|
|
4003
|
+
).data
|
|
4004
|
+
|
|
4005
|
+
|
|
4006
|
+
@validate_call
|
|
4007
|
+
def unset_label_with_http_info(
|
|
4008
|
+
self,
|
|
4009
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
4010
|
+
unset_label: UnsetLabel,
|
|
4011
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
4012
|
+
_request_timeout: Union[
|
|
4013
|
+
None,
|
|
4014
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4015
|
+
Tuple[
|
|
4016
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4017
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4018
|
+
]
|
|
4019
|
+
] = None,
|
|
4020
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4021
|
+
_content_type: Optional[StrictStr] = None,
|
|
4022
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4023
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4024
|
+
) -> ApiResponse[UnsetLabelResponse]:
|
|
4025
|
+
"""Unset a label
|
|
4026
|
+
|
|
4027
|
+
Unset a single pulp_label on the object.
|
|
4028
|
+
|
|
4029
|
+
:param open_p_g_p_keyring_href: (required)
|
|
4030
|
+
:type open_p_g_p_keyring_href: str
|
|
4031
|
+
:param unset_label: (required)
|
|
4032
|
+
:type unset_label: UnsetLabel
|
|
4033
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
4034
|
+
:type x_task_diagnostics: List[str]
|
|
4035
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4036
|
+
number provided, it will be total request
|
|
4037
|
+
timeout. It can also be a pair (tuple) of
|
|
4038
|
+
(connection, read) timeouts.
|
|
4039
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4040
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4041
|
+
request; this effectively ignores the
|
|
4042
|
+
authentication in the spec for a single request.
|
|
4043
|
+
:type _request_auth: dict, optional
|
|
4044
|
+
:param _content_type: force content-type for the request.
|
|
4045
|
+
:type _content_type: str, Optional
|
|
4046
|
+
:param _headers: set to override the headers for a single
|
|
4047
|
+
request; this effectively ignores the headers
|
|
4048
|
+
in the spec for a single request.
|
|
4049
|
+
:type _headers: dict, optional
|
|
4050
|
+
:param _host_index: set to override the host_index for a single
|
|
4051
|
+
request; this effectively ignores the host_index
|
|
4052
|
+
in the spec for a single request.
|
|
4053
|
+
:type _host_index: int, optional
|
|
4054
|
+
:return: Returns the result object.
|
|
4055
|
+
""" # noqa: E501
|
|
4056
|
+
|
|
4057
|
+
_param = self._unset_label_serialize(
|
|
4058
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
4059
|
+
unset_label=unset_label,
|
|
4060
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
4061
|
+
_request_auth=_request_auth,
|
|
4062
|
+
_content_type=_content_type,
|
|
4063
|
+
_headers=_headers,
|
|
4064
|
+
_host_index=_host_index
|
|
4065
|
+
)
|
|
4066
|
+
|
|
4067
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4068
|
+
'201': "UnsetLabelResponse",
|
|
4069
|
+
}
|
|
4070
|
+
response_data = self.api_client.call_api(
|
|
4071
|
+
*_param,
|
|
4072
|
+
_request_timeout=_request_timeout
|
|
4073
|
+
)
|
|
4074
|
+
response_data.read()
|
|
4075
|
+
return self.api_client.response_deserialize(
|
|
4076
|
+
response_data=response_data,
|
|
4077
|
+
response_types_map=_response_types_map,
|
|
4078
|
+
)
|
|
4079
|
+
|
|
4080
|
+
|
|
4081
|
+
@validate_call
|
|
4082
|
+
def unset_label_without_preload_content(
|
|
4083
|
+
self,
|
|
4084
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
4085
|
+
unset_label: UnsetLabel,
|
|
4086
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
4087
|
+
_request_timeout: Union[
|
|
4088
|
+
None,
|
|
4089
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4090
|
+
Tuple[
|
|
4091
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4092
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4093
|
+
]
|
|
4094
|
+
] = None,
|
|
4095
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4096
|
+
_content_type: Optional[StrictStr] = None,
|
|
4097
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4098
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4099
|
+
) -> RESTResponseType:
|
|
4100
|
+
"""Unset a label
|
|
4101
|
+
|
|
4102
|
+
Unset a single pulp_label on the object.
|
|
4103
|
+
|
|
4104
|
+
:param open_p_g_p_keyring_href: (required)
|
|
4105
|
+
:type open_p_g_p_keyring_href: str
|
|
4106
|
+
:param unset_label: (required)
|
|
4107
|
+
:type unset_label: UnsetLabel
|
|
4108
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
4109
|
+
:type x_task_diagnostics: List[str]
|
|
4110
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4111
|
+
number provided, it will be total request
|
|
4112
|
+
timeout. It can also be a pair (tuple) of
|
|
4113
|
+
(connection, read) timeouts.
|
|
4114
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4115
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4116
|
+
request; this effectively ignores the
|
|
4117
|
+
authentication in the spec for a single request.
|
|
4118
|
+
:type _request_auth: dict, optional
|
|
4119
|
+
:param _content_type: force content-type for the request.
|
|
4120
|
+
:type _content_type: str, Optional
|
|
4121
|
+
:param _headers: set to override the headers for a single
|
|
4122
|
+
request; this effectively ignores the headers
|
|
4123
|
+
in the spec for a single request.
|
|
4124
|
+
:type _headers: dict, optional
|
|
4125
|
+
:param _host_index: set to override the host_index for a single
|
|
4126
|
+
request; this effectively ignores the host_index
|
|
4127
|
+
in the spec for a single request.
|
|
4128
|
+
:type _host_index: int, optional
|
|
4129
|
+
:return: Returns the result object.
|
|
4130
|
+
""" # noqa: E501
|
|
4131
|
+
|
|
4132
|
+
_param = self._unset_label_serialize(
|
|
4133
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
4134
|
+
unset_label=unset_label,
|
|
4135
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
4136
|
+
_request_auth=_request_auth,
|
|
4137
|
+
_content_type=_content_type,
|
|
4138
|
+
_headers=_headers,
|
|
4139
|
+
_host_index=_host_index
|
|
4140
|
+
)
|
|
4141
|
+
|
|
4142
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4143
|
+
'201': "UnsetLabelResponse",
|
|
4144
|
+
}
|
|
4145
|
+
response_data = self.api_client.call_api(
|
|
4146
|
+
*_param,
|
|
4147
|
+
_request_timeout=_request_timeout
|
|
4148
|
+
)
|
|
4149
|
+
return response_data.response
|
|
4150
|
+
|
|
4151
|
+
|
|
4152
|
+
def _unset_label_serialize(
|
|
4153
|
+
self,
|
|
4154
|
+
open_p_g_p_keyring_href,
|
|
4155
|
+
unset_label,
|
|
4156
|
+
x_task_diagnostics,
|
|
4157
|
+
_request_auth,
|
|
4158
|
+
_content_type,
|
|
4159
|
+
_headers,
|
|
4160
|
+
_host_index,
|
|
4161
|
+
) -> RequestSerialized:
|
|
4162
|
+
|
|
4163
|
+
_host = None
|
|
4164
|
+
|
|
4165
|
+
_collection_formats: Dict[str, str] = {
|
|
4166
|
+
'X-Task-Diagnostics': 'csv',
|
|
4167
|
+
}
|
|
4168
|
+
|
|
4169
|
+
_path_params: Dict[str, str] = {}
|
|
4170
|
+
_query_params: List[Tuple[str, str]] = []
|
|
4171
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4172
|
+
_form_params: List[Tuple[str, str]] = []
|
|
4173
|
+
_files: Dict[
|
|
4174
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4175
|
+
] = {}
|
|
4176
|
+
_body_params: Optional[bytes] = None
|
|
4177
|
+
|
|
4178
|
+
# process the path parameters
|
|
4179
|
+
if open_p_g_p_keyring_href is not None:
|
|
4180
|
+
_path_params['open_p_g_p_keyring_href'] = open_p_g_p_keyring_href
|
|
4181
|
+
# process the query parameters
|
|
4182
|
+
# process the header parameters
|
|
4183
|
+
if x_task_diagnostics is not None:
|
|
4184
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
4185
|
+
# process the form parameters
|
|
4186
|
+
# process the body parameter
|
|
4187
|
+
if unset_label is not None:
|
|
4188
|
+
_body_params = unset_label
|
|
4189
|
+
|
|
4190
|
+
|
|
4191
|
+
# set the HTTP header `Accept`
|
|
4192
|
+
if 'Accept' not in _header_params:
|
|
4193
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4194
|
+
[
|
|
4195
|
+
'application/json'
|
|
4196
|
+
]
|
|
4197
|
+
)
|
|
4198
|
+
|
|
4199
|
+
# set the HTTP header `Content-Type`
|
|
4200
|
+
if _content_type:
|
|
4201
|
+
_header_params['Content-Type'] = _content_type
|
|
4202
|
+
else:
|
|
4203
|
+
_default_content_type = (
|
|
4204
|
+
self.api_client.select_header_content_type(
|
|
4205
|
+
[
|
|
4206
|
+
'application/json',
|
|
4207
|
+
'application/x-www-form-urlencoded',
|
|
4208
|
+
'multipart/form-data'
|
|
4209
|
+
]
|
|
4210
|
+
)
|
|
4211
|
+
)
|
|
4212
|
+
if _default_content_type is not None:
|
|
4213
|
+
_header_params['Content-Type'] = _default_content_type
|
|
4214
|
+
|
|
4215
|
+
# authentication setting
|
|
4216
|
+
_auth_settings: List[str] = [
|
|
4217
|
+
'json_header_remote_authentication',
|
|
4218
|
+
'basicAuth',
|
|
4219
|
+
'cookieAuth'
|
|
4220
|
+
]
|
|
4221
|
+
|
|
4222
|
+
return self.api_client.param_serialize(
|
|
4223
|
+
method='POST',
|
|
4224
|
+
resource_path='{open_p_g_p_keyring_href}unset_label/',
|
|
4225
|
+
path_params=_path_params,
|
|
4226
|
+
query_params=_query_params,
|
|
4227
|
+
header_params=_header_params,
|
|
4228
|
+
body=_body_params,
|
|
4229
|
+
post_params=_form_params,
|
|
4230
|
+
files=_files,
|
|
4231
|
+
auth_settings=_auth_settings,
|
|
4232
|
+
collection_formats=_collection_formats,
|
|
4233
|
+
_host=_host,
|
|
4234
|
+
_request_auth=_request_auth
|
|
4235
|
+
)
|
|
4236
|
+
|
|
4237
|
+
|
|
4238
|
+
|
|
4239
|
+
|
|
4240
|
+
@validate_call
|
|
4241
|
+
def update(
|
|
4242
|
+
self,
|
|
4243
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
4244
|
+
open_pgp_keyring: OpenPGPKeyring,
|
|
4245
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
4246
|
+
_request_timeout: Union[
|
|
4247
|
+
None,
|
|
4248
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4249
|
+
Tuple[
|
|
4250
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4251
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4252
|
+
]
|
|
4253
|
+
] = None,
|
|
4254
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4255
|
+
_content_type: Optional[StrictStr] = None,
|
|
4256
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4257
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4258
|
+
) -> AsyncOperationResponse:
|
|
4259
|
+
"""Update an open pgp keyring
|
|
4260
|
+
|
|
4261
|
+
Trigger an asynchronous update task
|
|
4262
|
+
|
|
4263
|
+
:param open_p_g_p_keyring_href: (required)
|
|
4264
|
+
:type open_p_g_p_keyring_href: str
|
|
4265
|
+
:param open_pgp_keyring: (required)
|
|
4266
|
+
:type open_pgp_keyring: OpenPGPKeyring
|
|
4267
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
4268
|
+
:type x_task_diagnostics: List[str]
|
|
4269
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4270
|
+
number provided, it will be total request
|
|
4271
|
+
timeout. It can also be a pair (tuple) of
|
|
4272
|
+
(connection, read) timeouts.
|
|
4273
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4274
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4275
|
+
request; this effectively ignores the
|
|
4276
|
+
authentication in the spec for a single request.
|
|
4277
|
+
:type _request_auth: dict, optional
|
|
4278
|
+
:param _content_type: force content-type for the request.
|
|
4279
|
+
:type _content_type: str, Optional
|
|
4280
|
+
:param _headers: set to override the headers for a single
|
|
4281
|
+
request; this effectively ignores the headers
|
|
4282
|
+
in the spec for a single request.
|
|
4283
|
+
:type _headers: dict, optional
|
|
4284
|
+
:param _host_index: set to override the host_index for a single
|
|
4285
|
+
request; this effectively ignores the host_index
|
|
4286
|
+
in the spec for a single request.
|
|
4287
|
+
:type _host_index: int, optional
|
|
4288
|
+
:return: Returns the result object.
|
|
4289
|
+
""" # noqa: E501
|
|
4290
|
+
|
|
4291
|
+
_param = self._update_serialize(
|
|
4292
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
4293
|
+
open_pgp_keyring=open_pgp_keyring,
|
|
4294
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
4295
|
+
_request_auth=_request_auth,
|
|
4296
|
+
_content_type=_content_type,
|
|
4297
|
+
_headers=_headers,
|
|
4298
|
+
_host_index=_host_index
|
|
4299
|
+
)
|
|
4300
|
+
|
|
4301
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4302
|
+
'202': "AsyncOperationResponse",
|
|
4303
|
+
}
|
|
4304
|
+
response_data = self.api_client.call_api(
|
|
4305
|
+
*_param,
|
|
4306
|
+
_request_timeout=_request_timeout
|
|
4307
|
+
)
|
|
4308
|
+
response_data.read()
|
|
4309
|
+
return self.api_client.response_deserialize(
|
|
4310
|
+
response_data=response_data,
|
|
4311
|
+
response_types_map=_response_types_map,
|
|
4312
|
+
).data
|
|
4313
|
+
|
|
4314
|
+
|
|
4315
|
+
@validate_call
|
|
4316
|
+
def update_with_http_info(
|
|
4317
|
+
self,
|
|
4318
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
4319
|
+
open_pgp_keyring: OpenPGPKeyring,
|
|
4320
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
4321
|
+
_request_timeout: Union[
|
|
4322
|
+
None,
|
|
4323
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4324
|
+
Tuple[
|
|
4325
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4326
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4327
|
+
]
|
|
4328
|
+
] = None,
|
|
4329
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4330
|
+
_content_type: Optional[StrictStr] = None,
|
|
4331
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4332
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4333
|
+
) -> ApiResponse[AsyncOperationResponse]:
|
|
4334
|
+
"""Update an open pgp keyring
|
|
4335
|
+
|
|
4336
|
+
Trigger an asynchronous update task
|
|
4337
|
+
|
|
4338
|
+
:param open_p_g_p_keyring_href: (required)
|
|
4339
|
+
:type open_p_g_p_keyring_href: str
|
|
4340
|
+
:param open_pgp_keyring: (required)
|
|
4341
|
+
:type open_pgp_keyring: OpenPGPKeyring
|
|
4342
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
4343
|
+
:type x_task_diagnostics: List[str]
|
|
4344
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4345
|
+
number provided, it will be total request
|
|
4346
|
+
timeout. It can also be a pair (tuple) of
|
|
4347
|
+
(connection, read) timeouts.
|
|
4348
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4349
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4350
|
+
request; this effectively ignores the
|
|
4351
|
+
authentication in the spec for a single request.
|
|
4352
|
+
:type _request_auth: dict, optional
|
|
4353
|
+
:param _content_type: force content-type for the request.
|
|
4354
|
+
:type _content_type: str, Optional
|
|
4355
|
+
:param _headers: set to override the headers for a single
|
|
4356
|
+
request; this effectively ignores the headers
|
|
4357
|
+
in the spec for a single request.
|
|
4358
|
+
:type _headers: dict, optional
|
|
4359
|
+
:param _host_index: set to override the host_index for a single
|
|
4360
|
+
request; this effectively ignores the host_index
|
|
4361
|
+
in the spec for a single request.
|
|
4362
|
+
:type _host_index: int, optional
|
|
4363
|
+
:return: Returns the result object.
|
|
4364
|
+
""" # noqa: E501
|
|
4365
|
+
|
|
4366
|
+
_param = self._update_serialize(
|
|
4367
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
4368
|
+
open_pgp_keyring=open_pgp_keyring,
|
|
4369
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
4370
|
+
_request_auth=_request_auth,
|
|
4371
|
+
_content_type=_content_type,
|
|
4372
|
+
_headers=_headers,
|
|
4373
|
+
_host_index=_host_index
|
|
4374
|
+
)
|
|
4375
|
+
|
|
4376
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4377
|
+
'202': "AsyncOperationResponse",
|
|
4378
|
+
}
|
|
4379
|
+
response_data = self.api_client.call_api(
|
|
4380
|
+
*_param,
|
|
4381
|
+
_request_timeout=_request_timeout
|
|
4382
|
+
)
|
|
4383
|
+
response_data.read()
|
|
4384
|
+
return self.api_client.response_deserialize(
|
|
4385
|
+
response_data=response_data,
|
|
4386
|
+
response_types_map=_response_types_map,
|
|
4387
|
+
)
|
|
4388
|
+
|
|
4389
|
+
|
|
4390
|
+
@validate_call
|
|
4391
|
+
def update_without_preload_content(
|
|
4392
|
+
self,
|
|
4393
|
+
open_p_g_p_keyring_href: StrictStr,
|
|
4394
|
+
open_pgp_keyring: OpenPGPKeyring,
|
|
4395
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
4396
|
+
_request_timeout: Union[
|
|
4397
|
+
None,
|
|
4398
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4399
|
+
Tuple[
|
|
4400
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4401
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4402
|
+
]
|
|
4403
|
+
] = None,
|
|
4404
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4405
|
+
_content_type: Optional[StrictStr] = None,
|
|
4406
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4407
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4408
|
+
) -> RESTResponseType:
|
|
4409
|
+
"""Update an open pgp keyring
|
|
4410
|
+
|
|
4411
|
+
Trigger an asynchronous update task
|
|
4412
|
+
|
|
4413
|
+
:param open_p_g_p_keyring_href: (required)
|
|
4414
|
+
:type open_p_g_p_keyring_href: str
|
|
4415
|
+
:param open_pgp_keyring: (required)
|
|
4416
|
+
:type open_pgp_keyring: OpenPGPKeyring
|
|
4417
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
4418
|
+
:type x_task_diagnostics: List[str]
|
|
4419
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4420
|
+
number provided, it will be total request
|
|
4421
|
+
timeout. It can also be a pair (tuple) of
|
|
4422
|
+
(connection, read) timeouts.
|
|
4423
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4424
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4425
|
+
request; this effectively ignores the
|
|
4426
|
+
authentication in the spec for a single request.
|
|
4427
|
+
:type _request_auth: dict, optional
|
|
4428
|
+
:param _content_type: force content-type for the request.
|
|
4429
|
+
:type _content_type: str, Optional
|
|
4430
|
+
:param _headers: set to override the headers for a single
|
|
4431
|
+
request; this effectively ignores the headers
|
|
4432
|
+
in the spec for a single request.
|
|
4433
|
+
:type _headers: dict, optional
|
|
4434
|
+
:param _host_index: set to override the host_index for a single
|
|
4435
|
+
request; this effectively ignores the host_index
|
|
4436
|
+
in the spec for a single request.
|
|
4437
|
+
:type _host_index: int, optional
|
|
4438
|
+
:return: Returns the result object.
|
|
4439
|
+
""" # noqa: E501
|
|
4440
|
+
|
|
4441
|
+
_param = self._update_serialize(
|
|
4442
|
+
open_p_g_p_keyring_href=open_p_g_p_keyring_href,
|
|
4443
|
+
open_pgp_keyring=open_pgp_keyring,
|
|
4444
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
4445
|
+
_request_auth=_request_auth,
|
|
4446
|
+
_content_type=_content_type,
|
|
4447
|
+
_headers=_headers,
|
|
4448
|
+
_host_index=_host_index
|
|
4449
|
+
)
|
|
4450
|
+
|
|
4451
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4452
|
+
'202': "AsyncOperationResponse",
|
|
4453
|
+
}
|
|
4454
|
+
response_data = self.api_client.call_api(
|
|
4455
|
+
*_param,
|
|
4456
|
+
_request_timeout=_request_timeout
|
|
4457
|
+
)
|
|
4458
|
+
return response_data.response
|
|
4459
|
+
|
|
4460
|
+
|
|
4461
|
+
def _update_serialize(
|
|
4462
|
+
self,
|
|
4463
|
+
open_p_g_p_keyring_href,
|
|
4464
|
+
open_pgp_keyring,
|
|
4465
|
+
x_task_diagnostics,
|
|
4466
|
+
_request_auth,
|
|
4467
|
+
_content_type,
|
|
4468
|
+
_headers,
|
|
4469
|
+
_host_index,
|
|
4470
|
+
) -> RequestSerialized:
|
|
4471
|
+
|
|
4472
|
+
_host = None
|
|
4473
|
+
|
|
4474
|
+
_collection_formats: Dict[str, str] = {
|
|
4475
|
+
'X-Task-Diagnostics': 'csv',
|
|
4476
|
+
}
|
|
4477
|
+
|
|
4478
|
+
_path_params: Dict[str, str] = {}
|
|
4479
|
+
_query_params: List[Tuple[str, str]] = []
|
|
4480
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4481
|
+
_form_params: List[Tuple[str, str]] = []
|
|
4482
|
+
_files: Dict[
|
|
4483
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4484
|
+
] = {}
|
|
4485
|
+
_body_params: Optional[bytes] = None
|
|
4486
|
+
|
|
4487
|
+
# process the path parameters
|
|
4488
|
+
if open_p_g_p_keyring_href is not None:
|
|
4489
|
+
_path_params['open_p_g_p_keyring_href'] = open_p_g_p_keyring_href
|
|
4490
|
+
# process the query parameters
|
|
4491
|
+
# process the header parameters
|
|
4492
|
+
if x_task_diagnostics is not None:
|
|
4493
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
4494
|
+
# process the form parameters
|
|
4495
|
+
# process the body parameter
|
|
4496
|
+
if open_pgp_keyring is not None:
|
|
4497
|
+
_body_params = open_pgp_keyring
|
|
4498
|
+
|
|
4499
|
+
|
|
4500
|
+
# set the HTTP header `Accept`
|
|
4501
|
+
if 'Accept' not in _header_params:
|
|
4502
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4503
|
+
[
|
|
4504
|
+
'application/json'
|
|
4505
|
+
]
|
|
4506
|
+
)
|
|
4507
|
+
|
|
4508
|
+
# set the HTTP header `Content-Type`
|
|
4509
|
+
if _content_type:
|
|
4510
|
+
_header_params['Content-Type'] = _content_type
|
|
4511
|
+
else:
|
|
4512
|
+
_default_content_type = (
|
|
4513
|
+
self.api_client.select_header_content_type(
|
|
4514
|
+
[
|
|
4515
|
+
'application/json',
|
|
4516
|
+
'application/x-www-form-urlencoded',
|
|
4517
|
+
'multipart/form-data'
|
|
4518
|
+
]
|
|
4519
|
+
)
|
|
4520
|
+
)
|
|
4521
|
+
if _default_content_type is not None:
|
|
4522
|
+
_header_params['Content-Type'] = _default_content_type
|
|
4523
|
+
|
|
4524
|
+
# authentication setting
|
|
4525
|
+
_auth_settings: List[str] = [
|
|
4526
|
+
'json_header_remote_authentication',
|
|
4527
|
+
'basicAuth',
|
|
4528
|
+
'cookieAuth'
|
|
4529
|
+
]
|
|
4530
|
+
|
|
4531
|
+
return self.api_client.param_serialize(
|
|
4532
|
+
method='PUT',
|
|
4533
|
+
resource_path='{open_p_g_p_keyring_href}',
|
|
4534
|
+
path_params=_path_params,
|
|
4535
|
+
query_params=_query_params,
|
|
4536
|
+
header_params=_header_params,
|
|
4537
|
+
body=_body_params,
|
|
4538
|
+
post_params=_form_params,
|
|
4539
|
+
files=_files,
|
|
4540
|
+
auth_settings=_auth_settings,
|
|
4541
|
+
collection_formats=_collection_formats,
|
|
4542
|
+
_host=_host,
|
|
4543
|
+
_request_auth=_request_auth
|
|
4544
|
+
)
|
|
4545
|
+
|
|
4546
|
+
|