pulp_ansible_client 0.23.1 → 0.24.1
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 +120 -70
- 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 +94 -56
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +34 -24
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +283 -267
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +195 -183
- 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 +56 -40
- 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 +280 -260
- 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 +48 -53
- 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 +17 -22
- 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
@@ -1,313 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
Contact: pulp-list@redhat.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module PulpAnsibleClient
|
16
|
-
# A serializer for the Collection One Shot Upload API.
|
17
|
-
class CollectionOneShot
|
18
|
-
# The Collection tarball.
|
19
|
-
attr_accessor :file
|
20
|
-
|
21
|
-
# An optional sha256 checksum of the uploaded file.
|
22
|
-
attr_accessor :sha256
|
23
|
-
|
24
|
-
# The expected 'namespace' of the Collection to be verified against the metadata during import.
|
25
|
-
attr_accessor :expected_namespace
|
26
|
-
|
27
|
-
# The expected 'name' of the Collection to be verified against the metadata during import.
|
28
|
-
attr_accessor :expected_name
|
29
|
-
|
30
|
-
# The expected version of the Collection to be verified against the metadata during import.
|
31
|
-
attr_accessor :expected_version
|
32
|
-
|
33
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
-
def self.attribute_map
|
35
|
-
{
|
36
|
-
:'file' => :'file',
|
37
|
-
:'sha256' => :'sha256',
|
38
|
-
:'expected_namespace' => :'expected_namespace',
|
39
|
-
:'expected_name' => :'expected_name',
|
40
|
-
:'expected_version' => :'expected_version'
|
41
|
-
}
|
42
|
-
end
|
43
|
-
|
44
|
-
# Attribute type mapping.
|
45
|
-
def self.openapi_types
|
46
|
-
{
|
47
|
-
:'file' => :'File',
|
48
|
-
:'sha256' => :'String',
|
49
|
-
:'expected_namespace' => :'String',
|
50
|
-
:'expected_name' => :'String',
|
51
|
-
:'expected_version' => :'String'
|
52
|
-
}
|
53
|
-
end
|
54
|
-
|
55
|
-
# List of attributes with nullable: true
|
56
|
-
def self.openapi_nullable
|
57
|
-
Set.new([
|
58
|
-
])
|
59
|
-
end
|
60
|
-
|
61
|
-
# Initializes the object
|
62
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
63
|
-
def initialize(attributes = {})
|
64
|
-
if (!attributes.is_a?(Hash))
|
65
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::CollectionOneShot` initialize method"
|
66
|
-
end
|
67
|
-
|
68
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
69
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
71
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::CollectionOneShot`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
72
|
-
end
|
73
|
-
h[k.to_sym] = v
|
74
|
-
}
|
75
|
-
|
76
|
-
if attributes.key?(:'file')
|
77
|
-
self.file = attributes[:'file']
|
78
|
-
end
|
79
|
-
|
80
|
-
if attributes.key?(:'sha256')
|
81
|
-
self.sha256 = attributes[:'sha256']
|
82
|
-
end
|
83
|
-
|
84
|
-
if attributes.key?(:'expected_namespace')
|
85
|
-
self.expected_namespace = attributes[:'expected_namespace']
|
86
|
-
end
|
87
|
-
|
88
|
-
if attributes.key?(:'expected_name')
|
89
|
-
self.expected_name = attributes[:'expected_name']
|
90
|
-
end
|
91
|
-
|
92
|
-
if attributes.key?(:'expected_version')
|
93
|
-
self.expected_version = attributes[:'expected_version']
|
94
|
-
end
|
95
|
-
end
|
96
|
-
|
97
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
98
|
-
# @return Array for valid properties with the reasons
|
99
|
-
def list_invalid_properties
|
100
|
-
invalid_properties = Array.new
|
101
|
-
if @file.nil?
|
102
|
-
invalid_properties.push('invalid value for "file", file cannot be nil.')
|
103
|
-
end
|
104
|
-
|
105
|
-
if !@sha256.nil? && @sha256.to_s.length < 1
|
106
|
-
invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
|
107
|
-
end
|
108
|
-
|
109
|
-
if !@expected_namespace.nil? && @expected_namespace.to_s.length < 1
|
110
|
-
invalid_properties.push('invalid value for "expected_namespace", the character length must be great than or equal to 1.')
|
111
|
-
end
|
112
|
-
|
113
|
-
if !@expected_name.nil? && @expected_name.to_s.length < 1
|
114
|
-
invalid_properties.push('invalid value for "expected_name", the character length must be great than or equal to 1.')
|
115
|
-
end
|
116
|
-
|
117
|
-
if !@expected_version.nil? && @expected_version.to_s.length < 1
|
118
|
-
invalid_properties.push('invalid value for "expected_version", the character length must be great than or equal to 1.')
|
119
|
-
end
|
120
|
-
|
121
|
-
invalid_properties
|
122
|
-
end
|
123
|
-
|
124
|
-
# Check to see if the all the properties in the model are valid
|
125
|
-
# @return true if the model is valid
|
126
|
-
def valid?
|
127
|
-
return false if @file.nil?
|
128
|
-
return false if !@sha256.nil? && @sha256.to_s.length < 1
|
129
|
-
return false if !@expected_namespace.nil? && @expected_namespace.to_s.length < 1
|
130
|
-
return false if !@expected_name.nil? && @expected_name.to_s.length < 1
|
131
|
-
return false if !@expected_version.nil? && @expected_version.to_s.length < 1
|
132
|
-
true
|
133
|
-
end
|
134
|
-
|
135
|
-
# Custom attribute writer method with validation
|
136
|
-
# @param [Object] sha256 Value to be assigned
|
137
|
-
def sha256=(sha256)
|
138
|
-
if !sha256.nil? && sha256.to_s.length < 1
|
139
|
-
fail ArgumentError, 'invalid value for "sha256", the character length must be great than or equal to 1.'
|
140
|
-
end
|
141
|
-
|
142
|
-
@sha256 = sha256
|
143
|
-
end
|
144
|
-
|
145
|
-
# Custom attribute writer method with validation
|
146
|
-
# @param [Object] expected_namespace Value to be assigned
|
147
|
-
def expected_namespace=(expected_namespace)
|
148
|
-
if !expected_namespace.nil? && expected_namespace.to_s.length < 1
|
149
|
-
fail ArgumentError, 'invalid value for "expected_namespace", the character length must be great than or equal to 1.'
|
150
|
-
end
|
151
|
-
|
152
|
-
@expected_namespace = expected_namespace
|
153
|
-
end
|
154
|
-
|
155
|
-
# Custom attribute writer method with validation
|
156
|
-
# @param [Object] expected_name Value to be assigned
|
157
|
-
def expected_name=(expected_name)
|
158
|
-
if !expected_name.nil? && expected_name.to_s.length < 1
|
159
|
-
fail ArgumentError, 'invalid value for "expected_name", the character length must be great than or equal to 1.'
|
160
|
-
end
|
161
|
-
|
162
|
-
@expected_name = expected_name
|
163
|
-
end
|
164
|
-
|
165
|
-
# Custom attribute writer method with validation
|
166
|
-
# @param [Object] expected_version Value to be assigned
|
167
|
-
def expected_version=(expected_version)
|
168
|
-
if !expected_version.nil? && expected_version.to_s.length < 1
|
169
|
-
fail ArgumentError, 'invalid value for "expected_version", the character length must be great than or equal to 1.'
|
170
|
-
end
|
171
|
-
|
172
|
-
@expected_version = expected_version
|
173
|
-
end
|
174
|
-
|
175
|
-
# Checks equality by comparing each attribute.
|
176
|
-
# @param [Object] Object to be compared
|
177
|
-
def ==(o)
|
178
|
-
return true if self.equal?(o)
|
179
|
-
self.class == o.class &&
|
180
|
-
file == o.file &&
|
181
|
-
sha256 == o.sha256 &&
|
182
|
-
expected_namespace == o.expected_namespace &&
|
183
|
-
expected_name == o.expected_name &&
|
184
|
-
expected_version == o.expected_version
|
185
|
-
end
|
186
|
-
|
187
|
-
# @see the `==` method
|
188
|
-
# @param [Object] Object to be compared
|
189
|
-
def eql?(o)
|
190
|
-
self == o
|
191
|
-
end
|
192
|
-
|
193
|
-
# Calculates hash code according to all attributes.
|
194
|
-
# @return [Integer] Hash code
|
195
|
-
def hash
|
196
|
-
[file, sha256, expected_namespace, expected_name, expected_version].hash
|
197
|
-
end
|
198
|
-
|
199
|
-
# Builds the object from hash
|
200
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
201
|
-
# @return [Object] Returns the model itself
|
202
|
-
def self.build_from_hash(attributes)
|
203
|
-
new.build_from_hash(attributes)
|
204
|
-
end
|
205
|
-
|
206
|
-
# Builds the object from hash
|
207
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
208
|
-
# @return [Object] Returns the model itself
|
209
|
-
def build_from_hash(attributes)
|
210
|
-
return nil unless attributes.is_a?(Hash)
|
211
|
-
self.class.openapi_types.each_pair do |key, type|
|
212
|
-
if type =~ /\AArray<(.*)>/i
|
213
|
-
# check to ensure the input is an array given that the attribute
|
214
|
-
# is documented as an array but the input is not
|
215
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
216
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
217
|
-
end
|
218
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
219
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
220
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
221
|
-
end
|
222
|
-
|
223
|
-
self
|
224
|
-
end
|
225
|
-
|
226
|
-
# Deserializes the data based on type
|
227
|
-
# @param string type Data type
|
228
|
-
# @param string value Value to be deserialized
|
229
|
-
# @return [Object] Deserialized data
|
230
|
-
def _deserialize(type, value)
|
231
|
-
case type.to_sym
|
232
|
-
when :DateTime
|
233
|
-
DateTime.parse(value)
|
234
|
-
when :Date
|
235
|
-
Date.parse(value)
|
236
|
-
when :String
|
237
|
-
value.to_s
|
238
|
-
when :Integer
|
239
|
-
value.to_i
|
240
|
-
when :Float
|
241
|
-
value.to_f
|
242
|
-
when :Boolean
|
243
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
244
|
-
true
|
245
|
-
else
|
246
|
-
false
|
247
|
-
end
|
248
|
-
when :Object
|
249
|
-
# generic object (usually a Hash), return directly
|
250
|
-
value
|
251
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
252
|
-
inner_type = Regexp.last_match[:inner_type]
|
253
|
-
value.map { |v| _deserialize(inner_type, v) }
|
254
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
255
|
-
k_type = Regexp.last_match[:k_type]
|
256
|
-
v_type = Regexp.last_match[:v_type]
|
257
|
-
{}.tap do |hash|
|
258
|
-
value.each do |k, v|
|
259
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
260
|
-
end
|
261
|
-
end
|
262
|
-
else # model
|
263
|
-
PulpAnsibleClient.const_get(type).build_from_hash(value)
|
264
|
-
end
|
265
|
-
end
|
266
|
-
|
267
|
-
# Returns the string representation of the object
|
268
|
-
# @return [String] String presentation of the object
|
269
|
-
def to_s
|
270
|
-
to_hash.to_s
|
271
|
-
end
|
272
|
-
|
273
|
-
# to_body is an alias to to_hash (backward compatibility)
|
274
|
-
# @return [Hash] Returns the object in the form of hash
|
275
|
-
def to_body
|
276
|
-
to_hash
|
277
|
-
end
|
278
|
-
|
279
|
-
# Returns the object in the form of hash
|
280
|
-
# @return [Hash] Returns the object in the form of hash
|
281
|
-
def to_hash
|
282
|
-
hash = {}
|
283
|
-
self.class.attribute_map.each_pair do |attr, param|
|
284
|
-
value = self.send(attr)
|
285
|
-
if value.nil?
|
286
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
287
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
288
|
-
end
|
289
|
-
|
290
|
-
hash[param] = _to_hash(value)
|
291
|
-
end
|
292
|
-
hash
|
293
|
-
end
|
294
|
-
|
295
|
-
# Outputs non-array value in the form of hash
|
296
|
-
# For object, use to_hash. Otherwise, just return the value
|
297
|
-
# @param [Object] value Any valid value
|
298
|
-
# @return [Hash] Returns the value in the form of hash
|
299
|
-
def _to_hash(value)
|
300
|
-
if value.is_a?(Array)
|
301
|
-
value.compact.map { |v| _to_hash(v) }
|
302
|
-
elsif value.is_a?(Hash)
|
303
|
-
{}.tap do |hash|
|
304
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
305
|
-
end
|
306
|
-
elsif value.respond_to? :to_hash
|
307
|
-
value.to_hash
|
308
|
-
else
|
309
|
-
value
|
310
|
-
end
|
311
|
-
end
|
312
|
-
end
|
313
|
-
end
|
@@ -1,350 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
Contact: pulp-list@redhat.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module PulpAnsibleClient
|
16
|
-
# A serializer for Namespaces.
|
17
|
-
class PatchedansibleAnsibleNamespaceMetadata
|
18
|
-
# Required named, only accepts lowercase, numbers and underscores.
|
19
|
-
attr_accessor :name
|
20
|
-
|
21
|
-
# Optional namespace company owner.
|
22
|
-
attr_accessor :company
|
23
|
-
|
24
|
-
# Optional namespace contact email.
|
25
|
-
attr_accessor :email
|
26
|
-
|
27
|
-
# Optional short description.
|
28
|
-
attr_accessor :description
|
29
|
-
|
30
|
-
# Optional resource page in markdown format.
|
31
|
-
attr_accessor :resources
|
32
|
-
|
33
|
-
# Labeled related links.
|
34
|
-
attr_accessor :links
|
35
|
-
|
36
|
-
# Optional avatar image for Namespace
|
37
|
-
attr_accessor :avatar
|
38
|
-
|
39
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
40
|
-
def self.attribute_map
|
41
|
-
{
|
42
|
-
:'name' => :'name',
|
43
|
-
:'company' => :'company',
|
44
|
-
:'email' => :'email',
|
45
|
-
:'description' => :'description',
|
46
|
-
:'resources' => :'resources',
|
47
|
-
:'links' => :'links',
|
48
|
-
:'avatar' => :'avatar'
|
49
|
-
}
|
50
|
-
end
|
51
|
-
|
52
|
-
# Attribute type mapping.
|
53
|
-
def self.openapi_types
|
54
|
-
{
|
55
|
-
:'name' => :'String',
|
56
|
-
:'company' => :'String',
|
57
|
-
:'email' => :'String',
|
58
|
-
:'description' => :'String',
|
59
|
-
:'resources' => :'String',
|
60
|
-
:'links' => :'Array<NamespaceLink>',
|
61
|
-
:'avatar' => :'File'
|
62
|
-
}
|
63
|
-
end
|
64
|
-
|
65
|
-
# List of attributes with nullable: true
|
66
|
-
def self.openapi_nullable
|
67
|
-
Set.new([
|
68
|
-
])
|
69
|
-
end
|
70
|
-
|
71
|
-
# Initializes the object
|
72
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
73
|
-
def initialize(attributes = {})
|
74
|
-
if (!attributes.is_a?(Hash))
|
75
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::PatchedansibleAnsibleNamespaceMetadata` initialize method"
|
76
|
-
end
|
77
|
-
|
78
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
79
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
81
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::PatchedansibleAnsibleNamespaceMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
82
|
-
end
|
83
|
-
h[k.to_sym] = v
|
84
|
-
}
|
85
|
-
|
86
|
-
if attributes.key?(:'name')
|
87
|
-
self.name = attributes[:'name']
|
88
|
-
end
|
89
|
-
|
90
|
-
if attributes.key?(:'company')
|
91
|
-
self.company = attributes[:'company']
|
92
|
-
end
|
93
|
-
|
94
|
-
if attributes.key?(:'email')
|
95
|
-
self.email = attributes[:'email']
|
96
|
-
end
|
97
|
-
|
98
|
-
if attributes.key?(:'description')
|
99
|
-
self.description = attributes[:'description']
|
100
|
-
end
|
101
|
-
|
102
|
-
if attributes.key?(:'resources')
|
103
|
-
self.resources = attributes[:'resources']
|
104
|
-
end
|
105
|
-
|
106
|
-
if attributes.key?(:'links')
|
107
|
-
if (value = attributes[:'links']).is_a?(Array)
|
108
|
-
self.links = value
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
if attributes.key?(:'avatar')
|
113
|
-
self.avatar = attributes[:'avatar']
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
118
|
-
# @return Array for valid properties with the reasons
|
119
|
-
def list_invalid_properties
|
120
|
-
invalid_properties = Array.new
|
121
|
-
if !@name.nil? && @name.to_s.length > 64
|
122
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 64.')
|
123
|
-
end
|
124
|
-
|
125
|
-
if !@name.nil? && @name.to_s.length < 3
|
126
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
|
127
|
-
end
|
128
|
-
|
129
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
|
130
|
-
if !@name.nil? && @name !~ pattern
|
131
|
-
invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
|
132
|
-
end
|
133
|
-
|
134
|
-
if !@company.nil? && @company.to_s.length > 64
|
135
|
-
invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 64.')
|
136
|
-
end
|
137
|
-
|
138
|
-
if !@email.nil? && @email.to_s.length > 256
|
139
|
-
invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 256.')
|
140
|
-
end
|
141
|
-
|
142
|
-
if !@description.nil? && @description.to_s.length > 256
|
143
|
-
invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 256.')
|
144
|
-
end
|
145
|
-
|
146
|
-
invalid_properties
|
147
|
-
end
|
148
|
-
|
149
|
-
# Check to see if the all the properties in the model are valid
|
150
|
-
# @return true if the model is valid
|
151
|
-
def valid?
|
152
|
-
return false if !@name.nil? && @name.to_s.length > 64
|
153
|
-
return false if !@name.nil? && @name.to_s.length < 3
|
154
|
-
return false if !@name.nil? && @name !~ Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
|
155
|
-
return false if !@company.nil? && @company.to_s.length > 64
|
156
|
-
return false if !@email.nil? && @email.to_s.length > 256
|
157
|
-
return false if !@description.nil? && @description.to_s.length > 256
|
158
|
-
true
|
159
|
-
end
|
160
|
-
|
161
|
-
# Custom attribute writer method with validation
|
162
|
-
# @param [Object] name Value to be assigned
|
163
|
-
def name=(name)
|
164
|
-
if !name.nil? && name.to_s.length > 64
|
165
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 64.'
|
166
|
-
end
|
167
|
-
|
168
|
-
if !name.nil? && name.to_s.length < 3
|
169
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
|
170
|
-
end
|
171
|
-
|
172
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
|
173
|
-
if !name.nil? && name !~ pattern
|
174
|
-
fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
|
175
|
-
end
|
176
|
-
|
177
|
-
@name = name
|
178
|
-
end
|
179
|
-
|
180
|
-
# Custom attribute writer method with validation
|
181
|
-
# @param [Object] company Value to be assigned
|
182
|
-
def company=(company)
|
183
|
-
if !company.nil? && company.to_s.length > 64
|
184
|
-
fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 64.'
|
185
|
-
end
|
186
|
-
|
187
|
-
@company = company
|
188
|
-
end
|
189
|
-
|
190
|
-
# Custom attribute writer method with validation
|
191
|
-
# @param [Object] email Value to be assigned
|
192
|
-
def email=(email)
|
193
|
-
if !email.nil? && email.to_s.length > 256
|
194
|
-
fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 256.'
|
195
|
-
end
|
196
|
-
|
197
|
-
@email = email
|
198
|
-
end
|
199
|
-
|
200
|
-
# Custom attribute writer method with validation
|
201
|
-
# @param [Object] description Value to be assigned
|
202
|
-
def description=(description)
|
203
|
-
if !description.nil? && description.to_s.length > 256
|
204
|
-
fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 256.'
|
205
|
-
end
|
206
|
-
|
207
|
-
@description = description
|
208
|
-
end
|
209
|
-
|
210
|
-
# Checks equality by comparing each attribute.
|
211
|
-
# @param [Object] Object to be compared
|
212
|
-
def ==(o)
|
213
|
-
return true if self.equal?(o)
|
214
|
-
self.class == o.class &&
|
215
|
-
name == o.name &&
|
216
|
-
company == o.company &&
|
217
|
-
email == o.email &&
|
218
|
-
description == o.description &&
|
219
|
-
resources == o.resources &&
|
220
|
-
links == o.links &&
|
221
|
-
avatar == o.avatar
|
222
|
-
end
|
223
|
-
|
224
|
-
# @see the `==` method
|
225
|
-
# @param [Object] Object to be compared
|
226
|
-
def eql?(o)
|
227
|
-
self == o
|
228
|
-
end
|
229
|
-
|
230
|
-
# Calculates hash code according to all attributes.
|
231
|
-
# @return [Integer] Hash code
|
232
|
-
def hash
|
233
|
-
[name, company, email, description, resources, links, avatar].hash
|
234
|
-
end
|
235
|
-
|
236
|
-
# Builds the object from hash
|
237
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
238
|
-
# @return [Object] Returns the model itself
|
239
|
-
def self.build_from_hash(attributes)
|
240
|
-
new.build_from_hash(attributes)
|
241
|
-
end
|
242
|
-
|
243
|
-
# Builds the object from hash
|
244
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
245
|
-
# @return [Object] Returns the model itself
|
246
|
-
def build_from_hash(attributes)
|
247
|
-
return nil unless attributes.is_a?(Hash)
|
248
|
-
self.class.openapi_types.each_pair do |key, type|
|
249
|
-
if type =~ /\AArray<(.*)>/i
|
250
|
-
# check to ensure the input is an array given that the attribute
|
251
|
-
# is documented as an array but the input is not
|
252
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
253
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
254
|
-
end
|
255
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
256
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
257
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
258
|
-
end
|
259
|
-
|
260
|
-
self
|
261
|
-
end
|
262
|
-
|
263
|
-
# Deserializes the data based on type
|
264
|
-
# @param string type Data type
|
265
|
-
# @param string value Value to be deserialized
|
266
|
-
# @return [Object] Deserialized data
|
267
|
-
def _deserialize(type, value)
|
268
|
-
case type.to_sym
|
269
|
-
when :DateTime
|
270
|
-
DateTime.parse(value)
|
271
|
-
when :Date
|
272
|
-
Date.parse(value)
|
273
|
-
when :String
|
274
|
-
value.to_s
|
275
|
-
when :Integer
|
276
|
-
value.to_i
|
277
|
-
when :Float
|
278
|
-
value.to_f
|
279
|
-
when :Boolean
|
280
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
281
|
-
true
|
282
|
-
else
|
283
|
-
false
|
284
|
-
end
|
285
|
-
when :Object
|
286
|
-
# generic object (usually a Hash), return directly
|
287
|
-
value
|
288
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
289
|
-
inner_type = Regexp.last_match[:inner_type]
|
290
|
-
value.map { |v| _deserialize(inner_type, v) }
|
291
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
292
|
-
k_type = Regexp.last_match[:k_type]
|
293
|
-
v_type = Regexp.last_match[:v_type]
|
294
|
-
{}.tap do |hash|
|
295
|
-
value.each do |k, v|
|
296
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
297
|
-
end
|
298
|
-
end
|
299
|
-
else # model
|
300
|
-
PulpAnsibleClient.const_get(type).build_from_hash(value)
|
301
|
-
end
|
302
|
-
end
|
303
|
-
|
304
|
-
# Returns the string representation of the object
|
305
|
-
# @return [String] String presentation of the object
|
306
|
-
def to_s
|
307
|
-
to_hash.to_s
|
308
|
-
end
|
309
|
-
|
310
|
-
# to_body is an alias to to_hash (backward compatibility)
|
311
|
-
# @return [Hash] Returns the object in the form of hash
|
312
|
-
def to_body
|
313
|
-
to_hash
|
314
|
-
end
|
315
|
-
|
316
|
-
# Returns the object in the form of hash
|
317
|
-
# @return [Hash] Returns the object in the form of hash
|
318
|
-
def to_hash
|
319
|
-
hash = {}
|
320
|
-
self.class.attribute_map.each_pair do |attr, param|
|
321
|
-
value = self.send(attr)
|
322
|
-
if value.nil?
|
323
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
324
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
325
|
-
end
|
326
|
-
|
327
|
-
hash[param] = _to_hash(value)
|
328
|
-
end
|
329
|
-
hash
|
330
|
-
end
|
331
|
-
|
332
|
-
# Outputs non-array value in the form of hash
|
333
|
-
# For object, use to_hash. Otherwise, just return the value
|
334
|
-
# @param [Object] value Any valid value
|
335
|
-
# @return [Hash] Returns the value in the form of hash
|
336
|
-
def _to_hash(value)
|
337
|
-
if value.is_a?(Array)
|
338
|
-
value.compact.map { |v| _to_hash(v) }
|
339
|
-
elsif value.is_a?(Hash)
|
340
|
-
{}.tap do |hash|
|
341
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
342
|
-
end
|
343
|
-
elsif value.respond_to? :to_hash
|
344
|
-
value.to_hash
|
345
|
-
else
|
346
|
-
value
|
347
|
-
end
|
348
|
-
end
|
349
|
-
end
|
350
|
-
end
|