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
@@ -1,172 +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 ApiRolesApi(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 get(self, ansible_role_href, **kwargs): # noqa: E501
|
41
|
-
"""get # noqa: E501
|
42
|
-
|
43
|
-
APIView for Roles. # 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.get(ansible_role_href, async_req=True)
|
47
|
-
>>> result = thread.get()
|
48
|
-
|
49
|
-
:param async_req bool: execute request asynchronously
|
50
|
-
:param str ansible_role_href: (required)
|
51
|
-
:param int limit: Number of results to return per page.
|
52
|
-
:param int offset: The initial index from which to return the results.
|
53
|
-
:param str fields: A list of fields to include in the response.
|
54
|
-
:param str exclude_fields: A list of fields to exclude from the response.
|
55
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
56
|
-
be returned without reading/decoding response
|
57
|
-
data. Default is True.
|
58
|
-
:param _request_timeout: timeout setting for this request. If one
|
59
|
-
number provided, it will be total request
|
60
|
-
timeout. It can also be a pair (tuple) of
|
61
|
-
(connection, read) timeouts.
|
62
|
-
:return: PaginatedGalaxyRoleResponseList
|
63
|
-
If the method is called asynchronously,
|
64
|
-
returns the request thread.
|
65
|
-
"""
|
66
|
-
kwargs['_return_http_data_only'] = True
|
67
|
-
return self.get_with_http_info(ansible_role_href, **kwargs) # noqa: E501
|
68
|
-
|
69
|
-
def get_with_http_info(self, ansible_role_href, **kwargs): # noqa: E501
|
70
|
-
"""get # noqa: E501
|
71
|
-
|
72
|
-
APIView for Roles. # noqa: E501
|
73
|
-
This method makes a synchronous HTTP request by default. To make an
|
74
|
-
asynchronous HTTP request, please pass async_req=True
|
75
|
-
>>> thread = api.get_with_http_info(ansible_role_href, async_req=True)
|
76
|
-
>>> result = thread.get()
|
77
|
-
|
78
|
-
:param async_req bool: execute request asynchronously
|
79
|
-
:param str ansible_role_href: (required)
|
80
|
-
:param int limit: Number of results to return per page.
|
81
|
-
:param int offset: The initial index from which to return the results.
|
82
|
-
:param str fields: A list of fields to include in the response.
|
83
|
-
:param str exclude_fields: A list of fields to exclude from the response.
|
84
|
-
:param _return_http_data_only: response data without head status code
|
85
|
-
and headers
|
86
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
87
|
-
be returned without reading/decoding response
|
88
|
-
data. Default is True.
|
89
|
-
:param _request_timeout: timeout setting for this request. If one
|
90
|
-
number provided, it will be total request
|
91
|
-
timeout. It can also be a pair (tuple) of
|
92
|
-
(connection, read) timeouts.
|
93
|
-
:return: tuple(PaginatedGalaxyRoleResponseList, status_code(int), headers(HTTPHeaderDict))
|
94
|
-
If the method is called asynchronously,
|
95
|
-
returns the request thread.
|
96
|
-
"""
|
97
|
-
|
98
|
-
local_var_params = locals()
|
99
|
-
|
100
|
-
all_params = [
|
101
|
-
'ansible_role_href',
|
102
|
-
'limit',
|
103
|
-
'offset',
|
104
|
-
'fields',
|
105
|
-
'exclude_fields'
|
106
|
-
]
|
107
|
-
all_params.extend(
|
108
|
-
[
|
109
|
-
'async_req',
|
110
|
-
'_return_http_data_only',
|
111
|
-
'_preload_content',
|
112
|
-
'_request_timeout'
|
113
|
-
]
|
114
|
-
)
|
115
|
-
|
116
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
117
|
-
if key not in all_params:
|
118
|
-
raise ApiTypeError(
|
119
|
-
"Got an unexpected keyword argument '%s'"
|
120
|
-
" to method get" % key
|
121
|
-
)
|
122
|
-
local_var_params[key] = val
|
123
|
-
del local_var_params['kwargs']
|
124
|
-
# verify the required parameter 'ansible_role_href' is set
|
125
|
-
if self.api_client.client_side_validation and ('ansible_role_href' not in local_var_params or # noqa: E501
|
126
|
-
local_var_params['ansible_role_href'] is None): # noqa: E501
|
127
|
-
raise ApiValueError("Missing the required parameter `ansible_role_href` when calling `get`") # noqa: E501
|
128
|
-
|
129
|
-
collection_formats = {}
|
130
|
-
|
131
|
-
path_params = {}
|
132
|
-
if 'ansible_role_href' in local_var_params:
|
133
|
-
path_params['ansible_role_href'] = local_var_params['ansible_role_href'] # noqa: E501
|
134
|
-
|
135
|
-
query_params = []
|
136
|
-
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
|
137
|
-
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
|
138
|
-
if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
|
139
|
-
query_params.append(('offset', local_var_params['offset'])) # noqa: E501
|
140
|
-
if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
|
141
|
-
query_params.append(('fields', local_var_params['fields'])) # noqa: E501
|
142
|
-
if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
|
143
|
-
query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
|
144
|
-
|
145
|
-
header_params = {}
|
146
|
-
|
147
|
-
form_params = []
|
148
|
-
local_var_files = {}
|
149
|
-
|
150
|
-
body_params = None
|
151
|
-
# HTTP header `Accept`
|
152
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
153
|
-
['application/json']) # noqa: E501
|
154
|
-
|
155
|
-
# Authentication setting
|
156
|
-
auth_settings = [] # noqa: E501
|
157
|
-
|
158
|
-
return self.api_client.call_api(
|
159
|
-
'{ansible_role_href}api/v1/roles/', 'GET',
|
160
|
-
path_params,
|
161
|
-
query_params,
|
162
|
-
header_params,
|
163
|
-
body=body_params,
|
164
|
-
post_params=form_params,
|
165
|
-
files=local_var_files,
|
166
|
-
response_type='PaginatedGalaxyRoleResponseList', # noqa: E501
|
167
|
-
auth_settings=auth_settings,
|
168
|
-
async_req=local_var_params.get('async_req'),
|
169
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
170
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
171
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
172
|
-
collection_formats=collection_formats)
|
@@ -1,167 +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 CollectionImportApi(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, ansible_collection_import_href, **kwargs): # noqa: E501
|
41
|
-
"""Inspect a collection import # noqa: E501
|
42
|
-
|
43
|
-
Returns a CollectionImport 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(ansible_collection_import_href, async_req=True)
|
47
|
-
>>> result = thread.get()
|
48
|
-
|
49
|
-
:param async_req bool: execute request asynchronously
|
50
|
-
:param str ansible_collection_import_href: (required)
|
51
|
-
:param str since: Filter messages since a given timestamp
|
52
|
-
:param str fields: A list of fields to include in the response.
|
53
|
-
:param str exclude_fields: A list of fields to exclude from the response.
|
54
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
55
|
-
be returned without reading/decoding response
|
56
|
-
data. Default is True.
|
57
|
-
:param _request_timeout: timeout setting for this request. If one
|
58
|
-
number provided, it will be total request
|
59
|
-
timeout. It can also be a pair (tuple) of
|
60
|
-
(connection, read) timeouts.
|
61
|
-
:return: CollectionImportDetailResponse
|
62
|
-
If the method is called asynchronously,
|
63
|
-
returns the request thread.
|
64
|
-
"""
|
65
|
-
kwargs['_return_http_data_only'] = True
|
66
|
-
return self.read_with_http_info(ansible_collection_import_href, **kwargs) # noqa: E501
|
67
|
-
|
68
|
-
def read_with_http_info(self, ansible_collection_import_href, **kwargs): # noqa: E501
|
69
|
-
"""Inspect a collection import # noqa: E501
|
70
|
-
|
71
|
-
Returns a CollectionImport object. # noqa: E501
|
72
|
-
This method makes a synchronous HTTP request by default. To make an
|
73
|
-
asynchronous HTTP request, please pass async_req=True
|
74
|
-
>>> thread = api.read_with_http_info(ansible_collection_import_href, async_req=True)
|
75
|
-
>>> result = thread.get()
|
76
|
-
|
77
|
-
:param async_req bool: execute request asynchronously
|
78
|
-
:param str ansible_collection_import_href: (required)
|
79
|
-
:param str since: Filter messages since a given timestamp
|
80
|
-
:param str fields: A list of fields to include in the response.
|
81
|
-
:param str exclude_fields: A list of fields to exclude from the response.
|
82
|
-
:param _return_http_data_only: response data without head status code
|
83
|
-
and headers
|
84
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
85
|
-
be returned without reading/decoding response
|
86
|
-
data. Default is True.
|
87
|
-
:param _request_timeout: timeout setting for this request. If one
|
88
|
-
number provided, it will be total request
|
89
|
-
timeout. It can also be a pair (tuple) of
|
90
|
-
(connection, read) timeouts.
|
91
|
-
:return: tuple(CollectionImportDetailResponse, status_code(int), headers(HTTPHeaderDict))
|
92
|
-
If the method is called asynchronously,
|
93
|
-
returns the request thread.
|
94
|
-
"""
|
95
|
-
|
96
|
-
local_var_params = locals()
|
97
|
-
|
98
|
-
all_params = [
|
99
|
-
'ansible_collection_import_href',
|
100
|
-
'since',
|
101
|
-
'fields',
|
102
|
-
'exclude_fields'
|
103
|
-
]
|
104
|
-
all_params.extend(
|
105
|
-
[
|
106
|
-
'async_req',
|
107
|
-
'_return_http_data_only',
|
108
|
-
'_preload_content',
|
109
|
-
'_request_timeout'
|
110
|
-
]
|
111
|
-
)
|
112
|
-
|
113
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
114
|
-
if key not in all_params:
|
115
|
-
raise ApiTypeError(
|
116
|
-
"Got an unexpected keyword argument '%s'"
|
117
|
-
" to method read" % key
|
118
|
-
)
|
119
|
-
local_var_params[key] = val
|
120
|
-
del local_var_params['kwargs']
|
121
|
-
# verify the required parameter 'ansible_collection_import_href' is set
|
122
|
-
if self.api_client.client_side_validation and ('ansible_collection_import_href' not in local_var_params or # noqa: E501
|
123
|
-
local_var_params['ansible_collection_import_href'] is None): # noqa: E501
|
124
|
-
raise ApiValueError("Missing the required parameter `ansible_collection_import_href` when calling `read`") # noqa: E501
|
125
|
-
|
126
|
-
collection_formats = {}
|
127
|
-
|
128
|
-
path_params = {}
|
129
|
-
if 'ansible_collection_import_href' in local_var_params:
|
130
|
-
path_params['ansible_collection_import_href'] = local_var_params['ansible_collection_import_href'] # noqa: E501
|
131
|
-
|
132
|
-
query_params = []
|
133
|
-
if 'since' in local_var_params and local_var_params['since'] is not None: # noqa: E501
|
134
|
-
query_params.append(('since', local_var_params['since'])) # noqa: E501
|
135
|
-
if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
|
136
|
-
query_params.append(('fields', local_var_params['fields'])) # noqa: E501
|
137
|
-
if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
|
138
|
-
query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
|
139
|
-
|
140
|
-
header_params = {}
|
141
|
-
|
142
|
-
form_params = []
|
143
|
-
local_var_files = {}
|
144
|
-
|
145
|
-
body_params = None
|
146
|
-
# HTTP header `Accept`
|
147
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
148
|
-
['application/json']) # noqa: E501
|
149
|
-
|
150
|
-
# Authentication setting
|
151
|
-
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
152
|
-
|
153
|
-
return self.api_client.call_api(
|
154
|
-
'{ansible_collection_import_href}', 'GET',
|
155
|
-
path_params,
|
156
|
-
query_params,
|
157
|
-
header_params,
|
158
|
-
body=body_params,
|
159
|
-
post_params=form_params,
|
160
|
-
files=local_var_files,
|
161
|
-
response_type='CollectionImportDetailResponse', # noqa: E501
|
162
|
-
auth_settings=auth_settings,
|
163
|
-
async_req=local_var_params.get('async_req'),
|
164
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
165
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
166
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
167
|
-
collection_formats=collection_formats)
|
@@ -1,455 +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 ContentCollectionVersionsApi(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, ansible_collection_version, **kwargs): # noqa: E501
|
41
|
-
"""Create a collection version # noqa: E501
|
42
|
-
|
43
|
-
ViewSet for Ansible Collection. # 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(ansible_collection_version, async_req=True)
|
47
|
-
>>> result = thread.get()
|
48
|
-
|
49
|
-
:param async_req bool: execute request asynchronously
|
50
|
-
:param AnsibleCollectionVersion ansible_collection_version: (required)
|
51
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
52
|
-
be returned without reading/decoding response
|
53
|
-
data. Default is True.
|
54
|
-
:param _request_timeout: timeout setting for this request. If one
|
55
|
-
number provided, it will be total request
|
56
|
-
timeout. It can also be a pair (tuple) of
|
57
|
-
(connection, read) timeouts.
|
58
|
-
:return: AnsibleCollectionVersionResponse
|
59
|
-
If the method is called asynchronously,
|
60
|
-
returns the request thread.
|
61
|
-
"""
|
62
|
-
kwargs['_return_http_data_only'] = True
|
63
|
-
return self.create_with_http_info(ansible_collection_version, **kwargs) # noqa: E501
|
64
|
-
|
65
|
-
def create_with_http_info(self, ansible_collection_version, **kwargs): # noqa: E501
|
66
|
-
"""Create a collection version # noqa: E501
|
67
|
-
|
68
|
-
ViewSet for Ansible Collection. # noqa: E501
|
69
|
-
This method makes a synchronous HTTP request by default. To make an
|
70
|
-
asynchronous HTTP request, please pass async_req=True
|
71
|
-
>>> thread = api.create_with_http_info(ansible_collection_version, async_req=True)
|
72
|
-
>>> result = thread.get()
|
73
|
-
|
74
|
-
:param async_req bool: execute request asynchronously
|
75
|
-
:param AnsibleCollectionVersion ansible_collection_version: (required)
|
76
|
-
:param _return_http_data_only: response data without head status code
|
77
|
-
and headers
|
78
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
79
|
-
be returned without reading/decoding response
|
80
|
-
data. Default is True.
|
81
|
-
:param _request_timeout: timeout setting for this request. If one
|
82
|
-
number provided, it will be total request
|
83
|
-
timeout. It can also be a pair (tuple) of
|
84
|
-
(connection, read) timeouts.
|
85
|
-
:return: tuple(AnsibleCollectionVersionResponse, status_code(int), headers(HTTPHeaderDict))
|
86
|
-
If the method is called asynchronously,
|
87
|
-
returns the request thread.
|
88
|
-
"""
|
89
|
-
|
90
|
-
local_var_params = locals()
|
91
|
-
|
92
|
-
all_params = [
|
93
|
-
'ansible_collection_version'
|
94
|
-
]
|
95
|
-
all_params.extend(
|
96
|
-
[
|
97
|
-
'async_req',
|
98
|
-
'_return_http_data_only',
|
99
|
-
'_preload_content',
|
100
|
-
'_request_timeout'
|
101
|
-
]
|
102
|
-
)
|
103
|
-
|
104
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
105
|
-
if key not in all_params:
|
106
|
-
raise ApiTypeError(
|
107
|
-
"Got an unexpected keyword argument '%s'"
|
108
|
-
" to method create" % key
|
109
|
-
)
|
110
|
-
local_var_params[key] = val
|
111
|
-
del local_var_params['kwargs']
|
112
|
-
# verify the required parameter 'ansible_collection_version' is set
|
113
|
-
if self.api_client.client_side_validation and ('ansible_collection_version' not in local_var_params or # noqa: E501
|
114
|
-
local_var_params['ansible_collection_version'] is None): # noqa: E501
|
115
|
-
raise ApiValueError("Missing the required parameter `ansible_collection_version` when calling `create`") # noqa: E501
|
116
|
-
|
117
|
-
collection_formats = {}
|
118
|
-
|
119
|
-
path_params = {}
|
120
|
-
|
121
|
-
query_params = []
|
122
|
-
|
123
|
-
header_params = {}
|
124
|
-
|
125
|
-
form_params = []
|
126
|
-
local_var_files = {}
|
127
|
-
|
128
|
-
body_params = None
|
129
|
-
if 'ansible_collection_version' in local_var_params:
|
130
|
-
body_params = local_var_params['ansible_collection_version']
|
131
|
-
# HTTP header `Accept`
|
132
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
133
|
-
['application/json']) # noqa: E501
|
134
|
-
|
135
|
-
# HTTP header `Content-Type`
|
136
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
137
|
-
['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
|
138
|
-
|
139
|
-
# Authentication setting
|
140
|
-
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
141
|
-
|
142
|
-
return self.api_client.call_api(
|
143
|
-
'/pulp/api/v3/content/ansible/collection_versions/', 'POST',
|
144
|
-
path_params,
|
145
|
-
query_params,
|
146
|
-
header_params,
|
147
|
-
body=body_params,
|
148
|
-
post_params=form_params,
|
149
|
-
files=local_var_files,
|
150
|
-
response_type='AnsibleCollectionVersionResponse', # noqa: E501
|
151
|
-
auth_settings=auth_settings,
|
152
|
-
async_req=local_var_params.get('async_req'),
|
153
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
154
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
155
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
156
|
-
collection_formats=collection_formats)
|
157
|
-
|
158
|
-
def list(self, **kwargs): # noqa: E501
|
159
|
-
"""List collection versions # noqa: E501
|
160
|
-
|
161
|
-
ViewSet for Ansible Collection. # noqa: E501
|
162
|
-
This method makes a synchronous HTTP request by default. To make an
|
163
|
-
asynchronous HTTP request, please pass async_req=True
|
164
|
-
>>> thread = api.list(async_req=True)
|
165
|
-
>>> result = thread.get()
|
166
|
-
|
167
|
-
:param async_req bool: execute request asynchronously
|
168
|
-
:param bool is_highest:
|
169
|
-
:param int limit: Number of results to return per page.
|
170
|
-
:param str name:
|
171
|
-
:param str namespace:
|
172
|
-
:param int offset: The initial index from which to return the results.
|
173
|
-
:param str ordering: Which field to use when ordering the results.
|
174
|
-
:param str q:
|
175
|
-
:param str repository_version: Repository Version referenced by HREF
|
176
|
-
:param str repository_version_added: Repository Version referenced by HREF
|
177
|
-
:param str repository_version_removed: Repository Version referenced by HREF
|
178
|
-
:param str tags: Filter by comma separate list of tags that must all be matched
|
179
|
-
:param str version: Filter results where version matches value
|
180
|
-
:param str fields: A list of fields to include in the response.
|
181
|
-
:param str exclude_fields: A list of fields to exclude from the response.
|
182
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
183
|
-
be returned without reading/decoding response
|
184
|
-
data. Default is True.
|
185
|
-
:param _request_timeout: timeout setting for this request. If one
|
186
|
-
number provided, it will be total request
|
187
|
-
timeout. It can also be a pair (tuple) of
|
188
|
-
(connection, read) timeouts.
|
189
|
-
:return: PaginatedansibleCollectionVersionResponseList
|
190
|
-
If the method is called asynchronously,
|
191
|
-
returns the request thread.
|
192
|
-
"""
|
193
|
-
kwargs['_return_http_data_only'] = True
|
194
|
-
return self.list_with_http_info(**kwargs) # noqa: E501
|
195
|
-
|
196
|
-
def list_with_http_info(self, **kwargs): # noqa: E501
|
197
|
-
"""List collection versions # noqa: E501
|
198
|
-
|
199
|
-
ViewSet for Ansible Collection. # noqa: E501
|
200
|
-
This method makes a synchronous HTTP request by default. To make an
|
201
|
-
asynchronous HTTP request, please pass async_req=True
|
202
|
-
>>> thread = api.list_with_http_info(async_req=True)
|
203
|
-
>>> result = thread.get()
|
204
|
-
|
205
|
-
:param async_req bool: execute request asynchronously
|
206
|
-
:param bool is_highest:
|
207
|
-
:param int limit: Number of results to return per page.
|
208
|
-
:param str name:
|
209
|
-
:param str namespace:
|
210
|
-
:param int offset: The initial index from which to return the results.
|
211
|
-
:param str ordering: Which field to use when ordering the results.
|
212
|
-
:param str q:
|
213
|
-
:param str repository_version: Repository Version referenced by HREF
|
214
|
-
:param str repository_version_added: Repository Version referenced by HREF
|
215
|
-
:param str repository_version_removed: Repository Version referenced by HREF
|
216
|
-
:param str tags: Filter by comma separate list of tags that must all be matched
|
217
|
-
:param str version: Filter results where version matches value
|
218
|
-
:param str fields: A list of fields to include in the response.
|
219
|
-
:param str exclude_fields: A list of fields to exclude from the response.
|
220
|
-
:param _return_http_data_only: response data without head status code
|
221
|
-
and headers
|
222
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
223
|
-
be returned without reading/decoding response
|
224
|
-
data. Default is True.
|
225
|
-
:param _request_timeout: timeout setting for this request. If one
|
226
|
-
number provided, it will be total request
|
227
|
-
timeout. It can also be a pair (tuple) of
|
228
|
-
(connection, read) timeouts.
|
229
|
-
:return: tuple(PaginatedansibleCollectionVersionResponseList, status_code(int), headers(HTTPHeaderDict))
|
230
|
-
If the method is called asynchronously,
|
231
|
-
returns the request thread.
|
232
|
-
"""
|
233
|
-
|
234
|
-
local_var_params = locals()
|
235
|
-
|
236
|
-
all_params = [
|
237
|
-
'is_highest',
|
238
|
-
'limit',
|
239
|
-
'name',
|
240
|
-
'namespace',
|
241
|
-
'offset',
|
242
|
-
'ordering',
|
243
|
-
'q',
|
244
|
-
'repository_version',
|
245
|
-
'repository_version_added',
|
246
|
-
'repository_version_removed',
|
247
|
-
'tags',
|
248
|
-
'version',
|
249
|
-
'fields',
|
250
|
-
'exclude_fields'
|
251
|
-
]
|
252
|
-
all_params.extend(
|
253
|
-
[
|
254
|
-
'async_req',
|
255
|
-
'_return_http_data_only',
|
256
|
-
'_preload_content',
|
257
|
-
'_request_timeout'
|
258
|
-
]
|
259
|
-
)
|
260
|
-
|
261
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
262
|
-
if key not in all_params:
|
263
|
-
raise ApiTypeError(
|
264
|
-
"Got an unexpected keyword argument '%s'"
|
265
|
-
" to method list" % key
|
266
|
-
)
|
267
|
-
local_var_params[key] = val
|
268
|
-
del local_var_params['kwargs']
|
269
|
-
|
270
|
-
collection_formats = {}
|
271
|
-
|
272
|
-
path_params = {}
|
273
|
-
|
274
|
-
query_params = []
|
275
|
-
if 'is_highest' in local_var_params and local_var_params['is_highest'] is not None: # noqa: E501
|
276
|
-
query_params.append(('is_highest', local_var_params['is_highest'])) # noqa: E501
|
277
|
-
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
|
278
|
-
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
|
279
|
-
if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
|
280
|
-
query_params.append(('name', local_var_params['name'])) # noqa: E501
|
281
|
-
if 'namespace' in local_var_params and local_var_params['namespace'] is not None: # noqa: E501
|
282
|
-
query_params.append(('namespace', local_var_params['namespace'])) # noqa: E501
|
283
|
-
if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
|
284
|
-
query_params.append(('offset', local_var_params['offset'])) # noqa: E501
|
285
|
-
if 'ordering' in local_var_params and local_var_params['ordering'] is not None: # noqa: E501
|
286
|
-
query_params.append(('ordering', local_var_params['ordering'])) # noqa: E501
|
287
|
-
if 'q' in local_var_params and local_var_params['q'] is not None: # noqa: E501
|
288
|
-
query_params.append(('q', local_var_params['q'])) # noqa: E501
|
289
|
-
if 'repository_version' in local_var_params and local_var_params['repository_version'] is not None: # noqa: E501
|
290
|
-
query_params.append(('repository_version', local_var_params['repository_version'])) # noqa: E501
|
291
|
-
if 'repository_version_added' in local_var_params and local_var_params['repository_version_added'] is not None: # noqa: E501
|
292
|
-
query_params.append(('repository_version_added', local_var_params['repository_version_added'])) # noqa: E501
|
293
|
-
if 'repository_version_removed' in local_var_params and local_var_params['repository_version_removed'] is not None: # noqa: E501
|
294
|
-
query_params.append(('repository_version_removed', local_var_params['repository_version_removed'])) # noqa: E501
|
295
|
-
if 'tags' in local_var_params and local_var_params['tags'] is not None: # noqa: E501
|
296
|
-
query_params.append(('tags', local_var_params['tags'])) # noqa: E501
|
297
|
-
if 'version' in local_var_params and local_var_params['version'] is not None: # noqa: E501
|
298
|
-
query_params.append(('version', local_var_params['version'])) # noqa: E501
|
299
|
-
if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
|
300
|
-
query_params.append(('fields', local_var_params['fields'])) # noqa: E501
|
301
|
-
if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
|
302
|
-
query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
|
303
|
-
|
304
|
-
header_params = {}
|
305
|
-
|
306
|
-
form_params = []
|
307
|
-
local_var_files = {}
|
308
|
-
|
309
|
-
body_params = None
|
310
|
-
# HTTP header `Accept`
|
311
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
312
|
-
['application/json']) # noqa: E501
|
313
|
-
|
314
|
-
# Authentication setting
|
315
|
-
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
316
|
-
|
317
|
-
return self.api_client.call_api(
|
318
|
-
'/pulp/api/v3/content/ansible/collection_versions/', 'GET',
|
319
|
-
path_params,
|
320
|
-
query_params,
|
321
|
-
header_params,
|
322
|
-
body=body_params,
|
323
|
-
post_params=form_params,
|
324
|
-
files=local_var_files,
|
325
|
-
response_type='PaginatedansibleCollectionVersionResponseList', # noqa: E501
|
326
|
-
auth_settings=auth_settings,
|
327
|
-
async_req=local_var_params.get('async_req'),
|
328
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
329
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
330
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
331
|
-
collection_formats=collection_formats)
|
332
|
-
|
333
|
-
def read(self, ansible_collection_version_href, **kwargs): # noqa: E501
|
334
|
-
"""Inspect a collection version # noqa: E501
|
335
|
-
|
336
|
-
ViewSet for Ansible Collection. # noqa: E501
|
337
|
-
This method makes a synchronous HTTP request by default. To make an
|
338
|
-
asynchronous HTTP request, please pass async_req=True
|
339
|
-
>>> thread = api.read(ansible_collection_version_href, async_req=True)
|
340
|
-
>>> result = thread.get()
|
341
|
-
|
342
|
-
:param async_req bool: execute request asynchronously
|
343
|
-
:param str ansible_collection_version_href: (required)
|
344
|
-
:param str fields: A list of fields to include in the response.
|
345
|
-
:param str exclude_fields: A list of fields to exclude from the response.
|
346
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
347
|
-
be returned without reading/decoding response
|
348
|
-
data. Default is True.
|
349
|
-
:param _request_timeout: timeout setting for this request. If one
|
350
|
-
number provided, it will be total request
|
351
|
-
timeout. It can also be a pair (tuple) of
|
352
|
-
(connection, read) timeouts.
|
353
|
-
:return: AnsibleCollectionVersionResponse
|
354
|
-
If the method is called asynchronously,
|
355
|
-
returns the request thread.
|
356
|
-
"""
|
357
|
-
kwargs['_return_http_data_only'] = True
|
358
|
-
return self.read_with_http_info(ansible_collection_version_href, **kwargs) # noqa: E501
|
359
|
-
|
360
|
-
def read_with_http_info(self, ansible_collection_version_href, **kwargs): # noqa: E501
|
361
|
-
"""Inspect a collection version # noqa: E501
|
362
|
-
|
363
|
-
ViewSet for Ansible Collection. # noqa: E501
|
364
|
-
This method makes a synchronous HTTP request by default. To make an
|
365
|
-
asynchronous HTTP request, please pass async_req=True
|
366
|
-
>>> thread = api.read_with_http_info(ansible_collection_version_href, async_req=True)
|
367
|
-
>>> result = thread.get()
|
368
|
-
|
369
|
-
:param async_req bool: execute request asynchronously
|
370
|
-
:param str ansible_collection_version_href: (required)
|
371
|
-
:param str fields: A list of fields to include in the response.
|
372
|
-
:param str exclude_fields: A list of fields to exclude from the response.
|
373
|
-
:param _return_http_data_only: response data without head status code
|
374
|
-
and headers
|
375
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
376
|
-
be returned without reading/decoding response
|
377
|
-
data. Default is True.
|
378
|
-
:param _request_timeout: timeout setting for this request. If one
|
379
|
-
number provided, it will be total request
|
380
|
-
timeout. It can also be a pair (tuple) of
|
381
|
-
(connection, read) timeouts.
|
382
|
-
:return: tuple(AnsibleCollectionVersionResponse, status_code(int), headers(HTTPHeaderDict))
|
383
|
-
If the method is called asynchronously,
|
384
|
-
returns the request thread.
|
385
|
-
"""
|
386
|
-
|
387
|
-
local_var_params = locals()
|
388
|
-
|
389
|
-
all_params = [
|
390
|
-
'ansible_collection_version_href',
|
391
|
-
'fields',
|
392
|
-
'exclude_fields'
|
393
|
-
]
|
394
|
-
all_params.extend(
|
395
|
-
[
|
396
|
-
'async_req',
|
397
|
-
'_return_http_data_only',
|
398
|
-
'_preload_content',
|
399
|
-
'_request_timeout'
|
400
|
-
]
|
401
|
-
)
|
402
|
-
|
403
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
404
|
-
if key not in all_params:
|
405
|
-
raise ApiTypeError(
|
406
|
-
"Got an unexpected keyword argument '%s'"
|
407
|
-
" to method read" % key
|
408
|
-
)
|
409
|
-
local_var_params[key] = val
|
410
|
-
del local_var_params['kwargs']
|
411
|
-
# verify the required parameter 'ansible_collection_version_href' is set
|
412
|
-
if self.api_client.client_side_validation and ('ansible_collection_version_href' not in local_var_params or # noqa: E501
|
413
|
-
local_var_params['ansible_collection_version_href'] is None): # noqa: E501
|
414
|
-
raise ApiValueError("Missing the required parameter `ansible_collection_version_href` when calling `read`") # noqa: E501
|
415
|
-
|
416
|
-
collection_formats = {}
|
417
|
-
|
418
|
-
path_params = {}
|
419
|
-
if 'ansible_collection_version_href' in local_var_params:
|
420
|
-
path_params['ansible_collection_version_href'] = local_var_params['ansible_collection_version_href'] # noqa: E501
|
421
|
-
|
422
|
-
query_params = []
|
423
|
-
if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
|
424
|
-
query_params.append(('fields', local_var_params['fields'])) # noqa: E501
|
425
|
-
if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
|
426
|
-
query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
|
427
|
-
|
428
|
-
header_params = {}
|
429
|
-
|
430
|
-
form_params = []
|
431
|
-
local_var_files = {}
|
432
|
-
|
433
|
-
body_params = None
|
434
|
-
# HTTP header `Accept`
|
435
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
436
|
-
['application/json']) # noqa: E501
|
437
|
-
|
438
|
-
# Authentication setting
|
439
|
-
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
440
|
-
|
441
|
-
return self.api_client.call_api(
|
442
|
-
'{ansible_collection_version_href}', 'GET',
|
443
|
-
path_params,
|
444
|
-
query_params,
|
445
|
-
header_params,
|
446
|
-
body=body_params,
|
447
|
-
post_params=form_params,
|
448
|
-
files=local_var_files,
|
449
|
-
response_type='AnsibleCollectionVersionResponse', # noqa: E501
|
450
|
-
auth_settings=auth_settings,
|
451
|
-
async_req=local_var_params.get('async_req'),
|
452
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
453
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
454
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
455
|
-
collection_formats=collection_formats)
|