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
|
# A serializer for mark models.
|
@@ -29,6 +30,11 @@ module PulpAnsibleClient
|
|
29
30
|
}
|
30
31
|
end
|
31
32
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
@@ -60,16 +66,21 @@ module PulpAnsibleClient
|
|
60
66
|
|
61
67
|
if attributes.key?(:'marked_collection')
|
62
68
|
self.marked_collection = attributes[:'marked_collection']
|
69
|
+
else
|
70
|
+
self.marked_collection = nil
|
63
71
|
end
|
64
72
|
|
65
73
|
if attributes.key?(:'value')
|
66
74
|
self.value = attributes[:'value']
|
75
|
+
else
|
76
|
+
self.value = nil
|
67
77
|
end
|
68
78
|
end
|
69
79
|
|
70
80
|
# Show invalid properties with the reasons. Usually used together with valid?
|
71
81
|
# @return Array for valid properties with the reasons
|
72
82
|
def list_invalid_properties
|
83
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
73
84
|
invalid_properties = Array.new
|
74
85
|
if @marked_collection.nil?
|
75
86
|
invalid_properties.push('invalid value for "marked_collection", marked_collection cannot be nil.')
|
@@ -94,6 +105,7 @@ module PulpAnsibleClient
|
|
94
105
|
# Check to see if the all the properties in the model are valid
|
95
106
|
# @return true if the model is valid
|
96
107
|
def valid?
|
108
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
97
109
|
return false if @marked_collection.nil?
|
98
110
|
return false if @value.nil?
|
99
111
|
return false if @value.to_s.length < 1
|
@@ -145,37 +157,33 @@ module PulpAnsibleClient
|
|
145
157
|
# @param [Hash] attributes Model attributes in the form of hash
|
146
158
|
# @return [Object] Returns the model itself
|
147
159
|
def self.build_from_hash(attributes)
|
148
|
-
new.build_from_hash(attributes)
|
149
|
-
end
|
150
|
-
|
151
|
-
# Builds the object from hash
|
152
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
153
|
-
# @return [Object] Returns the model itself
|
154
|
-
def build_from_hash(attributes)
|
155
160
|
return nil unless attributes.is_a?(Hash)
|
156
|
-
|
157
|
-
|
161
|
+
attributes = attributes.transform_keys(&:to_sym)
|
162
|
+
transformed_hash = {}
|
163
|
+
openapi_types.each_pair do |key, type|
|
164
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
165
|
+
transformed_hash["#{key}"] = nil
|
166
|
+
elsif type =~ /\AArray<(.*)>/i
|
158
167
|
# check to ensure the input is an array given that the attribute
|
159
168
|
# is documented as an array but the input is not
|
160
|
-
if attributes[
|
161
|
-
|
169
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
170
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
162
171
|
end
|
163
|
-
elsif !attributes[
|
164
|
-
|
165
|
-
end
|
172
|
+
elsif !attributes[attribute_map[key]].nil?
|
173
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
174
|
+
end
|
166
175
|
end
|
167
|
-
|
168
|
-
self
|
176
|
+
new(transformed_hash)
|
169
177
|
end
|
170
178
|
|
171
179
|
# Deserializes the data based on type
|
172
180
|
# @param string type Data type
|
173
181
|
# @param string value Value to be deserialized
|
174
182
|
# @return [Object] Deserialized data
|
175
|
-
def _deserialize(type, value)
|
183
|
+
def self._deserialize(type, value)
|
176
184
|
case type.to_sym
|
177
|
-
when :
|
178
|
-
|
185
|
+
when :Time
|
186
|
+
Time.parse(value)
|
179
187
|
when :Date
|
180
188
|
Date.parse(value)
|
181
189
|
when :String
|
@@ -205,7 +213,9 @@ module PulpAnsibleClient
|
|
205
213
|
end
|
206
214
|
end
|
207
215
|
else # model
|
208
|
-
|
216
|
+
# models (e.g. Pet) or oneOf
|
217
|
+
klass = PulpAnsibleClient.const_get(type)
|
218
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
209
219
|
end
|
210
220
|
end
|
211
221
|
|
@@ -231,7 +241,7 @@ module PulpAnsibleClient
|
|
231
241
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
232
242
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
233
243
|
end
|
234
|
-
|
244
|
+
|
235
245
|
hash[param] = _to_hash(value)
|
236
246
|
end
|
237
247
|
hash
|
@@ -254,5 +264,7 @@ module PulpAnsibleClient
|
|
254
264
|
value
|
255
265
|
end
|
256
266
|
end
|
267
|
+
|
257
268
|
end
|
269
|
+
|
258
270
|
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 mark models.
|
@@ -36,10 +37,15 @@ module PulpAnsibleClient
|
|
36
37
|
}
|
37
38
|
end
|
38
39
|
|
40
|
+
# Returns all the JSON keys this model knows about
|
41
|
+
def self.acceptable_attributes
|
42
|
+
attribute_map.values
|
43
|
+
end
|
44
|
+
|
39
45
|
# Attribute type mapping.
|
40
46
|
def self.openapi_types
|
41
47
|
{
|
42
|
-
:'pulp_created' => :'
|
48
|
+
:'pulp_created' => :'Time',
|
43
49
|
:'pulp_href' => :'String',
|
44
50
|
:'marked_collection' => :'String',
|
45
51
|
:'value' => :'String'
|
@@ -77,16 +83,21 @@ module PulpAnsibleClient
|
|
77
83
|
|
78
84
|
if attributes.key?(:'marked_collection')
|
79
85
|
self.marked_collection = attributes[:'marked_collection']
|
86
|
+
else
|
87
|
+
self.marked_collection = nil
|
80
88
|
end
|
81
89
|
|
82
90
|
if attributes.key?(:'value')
|
83
91
|
self.value = attributes[:'value']
|
92
|
+
else
|
93
|
+
self.value = nil
|
84
94
|
end
|
85
95
|
end
|
86
96
|
|
87
97
|
# Show invalid properties with the reasons. Usually used together with valid?
|
88
98
|
# @return Array for valid properties with the reasons
|
89
99
|
def list_invalid_properties
|
100
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
90
101
|
invalid_properties = Array.new
|
91
102
|
if @marked_collection.nil?
|
92
103
|
invalid_properties.push('invalid value for "marked_collection", marked_collection cannot be nil.')
|
@@ -107,6 +118,7 @@ module PulpAnsibleClient
|
|
107
118
|
# Check to see if the all the properties in the model are valid
|
108
119
|
# @return true if the model is valid
|
109
120
|
def valid?
|
121
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
110
122
|
return false if @marked_collection.nil?
|
111
123
|
return false if @value.nil?
|
112
124
|
return false if @value !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
@@ -155,37 +167,33 @@ module PulpAnsibleClient
|
|
155
167
|
# @param [Hash] attributes Model attributes in the form of hash
|
156
168
|
# @return [Object] Returns the model itself
|
157
169
|
def self.build_from_hash(attributes)
|
158
|
-
new.build_from_hash(attributes)
|
159
|
-
end
|
160
|
-
|
161
|
-
# Builds the object from hash
|
162
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
163
|
-
# @return [Object] Returns the model itself
|
164
|
-
def build_from_hash(attributes)
|
165
170
|
return nil unless attributes.is_a?(Hash)
|
166
|
-
|
167
|
-
|
171
|
+
attributes = attributes.transform_keys(&:to_sym)
|
172
|
+
transformed_hash = {}
|
173
|
+
openapi_types.each_pair do |key, type|
|
174
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
175
|
+
transformed_hash["#{key}"] = nil
|
176
|
+
elsif type =~ /\AArray<(.*)>/i
|
168
177
|
# check to ensure the input is an array given that the attribute
|
169
178
|
# is documented as an array but the input is not
|
170
|
-
if attributes[
|
171
|
-
|
179
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
180
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
172
181
|
end
|
173
|
-
elsif !attributes[
|
174
|
-
|
175
|
-
end
|
182
|
+
elsif !attributes[attribute_map[key]].nil?
|
183
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
184
|
+
end
|
176
185
|
end
|
177
|
-
|
178
|
-
self
|
186
|
+
new(transformed_hash)
|
179
187
|
end
|
180
188
|
|
181
189
|
# Deserializes the data based on type
|
182
190
|
# @param string type Data type
|
183
191
|
# @param string value Value to be deserialized
|
184
192
|
# @return [Object] Deserialized data
|
185
|
-
def _deserialize(type, value)
|
193
|
+
def self._deserialize(type, value)
|
186
194
|
case type.to_sym
|
187
|
-
when :
|
188
|
-
|
195
|
+
when :Time
|
196
|
+
Time.parse(value)
|
189
197
|
when :Date
|
190
198
|
Date.parse(value)
|
191
199
|
when :String
|
@@ -215,7 +223,9 @@ module PulpAnsibleClient
|
|
215
223
|
end
|
216
224
|
end
|
217
225
|
else # model
|
218
|
-
|
226
|
+
# models (e.g. Pet) or oneOf
|
227
|
+
klass = PulpAnsibleClient.const_get(type)
|
228
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
219
229
|
end
|
220
230
|
end
|
221
231
|
|
@@ -241,7 +251,7 @@ module PulpAnsibleClient
|
|
241
251
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
242
252
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
243
253
|
end
|
244
|
-
|
254
|
+
|
245
255
|
hash[param] = _to_hash(value)
|
246
256
|
end
|
247
257
|
hash
|
@@ -264,5 +274,7 @@ module PulpAnsibleClient
|
|
264
274
|
value
|
265
275
|
end
|
266
276
|
end
|
277
|
+
|
267
278
|
end
|
279
|
+
|
268
280
|
end
|
@@ -6,17 +6,16 @@
|
|
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 CollectionVersion Content.
|
17
18
|
class AnsibleCollectionVersionResponse
|
18
|
-
attr_accessor :pulp_href
|
19
|
-
|
20
19
|
# The Pulp Resource Name (PRN).
|
21
20
|
attr_accessor :prn
|
22
21
|
|
@@ -29,6 +28,8 @@ module PulpAnsibleClient
|
|
29
28
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
30
29
|
attr_accessor :pulp_last_updated
|
31
30
|
|
31
|
+
attr_accessor :pulp_href
|
32
|
+
|
32
33
|
# The SHA-256 checksum if available.
|
33
34
|
attr_accessor :sha256
|
34
35
|
|
@@ -103,11 +104,11 @@ module PulpAnsibleClient
|
|
103
104
|
# Attribute mapping from ruby-style variable name to JSON key.
|
104
105
|
def self.attribute_map
|
105
106
|
{
|
106
|
-
:'pulp_href' => :'pulp_href',
|
107
107
|
:'prn' => :'prn',
|
108
108
|
:'pulp_created' => :'pulp_created',
|
109
109
|
:'artifact' => :'artifact',
|
110
110
|
:'pulp_last_updated' => :'pulp_last_updated',
|
111
|
+
:'pulp_href' => :'pulp_href',
|
111
112
|
:'sha256' => :'sha256',
|
112
113
|
:'md5' => :'md5',
|
113
114
|
:'sha1' => :'sha1',
|
@@ -135,14 +136,19 @@ module PulpAnsibleClient
|
|
135
136
|
}
|
136
137
|
end
|
137
138
|
|
139
|
+
# Returns all the JSON keys this model knows about
|
140
|
+
def self.acceptable_attributes
|
141
|
+
attribute_map.values
|
142
|
+
end
|
143
|
+
|
138
144
|
# Attribute type mapping.
|
139
145
|
def self.openapi_types
|
140
146
|
{
|
141
|
-
:'pulp_href' => :'String',
|
142
147
|
:'prn' => :'String',
|
143
|
-
:'pulp_created' => :'
|
148
|
+
:'pulp_created' => :'Time',
|
144
149
|
:'artifact' => :'String',
|
145
|
-
:'pulp_last_updated' => :'
|
150
|
+
:'pulp_last_updated' => :'Time',
|
151
|
+
:'pulp_href' => :'String',
|
146
152
|
:'sha256' => :'String',
|
147
153
|
:'md5' => :'String',
|
148
154
|
:'sha1' => :'String',
|
@@ -151,7 +157,7 @@ module PulpAnsibleClient
|
|
151
157
|
:'sha512' => :'String',
|
152
158
|
:'id' => :'String',
|
153
159
|
:'authors' => :'Array<String>',
|
154
|
-
:'contents' => :'Object',
|
160
|
+
:'contents' => :'Array<Object>',
|
155
161
|
:'dependencies' => :'Object',
|
156
162
|
:'description' => :'String',
|
157
163
|
:'docs_blob' => :'Object',
|
@@ -192,10 +198,6 @@ module PulpAnsibleClient
|
|
192
198
|
h[k.to_sym] = v
|
193
199
|
}
|
194
200
|
|
195
|
-
if attributes.key?(:'pulp_href')
|
196
|
-
self.pulp_href = attributes[:'pulp_href']
|
197
|
-
end
|
198
|
-
|
199
201
|
if attributes.key?(:'prn')
|
200
202
|
self.prn = attributes[:'prn']
|
201
203
|
end
|
@@ -212,6 +214,10 @@ module PulpAnsibleClient
|
|
212
214
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
213
215
|
end
|
214
216
|
|
217
|
+
if attributes.key?(:'pulp_href')
|
218
|
+
self.pulp_href = attributes[:'pulp_href']
|
219
|
+
end
|
220
|
+
|
215
221
|
if attributes.key?(:'sha256')
|
216
222
|
self.sha256 = attributes[:'sha256']
|
217
223
|
end
|
@@ -247,7 +253,9 @@ module PulpAnsibleClient
|
|
247
253
|
end
|
248
254
|
|
249
255
|
if attributes.key?(:'contents')
|
250
|
-
|
256
|
+
if (value = attributes[:'contents']).is_a?(Array)
|
257
|
+
self.contents = value
|
258
|
+
end
|
251
259
|
end
|
252
260
|
|
253
261
|
if attributes.key?(:'dependencies')
|
@@ -318,6 +326,7 @@ module PulpAnsibleClient
|
|
318
326
|
# Show invalid properties with the reasons. Usually used together with valid?
|
319
327
|
# @return Array for valid properties with the reasons
|
320
328
|
def list_invalid_properties
|
329
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
321
330
|
invalid_properties = Array.new
|
322
331
|
if !@documentation.nil? && @documentation.to_s.length > 2000
|
323
332
|
invalid_properties.push('invalid value for "documentation", the character length must be smaller than or equal to 2000.')
|
@@ -357,6 +366,7 @@ module PulpAnsibleClient
|
|
357
366
|
# Check to see if the all the properties in the model are valid
|
358
367
|
# @return true if the model is valid
|
359
368
|
def valid?
|
369
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
360
370
|
return false if !@documentation.nil? && @documentation.to_s.length > 2000
|
361
371
|
return false if !@homepage.nil? && @homepage.to_s.length > 2000
|
362
372
|
return false if !@issues.nil? && @issues.to_s.length > 2000
|
@@ -371,7 +381,11 @@ module PulpAnsibleClient
|
|
371
381
|
# Custom attribute writer method with validation
|
372
382
|
# @param [Object] documentation Value to be assigned
|
373
383
|
def documentation=(documentation)
|
374
|
-
if
|
384
|
+
if documentation.nil?
|
385
|
+
fail ArgumentError, 'documentation cannot be nil'
|
386
|
+
end
|
387
|
+
|
388
|
+
if documentation.to_s.length > 2000
|
375
389
|
fail ArgumentError, 'invalid value for "documentation", the character length must be smaller than or equal to 2000.'
|
376
390
|
end
|
377
391
|
|
@@ -381,7 +395,11 @@ module PulpAnsibleClient
|
|
381
395
|
# Custom attribute writer method with validation
|
382
396
|
# @param [Object] homepage Value to be assigned
|
383
397
|
def homepage=(homepage)
|
384
|
-
if
|
398
|
+
if homepage.nil?
|
399
|
+
fail ArgumentError, 'homepage cannot be nil'
|
400
|
+
end
|
401
|
+
|
402
|
+
if homepage.to_s.length > 2000
|
385
403
|
fail ArgumentError, 'invalid value for "homepage", the character length must be smaller than or equal to 2000.'
|
386
404
|
end
|
387
405
|
|
@@ -391,7 +409,11 @@ module PulpAnsibleClient
|
|
391
409
|
# Custom attribute writer method with validation
|
392
410
|
# @param [Object] issues Value to be assigned
|
393
411
|
def issues=(issues)
|
394
|
-
if
|
412
|
+
if issues.nil?
|
413
|
+
fail ArgumentError, 'issues cannot be nil'
|
414
|
+
end
|
415
|
+
|
416
|
+
if issues.to_s.length > 2000
|
395
417
|
fail ArgumentError, 'invalid value for "issues", the character length must be smaller than or equal to 2000.'
|
396
418
|
end
|
397
419
|
|
@@ -401,7 +423,11 @@ module PulpAnsibleClient
|
|
401
423
|
# Custom attribute writer method with validation
|
402
424
|
# @param [Object] name Value to be assigned
|
403
425
|
def name=(name)
|
404
|
-
if
|
426
|
+
if name.nil?
|
427
|
+
fail ArgumentError, 'name cannot be nil'
|
428
|
+
end
|
429
|
+
|
430
|
+
if name.to_s.length > 64
|
405
431
|
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 64.'
|
406
432
|
end
|
407
433
|
|
@@ -411,7 +437,11 @@ module PulpAnsibleClient
|
|
411
437
|
# Custom attribute writer method with validation
|
412
438
|
# @param [Object] namespace Value to be assigned
|
413
439
|
def namespace=(namespace)
|
414
|
-
if
|
440
|
+
if namespace.nil?
|
441
|
+
fail ArgumentError, 'namespace cannot be nil'
|
442
|
+
end
|
443
|
+
|
444
|
+
if namespace.to_s.length > 64
|
415
445
|
fail ArgumentError, 'invalid value for "namespace", the character length must be smaller than or equal to 64.'
|
416
446
|
end
|
417
447
|
|
@@ -421,7 +451,11 @@ module PulpAnsibleClient
|
|
421
451
|
# Custom attribute writer method with validation
|
422
452
|
# @param [Object] origin_repository Value to be assigned
|
423
453
|
def origin_repository=(origin_repository)
|
424
|
-
if
|
454
|
+
if origin_repository.nil?
|
455
|
+
fail ArgumentError, 'origin_repository cannot be nil'
|
456
|
+
end
|
457
|
+
|
458
|
+
if origin_repository.to_s.length > 2000
|
425
459
|
fail ArgumentError, 'invalid value for "origin_repository", the character length must be smaller than or equal to 2000.'
|
426
460
|
end
|
427
461
|
|
@@ -431,7 +465,11 @@ module PulpAnsibleClient
|
|
431
465
|
# Custom attribute writer method with validation
|
432
466
|
# @param [Object] version Value to be assigned
|
433
467
|
def version=(version)
|
434
|
-
if
|
468
|
+
if version.nil?
|
469
|
+
fail ArgumentError, 'version cannot be nil'
|
470
|
+
end
|
471
|
+
|
472
|
+
if version.to_s.length > 128
|
435
473
|
fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 128.'
|
436
474
|
end
|
437
475
|
|
@@ -453,11 +491,11 @@ module PulpAnsibleClient
|
|
453
491
|
def ==(o)
|
454
492
|
return true if self.equal?(o)
|
455
493
|
self.class == o.class &&
|
456
|
-
pulp_href == o.pulp_href &&
|
457
494
|
prn == o.prn &&
|
458
495
|
pulp_created == o.pulp_created &&
|
459
496
|
artifact == o.artifact &&
|
460
497
|
pulp_last_updated == o.pulp_last_updated &&
|
498
|
+
pulp_href == o.pulp_href &&
|
461
499
|
sha256 == o.sha256 &&
|
462
500
|
md5 == o.md5 &&
|
463
501
|
sha1 == o.sha1 &&
|
@@ -493,44 +531,40 @@ module PulpAnsibleClient
|
|
493
531
|
# Calculates hash code according to all attributes.
|
494
532
|
# @return [Integer] Hash code
|
495
533
|
def hash
|
496
|
-
[
|
534
|
+
[prn, pulp_created, artifact, pulp_last_updated, pulp_href, sha256, md5, sha1, sha224, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
|
497
535
|
end
|
498
536
|
|
499
537
|
# Builds the object from hash
|
500
538
|
# @param [Hash] attributes Model attributes in the form of hash
|
501
539
|
# @return [Object] Returns the model itself
|
502
540
|
def self.build_from_hash(attributes)
|
503
|
-
new.build_from_hash(attributes)
|
504
|
-
end
|
505
|
-
|
506
|
-
# Builds the object from hash
|
507
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
508
|
-
# @return [Object] Returns the model itself
|
509
|
-
def build_from_hash(attributes)
|
510
541
|
return nil unless attributes.is_a?(Hash)
|
511
|
-
|
512
|
-
|
542
|
+
attributes = attributes.transform_keys(&:to_sym)
|
543
|
+
transformed_hash = {}
|
544
|
+
openapi_types.each_pair do |key, type|
|
545
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
546
|
+
transformed_hash["#{key}"] = nil
|
547
|
+
elsif type =~ /\AArray<(.*)>/i
|
513
548
|
# check to ensure the input is an array given that the attribute
|
514
549
|
# is documented as an array but the input is not
|
515
|
-
if attributes[
|
516
|
-
|
550
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
551
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
517
552
|
end
|
518
|
-
elsif !attributes[
|
519
|
-
|
520
|
-
end
|
553
|
+
elsif !attributes[attribute_map[key]].nil?
|
554
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
555
|
+
end
|
521
556
|
end
|
522
|
-
|
523
|
-
self
|
557
|
+
new(transformed_hash)
|
524
558
|
end
|
525
559
|
|
526
560
|
# Deserializes the data based on type
|
527
561
|
# @param string type Data type
|
528
562
|
# @param string value Value to be deserialized
|
529
563
|
# @return [Object] Deserialized data
|
530
|
-
def _deserialize(type, value)
|
564
|
+
def self._deserialize(type, value)
|
531
565
|
case type.to_sym
|
532
|
-
when :
|
533
|
-
|
566
|
+
when :Time
|
567
|
+
Time.parse(value)
|
534
568
|
when :Date
|
535
569
|
Date.parse(value)
|
536
570
|
when :String
|
@@ -560,7 +594,9 @@ module PulpAnsibleClient
|
|
560
594
|
end
|
561
595
|
end
|
562
596
|
else # model
|
563
|
-
|
597
|
+
# models (e.g. Pet) or oneOf
|
598
|
+
klass = PulpAnsibleClient.const_get(type)
|
599
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
564
600
|
end
|
565
601
|
end
|
566
602
|
|
@@ -586,7 +622,7 @@ module PulpAnsibleClient
|
|
586
622
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
587
623
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
588
624
|
end
|
589
|
-
|
625
|
+
|
590
626
|
hash[param] = _to_hash(value)
|
591
627
|
end
|
592
628
|
hash
|
@@ -609,5 +645,7 @@ module PulpAnsibleClient
|
|
609
645
|
value
|
610
646
|
end
|
611
647
|
end
|
648
|
+
|
612
649
|
end
|
650
|
+
|
613
651
|
end
|