pulp_ansible_client 0.23.0 → 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 +23 -17
- 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 +89 -51
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +34 -24
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +298 -282
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +196 -184
- 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 +49 -33
- 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 +58 -42
- 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 +291 -271
- 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 +5 -5
- 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 +48 -53
- data/spec/models/ansible_git_remote_spec.rb +48 -53
- 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 +13 -18
- 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 +48 -53
- 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 Ansible Remotes.
|
@@ -52,7 +53,7 @@ module PulpAnsibleClient
|
|
52
53
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
53
54
|
attr_accessor :max_retries
|
54
55
|
|
55
|
-
# The policy to use when downloading content. * `immediate` -
|
56
|
+
# The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.
|
56
57
|
attr_accessor :policy
|
57
58
|
|
58
59
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
@@ -76,6 +77,28 @@ module PulpAnsibleClient
|
|
76
77
|
# List of hidden (write only) fields
|
77
78
|
attr_accessor :hidden_fields
|
78
79
|
|
80
|
+
class EnumAttributeValidator
|
81
|
+
attr_reader :datatype
|
82
|
+
attr_reader :allowable_values
|
83
|
+
|
84
|
+
def initialize(datatype, allowable_values)
|
85
|
+
@allowable_values = allowable_values.map do |value|
|
86
|
+
case datatype.to_s
|
87
|
+
when /Integer/i
|
88
|
+
value.to_i
|
89
|
+
when /Float/i
|
90
|
+
value.to_f
|
91
|
+
else
|
92
|
+
value
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
def valid?(value)
|
98
|
+
!value || allowable_values.include?(value)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
79
102
|
# Attribute mapping from ruby-style variable name to JSON key.
|
80
103
|
def self.attribute_map
|
81
104
|
{
|
@@ -103,13 +126,18 @@ module PulpAnsibleClient
|
|
103
126
|
}
|
104
127
|
end
|
105
128
|
|
129
|
+
# Returns all the JSON keys this model knows about
|
130
|
+
def self.acceptable_attributes
|
131
|
+
attribute_map.values
|
132
|
+
end
|
133
|
+
|
106
134
|
# Attribute type mapping.
|
107
135
|
def self.openapi_types
|
108
136
|
{
|
109
137
|
:'pulp_href' => :'String',
|
110
138
|
:'prn' => :'String',
|
111
|
-
:'pulp_created' => :'
|
112
|
-
:'pulp_last_updated' => :'
|
139
|
+
:'pulp_created' => :'Time',
|
140
|
+
:'pulp_last_updated' => :'Time',
|
113
141
|
:'name' => :'String',
|
114
142
|
:'url' => :'String',
|
115
143
|
:'ca_cert' => :'String',
|
@@ -126,7 +154,7 @@ module PulpAnsibleClient
|
|
126
154
|
:'sock_read_timeout' => :'Float',
|
127
155
|
:'headers' => :'Array<Object>',
|
128
156
|
:'rate_limit' => :'Integer',
|
129
|
-
:'hidden_fields' => :'Array<
|
157
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>'
|
130
158
|
}
|
131
159
|
end
|
132
160
|
|
@@ -179,10 +207,14 @@ module PulpAnsibleClient
|
|
179
207
|
|
180
208
|
if attributes.key?(:'name')
|
181
209
|
self.name = attributes[:'name']
|
210
|
+
else
|
211
|
+
self.name = nil
|
182
212
|
end
|
183
213
|
|
184
214
|
if attributes.key?(:'url')
|
185
215
|
self.url = attributes[:'url']
|
216
|
+
else
|
217
|
+
self.url = nil
|
186
218
|
end
|
187
219
|
|
188
220
|
if attributes.key?(:'ca_cert')
|
@@ -255,6 +287,7 @@ module PulpAnsibleClient
|
|
255
287
|
# Show invalid properties with the reasons. Usually used together with valid?
|
256
288
|
# @return Array for valid properties with the reasons
|
257
289
|
def list_invalid_properties
|
290
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
258
291
|
invalid_properties = Array.new
|
259
292
|
if @name.nil?
|
260
293
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -268,20 +301,20 @@ module PulpAnsibleClient
|
|
268
301
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
269
302
|
end
|
270
303
|
|
271
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
272
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
304
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
305
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
273
306
|
end
|
274
307
|
|
275
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
276
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
308
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
309
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
277
310
|
end
|
278
311
|
|
279
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
280
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
312
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
313
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
281
314
|
end
|
282
315
|
|
283
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
284
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
316
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
317
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
285
318
|
end
|
286
319
|
|
287
320
|
invalid_properties
|
@@ -290,13 +323,14 @@ module PulpAnsibleClient
|
|
290
323
|
# Check to see if the all the properties in the model are valid
|
291
324
|
# @return true if the model is valid
|
292
325
|
def valid?
|
326
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
293
327
|
return false if @name.nil?
|
294
328
|
return false if @url.nil?
|
295
329
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
296
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
297
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
298
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
299
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
330
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
331
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
332
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
333
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
300
334
|
true
|
301
335
|
end
|
302
336
|
|
@@ -313,8 +347,8 @@ module PulpAnsibleClient
|
|
313
347
|
# Custom attribute writer method with validation
|
314
348
|
# @param [Object] total_timeout Value to be assigned
|
315
349
|
def total_timeout=(total_timeout)
|
316
|
-
if !total_timeout.nil? && total_timeout < 0
|
317
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
350
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
351
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
318
352
|
end
|
319
353
|
|
320
354
|
@total_timeout = total_timeout
|
@@ -323,8 +357,8 @@ module PulpAnsibleClient
|
|
323
357
|
# Custom attribute writer method with validation
|
324
358
|
# @param [Object] connect_timeout Value to be assigned
|
325
359
|
def connect_timeout=(connect_timeout)
|
326
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
327
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
360
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
361
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
328
362
|
end
|
329
363
|
|
330
364
|
@connect_timeout = connect_timeout
|
@@ -333,8 +367,8 @@ module PulpAnsibleClient
|
|
333
367
|
# Custom attribute writer method with validation
|
334
368
|
# @param [Object] sock_connect_timeout Value to be assigned
|
335
369
|
def sock_connect_timeout=(sock_connect_timeout)
|
336
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
337
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
370
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
371
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
338
372
|
end
|
339
373
|
|
340
374
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -343,8 +377,8 @@ module PulpAnsibleClient
|
|
343
377
|
# Custom attribute writer method with validation
|
344
378
|
# @param [Object] sock_read_timeout Value to be assigned
|
345
379
|
def sock_read_timeout=(sock_read_timeout)
|
346
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
347
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
380
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
381
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
348
382
|
end
|
349
383
|
|
350
384
|
@sock_read_timeout = sock_read_timeout
|
@@ -394,37 +428,33 @@ module PulpAnsibleClient
|
|
394
428
|
# @param [Hash] attributes Model attributes in the form of hash
|
395
429
|
# @return [Object] Returns the model itself
|
396
430
|
def self.build_from_hash(attributes)
|
397
|
-
new.build_from_hash(attributes)
|
398
|
-
end
|
399
|
-
|
400
|
-
# Builds the object from hash
|
401
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
402
|
-
# @return [Object] Returns the model itself
|
403
|
-
def build_from_hash(attributes)
|
404
431
|
return nil unless attributes.is_a?(Hash)
|
405
|
-
|
406
|
-
|
432
|
+
attributes = attributes.transform_keys(&:to_sym)
|
433
|
+
transformed_hash = {}
|
434
|
+
openapi_types.each_pair do |key, type|
|
435
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
436
|
+
transformed_hash["#{key}"] = nil
|
437
|
+
elsif type =~ /\AArray<(.*)>/i
|
407
438
|
# check to ensure the input is an array given that the attribute
|
408
439
|
# is documented as an array but the input is not
|
409
|
-
if attributes[
|
410
|
-
|
440
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
441
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
411
442
|
end
|
412
|
-
elsif !attributes[
|
413
|
-
|
414
|
-
end
|
443
|
+
elsif !attributes[attribute_map[key]].nil?
|
444
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
445
|
+
end
|
415
446
|
end
|
416
|
-
|
417
|
-
self
|
447
|
+
new(transformed_hash)
|
418
448
|
end
|
419
449
|
|
420
450
|
# Deserializes the data based on type
|
421
451
|
# @param string type Data type
|
422
452
|
# @param string value Value to be deserialized
|
423
453
|
# @return [Object] Deserialized data
|
424
|
-
def _deserialize(type, value)
|
454
|
+
def self._deserialize(type, value)
|
425
455
|
case type.to_sym
|
426
|
-
when :
|
427
|
-
|
456
|
+
when :Time
|
457
|
+
Time.parse(value)
|
428
458
|
when :Date
|
429
459
|
Date.parse(value)
|
430
460
|
when :String
|
@@ -454,7 +484,9 @@ module PulpAnsibleClient
|
|
454
484
|
end
|
455
485
|
end
|
456
486
|
else # model
|
457
|
-
|
487
|
+
# models (e.g. Pet) or oneOf
|
488
|
+
klass = PulpAnsibleClient.const_get(type)
|
489
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
458
490
|
end
|
459
491
|
end
|
460
492
|
|
@@ -480,7 +512,7 @@ module PulpAnsibleClient
|
|
480
512
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
481
513
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
482
514
|
end
|
483
|
-
|
515
|
+
|
484
516
|
hash[param] = _to_hash(value)
|
485
517
|
end
|
486
518
|
hash
|
@@ -503,5 +535,7 @@ module PulpAnsibleClient
|
|
503
535
|
value
|
504
536
|
end
|
505
537
|
end
|
538
|
+
|
506
539
|
end
|
540
|
+
|
507
541
|
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 Role versions.
|
@@ -18,17 +19,17 @@ module PulpAnsibleClient
|
|
18
19
|
# The Pulp Resource Name (PRN).
|
19
20
|
attr_accessor :prn
|
20
21
|
|
21
|
-
# Artifact file representing the physical content
|
22
|
-
attr_accessor :artifact
|
23
|
-
|
24
|
-
attr_accessor :pulp_href
|
25
|
-
|
26
22
|
# Timestamp of creation.
|
27
23
|
attr_accessor :pulp_created
|
28
24
|
|
25
|
+
# Artifact file representing the physical content
|
26
|
+
attr_accessor :artifact
|
27
|
+
|
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
|
attr_accessor :version
|
33
34
|
|
34
35
|
attr_accessor :name
|
@@ -39,24 +40,29 @@ module PulpAnsibleClient
|
|
39
40
|
def self.attribute_map
|
40
41
|
{
|
41
42
|
:'prn' => :'prn',
|
42
|
-
:'artifact' => :'artifact',
|
43
|
-
:'pulp_href' => :'pulp_href',
|
44
43
|
:'pulp_created' => :'pulp_created',
|
44
|
+
:'artifact' => :'artifact',
|
45
45
|
:'pulp_last_updated' => :'pulp_last_updated',
|
46
|
+
:'pulp_href' => :'pulp_href',
|
46
47
|
:'version' => :'version',
|
47
48
|
:'name' => :'name',
|
48
49
|
:'namespace' => :'namespace'
|
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
|
{
|
55
61
|
:'prn' => :'String',
|
62
|
+
:'pulp_created' => :'Time',
|
56
63
|
:'artifact' => :'String',
|
64
|
+
:'pulp_last_updated' => :'Time',
|
57
65
|
:'pulp_href' => :'String',
|
58
|
-
:'pulp_created' => :'DateTime',
|
59
|
-
:'pulp_last_updated' => :'DateTime',
|
60
66
|
:'version' => :'String',
|
61
67
|
:'name' => :'String',
|
62
68
|
:'namespace' => :'String'
|
@@ -88,38 +94,47 @@ module PulpAnsibleClient
|
|
88
94
|
self.prn = attributes[:'prn']
|
89
95
|
end
|
90
96
|
|
91
|
-
if attributes.key?(:'artifact')
|
92
|
-
self.artifact = attributes[:'artifact']
|
93
|
-
end
|
94
|
-
|
95
|
-
if attributes.key?(:'pulp_href')
|
96
|
-
self.pulp_href = attributes[:'pulp_href']
|
97
|
-
end
|
98
|
-
|
99
97
|
if attributes.key?(:'pulp_created')
|
100
98
|
self.pulp_created = attributes[:'pulp_created']
|
101
99
|
end
|
102
100
|
|
101
|
+
if attributes.key?(:'artifact')
|
102
|
+
self.artifact = attributes[:'artifact']
|
103
|
+
else
|
104
|
+
self.artifact = nil
|
105
|
+
end
|
106
|
+
|
103
107
|
if attributes.key?(:'pulp_last_updated')
|
104
108
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
105
109
|
end
|
106
110
|
|
111
|
+
if attributes.key?(:'pulp_href')
|
112
|
+
self.pulp_href = attributes[:'pulp_href']
|
113
|
+
end
|
114
|
+
|
107
115
|
if attributes.key?(:'version')
|
108
116
|
self.version = attributes[:'version']
|
117
|
+
else
|
118
|
+
self.version = nil
|
109
119
|
end
|
110
120
|
|
111
121
|
if attributes.key?(:'name')
|
112
122
|
self.name = attributes[:'name']
|
123
|
+
else
|
124
|
+
self.name = nil
|
113
125
|
end
|
114
126
|
|
115
127
|
if attributes.key?(:'namespace')
|
116
128
|
self.namespace = attributes[:'namespace']
|
129
|
+
else
|
130
|
+
self.namespace = nil
|
117
131
|
end
|
118
132
|
end
|
119
133
|
|
120
134
|
# Show invalid properties with the reasons. Usually used together with valid?
|
121
135
|
# @return Array for valid properties with the reasons
|
122
136
|
def list_invalid_properties
|
137
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
123
138
|
invalid_properties = Array.new
|
124
139
|
if @artifact.nil?
|
125
140
|
invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
|
@@ -143,6 +158,7 @@ module PulpAnsibleClient
|
|
143
158
|
# Check to see if the all the properties in the model are valid
|
144
159
|
# @return true if the model is valid
|
145
160
|
def valid?
|
161
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
146
162
|
return false if @artifact.nil?
|
147
163
|
return false if @version.nil?
|
148
164
|
return false if @name.nil?
|
@@ -156,10 +172,10 @@ module PulpAnsibleClient
|
|
156
172
|
return true if self.equal?(o)
|
157
173
|
self.class == o.class &&
|
158
174
|
prn == o.prn &&
|
159
|
-
artifact == o.artifact &&
|
160
|
-
pulp_href == o.pulp_href &&
|
161
175
|
pulp_created == o.pulp_created &&
|
176
|
+
artifact == o.artifact &&
|
162
177
|
pulp_last_updated == o.pulp_last_updated &&
|
178
|
+
pulp_href == o.pulp_href &&
|
163
179
|
version == o.version &&
|
164
180
|
name == o.name &&
|
165
181
|
namespace == o.namespace
|
@@ -174,44 +190,40 @@ module PulpAnsibleClient
|
|
174
190
|
# Calculates hash code according to all attributes.
|
175
191
|
# @return [Integer] Hash code
|
176
192
|
def hash
|
177
|
-
[prn,
|
193
|
+
[prn, pulp_created, artifact, pulp_last_updated, pulp_href, version, name, namespace].hash
|
178
194
|
end
|
179
195
|
|
180
196
|
# Builds the object from hash
|
181
197
|
# @param [Hash] attributes Model attributes in the form of hash
|
182
198
|
# @return [Object] Returns the model itself
|
183
199
|
def self.build_from_hash(attributes)
|
184
|
-
new.build_from_hash(attributes)
|
185
|
-
end
|
186
|
-
|
187
|
-
# Builds the object from hash
|
188
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
189
|
-
# @return [Object] Returns the model itself
|
190
|
-
def build_from_hash(attributes)
|
191
200
|
return nil unless attributes.is_a?(Hash)
|
192
|
-
|
193
|
-
|
201
|
+
attributes = attributes.transform_keys(&:to_sym)
|
202
|
+
transformed_hash = {}
|
203
|
+
openapi_types.each_pair do |key, type|
|
204
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
205
|
+
transformed_hash["#{key}"] = nil
|
206
|
+
elsif type =~ /\AArray<(.*)>/i
|
194
207
|
# check to ensure the input is an array given that the attribute
|
195
208
|
# is documented as an array but the input is not
|
196
|
-
if attributes[
|
197
|
-
|
209
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
210
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
198
211
|
end
|
199
|
-
elsif !attributes[
|
200
|
-
|
201
|
-
end
|
212
|
+
elsif !attributes[attribute_map[key]].nil?
|
213
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
214
|
+
end
|
202
215
|
end
|
203
|
-
|
204
|
-
self
|
216
|
+
new(transformed_hash)
|
205
217
|
end
|
206
218
|
|
207
219
|
# Deserializes the data based on type
|
208
220
|
# @param string type Data type
|
209
221
|
# @param string value Value to be deserialized
|
210
222
|
# @return [Object] Deserialized data
|
211
|
-
def _deserialize(type, value)
|
223
|
+
def self._deserialize(type, value)
|
212
224
|
case type.to_sym
|
213
|
-
when :
|
214
|
-
|
225
|
+
when :Time
|
226
|
+
Time.parse(value)
|
215
227
|
when :Date
|
216
228
|
Date.parse(value)
|
217
229
|
when :String
|
@@ -241,7 +253,9 @@ module PulpAnsibleClient
|
|
241
253
|
end
|
242
254
|
end
|
243
255
|
else # model
|
244
|
-
|
256
|
+
# models (e.g. Pet) or oneOf
|
257
|
+
klass = PulpAnsibleClient.const_get(type)
|
258
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
245
259
|
end
|
246
260
|
end
|
247
261
|
|
@@ -267,7 +281,7 @@ module PulpAnsibleClient
|
|
267
281
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
268
282
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
269
283
|
end
|
270
|
-
|
284
|
+
|
271
285
|
hash[param] = _to_hash(value)
|
272
286
|
end
|
273
287
|
hash
|
@@ -290,5 +304,7 @@ module PulpAnsibleClient
|
|
290
304
|
value
|
291
305
|
end
|
292
306
|
end
|
307
|
+
|
293
308
|
end
|
309
|
+
|
294
310
|
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 nesting in the CollectionVersion model.
|
@@ -25,6 +26,11 @@ module PulpAnsibleClient
|
|
25
26
|
}
|
26
27
|
end
|
27
28
|
|
29
|
+
# Returns all the JSON keys this model knows about
|
30
|
+
def self.acceptable_attributes
|
31
|
+
attribute_map.values
|
32
|
+
end
|
33
|
+
|
28
34
|
# Attribute type mapping.
|
29
35
|
def self.openapi_types
|
30
36
|
{
|
@@ -61,6 +67,7 @@ module PulpAnsibleClient
|
|
61
67
|
# Show invalid properties with the reasons. Usually used together with valid?
|
62
68
|
# @return Array for valid properties with the reasons
|
63
69
|
def list_invalid_properties
|
70
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
64
71
|
invalid_properties = Array.new
|
65
72
|
invalid_properties
|
66
73
|
end
|
@@ -68,6 +75,7 @@ module PulpAnsibleClient
|
|
68
75
|
# Check to see if the all the properties in the model are valid
|
69
76
|
# @return true if the model is valid
|
70
77
|
def valid?
|
78
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
71
79
|
true
|
72
80
|
end
|
73
81
|
|
@@ -95,37 +103,33 @@ module PulpAnsibleClient
|
|
95
103
|
# @param [Hash] attributes Model attributes in the form of hash
|
96
104
|
# @return [Object] Returns the model itself
|
97
105
|
def self.build_from_hash(attributes)
|
98
|
-
new.build_from_hash(attributes)
|
99
|
-
end
|
100
|
-
|
101
|
-
# Builds the object from hash
|
102
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
-
# @return [Object] Returns the model itself
|
104
|
-
def build_from_hash(attributes)
|
105
106
|
return nil unless attributes.is_a?(Hash)
|
106
|
-
|
107
|
-
|
107
|
+
attributes = attributes.transform_keys(&:to_sym)
|
108
|
+
transformed_hash = {}
|
109
|
+
openapi_types.each_pair do |key, type|
|
110
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
111
|
+
transformed_hash["#{key}"] = nil
|
112
|
+
elsif type =~ /\AArray<(.*)>/i
|
108
113
|
# check to ensure the input is an array given that the attribute
|
109
114
|
# is documented as an array but the input is not
|
110
|
-
if attributes[
|
111
|
-
|
115
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
116
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
112
117
|
end
|
113
|
-
elsif !attributes[
|
114
|
-
|
115
|
-
end
|
118
|
+
elsif !attributes[attribute_map[key]].nil?
|
119
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
120
|
+
end
|
116
121
|
end
|
117
|
-
|
118
|
-
self
|
122
|
+
new(transformed_hash)
|
119
123
|
end
|
120
124
|
|
121
125
|
# Deserializes the data based on type
|
122
126
|
# @param string type Data type
|
123
127
|
# @param string value Value to be deserialized
|
124
128
|
# @return [Object] Deserialized data
|
125
|
-
def _deserialize(type, value)
|
129
|
+
def self._deserialize(type, value)
|
126
130
|
case type.to_sym
|
127
|
-
when :
|
128
|
-
|
131
|
+
when :Time
|
132
|
+
Time.parse(value)
|
129
133
|
when :Date
|
130
134
|
Date.parse(value)
|
131
135
|
when :String
|
@@ -155,7 +159,9 @@ module PulpAnsibleClient
|
|
155
159
|
end
|
156
160
|
end
|
157
161
|
else # model
|
158
|
-
|
162
|
+
# models (e.g. Pet) or oneOf
|
163
|
+
klass = PulpAnsibleClient.const_get(type)
|
164
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
159
165
|
end
|
160
166
|
end
|
161
167
|
|
@@ -181,7 +187,7 @@ module PulpAnsibleClient
|
|
181
187
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
182
188
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
183
189
|
end
|
184
|
-
|
190
|
+
|
185
191
|
hash[param] = _to_hash(value)
|
186
192
|
end
|
187
193
|
hash
|
@@ -204,5 +210,7 @@ module PulpAnsibleClient
|
|
204
210
|
value
|
205
211
|
end
|
206
212
|
end
|
213
|
+
|
207
214
|
end
|
215
|
+
|
208
216
|
end
|