pulp_ansible_client 0.23.1 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/docs/AnsibleAnsibleCollectionDeprecated.md +12 -11
- data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +18 -17
- data/docs/AnsibleAnsibleDistribution.md +18 -17
- data/docs/AnsibleAnsibleDistributionResponse.md +24 -23
- data/docs/AnsibleAnsibleNamespaceMetadata.md +20 -19
- data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +26 -25
- data/docs/AnsibleAnsibleRepository.md +22 -21
- data/docs/AnsibleAnsibleRepositoryResponse.md +36 -35
- data/docs/AnsibleCollectionRemote.md +58 -57
- data/docs/AnsibleCollectionRemoteResponse.md +58 -57
- data/docs/AnsibleCollectionRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/AnsibleCollectionResponse.md +10 -9
- data/docs/AnsibleCollectionVersionMark.md +10 -9
- data/docs/AnsibleCollectionVersionMarkResponse.md +14 -13
- data/docs/AnsibleCollectionVersionResponse.md +64 -63
- data/docs/AnsibleCollectionVersionSignatureResponse.md +20 -19
- data/docs/AnsibleCollectionsApi.md +228 -110
- data/docs/AnsibleCopyApi.md +30 -14
- data/docs/AnsibleGitRemote.md +50 -49
- data/docs/AnsibleGitRemoteResponse.md +50 -49
- data/docs/AnsibleRepositoryMark.md +10 -9
- data/docs/AnsibleRepositoryRebuild.md +12 -11
- data/docs/AnsibleRepositorySignature.md +10 -9
- data/docs/AnsibleRepositorySyncURL.md +12 -11
- data/docs/AnsibleRole.md +16 -15
- data/docs/AnsibleRoleRemote.md +48 -47
- data/docs/AnsibleRoleRemoteResponse.md +48 -47
- data/docs/AnsibleRoleResponse.md +22 -21
- data/docs/AnsibleTagResponse.md +8 -7
- data/docs/ApiPluginAnsibleSearchCollectionVersionsApi.md +90 -56
- data/docs/ApiRolesApi.md +35 -18
- data/docs/ArtifactRefResponse.md +12 -11
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ClientConfigurationResponse.md +8 -7
- data/docs/CollectionImportApi.md +34 -18
- data/docs/CollectionImportDetailResponse.md +22 -21
- data/docs/CollectionMetadataResponse.md +26 -25
- data/docs/CollectionNamespaceResponse.md +10 -9
- data/docs/CollectionRefResponse.md +12 -11
- data/docs/CollectionResponse.md +24 -23
- data/docs/CollectionSummaryResponse.md +26 -25
- data/docs/CollectionVersionCopyMove.md +12 -11
- data/docs/CollectionVersionDocsResponse.md +8 -7
- data/docs/CollectionVersionListResponse.md +18 -17
- data/docs/CollectionVersionResponse.md +40 -39
- data/docs/CollectionVersionSearchList.md +16 -15
- data/docs/CollectionVersionSearchListResponse.md +20 -19
- data/docs/CollectionVersionSignatureResponse.md +14 -13
- data/docs/ContentCollectionDeprecationsApi.md +107 -57
- data/docs/ContentCollectionMarksApi.md +112 -62
- data/docs/ContentCollectionSignaturesApi.md +118 -68
- data/docs/ContentCollectionVersionsApi.md +119 -69
- data/docs/ContentNamespacesApi.md +132 -81
- data/docs/ContentRolesApi.md +110 -60
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/Copy.md +8 -7
- data/docs/DistributionsAnsibleApi.md +385 -182
- data/docs/GalaxyRoleResponse.md +12 -11
- data/docs/GalaxyRoleVersionResponse.md +10 -9
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NamespaceLink.md +10 -9
- data/docs/NamespaceLinkResponse.md +10 -9
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/PaginatedCollectionResponseList.md +12 -11
- data/docs/PaginatedCollectionResponseListLinks.md +14 -13
- data/docs/PaginatedCollectionResponseListMeta.md +8 -7
- data/docs/PaginatedCollectionVersionListResponseList.md +12 -11
- data/docs/PaginatedCollectionVersionSearchListResponseList.md +12 -11
- data/docs/PaginatedGalaxyRoleResponseList.md +14 -13
- data/docs/PaginatedGalaxyRoleVersionResponseList.md +14 -13
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedTagResponseList.md +14 -13
- data/docs/PaginatedansibleAnsibleCollectionDeprecatedResponseList.md +14 -13
- data/docs/PaginatedansibleAnsibleDistributionResponseList.md +14 -13
- data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +14 -13
- data/docs/PaginatedansibleAnsibleRepositoryResponseList.md +14 -13
- data/docs/PaginatedansibleCollectionRemoteResponseList.md +14 -13
- data/docs/PaginatedansibleCollectionResponseList.md +14 -13
- data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +14 -13
- data/docs/PaginatedansibleCollectionVersionResponseList.md +14 -13
- data/docs/PaginatedansibleCollectionVersionSignatureResponseList.md +14 -13
- data/docs/PaginatedansibleGitRemoteResponseList.md +14 -13
- data/docs/PaginatedansibleRoleRemoteResponseList.md +14 -13
- data/docs/PaginatedansibleRoleResponseList.md +14 -13
- data/docs/PatchedCollection.md +8 -7
- data/docs/PatchedansibleAnsibleDistribution.md +18 -17
- data/docs/PatchedansibleAnsibleRepository.md +22 -21
- data/docs/PatchedansibleCollectionRemote.md +58 -57
- data/docs/PatchedansibleGitRemote.md +50 -49
- data/docs/PatchedansibleRoleRemote.md +48 -47
- data/docs/PolicyEnum.md +4 -5
- data/docs/PulpAnsibleApiApi.md +32 -15
- data/docs/PulpAnsibleApiV3Api.md +33 -16
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +33 -16
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +33 -16
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +45 -28
- data/docs/PulpAnsibleApiV3CollectionsApi.md +139 -68
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +119 -66
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +36 -19
- data/docs/PulpAnsibleApiV3NamespacesApi.md +99 -64
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +33 -16
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +46 -29
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +34 -17
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +34 -17
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +34 -17
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +143 -72
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +122 -69
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +37 -20
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +206 -117
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +134 -67
- data/docs/PulpAnsibleDefaultApiApi.md +25 -7
- data/docs/PulpAnsibleDefaultApiV3Api.md +26 -8
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +33 -16
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +26 -8
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +44 -27
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +135 -64
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +116 -63
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +35 -18
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +97 -62
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +26 -8
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +45 -28
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +33 -16
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +33 -16
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +33 -16
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +139 -68
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +119 -66
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +36 -19
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +201 -112
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +88 -54
- data/docs/PulpAnsibleTagsApi.md +34 -18
- data/docs/RemotesCollectionApi.md +394 -189
- data/docs/RemotesGitApi.md +389 -184
- data/docs/RemotesRoleApi.md +389 -184
- data/docs/Repair.md +8 -7
- data/docs/RepoMetadataResponse.md +8 -7
- data/docs/RepositoriesAnsibleApi.md +617 -271
- data/docs/RepositoriesAnsibleVersionsApi.md +180 -92
- data/docs/Repository.md +16 -15
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositoryResponse.md +28 -27
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/TagResponse.md +10 -9
- data/docs/UnpaginatedCollectionVersionResponse.md +36 -35
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/docs/VersionsApi.md +35 -18
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +48 -32
- data/lib/pulp_ansible_client/api/ansible_copy_api.rb +10 -6
- data/lib/pulp_ansible_client/api/api_plugin_ansible_search_collection_versions_api.rb +15 -10
- data/lib/pulp_ansible_client/api/api_roles_api.rb +6 -5
- data/lib/pulp_ansible_client/api/collection_import_api.rb +6 -5
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -14
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +20 -14
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +20 -14
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +26 -20
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +16 -13
- data/lib/pulp_ansible_client/api/content_roles_api.rb +20 -14
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +89 -56
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +5 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +5 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +25 -18
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +16 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +11 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +5 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +25 -18
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +16 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +43 -32
- data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +37 -21
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_api.rb +5 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +5 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collection_versions_all_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +25 -18
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +16 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +11 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +5 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +25 -18
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +16 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +43 -32
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +15 -10
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -5
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +104 -68
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +104 -68
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +104 -68
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +161 -96
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +49 -35
- data/lib/pulp_ansible_client/api/versions_api.rb +6 -5
- data/lib/pulp_ansible_client/api_client.rb +137 -102
- data/lib/pulp_ansible_client/api_error.rb +2 -1
- data/lib/pulp_ansible_client/configuration.rb +162 -21
- data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated.rb +34 -22
- data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +36 -24
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +34 -22
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +35 -23
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +47 -25
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +52 -26
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +33 -23
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +37 -26
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +77 -47
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +80 -50
- data/lib/pulp_ansible_client/models/{ansible_collection_remote_response_hidden_fields.rb → ansible_collection_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_ansible_client/models/ansible_collection_response.rb +34 -22
- data/lib/pulp_ansible_client/models/ansible_collection_version_mark.rb +34 -22
- data/lib/pulp_ansible_client/models/ansible_collection_version_mark_response.rb +35 -23
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +81 -43
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +34 -24
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +256 -240
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +200 -188
- data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +35 -23
- data/lib/pulp_ansible_client/models/ansible_repository_rebuild.rb +30 -22
- data/lib/pulp_ansible_client/models/ansible_repository_signature.rb +35 -23
- data/lib/pulp_ansible_client/models/ansible_repository_sync_url.rb +30 -22
- data/lib/pulp_ansible_client/models/ansible_role.rb +38 -22
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +77 -43
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +80 -46
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +50 -34
- data/lib/pulp_ansible_client/models/ansible_tag_response.rb +30 -22
- data/lib/pulp_ansible_client/models/artifact_ref_response.rb +36 -22
- data/lib/pulp_ansible_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_ansible_client/models/client_configuration_response.rb +32 -22
- data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +46 -26
- data/lib/pulp_ansible_client/models/collection_metadata_response.rb +36 -24
- data/lib/pulp_ansible_client/models/collection_namespace_response.rb +34 -22
- data/lib/pulp_ansible_client/models/collection_ref_response.rb +34 -22
- data/lib/pulp_ansible_client/models/collection_response.rb +36 -25
- data/lib/pulp_ansible_client/models/collection_summary_response.rb +50 -28
- data/lib/pulp_ansible_client/models/collection_version_copy_move.rb +34 -22
- data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +32 -22
- data/lib/pulp_ansible_client/models/collection_version_list_response.rb +38 -24
- data/lib/pulp_ansible_client/models/collection_version_response.rb +40 -24
- data/lib/pulp_ansible_client/models/collection_version_search_list.rb +40 -22
- data/lib/pulp_ansible_client/models/collection_version_search_list_response.rb +42 -22
- data/lib/pulp_ansible_client/models/collection_version_signature_response.rb +33 -23
- data/lib/pulp_ansible_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_ansible_client/models/copy.rb +32 -22
- data/lib/pulp_ansible_client/models/galaxy_role_response.rb +34 -22
- data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +32 -22
- data/lib/pulp_ansible_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_ansible_client/models/namespace_link.rb +34 -22
- data/lib/pulp_ansible_client/models/namespace_link_response.rb +34 -22
- data/lib/pulp_ansible_client/models/nested_role.rb +32 -22
- data/lib/pulp_ansible_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_ansible_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_ansible_client/models/paginated_collection_response_list.rb +30 -22
- data/lib/pulp_ansible_client/models/paginated_collection_response_list_links.rb +30 -22
- data/lib/pulp_ansible_client/models/paginated_collection_response_list_meta.rb +30 -22
- data/lib/pulp_ansible_client/models/paginated_collection_version_list_response_list.rb +30 -22
- data/lib/pulp_ansible_client/models/paginated_collection_version_search_list_response_list.rb +30 -22
- data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_collection_deprecated_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/patched_collection.rb +30 -22
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +40 -24
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +36 -24
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +83 -49
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +257 -237
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +83 -45
- data/lib/pulp_ansible_client/models/policy_enum.rb +8 -5
- data/lib/pulp_ansible_client/models/repair.rb +30 -22
- data/lib/pulp_ansible_client/models/repo_metadata_response.rb +33 -23
- data/lib/pulp_ansible_client/models/repository.rb +32 -22
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_ansible_client/models/repository_response.rb +34 -24
- data/lib/pulp_ansible_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_ansible_client/models/set_label.rb +34 -22
- data/lib/pulp_ansible_client/models/set_label_response.rb +34 -22
- data/lib/pulp_ansible_client/models/tag_response.rb +30 -22
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +40 -24
- data/lib/pulp_ansible_client/models/unset_label.rb +32 -22
- data/lib/pulp_ansible_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_ansible_client/version.rb +2 -2
- data/lib/pulp_ansible_client.rb +2 -6
- data/pulp_ansible_client.gemspec +9 -6
- data/spec/api/ansible_collections_api_spec.rb +8 -8
- data/spec/api/ansible_copy_api_spec.rb +2 -2
- data/spec/api/api_plugin_ansible_search_collection_versions_api_spec.rb +3 -3
- data/spec/api/api_roles_api_spec.rb +2 -2
- data/spec/api/collection_import_api_spec.rb +2 -2
- data/spec/api/content_collection_deprecations_api_spec.rb +4 -4
- data/spec/api/content_collection_marks_api_spec.rb +4 -4
- data/spec/api/content_collection_signatures_api_spec.rb +4 -4
- data/spec/api/content_collection_versions_api_spec.rb +6 -6
- data/spec/api/content_namespaces_api_spec.rb +4 -4
- data/spec/api/content_roles_api_spec.rb +4 -4
- data/spec/api/distributions_ansible_api_spec.rb +13 -13
- data/spec/api/pulp_ansible_api_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +5 -5
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +4 -4
- data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +5 -5
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -4
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +7 -7
- data/spec/api/pulp_ansible_artifacts_collections_v3_api_spec.rb +5 -5
- data/spec/api/pulp_ansible_default_api_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_collection_versions_all_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +5 -5
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +4 -4
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +5 -5
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -4
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +7 -7
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_tags_api_spec.rb +2 -2
- data/spec/api/remotes_collection_api_spec.rb +20 -19
- data/spec/api/remotes_git_api_spec.rb +20 -19
- data/spec/api/remotes_role_api_spec.rb +20 -19
- data/spec/api/repositories_ansible_api_spec.rb +21 -21
- data/spec/api/repositories_ansible_versions_api_spec.rb +13 -12
- data/spec/api/versions_api_spec.rb +2 -2
- data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +12 -17
- data/spec/models/ansible_ansible_collection_deprecated_spec.rb +9 -14
- data/spec/models/ansible_ansible_distribution_response_spec.rb +15 -20
- data/spec/models/ansible_ansible_distribution_spec.rb +12 -17
- data/spec/models/ansible_ansible_namespace_metadata_response_spec.rb +16 -21
- data/spec/models/ansible_ansible_namespace_metadata_spec.rb +13 -18
- data/spec/models/ansible_ansible_repository_response_spec.rb +21 -26
- data/spec/models/ansible_ansible_repository_spec.rb +14 -19
- data/spec/models/{ansible_collection_remote_response_hidden_fields_spec.rb → ansible_collection_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/ansible_collection_remote_response_spec.rb +32 -37
- data/spec/models/ansible_collection_remote_spec.rb +32 -37
- data/spec/models/ansible_collection_response_spec.rb +8 -13
- data/spec/models/ansible_collection_version_mark_response_spec.rb +10 -15
- data/spec/models/ansible_collection_version_mark_spec.rb +8 -13
- data/spec/models/ansible_collection_version_response_spec.rb +39 -44
- data/spec/models/ansible_collection_version_signature_response_spec.rb +13 -18
- data/spec/models/ansible_git_remote_response_spec.rb +47 -52
- data/spec/models/ansible_git_remote_spec.rb +47 -52
- data/spec/models/ansible_repository_mark_spec.rb +8 -13
- data/spec/models/ansible_repository_rebuild_spec.rb +9 -14
- data/spec/models/ansible_repository_signature_spec.rb +8 -13
- data/spec/models/ansible_repository_sync_url_spec.rb +9 -14
- data/spec/models/ansible_role_remote_response_spec.rb +27 -32
- data/spec/models/ansible_role_remote_spec.rb +27 -32
- data/spec/models/ansible_role_response_spec.rb +18 -23
- data/spec/models/ansible_role_spec.rb +11 -16
- data/spec/models/ansible_tag_response_spec.rb +7 -12
- data/spec/models/artifact_ref_response_spec.rb +9 -14
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/client_configuration_response_spec.rb +7 -12
- data/spec/models/collection_import_detail_response_spec.rb +14 -19
- data/spec/models/collection_metadata_response_spec.rb +16 -21
- data/spec/models/collection_namespace_response_spec.rb +8 -13
- data/spec/models/collection_ref_response_spec.rb +9 -14
- data/spec/models/collection_response_spec.rb +15 -20
- data/spec/models/collection_summary_response_spec.rb +16 -21
- data/spec/models/collection_version_copy_move_spec.rb +9 -14
- data/spec/models/collection_version_docs_response_spec.rb +7 -12
- data/spec/models/collection_version_list_response_spec.rb +12 -17
- data/spec/models/collection_version_response_spec.rb +23 -28
- data/spec/models/collection_version_search_list_response_spec.rb +13 -18
- data/spec/models/collection_version_search_list_spec.rb +11 -16
- data/spec/models/collection_version_signature_response_spec.rb +10 -15
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/copy_spec.rb +7 -12
- data/spec/models/galaxy_role_response_spec.rb +9 -14
- data/spec/models/galaxy_role_version_response_spec.rb +8 -13
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/namespace_link_response_spec.rb +8 -13
- data/spec/models/namespace_link_spec.rb +8 -13
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/paginated_collection_response_list_links_spec.rb +10 -15
- data/spec/models/paginated_collection_response_list_meta_spec.rb +7 -12
- data/spec/models/paginated_collection_response_list_spec.rb +9 -14
- data/spec/models/paginated_collection_version_list_response_list_spec.rb +9 -14
- data/spec/models/paginated_collection_version_search_list_response_list_spec.rb +9 -14
- data/spec/models/paginated_galaxy_role_response_list_spec.rb +10 -15
- data/spec/models/paginated_galaxy_role_version_response_list_spec.rb +10 -15
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginated_tag_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_ansible_collection_deprecated_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_ansible_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_ansible_namespace_metadata_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_ansible_repository_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_collection_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_collection_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_collection_version_mark_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_collection_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_collection_version_signature_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_git_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_role_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_role_response_list_spec.rb +10 -15
- data/spec/models/patched_collection_spec.rb +7 -12
- data/spec/models/patchedansible_ansible_distribution_spec.rb +12 -17
- data/spec/models/patchedansible_ansible_repository_spec.rb +14 -19
- data/spec/models/patchedansible_collection_remote_spec.rb +32 -37
- data/spec/models/patchedansible_git_remote_spec.rb +47 -52
- data/spec/models/patchedansible_role_remote_spec.rb +27 -32
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repo_metadata_response_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_response_spec.rb +17 -22
- data/spec/models/repository_spec.rb +11 -16
- data/spec/models/repository_version_response_spec.rb +14 -19
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/tag_response_spec.rb +8 -13
- data/spec/models/unpaginated_collection_version_response_spec.rb +21 -26
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +168 -160
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +0 -19
- data/docs/AnsibleCollectionVersion.md +0 -31
- data/docs/AnsibleCollectionVersionSignature.md +0 -25
- data/docs/CollectionOneShot.md +0 -25
- data/docs/PatchedansibleAnsibleNamespaceMetadata.md +0 -29
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +0 -365
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +0 -268
- data/lib/pulp_ansible_client/models/collection_one_shot.rb +0 -313
- data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +0 -350
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/ansible_collection_version_signature_spec.rb +0 -65
- data/spec/models/ansible_collection_version_spec.rb +0 -83
- data/spec/models/collection_one_shot_spec.rb +0 -65
- data/spec/models/patchedansible_ansible_namespace_metadata_spec.rb +0 -77
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module PulpAnsibleClient
|
16
17
|
# Configuration settings for the ansible-galaxy client.
|
@@ -24,6 +25,11 @@ module PulpAnsibleClient
|
|
24
25
|
}
|
25
26
|
end
|
26
27
|
|
28
|
+
# Returns all the JSON keys this model knows about
|
29
|
+
def self.acceptable_attributes
|
30
|
+
attribute_map.values
|
31
|
+
end
|
32
|
+
|
27
33
|
# Attribute type mapping.
|
28
34
|
def self.openapi_types
|
29
35
|
{
|
@@ -55,12 +61,15 @@ module PulpAnsibleClient
|
|
55
61
|
|
56
62
|
if attributes.key?(:'default_distribution_path')
|
57
63
|
self.default_distribution_path = attributes[:'default_distribution_path']
|
64
|
+
else
|
65
|
+
self.default_distribution_path = nil
|
58
66
|
end
|
59
67
|
end
|
60
68
|
|
61
69
|
# Show invalid properties with the reasons. Usually used together with valid?
|
62
70
|
# @return Array for valid properties with the reasons
|
63
71
|
def list_invalid_properties
|
72
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
64
73
|
invalid_properties = Array.new
|
65
74
|
invalid_properties
|
66
75
|
end
|
@@ -68,6 +77,7 @@ module PulpAnsibleClient
|
|
68
77
|
# Check to see if the all the properties in the model are valid
|
69
78
|
# @return true if the model is valid
|
70
79
|
def valid?
|
80
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
71
81
|
true
|
72
82
|
end
|
73
83
|
|
@@ -95,37 +105,33 @@ module PulpAnsibleClient
|
|
95
105
|
# @param [Hash] attributes Model attributes in the form of hash
|
96
106
|
# @return [Object] Returns the model itself
|
97
107
|
def self.build_from_hash(attributes)
|
98
|
-
new.build_from_hash(attributes)
|
99
|
-
end
|
100
|
-
|
101
|
-
# Builds the object from hash
|
102
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
-
# @return [Object] Returns the model itself
|
104
|
-
def build_from_hash(attributes)
|
105
108
|
return nil unless attributes.is_a?(Hash)
|
106
|
-
|
107
|
-
|
109
|
+
attributes = attributes.transform_keys(&:to_sym)
|
110
|
+
transformed_hash = {}
|
111
|
+
openapi_types.each_pair do |key, type|
|
112
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
113
|
+
transformed_hash["#{key}"] = nil
|
114
|
+
elsif type =~ /\AArray<(.*)>/i
|
108
115
|
# check to ensure the input is an array given that the attribute
|
109
116
|
# is documented as an array but the input is not
|
110
|
-
if attributes[
|
111
|
-
|
117
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
118
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
112
119
|
end
|
113
|
-
elsif !attributes[
|
114
|
-
|
115
|
-
end
|
120
|
+
elsif !attributes[attribute_map[key]].nil?
|
121
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
122
|
+
end
|
116
123
|
end
|
117
|
-
|
118
|
-
self
|
124
|
+
new(transformed_hash)
|
119
125
|
end
|
120
126
|
|
121
127
|
# Deserializes the data based on type
|
122
128
|
# @param string type Data type
|
123
129
|
# @param string value Value to be deserialized
|
124
130
|
# @return [Object] Deserialized data
|
125
|
-
def _deserialize(type, value)
|
131
|
+
def self._deserialize(type, value)
|
126
132
|
case type.to_sym
|
127
|
-
when :
|
128
|
-
|
133
|
+
when :Time
|
134
|
+
Time.parse(value)
|
129
135
|
when :Date
|
130
136
|
Date.parse(value)
|
131
137
|
when :String
|
@@ -155,7 +161,9 @@ module PulpAnsibleClient
|
|
155
161
|
end
|
156
162
|
end
|
157
163
|
else # model
|
158
|
-
|
164
|
+
# models (e.g. Pet) or oneOf
|
165
|
+
klass = PulpAnsibleClient.const_get(type)
|
166
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
159
167
|
end
|
160
168
|
end
|
161
169
|
|
@@ -181,7 +189,7 @@ module PulpAnsibleClient
|
|
181
189
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
182
190
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
183
191
|
end
|
184
|
-
|
192
|
+
|
185
193
|
hash[param] = _to_hash(value)
|
186
194
|
end
|
187
195
|
hash
|
@@ -204,5 +212,7 @@ module PulpAnsibleClient
|
|
204
212
|
value
|
205
213
|
end
|
206
214
|
end
|
215
|
+
|
207
216
|
end
|
217
|
+
|
208
218
|
end
|
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module PulpAnsibleClient
|
16
17
|
# A serializer for a CollectionImport detail view.
|
@@ -45,15 +46,20 @@ module PulpAnsibleClient
|
|
45
46
|
}
|
46
47
|
end
|
47
48
|
|
49
|
+
# Returns all the JSON keys this model knows about
|
50
|
+
def self.acceptable_attributes
|
51
|
+
attribute_map.values
|
52
|
+
end
|
53
|
+
|
48
54
|
# Attribute type mapping.
|
49
55
|
def self.openapi_types
|
50
56
|
{
|
51
57
|
:'id' => :'String',
|
52
58
|
:'state' => :'String',
|
53
|
-
:'created_at' => :'
|
54
|
-
:'updated_at' => :'
|
55
|
-
:'started_at' => :'
|
56
|
-
:'finished_at' => :'
|
59
|
+
:'created_at' => :'Time',
|
60
|
+
:'updated_at' => :'Time',
|
61
|
+
:'started_at' => :'Time',
|
62
|
+
:'finished_at' => :'Time',
|
57
63
|
:'error' => :'Object',
|
58
64
|
:'messages' => :'Object'
|
59
65
|
}
|
@@ -82,22 +88,32 @@ module PulpAnsibleClient
|
|
82
88
|
|
83
89
|
if attributes.key?(:'id')
|
84
90
|
self.id = attributes[:'id']
|
91
|
+
else
|
92
|
+
self.id = nil
|
85
93
|
end
|
86
94
|
|
87
95
|
if attributes.key?(:'state')
|
88
96
|
self.state = attributes[:'state']
|
97
|
+
else
|
98
|
+
self.state = nil
|
89
99
|
end
|
90
100
|
|
91
101
|
if attributes.key?(:'created_at')
|
92
102
|
self.created_at = attributes[:'created_at']
|
103
|
+
else
|
104
|
+
self.created_at = nil
|
93
105
|
end
|
94
106
|
|
95
107
|
if attributes.key?(:'updated_at')
|
96
108
|
self.updated_at = attributes[:'updated_at']
|
109
|
+
else
|
110
|
+
self.updated_at = nil
|
97
111
|
end
|
98
112
|
|
99
113
|
if attributes.key?(:'started_at')
|
100
114
|
self.started_at = attributes[:'started_at']
|
115
|
+
else
|
116
|
+
self.started_at = nil
|
101
117
|
end
|
102
118
|
|
103
119
|
if attributes.key?(:'finished_at')
|
@@ -110,12 +126,15 @@ module PulpAnsibleClient
|
|
110
126
|
|
111
127
|
if attributes.key?(:'messages')
|
112
128
|
self.messages = attributes[:'messages']
|
129
|
+
else
|
130
|
+
self.messages = nil
|
113
131
|
end
|
114
132
|
end
|
115
133
|
|
116
134
|
# Show invalid properties with the reasons. Usually used together with valid?
|
117
135
|
# @return Array for valid properties with the reasons
|
118
136
|
def list_invalid_properties
|
137
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
119
138
|
invalid_properties = Array.new
|
120
139
|
if @id.nil?
|
121
140
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
@@ -147,6 +166,7 @@ module PulpAnsibleClient
|
|
147
166
|
# Check to see if the all the properties in the model are valid
|
148
167
|
# @return true if the model is valid
|
149
168
|
def valid?
|
169
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
150
170
|
return false if @id.nil?
|
151
171
|
return false if @state.nil?
|
152
172
|
return false if @created_at.nil?
|
@@ -187,37 +207,33 @@ module PulpAnsibleClient
|
|
187
207
|
# @param [Hash] attributes Model attributes in the form of hash
|
188
208
|
# @return [Object] Returns the model itself
|
189
209
|
def self.build_from_hash(attributes)
|
190
|
-
new.build_from_hash(attributes)
|
191
|
-
end
|
192
|
-
|
193
|
-
# Builds the object from hash
|
194
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
195
|
-
# @return [Object] Returns the model itself
|
196
|
-
def build_from_hash(attributes)
|
197
210
|
return nil unless attributes.is_a?(Hash)
|
198
|
-
|
199
|
-
|
211
|
+
attributes = attributes.transform_keys(&:to_sym)
|
212
|
+
transformed_hash = {}
|
213
|
+
openapi_types.each_pair do |key, type|
|
214
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
215
|
+
transformed_hash["#{key}"] = nil
|
216
|
+
elsif type =~ /\AArray<(.*)>/i
|
200
217
|
# check to ensure the input is an array given that the attribute
|
201
218
|
# is documented as an array but the input is not
|
202
|
-
if attributes[
|
203
|
-
|
219
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
220
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
204
221
|
end
|
205
|
-
elsif !attributes[
|
206
|
-
|
207
|
-
end
|
222
|
+
elsif !attributes[attribute_map[key]].nil?
|
223
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
224
|
+
end
|
208
225
|
end
|
209
|
-
|
210
|
-
self
|
226
|
+
new(transformed_hash)
|
211
227
|
end
|
212
228
|
|
213
229
|
# Deserializes the data based on type
|
214
230
|
# @param string type Data type
|
215
231
|
# @param string value Value to be deserialized
|
216
232
|
# @return [Object] Deserialized data
|
217
|
-
def _deserialize(type, value)
|
233
|
+
def self._deserialize(type, value)
|
218
234
|
case type.to_sym
|
219
|
-
when :
|
220
|
-
|
235
|
+
when :Time
|
236
|
+
Time.parse(value)
|
221
237
|
when :Date
|
222
238
|
Date.parse(value)
|
223
239
|
when :String
|
@@ -247,7 +263,9 @@ module PulpAnsibleClient
|
|
247
263
|
end
|
248
264
|
end
|
249
265
|
else # model
|
250
|
-
|
266
|
+
# models (e.g. Pet) or oneOf
|
267
|
+
klass = PulpAnsibleClient.const_get(type)
|
268
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
251
269
|
end
|
252
270
|
end
|
253
271
|
|
@@ -273,7 +291,7 @@ module PulpAnsibleClient
|
|
273
291
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
274
292
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
275
293
|
end
|
276
|
-
|
294
|
+
|
277
295
|
hash[param] = _to_hash(value)
|
278
296
|
end
|
279
297
|
hash
|
@@ -296,5 +314,7 @@ module PulpAnsibleClient
|
|
296
314
|
value
|
297
315
|
end
|
298
316
|
end
|
317
|
+
|
299
318
|
end
|
319
|
+
|
300
320
|
end
|
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module PulpAnsibleClient
|
16
17
|
# A serializer for a CollectionVersion metadata.
|
@@ -51,12 +52,17 @@ module PulpAnsibleClient
|
|
51
52
|
}
|
52
53
|
end
|
53
54
|
|
55
|
+
# Returns all the JSON keys this model knows about
|
56
|
+
def self.acceptable_attributes
|
57
|
+
attribute_map.values
|
58
|
+
end
|
59
|
+
|
54
60
|
# Attribute type mapping.
|
55
61
|
def self.openapi_types
|
56
62
|
{
|
57
63
|
:'authors' => :'Array<String>',
|
58
|
-
:'contents' => :'
|
59
|
-
:'dependencies' => :'
|
64
|
+
:'contents' => :'Object',
|
65
|
+
:'dependencies' => :'Object',
|
60
66
|
:'description' => :'String',
|
61
67
|
:'documentation' => :'String',
|
62
68
|
:'homepage' => :'String',
|
@@ -70,6 +76,8 @@ module PulpAnsibleClient
|
|
70
76
|
# List of attributes with nullable: true
|
71
77
|
def self.openapi_nullable
|
72
78
|
Set.new([
|
79
|
+
:'contents',
|
80
|
+
:'dependencies',
|
73
81
|
])
|
74
82
|
end
|
75
83
|
|
@@ -132,12 +140,15 @@ module PulpAnsibleClient
|
|
132
140
|
if (value = attributes[:'tags']).is_a?(Array)
|
133
141
|
self.tags = value
|
134
142
|
end
|
143
|
+
else
|
144
|
+
self.tags = nil
|
135
145
|
end
|
136
146
|
end
|
137
147
|
|
138
148
|
# Show invalid properties with the reasons. Usually used together with valid?
|
139
149
|
# @return Array for valid properties with the reasons
|
140
150
|
def list_invalid_properties
|
151
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
141
152
|
invalid_properties = Array.new
|
142
153
|
if @tags.nil?
|
143
154
|
invalid_properties.push('invalid value for "tags", tags cannot be nil.')
|
@@ -149,6 +160,7 @@ module PulpAnsibleClient
|
|
149
160
|
# Check to see if the all the properties in the model are valid
|
150
161
|
# @return true if the model is valid
|
151
162
|
def valid?
|
163
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
152
164
|
return false if @tags.nil?
|
153
165
|
true
|
154
166
|
end
|
@@ -186,37 +198,33 @@ module PulpAnsibleClient
|
|
186
198
|
# @param [Hash] attributes Model attributes in the form of hash
|
187
199
|
# @return [Object] Returns the model itself
|
188
200
|
def self.build_from_hash(attributes)
|
189
|
-
new.build_from_hash(attributes)
|
190
|
-
end
|
191
|
-
|
192
|
-
# Builds the object from hash
|
193
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
194
|
-
# @return [Object] Returns the model itself
|
195
|
-
def build_from_hash(attributes)
|
196
201
|
return nil unless attributes.is_a?(Hash)
|
197
|
-
|
198
|
-
|
202
|
+
attributes = attributes.transform_keys(&:to_sym)
|
203
|
+
transformed_hash = {}
|
204
|
+
openapi_types.each_pair do |key, type|
|
205
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
206
|
+
transformed_hash["#{key}"] = nil
|
207
|
+
elsif type =~ /\AArray<(.*)>/i
|
199
208
|
# check to ensure the input is an array given that the attribute
|
200
209
|
# is documented as an array but the input is not
|
201
|
-
if attributes[
|
202
|
-
|
210
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
211
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
203
212
|
end
|
204
|
-
elsif !attributes[
|
205
|
-
|
206
|
-
end
|
213
|
+
elsif !attributes[attribute_map[key]].nil?
|
214
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
215
|
+
end
|
207
216
|
end
|
208
|
-
|
209
|
-
self
|
217
|
+
new(transformed_hash)
|
210
218
|
end
|
211
219
|
|
212
220
|
# Deserializes the data based on type
|
213
221
|
# @param string type Data type
|
214
222
|
# @param string value Value to be deserialized
|
215
223
|
# @return [Object] Deserialized data
|
216
|
-
def _deserialize(type, value)
|
224
|
+
def self._deserialize(type, value)
|
217
225
|
case type.to_sym
|
218
|
-
when :
|
219
|
-
|
226
|
+
when :Time
|
227
|
+
Time.parse(value)
|
220
228
|
when :Date
|
221
229
|
Date.parse(value)
|
222
230
|
when :String
|
@@ -246,7 +254,9 @@ module PulpAnsibleClient
|
|
246
254
|
end
|
247
255
|
end
|
248
256
|
else # model
|
249
|
-
|
257
|
+
# models (e.g. Pet) or oneOf
|
258
|
+
klass = PulpAnsibleClient.const_get(type)
|
259
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
250
260
|
end
|
251
261
|
end
|
252
262
|
|
@@ -272,7 +282,7 @@ module PulpAnsibleClient
|
|
272
282
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
273
283
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
274
284
|
end
|
275
|
-
|
285
|
+
|
276
286
|
hash[param] = _to_hash(value)
|
277
287
|
end
|
278
288
|
hash
|
@@ -295,5 +305,7 @@ module PulpAnsibleClient
|
|
295
305
|
value
|
296
306
|
end
|
297
307
|
end
|
308
|
+
|
298
309
|
end
|
310
|
+
|
299
311
|
end
|
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module PulpAnsibleClient
|
16
17
|
# A serializer for a Collection Version namespace field.
|
@@ -27,6 +28,11 @@ module PulpAnsibleClient
|
|
27
28
|
}
|
28
29
|
end
|
29
30
|
|
31
|
+
# Returns all the JSON keys this model knows about
|
32
|
+
def self.acceptable_attributes
|
33
|
+
attribute_map.values
|
34
|
+
end
|
35
|
+
|
30
36
|
# Attribute type mapping.
|
31
37
|
def self.openapi_types
|
32
38
|
{
|
@@ -59,16 +65,21 @@ module PulpAnsibleClient
|
|
59
65
|
|
60
66
|
if attributes.key?(:'name')
|
61
67
|
self.name = attributes[:'name']
|
68
|
+
else
|
69
|
+
self.name = nil
|
62
70
|
end
|
63
71
|
|
64
72
|
if attributes.key?(:'metadata_sha256')
|
65
73
|
self.metadata_sha256 = attributes[:'metadata_sha256']
|
74
|
+
else
|
75
|
+
self.metadata_sha256 = nil
|
66
76
|
end
|
67
77
|
end
|
68
78
|
|
69
79
|
# Show invalid properties with the reasons. Usually used together with valid?
|
70
80
|
# @return Array for valid properties with the reasons
|
71
81
|
def list_invalid_properties
|
82
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
72
83
|
invalid_properties = Array.new
|
73
84
|
if @name.nil?
|
74
85
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -80,6 +91,7 @@ module PulpAnsibleClient
|
|
80
91
|
# Check to see if the all the properties in the model are valid
|
81
92
|
# @return true if the model is valid
|
82
93
|
def valid?
|
94
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
83
95
|
return false if @name.nil?
|
84
96
|
true
|
85
97
|
end
|
@@ -109,37 +121,33 @@ module PulpAnsibleClient
|
|
109
121
|
# @param [Hash] attributes Model attributes in the form of hash
|
110
122
|
# @return [Object] Returns the model itself
|
111
123
|
def self.build_from_hash(attributes)
|
112
|
-
new.build_from_hash(attributes)
|
113
|
-
end
|
114
|
-
|
115
|
-
# Builds the object from hash
|
116
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
117
|
-
# @return [Object] Returns the model itself
|
118
|
-
def build_from_hash(attributes)
|
119
124
|
return nil unless attributes.is_a?(Hash)
|
120
|
-
|
121
|
-
|
125
|
+
attributes = attributes.transform_keys(&:to_sym)
|
126
|
+
transformed_hash = {}
|
127
|
+
openapi_types.each_pair do |key, type|
|
128
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
129
|
+
transformed_hash["#{key}"] = nil
|
130
|
+
elsif type =~ /\AArray<(.*)>/i
|
122
131
|
# check to ensure the input is an array given that the attribute
|
123
132
|
# is documented as an array but the input is not
|
124
|
-
if attributes[
|
125
|
-
|
133
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
134
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
126
135
|
end
|
127
|
-
elsif !attributes[
|
128
|
-
|
129
|
-
end
|
136
|
+
elsif !attributes[attribute_map[key]].nil?
|
137
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
138
|
+
end
|
130
139
|
end
|
131
|
-
|
132
|
-
self
|
140
|
+
new(transformed_hash)
|
133
141
|
end
|
134
142
|
|
135
143
|
# Deserializes the data based on type
|
136
144
|
# @param string type Data type
|
137
145
|
# @param string value Value to be deserialized
|
138
146
|
# @return [Object] Deserialized data
|
139
|
-
def _deserialize(type, value)
|
147
|
+
def self._deserialize(type, value)
|
140
148
|
case type.to_sym
|
141
|
-
when :
|
142
|
-
|
149
|
+
when :Time
|
150
|
+
Time.parse(value)
|
143
151
|
when :Date
|
144
152
|
Date.parse(value)
|
145
153
|
when :String
|
@@ -169,7 +177,9 @@ module PulpAnsibleClient
|
|
169
177
|
end
|
170
178
|
end
|
171
179
|
else # model
|
172
|
-
|
180
|
+
# models (e.g. Pet) or oneOf
|
181
|
+
klass = PulpAnsibleClient.const_get(type)
|
182
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
173
183
|
end
|
174
184
|
end
|
175
185
|
|
@@ -195,7 +205,7 @@ module PulpAnsibleClient
|
|
195
205
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
196
206
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
197
207
|
end
|
198
|
-
|
208
|
+
|
199
209
|
hash[param] = _to_hash(value)
|
200
210
|
end
|
201
211
|
hash
|
@@ -218,5 +228,7 @@ module PulpAnsibleClient
|
|
218
228
|
value
|
219
229
|
end
|
220
230
|
end
|
231
|
+
|
221
232
|
end
|
233
|
+
|
222
234
|
end
|