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
|
# Serializer for Ansible Distributions.
|
@@ -44,6 +45,11 @@ module PulpAnsibleClient
|
|
44
45
|
}
|
45
46
|
end
|
46
47
|
|
48
|
+
# Returns all the JSON keys this model knows about
|
49
|
+
def self.acceptable_attributes
|
50
|
+
attribute_map.values
|
51
|
+
end
|
52
|
+
|
47
53
|
# Attribute type mapping.
|
48
54
|
def self.openapi_types
|
49
55
|
{
|
@@ -82,6 +88,8 @@ module PulpAnsibleClient
|
|
82
88
|
|
83
89
|
if attributes.key?(:'base_path')
|
84
90
|
self.base_path = attributes[:'base_path']
|
91
|
+
else
|
92
|
+
self.base_path = nil
|
85
93
|
end
|
86
94
|
|
87
95
|
if attributes.key?(:'content_guard')
|
@@ -90,6 +98,8 @@ module PulpAnsibleClient
|
|
90
98
|
|
91
99
|
if attributes.key?(:'name')
|
92
100
|
self.name = attributes[:'name']
|
101
|
+
else
|
102
|
+
self.name = nil
|
93
103
|
end
|
94
104
|
|
95
105
|
if attributes.key?(:'repository')
|
@@ -110,6 +120,7 @@ module PulpAnsibleClient
|
|
110
120
|
# Show invalid properties with the reasons. Usually used together with valid?
|
111
121
|
# @return Array for valid properties with the reasons
|
112
122
|
def list_invalid_properties
|
123
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
113
124
|
invalid_properties = Array.new
|
114
125
|
if @base_path.nil?
|
115
126
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
@@ -133,6 +144,7 @@ module PulpAnsibleClient
|
|
133
144
|
# Check to see if the all the properties in the model are valid
|
134
145
|
# @return true if the model is valid
|
135
146
|
def valid?
|
147
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
136
148
|
return false if @base_path.nil?
|
137
149
|
return false if @base_path.to_s.length < 1
|
138
150
|
return false if @name.nil?
|
@@ -197,37 +209,33 @@ module PulpAnsibleClient
|
|
197
209
|
# @param [Hash] attributes Model attributes in the form of hash
|
198
210
|
# @return [Object] Returns the model itself
|
199
211
|
def self.build_from_hash(attributes)
|
200
|
-
new.build_from_hash(attributes)
|
201
|
-
end
|
202
|
-
|
203
|
-
# Builds the object from hash
|
204
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
205
|
-
# @return [Object] Returns the model itself
|
206
|
-
def build_from_hash(attributes)
|
207
212
|
return nil unless attributes.is_a?(Hash)
|
208
|
-
|
209
|
-
|
213
|
+
attributes = attributes.transform_keys(&:to_sym)
|
214
|
+
transformed_hash = {}
|
215
|
+
openapi_types.each_pair do |key, type|
|
216
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
217
|
+
transformed_hash["#{key}"] = nil
|
218
|
+
elsif type =~ /\AArray<(.*)>/i
|
210
219
|
# check to ensure the input is an array given that the attribute
|
211
220
|
# is documented as an array but the input is not
|
212
|
-
if attributes[
|
213
|
-
|
221
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
222
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
214
223
|
end
|
215
|
-
elsif !attributes[
|
216
|
-
|
217
|
-
end
|
224
|
+
elsif !attributes[attribute_map[key]].nil?
|
225
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
226
|
+
end
|
218
227
|
end
|
219
|
-
|
220
|
-
self
|
228
|
+
new(transformed_hash)
|
221
229
|
end
|
222
230
|
|
223
231
|
# Deserializes the data based on type
|
224
232
|
# @param string type Data type
|
225
233
|
# @param string value Value to be deserialized
|
226
234
|
# @return [Object] Deserialized data
|
227
|
-
def _deserialize(type, value)
|
235
|
+
def self._deserialize(type, value)
|
228
236
|
case type.to_sym
|
229
|
-
when :
|
230
|
-
|
237
|
+
when :Time
|
238
|
+
Time.parse(value)
|
231
239
|
when :Date
|
232
240
|
Date.parse(value)
|
233
241
|
when :String
|
@@ -257,7 +265,9 @@ module PulpAnsibleClient
|
|
257
265
|
end
|
258
266
|
end
|
259
267
|
else # model
|
260
|
-
|
268
|
+
# models (e.g. Pet) or oneOf
|
269
|
+
klass = PulpAnsibleClient.const_get(type)
|
270
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
261
271
|
end
|
262
272
|
end
|
263
273
|
|
@@ -283,7 +293,7 @@ module PulpAnsibleClient
|
|
283
293
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
284
294
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
285
295
|
end
|
286
|
-
|
296
|
+
|
287
297
|
hash[param] = _to_hash(value)
|
288
298
|
end
|
289
299
|
hash
|
@@ -306,5 +316,7 @@ module PulpAnsibleClient
|
|
306
316
|
value
|
307
317
|
end
|
308
318
|
end
|
319
|
+
|
309
320
|
end
|
321
|
+
|
310
322
|
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
|
# Serializer for Ansible Distributions.
|
@@ -55,11 +56,16 @@ module PulpAnsibleClient
|
|
55
56
|
}
|
56
57
|
end
|
57
58
|
|
59
|
+
# Returns all the JSON keys this model knows about
|
60
|
+
def self.acceptable_attributes
|
61
|
+
attribute_map.values
|
62
|
+
end
|
63
|
+
|
58
64
|
# Attribute type mapping.
|
59
65
|
def self.openapi_types
|
60
66
|
{
|
61
67
|
:'pulp_href' => :'String',
|
62
|
-
:'pulp_created' => :'
|
68
|
+
:'pulp_created' => :'Time',
|
63
69
|
:'base_path' => :'String',
|
64
70
|
:'content_guard' => :'String',
|
65
71
|
:'name' => :'String',
|
@@ -104,6 +110,8 @@ module PulpAnsibleClient
|
|
104
110
|
|
105
111
|
if attributes.key?(:'base_path')
|
106
112
|
self.base_path = attributes[:'base_path']
|
113
|
+
else
|
114
|
+
self.base_path = nil
|
107
115
|
end
|
108
116
|
|
109
117
|
if attributes.key?(:'content_guard')
|
@@ -112,6 +120,8 @@ module PulpAnsibleClient
|
|
112
120
|
|
113
121
|
if attributes.key?(:'name')
|
114
122
|
self.name = attributes[:'name']
|
123
|
+
else
|
124
|
+
self.name = nil
|
115
125
|
end
|
116
126
|
|
117
127
|
if attributes.key?(:'repository')
|
@@ -136,6 +146,7 @@ module PulpAnsibleClient
|
|
136
146
|
# Show invalid properties with the reasons. Usually used together with valid?
|
137
147
|
# @return Array for valid properties with the reasons
|
138
148
|
def list_invalid_properties
|
149
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
139
150
|
invalid_properties = Array.new
|
140
151
|
if @base_path.nil?
|
141
152
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
@@ -151,6 +162,7 @@ module PulpAnsibleClient
|
|
151
162
|
# Check to see if the all the properties in the model are valid
|
152
163
|
# @return true if the model is valid
|
153
164
|
def valid?
|
165
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
154
166
|
return false if @base_path.nil?
|
155
167
|
return false if @name.nil?
|
156
168
|
true
|
@@ -188,37 +200,33 @@ module PulpAnsibleClient
|
|
188
200
|
# @param [Hash] attributes Model attributes in the form of hash
|
189
201
|
# @return [Object] Returns the model itself
|
190
202
|
def self.build_from_hash(attributes)
|
191
|
-
new.build_from_hash(attributes)
|
192
|
-
end
|
193
|
-
|
194
|
-
# Builds the object from hash
|
195
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
196
|
-
# @return [Object] Returns the model itself
|
197
|
-
def build_from_hash(attributes)
|
198
203
|
return nil unless attributes.is_a?(Hash)
|
199
|
-
|
200
|
-
|
204
|
+
attributes = attributes.transform_keys(&:to_sym)
|
205
|
+
transformed_hash = {}
|
206
|
+
openapi_types.each_pair do |key, type|
|
207
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
208
|
+
transformed_hash["#{key}"] = nil
|
209
|
+
elsif type =~ /\AArray<(.*)>/i
|
201
210
|
# check to ensure the input is an array given that the attribute
|
202
211
|
# is documented as an array but the input is not
|
203
|
-
if attributes[
|
204
|
-
|
212
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
213
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
205
214
|
end
|
206
|
-
elsif !attributes[
|
207
|
-
|
208
|
-
end
|
215
|
+
elsif !attributes[attribute_map[key]].nil?
|
216
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
217
|
+
end
|
209
218
|
end
|
210
|
-
|
211
|
-
self
|
219
|
+
new(transformed_hash)
|
212
220
|
end
|
213
221
|
|
214
222
|
# Deserializes the data based on type
|
215
223
|
# @param string type Data type
|
216
224
|
# @param string value Value to be deserialized
|
217
225
|
# @return [Object] Deserialized data
|
218
|
-
def _deserialize(type, value)
|
226
|
+
def self._deserialize(type, value)
|
219
227
|
case type.to_sym
|
220
|
-
when :
|
221
|
-
|
228
|
+
when :Time
|
229
|
+
Time.parse(value)
|
222
230
|
when :Date
|
223
231
|
Date.parse(value)
|
224
232
|
when :String
|
@@ -248,7 +256,9 @@ module PulpAnsibleClient
|
|
248
256
|
end
|
249
257
|
end
|
250
258
|
else # model
|
251
|
-
|
259
|
+
# models (e.g. Pet) or oneOf
|
260
|
+
klass = PulpAnsibleClient.const_get(type)
|
261
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
252
262
|
end
|
253
263
|
end
|
254
264
|
|
@@ -274,7 +284,7 @@ module PulpAnsibleClient
|
|
274
284
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
275
285
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
276
286
|
end
|
277
|
-
|
287
|
+
|
278
288
|
hash[param] = _to_hash(value)
|
279
289
|
end
|
280
290
|
hash
|
@@ -297,5 +307,7 @@ module PulpAnsibleClient
|
|
297
307
|
value
|
298
308
|
end
|
299
309
|
end
|
310
|
+
|
300
311
|
end
|
312
|
+
|
301
313
|
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 Namespaces.
|
@@ -49,6 +50,11 @@ module PulpAnsibleClient
|
|
49
50
|
}
|
50
51
|
end
|
51
52
|
|
53
|
+
# Returns all the JSON keys this model knows about
|
54
|
+
def self.acceptable_attributes
|
55
|
+
attribute_map.values
|
56
|
+
end
|
57
|
+
|
52
58
|
# Attribute type mapping.
|
53
59
|
def self.openapi_types
|
54
60
|
{
|
@@ -85,6 +91,8 @@ module PulpAnsibleClient
|
|
85
91
|
|
86
92
|
if attributes.key?(:'name')
|
87
93
|
self.name = attributes[:'name']
|
94
|
+
else
|
95
|
+
self.name = nil
|
88
96
|
end
|
89
97
|
|
90
98
|
if attributes.key?(:'company')
|
@@ -117,6 +125,7 @@ module PulpAnsibleClient
|
|
117
125
|
# Show invalid properties with the reasons. Usually used together with valid?
|
118
126
|
# @return Array for valid properties with the reasons
|
119
127
|
def list_invalid_properties
|
128
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
120
129
|
invalid_properties = Array.new
|
121
130
|
if @name.nil?
|
122
131
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -153,6 +162,7 @@ module PulpAnsibleClient
|
|
153
162
|
# Check to see if the all the properties in the model are valid
|
154
163
|
# @return true if the model is valid
|
155
164
|
def valid?
|
165
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
156
166
|
return false if @name.nil?
|
157
167
|
return false if @name.to_s.length > 64
|
158
168
|
return false if @name.to_s.length < 3
|
@@ -189,7 +199,11 @@ module PulpAnsibleClient
|
|
189
199
|
# Custom attribute writer method with validation
|
190
200
|
# @param [Object] company Value to be assigned
|
191
201
|
def company=(company)
|
192
|
-
if
|
202
|
+
if company.nil?
|
203
|
+
fail ArgumentError, 'company cannot be nil'
|
204
|
+
end
|
205
|
+
|
206
|
+
if company.to_s.length > 64
|
193
207
|
fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 64.'
|
194
208
|
end
|
195
209
|
|
@@ -199,7 +213,11 @@ module PulpAnsibleClient
|
|
199
213
|
# Custom attribute writer method with validation
|
200
214
|
# @param [Object] email Value to be assigned
|
201
215
|
def email=(email)
|
202
|
-
if
|
216
|
+
if email.nil?
|
217
|
+
fail ArgumentError, 'email cannot be nil'
|
218
|
+
end
|
219
|
+
|
220
|
+
if email.to_s.length > 256
|
203
221
|
fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 256.'
|
204
222
|
end
|
205
223
|
|
@@ -209,7 +227,11 @@ module PulpAnsibleClient
|
|
209
227
|
# Custom attribute writer method with validation
|
210
228
|
# @param [Object] description Value to be assigned
|
211
229
|
def description=(description)
|
212
|
-
if
|
230
|
+
if description.nil?
|
231
|
+
fail ArgumentError, 'description cannot be nil'
|
232
|
+
end
|
233
|
+
|
234
|
+
if description.to_s.length > 256
|
213
235
|
fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 256.'
|
214
236
|
end
|
215
237
|
|
@@ -246,37 +268,33 @@ module PulpAnsibleClient
|
|
246
268
|
# @param [Hash] attributes Model attributes in the form of hash
|
247
269
|
# @return [Object] Returns the model itself
|
248
270
|
def self.build_from_hash(attributes)
|
249
|
-
new.build_from_hash(attributes)
|
250
|
-
end
|
251
|
-
|
252
|
-
# Builds the object from hash
|
253
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
254
|
-
# @return [Object] Returns the model itself
|
255
|
-
def build_from_hash(attributes)
|
256
271
|
return nil unless attributes.is_a?(Hash)
|
257
|
-
|
258
|
-
|
272
|
+
attributes = attributes.transform_keys(&:to_sym)
|
273
|
+
transformed_hash = {}
|
274
|
+
openapi_types.each_pair do |key, type|
|
275
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
276
|
+
transformed_hash["#{key}"] = nil
|
277
|
+
elsif type =~ /\AArray<(.*)>/i
|
259
278
|
# check to ensure the input is an array given that the attribute
|
260
279
|
# is documented as an array but the input is not
|
261
|
-
if attributes[
|
262
|
-
|
280
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
281
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
263
282
|
end
|
264
|
-
elsif !attributes[
|
265
|
-
|
266
|
-
end
|
283
|
+
elsif !attributes[attribute_map[key]].nil?
|
284
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
285
|
+
end
|
267
286
|
end
|
268
|
-
|
269
|
-
self
|
287
|
+
new(transformed_hash)
|
270
288
|
end
|
271
289
|
|
272
290
|
# Deserializes the data based on type
|
273
291
|
# @param string type Data type
|
274
292
|
# @param string value Value to be deserialized
|
275
293
|
# @return [Object] Deserialized data
|
276
|
-
def _deserialize(type, value)
|
294
|
+
def self._deserialize(type, value)
|
277
295
|
case type.to_sym
|
278
|
-
when :
|
279
|
-
|
296
|
+
when :Time
|
297
|
+
Time.parse(value)
|
280
298
|
when :Date
|
281
299
|
Date.parse(value)
|
282
300
|
when :String
|
@@ -306,7 +324,9 @@ module PulpAnsibleClient
|
|
306
324
|
end
|
307
325
|
end
|
308
326
|
else # model
|
309
|
-
|
327
|
+
# models (e.g. Pet) or oneOf
|
328
|
+
klass = PulpAnsibleClient.const_get(type)
|
329
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
310
330
|
end
|
311
331
|
end
|
312
332
|
|
@@ -332,7 +352,7 @@ module PulpAnsibleClient
|
|
332
352
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
333
353
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
334
354
|
end
|
335
|
-
|
355
|
+
|
336
356
|
hash[param] = _to_hash(value)
|
337
357
|
end
|
338
358
|
hash
|
@@ -355,5 +375,7 @@ module PulpAnsibleClient
|
|
355
375
|
value
|
356
376
|
end
|
357
377
|
end
|
378
|
+
|
358
379
|
end
|
380
|
+
|
359
381
|
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 Namespaces.
|
@@ -59,6 +60,11 @@ module PulpAnsibleClient
|
|
59
60
|
}
|
60
61
|
end
|
61
62
|
|
63
|
+
# Returns all the JSON keys this model knows about
|
64
|
+
def self.acceptable_attributes
|
65
|
+
attribute_map.values
|
66
|
+
end
|
67
|
+
|
62
68
|
# Attribute type mapping.
|
63
69
|
def self.openapi_types
|
64
70
|
{
|
@@ -102,6 +108,8 @@ module PulpAnsibleClient
|
|
102
108
|
|
103
109
|
if attributes.key?(:'name')
|
104
110
|
self.name = attributes[:'name']
|
111
|
+
else
|
112
|
+
self.name = nil
|
105
113
|
end
|
106
114
|
|
107
115
|
if attributes.key?(:'company')
|
@@ -142,6 +150,7 @@ module PulpAnsibleClient
|
|
142
150
|
# Show invalid properties with the reasons. Usually used together with valid?
|
143
151
|
# @return Array for valid properties with the reasons
|
144
152
|
def list_invalid_properties
|
153
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
145
154
|
invalid_properties = Array.new
|
146
155
|
if @name.nil?
|
147
156
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -182,6 +191,7 @@ module PulpAnsibleClient
|
|
182
191
|
# Check to see if the all the properties in the model are valid
|
183
192
|
# @return true if the model is valid
|
184
193
|
def valid?
|
194
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
185
195
|
return false if @name.nil?
|
186
196
|
return false if @name.to_s.length > 64
|
187
197
|
return false if @name.to_s.length < 3
|
@@ -219,7 +229,11 @@ module PulpAnsibleClient
|
|
219
229
|
# Custom attribute writer method with validation
|
220
230
|
# @param [Object] company Value to be assigned
|
221
231
|
def company=(company)
|
222
|
-
if
|
232
|
+
if company.nil?
|
233
|
+
fail ArgumentError, 'company cannot be nil'
|
234
|
+
end
|
235
|
+
|
236
|
+
if company.to_s.length > 64
|
223
237
|
fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 64.'
|
224
238
|
end
|
225
239
|
|
@@ -229,7 +243,11 @@ module PulpAnsibleClient
|
|
229
243
|
# Custom attribute writer method with validation
|
230
244
|
# @param [Object] email Value to be assigned
|
231
245
|
def email=(email)
|
232
|
-
if
|
246
|
+
if email.nil?
|
247
|
+
fail ArgumentError, 'email cannot be nil'
|
248
|
+
end
|
249
|
+
|
250
|
+
if email.to_s.length > 256
|
233
251
|
fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 256.'
|
234
252
|
end
|
235
253
|
|
@@ -239,7 +257,11 @@ module PulpAnsibleClient
|
|
239
257
|
# Custom attribute writer method with validation
|
240
258
|
# @param [Object] description Value to be assigned
|
241
259
|
def description=(description)
|
242
|
-
if
|
260
|
+
if description.nil?
|
261
|
+
fail ArgumentError, 'description cannot be nil'
|
262
|
+
end
|
263
|
+
|
264
|
+
if description.to_s.length > 256
|
243
265
|
fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 256.'
|
244
266
|
end
|
245
267
|
|
@@ -249,7 +271,11 @@ module PulpAnsibleClient
|
|
249
271
|
# Custom attribute writer method with validation
|
250
272
|
# @param [Object] avatar_sha256 Value to be assigned
|
251
273
|
def avatar_sha256=(avatar_sha256)
|
252
|
-
if
|
274
|
+
if avatar_sha256.nil?
|
275
|
+
fail ArgumentError, 'avatar_sha256 cannot be nil'
|
276
|
+
end
|
277
|
+
|
278
|
+
if avatar_sha256.to_s.length > 64
|
253
279
|
fail ArgumentError, 'invalid value for "avatar_sha256", the character length must be smaller than or equal to 64.'
|
254
280
|
end
|
255
281
|
|
@@ -289,37 +315,33 @@ module PulpAnsibleClient
|
|
289
315
|
# @param [Hash] attributes Model attributes in the form of hash
|
290
316
|
# @return [Object] Returns the model itself
|
291
317
|
def self.build_from_hash(attributes)
|
292
|
-
new.build_from_hash(attributes)
|
293
|
-
end
|
294
|
-
|
295
|
-
# Builds the object from hash
|
296
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
297
|
-
# @return [Object] Returns the model itself
|
298
|
-
def build_from_hash(attributes)
|
299
318
|
return nil unless attributes.is_a?(Hash)
|
300
|
-
|
301
|
-
|
319
|
+
attributes = attributes.transform_keys(&:to_sym)
|
320
|
+
transformed_hash = {}
|
321
|
+
openapi_types.each_pair do |key, type|
|
322
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
323
|
+
transformed_hash["#{key}"] = nil
|
324
|
+
elsif type =~ /\AArray<(.*)>/i
|
302
325
|
# check to ensure the input is an array given that the attribute
|
303
326
|
# is documented as an array but the input is not
|
304
|
-
if attributes[
|
305
|
-
|
327
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
328
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
306
329
|
end
|
307
|
-
elsif !attributes[
|
308
|
-
|
309
|
-
end
|
330
|
+
elsif !attributes[attribute_map[key]].nil?
|
331
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
332
|
+
end
|
310
333
|
end
|
311
|
-
|
312
|
-
self
|
334
|
+
new(transformed_hash)
|
313
335
|
end
|
314
336
|
|
315
337
|
# Deserializes the data based on type
|
316
338
|
# @param string type Data type
|
317
339
|
# @param string value Value to be deserialized
|
318
340
|
# @return [Object] Deserialized data
|
319
|
-
def _deserialize(type, value)
|
341
|
+
def self._deserialize(type, value)
|
320
342
|
case type.to_sym
|
321
|
-
when :
|
322
|
-
|
343
|
+
when :Time
|
344
|
+
Time.parse(value)
|
323
345
|
when :Date
|
324
346
|
Date.parse(value)
|
325
347
|
when :String
|
@@ -349,7 +371,9 @@ module PulpAnsibleClient
|
|
349
371
|
end
|
350
372
|
end
|
351
373
|
else # model
|
352
|
-
|
374
|
+
# models (e.g. Pet) or oneOf
|
375
|
+
klass = PulpAnsibleClient.const_get(type)
|
376
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
353
377
|
end
|
354
378
|
end
|
355
379
|
|
@@ -375,7 +399,7 @@ module PulpAnsibleClient
|
|
375
399
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
376
400
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
377
401
|
end
|
378
|
-
|
402
|
+
|
379
403
|
hash[param] = _to_hash(value)
|
380
404
|
end
|
381
405
|
hash
|
@@ -398,5 +422,7 @@ module PulpAnsibleClient
|
|
398
422
|
value
|
399
423
|
end
|
400
424
|
end
|
425
|
+
|
401
426
|
end
|
427
|
+
|
402
428
|
end
|