pulp_ansible_client 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/lib/pulp_ansible_client.rb +1 -1
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +1 -1
- data/lib/pulp_ansible_client/api/ansible_copy_api.rb +1 -1
- data/lib/pulp_ansible_client/api/api_collections_api.rb +1 -1
- data/lib/pulp_ansible_client/api/api_roles_api.rb +1 -1
- data/lib/pulp_ansible_client/api/collection_import_api.rb +1 -1
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/content_roles_api.rb +1 -1
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +1 -1
- data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_all_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_docs_blob_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_v3_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +1 -1
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +1 -1
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +1 -1
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +1 -1
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api_client.rb +12 -8
- data/lib/pulp_ansible_client/api_error.rb +1 -1
- data/lib/pulp_ansible_client/configuration.rb +8 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +15 -15
- data/lib/pulp_ansible_client/models/ansible_repository_sync_url.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +15 -15
- data/lib/pulp_ansible_client/models/ansible_tag_response.rb +1 -1
- data/lib/pulp_ansible_client/models/artifact_ref_response.rb +1 -1
- data/lib/pulp_ansible_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_metadata_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_namespace_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_one_shot.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_ref_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_version_response.rb +1 -1
- data/lib/pulp_ansible_client/models/content_summary.rb +1 -1
- data/lib/pulp_ansible_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_ansible_client/models/copy.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_role_response.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_collection_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_collection_response_list_links.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_collection_response_list_meta.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_collection_version_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_galaxy_collection_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_galaxy_collection_version_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/policy_enum.rb +1 -1
- data/lib/pulp_ansible_client/models/repo_metadata_response.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +3 -3
- data/lib/pulp_ansible_client/models/repository_version.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_ansible_client/models/tag_response.rb +1 -1
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +1 -1
- data/lib/pulp_ansible_client/version.rb +2 -2
- data/pulp_ansible_client.gemspec +1 -1
- data/spec/api/ansible_collections_api_spec.rb +1 -1
- data/spec/api/ansible_copy_api_spec.rb +1 -1
- data/spec/api/api_collections_api_spec.rb +1 -1
- data/spec/api/api_roles_api_spec.rb +1 -1
- data/spec/api/collection_import_api_spec.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +1 -1
- data/spec/api/content_roles_api_spec.rb +1 -1
- data/spec/api/distributions_ansible_api_spec.rb +1 -1
- data/spec/api/galaxy_detail_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v3_all_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_docs_blob_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v3_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_v3_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_tags_api_spec.rb +1 -1
- data/spec/api/remotes_collection_api_spec.rb +1 -1
- data/spec/api/remotes_role_api_spec.rb +1 -1
- data/spec/api/repositories_ansible_api_spec.rb +1 -1
- data/spec/api/repositories_ansible_versions_api_spec.rb +1 -1
- data/spec/api/versions_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/ansible_ansible_distribution_response_spec.rb +1 -1
- data/spec/models/ansible_ansible_distribution_spec.rb +1 -1
- data/spec/models/ansible_ansible_repository_response_spec.rb +1 -1
- data/spec/models/ansible_ansible_repository_spec.rb +1 -1
- data/spec/models/ansible_collection_remote_response_spec.rb +1 -1
- data/spec/models/ansible_collection_remote_spec.rb +1 -1
- data/spec/models/ansible_collection_response_spec.rb +1 -1
- data/spec/models/ansible_collection_version_response_spec.rb +3 -3
- data/spec/models/ansible_collection_version_spec.rb +1 -1
- data/spec/models/ansible_repository_sync_url_spec.rb +1 -1
- data/spec/models/ansible_role_remote_response_spec.rb +1 -1
- data/spec/models/ansible_role_remote_spec.rb +1 -1
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/ansible_role_spec.rb +1 -1
- data/spec/models/ansible_tag_response_spec.rb +1 -1
- data/spec/models/artifact_ref_response_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/collection_import_detail_response_spec.rb +1 -1
- data/spec/models/collection_metadata_response_spec.rb +1 -1
- data/spec/models/collection_namespace_response_spec.rb +1 -1
- data/spec/models/collection_one_shot_spec.rb +1 -1
- data/spec/models/collection_ref_response_spec.rb +1 -1
- data/spec/models/collection_response_spec.rb +1 -1
- data/spec/models/collection_version_docs_response_spec.rb +1 -1
- data/spec/models/collection_version_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/copy_spec.rb +1 -1
- data/spec/models/galaxy_collection_response_spec.rb +1 -1
- data/spec/models/galaxy_collection_spec.rb +1 -1
- data/spec/models/galaxy_collection_version_response_spec.rb +1 -1
- data/spec/models/galaxy_role_response_spec.rb +1 -1
- data/spec/models/galaxy_role_version_response_spec.rb +1 -1
- data/spec/models/paginated_collection_response_list_links_spec.rb +1 -1
- data/spec/models/paginated_collection_response_list_meta_spec.rb +1 -1
- data/spec/models/paginated_collection_response_list_spec.rb +1 -1
- data/spec/models/paginated_collection_version_response_list_spec.rb +1 -1
- data/spec/models/paginated_galaxy_collection_response_list_spec.rb +1 -1
- data/spec/models/paginated_galaxy_collection_version_response_list_spec.rb +1 -1
- data/spec/models/paginated_galaxy_role_response_list_spec.rb +1 -1
- data/spec/models/paginated_galaxy_role_version_response_list_spec.rb +1 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginated_tag_response_list_spec.rb +1 -1
- data/spec/models/paginatedansible_ansible_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginatedansible_ansible_repository_response_list_spec.rb +1 -1
- data/spec/models/paginatedansible_collection_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatedansible_collection_response_list_spec.rb +1 -1
- data/spec/models/paginatedansible_collection_version_response_list_spec.rb +1 -1
- data/spec/models/paginatedansible_role_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatedansible_role_response_list_spec.rb +1 -1
- data/spec/models/patchedansible_ansible_distribution_spec.rb +1 -1
- data/spec/models/patchedansible_ansible_repository_spec.rb +1 -1
- data/spec/models/patchedansible_collection_remote_spec.rb +1 -1
- data/spec/models/patchedansible_role_remote_spec.rb +1 -1
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/repo_metadata_response_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/tag_response_spec.rb +1 -1
- data/spec/models/unpaginated_collection_version_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +68 -351
- data/build/lib/pulpcore/__init__.py +0 -2
- data/build/lib/pulpcore/client/__init__.py +0 -2
- data/build/lib/pulpcore/client/pulp_ansible/__init__.py +0 -115
- data/build/lib/pulpcore/client/pulp_ansible/api/__init__.py +0 -28
- data/build/lib/pulpcore/client/pulp_ansible/api/ansible_collections_api.py +0 -316
- data/build/lib/pulpcore/client/pulp_ansible/api/ansible_copy_api.py +0 -156
- data/build/lib/pulpcore/client/pulp_ansible/api/api_collections_api.py +0 -294
- data/build/lib/pulpcore/client/pulp_ansible/api/api_roles_api.py +0 -172
- data/build/lib/pulpcore/client/pulp_ansible/api/collection_import_api.py +0 -167
- data/build/lib/pulpcore/client/pulp_ansible/api/content_collection_versions_api.py +0 -455
- data/build/lib/pulpcore/client/pulp_ansible/api/content_roles_api.py +0 -440
- data/build/lib/pulpcore/client/pulp_ansible/api/distributions_ansible_api.py +0 -830
- data/build/lib/pulpcore/client/pulp_ansible/api/galaxy_detail_api.py +0 -162
- data/build/lib/pulpcore/client/pulp_ansible/api/pulp_ansible_api_api.py +0 -158
- data/build/lib/pulpcore/client/pulp_ansible/api/pulp_ansible_galaxy_api_collections_api.py +0 -474
- data/build/lib/pulpcore/client/pulp_ansible/api/pulp_ansible_galaxy_api_v2_versions_api.py +0 -185
- data/build/lib/pulpcore/client/pulp_ansible/api/pulp_ansible_galaxy_api_v3_all_api.py +0 -301
- data/build/lib/pulpcore/client/pulp_ansible/api/pulp_ansible_galaxy_api_v3_collections_api.py +0 -185
- data/build/lib/pulpcore/client/pulp_ansible/api/pulp_ansible_galaxy_api_v3_collections_docs_blob_api.py +0 -189
- data/build/lib/pulpcore/client/pulp_ansible/api/pulp_ansible_galaxy_api_v3_versions_api.py +0 -386
- data/build/lib/pulpcore/client/pulp_ansible/api/pulp_ansible_galaxy_v3_api.py +0 -162
- data/build/lib/pulpcore/client/pulp_ansible/api/pulp_ansible_tags_api.py +0 -168
- data/build/lib/pulpcore/client/pulp_ansible/api/remotes_collection_api.py +0 -840
- data/build/lib/pulpcore/client/pulp_ansible/api/remotes_role_api.py +0 -840
- data/build/lib/pulpcore/client/pulp_ansible/api/repositories_ansible_api.py +0 -1063
- data/build/lib/pulpcore/client/pulp_ansible/api/repositories_ansible_versions_api.py +0 -614
- data/build/lib/pulpcore/client/pulp_ansible/api/versions_api.py +0 -301
- data/build/lib/pulpcore/client/pulp_ansible/api_client.py +0 -667
- data/build/lib/pulpcore/client/pulp_ansible/configuration.py +0 -427
- data/build/lib/pulpcore/client/pulp_ansible/exceptions.py +0 -121
- data/build/lib/pulpcore/client/pulp_ansible/models/__init__.py +0 -78
- data/build/lib/pulpcore/client/pulp_ansible/models/ansible_ansible_distribution.py +0 -260
- data/build/lib/pulpcore/client/pulp_ansible/models/ansible_ansible_distribution_response.py +0 -342
- data/build/lib/pulpcore/client/pulp_ansible/models/ansible_ansible_repository.py +0 -259
- data/build/lib/pulpcore/client/pulp_ansible/models/ansible_ansible_repository_response.py +0 -365
- data/build/lib/pulpcore/client/pulp_ansible/models/ansible_collection_remote.py +0 -771
- data/build/lib/pulpcore/client/pulp_ansible/models/ansible_collection_remote_response.py +0 -718
- data/build/lib/pulpcore/client/pulp_ansible/models/ansible_collection_response.py +0 -153
- data/build/lib/pulpcore/client/pulp_ansible/models/ansible_collection_version.py +0 -639
- data/build/lib/pulpcore/client/pulp_ansible/models/ansible_collection_version_response.py +0 -887
- data/build/lib/pulpcore/client/pulp_ansible/models/ansible_repository_sync_url.py +0 -179
- data/build/lib/pulpcore/client/pulp_ansible/models/ansible_role.py +0 -205
- data/build/lib/pulpcore/client/pulp_ansible/models/ansible_role_remote.py +0 -657
- data/build/lib/pulpcore/client/pulp_ansible/models/ansible_role_remote_response.py +0 -604
- data/build/lib/pulpcore/client/pulp_ansible/models/ansible_role_response.py +0 -259
- data/build/lib/pulpcore/client/pulp_ansible/models/ansible_tag_response.py +0 -123
- data/build/lib/pulpcore/client/pulp_ansible/models/artifact_ref_response.py +0 -176
- data/build/lib/pulpcore/client/pulp_ansible/models/async_operation_response.py +0 -124
- data/build/lib/pulpcore/client/pulp_ansible/models/collection_import_detail_response.py +0 -311
- data/build/lib/pulpcore/client/pulp_ansible/models/collection_metadata_response.py +0 -356
- data/build/lib/pulpcore/client/pulp_ansible/models/collection_namespace_response.py +0 -122
- data/build/lib/pulpcore/client/pulp_ansible/models/collection_one_shot.py +0 -236
- data/build/lib/pulpcore/client/pulp_ansible/models/collection_ref_response.py +0 -175
- data/build/lib/pulpcore/client/pulp_ansible/models/collection_response.py +0 -303
- data/build/lib/pulpcore/client/pulp_ansible/models/collection_version_docs_response.py +0 -122
- data/build/lib/pulpcore/client/pulp_ansible/models/collection_version_response.py +0 -441
- data/build/lib/pulpcore/client/pulp_ansible/models/content_summary.py +0 -176
- data/build/lib/pulpcore/client/pulp_ansible/models/content_summary_response.py +0 -176
- data/build/lib/pulpcore/client/pulp_ansible/models/copy.py +0 -124
- data/build/lib/pulpcore/client/pulp_ansible/models/galaxy_collection.py +0 -203
- data/build/lib/pulpcore/client/pulp_ansible/models/galaxy_collection_response.py +0 -307
- data/build/lib/pulpcore/client/pulp_ansible/models/galaxy_collection_version_response.py +0 -253
- data/build/lib/pulpcore/client/pulp_ansible/models/galaxy_role_response.py +0 -175
- data/build/lib/pulpcore/client/pulp_ansible/models/galaxy_role_version_response.py +0 -148
- data/build/lib/pulpcore/client/pulp_ansible/models/paginated_collection_response_list.py +0 -173
- data/build/lib/pulpcore/client/pulp_ansible/models/paginated_collection_response_list_links.py +0 -195
- data/build/lib/pulpcore/client/pulp_ansible/models/paginated_collection_response_list_meta.py +0 -121
- data/build/lib/pulpcore/client/pulp_ansible/models/paginated_collection_version_response_list.py +0 -173
- data/build/lib/pulpcore/client/pulp_ansible/models/paginated_galaxy_collection_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_ansible/models/paginated_galaxy_collection_version_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_ansible/models/paginated_galaxy_role_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_ansible/models/paginated_galaxy_role_version_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_ansible/models/paginated_repository_version_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_ansible/models/paginated_tag_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_ansible/models/paginatedansible_ansible_distribution_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_ansible/models/paginatedansible_ansible_repository_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_ansible/models/paginatedansible_collection_remote_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_ansible/models/paginatedansible_collection_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_ansible/models/paginatedansible_collection_version_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_ansible/models/paginatedansible_role_remote_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_ansible/models/paginatedansible_role_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_ansible/models/patchedansible_ansible_distribution.py +0 -258
- data/build/lib/pulpcore/client/pulp_ansible/models/patchedansible_ansible_repository.py +0 -258
- data/build/lib/pulpcore/client/pulp_ansible/models/patchedansible_collection_remote.py +0 -769
- data/build/lib/pulpcore/client/pulp_ansible/models/patchedansible_role_remote.py +0 -655
- data/build/lib/pulpcore/client/pulp_ansible/models/policy_enum.py +0 -101
- data/build/lib/pulpcore/client/pulp_ansible/models/repo_metadata_response.py +0 -122
- data/build/lib/pulpcore/client/pulp_ansible/models/repository_add_remove_content.py +0 -179
- data/build/lib/pulpcore/client/pulp_ansible/models/repository_version.py +0 -123
- data/build/lib/pulpcore/client/pulp_ansible/models/repository_version_response.py +0 -257
- data/build/lib/pulpcore/client/pulp_ansible/models/tag_response.py +0 -121
- data/build/lib/pulpcore/client/pulp_ansible/models/unpaginated_collection_version_response.py +0 -385
- data/build/lib/pulpcore/client/pulp_ansible/rest.py +0 -292
- data/dist/pulp_ansible-client-0.8.0.tar.gz +0 -0
- data/dist/pulp_ansible_client-0.8.0-py3-none-any.whl +0 -0
- data/pulp_ansible_client.egg-info/PKG-INFO +0 -15
- data/pulp_ansible_client.egg-info/SOURCES.txt +0 -185
- data/pulp_ansible_client.egg-info/dependency_links.txt +0 -1
- data/pulp_ansible_client.egg-info/requires.txt +0 -4
- data/pulp_ansible_client.egg-info/top_level.txt +0 -1
- data/pulpcore/__init__.py +0 -2
- data/pulpcore/client/__init__.py +0 -2
- data/pulpcore/client/pulp_ansible/__init__.py +0 -115
- data/pulpcore/client/pulp_ansible/api/__init__.py +0 -28
- data/pulpcore/client/pulp_ansible/api/ansible_collections_api.py +0 -316
- data/pulpcore/client/pulp_ansible/api/ansible_copy_api.py +0 -156
- data/pulpcore/client/pulp_ansible/api/api_collections_api.py +0 -294
- data/pulpcore/client/pulp_ansible/api/api_roles_api.py +0 -172
- data/pulpcore/client/pulp_ansible/api/collection_import_api.py +0 -167
- data/pulpcore/client/pulp_ansible/api/content_collection_versions_api.py +0 -455
- data/pulpcore/client/pulp_ansible/api/content_roles_api.py +0 -440
- data/pulpcore/client/pulp_ansible/api/distributions_ansible_api.py +0 -830
- data/pulpcore/client/pulp_ansible/api/galaxy_detail_api.py +0 -162
- data/pulpcore/client/pulp_ansible/api/pulp_ansible_api_api.py +0 -158
- data/pulpcore/client/pulp_ansible/api/pulp_ansible_galaxy_api_collections_api.py +0 -474
- data/pulpcore/client/pulp_ansible/api/pulp_ansible_galaxy_api_v2_versions_api.py +0 -185
- data/pulpcore/client/pulp_ansible/api/pulp_ansible_galaxy_api_v3_all_api.py +0 -301
- data/pulpcore/client/pulp_ansible/api/pulp_ansible_galaxy_api_v3_collections_api.py +0 -185
- data/pulpcore/client/pulp_ansible/api/pulp_ansible_galaxy_api_v3_collections_docs_blob_api.py +0 -189
- data/pulpcore/client/pulp_ansible/api/pulp_ansible_galaxy_api_v3_versions_api.py +0 -386
- data/pulpcore/client/pulp_ansible/api/pulp_ansible_galaxy_v3_api.py +0 -162
- data/pulpcore/client/pulp_ansible/api/pulp_ansible_tags_api.py +0 -168
- data/pulpcore/client/pulp_ansible/api/remotes_collection_api.py +0 -840
- data/pulpcore/client/pulp_ansible/api/remotes_role_api.py +0 -840
- data/pulpcore/client/pulp_ansible/api/repositories_ansible_api.py +0 -1063
- data/pulpcore/client/pulp_ansible/api/repositories_ansible_versions_api.py +0 -614
- data/pulpcore/client/pulp_ansible/api/versions_api.py +0 -301
- data/pulpcore/client/pulp_ansible/api_client.py +0 -667
- data/pulpcore/client/pulp_ansible/configuration.py +0 -427
- data/pulpcore/client/pulp_ansible/exceptions.py +0 -121
- data/pulpcore/client/pulp_ansible/models/__init__.py +0 -78
- data/pulpcore/client/pulp_ansible/models/ansible_ansible_distribution.py +0 -260
- data/pulpcore/client/pulp_ansible/models/ansible_ansible_distribution_response.py +0 -342
- data/pulpcore/client/pulp_ansible/models/ansible_ansible_repository.py +0 -259
- data/pulpcore/client/pulp_ansible/models/ansible_ansible_repository_response.py +0 -365
- data/pulpcore/client/pulp_ansible/models/ansible_collection_remote.py +0 -771
- data/pulpcore/client/pulp_ansible/models/ansible_collection_remote_response.py +0 -718
- data/pulpcore/client/pulp_ansible/models/ansible_collection_response.py +0 -153
- data/pulpcore/client/pulp_ansible/models/ansible_collection_version.py +0 -639
- data/pulpcore/client/pulp_ansible/models/ansible_collection_version_response.py +0 -887
- data/pulpcore/client/pulp_ansible/models/ansible_repository_sync_url.py +0 -179
- data/pulpcore/client/pulp_ansible/models/ansible_role.py +0 -205
- data/pulpcore/client/pulp_ansible/models/ansible_role_remote.py +0 -657
- data/pulpcore/client/pulp_ansible/models/ansible_role_remote_response.py +0 -604
- data/pulpcore/client/pulp_ansible/models/ansible_role_response.py +0 -259
- data/pulpcore/client/pulp_ansible/models/ansible_tag_response.py +0 -123
- data/pulpcore/client/pulp_ansible/models/artifact_ref_response.py +0 -176
- data/pulpcore/client/pulp_ansible/models/async_operation_response.py +0 -124
- data/pulpcore/client/pulp_ansible/models/collection_import_detail_response.py +0 -311
- data/pulpcore/client/pulp_ansible/models/collection_metadata_response.py +0 -356
- data/pulpcore/client/pulp_ansible/models/collection_namespace_response.py +0 -122
- data/pulpcore/client/pulp_ansible/models/collection_one_shot.py +0 -236
- data/pulpcore/client/pulp_ansible/models/collection_ref_response.py +0 -175
- data/pulpcore/client/pulp_ansible/models/collection_response.py +0 -303
- data/pulpcore/client/pulp_ansible/models/collection_version_docs_response.py +0 -122
- data/pulpcore/client/pulp_ansible/models/collection_version_response.py +0 -441
- data/pulpcore/client/pulp_ansible/models/content_summary.py +0 -176
- data/pulpcore/client/pulp_ansible/models/content_summary_response.py +0 -176
- data/pulpcore/client/pulp_ansible/models/copy.py +0 -124
- data/pulpcore/client/pulp_ansible/models/galaxy_collection.py +0 -203
- data/pulpcore/client/pulp_ansible/models/galaxy_collection_response.py +0 -307
- data/pulpcore/client/pulp_ansible/models/galaxy_collection_version_response.py +0 -253
- data/pulpcore/client/pulp_ansible/models/galaxy_role_response.py +0 -175
- data/pulpcore/client/pulp_ansible/models/galaxy_role_version_response.py +0 -148
- data/pulpcore/client/pulp_ansible/models/paginated_collection_response_list.py +0 -173
- data/pulpcore/client/pulp_ansible/models/paginated_collection_response_list_links.py +0 -195
- data/pulpcore/client/pulp_ansible/models/paginated_collection_response_list_meta.py +0 -121
- data/pulpcore/client/pulp_ansible/models/paginated_collection_version_response_list.py +0 -173
- data/pulpcore/client/pulp_ansible/models/paginated_galaxy_collection_response_list.py +0 -197
- data/pulpcore/client/pulp_ansible/models/paginated_galaxy_collection_version_response_list.py +0 -197
- data/pulpcore/client/pulp_ansible/models/paginated_galaxy_role_response_list.py +0 -197
- data/pulpcore/client/pulp_ansible/models/paginated_galaxy_role_version_response_list.py +0 -197
- data/pulpcore/client/pulp_ansible/models/paginated_repository_version_response_list.py +0 -197
- data/pulpcore/client/pulp_ansible/models/paginated_tag_response_list.py +0 -197
- data/pulpcore/client/pulp_ansible/models/paginatedansible_ansible_distribution_response_list.py +0 -197
- data/pulpcore/client/pulp_ansible/models/paginatedansible_ansible_repository_response_list.py +0 -197
- data/pulpcore/client/pulp_ansible/models/paginatedansible_collection_remote_response_list.py +0 -197
- data/pulpcore/client/pulp_ansible/models/paginatedansible_collection_response_list.py +0 -197
- data/pulpcore/client/pulp_ansible/models/paginatedansible_collection_version_response_list.py +0 -197
- data/pulpcore/client/pulp_ansible/models/paginatedansible_role_remote_response_list.py +0 -197
- data/pulpcore/client/pulp_ansible/models/paginatedansible_role_response_list.py +0 -197
- data/pulpcore/client/pulp_ansible/models/patchedansible_ansible_distribution.py +0 -258
- data/pulpcore/client/pulp_ansible/models/patchedansible_ansible_repository.py +0 -258
- data/pulpcore/client/pulp_ansible/models/patchedansible_collection_remote.py +0 -769
- data/pulpcore/client/pulp_ansible/models/patchedansible_role_remote.py +0 -655
- data/pulpcore/client/pulp_ansible/models/policy_enum.py +0 -101
- data/pulpcore/client/pulp_ansible/models/repo_metadata_response.py +0 -122
- data/pulpcore/client/pulp_ansible/models/repository_add_remove_content.py +0 -179
- data/pulpcore/client/pulp_ansible/models/repository_version.py +0 -123
- data/pulpcore/client/pulp_ansible/models/repository_version_response.py +0 -257
- data/pulpcore/client/pulp_ansible/models/tag_response.py +0 -121
- data/pulpcore/client/pulp_ansible/models/unpaginated_collection_version_response.py +0 -385
- data/pulpcore/client/pulp_ansible/rest.py +0 -292
- data/requirements.txt +0 -6
- data/setup.cfg +0 -2
- data/setup.py +0 -42
- data/test-requirements.txt +0 -3
- data/test/__init__.py +0 -0
- data/test/test_ansible_ansible_distribution.py +0 -60
- data/test/test_ansible_ansible_distribution_response.py +0 -63
- data/test/test_ansible_ansible_repository.py +0 -59
- data/test/test_ansible_ansible_repository_response.py +0 -63
- data/test/test_ansible_collection_remote.py +0 -80
- data/test/test_ansible_collection_remote_response.py +0 -78
- data/test/test_ansible_collection_response.py +0 -56
- data/test/test_ansible_collection_version.py +0 -99
- data/test/test_ansible_collection_version_response.py +0 -111
- data/test/test_ansible_collections_api.py +0 -48
- data/test/test_ansible_copy_api.py +0 -41
- data/test/test_ansible_repository_sync_url.py +0 -55
- data/test/test_ansible_role.py +0 -60
- data/test/test_ansible_role_remote.py +0 -76
- data/test/test_ansible_role_remote_response.py +0 -74
- data/test/test_ansible_role_response.py +0 -62
- data/test/test_ansible_tag_response.py +0 -53
- data/test/test_api_collections_api.py +0 -46
- data/test/test_api_roles_api.py +0 -40
- data/test/test_artifact_ref_response.py +0 -58
- data/test/test_async_operation_response.py +0 -54
- data/test/test_collection_import_api.py +0 -41
- data/test/test_collection_import_detail_response.py +0 -68
- data/test/test_collection_metadata_response.py +0 -71
- data/test/test_collection_namespace_response.py +0 -54
- data/test/test_collection_one_shot.py +0 -58
- data/test/test_collection_ref_response.py +0 -57
- data/test/test_collection_response.py +0 -60
- data/test/test_collection_version_docs_response.py +0 -54
- data/test/test_collection_version_response.py +0 -67
- data/test/test_content_collection_versions_api.py +0 -55
- data/test/test_content_roles_api.py +0 -55
- data/test/test_content_summary.py +0 -70
- data/test/test_content_summary_response.py +0 -70
- data/test/test_copy.py +0 -54
- data/test/test_distributions_ansible_api.py +0 -76
- data/test/test_galaxy_collection.py +0 -60
- data/test/test_galaxy_collection_response.py +0 -64
- data/test/test_galaxy_collection_version_response.py +0 -92
- data/test/test_galaxy_detail_api.py +0 -40
- data/test/test_galaxy_role_response.py +0 -57
- data/test/test_galaxy_role_version_response.py +0 -55
- data/test/test_paginated_collection_response_list.py +0 -70
- data/test/test_paginated_collection_response_list_links.py +0 -56
- data/test/test_paginated_collection_response_list_meta.py +0 -53
- data/test/test_paginated_collection_version_response_list.py +0 -75
- data/test/test_paginated_galaxy_collection_response_list.py +0 -66
- data/test/test_paginated_galaxy_collection_version_response_list.py +0 -80
- data/test/test_paginated_galaxy_role_response_list.py +0 -61
- data/test/test_paginated_galaxy_role_version_response_list.py +0 -60
- data/test/test_paginated_repository_version_response_list.py +0 -64
- data/test/test_paginated_tag_response_list.py +0 -59
- data/test/test_paginatedansible_ansible_distribution_response_list.py +0 -67
- data/test/test_paginatedansible_ansible_repository_response_list.py +0 -68
- data/test/test_paginatedansible_collection_remote_response_list.py +0 -82
- data/test/test_paginatedansible_collection_response_list.py +0 -60
- data/test/test_paginatedansible_collection_version_response_list.py +0 -94
- data/test/test_paginatedansible_role_remote_response_list.py +0 -78
- data/test/test_paginatedansible_role_response_list.py +0 -64
- data/test/test_patchedansible_ansible_distribution.py +0 -58
- data/test/test_patchedansible_ansible_repository.py +0 -58
- data/test/test_patchedansible_collection_remote.py +0 -78
- data/test/test_patchedansible_role_remote.py +0 -74
- data/test/test_policy_enum.py +0 -52
- data/test/test_pulp_ansible_api_api.py +0 -40
- data/test/test_pulp_ansible_galaxy_api_collections_api.py +0 -52
- data/test/test_pulp_ansible_galaxy_api_v2_versions_api.py +0 -40
- data/test/test_pulp_ansible_galaxy_api_v3_all_api.py +0 -46
- data/test/test_pulp_ansible_galaxy_api_v3_collections_api.py +0 -41
- data/test/test_pulp_ansible_galaxy_api_v3_collections_docs_blob_api.py +0 -40
- data/test/test_pulp_ansible_galaxy_api_v3_versions_api.py +0 -46
- data/test/test_pulp_ansible_galaxy_v3_api.py +0 -40
- data/test/test_pulp_ansible_tags_api.py +0 -41
- data/test/test_remotes_collection_api.py +0 -76
- data/test/test_remotes_role_api.py +0 -76
- data/test/test_repo_metadata_response.py +0 -54
- data/test/test_repositories_ansible_api.py +0 -89
- data/test/test_repositories_ansible_versions_api.py +0 -61
- data/test/test_repository_add_remove_content.py +0 -59
- data/test/test_repository_version.py +0 -53
- data/test/test_repository_version_response.py +0 -58
- data/test/test_tag_response.py +0 -53
- data/test/test_unpaginated_collection_version_response.py +0 -65
- data/test/test_versions_api.py +0 -46
- data/tox.ini +0 -9
data/build/lib/pulpcore/client/pulp_ansible/api/pulp_ansible_galaxy_api_v3_collections_api.py
DELETED
@@ -1,185 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Pulp 3 API
|
5
|
-
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
|
7
|
-
|
8
|
-
The version of the OpenAPI document: v3
|
9
|
-
Contact: pulp-list@redhat.com
|
10
|
-
Generated by: https://openapi-generator.tech
|
11
|
-
"""
|
12
|
-
|
13
|
-
|
14
|
-
from __future__ import absolute_import
|
15
|
-
|
16
|
-
import re # noqa: F401
|
17
|
-
|
18
|
-
# python 2 and python 3 compatibility library
|
19
|
-
import six
|
20
|
-
|
21
|
-
from pulpcore.client.pulp_ansible.api_client import ApiClient
|
22
|
-
from pulpcore.client.pulp_ansible.exceptions import ( # noqa: F401
|
23
|
-
ApiTypeError,
|
24
|
-
ApiValueError
|
25
|
-
)
|
26
|
-
|
27
|
-
|
28
|
-
class PulpAnsibleGalaxyApiV3CollectionsApi(object):
|
29
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
30
|
-
Ref: https://openapi-generator.tech
|
31
|
-
|
32
|
-
Do not edit the class manually.
|
33
|
-
"""
|
34
|
-
|
35
|
-
def __init__(self, api_client=None):
|
36
|
-
if api_client is None:
|
37
|
-
api_client = ApiClient()
|
38
|
-
self.api_client = api_client
|
39
|
-
|
40
|
-
def create(self, path, file, **kwargs): # noqa: E501
|
41
|
-
"""Upload a collection # noqa: E501
|
42
|
-
|
43
|
-
Create an artifact and trigger an asynchronous task to create Collection content from it. # noqa: E501
|
44
|
-
This method makes a synchronous HTTP request by default. To make an
|
45
|
-
asynchronous HTTP request, please pass async_req=True
|
46
|
-
>>> thread = api.create(path, file, async_req=True)
|
47
|
-
>>> result = thread.get()
|
48
|
-
|
49
|
-
:param async_req bool: execute request asynchronously
|
50
|
-
:param str path: (required)
|
51
|
-
:param file file: The Collection tarball. (required)
|
52
|
-
:param str sha256: An optional sha256 checksum of the uploaded file.
|
53
|
-
:param str expected_namespace: The expected 'namespace' of the Collection to be verified against the metadata during import.
|
54
|
-
:param str expected_name: The expected 'name' of the Collection to be verified against the metadata during import.
|
55
|
-
:param str expected_version: The expected version of the Collection to be verified against the metadata during import.
|
56
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
57
|
-
be returned without reading/decoding response
|
58
|
-
data. Default is True.
|
59
|
-
:param _request_timeout: timeout setting for this request. If one
|
60
|
-
number provided, it will be total request
|
61
|
-
timeout. It can also be a pair (tuple) of
|
62
|
-
(connection, read) timeouts.
|
63
|
-
:return: AsyncOperationResponse
|
64
|
-
If the method is called asynchronously,
|
65
|
-
returns the request thread.
|
66
|
-
"""
|
67
|
-
kwargs['_return_http_data_only'] = True
|
68
|
-
return self.create_with_http_info(path, file, **kwargs) # noqa: E501
|
69
|
-
|
70
|
-
def create_with_http_info(self, path, file, **kwargs): # noqa: E501
|
71
|
-
"""Upload a collection # noqa: E501
|
72
|
-
|
73
|
-
Create an artifact and trigger an asynchronous task to create Collection content from it. # noqa: E501
|
74
|
-
This method makes a synchronous HTTP request by default. To make an
|
75
|
-
asynchronous HTTP request, please pass async_req=True
|
76
|
-
>>> thread = api.create_with_http_info(path, file, async_req=True)
|
77
|
-
>>> result = thread.get()
|
78
|
-
|
79
|
-
:param async_req bool: execute request asynchronously
|
80
|
-
:param str path: (required)
|
81
|
-
:param file file: The Collection tarball. (required)
|
82
|
-
:param str sha256: An optional sha256 checksum of the uploaded file.
|
83
|
-
:param str expected_namespace: The expected 'namespace' of the Collection to be verified against the metadata during import.
|
84
|
-
:param str expected_name: The expected 'name' of the Collection to be verified against the metadata during import.
|
85
|
-
:param str expected_version: The expected version of the Collection to be verified against the metadata during import.
|
86
|
-
:param _return_http_data_only: response data without head status code
|
87
|
-
and headers
|
88
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
89
|
-
be returned without reading/decoding response
|
90
|
-
data. Default is True.
|
91
|
-
:param _request_timeout: timeout setting for this request. If one
|
92
|
-
number provided, it will be total request
|
93
|
-
timeout. It can also be a pair (tuple) of
|
94
|
-
(connection, read) timeouts.
|
95
|
-
:return: tuple(AsyncOperationResponse, status_code(int), headers(HTTPHeaderDict))
|
96
|
-
If the method is called asynchronously,
|
97
|
-
returns the request thread.
|
98
|
-
"""
|
99
|
-
|
100
|
-
local_var_params = locals()
|
101
|
-
|
102
|
-
all_params = [
|
103
|
-
'path',
|
104
|
-
'file',
|
105
|
-
'sha256',
|
106
|
-
'expected_namespace',
|
107
|
-
'expected_name',
|
108
|
-
'expected_version'
|
109
|
-
]
|
110
|
-
all_params.extend(
|
111
|
-
[
|
112
|
-
'async_req',
|
113
|
-
'_return_http_data_only',
|
114
|
-
'_preload_content',
|
115
|
-
'_request_timeout'
|
116
|
-
]
|
117
|
-
)
|
118
|
-
|
119
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
120
|
-
if key not in all_params:
|
121
|
-
raise ApiTypeError(
|
122
|
-
"Got an unexpected keyword argument '%s'"
|
123
|
-
" to method create" % key
|
124
|
-
)
|
125
|
-
local_var_params[key] = val
|
126
|
-
del local_var_params['kwargs']
|
127
|
-
# verify the required parameter 'path' is set
|
128
|
-
if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501
|
129
|
-
local_var_params['path'] is None): # noqa: E501
|
130
|
-
raise ApiValueError("Missing the required parameter `path` when calling `create`") # noqa: E501
|
131
|
-
# verify the required parameter 'file' is set
|
132
|
-
if self.api_client.client_side_validation and ('file' not in local_var_params or # noqa: E501
|
133
|
-
local_var_params['file'] is None): # noqa: E501
|
134
|
-
raise ApiValueError("Missing the required parameter `file` when calling `create`") # noqa: E501
|
135
|
-
|
136
|
-
collection_formats = {}
|
137
|
-
|
138
|
-
path_params = {}
|
139
|
-
if 'path' in local_var_params:
|
140
|
-
path_params['path'] = local_var_params['path'] # noqa: E501
|
141
|
-
|
142
|
-
query_params = []
|
143
|
-
|
144
|
-
header_params = {}
|
145
|
-
|
146
|
-
form_params = []
|
147
|
-
local_var_files = {}
|
148
|
-
if 'file' in local_var_params:
|
149
|
-
local_var_files['file'] = local_var_params['file'] # noqa: E501
|
150
|
-
if 'sha256' in local_var_params:
|
151
|
-
form_params.append(('sha256', local_var_params['sha256'])) # noqa: E501
|
152
|
-
if 'expected_namespace' in local_var_params:
|
153
|
-
form_params.append(('expected_namespace', local_var_params['expected_namespace'])) # noqa: E501
|
154
|
-
if 'expected_name' in local_var_params:
|
155
|
-
form_params.append(('expected_name', local_var_params['expected_name'])) # noqa: E501
|
156
|
-
if 'expected_version' in local_var_params:
|
157
|
-
form_params.append(('expected_version', local_var_params['expected_version'])) # noqa: E501
|
158
|
-
|
159
|
-
body_params = None
|
160
|
-
# HTTP header `Accept`
|
161
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
162
|
-
['application/json']) # noqa: E501
|
163
|
-
|
164
|
-
# HTTP header `Content-Type`
|
165
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
166
|
-
['multipart/form-data', 'application/x-www-form-urlencoded']) # noqa: E501
|
167
|
-
|
168
|
-
# Authentication setting
|
169
|
-
auth_settings = [] # noqa: E501
|
170
|
-
|
171
|
-
return self.api_client.call_api(
|
172
|
-
'/pulp_ansible/galaxy/{path}/api/v3/artifacts/collections/', 'POST',
|
173
|
-
path_params,
|
174
|
-
query_params,
|
175
|
-
header_params,
|
176
|
-
body=body_params,
|
177
|
-
post_params=form_params,
|
178
|
-
files=local_var_files,
|
179
|
-
response_type='AsyncOperationResponse', # noqa: E501
|
180
|
-
auth_settings=auth_settings,
|
181
|
-
async_req=local_var_params.get('async_req'),
|
182
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
183
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
184
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
185
|
-
collection_formats=collection_formats)
|
@@ -1,189 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Pulp 3 API
|
5
|
-
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
|
7
|
-
|
8
|
-
The version of the OpenAPI document: v3
|
9
|
-
Contact: pulp-list@redhat.com
|
10
|
-
Generated by: https://openapi-generator.tech
|
11
|
-
"""
|
12
|
-
|
13
|
-
|
14
|
-
from __future__ import absolute_import
|
15
|
-
|
16
|
-
import re # noqa: F401
|
17
|
-
|
18
|
-
# python 2 and python 3 compatibility library
|
19
|
-
import six
|
20
|
-
|
21
|
-
from pulpcore.client.pulp_ansible.api_client import ApiClient
|
22
|
-
from pulpcore.client.pulp_ansible.exceptions import ( # noqa: F401
|
23
|
-
ApiTypeError,
|
24
|
-
ApiValueError
|
25
|
-
)
|
26
|
-
|
27
|
-
|
28
|
-
class PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi(object):
|
29
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
30
|
-
Ref: https://openapi-generator.tech
|
31
|
-
|
32
|
-
Do not edit the class manually.
|
33
|
-
"""
|
34
|
-
|
35
|
-
def __init__(self, api_client=None):
|
36
|
-
if api_client is None:
|
37
|
-
api_client = ApiClient()
|
38
|
-
self.api_client = api_client
|
39
|
-
|
40
|
-
def read(self, name, namespace, path, version, **kwargs): # noqa: E501
|
41
|
-
"""read # noqa: E501
|
42
|
-
|
43
|
-
Returns a CollectionVersion object. # noqa: E501
|
44
|
-
This method makes a synchronous HTTP request by default. To make an
|
45
|
-
asynchronous HTTP request, please pass async_req=True
|
46
|
-
>>> thread = api.read(name, namespace, path, version, async_req=True)
|
47
|
-
>>> result = thread.get()
|
48
|
-
|
49
|
-
:param async_req bool: execute request asynchronously
|
50
|
-
:param str name: (required)
|
51
|
-
:param str namespace: (required)
|
52
|
-
:param str path: (required)
|
53
|
-
:param str version: (required)
|
54
|
-
:param str fields: A list of fields to include in the response.
|
55
|
-
:param str exclude_fields: A list of fields to exclude from the response.
|
56
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
57
|
-
be returned without reading/decoding response
|
58
|
-
data. Default is True.
|
59
|
-
:param _request_timeout: timeout setting for this request. If one
|
60
|
-
number provided, it will be total request
|
61
|
-
timeout. It can also be a pair (tuple) of
|
62
|
-
(connection, read) timeouts.
|
63
|
-
:return: CollectionVersionDocsResponse
|
64
|
-
If the method is called asynchronously,
|
65
|
-
returns the request thread.
|
66
|
-
"""
|
67
|
-
kwargs['_return_http_data_only'] = True
|
68
|
-
return self.read_with_http_info(name, namespace, path, version, **kwargs) # noqa: E501
|
69
|
-
|
70
|
-
def read_with_http_info(self, name, namespace, path, version, **kwargs): # noqa: E501
|
71
|
-
"""read # noqa: E501
|
72
|
-
|
73
|
-
Returns a CollectionVersion object. # noqa: E501
|
74
|
-
This method makes a synchronous HTTP request by default. To make an
|
75
|
-
asynchronous HTTP request, please pass async_req=True
|
76
|
-
>>> thread = api.read_with_http_info(name, namespace, path, version, async_req=True)
|
77
|
-
>>> result = thread.get()
|
78
|
-
|
79
|
-
:param async_req bool: execute request asynchronously
|
80
|
-
:param str name: (required)
|
81
|
-
:param str namespace: (required)
|
82
|
-
:param str path: (required)
|
83
|
-
:param str version: (required)
|
84
|
-
:param str fields: A list of fields to include in the response.
|
85
|
-
:param str exclude_fields: A list of fields to exclude from the response.
|
86
|
-
:param _return_http_data_only: response data without head status code
|
87
|
-
and headers
|
88
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
89
|
-
be returned without reading/decoding response
|
90
|
-
data. Default is True.
|
91
|
-
:param _request_timeout: timeout setting for this request. If one
|
92
|
-
number provided, it will be total request
|
93
|
-
timeout. It can also be a pair (tuple) of
|
94
|
-
(connection, read) timeouts.
|
95
|
-
:return: tuple(CollectionVersionDocsResponse, status_code(int), headers(HTTPHeaderDict))
|
96
|
-
If the method is called asynchronously,
|
97
|
-
returns the request thread.
|
98
|
-
"""
|
99
|
-
|
100
|
-
local_var_params = locals()
|
101
|
-
|
102
|
-
all_params = [
|
103
|
-
'name',
|
104
|
-
'namespace',
|
105
|
-
'path',
|
106
|
-
'version',
|
107
|
-
'fields',
|
108
|
-
'exclude_fields'
|
109
|
-
]
|
110
|
-
all_params.extend(
|
111
|
-
[
|
112
|
-
'async_req',
|
113
|
-
'_return_http_data_only',
|
114
|
-
'_preload_content',
|
115
|
-
'_request_timeout'
|
116
|
-
]
|
117
|
-
)
|
118
|
-
|
119
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
120
|
-
if key not in all_params:
|
121
|
-
raise ApiTypeError(
|
122
|
-
"Got an unexpected keyword argument '%s'"
|
123
|
-
" to method read" % key
|
124
|
-
)
|
125
|
-
local_var_params[key] = val
|
126
|
-
del local_var_params['kwargs']
|
127
|
-
# verify the required parameter 'name' is set
|
128
|
-
if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
|
129
|
-
local_var_params['name'] is None): # noqa: E501
|
130
|
-
raise ApiValueError("Missing the required parameter `name` when calling `read`") # noqa: E501
|
131
|
-
# verify the required parameter 'namespace' is set
|
132
|
-
if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
|
133
|
-
local_var_params['namespace'] is None): # noqa: E501
|
134
|
-
raise ApiValueError("Missing the required parameter `namespace` when calling `read`") # noqa: E501
|
135
|
-
# verify the required parameter 'path' is set
|
136
|
-
if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501
|
137
|
-
local_var_params['path'] is None): # noqa: E501
|
138
|
-
raise ApiValueError("Missing the required parameter `path` when calling `read`") # noqa: E501
|
139
|
-
# verify the required parameter 'version' is set
|
140
|
-
if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501
|
141
|
-
local_var_params['version'] is None): # noqa: E501
|
142
|
-
raise ApiValueError("Missing the required parameter `version` when calling `read`") # noqa: E501
|
143
|
-
|
144
|
-
collection_formats = {}
|
145
|
-
|
146
|
-
path_params = {}
|
147
|
-
if 'name' in local_var_params:
|
148
|
-
path_params['name'] = local_var_params['name'] # noqa: E501
|
149
|
-
if 'namespace' in local_var_params:
|
150
|
-
path_params['namespace'] = local_var_params['namespace'] # noqa: E501
|
151
|
-
if 'path' in local_var_params:
|
152
|
-
path_params['path'] = local_var_params['path'] # noqa: E501
|
153
|
-
if 'version' in local_var_params:
|
154
|
-
path_params['version'] = local_var_params['version'] # noqa: E501
|
155
|
-
|
156
|
-
query_params = []
|
157
|
-
if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
|
158
|
-
query_params.append(('fields', local_var_params['fields'])) # noqa: E501
|
159
|
-
if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
|
160
|
-
query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
|
161
|
-
|
162
|
-
header_params = {}
|
163
|
-
|
164
|
-
form_params = []
|
165
|
-
local_var_files = {}
|
166
|
-
|
167
|
-
body_params = None
|
168
|
-
# HTTP header `Accept`
|
169
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
170
|
-
['application/json']) # noqa: E501
|
171
|
-
|
172
|
-
# Authentication setting
|
173
|
-
auth_settings = [] # noqa: E501
|
174
|
-
|
175
|
-
return self.api_client.call_api(
|
176
|
-
'/pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/versions/{version}/docs-blob/', 'GET',
|
177
|
-
path_params,
|
178
|
-
query_params,
|
179
|
-
header_params,
|
180
|
-
body=body_params,
|
181
|
-
post_params=form_params,
|
182
|
-
files=local_var_files,
|
183
|
-
response_type='CollectionVersionDocsResponse', # noqa: E501
|
184
|
-
auth_settings=auth_settings,
|
185
|
-
async_req=local_var_params.get('async_req'),
|
186
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
187
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
188
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
189
|
-
collection_formats=collection_formats)
|
@@ -1,386 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Pulp 3 API
|
5
|
-
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
|
7
|
-
|
8
|
-
The version of the OpenAPI document: v3
|
9
|
-
Contact: pulp-list@redhat.com
|
10
|
-
Generated by: https://openapi-generator.tech
|
11
|
-
"""
|
12
|
-
|
13
|
-
|
14
|
-
from __future__ import absolute_import
|
15
|
-
|
16
|
-
import re # noqa: F401
|
17
|
-
|
18
|
-
# python 2 and python 3 compatibility library
|
19
|
-
import six
|
20
|
-
|
21
|
-
from pulpcore.client.pulp_ansible.api_client import ApiClient
|
22
|
-
from pulpcore.client.pulp_ansible.exceptions import ( # noqa: F401
|
23
|
-
ApiTypeError,
|
24
|
-
ApiValueError
|
25
|
-
)
|
26
|
-
|
27
|
-
|
28
|
-
class PulpAnsibleGalaxyApiV3VersionsApi(object):
|
29
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
30
|
-
Ref: https://openapi-generator.tech
|
31
|
-
|
32
|
-
Do not edit the class manually.
|
33
|
-
"""
|
34
|
-
|
35
|
-
def __init__(self, api_client=None):
|
36
|
-
if api_client is None:
|
37
|
-
api_client = ApiClient()
|
38
|
-
self.api_client = api_client
|
39
|
-
|
40
|
-
def list(self, name, namespace, path, **kwargs): # noqa: E501
|
41
|
-
"""list # noqa: E501
|
42
|
-
|
43
|
-
Returns paginated CollectionVersions list. # noqa: E501
|
44
|
-
This method makes a synchronous HTTP request by default. To make an
|
45
|
-
asynchronous HTTP request, please pass async_req=True
|
46
|
-
>>> thread = api.list(name, namespace, path, async_req=True)
|
47
|
-
>>> result = thread.get()
|
48
|
-
|
49
|
-
:param async_req bool: execute request asynchronously
|
50
|
-
:param str name: (required)
|
51
|
-
:param str namespace: (required)
|
52
|
-
:param str path: (required)
|
53
|
-
:param bool is_highest:
|
54
|
-
:param int limit: Number of results to return per page.
|
55
|
-
:param str name2:
|
56
|
-
:param str namespace2:
|
57
|
-
:param int offset: The initial index from which to return the results.
|
58
|
-
:param str q:
|
59
|
-
:param str repository_version: Repository Version referenced by HREF
|
60
|
-
:param str repository_version_added: Repository Version referenced by HREF
|
61
|
-
:param str repository_version_removed: Repository Version referenced by HREF
|
62
|
-
:param str tags: Filter by comma separate list of tags that must all be matched
|
63
|
-
:param str version: Filter results where version matches value
|
64
|
-
:param str fields: A list of fields to include in the response.
|
65
|
-
:param str exclude_fields: A list of fields to exclude from the response.
|
66
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
67
|
-
be returned without reading/decoding response
|
68
|
-
data. Default is True.
|
69
|
-
:param _request_timeout: timeout setting for this request. If one
|
70
|
-
number provided, it will be total request
|
71
|
-
timeout. It can also be a pair (tuple) of
|
72
|
-
(connection, read) timeouts.
|
73
|
-
:return: PaginatedCollectionVersionResponseList
|
74
|
-
If the method is called asynchronously,
|
75
|
-
returns the request thread.
|
76
|
-
"""
|
77
|
-
kwargs['_return_http_data_only'] = True
|
78
|
-
return self.list_with_http_info(name, namespace, path, **kwargs) # noqa: E501
|
79
|
-
|
80
|
-
def list_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501
|
81
|
-
"""list # noqa: E501
|
82
|
-
|
83
|
-
Returns paginated CollectionVersions list. # noqa: E501
|
84
|
-
This method makes a synchronous HTTP request by default. To make an
|
85
|
-
asynchronous HTTP request, please pass async_req=True
|
86
|
-
>>> thread = api.list_with_http_info(name, namespace, path, async_req=True)
|
87
|
-
>>> result = thread.get()
|
88
|
-
|
89
|
-
:param async_req bool: execute request asynchronously
|
90
|
-
:param str name: (required)
|
91
|
-
:param str namespace: (required)
|
92
|
-
:param str path: (required)
|
93
|
-
:param bool is_highest:
|
94
|
-
:param int limit: Number of results to return per page.
|
95
|
-
:param str name2:
|
96
|
-
:param str namespace2:
|
97
|
-
:param int offset: The initial index from which to return the results.
|
98
|
-
:param str q:
|
99
|
-
:param str repository_version: Repository Version referenced by HREF
|
100
|
-
:param str repository_version_added: Repository Version referenced by HREF
|
101
|
-
:param str repository_version_removed: Repository Version referenced by HREF
|
102
|
-
:param str tags: Filter by comma separate list of tags that must all be matched
|
103
|
-
:param str version: Filter results where version matches value
|
104
|
-
:param str fields: A list of fields to include in the response.
|
105
|
-
:param str exclude_fields: A list of fields to exclude from the response.
|
106
|
-
:param _return_http_data_only: response data without head status code
|
107
|
-
and headers
|
108
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
109
|
-
be returned without reading/decoding response
|
110
|
-
data. Default is True.
|
111
|
-
:param _request_timeout: timeout setting for this request. If one
|
112
|
-
number provided, it will be total request
|
113
|
-
timeout. It can also be a pair (tuple) of
|
114
|
-
(connection, read) timeouts.
|
115
|
-
:return: tuple(PaginatedCollectionVersionResponseList, status_code(int), headers(HTTPHeaderDict))
|
116
|
-
If the method is called asynchronously,
|
117
|
-
returns the request thread.
|
118
|
-
"""
|
119
|
-
|
120
|
-
local_var_params = locals()
|
121
|
-
|
122
|
-
all_params = [
|
123
|
-
'name',
|
124
|
-
'namespace',
|
125
|
-
'path',
|
126
|
-
'is_highest',
|
127
|
-
'limit',
|
128
|
-
'name2',
|
129
|
-
'namespace2',
|
130
|
-
'offset',
|
131
|
-
'q',
|
132
|
-
'repository_version',
|
133
|
-
'repository_version_added',
|
134
|
-
'repository_version_removed',
|
135
|
-
'tags',
|
136
|
-
'version',
|
137
|
-
'fields',
|
138
|
-
'exclude_fields'
|
139
|
-
]
|
140
|
-
all_params.extend(
|
141
|
-
[
|
142
|
-
'async_req',
|
143
|
-
'_return_http_data_only',
|
144
|
-
'_preload_content',
|
145
|
-
'_request_timeout'
|
146
|
-
]
|
147
|
-
)
|
148
|
-
|
149
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
150
|
-
if key not in all_params:
|
151
|
-
raise ApiTypeError(
|
152
|
-
"Got an unexpected keyword argument '%s'"
|
153
|
-
" to method list" % key
|
154
|
-
)
|
155
|
-
local_var_params[key] = val
|
156
|
-
del local_var_params['kwargs']
|
157
|
-
# verify the required parameter 'name' is set
|
158
|
-
if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
|
159
|
-
local_var_params['name'] is None): # noqa: E501
|
160
|
-
raise ApiValueError("Missing the required parameter `name` when calling `list`") # noqa: E501
|
161
|
-
# verify the required parameter 'namespace' is set
|
162
|
-
if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
|
163
|
-
local_var_params['namespace'] is None): # noqa: E501
|
164
|
-
raise ApiValueError("Missing the required parameter `namespace` when calling `list`") # noqa: E501
|
165
|
-
# verify the required parameter 'path' is set
|
166
|
-
if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501
|
167
|
-
local_var_params['path'] is None): # noqa: E501
|
168
|
-
raise ApiValueError("Missing the required parameter `path` when calling `list`") # noqa: E501
|
169
|
-
|
170
|
-
collection_formats = {}
|
171
|
-
|
172
|
-
path_params = {}
|
173
|
-
if 'name' in local_var_params:
|
174
|
-
path_params['name'] = local_var_params['name'] # noqa: E501
|
175
|
-
if 'namespace' in local_var_params:
|
176
|
-
path_params['namespace'] = local_var_params['namespace'] # noqa: E501
|
177
|
-
if 'path' in local_var_params:
|
178
|
-
path_params['path'] = local_var_params['path'] # noqa: E501
|
179
|
-
|
180
|
-
query_params = []
|
181
|
-
if 'is_highest' in local_var_params and local_var_params['is_highest'] is not None: # noqa: E501
|
182
|
-
query_params.append(('is_highest', local_var_params['is_highest'])) # noqa: E501
|
183
|
-
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
|
184
|
-
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
|
185
|
-
if 'name2' in local_var_params and local_var_params['name2'] is not None: # noqa: E501
|
186
|
-
query_params.append(('name', local_var_params['name2'])) # noqa: E501
|
187
|
-
if 'namespace2' in local_var_params and local_var_params['namespace2'] is not None: # noqa: E501
|
188
|
-
query_params.append(('namespace', local_var_params['namespace2'])) # noqa: E501
|
189
|
-
if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
|
190
|
-
query_params.append(('offset', local_var_params['offset'])) # noqa: E501
|
191
|
-
if 'q' in local_var_params and local_var_params['q'] is not None: # noqa: E501
|
192
|
-
query_params.append(('q', local_var_params['q'])) # noqa: E501
|
193
|
-
if 'repository_version' in local_var_params and local_var_params['repository_version'] is not None: # noqa: E501
|
194
|
-
query_params.append(('repository_version', local_var_params['repository_version'])) # noqa: E501
|
195
|
-
if 'repository_version_added' in local_var_params and local_var_params['repository_version_added'] is not None: # noqa: E501
|
196
|
-
query_params.append(('repository_version_added', local_var_params['repository_version_added'])) # noqa: E501
|
197
|
-
if 'repository_version_removed' in local_var_params and local_var_params['repository_version_removed'] is not None: # noqa: E501
|
198
|
-
query_params.append(('repository_version_removed', local_var_params['repository_version_removed'])) # noqa: E501
|
199
|
-
if 'tags' in local_var_params and local_var_params['tags'] is not None: # noqa: E501
|
200
|
-
query_params.append(('tags', local_var_params['tags'])) # noqa: E501
|
201
|
-
if 'version' in local_var_params and local_var_params['version'] is not None: # noqa: E501
|
202
|
-
query_params.append(('version', local_var_params['version'])) # noqa: E501
|
203
|
-
if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
|
204
|
-
query_params.append(('fields', local_var_params['fields'])) # noqa: E501
|
205
|
-
if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
|
206
|
-
query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
|
207
|
-
|
208
|
-
header_params = {}
|
209
|
-
|
210
|
-
form_params = []
|
211
|
-
local_var_files = {}
|
212
|
-
|
213
|
-
body_params = None
|
214
|
-
# HTTP header `Accept`
|
215
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
216
|
-
['application/json']) # noqa: E501
|
217
|
-
|
218
|
-
# Authentication setting
|
219
|
-
auth_settings = [] # noqa: E501
|
220
|
-
|
221
|
-
return self.api_client.call_api(
|
222
|
-
'/pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/versions/', 'GET',
|
223
|
-
path_params,
|
224
|
-
query_params,
|
225
|
-
header_params,
|
226
|
-
body=body_params,
|
227
|
-
post_params=form_params,
|
228
|
-
files=local_var_files,
|
229
|
-
response_type='PaginatedCollectionVersionResponseList', # noqa: E501
|
230
|
-
auth_settings=auth_settings,
|
231
|
-
async_req=local_var_params.get('async_req'),
|
232
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
233
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
234
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
235
|
-
collection_formats=collection_formats)
|
236
|
-
|
237
|
-
def read(self, name, namespace, path, version, **kwargs): # noqa: E501
|
238
|
-
"""read # noqa: E501
|
239
|
-
|
240
|
-
Returns a CollectionVersion object. # noqa: E501
|
241
|
-
This method makes a synchronous HTTP request by default. To make an
|
242
|
-
asynchronous HTTP request, please pass async_req=True
|
243
|
-
>>> thread = api.read(name, namespace, path, version, async_req=True)
|
244
|
-
>>> result = thread.get()
|
245
|
-
|
246
|
-
:param async_req bool: execute request asynchronously
|
247
|
-
:param str name: (required)
|
248
|
-
:param str namespace: (required)
|
249
|
-
:param str path: (required)
|
250
|
-
:param str version: (required)
|
251
|
-
:param str fields: A list of fields to include in the response.
|
252
|
-
:param str exclude_fields: A list of fields to exclude from the response.
|
253
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
254
|
-
be returned without reading/decoding response
|
255
|
-
data. Default is True.
|
256
|
-
:param _request_timeout: timeout setting for this request. If one
|
257
|
-
number provided, it will be total request
|
258
|
-
timeout. It can also be a pair (tuple) of
|
259
|
-
(connection, read) timeouts.
|
260
|
-
:return: CollectionVersionResponse
|
261
|
-
If the method is called asynchronously,
|
262
|
-
returns the request thread.
|
263
|
-
"""
|
264
|
-
kwargs['_return_http_data_only'] = True
|
265
|
-
return self.read_with_http_info(name, namespace, path, version, **kwargs) # noqa: E501
|
266
|
-
|
267
|
-
def read_with_http_info(self, name, namespace, path, version, **kwargs): # noqa: E501
|
268
|
-
"""read # noqa: E501
|
269
|
-
|
270
|
-
Returns a CollectionVersion object. # noqa: E501
|
271
|
-
This method makes a synchronous HTTP request by default. To make an
|
272
|
-
asynchronous HTTP request, please pass async_req=True
|
273
|
-
>>> thread = api.read_with_http_info(name, namespace, path, version, async_req=True)
|
274
|
-
>>> result = thread.get()
|
275
|
-
|
276
|
-
:param async_req bool: execute request asynchronously
|
277
|
-
:param str name: (required)
|
278
|
-
:param str namespace: (required)
|
279
|
-
:param str path: (required)
|
280
|
-
:param str version: (required)
|
281
|
-
:param str fields: A list of fields to include in the response.
|
282
|
-
:param str exclude_fields: A list of fields to exclude from the response.
|
283
|
-
:param _return_http_data_only: response data without head status code
|
284
|
-
and headers
|
285
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
286
|
-
be returned without reading/decoding response
|
287
|
-
data. Default is True.
|
288
|
-
:param _request_timeout: timeout setting for this request. If one
|
289
|
-
number provided, it will be total request
|
290
|
-
timeout. It can also be a pair (tuple) of
|
291
|
-
(connection, read) timeouts.
|
292
|
-
:return: tuple(CollectionVersionResponse, status_code(int), headers(HTTPHeaderDict))
|
293
|
-
If the method is called asynchronously,
|
294
|
-
returns the request thread.
|
295
|
-
"""
|
296
|
-
|
297
|
-
local_var_params = locals()
|
298
|
-
|
299
|
-
all_params = [
|
300
|
-
'name',
|
301
|
-
'namespace',
|
302
|
-
'path',
|
303
|
-
'version',
|
304
|
-
'fields',
|
305
|
-
'exclude_fields'
|
306
|
-
]
|
307
|
-
all_params.extend(
|
308
|
-
[
|
309
|
-
'async_req',
|
310
|
-
'_return_http_data_only',
|
311
|
-
'_preload_content',
|
312
|
-
'_request_timeout'
|
313
|
-
]
|
314
|
-
)
|
315
|
-
|
316
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
317
|
-
if key not in all_params:
|
318
|
-
raise ApiTypeError(
|
319
|
-
"Got an unexpected keyword argument '%s'"
|
320
|
-
" to method read" % key
|
321
|
-
)
|
322
|
-
local_var_params[key] = val
|
323
|
-
del local_var_params['kwargs']
|
324
|
-
# verify the required parameter 'name' is set
|
325
|
-
if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
|
326
|
-
local_var_params['name'] is None): # noqa: E501
|
327
|
-
raise ApiValueError("Missing the required parameter `name` when calling `read`") # noqa: E501
|
328
|
-
# verify the required parameter 'namespace' is set
|
329
|
-
if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
|
330
|
-
local_var_params['namespace'] is None): # noqa: E501
|
331
|
-
raise ApiValueError("Missing the required parameter `namespace` when calling `read`") # noqa: E501
|
332
|
-
# verify the required parameter 'path' is set
|
333
|
-
if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501
|
334
|
-
local_var_params['path'] is None): # noqa: E501
|
335
|
-
raise ApiValueError("Missing the required parameter `path` when calling `read`") # noqa: E501
|
336
|
-
# verify the required parameter 'version' is set
|
337
|
-
if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501
|
338
|
-
local_var_params['version'] is None): # noqa: E501
|
339
|
-
raise ApiValueError("Missing the required parameter `version` when calling `read`") # noqa: E501
|
340
|
-
|
341
|
-
collection_formats = {}
|
342
|
-
|
343
|
-
path_params = {}
|
344
|
-
if 'name' in local_var_params:
|
345
|
-
path_params['name'] = local_var_params['name'] # noqa: E501
|
346
|
-
if 'namespace' in local_var_params:
|
347
|
-
path_params['namespace'] = local_var_params['namespace'] # noqa: E501
|
348
|
-
if 'path' in local_var_params:
|
349
|
-
path_params['path'] = local_var_params['path'] # noqa: E501
|
350
|
-
if 'version' in local_var_params:
|
351
|
-
path_params['version'] = local_var_params['version'] # noqa: E501
|
352
|
-
|
353
|
-
query_params = []
|
354
|
-
if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
|
355
|
-
query_params.append(('fields', local_var_params['fields'])) # noqa: E501
|
356
|
-
if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
|
357
|
-
query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
|
358
|
-
|
359
|
-
header_params = {}
|
360
|
-
|
361
|
-
form_params = []
|
362
|
-
local_var_files = {}
|
363
|
-
|
364
|
-
body_params = None
|
365
|
-
# HTTP header `Accept`
|
366
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
367
|
-
['application/json']) # noqa: E501
|
368
|
-
|
369
|
-
# Authentication setting
|
370
|
-
auth_settings = [] # noqa: E501
|
371
|
-
|
372
|
-
return self.api_client.call_api(
|
373
|
-
'/pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/versions/{version}/', 'GET',
|
374
|
-
path_params,
|
375
|
-
query_params,
|
376
|
-
header_params,
|
377
|
-
body=body_params,
|
378
|
-
post_params=form_params,
|
379
|
-
files=local_var_files,
|
380
|
-
response_type='CollectionVersionResponse', # noqa: E501
|
381
|
-
auth_settings=auth_settings,
|
382
|
-
async_req=local_var_params.get('async_req'),
|
383
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
384
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
385
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
386
|
-
collection_formats=collection_formats)
|