pulp_ansible_client 0.23.1 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/docs/AnsibleAnsibleCollectionDeprecated.md +12 -11
- data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +18 -17
- data/docs/AnsibleAnsibleDistribution.md +18 -17
- data/docs/AnsibleAnsibleDistributionResponse.md +24 -23
- data/docs/AnsibleAnsibleNamespaceMetadata.md +20 -19
- data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +26 -25
- data/docs/AnsibleAnsibleRepository.md +22 -21
- data/docs/AnsibleAnsibleRepositoryResponse.md +36 -35
- data/docs/AnsibleCollectionRemote.md +58 -57
- data/docs/AnsibleCollectionRemoteResponse.md +58 -57
- data/docs/AnsibleCollectionRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/AnsibleCollectionResponse.md +10 -9
- data/docs/AnsibleCollectionVersionMark.md +10 -9
- data/docs/AnsibleCollectionVersionMarkResponse.md +14 -13
- data/docs/AnsibleCollectionVersionResponse.md +64 -63
- data/docs/AnsibleCollectionVersionSignatureResponse.md +20 -19
- data/docs/AnsibleCollectionsApi.md +228 -110
- data/docs/AnsibleCopyApi.md +30 -14
- data/docs/AnsibleGitRemote.md +50 -49
- data/docs/AnsibleGitRemoteResponse.md +50 -49
- data/docs/AnsibleRepositoryMark.md +10 -9
- data/docs/AnsibleRepositoryRebuild.md +12 -11
- data/docs/AnsibleRepositorySignature.md +10 -9
- data/docs/AnsibleRepositorySyncURL.md +12 -11
- data/docs/AnsibleRole.md +16 -15
- data/docs/AnsibleRoleRemote.md +48 -47
- data/docs/AnsibleRoleRemoteResponse.md +48 -47
- data/docs/AnsibleRoleResponse.md +22 -21
- data/docs/AnsibleTagResponse.md +8 -7
- data/docs/ApiPluginAnsibleSearchCollectionVersionsApi.md +90 -56
- data/docs/ApiRolesApi.md +35 -18
- data/docs/ArtifactRefResponse.md +12 -11
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ClientConfigurationResponse.md +8 -7
- data/docs/CollectionImportApi.md +34 -18
- data/docs/CollectionImportDetailResponse.md +22 -21
- data/docs/CollectionMetadataResponse.md +26 -25
- data/docs/CollectionNamespaceResponse.md +10 -9
- data/docs/CollectionRefResponse.md +12 -11
- data/docs/CollectionResponse.md +24 -23
- data/docs/CollectionSummaryResponse.md +26 -25
- data/docs/CollectionVersionCopyMove.md +12 -11
- data/docs/CollectionVersionDocsResponse.md +8 -7
- data/docs/CollectionVersionListResponse.md +18 -17
- data/docs/CollectionVersionResponse.md +40 -39
- data/docs/CollectionVersionSearchList.md +16 -15
- data/docs/CollectionVersionSearchListResponse.md +20 -19
- data/docs/CollectionVersionSignatureResponse.md +14 -13
- data/docs/ContentCollectionDeprecationsApi.md +107 -57
- data/docs/ContentCollectionMarksApi.md +112 -62
- data/docs/ContentCollectionSignaturesApi.md +118 -68
- data/docs/ContentCollectionVersionsApi.md +119 -69
- data/docs/ContentNamespacesApi.md +132 -81
- data/docs/ContentRolesApi.md +110 -60
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/Copy.md +8 -7
- data/docs/DistributionsAnsibleApi.md +385 -182
- data/docs/GalaxyRoleResponse.md +12 -11
- data/docs/GalaxyRoleVersionResponse.md +10 -9
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NamespaceLink.md +10 -9
- data/docs/NamespaceLinkResponse.md +10 -9
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/PaginatedCollectionResponseList.md +12 -11
- data/docs/PaginatedCollectionResponseListLinks.md +14 -13
- data/docs/PaginatedCollectionResponseListMeta.md +8 -7
- data/docs/PaginatedCollectionVersionListResponseList.md +12 -11
- data/docs/PaginatedCollectionVersionSearchListResponseList.md +12 -11
- data/docs/PaginatedGalaxyRoleResponseList.md +14 -13
- data/docs/PaginatedGalaxyRoleVersionResponseList.md +14 -13
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedTagResponseList.md +14 -13
- data/docs/PaginatedansibleAnsibleCollectionDeprecatedResponseList.md +14 -13
- data/docs/PaginatedansibleAnsibleDistributionResponseList.md +14 -13
- data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +14 -13
- data/docs/PaginatedansibleAnsibleRepositoryResponseList.md +14 -13
- data/docs/PaginatedansibleCollectionRemoteResponseList.md +14 -13
- data/docs/PaginatedansibleCollectionResponseList.md +14 -13
- data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +14 -13
- data/docs/PaginatedansibleCollectionVersionResponseList.md +14 -13
- data/docs/PaginatedansibleCollectionVersionSignatureResponseList.md +14 -13
- data/docs/PaginatedansibleGitRemoteResponseList.md +14 -13
- data/docs/PaginatedansibleRoleRemoteResponseList.md +14 -13
- data/docs/PaginatedansibleRoleResponseList.md +14 -13
- data/docs/PatchedCollection.md +8 -7
- data/docs/PatchedansibleAnsibleDistribution.md +18 -17
- data/docs/PatchedansibleAnsibleRepository.md +22 -21
- data/docs/PatchedansibleCollectionRemote.md +58 -57
- data/docs/PatchedansibleGitRemote.md +50 -49
- data/docs/PatchedansibleRoleRemote.md +48 -47
- data/docs/PolicyEnum.md +4 -5
- data/docs/PulpAnsibleApiApi.md +32 -15
- data/docs/PulpAnsibleApiV3Api.md +33 -16
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +33 -16
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +33 -16
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +45 -28
- data/docs/PulpAnsibleApiV3CollectionsApi.md +139 -68
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +119 -66
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +36 -19
- data/docs/PulpAnsibleApiV3NamespacesApi.md +99 -64
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +33 -16
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +46 -29
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +34 -17
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +34 -17
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +34 -17
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +143 -72
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +122 -69
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +37 -20
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +206 -117
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +134 -67
- data/docs/PulpAnsibleDefaultApiApi.md +25 -7
- data/docs/PulpAnsibleDefaultApiV3Api.md +26 -8
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +33 -16
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +26 -8
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +44 -27
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +135 -64
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +116 -63
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +35 -18
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +97 -62
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +26 -8
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +45 -28
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +33 -16
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +33 -16
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +33 -16
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +139 -68
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +119 -66
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +36 -19
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +201 -112
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +88 -54
- data/docs/PulpAnsibleTagsApi.md +34 -18
- data/docs/RemotesCollectionApi.md +394 -189
- data/docs/RemotesGitApi.md +389 -184
- data/docs/RemotesRoleApi.md +389 -184
- data/docs/Repair.md +8 -7
- data/docs/RepoMetadataResponse.md +8 -7
- data/docs/RepositoriesAnsibleApi.md +617 -271
- data/docs/RepositoriesAnsibleVersionsApi.md +180 -92
- data/docs/Repository.md +16 -15
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositoryResponse.md +28 -27
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/TagResponse.md +10 -9
- data/docs/UnpaginatedCollectionVersionResponse.md +36 -35
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/docs/VersionsApi.md +35 -18
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +48 -32
- data/lib/pulp_ansible_client/api/ansible_copy_api.rb +10 -6
- data/lib/pulp_ansible_client/api/api_plugin_ansible_search_collection_versions_api.rb +15 -10
- data/lib/pulp_ansible_client/api/api_roles_api.rb +6 -5
- data/lib/pulp_ansible_client/api/collection_import_api.rb +6 -5
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -14
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +20 -14
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +20 -14
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +26 -20
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +16 -13
- data/lib/pulp_ansible_client/api/content_roles_api.rb +20 -14
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +89 -56
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +5 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +5 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +25 -18
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +16 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +11 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +5 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +25 -18
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +16 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +43 -32
- data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +37 -21
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_api.rb +5 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +5 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collection_versions_all_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +25 -18
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +16 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +11 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +5 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +25 -18
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +16 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -5
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +43 -32
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +15 -10
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -5
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +104 -68
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +104 -68
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +104 -68
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +161 -96
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +49 -35
- data/lib/pulp_ansible_client/api/versions_api.rb +6 -5
- data/lib/pulp_ansible_client/api_client.rb +137 -102
- data/lib/pulp_ansible_client/api_error.rb +2 -1
- data/lib/pulp_ansible_client/configuration.rb +162 -21
- data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated.rb +34 -22
- data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +36 -24
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +34 -22
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +35 -23
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +47 -25
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +52 -26
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +33 -23
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +37 -26
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +77 -47
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +80 -50
- data/lib/pulp_ansible_client/models/{ansible_collection_remote_response_hidden_fields.rb → ansible_collection_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_ansible_client/models/ansible_collection_response.rb +34 -22
- data/lib/pulp_ansible_client/models/ansible_collection_version_mark.rb +34 -22
- data/lib/pulp_ansible_client/models/ansible_collection_version_mark_response.rb +35 -23
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +81 -43
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +34 -24
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +256 -240
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +200 -188
- data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +35 -23
- data/lib/pulp_ansible_client/models/ansible_repository_rebuild.rb +30 -22
- data/lib/pulp_ansible_client/models/ansible_repository_signature.rb +35 -23
- data/lib/pulp_ansible_client/models/ansible_repository_sync_url.rb +30 -22
- data/lib/pulp_ansible_client/models/ansible_role.rb +38 -22
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +77 -43
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +80 -46
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +50 -34
- data/lib/pulp_ansible_client/models/ansible_tag_response.rb +30 -22
- data/lib/pulp_ansible_client/models/artifact_ref_response.rb +36 -22
- data/lib/pulp_ansible_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_ansible_client/models/client_configuration_response.rb +32 -22
- data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +46 -26
- data/lib/pulp_ansible_client/models/collection_metadata_response.rb +36 -24
- data/lib/pulp_ansible_client/models/collection_namespace_response.rb +34 -22
- data/lib/pulp_ansible_client/models/collection_ref_response.rb +34 -22
- data/lib/pulp_ansible_client/models/collection_response.rb +36 -25
- data/lib/pulp_ansible_client/models/collection_summary_response.rb +50 -28
- data/lib/pulp_ansible_client/models/collection_version_copy_move.rb +34 -22
- data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +32 -22
- data/lib/pulp_ansible_client/models/collection_version_list_response.rb +38 -24
- data/lib/pulp_ansible_client/models/collection_version_response.rb +40 -24
- data/lib/pulp_ansible_client/models/collection_version_search_list.rb +40 -22
- data/lib/pulp_ansible_client/models/collection_version_search_list_response.rb +42 -22
- data/lib/pulp_ansible_client/models/collection_version_signature_response.rb +33 -23
- data/lib/pulp_ansible_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_ansible_client/models/copy.rb +32 -22
- data/lib/pulp_ansible_client/models/galaxy_role_response.rb +34 -22
- data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +32 -22
- data/lib/pulp_ansible_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_ansible_client/models/namespace_link.rb +34 -22
- data/lib/pulp_ansible_client/models/namespace_link_response.rb +34 -22
- data/lib/pulp_ansible_client/models/nested_role.rb +32 -22
- data/lib/pulp_ansible_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_ansible_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_ansible_client/models/paginated_collection_response_list.rb +30 -22
- data/lib/pulp_ansible_client/models/paginated_collection_response_list_links.rb +30 -22
- data/lib/pulp_ansible_client/models/paginated_collection_response_list_meta.rb +30 -22
- data/lib/pulp_ansible_client/models/paginated_collection_version_list_response_list.rb +30 -22
- data/lib/pulp_ansible_client/models/paginated_collection_version_search_list_response_list.rb +30 -22
- data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_collection_deprecated_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +34 -22
- data/lib/pulp_ansible_client/models/patched_collection.rb +30 -22
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +40 -24
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +36 -24
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +83 -49
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +257 -237
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +83 -45
- data/lib/pulp_ansible_client/models/policy_enum.rb +8 -5
- data/lib/pulp_ansible_client/models/repair.rb +30 -22
- data/lib/pulp_ansible_client/models/repo_metadata_response.rb +33 -23
- data/lib/pulp_ansible_client/models/repository.rb +32 -22
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_ansible_client/models/repository_response.rb +34 -24
- data/lib/pulp_ansible_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_ansible_client/models/set_label.rb +34 -22
- data/lib/pulp_ansible_client/models/set_label_response.rb +34 -22
- data/lib/pulp_ansible_client/models/tag_response.rb +30 -22
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +40 -24
- data/lib/pulp_ansible_client/models/unset_label.rb +32 -22
- data/lib/pulp_ansible_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_ansible_client/version.rb +2 -2
- data/lib/pulp_ansible_client.rb +2 -6
- data/pulp_ansible_client.gemspec +9 -6
- data/spec/api/ansible_collections_api_spec.rb +8 -8
- data/spec/api/ansible_copy_api_spec.rb +2 -2
- data/spec/api/api_plugin_ansible_search_collection_versions_api_spec.rb +3 -3
- data/spec/api/api_roles_api_spec.rb +2 -2
- data/spec/api/collection_import_api_spec.rb +2 -2
- data/spec/api/content_collection_deprecations_api_spec.rb +4 -4
- data/spec/api/content_collection_marks_api_spec.rb +4 -4
- data/spec/api/content_collection_signatures_api_spec.rb +4 -4
- data/spec/api/content_collection_versions_api_spec.rb +6 -6
- data/spec/api/content_namespaces_api_spec.rb +4 -4
- data/spec/api/content_roles_api_spec.rb +4 -4
- data/spec/api/distributions_ansible_api_spec.rb +13 -13
- data/spec/api/pulp_ansible_api_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +5 -5
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +4 -4
- data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +5 -5
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -4
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +7 -7
- data/spec/api/pulp_ansible_artifacts_collections_v3_api_spec.rb +5 -5
- data/spec/api/pulp_ansible_default_api_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_collection_versions_all_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +5 -5
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +4 -4
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +5 -5
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -4
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +7 -7
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_tags_api_spec.rb +2 -2
- data/spec/api/remotes_collection_api_spec.rb +20 -19
- data/spec/api/remotes_git_api_spec.rb +20 -19
- data/spec/api/remotes_role_api_spec.rb +20 -19
- data/spec/api/repositories_ansible_api_spec.rb +21 -21
- data/spec/api/repositories_ansible_versions_api_spec.rb +13 -12
- data/spec/api/versions_api_spec.rb +2 -2
- data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +12 -17
- data/spec/models/ansible_ansible_collection_deprecated_spec.rb +9 -14
- data/spec/models/ansible_ansible_distribution_response_spec.rb +15 -20
- data/spec/models/ansible_ansible_distribution_spec.rb +12 -17
- data/spec/models/ansible_ansible_namespace_metadata_response_spec.rb +16 -21
- data/spec/models/ansible_ansible_namespace_metadata_spec.rb +13 -18
- data/spec/models/ansible_ansible_repository_response_spec.rb +21 -26
- data/spec/models/ansible_ansible_repository_spec.rb +14 -19
- data/spec/models/{ansible_collection_remote_response_hidden_fields_spec.rb → ansible_collection_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/ansible_collection_remote_response_spec.rb +32 -37
- data/spec/models/ansible_collection_remote_spec.rb +32 -37
- data/spec/models/ansible_collection_response_spec.rb +8 -13
- data/spec/models/ansible_collection_version_mark_response_spec.rb +10 -15
- data/spec/models/ansible_collection_version_mark_spec.rb +8 -13
- data/spec/models/ansible_collection_version_response_spec.rb +39 -44
- data/spec/models/ansible_collection_version_signature_response_spec.rb +13 -18
- data/spec/models/ansible_git_remote_response_spec.rb +47 -52
- data/spec/models/ansible_git_remote_spec.rb +47 -52
- data/spec/models/ansible_repository_mark_spec.rb +8 -13
- data/spec/models/ansible_repository_rebuild_spec.rb +9 -14
- data/spec/models/ansible_repository_signature_spec.rb +8 -13
- data/spec/models/ansible_repository_sync_url_spec.rb +9 -14
- data/spec/models/ansible_role_remote_response_spec.rb +27 -32
- data/spec/models/ansible_role_remote_spec.rb +27 -32
- data/spec/models/ansible_role_response_spec.rb +18 -23
- data/spec/models/ansible_role_spec.rb +11 -16
- data/spec/models/ansible_tag_response_spec.rb +7 -12
- data/spec/models/artifact_ref_response_spec.rb +9 -14
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/client_configuration_response_spec.rb +7 -12
- data/spec/models/collection_import_detail_response_spec.rb +14 -19
- data/spec/models/collection_metadata_response_spec.rb +16 -21
- data/spec/models/collection_namespace_response_spec.rb +8 -13
- data/spec/models/collection_ref_response_spec.rb +9 -14
- data/spec/models/collection_response_spec.rb +15 -20
- data/spec/models/collection_summary_response_spec.rb +16 -21
- data/spec/models/collection_version_copy_move_spec.rb +9 -14
- data/spec/models/collection_version_docs_response_spec.rb +7 -12
- data/spec/models/collection_version_list_response_spec.rb +12 -17
- data/spec/models/collection_version_response_spec.rb +23 -28
- data/spec/models/collection_version_search_list_response_spec.rb +13 -18
- data/spec/models/collection_version_search_list_spec.rb +11 -16
- data/spec/models/collection_version_signature_response_spec.rb +10 -15
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/copy_spec.rb +7 -12
- data/spec/models/galaxy_role_response_spec.rb +9 -14
- data/spec/models/galaxy_role_version_response_spec.rb +8 -13
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/namespace_link_response_spec.rb +8 -13
- data/spec/models/namespace_link_spec.rb +8 -13
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/paginated_collection_response_list_links_spec.rb +10 -15
- data/spec/models/paginated_collection_response_list_meta_spec.rb +7 -12
- data/spec/models/paginated_collection_response_list_spec.rb +9 -14
- data/spec/models/paginated_collection_version_list_response_list_spec.rb +9 -14
- data/spec/models/paginated_collection_version_search_list_response_list_spec.rb +9 -14
- data/spec/models/paginated_galaxy_role_response_list_spec.rb +10 -15
- data/spec/models/paginated_galaxy_role_version_response_list_spec.rb +10 -15
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginated_tag_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_ansible_collection_deprecated_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_ansible_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_ansible_namespace_metadata_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_ansible_repository_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_collection_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_collection_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_collection_version_mark_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_collection_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_collection_version_signature_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_git_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_role_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedansible_role_response_list_spec.rb +10 -15
- data/spec/models/patched_collection_spec.rb +7 -12
- data/spec/models/patchedansible_ansible_distribution_spec.rb +12 -17
- data/spec/models/patchedansible_ansible_repository_spec.rb +14 -19
- data/spec/models/patchedansible_collection_remote_spec.rb +32 -37
- data/spec/models/patchedansible_git_remote_spec.rb +47 -52
- data/spec/models/patchedansible_role_remote_spec.rb +27 -32
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repo_metadata_response_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_response_spec.rb +17 -22
- data/spec/models/repository_spec.rb +11 -16
- data/spec/models/repository_version_response_spec.rb +14 -19
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/tag_response_spec.rb +8 -13
- data/spec/models/unpaginated_collection_version_response_spec.rb +21 -26
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +168 -160
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +0 -19
- data/docs/AnsibleCollectionVersion.md +0 -31
- data/docs/AnsibleCollectionVersionSignature.md +0 -25
- data/docs/CollectionOneShot.md +0 -25
- data/docs/PatchedansibleAnsibleNamespaceMetadata.md +0 -29
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +0 -365
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +0 -268
- data/lib/pulp_ansible_client/models/collection_one_shot.rb +0 -313
- data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +0 -350
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/ansible_collection_version_signature_spec.rb +0 -65
- data/spec/models/ansible_collection_version_spec.rb +0 -83
- data/spec/models/collection_one_shot_spec.rb +0 -65
- data/spec/models/patchedansible_ansible_namespace_metadata_spec.rb +0 -77
@@ -1,365 +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 CollectionVersion Content.
|
17
|
-
class AnsibleCollectionVersion
|
18
|
-
# A URI of a repository the new content unit should be associated with.
|
19
|
-
attr_accessor :repository
|
20
|
-
|
21
|
-
# An uploaded file that may be turned into the content unit.
|
22
|
-
attr_accessor :file
|
23
|
-
|
24
|
-
# A url that Pulp can download and turn into the content unit.
|
25
|
-
attr_accessor :file_url
|
26
|
-
|
27
|
-
# Artifact file representing the physical content
|
28
|
-
attr_accessor :artifact
|
29
|
-
|
30
|
-
# An uncommitted upload that may be turned into the content unit.
|
31
|
-
attr_accessor :upload
|
32
|
-
|
33
|
-
# The name of the collection.
|
34
|
-
attr_accessor :expected_name
|
35
|
-
|
36
|
-
# The namespace of the collection.
|
37
|
-
attr_accessor :expected_namespace
|
38
|
-
|
39
|
-
# The version of the collection.
|
40
|
-
attr_accessor :expected_version
|
41
|
-
|
42
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
43
|
-
def self.attribute_map
|
44
|
-
{
|
45
|
-
:'repository' => :'repository',
|
46
|
-
:'file' => :'file',
|
47
|
-
:'file_url' => :'file_url',
|
48
|
-
:'artifact' => :'artifact',
|
49
|
-
:'upload' => :'upload',
|
50
|
-
:'expected_name' => :'expected_name',
|
51
|
-
:'expected_namespace' => :'expected_namespace',
|
52
|
-
:'expected_version' => :'expected_version'
|
53
|
-
}
|
54
|
-
end
|
55
|
-
|
56
|
-
# Attribute type mapping.
|
57
|
-
def self.openapi_types
|
58
|
-
{
|
59
|
-
:'repository' => :'String',
|
60
|
-
:'file' => :'File',
|
61
|
-
:'file_url' => :'String',
|
62
|
-
:'artifact' => :'String',
|
63
|
-
:'upload' => :'String',
|
64
|
-
:'expected_name' => :'String',
|
65
|
-
:'expected_namespace' => :'String',
|
66
|
-
:'expected_version' => :'String'
|
67
|
-
}
|
68
|
-
end
|
69
|
-
|
70
|
-
# List of attributes with nullable: true
|
71
|
-
def self.openapi_nullable
|
72
|
-
Set.new([
|
73
|
-
])
|
74
|
-
end
|
75
|
-
|
76
|
-
# Initializes the object
|
77
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
78
|
-
def initialize(attributes = {})
|
79
|
-
if (!attributes.is_a?(Hash))
|
80
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleCollectionVersion` initialize method"
|
81
|
-
end
|
82
|
-
|
83
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
84
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
85
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
86
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleCollectionVersion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
87
|
-
end
|
88
|
-
h[k.to_sym] = v
|
89
|
-
}
|
90
|
-
|
91
|
-
if attributes.key?(:'repository')
|
92
|
-
self.repository = attributes[:'repository']
|
93
|
-
end
|
94
|
-
|
95
|
-
if attributes.key?(:'file')
|
96
|
-
self.file = attributes[:'file']
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.key?(:'file_url')
|
100
|
-
self.file_url = attributes[:'file_url']
|
101
|
-
end
|
102
|
-
|
103
|
-
if attributes.key?(:'artifact')
|
104
|
-
self.artifact = attributes[:'artifact']
|
105
|
-
end
|
106
|
-
|
107
|
-
if attributes.key?(:'upload')
|
108
|
-
self.upload = attributes[:'upload']
|
109
|
-
end
|
110
|
-
|
111
|
-
if attributes.key?(:'expected_name')
|
112
|
-
self.expected_name = attributes[:'expected_name']
|
113
|
-
end
|
114
|
-
|
115
|
-
if attributes.key?(:'expected_namespace')
|
116
|
-
self.expected_namespace = attributes[:'expected_namespace']
|
117
|
-
end
|
118
|
-
|
119
|
-
if attributes.key?(:'expected_version')
|
120
|
-
self.expected_version = attributes[:'expected_version']
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
125
|
-
# @return Array for valid properties with the reasons
|
126
|
-
def list_invalid_properties
|
127
|
-
invalid_properties = Array.new
|
128
|
-
if !@file_url.nil? && @file_url.to_s.length < 1
|
129
|
-
invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
|
130
|
-
end
|
131
|
-
|
132
|
-
if !@expected_name.nil? && @expected_name.to_s.length > 64
|
133
|
-
invalid_properties.push('invalid value for "expected_name", the character length must be smaller than or equal to 64.')
|
134
|
-
end
|
135
|
-
|
136
|
-
if !@expected_name.nil? && @expected_name.to_s.length < 1
|
137
|
-
invalid_properties.push('invalid value for "expected_name", the character length must be great than or equal to 1.')
|
138
|
-
end
|
139
|
-
|
140
|
-
if !@expected_namespace.nil? && @expected_namespace.to_s.length > 64
|
141
|
-
invalid_properties.push('invalid value for "expected_namespace", the character length must be smaller than or equal to 64.')
|
142
|
-
end
|
143
|
-
|
144
|
-
if !@expected_namespace.nil? && @expected_namespace.to_s.length < 1
|
145
|
-
invalid_properties.push('invalid value for "expected_namespace", the character length must be great than or equal to 1.')
|
146
|
-
end
|
147
|
-
|
148
|
-
if !@expected_version.nil? && @expected_version.to_s.length > 128
|
149
|
-
invalid_properties.push('invalid value for "expected_version", the character length must be smaller than or equal to 128.')
|
150
|
-
end
|
151
|
-
|
152
|
-
if !@expected_version.nil? && @expected_version.to_s.length < 1
|
153
|
-
invalid_properties.push('invalid value for "expected_version", the character length must be great than or equal to 1.')
|
154
|
-
end
|
155
|
-
|
156
|
-
invalid_properties
|
157
|
-
end
|
158
|
-
|
159
|
-
# Check to see if the all the properties in the model are valid
|
160
|
-
# @return true if the model is valid
|
161
|
-
def valid?
|
162
|
-
return false if !@file_url.nil? && @file_url.to_s.length < 1
|
163
|
-
return false if !@expected_name.nil? && @expected_name.to_s.length > 64
|
164
|
-
return false if !@expected_name.nil? && @expected_name.to_s.length < 1
|
165
|
-
return false if !@expected_namespace.nil? && @expected_namespace.to_s.length > 64
|
166
|
-
return false if !@expected_namespace.nil? && @expected_namespace.to_s.length < 1
|
167
|
-
return false if !@expected_version.nil? && @expected_version.to_s.length > 128
|
168
|
-
return false if !@expected_version.nil? && @expected_version.to_s.length < 1
|
169
|
-
true
|
170
|
-
end
|
171
|
-
|
172
|
-
# Custom attribute writer method with validation
|
173
|
-
# @param [Object] file_url Value to be assigned
|
174
|
-
def file_url=(file_url)
|
175
|
-
if !file_url.nil? && file_url.to_s.length < 1
|
176
|
-
fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
|
177
|
-
end
|
178
|
-
|
179
|
-
@file_url = file_url
|
180
|
-
end
|
181
|
-
|
182
|
-
# Custom attribute writer method with validation
|
183
|
-
# @param [Object] expected_name Value to be assigned
|
184
|
-
def expected_name=(expected_name)
|
185
|
-
if !expected_name.nil? && expected_name.to_s.length > 64
|
186
|
-
fail ArgumentError, 'invalid value for "expected_name", the character length must be smaller than or equal to 64.'
|
187
|
-
end
|
188
|
-
|
189
|
-
if !expected_name.nil? && expected_name.to_s.length < 1
|
190
|
-
fail ArgumentError, 'invalid value for "expected_name", the character length must be great than or equal to 1.'
|
191
|
-
end
|
192
|
-
|
193
|
-
@expected_name = expected_name
|
194
|
-
end
|
195
|
-
|
196
|
-
# Custom attribute writer method with validation
|
197
|
-
# @param [Object] expected_namespace Value to be assigned
|
198
|
-
def expected_namespace=(expected_namespace)
|
199
|
-
if !expected_namespace.nil? && expected_namespace.to_s.length > 64
|
200
|
-
fail ArgumentError, 'invalid value for "expected_namespace", the character length must be smaller than or equal to 64.'
|
201
|
-
end
|
202
|
-
|
203
|
-
if !expected_namespace.nil? && expected_namespace.to_s.length < 1
|
204
|
-
fail ArgumentError, 'invalid value for "expected_namespace", the character length must be great than or equal to 1.'
|
205
|
-
end
|
206
|
-
|
207
|
-
@expected_namespace = expected_namespace
|
208
|
-
end
|
209
|
-
|
210
|
-
# Custom attribute writer method with validation
|
211
|
-
# @param [Object] expected_version Value to be assigned
|
212
|
-
def expected_version=(expected_version)
|
213
|
-
if !expected_version.nil? && expected_version.to_s.length > 128
|
214
|
-
fail ArgumentError, 'invalid value for "expected_version", the character length must be smaller than or equal to 128.'
|
215
|
-
end
|
216
|
-
|
217
|
-
if !expected_version.nil? && expected_version.to_s.length < 1
|
218
|
-
fail ArgumentError, 'invalid value for "expected_version", the character length must be great than or equal to 1.'
|
219
|
-
end
|
220
|
-
|
221
|
-
@expected_version = expected_version
|
222
|
-
end
|
223
|
-
|
224
|
-
# Checks equality by comparing each attribute.
|
225
|
-
# @param [Object] Object to be compared
|
226
|
-
def ==(o)
|
227
|
-
return true if self.equal?(o)
|
228
|
-
self.class == o.class &&
|
229
|
-
repository == o.repository &&
|
230
|
-
file == o.file &&
|
231
|
-
file_url == o.file_url &&
|
232
|
-
artifact == o.artifact &&
|
233
|
-
upload == o.upload &&
|
234
|
-
expected_name == o.expected_name &&
|
235
|
-
expected_namespace == o.expected_namespace &&
|
236
|
-
expected_version == o.expected_version
|
237
|
-
end
|
238
|
-
|
239
|
-
# @see the `==` method
|
240
|
-
# @param [Object] Object to be compared
|
241
|
-
def eql?(o)
|
242
|
-
self == o
|
243
|
-
end
|
244
|
-
|
245
|
-
# Calculates hash code according to all attributes.
|
246
|
-
# @return [Integer] Hash code
|
247
|
-
def hash
|
248
|
-
[repository, file, file_url, artifact, upload, expected_name, expected_namespace, expected_version].hash
|
249
|
-
end
|
250
|
-
|
251
|
-
# Builds the object from hash
|
252
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
253
|
-
# @return [Object] Returns the model itself
|
254
|
-
def self.build_from_hash(attributes)
|
255
|
-
new.build_from_hash(attributes)
|
256
|
-
end
|
257
|
-
|
258
|
-
# Builds the object from hash
|
259
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
260
|
-
# @return [Object] Returns the model itself
|
261
|
-
def build_from_hash(attributes)
|
262
|
-
return nil unless attributes.is_a?(Hash)
|
263
|
-
self.class.openapi_types.each_pair do |key, type|
|
264
|
-
if type =~ /\AArray<(.*)>/i
|
265
|
-
# check to ensure the input is an array given that the attribute
|
266
|
-
# is documented as an array but the input is not
|
267
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
268
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
269
|
-
end
|
270
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
271
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
272
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
273
|
-
end
|
274
|
-
|
275
|
-
self
|
276
|
-
end
|
277
|
-
|
278
|
-
# Deserializes the data based on type
|
279
|
-
# @param string type Data type
|
280
|
-
# @param string value Value to be deserialized
|
281
|
-
# @return [Object] Deserialized data
|
282
|
-
def _deserialize(type, value)
|
283
|
-
case type.to_sym
|
284
|
-
when :DateTime
|
285
|
-
DateTime.parse(value)
|
286
|
-
when :Date
|
287
|
-
Date.parse(value)
|
288
|
-
when :String
|
289
|
-
value.to_s
|
290
|
-
when :Integer
|
291
|
-
value.to_i
|
292
|
-
when :Float
|
293
|
-
value.to_f
|
294
|
-
when :Boolean
|
295
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
296
|
-
true
|
297
|
-
else
|
298
|
-
false
|
299
|
-
end
|
300
|
-
when :Object
|
301
|
-
# generic object (usually a Hash), return directly
|
302
|
-
value
|
303
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
304
|
-
inner_type = Regexp.last_match[:inner_type]
|
305
|
-
value.map { |v| _deserialize(inner_type, v) }
|
306
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
307
|
-
k_type = Regexp.last_match[:k_type]
|
308
|
-
v_type = Regexp.last_match[:v_type]
|
309
|
-
{}.tap do |hash|
|
310
|
-
value.each do |k, v|
|
311
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
312
|
-
end
|
313
|
-
end
|
314
|
-
else # model
|
315
|
-
PulpAnsibleClient.const_get(type).build_from_hash(value)
|
316
|
-
end
|
317
|
-
end
|
318
|
-
|
319
|
-
# Returns the string representation of the object
|
320
|
-
# @return [String] String presentation of the object
|
321
|
-
def to_s
|
322
|
-
to_hash.to_s
|
323
|
-
end
|
324
|
-
|
325
|
-
# to_body is an alias to to_hash (backward compatibility)
|
326
|
-
# @return [Hash] Returns the object in the form of hash
|
327
|
-
def to_body
|
328
|
-
to_hash
|
329
|
-
end
|
330
|
-
|
331
|
-
# Returns the object in the form of hash
|
332
|
-
# @return [Hash] Returns the object in the form of hash
|
333
|
-
def to_hash
|
334
|
-
hash = {}
|
335
|
-
self.class.attribute_map.each_pair do |attr, param|
|
336
|
-
value = self.send(attr)
|
337
|
-
if value.nil?
|
338
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
339
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
340
|
-
end
|
341
|
-
|
342
|
-
hash[param] = _to_hash(value)
|
343
|
-
end
|
344
|
-
hash
|
345
|
-
end
|
346
|
-
|
347
|
-
# Outputs non-array value in the form of hash
|
348
|
-
# For object, use to_hash. Otherwise, just return the value
|
349
|
-
# @param [Object] value Any valid value
|
350
|
-
# @return [Hash] Returns the value in the form of hash
|
351
|
-
def _to_hash(value)
|
352
|
-
if value.is_a?(Array)
|
353
|
-
value.compact.map { |v| _to_hash(v) }
|
354
|
-
elsif value.is_a?(Hash)
|
355
|
-
{}.tap do |hash|
|
356
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
357
|
-
end
|
358
|
-
elsif value.respond_to? :to_hash
|
359
|
-
value.to_hash
|
360
|
-
else
|
361
|
-
value
|
362
|
-
end
|
363
|
-
end
|
364
|
-
end
|
365
|
-
end
|
@@ -1,268 +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 signature models.
|
17
|
-
class AnsibleCollectionVersionSignature
|
18
|
-
# A URI of a repository the new content unit should be associated with.
|
19
|
-
attr_accessor :repository
|
20
|
-
|
21
|
-
# An uploaded file that may be turned into the content unit.
|
22
|
-
attr_accessor :file
|
23
|
-
|
24
|
-
# An uncommitted upload that may be turned into the content unit.
|
25
|
-
attr_accessor :upload
|
26
|
-
|
27
|
-
# A url that Pulp can download and turn into the content unit.
|
28
|
-
attr_accessor :file_url
|
29
|
-
|
30
|
-
# The content this signature is pointing to.
|
31
|
-
attr_accessor :signed_collection
|
32
|
-
|
33
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
-
def self.attribute_map
|
35
|
-
{
|
36
|
-
:'repository' => :'repository',
|
37
|
-
:'file' => :'file',
|
38
|
-
:'upload' => :'upload',
|
39
|
-
:'file_url' => :'file_url',
|
40
|
-
:'signed_collection' => :'signed_collection'
|
41
|
-
}
|
42
|
-
end
|
43
|
-
|
44
|
-
# Attribute type mapping.
|
45
|
-
def self.openapi_types
|
46
|
-
{
|
47
|
-
:'repository' => :'String',
|
48
|
-
:'file' => :'File',
|
49
|
-
:'upload' => :'String',
|
50
|
-
:'file_url' => :'String',
|
51
|
-
:'signed_collection' => :'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::AnsibleCollectionVersionSignature` 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::AnsibleCollectionVersionSignature`. 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?(:'repository')
|
77
|
-
self.repository = attributes[:'repository']
|
78
|
-
end
|
79
|
-
|
80
|
-
if attributes.key?(:'file')
|
81
|
-
self.file = attributes[:'file']
|
82
|
-
end
|
83
|
-
|
84
|
-
if attributes.key?(:'upload')
|
85
|
-
self.upload = attributes[:'upload']
|
86
|
-
end
|
87
|
-
|
88
|
-
if attributes.key?(:'file_url')
|
89
|
-
self.file_url = attributes[:'file_url']
|
90
|
-
end
|
91
|
-
|
92
|
-
if attributes.key?(:'signed_collection')
|
93
|
-
self.signed_collection = attributes[:'signed_collection']
|
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_url.nil? && @file_url.to_s.length < 1
|
102
|
-
invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
|
103
|
-
end
|
104
|
-
|
105
|
-
if @signed_collection.nil?
|
106
|
-
invalid_properties.push('invalid value for "signed_collection", signed_collection cannot be nil.')
|
107
|
-
end
|
108
|
-
|
109
|
-
invalid_properties
|
110
|
-
end
|
111
|
-
|
112
|
-
# Check to see if the all the properties in the model are valid
|
113
|
-
# @return true if the model is valid
|
114
|
-
def valid?
|
115
|
-
return false if !@file_url.nil? && @file_url.to_s.length < 1
|
116
|
-
return false if @signed_collection.nil?
|
117
|
-
true
|
118
|
-
end
|
119
|
-
|
120
|
-
# Custom attribute writer method with validation
|
121
|
-
# @param [Object] file_url Value to be assigned
|
122
|
-
def file_url=(file_url)
|
123
|
-
if !file_url.nil? && file_url.to_s.length < 1
|
124
|
-
fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
|
125
|
-
end
|
126
|
-
|
127
|
-
@file_url = file_url
|
128
|
-
end
|
129
|
-
|
130
|
-
# Checks equality by comparing each attribute.
|
131
|
-
# @param [Object] Object to be compared
|
132
|
-
def ==(o)
|
133
|
-
return true if self.equal?(o)
|
134
|
-
self.class == o.class &&
|
135
|
-
repository == o.repository &&
|
136
|
-
file == o.file &&
|
137
|
-
upload == o.upload &&
|
138
|
-
file_url == o.file_url &&
|
139
|
-
signed_collection == o.signed_collection
|
140
|
-
end
|
141
|
-
|
142
|
-
# @see the `==` method
|
143
|
-
# @param [Object] Object to be compared
|
144
|
-
def eql?(o)
|
145
|
-
self == o
|
146
|
-
end
|
147
|
-
|
148
|
-
# Calculates hash code according to all attributes.
|
149
|
-
# @return [Integer] Hash code
|
150
|
-
def hash
|
151
|
-
[repository, file, upload, file_url, signed_collection].hash
|
152
|
-
end
|
153
|
-
|
154
|
-
# Builds the object from hash
|
155
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
156
|
-
# @return [Object] Returns the model itself
|
157
|
-
def self.build_from_hash(attributes)
|
158
|
-
new.build_from_hash(attributes)
|
159
|
-
end
|
160
|
-
|
161
|
-
# Builds the object from hash
|
162
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
163
|
-
# @return [Object] Returns the model itself
|
164
|
-
def build_from_hash(attributes)
|
165
|
-
return nil unless attributes.is_a?(Hash)
|
166
|
-
self.class.openapi_types.each_pair do |key, type|
|
167
|
-
if type =~ /\AArray<(.*)>/i
|
168
|
-
# check to ensure the input is an array given that the attribute
|
169
|
-
# is documented as an array but the input is not
|
170
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
171
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
172
|
-
end
|
173
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
174
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
175
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
176
|
-
end
|
177
|
-
|
178
|
-
self
|
179
|
-
end
|
180
|
-
|
181
|
-
# Deserializes the data based on type
|
182
|
-
# @param string type Data type
|
183
|
-
# @param string value Value to be deserialized
|
184
|
-
# @return [Object] Deserialized data
|
185
|
-
def _deserialize(type, value)
|
186
|
-
case type.to_sym
|
187
|
-
when :DateTime
|
188
|
-
DateTime.parse(value)
|
189
|
-
when :Date
|
190
|
-
Date.parse(value)
|
191
|
-
when :String
|
192
|
-
value.to_s
|
193
|
-
when :Integer
|
194
|
-
value.to_i
|
195
|
-
when :Float
|
196
|
-
value.to_f
|
197
|
-
when :Boolean
|
198
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
199
|
-
true
|
200
|
-
else
|
201
|
-
false
|
202
|
-
end
|
203
|
-
when :Object
|
204
|
-
# generic object (usually a Hash), return directly
|
205
|
-
value
|
206
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
207
|
-
inner_type = Regexp.last_match[:inner_type]
|
208
|
-
value.map { |v| _deserialize(inner_type, v) }
|
209
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
210
|
-
k_type = Regexp.last_match[:k_type]
|
211
|
-
v_type = Regexp.last_match[:v_type]
|
212
|
-
{}.tap do |hash|
|
213
|
-
value.each do |k, v|
|
214
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
215
|
-
end
|
216
|
-
end
|
217
|
-
else # model
|
218
|
-
PulpAnsibleClient.const_get(type).build_from_hash(value)
|
219
|
-
end
|
220
|
-
end
|
221
|
-
|
222
|
-
# Returns the string representation of the object
|
223
|
-
# @return [String] String presentation of the object
|
224
|
-
def to_s
|
225
|
-
to_hash.to_s
|
226
|
-
end
|
227
|
-
|
228
|
-
# to_body is an alias to to_hash (backward compatibility)
|
229
|
-
# @return [Hash] Returns the object in the form of hash
|
230
|
-
def to_body
|
231
|
-
to_hash
|
232
|
-
end
|
233
|
-
|
234
|
-
# Returns the object in the form of hash
|
235
|
-
# @return [Hash] Returns the object in the form of hash
|
236
|
-
def to_hash
|
237
|
-
hash = {}
|
238
|
-
self.class.attribute_map.each_pair do |attr, param|
|
239
|
-
value = self.send(attr)
|
240
|
-
if value.nil?
|
241
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
242
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
243
|
-
end
|
244
|
-
|
245
|
-
hash[param] = _to_hash(value)
|
246
|
-
end
|
247
|
-
hash
|
248
|
-
end
|
249
|
-
|
250
|
-
# Outputs non-array value in the form of hash
|
251
|
-
# For object, use to_hash. Otherwise, just return the value
|
252
|
-
# @param [Object] value Any valid value
|
253
|
-
# @return [Hash] Returns the value in the form of hash
|
254
|
-
def _to_hash(value)
|
255
|
-
if value.is_a?(Array)
|
256
|
-
value.compact.map { |v| _to_hash(v) }
|
257
|
-
elsif value.is_a?(Hash)
|
258
|
-
{}.tap do |hash|
|
259
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
260
|
-
end
|
261
|
-
elsif value.respond_to? :to_hash
|
262
|
-
value.to_hash
|
263
|
-
else
|
264
|
-
value
|
265
|
-
end
|
266
|
-
end
|
267
|
-
end
|
268
|
-
end
|