From 37439cfe7648879a3ff1db17c2358a58a531b597 Mon Sep 17 00:00:00 2001 From: andrewgdewar Date: Fri, 31 Mar 2023 15:21:34 +0000 Subject: [PATCH] Update pulp bindings to v3.23.1 --- release/.openapi-generator/FILES | 88 + release/README.md | 104 +- release/api/openapi.yaml | 5613 ++++++++++++++--- release/api_access_policies.go | 2 +- release/api_acs_file.go | 2 +- release/api_acs_rpm.go | 2 +- release/api_ansible_collections.go | 513 +- release/api_ansible_copy.go | 2 +- release/api_api_collections.go | 2 +- release/api_api_roles.go | 2 +- release/api_artifacts.go | 2 +- release/api_collection_import.go | 2 +- release/api_content.go | 2 +- release/api_content_advisories.go | 2 +- release/api_content_artifact.go | 2 +- release/api_content_blobs.go | 2 +- .../api_content_collection_deprecations.go | 2 +- release/api_content_collection_marks.go | 499 ++ release/api_content_collection_signatures.go | 2 +- release/api_content_collection_versions.go | 26 +- release/api_content_commits.go | 2 +- release/api_content_configs.go | 2 +- release/api_content_content.go | 2 +- release/api_content_distribution_trees.go | 2 +- release/api_content_files.go | 2 +- release/api_content_generic_contents.go | 2 +- release/api_content_installer_file_indices.go | 2 +- release/api_content_installer_packages.go | 2 +- release/api_content_manifests.go | 2 +- release/api_content_modulemd_defaults.go | 2 +- release/api_content_modulemd_obsoletes.go | 2 +- release/api_content_modulemds.go | 2 +- release/api_content_namespaces.go | 619 ++ release/api_content_objects.go | 2 +- release/api_content_package_indices.go | 2 +- .../api_content_package_release_components.go | 2 +- release/api_content_packagecategories.go | 2 +- release/api_content_packageenvironments.go | 2 +- release/api_content_packagegroups.go | 2 +- release/api_content_packagelangpacks.go | 2 +- release/api_content_packages.go | 2 +- release/api_content_refs.go | 2 +- release/api_content_release_architectures.go | 2 +- release/api_content_release_components.go | 2 +- release/api_content_release_files.go | 2 +- release/api_content_releases.go | 2 +- release/api_content_repo_metadata_files.go | 2 +- release/api_content_roles.go | 2 +- release/api_content_signatures.go | 2 +- release/api_content_summaries.go | 2 +- release/api_content_tags.go | 2 +- release/api_contentguards.go | 2 +- release/api_contentguards_content_redirect.go | 2 +- release/api_contentguards_rbac.go | 2 +- release/api_contentguards_rhsm.go | 2 +- release/api_contentguards_x509.go | 2 +- release/api_deb_copy.go | 2 +- release/api_distributions.go | 2 +- release/api_distributions_ansible.go | 512 +- release/api_distributions_apt.go | 2 +- release/api_distributions_artifacts.go | 2 +- release/api_distributions_container.go | 2 +- release/api_distributions_file.go | 2 +- release/api_distributions_maven.go | 2 +- release/api_distributions_ostree.go | 2 +- release/api_distributions_pypi.go | 2 +- release/api_distributions_rpm.go | 2 +- release/api_docs_api_json.go | 2 +- release/api_docs_api_yaml.go | 2 +- release/api_domains.go | 2 +- release/api_exporters_filesystem.go | 2 +- release/api_exporters_filesystem_exports.go | 2 +- release/api_exporters_pulp.go | 2 +- release/api_exporters_pulp_exports.go | 2 +- release/api_galaxy_detail.go | 2 +- release/api_groups.go | 2 +- release/api_groups_roles.go | 2 +- release/api_groups_users.go | 2 +- release/api_importers_pulp.go | 2 +- release/api_importers_pulp_import_check.go | 2 +- release/api_importers_pulp_imports.go | 2 +- release/api_orphans.go | 2 +- release/api_orphans_cleanup.go | 2 +- release/api_publications.go | 2 +- release/api_publications_apt.go | 2 +- release/api_publications_file.go | 2 +- release/api_publications_pypi.go | 2 +- release/api_publications_rpm.go | 2 +- release/api_publications_verbatim.go | 2 +- release/api_pulp_ansible_api.go | 2 +- ...ulp_ansible_api_v2_collections_versions.go | 2 +- release/api_pulp_ansible_api_v3.go | 2 +- ...lp_ansible_api_v3_artifacts_collections.go | 2 +- ..._ansible_api_v3_collection_versions_all.go | 2 +- .../api_pulp_ansible_api_v3_collections.go | 2 +- ...api_pulp_ansible_api_v3_collections_all.go | 2 +- ...ulp_ansible_api_v3_collections_versions.go | 2 +- ...e_api_v3_collections_versions_docs_blob.go | 2 +- release/api_pulp_ansible_api_v3_namespaces.go | 468 ++ ..._v3_plugin_ansible_client_configuration.go | 26 +- ...i_v3_plugin_ansible_content_collections.go | 2 +- ...ble_content_collections_all_collections.go | 2 +- ...nsible_content_collections_all_versions.go | 2 +- ...n_ansible_content_collections_artifacts.go | 2 +- ...lugin_ansible_content_collections_index.go | 2 +- ...ible_content_collections_index_versions.go | 2 +- ...nt_collections_index_versions_docs_blob.go | 2 +- ...pi_v3_plugin_ansible_content_namespaces.go | 992 +++ ...ugin_ansible_search_collection_versions.go | 529 ++ ...i_pulp_ansible_artifacts_collections_v3.go | 2 +- release/api_pulp_ansible_default_api.go | 2 +- release/api_pulp_ansible_default_api_v3.go | 2 +- ...le_default_api_v3_artifacts_collections.go | 2 +- ..._default_api_v3_collection_versions_all.go | 2 +- ...pulp_ansible_default_api_v3_collections.go | 2 +- ..._ansible_default_api_v3_collections_all.go | 2 +- ...ble_default_api_v3_collections_versions.go | 2 +- ...t_api_v3_collections_versions_docs_blob.go | 2 +- ..._pulp_ansible_default_api_v3_namespaces.go | 456 ++ ..._v3_plugin_ansible_client_configuration.go | 22 +- ...i_v3_plugin_ansible_content_collections.go | 2 +- ...ble_content_collections_all_collections.go | 2 +- ...nsible_content_collections_all_versions.go | 2 +- ...n_ansible_content_collections_artifacts.go | 2 +- ...lugin_ansible_content_collections_index.go | 2 +- ...ible_content_collections_index_versions.go | 2 +- ...nt_collections_index_versions_docs_blob.go | 2 +- ...pi_v3_plugin_ansible_content_namespaces.go | 962 +++ ...ugin_ansible_search_collection_versions.go | 516 ++ release/api_pulp_ansible_tags.go | 2 +- release/api_pulp_container_namespaces.go | 2 +- release/api_pulp_maven.go | 2 +- release/api_pypi.go | 2 +- release/api_pypi_legacy.go | 2 +- release/api_pypi_metadata.go | 2 +- release/api_pypi_simple.go | 2 +- release/api_remotes.go | 2 +- release/api_remotes_apt.go | 2 +- release/api_remotes_collection.go | 552 +- release/api_remotes_container.go | 2 +- release/api_remotes_file.go | 2 +- release/api_remotes_git.go | 512 +- release/api_remotes_maven.go | 2 +- release/api_remotes_ostree.go | 2 +- release/api_remotes_python.go | 2 +- release/api_remotes_role.go | 512 +- release/api_remotes_rpm.go | 2 +- release/api_remotes_uln.go | 2 +- release/api_repair.go | 2 +- release/api_repositories.go | 2 +- release/api_repositories_ansible.go | 1020 ++- release/api_repositories_ansible_versions.go | 2 +- release/api_repositories_apt.go | 2 +- release/api_repositories_apt_versions.go | 2 +- release/api_repositories_container.go | 2 +- release/api_repositories_container_push.go | 2 +- ...pi_repositories_container_push_versions.go | 2 +- .../api_repositories_container_versions.go | 2 +- release/api_repositories_file.go | 2 +- release/api_repositories_file_versions.go | 2 +- release/api_repositories_maven.go | 2 +- release/api_repositories_maven_versions.go | 2 +- release/api_repositories_ostree.go | 2 +- release/api_repositories_ostree_versions.go | 2 +- release/api_repositories_python.go | 2 +- release/api_repositories_python_versions.go | 2 +- release/api_repositories_reclaim_space.go | 2 +- release/api_repositories_rpm.go | 2 +- release/api_repositories_rpm_versions.go | 2 +- release/api_repository_versions.go | 2 +- release/api_roles.go | 2 +- release/api_rpm_comps.go | 2 +- release/api_rpm_copy.go | 2 +- release/api_signing_services.go | 2 +- release/api_status.go | 2 +- release/api_task_groups.go | 2 +- release/api_task_schedules.go | 2 +- release/api_tasks.go | 2 +- release/api_token.go | 2 +- release/api_uploads.go | 2 +- release/api_upstream_pulps.go | 2 +- release/api_users.go | 2 +- release/api_users_roles.go | 2 +- release/api_versions.go | 122 +- release/api_workers.go | 2 +- release/client.go | 26 +- release/configuration.go | 2 +- .../docs/AnsibleAnsibleNamespaceMetadata.md | 207 + ...AnsibleAnsibleNamespaceMetadataResponse.md | 285 + release/docs/AnsibleAnsibleRepository.md | 26 + .../docs/AnsibleAnsibleRepositoryResponse.md | 52 + .../docs/AnsibleCollectionRemoteResponse.md | 26 + release/docs/AnsibleCollectionVersion.md | 212 + release/docs/AnsibleCollectionVersionMark.md | 72 + .../AnsibleCollectionVersionMarkResponse.md | 124 + .../docs/AnsibleCollectionVersionResponse.md | 52 +- .../docs/AnsibleCollectionVersionSignature.md | 98 + release/docs/AnsibleCollectionsApi.md | 296 + release/docs/AnsibleGitRemote.md | 572 +- release/docs/AnsibleGitRemoteResponse.md | 560 +- release/docs/AnsibleRepositoryMark.md | 72 + release/docs/AnsibleRoleResponse.md | 50 +- release/docs/Artifact.md | 293 + release/docs/ArtifactDistributionResponse.md | 138 +- release/docs/CollectionNamespaceResponse.md | 26 + release/docs/CollectionOneShot.md | 155 + release/docs/CollectionSummaryResponse.md | 300 + release/docs/CollectionVersionCopyMove.md | 98 + release/docs/CollectionVersionListResponse.md | 26 + release/docs/CollectionVersionResponse.md | 26 + release/docs/CollectionVersionSearchList.md | 166 + .../CollectionVersionSearchListResponse.md | 192 + release/docs/CompsXml.md | 103 + .../docs/ContainerContainerDistribution.md | 88 +- .../ContainerContainerDistributionResponse.md | 106 +- .../docs/ContainerContainerPushRepository.md | 144 +- ...ontainerContainerPushRepositoryResponse.md | 248 +- release/docs/ContentCollectionMarksApi.md | 237 + release/docs/ContentCollectionVersionsApi.md | 12 +- release/docs/ContentNamespacesApi.md | 261 + release/docs/DebBasePackage.md | 160 + release/docs/DebGenericContent.md | 155 + release/docs/DistributionsAnsibleApi.md | 296 + release/docs/FileFileContent.md | 155 + release/docs/NamespaceLink.md | 72 + release/docs/NamespaceLinkResponse.md | 72 + release/docs/OCIBuildImage.md | 134 + release/docs/PackageUpload.md | 98 + ...CollectionVersionSearchListResponseList.md | 108 + ...bleAnsibleNamespaceMetadataResponseList.md | 154 + ...nsibleCollectionVersionMarkResponseList.md | 154 + .../PatchedansibleAnsibleNamespaceMetadata.md | 212 + .../docs/PatchedansibleAnsibleRepository.md | 26 + release/docs/PatchedansibleGitRemote.md | 572 +- .../PatchedcontainerContainerDistribution.md | 96 +- ...PatchedcontainerContainerPushRepository.md | 144 +- release/docs/PulpAnsibleApiV3NamespacesApi.md | 191 + ...piV3PluginAnsibleClientConfigurationApi.md | 16 +- ...eApiV3PluginAnsibleContentNamespacesApi.md | 453 ++ ...luginAnsibleSearchCollectionVersionsApi.md | 202 + .../PulpAnsibleDefaultApiV3NamespacesApi.md | 182 + ...piV3PluginAnsibleClientConfigurationApi.md | 16 +- ...tApiV3PluginAnsibleContentNamespacesApi.md | 438 ++ ...luginAnsibleSearchCollectionVersionsApi.md | 190 + release/docs/PythonBanderRemote.md | 98 + release/docs/PythonPythonPackageContent.md | 727 +++ release/docs/RemotesCollectionApi.md | 308 +- release/docs/RemotesGitApi.md | 296 + release/docs/RemotesRoleApi.md | 296 + release/docs/RepositoriesAnsibleApi.md | 588 ++ release/docs/Repository.md | 185 + release/docs/RpmPackage.md | 160 + release/docs/RpmUpdateRecord.md | 82 + release/docs/Task.md | 72 + .../UnpaginatedCollectionVersionResponse.md | 26 + release/docs/UploadChunk.md | 87 + release/docs/VersionsApi.md | 56 +- release/go.mod | 4 + release/go.sum | 16 + release/model_access_policy.go | 2 +- release/model_access_policy_response.go | 2 +- release/model_addon_response.go | 2 +- release/model_ansible_ansible_distribution.go | 2 +- ...l_ansible_ansible_distribution_response.go | 2 +- ...odel_ansible_ansible_namespace_metadata.go | 342 + ...ble_ansible_namespace_metadata_response.go | 442 ++ release/model_ansible_ansible_repository.go | 38 +- ...del_ansible_ansible_repository_response.go | 72 +- release/model_ansible_collection.go | 2 +- release/model_ansible_collection_remote.go | 2 +- ...odel_ansible_collection_remote_response.go | 36 +- release/model_ansible_collection_response.go | 2 +- release/model_ansible_collection_version.go | 351 ++ .../model_ansible_collection_version_mark.go | 147 + ...nsible_collection_version_mark_response.go | 217 + ...del_ansible_collection_version_response.go | 68 +- ...el_ansible_collection_version_signature.go | 185 + ...e_collection_version_signature_response.go | 2 +- release/model_ansible_git_remote.go | 734 +-- release/model_ansible_git_remote_response.go | 726 +-- release/model_ansible_repository_mark.go | 147 + release/model_ansible_repository_rebuild.go | 2 +- release/model_ansible_repository_signature.go | 2 +- release/model_ansible_repository_sync_url.go | 2 +- release/model_ansible_role.go | 2 +- release/model_ansible_role_remote.go | 2 +- release/model_ansible_role_remote_response.go | 2 +- release/model_ansible_role_response.go | 76 +- release/model_ansible_tag_response.go | 2 +- release/model_apt_repository_sync_url.go | 2 +- release/model_artifact.go | 439 ++ .../model_artifact_distribution_response.go | 188 +- release/model_artifact_ref_response.go | 2 +- release/model_artifact_response.go | 2 +- release/model_async_operation_response.go | 2 +- release/model_certguard_rhsm_cert_guard.go | 2 +- ...odel_certguard_rhsm_cert_guard_response.go | 2 +- release/model_certguard_x509_cert_guard.go | 2 +- ...odel_certguard_x509_cert_guard_response.go | 2 +- release/model_checksum_response.go | 2 +- .../model_client_configuration_response.go | 2 +- ...model_collection_import_detail_response.go | 2 +- release/model_collection_metadata_response.go | 2 +- .../model_collection_namespace_response.go | 36 +- release/model_collection_one_shot.go | 268 + release/model_collection_ref_response.go | 2 +- release/model_collection_response.go | 2 +- release/model_collection_summary_response.go | 452 ++ release/model_collection_version_copy_move.go | 184 + .../model_collection_version_docs_response.go | 2 +- .../model_collection_version_list_response.go | 36 +- release/model_collection_version_response.go | 36 +- .../model_collection_version_search_list.go | 256 + ...collection_version_search_list_response.go | 289 + release/model_comps_xml.go | 194 + release/model_container_blob_response.go | 2 +- .../model_container_container_distribution.go | 116 +- ...ntainer_container_distribution_response.go | 148 +- .../model_container_container_namespace.go | 2 +- ..._container_container_namespace_response.go | 2 +- ...del_container_container_push_repository.go | 190 +- ...iner_container_push_repository_response.go | 328 +- release/model_container_container_remote.go | 2 +- ...del_container_container_remote_response.go | 2 +- .../model_container_container_repository.go | 2 +- ...container_container_repository_response.go | 2 +- release/model_container_manifest_response.go | 2 +- ...l_container_manifest_signature_response.go | 2 +- .../model_container_repository_sync_url.go | 2 +- release/model_container_tag_response.go | 2 +- release/model_content_app_status_response.go | 2 +- release/model_content_guard_response.go | 2 +- .../model_content_redirect_content_guard.go | 2 +- ...content_redirect_content_guard_response.go | 2 +- release/model_content_settings_response.go | 2 +- release/model_content_summary_response.go | 2 +- release/model_copy.go | 2 +- release/model_database_connection_response.go | 2 +- release/model_deb_apt_distribution.go | 2 +- .../model_deb_apt_distribution_response.go | 2 +- release/model_deb_apt_publication.go | 2 +- release/model_deb_apt_publication_response.go | 2 +- release/model_deb_apt_remote.go | 2 +- release/model_deb_apt_remote_response.go | 2 +- release/model_deb_apt_repository.go | 2 +- release/model_deb_apt_repository_response.go | 2 +- release/model_deb_base_package.go | 277 + release/model_deb_base_package_response.go | 2 +- release/model_deb_generic_content.go | 268 + release/model_deb_generic_content_response.go | 2 +- release/model_deb_installer_file_index.go | 2 +- ...model_deb_installer_file_index_response.go | 2 +- release/model_deb_package_index.go | 2 +- release/model_deb_package_index_response.go | 2 +- .../model_deb_package_release_component.go | 2 +- ..._deb_package_release_component_response.go | 2 +- release/model_deb_release.go | 2 +- release/model_deb_release_architecture.go | 2 +- ...model_deb_release_architecture_response.go | 2 +- release/model_deb_release_component.go | 2 +- .../model_deb_release_component_response.go | 2 +- release/model_deb_release_file.go | 2 +- release/model_deb_release_file_response.go | 2 +- release/model_deb_release_response.go | 2 +- release/model_deb_verbatim_publication.go | 2 +- ...model_deb_verbatim_publication_response.go | 2 +- release/model_distribution_response.go | 2 +- release/model_domain.go | 2 +- release/model_domain_response.go | 2 +- release/model_evaluation_response.go | 2 +- release/model_exclude_platforms_enum.go | 2 +- ...odel_file_file_alternate_content_source.go | 2 +- ..._file_alternate_content_source_response.go | 2 +- release/model_file_file_content.go | 268 + release/model_file_file_content_response.go | 2 +- release/model_file_file_distribution.go | 2 +- .../model_file_file_distribution_response.go | 2 +- release/model_file_file_publication.go | 2 +- .../model_file_file_publication_response.go | 2 +- release/model_file_file_remote.go | 2 +- release/model_file_file_remote_response.go | 2 +- release/model_file_file_repository.go | 2 +- .../model_file_file_repository_response.go | 2 +- release/model_filesystem_export.go | 2 +- release/model_filesystem_export_response.go | 2 +- release/model_filesystem_exporter.go | 2 +- release/model_filesystem_exporter_response.go | 2 +- release/model_galaxy_collection.go | 2 +- release/model_galaxy_collection_response.go | 2 +- ...odel_galaxy_collection_version_response.go | 2 +- release/model_galaxy_role_response.go | 2 +- release/model_galaxy_role_version_response.go | 2 +- release/model_group.go | 2 +- .../model_group_progress_report_response.go | 2 +- release/model_group_response.go | 2 +- release/model_group_role.go | 2 +- release/model_group_role_response.go | 2 +- release/model_group_user.go | 2 +- release/model_group_user_response.go | 2 +- release/model_image_response.go | 2 +- release/model_import_response.go | 2 +- release/model_manifest_copy.go | 2 +- release/model_maven_maven_artifact.go | 2 +- .../model_maven_maven_artifact_response.go | 2 +- release/model_maven_maven_distribution.go | 2 +- ...model_maven_maven_distribution_response.go | 2 +- release/model_maven_maven_remote.go | 2 +- release/model_maven_maven_remote_response.go | 2 +- release/model_maven_maven_repository.go | 2 +- .../model_maven_maven_repository_response.go | 2 +- release/model_media_types_enum.go | 2 +- release/model_metadata_checksum_type_enum.go | 2 +- release/model_method_enum.go | 2 +- release/model_minimal_task_response.go | 2 +- ...odel_multiple_artifact_content_response.go | 2 +- release/model_my_permissions_response.go | 2 +- release/model_namespace_link.go | 145 + release/model_namespace_link_response.go | 145 + release/model_nested_role.go | 2 +- release/model_nested_role_response.go | 2 +- release/model_object_roles_response.go | 2 +- release/model_oci_build_image.go | 244 + release/model_orphans_cleanup.go | 2 +- release/model_ostree_import_all.go | 2 +- release/model_ostree_import_commits_to_ref.go | 2 +- .../model_ostree_ostree_commit_response.go | 2 +- .../model_ostree_ostree_config_response.go | 2 +- .../model_ostree_ostree_content_response.go | 2 +- release/model_ostree_ostree_distribution.go | 2 +- ...del_ostree_ostree_distribution_response.go | 2 +- .../model_ostree_ostree_object_response.go | 2 +- release/model_ostree_ostree_ref_response.go | 2 +- release/model_ostree_ostree_remote.go | 2 +- .../model_ostree_ostree_remote_response.go | 2 +- release/model_ostree_ostree_repository.go | 2 +- ...model_ostree_ostree_repository_response.go | 2 +- .../model_ostree_ostree_summary_response.go | 2 +- release/model_package_checksum_type_enum.go | 2 +- release/model_package_metadata_response.go | 2 +- release/model_package_types_enum.go | 2 +- release/model_package_upload.go | 189 + release/model_package_upload_task_response.go | 2 +- ...l_paginated_access_policy_response_list.go | 2 +- ...ted_artifact_distribution_response_list.go | 2 +- .../model_paginated_artifact_response_list.go | 2 +- ...odel_paginated_collection_response_list.go | 2 +- ...aginated_collection_response_list_links.go | 2 +- ...paginated_collection_response_list_meta.go | 2 +- ...d_collection_version_list_response_list.go | 2 +- ...ction_version_search_list_response_list.go | 199 + ...l_paginated_content_guard_response_list.go | 2 +- ...nt_redirect_content_guard_response_list.go | 2 +- ...el_paginated_distribution_response_list.go | 2 +- .../model_paginated_domain_response_list.go | 2 +- ...ginated_filesystem_export_response_list.go | 2 +- ...nated_filesystem_exporter_response_list.go | 2 +- ...ginated_galaxy_collection_response_list.go | 2 +- ...galaxy_collection_version_response_list.go | 2 +- ...del_paginated_galaxy_role_response_list.go | 2 +- ...nated_galaxy_role_version_response_list.go | 2 +- .../model_paginated_group_response_list.go | 2 +- ...odel_paginated_group_role_response_list.go | 2 +- ...odel_paginated_group_user_response_list.go | 2 +- .../model_paginated_import_response_list.go | 2 +- ...multiple_artifact_content_response_list.go | 2 +- ...del_paginated_publication_response_list.go | 2 +- ...del_paginated_pulp_export_response_list.go | 2 +- ...l_paginated_pulp_exporter_response_list.go | 2 +- ...l_paginated_pulp_importer_response_list.go | 2 +- ...inated_rbac_content_guard_response_list.go | 2 +- .../model_paginated_remote_response_list.go | 2 +- ...odel_paginated_repository_response_list.go | 2 +- ...inated_repository_version_response_list.go | 2 +- release/model_paginated_role_response_list.go | 2 +- ...paginated_signing_service_response_list.go | 2 +- release/model_paginated_tag_response_list.go | 2 +- ...odel_paginated_task_group_response_list.go | 2 +- release/model_paginated_task_response_list.go | 2 +- ...l_paginated_task_schedule_response_list.go | 2 +- .../model_paginated_upload_response_list.go | 2 +- ...l_paginated_upstream_pulp_response_list.go | 2 +- release/model_paginated_user_response_list.go | 2 +- ...model_paginated_user_role_response_list.go | 2 +- .../model_paginated_worker_response_list.go | 2 +- ...ible_ansible_distribution_response_list.go | 2 +- ...nsible_namespace_metadata_response_list.go | 255 + ...nsible_ansible_repository_response_list.go | 2 +- ...ansible_collection_remote_response_list.go | 2 +- ...ginatedansible_collection_response_list.go | 2 +- ...e_collection_version_mark_response_list.go | 255 + ...nsible_collection_version_response_list.go | 2 +- ...lection_version_signature_response_list.go | 2 +- ...ginatedansible_git_remote_response_list.go | 2 +- ...inatedansible_role_remote_response_list.go | 2 +- ...del_paginatedansible_role_response_list.go | 2 +- ...certguard_rhsm_cert_guard_response_list.go | 2 +- ...certguard_x509_cert_guard_response_list.go | 2 +- ...l_paginatedcontainer_blob_response_list.go | 2 +- ...er_container_distribution_response_list.go | 2 +- ...ainer_container_namespace_response_list.go | 2 +- ...container_push_repository_response_list.go | 2 +- ...ontainer_container_remote_response_list.go | 2 +- ...iner_container_repository_response_list.go | 2 +- ...ginatedcontainer_manifest_response_list.go | 2 +- ...tainer_manifest_signature_response_list.go | 2 +- ...el_paginatedcontainer_tag_response_list.go | 2 +- ...nateddeb_apt_distribution_response_list.go | 2 +- ...inateddeb_apt_publication_response_list.go | 2 +- ...l_paginateddeb_apt_remote_response_list.go | 2 +- ...ginateddeb_apt_repository_response_list.go | 2 +- ...paginateddeb_base_package_response_list.go | 2 +- ...inateddeb_generic_content_response_list.go | 2 +- ...ddeb_installer_file_index_response_list.go | 2 +- ...aginateddeb_package_index_response_list.go | 2 +- ...package_release_component_response_list.go | 2 +- ...ddeb_release_architecture_response_list.go | 2 +- ...ateddeb_release_component_response_list.go | 2 +- ...paginateddeb_release_file_response_list.go | 2 +- ...odel_paginateddeb_release_response_list.go | 2 +- ...ddeb_verbatim_publication_response_list.go | 2 +- ..._alternate_content_source_response_list.go | 2 +- ...aginatedfile_file_content_response_list.go | 2 +- ...tedfile_file_distribution_response_list.go | 2 +- ...atedfile_file_publication_response_list.go | 2 +- ...paginatedfile_file_remote_response_list.go | 2 +- ...natedfile_file_repository_response_list.go | 2 +- ...natedmaven_maven_artifact_response_list.go | 2 +- ...dmaven_maven_distribution_response_list.go | 2 +- ...ginatedmaven_maven_remote_response_list.go | 2 +- ...tedmaven_maven_repository_response_list.go | 2 +- ...natedostree_ostree_commit_response_list.go | 2 +- ...natedostree_ostree_config_response_list.go | 2 +- ...atedostree_ostree_content_response_list.go | 2 +- ...stree_ostree_distribution_response_list.go | 2 +- ...natedostree_ostree_object_response_list.go | 2 +- ...aginatedostree_ostree_ref_response_list.go | 2 +- ...natedostree_ostree_remote_response_list.go | 2 +- ...dostree_ostree_repository_response_list.go | 2 +- ...atedostree_ostree_summary_response_list.go | 2 +- ...ython_python_distribution_response_list.go | 2 +- ...on_python_package_content_response_list.go | 2 +- ...python_python_publication_response_list.go | 2 +- ...natedpython_python_remote_response_list.go | 2 +- ...dpython_python_repository_response_list.go | 2 +- ...atedrpm_distribution_tree_response_list.go | 2 +- ...atedrpm_modulemd_defaults_response_list.go | 2 +- ...atedrpm_modulemd_obsolete_response_list.go | 2 +- ...del_paginatedrpm_modulemd_response_list.go | 2 +- ...natedrpm_package_category_response_list.go | 2 +- ...edrpm_package_environment_response_list.go | 2 +- ...aginatedrpm_package_group_response_list.go | 2 +- ...atedrpm_package_langpacks_response_list.go | 2 +- ...odel_paginatedrpm_package_response_list.go | 2 +- ...tedrpm_repo_metadata_file_response_list.go | 2 +- ..._alternate_content_source_response_list.go | 2 +- ...natedrpm_rpm_distribution_response_list.go | 2 +- ...inatedrpm_rpm_publication_response_list.go | 2 +- ...l_paginatedrpm_rpm_remote_response_list.go | 2 +- ...ginatedrpm_rpm_repository_response_list.go | 2 +- ...l_paginatedrpm_uln_remote_response_list.go | 2 +- ...aginatedrpm_update_record_response_list.go | 2 +- release/model_patched_access_policy.go | 2 +- ..._patched_content_redirect_content_guard.go | 2 +- release/model_patched_domain.go | 2 +- release/model_patched_filesystem_exporter.go | 2 +- release/model_patched_group.go | 2 +- release/model_patched_pulp_exporter.go | 2 +- release/model_patched_pulp_importer.go | 2 +- release/model_patched_rbac_content_guard.go | 2 +- release/model_patched_role.go | 2 +- release/model_patched_task_cancel.go | 2 +- release/model_patched_upstream_pulp.go | 2 +- release/model_patched_user.go | 2 +- ...del_patchedansible_ansible_distribution.go | 2 +- ...tchedansible_ansible_namespace_metadata.go | 351 ++ ...model_patchedansible_ansible_repository.go | 38 +- .../model_patchedansible_collection_remote.go | 2 +- release/model_patchedansible_git_remote.go | 734 +-- release/model_patchedansible_role_remote.go | 2 +- .../model_patchedcertguard_rhsm_cert_guard.go | 2 +- .../model_patchedcertguard_x509_cert_guard.go | 2 +- ...patchedcontainer_container_distribution.go | 124 +- ...chedcontainer_container_push_repository.go | 190 +- ...model_patchedcontainer_container_remote.go | 2 +- ...l_patchedcontainer_container_repository.go | 2 +- release/model_patcheddeb_apt_distribution.go | 2 +- release/model_patcheddeb_apt_remote.go | 2 +- release/model_patcheddeb_apt_repository.go | 2 +- ...tchedfile_file_alternate_content_source.go | 2 +- .../model_patchedfile_file_distribution.go | 2 +- release/model_patchedfile_file_remote.go | 2 +- release/model_patchedfile_file_repository.go | 2 +- .../model_patchedmaven_maven_distribution.go | 2 +- release/model_patchedmaven_maven_remote.go | 2 +- .../model_patchedmaven_maven_repository.go | 2 +- ...model_patchedostree_ostree_distribution.go | 2 +- release/model_patchedostree_ostree_remote.go | 2 +- .../model_patchedostree_ostree_repository.go | 2 +- ...model_patchedpython_python_distribution.go | 2 +- release/model_patchedpython_python_remote.go | 2 +- .../model_patchedpython_python_repository.go | 2 +- ...patchedrpm_rpm_alternate_content_source.go | 2 +- release/model_patchedrpm_rpm_distribution.go | 2 +- release/model_patchedrpm_rpm_remote.go | 2 +- release/model_patchedrpm_rpm_repository.go | 2 +- release/model_patchedrpm_uln_remote.go | 2 +- release/model_policy462_enum.go | 2 +- release/model_policy762_enum.go | 2 +- release/model_policy_db6_enum.go | 2 +- release/model_progress_report_response.go | 2 +- release/model_publication_response.go | 2 +- release/model_pulp_export.go | 2 +- release/model_pulp_export_response.go | 2 +- release/model_pulp_exporter.go | 2 +- release/model_pulp_exporter_response.go | 2 +- release/model_pulp_import.go | 2 +- release/model_pulp_import_check.go | 2 +- release/model_pulp_import_check_response.go | 2 +- .../model_pulp_import_check_response_path.go | 2 +- ...pulp_import_check_response_repo_mapping.go | 2 +- .../model_pulp_import_check_response_toc.go | 2 +- release/model_pulp_importer.go | 2 +- release/model_pulp_importer_response.go | 2 +- release/model_purge.go | 2 +- release/model_python_bander_remote.go | 188 + release/model_python_python_distribution.go | 2 +- ...del_python_python_distribution_response.go | 2 +- .../model_python_python_package_content.go | 1086 ++++ ..._python_python_package_content_response.go | 2 +- release/model_python_python_publication.go | 2 +- ...odel_python_python_publication_response.go | 2 +- release/model_python_python_remote.go | 2 +- .../model_python_python_remote_response.go | 2 +- release/model_python_python_repository.go | 2 +- ...model_python_python_repository_response.go | 2 +- release/model_rbac_content_guard.go | 2 +- release/model_rbac_content_guard_response.go | 2 +- release/model_reclaim_space.go | 2 +- release/model_recursive_manage.go | 2 +- release/model_redis_connection_response.go | 2 +- release/model_remote_response.go | 2 +- ...del_remote_response_hidden_fields_inner.go | 2 +- release/model_remove_image.go | 2 +- release/model_remove_signatures.go | 2 +- release/model_remove_signatures_response.go | 2 +- release/model_repair.go | 2 +- release/model_repo_metadata_response.go | 2 +- release/model_repository.go | 296 + .../model_repository_add_cached_content.go | 2 +- .../model_repository_add_remove_content.go | 2 +- release/model_repository_response.go | 2 +- release/model_repository_sign.go | 2 +- release/model_repository_sync_url.go | 2 +- release/model_repository_version_response.go | 2 +- ...sitory_version_response_content_summary.go | 2 +- release/model_role.go | 2 +- release/model_role_response.go | 2 +- .../model_rpm_distribution_tree_response.go | 2 +- release/model_rpm_modulemd.go | 2 +- release/model_rpm_modulemd_defaults.go | 2 +- .../model_rpm_modulemd_defaults_response.go | 2 +- release/model_rpm_modulemd_obsolete.go | 2 +- .../model_rpm_modulemd_obsolete_response.go | 2 +- release/model_rpm_modulemd_response.go | 2 +- release/model_rpm_package.go | 277 + .../model_rpm_package_category_response.go | 2 +- .../model_rpm_package_environment_response.go | 2 +- release/model_rpm_package_group_response.go | 2 +- .../model_rpm_package_langpacks_response.go | 2 +- release/model_rpm_package_response.go | 2 +- .../model_rpm_repo_metadata_file_response.go | 2 +- release/model_rpm_repository_sync_url.go | 2 +- .../model_rpm_rpm_alternate_content_source.go | 2 +- ...m_rpm_alternate_content_source_response.go | 2 +- release/model_rpm_rpm_distribution.go | 2 +- .../model_rpm_rpm_distribution_response.go | 2 +- release/model_rpm_rpm_publication.go | 2 +- release/model_rpm_rpm_publication_response.go | 2 +- release/model_rpm_rpm_remote.go | 2 +- release/model_rpm_rpm_remote_response.go | 2 +- release/model_rpm_rpm_repository.go | 2 +- release/model_rpm_rpm_repository_response.go | 2 +- release/model_rpm_uln_remote.go | 2 +- release/model_rpm_uln_remote_response.go | 2 +- release/model_rpm_update_collection.go | 2 +- .../model_rpm_update_collection_response.go | 2 +- release/model_rpm_update_record.go | 166 + release/model_rpm_update_record_response.go | 2 +- release/model_signing_service_response.go | 2 +- release/model_skip_types_enum.go | 2 +- release/model_states_enum.go | 2 +- release/model_status_response.go | 2 +- .../model_status_response_content_settings.go | 2 +- ...del_status_response_database_connection.go | 2 +- .../model_status_response_redis_connection.go | 2 +- release/model_status_response_storage.go | 2 +- release/model_storage_class_enum.go | 2 +- release/model_storage_response.go | 2 +- release/model_summary_response.go | 2 +- release/model_sync_policy_enum.go | 2 +- release/model_tag_copy.go | 2 +- release/model_tag_image.go | 2 +- release/model_tag_response.go | 2 +- release/model_task.go | 147 + .../model_task_group_operation_response.go | 2 +- release/model_task_group_response.go | 2 +- release/model_task_response.go | 2 +- release/model_task_schedule_response.go | 2 +- release/model_un_tag_image.go | 2 +- ...unpaginated_collection_version_response.go | 36 +- release/model_upload.go | 2 +- release/model_upload_chunk.go | 167 + release/model_upload_chunk_response.go | 2 +- release/model_upload_commit.go | 2 +- release/model_upload_detail_response.go | 2 +- release/model_upload_response.go | 2 +- release/model_upstream_pulp.go | 2 +- release/model_upstream_pulp_response.go | 2 +- release/model_user.go | 2 +- release/model_user_group.go | 2 +- release/model_user_group_response.go | 2 +- release/model_user_response.go | 2 +- release/model_user_role.go | 2 +- release/model_user_role_response.go | 2 +- release/model_variant_response.go | 2 +- release/model_version_response.go | 2 +- release/model_worker_response.go | 2 +- release/response.go | 2 +- release/test/api_access_policies_test.go | 4 +- release/test/api_acs_file_test.go | 4 +- release/test/api_acs_rpm_test.go | 4 +- release/test/api_ansible_collections_test.go | 60 +- release/test/api_ansible_copy_test.go | 4 +- release/test/api_api_collections_test.go | 4 +- release/test/api_api_roles_test.go | 4 +- release/test/api_artifacts_test.go | 4 +- release/test/api_collection_import_test.go | 4 +- release/test/api_content_advisories_test.go | 4 +- release/test/api_content_artifact_test.go | 4 +- release/test/api_content_blobs_test.go | 4 +- ...pi_content_collection_deprecations_test.go | 4 +- .../test/api_content_collection_marks_test.go | 63 + .../api_content_collection_signatures_test.go | 4 +- .../api_content_collection_versions_test.go | 4 +- release/test/api_content_commits_test.go | 4 +- release/test/api_content_configs_test.go | 4 +- release/test/api_content_content_test.go | 4 +- .../api_content_distribution_trees_test.go | 4 +- release/test/api_content_files_test.go | 4 +- .../test/api_content_generic_contents_test.go | 4 +- ...api_content_installer_file_indices_test.go | 4 +- .../api_content_installer_packages_test.go | 4 +- release/test/api_content_manifests_test.go | 4 +- .../api_content_modulemd_defaults_test.go | 4 +- .../api_content_modulemd_obsoletes_test.go | 4 +- release/test/api_content_modulemds_test.go | 4 +- release/test/api_content_namespaces_test.go | 64 + release/test/api_content_objects_test.go | 4 +- .../test/api_content_package_indices_test.go | 4 +- ...content_package_release_components_test.go | 4 +- .../api_content_packagecategories_test.go | 4 +- .../api_content_packageenvironments_test.go | 4 +- .../test/api_content_packagegroups_test.go | 4 +- .../test/api_content_packagelangpacks_test.go | 4 +- release/test/api_content_packages_test.go | 4 +- release/test/api_content_refs_test.go | 4 +- .../api_content_release_architectures_test.go | 4 +- .../api_content_release_components_test.go | 4 +- .../test/api_content_release_files_test.go | 4 +- release/test/api_content_releases_test.go | 4 +- .../api_content_repo_metadata_files_test.go | 4 +- release/test/api_content_roles_test.go | 4 +- release/test/api_content_signatures_test.go | 4 +- release/test/api_content_summaries_test.go | 4 +- release/test/api_content_tags_test.go | 4 +- release/test/api_content_test.go | 4 +- ...api_contentguards_content_redirect_test.go | 4 +- release/test/api_contentguards_rbac_test.go | 4 +- release/test/api_contentguards_rhsm_test.go | 4 +- release/test/api_contentguards_test.go | 4 +- release/test/api_contentguards_x509_test.go | 4 +- release/test/api_deb_copy_test.go | 4 +- .../test/api_distributions_ansible_test.go | 60 +- release/test/api_distributions_apt_test.go | 4 +- .../test/api_distributions_artifacts_test.go | 4 +- .../test/api_distributions_container_test.go | 4 +- release/test/api_distributions_file_test.go | 4 +- release/test/api_distributions_maven_test.go | 4 +- release/test/api_distributions_ostree_test.go | 4 +- release/test/api_distributions_pypi_test.go | 4 +- release/test/api_distributions_rpm_test.go | 4 +- release/test/api_distributions_test.go | 4 +- release/test/api_docs_api_json_test.go | 4 +- release/test/api_docs_api_yaml_test.go | 4 +- release/test/api_domains_test.go | 4 +- .../api_exporters_filesystem_exports_test.go | 4 +- release/test/api_exporters_filesystem_test.go | 4 +- .../test/api_exporters_pulp_exports_test.go | 4 +- release/test/api_exporters_pulp_test.go | 4 +- release/test/api_galaxy_detail_test.go | 4 +- release/test/api_groups_roles_test.go | 4 +- release/test/api_groups_test.go | 4 +- release/test/api_groups_users_test.go | 4 +- .../api_importers_pulp_import_check_test.go | 4 +- .../test/api_importers_pulp_imports_test.go | 4 +- release/test/api_importers_pulp_test.go | 4 +- release/test/api_orphans_cleanup_test.go | 4 +- release/test/api_orphans_test.go | 4 +- release/test/api_publications_apt_test.go | 4 +- release/test/api_publications_file_test.go | 4 +- release/test/api_publications_pypi_test.go | 4 +- release/test/api_publications_rpm_test.go | 4 +- release/test/api_publications_test.go | 4 +- .../test/api_publications_verbatim_test.go | 4 +- release/test/api_pulp_ansible_api_test.go | 4 +- ...nsible_api_v2_collections_versions_test.go | 4 +- ...sible_api_v3_artifacts_collections_test.go | 4 +- ...ble_api_v3_collection_versions_all_test.go | 4 +- ...ulp_ansible_api_v3_collections_all_test.go | 4 +- ...pi_pulp_ansible_api_v3_collections_test.go | 4 +- ..._v3_collections_versions_docs_blob_test.go | 4 +- ...nsible_api_v3_collections_versions_test.go | 4 +- ...api_pulp_ansible_api_v3_namespaces_test.go | 54 + ...lugin_ansible_client_configuration_test.go | 8 +- ...ontent_collections_all_collections_test.go | 4 +- ...e_content_collections_all_versions_test.go | 4 +- ...ible_content_collections_artifacts_test.go | 4 +- ..._ansible_content_collections_index_test.go | 4 +- ...llections_index_versions_docs_blob_test.go | 4 +- ...content_collections_index_versions_test.go | 4 +- ...plugin_ansible_content_collections_test.go | 4 +- ..._plugin_ansible_content_namespaces_test.go | 103 + ...ansible_search_collection_versions_test.go | 53 + release/test/api_pulp_ansible_api_v3_test.go | 4 +- ...p_ansible_artifacts_collections_v3_test.go | 4 +- .../test/api_pulp_ansible_default_api_test.go | 4 +- ...fault_api_v3_artifacts_collections_test.go | 4 +- ...ult_api_v3_collection_versions_all_test.go | 4 +- ...ble_default_api_v3_collections_all_test.go | 4 +- ...ansible_default_api_v3_collections_test.go | 4 +- ..._v3_collections_versions_docs_blob_test.go | 4 +- ...efault_api_v3_collections_versions_test.go | 4 +- ..._ansible_default_api_v3_namespaces_test.go | 51 + ...lugin_ansible_client_configuration_test.go | 8 +- ...ontent_collections_all_collections_test.go | 4 +- ...e_content_collections_all_versions_test.go | 4 +- ...ible_content_collections_artifacts_test.go | 4 +- ..._ansible_content_collections_index_test.go | 4 +- ...llections_index_versions_docs_blob_test.go | 4 +- ...content_collections_index_versions_test.go | 4 +- ...plugin_ansible_content_collections_test.go | 4 +- ..._plugin_ansible_content_namespaces_test.go | 98 + ...ansible_search_collection_versions_test.go | 49 + .../api_pulp_ansible_default_api_v3_test.go | 4 +- release/test/api_pulp_ansible_tags_test.go | 4 +- .../api_pulp_container_namespaces_test.go | 4 +- release/test/api_pulp_maven_test.go | 4 +- release/test/api_pypi_legacy_test.go | 4 +- release/test/api_pypi_metadata_test.go | 4 +- release/test/api_pypi_simple_test.go | 4 +- release/test/api_pypi_test.go | 4 +- release/test/api_remotes_apt_test.go | 4 +- release/test/api_remotes_collection_test.go | 60 +- release/test/api_remotes_container_test.go | 4 +- release/test/api_remotes_file_test.go | 4 +- release/test/api_remotes_git_test.go | 60 +- release/test/api_remotes_maven_test.go | 4 +- release/test/api_remotes_ostree_test.go | 4 +- release/test/api_remotes_python_test.go | 4 +- release/test/api_remotes_role_test.go | 60 +- release/test/api_remotes_rpm_test.go | 4 +- release/test/api_remotes_test.go | 4 +- release/test/api_remotes_uln_test.go | 4 +- release/test/api_repair_test.go | 4 +- release/test/api_repositories_ansible_test.go | 116 +- .../api_repositories_ansible_versions_test.go | 4 +- release/test/api_repositories_apt_test.go | 4 +- .../api_repositories_apt_versions_test.go | 4 +- .../api_repositories_container_push_test.go | 4 +- ...positories_container_push_versions_test.go | 4 +- .../test/api_repositories_container_test.go | 4 +- ...pi_repositories_container_versions_test.go | 4 +- release/test/api_repositories_file_test.go | 4 +- .../api_repositories_file_versions_test.go | 4 +- release/test/api_repositories_maven_test.go | 4 +- .../api_repositories_maven_versions_test.go | 4 +- release/test/api_repositories_ostree_test.go | 4 +- .../api_repositories_ostree_versions_test.go | 4 +- release/test/api_repositories_python_test.go | 4 +- .../api_repositories_python_versions_test.go | 4 +- .../api_repositories_reclaim_space_test.go | 4 +- release/test/api_repositories_rpm_test.go | 4 +- .../api_repositories_rpm_versions_test.go | 4 +- release/test/api_repositories_test.go | 4 +- release/test/api_repository_versions_test.go | 4 +- release/test/api_roles_test.go | 4 +- release/test/api_rpm_comps_test.go | 4 +- release/test/api_rpm_copy_test.go | 4 +- release/test/api_signing_services_test.go | 4 +- release/test/api_status_test.go | 4 +- release/test/api_task_groups_test.go | 4 +- release/test/api_task_schedules_test.go | 4 +- release/test/api_tasks_test.go | 4 +- release/test/api_token_test.go | 4 +- release/test/api_uploads_test.go | 4 +- release/test/api_upstream_pulps_test.go | 4 +- release/test/api_users_roles_test.go | 4 +- release/test/api_users_test.go | 4 +- release/test/api_versions_test.go | 16 +- release/test/api_workers_test.go | 4 +- release/utils.go | 2 +- 911 files changed, 37856 insertions(+), 5048 deletions(-) create mode 100644 release/api_content_collection_marks.go create mode 100644 release/api_content_namespaces.go create mode 100644 release/api_pulp_ansible_api_v3_namespaces.go create mode 100644 release/api_pulp_ansible_api_v3_plugin_ansible_content_namespaces.go create mode 100644 release/api_pulp_ansible_api_v3_plugin_ansible_search_collection_versions.go create mode 100644 release/api_pulp_ansible_default_api_v3_namespaces.go create mode 100644 release/api_pulp_ansible_default_api_v3_plugin_ansible_content_namespaces.go create mode 100644 release/api_pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions.go create mode 100644 release/docs/AnsibleAnsibleNamespaceMetadata.md create mode 100644 release/docs/AnsibleAnsibleNamespaceMetadataResponse.md create mode 100644 release/docs/AnsibleCollectionVersion.md create mode 100644 release/docs/AnsibleCollectionVersionMark.md create mode 100644 release/docs/AnsibleCollectionVersionMarkResponse.md create mode 100644 release/docs/AnsibleCollectionVersionSignature.md create mode 100644 release/docs/AnsibleRepositoryMark.md create mode 100644 release/docs/Artifact.md create mode 100644 release/docs/CollectionOneShot.md create mode 100644 release/docs/CollectionSummaryResponse.md create mode 100644 release/docs/CollectionVersionCopyMove.md create mode 100644 release/docs/CollectionVersionSearchList.md create mode 100644 release/docs/CollectionVersionSearchListResponse.md create mode 100644 release/docs/CompsXml.md create mode 100644 release/docs/ContentCollectionMarksApi.md create mode 100644 release/docs/ContentNamespacesApi.md create mode 100644 release/docs/DebBasePackage.md create mode 100644 release/docs/DebGenericContent.md create mode 100644 release/docs/FileFileContent.md create mode 100644 release/docs/NamespaceLink.md create mode 100644 release/docs/NamespaceLinkResponse.md create mode 100644 release/docs/OCIBuildImage.md create mode 100644 release/docs/PackageUpload.md create mode 100644 release/docs/PaginatedCollectionVersionSearchListResponseList.md create mode 100644 release/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md create mode 100644 release/docs/PaginatedansibleCollectionVersionMarkResponseList.md create mode 100644 release/docs/PatchedansibleAnsibleNamespaceMetadata.md create mode 100644 release/docs/PulpAnsibleApiV3NamespacesApi.md create mode 100644 release/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md create mode 100644 release/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md create mode 100644 release/docs/PulpAnsibleDefaultApiV3NamespacesApi.md create mode 100644 release/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md create mode 100644 release/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md create mode 100644 release/docs/PythonBanderRemote.md create mode 100644 release/docs/PythonPythonPackageContent.md create mode 100644 release/docs/Repository.md create mode 100644 release/docs/RpmPackage.md create mode 100644 release/docs/RpmUpdateRecord.md create mode 100644 release/docs/Task.md create mode 100644 release/docs/UploadChunk.md mode change 100644 => 100755 release/go.mod mode change 100644 => 100755 release/go.sum create mode 100644 release/model_ansible_ansible_namespace_metadata.go create mode 100644 release/model_ansible_ansible_namespace_metadata_response.go create mode 100644 release/model_ansible_collection_version.go create mode 100644 release/model_ansible_collection_version_mark.go create mode 100644 release/model_ansible_collection_version_mark_response.go create mode 100644 release/model_ansible_collection_version_signature.go create mode 100644 release/model_ansible_repository_mark.go create mode 100644 release/model_artifact.go create mode 100644 release/model_collection_one_shot.go create mode 100644 release/model_collection_summary_response.go create mode 100644 release/model_collection_version_copy_move.go create mode 100644 release/model_collection_version_search_list.go create mode 100644 release/model_collection_version_search_list_response.go create mode 100644 release/model_comps_xml.go create mode 100644 release/model_deb_base_package.go create mode 100644 release/model_deb_generic_content.go create mode 100644 release/model_file_file_content.go create mode 100644 release/model_namespace_link.go create mode 100644 release/model_namespace_link_response.go create mode 100644 release/model_oci_build_image.go create mode 100644 release/model_package_upload.go create mode 100644 release/model_paginated_collection_version_search_list_response_list.go create mode 100644 release/model_paginatedansible_ansible_namespace_metadata_response_list.go create mode 100644 release/model_paginatedansible_collection_version_mark_response_list.go create mode 100644 release/model_patchedansible_ansible_namespace_metadata.go create mode 100644 release/model_python_bander_remote.go create mode 100644 release/model_python_python_package_content.go create mode 100644 release/model_repository.go create mode 100644 release/model_rpm_package.go create mode 100644 release/model_rpm_update_record.go create mode 100644 release/model_task.go create mode 100644 release/model_upload_chunk.go create mode 100644 release/test/api_content_collection_marks_test.go create mode 100644 release/test/api_content_namespaces_test.go create mode 100644 release/test/api_pulp_ansible_api_v3_namespaces_test.go create mode 100644 release/test/api_pulp_ansible_api_v3_plugin_ansible_content_namespaces_test.go create mode 100644 release/test/api_pulp_ansible_api_v3_plugin_ansible_search_collection_versions_test.go create mode 100644 release/test/api_pulp_ansible_default_api_v3_namespaces_test.go create mode 100644 release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_test.go create mode 100644 release/test/api_pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_test.go diff --git a/release/.openapi-generator/FILES b/release/.openapi-generator/FILES index 0a8b4211..8511637f 100644 --- a/release/.openapi-generator/FILES +++ b/release/.openapi-generator/FILES @@ -17,6 +17,7 @@ api_content_advisories.go api_content_artifact.go api_content_blobs.go api_content_collection_deprecations.go +api_content_collection_marks.go api_content_collection_signatures.go api_content_collection_versions.go api_content_commits.go @@ -31,6 +32,7 @@ api_content_manifests.go api_content_modulemd_defaults.go api_content_modulemd_obsoletes.go api_content_modulemds.go +api_content_namespaces.go api_content_objects.go api_content_package_indices.go api_content_package_release_components.go @@ -96,6 +98,7 @@ api_pulp_ansible_api_v3_collections.go api_pulp_ansible_api_v3_collections_all.go api_pulp_ansible_api_v3_collections_versions.go api_pulp_ansible_api_v3_collections_versions_docs_blob.go +api_pulp_ansible_api_v3_namespaces.go api_pulp_ansible_api_v3_plugin_ansible_client_configuration.go api_pulp_ansible_api_v3_plugin_ansible_content_collections.go api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections.go @@ -104,6 +107,8 @@ api_pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts.go api_pulp_ansible_api_v3_plugin_ansible_content_collections_index.go api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions.go api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob.go +api_pulp_ansible_api_v3_plugin_ansible_content_namespaces.go +api_pulp_ansible_api_v3_plugin_ansible_search_collection_versions.go api_pulp_ansible_artifacts_collections_v3.go api_pulp_ansible_default_api.go api_pulp_ansible_default_api_v3.go @@ -113,6 +118,7 @@ api_pulp_ansible_default_api_v3_collections.go api_pulp_ansible_default_api_v3_collections_all.go api_pulp_ansible_default_api_v3_collections_versions.go api_pulp_ansible_default_api_v3_collections_versions_docs_blob.go +api_pulp_ansible_default_api_v3_namespaces.go api_pulp_ansible_default_api_v3_plugin_ansible_client_configuration.go api_pulp_ansible_default_api_v3_plugin_ansible_content_collections.go api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections.go @@ -121,6 +127,8 @@ api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts.go api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index.go api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions.go api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob.go +api_pulp_ansible_default_api_v3_plugin_ansible_content_namespaces.go +api_pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions.go api_pulp_ansible_tags.go api_pulp_container_namespaces.go api_pulp_maven.go @@ -187,18 +195,25 @@ docs/AcsRpmApi.md docs/AddonResponse.md docs/AnsibleAnsibleDistribution.md docs/AnsibleAnsibleDistributionResponse.md +docs/AnsibleAnsibleNamespaceMetadata.md +docs/AnsibleAnsibleNamespaceMetadataResponse.md docs/AnsibleAnsibleRepository.md docs/AnsibleAnsibleRepositoryResponse.md docs/AnsibleCollection.md docs/AnsibleCollectionRemote.md docs/AnsibleCollectionRemoteResponse.md docs/AnsibleCollectionResponse.md +docs/AnsibleCollectionVersion.md +docs/AnsibleCollectionVersionMark.md +docs/AnsibleCollectionVersionMarkResponse.md docs/AnsibleCollectionVersionResponse.md +docs/AnsibleCollectionVersionSignature.md docs/AnsibleCollectionVersionSignatureResponse.md docs/AnsibleCollectionsApi.md docs/AnsibleCopyApi.md docs/AnsibleGitRemote.md docs/AnsibleGitRemoteResponse.md +docs/AnsibleRepositoryMark.md docs/AnsibleRepositoryRebuild.md docs/AnsibleRepositorySignature.md docs/AnsibleRepositorySyncURL.md @@ -210,6 +225,7 @@ docs/AnsibleTagResponse.md docs/ApiCollectionsApi.md docs/ApiRolesApi.md docs/AptRepositorySyncURL.md +docs/Artifact.md docs/ArtifactDistributionResponse.md docs/ArtifactRefResponse.md docs/ArtifactResponse.md @@ -225,11 +241,17 @@ docs/CollectionImportApi.md docs/CollectionImportDetailResponse.md docs/CollectionMetadataResponse.md docs/CollectionNamespaceResponse.md +docs/CollectionOneShot.md docs/CollectionRefResponse.md docs/CollectionResponse.md +docs/CollectionSummaryResponse.md +docs/CollectionVersionCopyMove.md docs/CollectionVersionDocsResponse.md docs/CollectionVersionListResponse.md docs/CollectionVersionResponse.md +docs/CollectionVersionSearchList.md +docs/CollectionVersionSearchListResponse.md +docs/CompsXml.md docs/ContainerBlobResponse.md docs/ContainerContainerDistribution.md docs/ContainerContainerDistributionResponse.md @@ -251,6 +273,7 @@ docs/ContentAppStatusResponse.md docs/ContentArtifactApi.md docs/ContentBlobsApi.md docs/ContentCollectionDeprecationsApi.md +docs/ContentCollectionMarksApi.md docs/ContentCollectionSignaturesApi.md docs/ContentCollectionVersionsApi.md docs/ContentCommitsApi.md @@ -266,6 +289,7 @@ docs/ContentManifestsApi.md docs/ContentModulemdDefaultsApi.md docs/ContentModulemdObsoletesApi.md docs/ContentModulemdsApi.md +docs/ContentNamespacesApi.md docs/ContentObjectsApi.md docs/ContentPackageIndicesApi.md docs/ContentPackageReleaseComponentsApi.md @@ -303,8 +327,10 @@ docs/DebAptRemote.md docs/DebAptRemoteResponse.md docs/DebAptRepository.md docs/DebAptRepositoryResponse.md +docs/DebBasePackage.md docs/DebBasePackageResponse.md docs/DebCopyApi.md +docs/DebGenericContent.md docs/DebGenericContentResponse.md docs/DebInstallerFileIndex.md docs/DebInstallerFileIndexResponse.md @@ -346,6 +372,7 @@ docs/ExportersPulpApi.md docs/ExportersPulpExportsApi.md docs/FileFileAlternateContentSource.md docs/FileFileAlternateContentSourceResponse.md +docs/FileFileContent.md docs/FileFileContentResponse.md docs/FileFileDistribution.md docs/FileFileDistributionResponse.md @@ -395,8 +422,11 @@ docs/MethodEnum.md docs/MinimalTaskResponse.md docs/MultipleArtifactContentResponse.md docs/MyPermissionsResponse.md +docs/NamespaceLink.md +docs/NamespaceLinkResponse.md docs/NestedRole.md docs/NestedRoleResponse.md +docs/OCIBuildImage.md docs/ObjectRolesResponse.md docs/OrphansApi.md docs/OrphansCleanup.md @@ -418,6 +448,7 @@ docs/OstreeOstreeSummaryResponse.md docs/PackageChecksumTypeEnum.md docs/PackageMetadataResponse.md docs/PackageTypesEnum.md +docs/PackageUpload.md docs/PackageUploadTaskResponse.md docs/PaginatedAccessPolicyResponseList.md docs/PaginatedArtifactDistributionResponseList.md @@ -426,6 +457,7 @@ docs/PaginatedCollectionResponseList.md docs/PaginatedCollectionResponseListLinks.md docs/PaginatedCollectionResponseListMeta.md docs/PaginatedCollectionVersionListResponseList.md +docs/PaginatedCollectionVersionSearchListResponseList.md docs/PaginatedContentGuardResponseList.md docs/PaginatedContentRedirectContentGuardResponseList.md docs/PaginatedDistributionResponseList.md @@ -461,9 +493,11 @@ docs/PaginatedUserResponseList.md docs/PaginatedUserRoleResponseList.md docs/PaginatedWorkerResponseList.md docs/PaginatedansibleAnsibleDistributionResponseList.md +docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md docs/PaginatedansibleAnsibleRepositoryResponseList.md docs/PaginatedansibleCollectionRemoteResponseList.md docs/PaginatedansibleCollectionResponseList.md +docs/PaginatedansibleCollectionVersionMarkResponseList.md docs/PaginatedansibleCollectionVersionResponseList.md docs/PaginatedansibleCollectionVersionSignatureResponseList.md docs/PaginatedansibleGitRemoteResponseList.md @@ -548,6 +582,7 @@ docs/PatchedTaskCancel.md docs/PatchedUpstreamPulp.md docs/PatchedUser.md docs/PatchedansibleAnsibleDistribution.md +docs/PatchedansibleAnsibleNamespaceMetadata.md docs/PatchedansibleAnsibleRepository.md docs/PatchedansibleCollectionRemote.md docs/PatchedansibleGitRemote.md @@ -599,6 +634,7 @@ docs/PulpAnsibleApiV3CollectionsAllApi.md docs/PulpAnsibleApiV3CollectionsApi.md docs/PulpAnsibleApiV3CollectionsVersionsApi.md docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +docs/PulpAnsibleApiV3NamespacesApi.md docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md @@ -607,6 +643,8 @@ docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md docs/PulpAnsibleArtifactsCollectionsV3Api.md docs/PulpAnsibleDefaultApiApi.md docs/PulpAnsibleDefaultApiV3Api.md @@ -616,6 +654,7 @@ docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md docs/PulpAnsibleDefaultApiV3CollectionsApi.md docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +docs/PulpAnsibleDefaultApiV3NamespacesApi.md docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md @@ -624,6 +663,8 @@ docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md docs/PulpAnsibleTagsApi.md docs/PulpContainerNamespacesApi.md docs/PulpExport.md @@ -644,8 +685,10 @@ docs/PypiApi.md docs/PypiLegacyApi.md docs/PypiMetadataApi.md docs/PypiSimpleApi.md +docs/PythonBanderRemote.md docs/PythonPythonDistribution.md docs/PythonPythonDistributionResponse.md +docs/PythonPythonPackageContent.md docs/PythonPythonPackageContentResponse.md docs/PythonPythonPublication.md docs/PythonPythonPublicationResponse.md @@ -698,6 +741,7 @@ docs/RepositoriesPythonVersionsApi.md docs/RepositoriesReclaimSpaceApi.md docs/RepositoriesRpmApi.md docs/RepositoriesRpmVersionsApi.md +docs/Repository.md docs/RepositoryAddCachedContent.md docs/RepositoryAddRemoveContent.md docs/RepositoryResponse.md @@ -718,6 +762,7 @@ docs/RpmModulemdDefaultsResponse.md docs/RpmModulemdObsolete.md docs/RpmModulemdObsoleteResponse.md docs/RpmModulemdResponse.md +docs/RpmPackage.md docs/RpmPackageCategoryResponse.md docs/RpmPackageEnvironmentResponse.md docs/RpmPackageGroupResponse.md @@ -739,6 +784,7 @@ docs/RpmUlnRemote.md docs/RpmUlnRemoteResponse.md docs/RpmUpdateCollection.md docs/RpmUpdateCollectionResponse.md +docs/RpmUpdateRecord.md docs/RpmUpdateRecordResponse.md docs/SigningServiceResponse.md docs/SigningServicesApi.md @@ -757,6 +803,7 @@ docs/SyncPolicyEnum.md docs/TagCopy.md docs/TagImage.md docs/TagResponse.md +docs/Task.md docs/TaskGroupOperationResponse.md docs/TaskGroupResponse.md docs/TaskGroupsApi.md @@ -768,6 +815,7 @@ docs/TokenApi.md docs/UnTagImage.md docs/UnpaginatedCollectionVersionResponse.md docs/Upload.md +docs/UploadChunk.md docs/UploadChunkResponse.md docs/UploadCommit.md docs/UploadDetailResponse.md @@ -797,16 +845,23 @@ model_access_policy_response.go model_addon_response.go model_ansible_ansible_distribution.go model_ansible_ansible_distribution_response.go +model_ansible_ansible_namespace_metadata.go +model_ansible_ansible_namespace_metadata_response.go model_ansible_ansible_repository.go model_ansible_ansible_repository_response.go model_ansible_collection.go model_ansible_collection_remote.go model_ansible_collection_remote_response.go model_ansible_collection_response.go +model_ansible_collection_version.go +model_ansible_collection_version_mark.go +model_ansible_collection_version_mark_response.go model_ansible_collection_version_response.go +model_ansible_collection_version_signature.go model_ansible_collection_version_signature_response.go model_ansible_git_remote.go model_ansible_git_remote_response.go +model_ansible_repository_mark.go model_ansible_repository_rebuild.go model_ansible_repository_signature.go model_ansible_repository_sync_url.go @@ -816,6 +871,7 @@ model_ansible_role_remote_response.go model_ansible_role_response.go model_ansible_tag_response.go model_apt_repository_sync_url.go +model_artifact.go model_artifact_distribution_response.go model_artifact_ref_response.go model_artifact_response.go @@ -829,11 +885,17 @@ model_client_configuration_response.go model_collection_import_detail_response.go model_collection_metadata_response.go model_collection_namespace_response.go +model_collection_one_shot.go model_collection_ref_response.go model_collection_response.go +model_collection_summary_response.go +model_collection_version_copy_move.go model_collection_version_docs_response.go model_collection_version_list_response.go model_collection_version_response.go +model_collection_version_search_list.go +model_collection_version_search_list_response.go +model_comps_xml.go model_container_blob_response.go model_container_container_distribution.go model_container_container_distribution_response.go @@ -865,7 +927,9 @@ model_deb_apt_remote.go model_deb_apt_remote_response.go model_deb_apt_repository.go model_deb_apt_repository_response.go +model_deb_base_package.go model_deb_base_package_response.go +model_deb_generic_content.go model_deb_generic_content_response.go model_deb_installer_file_index.go model_deb_installer_file_index_response.go @@ -890,6 +954,7 @@ model_evaluation_response.go model_exclude_platforms_enum.go model_file_file_alternate_content_source.go model_file_file_alternate_content_source_response.go +model_file_file_content.go model_file_file_content_response.go model_file_file_distribution.go model_file_file_distribution_response.go @@ -932,9 +997,12 @@ model_method_enum.go model_minimal_task_response.go model_multiple_artifact_content_response.go model_my_permissions_response.go +model_namespace_link.go +model_namespace_link_response.go model_nested_role.go model_nested_role_response.go model_object_roles_response.go +model_oci_build_image.go model_orphans_cleanup.go model_ostree_import_all.go model_ostree_import_commits_to_ref.go @@ -953,6 +1021,7 @@ model_ostree_ostree_summary_response.go model_package_checksum_type_enum.go model_package_metadata_response.go model_package_types_enum.go +model_package_upload.go model_package_upload_task_response.go model_paginated_access_policy_response_list.go model_paginated_artifact_distribution_response_list.go @@ -961,6 +1030,7 @@ model_paginated_collection_response_list.go model_paginated_collection_response_list_links.go model_paginated_collection_response_list_meta.go model_paginated_collection_version_list_response_list.go +model_paginated_collection_version_search_list_response_list.go model_paginated_content_guard_response_list.go model_paginated_content_redirect_content_guard_response_list.go model_paginated_distribution_response_list.go @@ -996,9 +1066,11 @@ model_paginated_user_response_list.go model_paginated_user_role_response_list.go model_paginated_worker_response_list.go model_paginatedansible_ansible_distribution_response_list.go +model_paginatedansible_ansible_namespace_metadata_response_list.go model_paginatedansible_ansible_repository_response_list.go model_paginatedansible_collection_remote_response_list.go model_paginatedansible_collection_response_list.go +model_paginatedansible_collection_version_mark_response_list.go model_paginatedansible_collection_version_response_list.go model_paginatedansible_collection_version_signature_response_list.go model_paginatedansible_git_remote_response_list.go @@ -1083,6 +1155,7 @@ model_patched_task_cancel.go model_patched_upstream_pulp.go model_patched_user.go model_patchedansible_ansible_distribution.go +model_patchedansible_ansible_namespace_metadata.go model_patchedansible_ansible_repository.go model_patchedansible_collection_remote.go model_patchedansible_git_remote.go @@ -1132,8 +1205,10 @@ model_pulp_import_check_response_toc.go model_pulp_importer.go model_pulp_importer_response.go model_purge.go +model_python_bander_remote.go model_python_python_distribution.go model_python_python_distribution_response.go +model_python_python_package_content.go model_python_python_package_content_response.go model_python_python_publication.go model_python_python_publication_response.go @@ -1153,6 +1228,7 @@ model_remove_signatures.go model_remove_signatures_response.go model_repair.go model_repo_metadata_response.go +model_repository.go model_repository_add_cached_content.go model_repository_add_remove_content.go model_repository_response.go @@ -1169,6 +1245,7 @@ model_rpm_modulemd_defaults_response.go model_rpm_modulemd_obsolete.go model_rpm_modulemd_obsolete_response.go model_rpm_modulemd_response.go +model_rpm_package.go model_rpm_package_category_response.go model_rpm_package_environment_response.go model_rpm_package_group_response.go @@ -1190,6 +1267,7 @@ model_rpm_uln_remote.go model_rpm_uln_remote_response.go model_rpm_update_collection.go model_rpm_update_collection_response.go +model_rpm_update_record.go model_rpm_update_record_response.go model_signing_service_response.go model_skip_types_enum.go @@ -1206,6 +1284,7 @@ model_sync_policy_enum.go model_tag_copy.go model_tag_image.go model_tag_response.go +model_task.go model_task_group_operation_response.go model_task_group_response.go model_task_response.go @@ -1213,6 +1292,7 @@ model_task_schedule_response.go model_un_tag_image.go model_unpaginated_collection_version_response.go model_upload.go +model_upload_chunk.go model_upload_chunk_response.go model_upload_commit.go model_upload_detail_response.go @@ -1242,6 +1322,7 @@ test/api_content_advisories_test.go test/api_content_artifact_test.go test/api_content_blobs_test.go test/api_content_collection_deprecations_test.go +test/api_content_collection_marks_test.go test/api_content_collection_signatures_test.go test/api_content_collection_versions_test.go test/api_content_commits_test.go @@ -1256,6 +1337,7 @@ test/api_content_manifests_test.go test/api_content_modulemd_defaults_test.go test/api_content_modulemd_obsoletes_test.go test/api_content_modulemds_test.go +test/api_content_namespaces_test.go test/api_content_objects_test.go test/api_content_package_indices_test.go test/api_content_package_release_components_test.go @@ -1321,6 +1403,7 @@ test/api_pulp_ansible_api_v3_collections_all_test.go test/api_pulp_ansible_api_v3_collections_test.go test/api_pulp_ansible_api_v3_collections_versions_docs_blob_test.go test/api_pulp_ansible_api_v3_collections_versions_test.go +test/api_pulp_ansible_api_v3_namespaces_test.go test/api_pulp_ansible_api_v3_plugin_ansible_client_configuration_test.go test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_test.go test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_test.go @@ -1329,6 +1412,8 @@ test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_test.go test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_test.go test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_test.go test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_test.go +test/api_pulp_ansible_api_v3_plugin_ansible_content_namespaces_test.go +test/api_pulp_ansible_api_v3_plugin_ansible_search_collection_versions_test.go test/api_pulp_ansible_api_v3_test.go test/api_pulp_ansible_artifacts_collections_v3_test.go test/api_pulp_ansible_default_api_test.go @@ -1338,6 +1423,7 @@ test/api_pulp_ansible_default_api_v3_collections_all_test.go test/api_pulp_ansible_default_api_v3_collections_test.go test/api_pulp_ansible_default_api_v3_collections_versions_docs_blob_test.go test/api_pulp_ansible_default_api_v3_collections_versions_test.go +test/api_pulp_ansible_default_api_v3_namespaces_test.go test/api_pulp_ansible_default_api_v3_plugin_ansible_client_configuration_test.go test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_test.go test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_test.go @@ -1346,6 +1432,8 @@ test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_te test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_test.go test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_test.go test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_test.go +test/api_pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_test.go +test/api_pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_test.go test/api_pulp_ansible_default_api_v3_test.go test/api_pulp_ansible_tags_test.go test/api_pulp_container_namespaces_test.go diff --git a/release/README.md b/release/README.md index 288d7d2a..b7752481 100644 --- a/release/README.md +++ b/release/README.md @@ -1,4 +1,4 @@ -# Go API client for zest/release/v3 +# Go API client for zest Fetch, Upload, Organize, and Distribute Software Packages @@ -22,7 +22,7 @@ go get golang.org/x/net/context Put the package under your project folder and add the following in import: ```golang -import zest/release/v3 "github.com/content-services/zest/release/v3" +import zest "github.com/content-services/zest/release/v3" ``` To use a proxy, set the environment variable `HTTP_PROXY`: @@ -40,7 +40,7 @@ Default configuration comes with `Servers` field that contains server objects as For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. ```golang -ctx := context.WithValue(context.Background(), zest/release/v3.ContextServerIndex, 1) +ctx := context.WithValue(context.Background(), zest.ContextServerIndex, 1) ``` ### Templated Server URL @@ -48,7 +48,7 @@ ctx := context.WithValue(context.Background(), zest/release/v3.ContextServerInde Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. ```golang -ctx := context.WithValue(context.Background(), zest/release/v3.ContextServerVariables, map[string]string{ +ctx := context.WithValue(context.Background(), zest.ContextServerVariables, map[string]string{ "basePath": "v2", }) ``` @@ -62,10 +62,10 @@ An operation is uniquely identified by `"{classname}Service.{nickname}"` string. Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. ```golang -ctx := context.WithValue(context.Background(), zest/release/v3.ContextOperationServerIndices, map[string]int{ +ctx := context.WithValue(context.Background(), zest.ContextOperationServerIndices, map[string]int{ "{classname}Service.{nickname}": 2, }) -ctx = context.WithValue(context.Background(), zest/release/v3.ContextOperationServerVariables, map[string]map[string]string{ +ctx = context.WithValue(context.Background(), zest.ContextOperationServerVariables, map[string]map[string]string{ "{classname}Service.{nickname}": { "port": "8443", }, @@ -105,7 +105,11 @@ Class | Method | HTTP request | Description *AcsRpmApi* | [**AcsRpmRpmRefresh**](docs/AcsRpmApi.md#acsrpmrpmrefresh) | **Post** /{rpm_rpm_alternate_content_source_href}refresh/ | *AcsRpmApi* | [**AcsRpmRpmRemoveRole**](docs/AcsRpmApi.md#acsrpmrpmremoverole) | **Post** /{rpm_rpm_alternate_content_source_href}remove_role/ | *AcsRpmApi* | [**AcsRpmRpmUpdate**](docs/AcsRpmApi.md#acsrpmrpmupdate) | **Put** /{rpm_rpm_alternate_content_source_href} | Update a rpm alternate content source +*AnsibleCollectionsApi* | [**AnsibleCollectionsAddRole**](docs/AnsibleCollectionsApi.md#ansiblecollectionsaddrole) | **Post** /{ansible_collection_href}add_role/ | *AnsibleCollectionsApi* | [**AnsibleCollectionsList**](docs/AnsibleCollectionsApi.md#ansiblecollectionslist) | **Get** /pulp/api/v3/ansible/collections/ | List collections +*AnsibleCollectionsApi* | [**AnsibleCollectionsListRoles**](docs/AnsibleCollectionsApi.md#ansiblecollectionslistroles) | **Get** /{ansible_collection_href}list_roles/ | +*AnsibleCollectionsApi* | [**AnsibleCollectionsMyPermissions**](docs/AnsibleCollectionsApi.md#ansiblecollectionsmypermissions) | **Get** /{ansible_collection_href}my_permissions/ | +*AnsibleCollectionsApi* | [**AnsibleCollectionsRemoveRole**](docs/AnsibleCollectionsApi.md#ansiblecollectionsremoverole) | **Post** /{ansible_collection_href}remove_role/ | *AnsibleCollectionsApi* | [**UploadCollection**](docs/AnsibleCollectionsApi.md#uploadcollection) | **Post** /ansible/collections/ | Upload a collection *AnsibleCopyApi* | [**CopyContent**](docs/AnsibleCopyApi.md#copycontent) | **Post** /pulp/api/v3/ansible/copy/ | Copy content *ApiCollectionsApi* | [**ApiV2CollectionsGet**](docs/ApiCollectionsApi.md#apiv2collectionsget) | **Get** /{ansible_collection_href}api/v2/collections/ | @@ -128,6 +132,9 @@ Class | Method | HTTP request | Description *ContentCollectionDeprecationsApi* | [**ContentAnsibleCollectionDeprecationsCreate**](docs/ContentCollectionDeprecationsApi.md#contentansiblecollectiondeprecationscreate) | **Post** /pulp/api/v3/content/ansible/collection_deprecations/ | Create an ansible collection deprecated *ContentCollectionDeprecationsApi* | [**ContentAnsibleCollectionDeprecationsList**](docs/ContentCollectionDeprecationsApi.md#contentansiblecollectiondeprecationslist) | **Get** /pulp/api/v3/content/ansible/collection_deprecations/ | List ansible collection deprecateds *ContentCollectionDeprecationsApi* | [**ContentAnsibleCollectionDeprecationsRead**](docs/ContentCollectionDeprecationsApi.md#contentansiblecollectiondeprecationsread) | **Get** /{ansible_ansible_collection_deprecated_href} | Inspect an ansible collection deprecated +*ContentCollectionMarksApi* | [**ContentAnsibleCollectionMarksCreate**](docs/ContentCollectionMarksApi.md#contentansiblecollectionmarkscreate) | **Post** /pulp/api/v3/content/ansible/collection_marks/ | Create a collection version mark +*ContentCollectionMarksApi* | [**ContentAnsibleCollectionMarksList**](docs/ContentCollectionMarksApi.md#contentansiblecollectionmarkslist) | **Get** /pulp/api/v3/content/ansible/collection_marks/ | List collection version marks +*ContentCollectionMarksApi* | [**ContentAnsibleCollectionMarksRead**](docs/ContentCollectionMarksApi.md#contentansiblecollectionmarksread) | **Get** /{ansible_collection_version_mark_href} | Inspect a collection version mark *ContentCollectionSignaturesApi* | [**ContentAnsibleCollectionSignaturesCreate**](docs/ContentCollectionSignaturesApi.md#contentansiblecollectionsignaturescreate) | **Post** /pulp/api/v3/content/ansible/collection_signatures/ | Create a collection version signature *ContentCollectionSignaturesApi* | [**ContentAnsibleCollectionSignaturesList**](docs/ContentCollectionSignaturesApi.md#contentansiblecollectionsignatureslist) | **Get** /pulp/api/v3/content/ansible/collection_signatures/ | List collection version signatures *ContentCollectionSignaturesApi* | [**ContentAnsibleCollectionSignaturesRead**](docs/ContentCollectionSignaturesApi.md#contentansiblecollectionsignaturesread) | **Get** /{ansible_collection_version_signature_href} | Inspect a collection version signature @@ -165,6 +172,9 @@ Class | Method | HTTP request | Description *ContentModulemdsApi* | [**ContentRpmModulemdsCreate**](docs/ContentModulemdsApi.md#contentrpmmodulemdscreate) | **Post** /pulp/api/v3/content/rpm/modulemds/ | Create a modulemd *ContentModulemdsApi* | [**ContentRpmModulemdsList**](docs/ContentModulemdsApi.md#contentrpmmodulemdslist) | **Get** /pulp/api/v3/content/rpm/modulemds/ | List modulemds *ContentModulemdsApi* | [**ContentRpmModulemdsRead**](docs/ContentModulemdsApi.md#contentrpmmodulemdsread) | **Get** /{rpm_modulemd_href} | Inspect a modulemd +*ContentNamespacesApi* | [**ContentAnsibleNamespacesAvatar**](docs/ContentNamespacesApi.md#contentansiblenamespacesavatar) | **Get** /{ansible_ansible_namespace_metadata_href}avatar/ | +*ContentNamespacesApi* | [**ContentAnsibleNamespacesList**](docs/ContentNamespacesApi.md#contentansiblenamespaceslist) | **Get** /pulp/api/v3/content/ansible/namespaces/ | List ansible namespace metadatas +*ContentNamespacesApi* | [**ContentAnsibleNamespacesRead**](docs/ContentNamespacesApi.md#contentansiblenamespacesread) | **Get** /{ansible_ansible_namespace_metadata_href} | Inspect an ansible namespace metadata *ContentObjectsApi* | [**ContentOstreeObjectsList**](docs/ContentObjectsApi.md#contentostreeobjectslist) | **Get** /pulp/api/v3/content/ostree/objects/ | List ostree objects *ContentObjectsApi* | [**ContentOstreeObjectsRead**](docs/ContentObjectsApi.md#contentostreeobjectsread) | **Get** /{ostree_ostree_object_href} | Inspect an ostree object *ContentPackageIndicesApi* | [**ContentDebPackageIndicesCreate**](docs/ContentPackageIndicesApi.md#contentdebpackageindicescreate) | **Post** /pulp/api/v3/content/deb/package_indices/ | Create a package index @@ -250,11 +260,15 @@ Class | Method | HTTP request | Description *ContentguardsX509Api* | [**ContentguardsCertguardX509Update**](docs/ContentguardsX509Api.md#contentguardscertguardx509update) | **Put** /{certguard_x509_cert_guard_href} | Update a x509 cert guard *DebCopyApi* | [**CopyContent**](docs/DebCopyApi.md#copycontent) | **Post** /pulp/api/v3/deb/copy/ | Copy content *DistributionsApi* | [**DistributionsList**](docs/DistributionsApi.md#distributionslist) | **Get** /pulp/api/v3/distributions/ | List distributions +*DistributionsAnsibleApi* | [**DistributionsAnsibleAnsibleAddRole**](docs/DistributionsAnsibleApi.md#distributionsansibleansibleaddrole) | **Post** /{ansible_ansible_distribution_href}add_role/ | *DistributionsAnsibleApi* | [**DistributionsAnsibleAnsibleCreate**](docs/DistributionsAnsibleApi.md#distributionsansibleansiblecreate) | **Post** /pulp/api/v3/distributions/ansible/ansible/ | Create an ansible distribution *DistributionsAnsibleApi* | [**DistributionsAnsibleAnsibleDelete**](docs/DistributionsAnsibleApi.md#distributionsansibleansibledelete) | **Delete** /{ansible_ansible_distribution_href} | Delete an ansible distribution *DistributionsAnsibleApi* | [**DistributionsAnsibleAnsibleList**](docs/DistributionsAnsibleApi.md#distributionsansibleansiblelist) | **Get** /pulp/api/v3/distributions/ansible/ansible/ | List ansible distributions +*DistributionsAnsibleApi* | [**DistributionsAnsibleAnsibleListRoles**](docs/DistributionsAnsibleApi.md#distributionsansibleansiblelistroles) | **Get** /{ansible_ansible_distribution_href}list_roles/ | +*DistributionsAnsibleApi* | [**DistributionsAnsibleAnsibleMyPermissions**](docs/DistributionsAnsibleApi.md#distributionsansibleansiblemypermissions) | **Get** /{ansible_ansible_distribution_href}my_permissions/ | *DistributionsAnsibleApi* | [**DistributionsAnsibleAnsiblePartialUpdate**](docs/DistributionsAnsibleApi.md#distributionsansibleansiblepartialupdate) | **Patch** /{ansible_ansible_distribution_href} | Update an ansible distribution *DistributionsAnsibleApi* | [**DistributionsAnsibleAnsibleRead**](docs/DistributionsAnsibleApi.md#distributionsansibleansibleread) | **Get** /{ansible_ansible_distribution_href} | Inspect an ansible distribution +*DistributionsAnsibleApi* | [**DistributionsAnsibleAnsibleRemoveRole**](docs/DistributionsAnsibleApi.md#distributionsansibleansibleremoverole) | **Post** /{ansible_ansible_distribution_href}remove_role/ | *DistributionsAnsibleApi* | [**DistributionsAnsibleAnsibleUpdate**](docs/DistributionsAnsibleApi.md#distributionsansibleansibleupdate) | **Put** /{ansible_ansible_distribution_href} | Update an ansible distribution *DistributionsAptApi* | [**DistributionsDebAptCreate**](docs/DistributionsAptApi.md#distributionsdebaptcreate) | **Post** /pulp/api/v3/distributions/deb/apt/ | Create an apt distribution *DistributionsAptApi* | [**DistributionsDebAptDelete**](docs/DistributionsAptApi.md#distributionsdebaptdelete) | **Delete** /{deb_apt_distribution_href} | Delete an apt distribution @@ -414,7 +428,9 @@ Class | Method | HTTP request | Description *PulpAnsibleApiV3CollectionsVersionsApi* | [**PulpAnsibleGalaxyApiV3CollectionsVersionsList**](docs/PulpAnsibleApiV3CollectionsVersionsApi.md#pulpansiblegalaxyapiv3collectionsversionslist) | **Get** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/versions/ | *PulpAnsibleApiV3CollectionsVersionsApi* | [**PulpAnsibleGalaxyApiV3CollectionsVersionsRead**](docs/PulpAnsibleApiV3CollectionsVersionsApi.md#pulpansiblegalaxyapiv3collectionsversionsread) | **Get** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/versions/{version}/ | *PulpAnsibleApiV3CollectionsVersionsDocsBlobApi* | [**PulpAnsibleGalaxyApiV3CollectionsVersionsDocsBlobRead**](docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md#pulpansiblegalaxyapiv3collectionsversionsdocsblobread) | **Get** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/versions/{version}/docs-blob/ | -*PulpAnsibleApiV3PluginAnsibleClientConfigurationApi* | [**PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGet**](docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md#pulpansiblegalaxyapiv3pluginansibleclientconfigurationget) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/client-configuration/ | +*PulpAnsibleApiV3NamespacesApi* | [**PulpAnsibleGalaxyApiV3NamespacesList**](docs/PulpAnsibleApiV3NamespacesApi.md#pulpansiblegalaxyapiv3namespaceslist) | **Get** /pulp_ansible/galaxy/{path}/api/v3/namespaces/ | +*PulpAnsibleApiV3NamespacesApi* | [**PulpAnsibleGalaxyApiV3NamespacesRead**](docs/PulpAnsibleApiV3NamespacesApi.md#pulpansiblegalaxyapiv3namespacesread) | **Get** /pulp_ansible/galaxy/{path}/api/v3/namespaces/{name}/ | +*PulpAnsibleApiV3PluginAnsibleClientConfigurationApi* | [**PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationRead**](docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md#pulpansiblegalaxyapiv3pluginansibleclientconfigurationread) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/client-configuration/ | *PulpAnsibleApiV3PluginAnsibleContentCollectionsApi* | [**PulpAnsibleGalaxyApiV3PluginAnsibleContentCollectionsRead**](docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md#pulpansiblegalaxyapiv3pluginansiblecontentcollectionsread) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/ | *PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi* | [**PulpAnsibleGalaxyApiV3PluginAnsibleContentCollectionsAllCollectionsList**](docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md#pulpansiblegalaxyapiv3pluginansiblecontentcollectionsallcollectionslist) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/all-collections/ | *PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi* | [**PulpAnsibleGalaxyApiV3PluginAnsibleContentCollectionsAllVersionsList**](docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md#pulpansiblegalaxyapiv3pluginansiblecontentcollectionsallversionslist) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/all-versions/ | @@ -427,6 +443,13 @@ Class | Method | HTTP request | Description *PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi* | [**PulpAnsibleGalaxyApiV3PluginAnsibleContentCollectionsIndexVersionsList**](docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md#pulpansiblegalaxyapiv3pluginansiblecontentcollectionsindexversionslist) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/ | *PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi* | [**PulpAnsibleGalaxyApiV3PluginAnsibleContentCollectionsIndexVersionsRead**](docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md#pulpansiblegalaxyapiv3pluginansiblecontentcollectionsindexversionsread) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/{version}/ | *PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi* | [**PulpAnsibleGalaxyApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobRead**](docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md#pulpansiblegalaxyapiv3pluginansiblecontentcollectionsindexversionsdocsblobread) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/{version}/docs-blob/ | +*PulpAnsibleApiV3PluginAnsibleContentNamespacesApi* | [**PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreate**](docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md#pulpansiblegalaxyapiv3pluginansiblecontentnamespacescreate) | **Post** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/ | +*PulpAnsibleApiV3PluginAnsibleContentNamespacesApi* | [**PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDelete**](docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md#pulpansiblegalaxyapiv3pluginansiblecontentnamespacesdelete) | **Delete** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/ | +*PulpAnsibleApiV3PluginAnsibleContentNamespacesApi* | [**PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesList**](docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md#pulpansiblegalaxyapiv3pluginansiblecontentnamespaceslist) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/ | +*PulpAnsibleApiV3PluginAnsibleContentNamespacesApi* | [**PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdate**](docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md#pulpansiblegalaxyapiv3pluginansiblecontentnamespacespartialupdate) | **Patch** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/ | +*PulpAnsibleApiV3PluginAnsibleContentNamespacesApi* | [**PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesRead**](docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md#pulpansiblegalaxyapiv3pluginansiblecontentnamespacesread) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/ | +*PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi* | [**PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsList**](docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md#pulpansiblegalaxyapiv3pluginansiblesearchcollectionversionslist) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/search/collection-versions/ | +*PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi* | [**PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuild**](docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md#pulpansiblegalaxyapiv3pluginansiblesearchcollectionversionsrebuild) | **Post** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/search/collection-versions/ | *PulpAnsibleArtifactsCollectionsV3Api* | [**PulpAnsibleGalaxyApiV3ArtifactsCollectionsCreate**](docs/PulpAnsibleArtifactsCollectionsV3Api.md#pulpansiblegalaxyapiv3artifactscollectionscreate) | **Post** /pulp_ansible/galaxy/{path}/api/v3/artifacts/collections/ | Upload a collection *PulpAnsibleArtifactsCollectionsV3Api* | [**PulpAnsibleGalaxyApiV3PluginAnsibleContentCollectionsArtifactsCreate**](docs/PulpAnsibleArtifactsCollectionsV3Api.md#pulpansiblegalaxyapiv3pluginansiblecontentcollectionsartifactscreate) | **Post** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/artifacts/ | Upload a collection *PulpAnsibleArtifactsCollectionsV3Api* | [**PulpAnsibleGalaxyDefaultApiV3ArtifactsCollectionsCreate**](docs/PulpAnsibleArtifactsCollectionsV3Api.md#pulpansiblegalaxydefaultapiv3artifactscollectionscreate) | **Post** /pulp_ansible/galaxy/default/api/v3/artifacts/collections/ | Upload a collection @@ -444,7 +467,9 @@ Class | Method | HTTP request | Description *PulpAnsibleDefaultApiV3CollectionsVersionsApi* | [**PulpAnsibleGalaxyDefaultApiV3CollectionsVersionsList**](docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md#pulpansiblegalaxydefaultapiv3collectionsversionslist) | **Get** /pulp_ansible/galaxy/default/api/v3/collections/{namespace}/{name}/versions/ | *PulpAnsibleDefaultApiV3CollectionsVersionsApi* | [**PulpAnsibleGalaxyDefaultApiV3CollectionsVersionsRead**](docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md#pulpansiblegalaxydefaultapiv3collectionsversionsread) | **Get** /pulp_ansible/galaxy/default/api/v3/collections/{namespace}/{name}/versions/{version}/ | *PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi* | [**PulpAnsibleGalaxyDefaultApiV3CollectionsVersionsDocsBlobRead**](docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md#pulpansiblegalaxydefaultapiv3collectionsversionsdocsblobread) | **Get** /pulp_ansible/galaxy/default/api/v3/collections/{namespace}/{name}/versions/{version}/docs-blob/ | -*PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi* | [**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGet**](docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md#pulpansiblegalaxydefaultapiv3pluginansibleclientconfigurationget) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/client-configuration/ | +*PulpAnsibleDefaultApiV3NamespacesApi* | [**PulpAnsibleGalaxyDefaultApiV3NamespacesList**](docs/PulpAnsibleDefaultApiV3NamespacesApi.md#pulpansiblegalaxydefaultapiv3namespaceslist) | **Get** /pulp_ansible/galaxy/default/api/v3/namespaces/ | +*PulpAnsibleDefaultApiV3NamespacesApi* | [**PulpAnsibleGalaxyDefaultApiV3NamespacesRead**](docs/PulpAnsibleDefaultApiV3NamespacesApi.md#pulpansiblegalaxydefaultapiv3namespacesread) | **Get** /pulp_ansible/galaxy/default/api/v3/namespaces/{name}/ | +*PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi* | [**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationRead**](docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md#pulpansiblegalaxydefaultapiv3pluginansibleclientconfigurationread) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/client-configuration/ | *PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi* | [**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentCollectionsRead**](docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md#pulpansiblegalaxydefaultapiv3pluginansiblecontentcollectionsread) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/ | *PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi* | [**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsList**](docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md#pulpansiblegalaxydefaultapiv3pluginansiblecontentcollectionsallcollectionslist) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/all-collections/ | *PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi* | [**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentCollectionsAllVersionsList**](docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md#pulpansiblegalaxydefaultapiv3pluginansiblecontentcollectionsallversionslist) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/all-versions/ | @@ -457,6 +482,13 @@ Class | Method | HTTP request | Description *PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi* | [**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsList**](docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md#pulpansiblegalaxydefaultapiv3pluginansiblecontentcollectionsindexversionslist) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/ | *PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi* | [**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsRead**](docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md#pulpansiblegalaxydefaultapiv3pluginansiblecontentcollectionsindexversionsread) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/{version}/ | *PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi* | [**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobRead**](docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md#pulpansiblegalaxydefaultapiv3pluginansiblecontentcollectionsindexversionsdocsblobread) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/{version}/docs-blob/ | +*PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi* | [**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreate**](docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md#pulpansiblegalaxydefaultapiv3pluginansiblecontentnamespacescreate) | **Post** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/ | +*PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi* | [**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDelete**](docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md#pulpansiblegalaxydefaultapiv3pluginansiblecontentnamespacesdelete) | **Delete** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/ | +*PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi* | [**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesList**](docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md#pulpansiblegalaxydefaultapiv3pluginansiblecontentnamespaceslist) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/ | +*PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi* | [**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdate**](docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md#pulpansiblegalaxydefaultapiv3pluginansiblecontentnamespacespartialupdate) | **Patch** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/ | +*PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi* | [**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesRead**](docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md#pulpansiblegalaxydefaultapiv3pluginansiblecontentnamespacesread) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/ | +*PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi* | [**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsList**](docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md#pulpansiblegalaxydefaultapiv3pluginansiblesearchcollectionversionslist) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/search/collection-versions/ | +*PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi* | [**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuild**](docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md#pulpansiblegalaxydefaultapiv3pluginansiblesearchcollectionversionsrebuild) | **Post** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/search/collection-versions/ | *PulpAnsibleTagsApi* | [**PulpAnsibleTagsList**](docs/PulpAnsibleTagsApi.md#pulpansibletagslist) | **Get** /pulp/api/v3/pulp_ansible/tags/ | List tags *PulpContainerNamespacesApi* | [**PulpContainerNamespacesAddRole**](docs/PulpContainerNamespacesApi.md#pulpcontainernamespacesaddrole) | **Post** /{container_container_namespace_href}add_role/ | *PulpContainerNamespacesApi* | [**PulpContainerNamespacesCreate**](docs/PulpContainerNamespacesApi.md#pulpcontainernamespacescreate) | **Post** /pulp/api/v3/pulp_container/namespaces/ | Create a container namespace @@ -481,11 +513,15 @@ Class | Method | HTTP request | Description *RemotesAptApi* | [**RemotesDebAptPartialUpdate**](docs/RemotesAptApi.md#remotesdebaptpartialupdate) | **Patch** /{deb_apt_remote_href} | Update an apt remote *RemotesAptApi* | [**RemotesDebAptRead**](docs/RemotesAptApi.md#remotesdebaptread) | **Get** /{deb_apt_remote_href} | Inspect an apt remote *RemotesAptApi* | [**RemotesDebAptUpdate**](docs/RemotesAptApi.md#remotesdebaptupdate) | **Put** /{deb_apt_remote_href} | Update an apt remote +*RemotesCollectionApi* | [**RemotesAnsibleCollectionAddRole**](docs/RemotesCollectionApi.md#remotesansiblecollectionaddrole) | **Post** /{ansible_collection_remote_href}add_role/ | *RemotesCollectionApi* | [**RemotesAnsibleCollectionCreate**](docs/RemotesCollectionApi.md#remotesansiblecollectioncreate) | **Post** /pulp/api/v3/remotes/ansible/collection/ | Create a collection remote *RemotesCollectionApi* | [**RemotesAnsibleCollectionDelete**](docs/RemotesCollectionApi.md#remotesansiblecollectiondelete) | **Delete** /{ansible_collection_remote_href} | Delete a collection remote *RemotesCollectionApi* | [**RemotesAnsibleCollectionList**](docs/RemotesCollectionApi.md#remotesansiblecollectionlist) | **Get** /pulp/api/v3/remotes/ansible/collection/ | List collection remotes +*RemotesCollectionApi* | [**RemotesAnsibleCollectionListRoles**](docs/RemotesCollectionApi.md#remotesansiblecollectionlistroles) | **Get** /{ansible_collection_remote_href}list_roles/ | +*RemotesCollectionApi* | [**RemotesAnsibleCollectionMyPermissions**](docs/RemotesCollectionApi.md#remotesansiblecollectionmypermissions) | **Get** /{ansible_collection_remote_href}my_permissions/ | *RemotesCollectionApi* | [**RemotesAnsibleCollectionPartialUpdate**](docs/RemotesCollectionApi.md#remotesansiblecollectionpartialupdate) | **Patch** /{ansible_collection_remote_href} | Update a collection remote *RemotesCollectionApi* | [**RemotesAnsibleCollectionRead**](docs/RemotesCollectionApi.md#remotesansiblecollectionread) | **Get** /{ansible_collection_remote_href} | Inspect a collection remote +*RemotesCollectionApi* | [**RemotesAnsibleCollectionRemoveRole**](docs/RemotesCollectionApi.md#remotesansiblecollectionremoverole) | **Post** /{ansible_collection_remote_href}remove_role/ | *RemotesCollectionApi* | [**RemotesAnsibleCollectionUpdate**](docs/RemotesCollectionApi.md#remotesansiblecollectionupdate) | **Put** /{ansible_collection_remote_href} | Update a collection remote *RemotesContainerApi* | [**RemotesContainerContainerAddRole**](docs/RemotesContainerApi.md#remotescontainercontaineraddrole) | **Post** /{container_container_remote_href}add_role/ | *RemotesContainerApi* | [**RemotesContainerContainerCreate**](docs/RemotesContainerApi.md#remotescontainercontainercreate) | **Post** /pulp/api/v3/remotes/container/container/ | Create a container remote @@ -507,11 +543,15 @@ Class | Method | HTTP request | Description *RemotesFileApi* | [**RemotesFileFileRead**](docs/RemotesFileApi.md#remotesfilefileread) | **Get** /{file_file_remote_href} | Inspect a file remote *RemotesFileApi* | [**RemotesFileFileRemoveRole**](docs/RemotesFileApi.md#remotesfilefileremoverole) | **Post** /{file_file_remote_href}remove_role/ | *RemotesFileApi* | [**RemotesFileFileUpdate**](docs/RemotesFileApi.md#remotesfilefileupdate) | **Put** /{file_file_remote_href} | Update a file remote +*RemotesGitApi* | [**RemotesAnsibleGitAddRole**](docs/RemotesGitApi.md#remotesansiblegitaddrole) | **Post** /{ansible_git_remote_href}add_role/ | *RemotesGitApi* | [**RemotesAnsibleGitCreate**](docs/RemotesGitApi.md#remotesansiblegitcreate) | **Post** /pulp/api/v3/remotes/ansible/git/ | Create a git remote *RemotesGitApi* | [**RemotesAnsibleGitDelete**](docs/RemotesGitApi.md#remotesansiblegitdelete) | **Delete** /{ansible_git_remote_href} | Delete a git remote *RemotesGitApi* | [**RemotesAnsibleGitList**](docs/RemotesGitApi.md#remotesansiblegitlist) | **Get** /pulp/api/v3/remotes/ansible/git/ | List git remotes +*RemotesGitApi* | [**RemotesAnsibleGitListRoles**](docs/RemotesGitApi.md#remotesansiblegitlistroles) | **Get** /{ansible_git_remote_href}list_roles/ | +*RemotesGitApi* | [**RemotesAnsibleGitMyPermissions**](docs/RemotesGitApi.md#remotesansiblegitmypermissions) | **Get** /{ansible_git_remote_href}my_permissions/ | *RemotesGitApi* | [**RemotesAnsibleGitPartialUpdate**](docs/RemotesGitApi.md#remotesansiblegitpartialupdate) | **Patch** /{ansible_git_remote_href} | Update a git remote *RemotesGitApi* | [**RemotesAnsibleGitRead**](docs/RemotesGitApi.md#remotesansiblegitread) | **Get** /{ansible_git_remote_href} | Inspect a git remote +*RemotesGitApi* | [**RemotesAnsibleGitRemoveRole**](docs/RemotesGitApi.md#remotesansiblegitremoverole) | **Post** /{ansible_git_remote_href}remove_role/ | *RemotesGitApi* | [**RemotesAnsibleGitUpdate**](docs/RemotesGitApi.md#remotesansiblegitupdate) | **Put** /{ansible_git_remote_href} | Update a git remote *RemotesMavenApi* | [**RemotesMavenMavenCreate**](docs/RemotesMavenApi.md#remotesmavenmavencreate) | **Post** /pulp/api/v3/remotes/maven/maven/ | Create a maven remote *RemotesMavenApi* | [**RemotesMavenMavenDelete**](docs/RemotesMavenApi.md#remotesmavenmavendelete) | **Delete** /{maven_maven_remote_href} | Delete a maven remote @@ -532,11 +572,15 @@ Class | Method | HTTP request | Description *RemotesPythonApi* | [**RemotesPythonPythonPartialUpdate**](docs/RemotesPythonApi.md#remotespythonpythonpartialupdate) | **Patch** /{python_python_remote_href} | Update a python remote *RemotesPythonApi* | [**RemotesPythonPythonRead**](docs/RemotesPythonApi.md#remotespythonpythonread) | **Get** /{python_python_remote_href} | Inspect a python remote *RemotesPythonApi* | [**RemotesPythonPythonUpdate**](docs/RemotesPythonApi.md#remotespythonpythonupdate) | **Put** /{python_python_remote_href} | Update a python remote +*RemotesRoleApi* | [**RemotesAnsibleRoleAddRole**](docs/RemotesRoleApi.md#remotesansibleroleaddrole) | **Post** /{ansible_role_remote_href}add_role/ | *RemotesRoleApi* | [**RemotesAnsibleRoleCreate**](docs/RemotesRoleApi.md#remotesansiblerolecreate) | **Post** /pulp/api/v3/remotes/ansible/role/ | Create a role remote *RemotesRoleApi* | [**RemotesAnsibleRoleDelete**](docs/RemotesRoleApi.md#remotesansibleroledelete) | **Delete** /{ansible_role_remote_href} | Delete a role remote *RemotesRoleApi* | [**RemotesAnsibleRoleList**](docs/RemotesRoleApi.md#remotesansiblerolelist) | **Get** /pulp/api/v3/remotes/ansible/role/ | List role remotes +*RemotesRoleApi* | [**RemotesAnsibleRoleListRoles**](docs/RemotesRoleApi.md#remotesansiblerolelistroles) | **Get** /{ansible_role_remote_href}list_roles/ | +*RemotesRoleApi* | [**RemotesAnsibleRoleMyPermissions**](docs/RemotesRoleApi.md#remotesansiblerolemypermissions) | **Get** /{ansible_role_remote_href}my_permissions/ | *RemotesRoleApi* | [**RemotesAnsibleRolePartialUpdate**](docs/RemotesRoleApi.md#remotesansiblerolepartialupdate) | **Patch** /{ansible_role_remote_href} | Update a role remote *RemotesRoleApi* | [**RemotesAnsibleRoleRead**](docs/RemotesRoleApi.md#remotesansibleroleread) | **Get** /{ansible_role_remote_href} | Inspect a role remote +*RemotesRoleApi* | [**RemotesAnsibleRoleRemoveRole**](docs/RemotesRoleApi.md#remotesansibleroleremoverole) | **Post** /{ansible_role_remote_href}remove_role/ | *RemotesRoleApi* | [**RemotesAnsibleRoleUpdate**](docs/RemotesRoleApi.md#remotesansibleroleupdate) | **Put** /{ansible_role_remote_href} | Update a role remote *RemotesRpmApi* | [**RemotesRpmRpmAddRole**](docs/RemotesRpmApi.md#remotesrpmrpmaddrole) | **Post** /{rpm_rpm_remote_href}add_role/ | *RemotesRpmApi* | [**RemotesRpmRpmCreate**](docs/RemotesRpmApi.md#remotesrpmrpmcreate) | **Post** /pulp/api/v3/remotes/rpm/rpm/ | Create a rpm remote @@ -560,15 +604,23 @@ Class | Method | HTTP request | Description *RemotesUlnApi* | [**RemotesRpmUlnUpdate**](docs/RemotesUlnApi.md#remotesrpmulnupdate) | **Put** /{rpm_uln_remote_href} | Update an uln remote *RepairApi* | [**RepairPost**](docs/RepairApi.md#repairpost) | **Post** /pulp/api/v3/repair/ | Repair Artifact Storage *RepositoriesApi* | [**RepositoriesList**](docs/RepositoriesApi.md#repositorieslist) | **Get** /pulp/api/v3/repositories/ | List repositories +*RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleAddRole**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansibleaddrole) | **Post** /{ansible_ansible_repository_href}add_role/ | +*RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleCopyCollectionVersion**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansiblecopycollectionversion) | **Post** /{ansible_ansible_repository_href}copy_collection_version/ | *RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleCreate**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansiblecreate) | **Post** /pulp/api/v3/repositories/ansible/ansible/ | Create an ansible repository *RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleDelete**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansibledelete) | **Delete** /{ansible_ansible_repository_href} | Delete an ansible repository *RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleList**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansiblelist) | **Get** /pulp/api/v3/repositories/ansible/ansible/ | List ansible repositorys +*RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleListRoles**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansiblelistroles) | **Get** /{ansible_ansible_repository_href}list_roles/ | +*RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleMark**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansiblemark) | **Post** /{ansible_ansible_repository_href}mark/ | *RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleModify**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansiblemodify) | **Post** /{ansible_ansible_repository_href}modify/ | Modify Repository Content +*RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleMoveCollectionVersion**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansiblemovecollectionversion) | **Post** /{ansible_ansible_repository_href}move_collection_version/ | +*RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleMyPermissions**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansiblemypermissions) | **Get** /{ansible_ansible_repository_href}my_permissions/ | *RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsiblePartialUpdate**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansiblepartialupdate) | **Patch** /{ansible_ansible_repository_href} | Update an ansible repository *RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleRead**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansibleread) | **Get** /{ansible_ansible_repository_href} | Inspect an ansible repository *RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleRebuildMetadata**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansiblerebuildmetadata) | **Post** /{ansible_ansible_repository_href}rebuild_metadata/ | +*RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleRemoveRole**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansibleremoverole) | **Post** /{ansible_ansible_repository_href}remove_role/ | *RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleSign**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansiblesign) | **Post** /{ansible_ansible_repository_href}sign/ | *RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleSync**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansiblesync) | **Post** /{ansible_ansible_repository_href}sync/ | +*RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleUnmark**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansibleunmark) | **Post** /{ansible_ansible_repository_href}unmark/ | *RepositoriesAnsibleApi* | [**RepositoriesAnsibleAnsibleUpdate**](docs/RepositoriesAnsibleApi.md#repositoriesansibleansibleupdate) | **Put** /{ansible_ansible_repository_href} | Update an ansible repository *RepositoriesAnsibleVersionsApi* | [**RepositoriesAnsibleAnsibleVersionsDelete**](docs/RepositoriesAnsibleVersionsApi.md#repositoriesansibleansibleversionsdelete) | **Delete** /{ansible_ansible_repository_version_href} | Delete a repository version *RepositoriesAnsibleVersionsApi* | [**RepositoriesAnsibleAnsibleVersionsList**](docs/RepositoriesAnsibleVersionsApi.md#repositoriesansibleansibleversionslist) | **Get** /{ansible_ansible_repository_href}versions/ | List repository versions @@ -754,8 +806,8 @@ Class | Method | HTTP request | Description *UsersRolesApi* | [**UsersRolesDelete**](docs/UsersRolesApi.md#usersrolesdelete) | **Delete** /{auth_users_user_role_href} | Delete an user role *UsersRolesApi* | [**UsersRolesList**](docs/UsersRolesApi.md#usersroleslist) | **Get** /{auth_user_href}roles/ | List user roles *UsersRolesApi* | [**UsersRolesRead**](docs/UsersRolesApi.md#usersrolesread) | **Get** /{auth_users_user_role_href} | Inspect an user role -*VersionsApi* | [**CollectionVersionsGet**](docs/VersionsApi.md#collectionversionsget) | **Get** /{ansible_collection_version_href}versions/ | -*VersionsApi* | [**VersionsGet**](docs/VersionsApi.md#versionsget) | **Get** /{ansible_role_href}versions/ | +*VersionsApi* | [**ApiV1RolesVersionsList**](docs/VersionsApi.md#apiv1rolesversionslist) | **Get** /{ansible_role_href}versions/ | +*VersionsApi* | [**ApiV2CollectionVersionsList**](docs/VersionsApi.md#apiv2collectionversionslist) | **Get** /{ansible_collection_version_href}versions/ | *WorkersApi* | [**WorkersList**](docs/WorkersApi.md#workerslist) | **Get** /pulp/api/v3/workers/ | List workers *WorkersApi* | [**WorkersRead**](docs/WorkersApi.md#workersread) | **Get** /{worker_href} | Inspect a worker @@ -767,16 +819,23 @@ Class | Method | HTTP request | Description - [AddonResponse](docs/AddonResponse.md) - [AnsibleAnsibleDistribution](docs/AnsibleAnsibleDistribution.md) - [AnsibleAnsibleDistributionResponse](docs/AnsibleAnsibleDistributionResponse.md) + - [AnsibleAnsibleNamespaceMetadata](docs/AnsibleAnsibleNamespaceMetadata.md) + - [AnsibleAnsibleNamespaceMetadataResponse](docs/AnsibleAnsibleNamespaceMetadataResponse.md) - [AnsibleAnsibleRepository](docs/AnsibleAnsibleRepository.md) - [AnsibleAnsibleRepositoryResponse](docs/AnsibleAnsibleRepositoryResponse.md) - [AnsibleCollection](docs/AnsibleCollection.md) - [AnsibleCollectionRemote](docs/AnsibleCollectionRemote.md) - [AnsibleCollectionRemoteResponse](docs/AnsibleCollectionRemoteResponse.md) - [AnsibleCollectionResponse](docs/AnsibleCollectionResponse.md) + - [AnsibleCollectionVersion](docs/AnsibleCollectionVersion.md) + - [AnsibleCollectionVersionMark](docs/AnsibleCollectionVersionMark.md) + - [AnsibleCollectionVersionMarkResponse](docs/AnsibleCollectionVersionMarkResponse.md) - [AnsibleCollectionVersionResponse](docs/AnsibleCollectionVersionResponse.md) + - [AnsibleCollectionVersionSignature](docs/AnsibleCollectionVersionSignature.md) - [AnsibleCollectionVersionSignatureResponse](docs/AnsibleCollectionVersionSignatureResponse.md) - [AnsibleGitRemote](docs/AnsibleGitRemote.md) - [AnsibleGitRemoteResponse](docs/AnsibleGitRemoteResponse.md) + - [AnsibleRepositoryMark](docs/AnsibleRepositoryMark.md) - [AnsibleRepositoryRebuild](docs/AnsibleRepositoryRebuild.md) - [AnsibleRepositorySignature](docs/AnsibleRepositorySignature.md) - [AnsibleRepositorySyncURL](docs/AnsibleRepositorySyncURL.md) @@ -786,6 +845,7 @@ Class | Method | HTTP request | Description - [AnsibleRoleResponse](docs/AnsibleRoleResponse.md) - [AnsibleTagResponse](docs/AnsibleTagResponse.md) - [AptRepositorySyncURL](docs/AptRepositorySyncURL.md) + - [Artifact](docs/Artifact.md) - [ArtifactDistributionResponse](docs/ArtifactDistributionResponse.md) - [ArtifactRefResponse](docs/ArtifactRefResponse.md) - [ArtifactResponse](docs/ArtifactResponse.md) @@ -799,11 +859,17 @@ Class | Method | HTTP request | Description - [CollectionImportDetailResponse](docs/CollectionImportDetailResponse.md) - [CollectionMetadataResponse](docs/CollectionMetadataResponse.md) - [CollectionNamespaceResponse](docs/CollectionNamespaceResponse.md) + - [CollectionOneShot](docs/CollectionOneShot.md) - [CollectionRefResponse](docs/CollectionRefResponse.md) - [CollectionResponse](docs/CollectionResponse.md) + - [CollectionSummaryResponse](docs/CollectionSummaryResponse.md) + - [CollectionVersionCopyMove](docs/CollectionVersionCopyMove.md) - [CollectionVersionDocsResponse](docs/CollectionVersionDocsResponse.md) - [CollectionVersionListResponse](docs/CollectionVersionListResponse.md) - [CollectionVersionResponse](docs/CollectionVersionResponse.md) + - [CollectionVersionSearchList](docs/CollectionVersionSearchList.md) + - [CollectionVersionSearchListResponse](docs/CollectionVersionSearchListResponse.md) + - [CompsXml](docs/CompsXml.md) - [ContainerBlobResponse](docs/ContainerBlobResponse.md) - [ContainerContainerDistribution](docs/ContainerContainerDistribution.md) - [ContainerContainerDistributionResponse](docs/ContainerContainerDistributionResponse.md) @@ -835,7 +901,9 @@ Class | Method | HTTP request | Description - [DebAptRemoteResponse](docs/DebAptRemoteResponse.md) - [DebAptRepository](docs/DebAptRepository.md) - [DebAptRepositoryResponse](docs/DebAptRepositoryResponse.md) + - [DebBasePackage](docs/DebBasePackage.md) - [DebBasePackageResponse](docs/DebBasePackageResponse.md) + - [DebGenericContent](docs/DebGenericContent.md) - [DebGenericContentResponse](docs/DebGenericContentResponse.md) - [DebInstallerFileIndex](docs/DebInstallerFileIndex.md) - [DebInstallerFileIndexResponse](docs/DebInstallerFileIndexResponse.md) @@ -860,6 +928,7 @@ Class | Method | HTTP request | Description - [ExcludePlatformsEnum](docs/ExcludePlatformsEnum.md) - [FileFileAlternateContentSource](docs/FileFileAlternateContentSource.md) - [FileFileAlternateContentSourceResponse](docs/FileFileAlternateContentSourceResponse.md) + - [FileFileContent](docs/FileFileContent.md) - [FileFileContentResponse](docs/FileFileContentResponse.md) - [FileFileDistribution](docs/FileFileDistribution.md) - [FileFileDistributionResponse](docs/FileFileDistributionResponse.md) @@ -902,8 +971,11 @@ Class | Method | HTTP request | Description - [MinimalTaskResponse](docs/MinimalTaskResponse.md) - [MultipleArtifactContentResponse](docs/MultipleArtifactContentResponse.md) - [MyPermissionsResponse](docs/MyPermissionsResponse.md) + - [NamespaceLink](docs/NamespaceLink.md) + - [NamespaceLinkResponse](docs/NamespaceLinkResponse.md) - [NestedRole](docs/NestedRole.md) - [NestedRoleResponse](docs/NestedRoleResponse.md) + - [OCIBuildImage](docs/OCIBuildImage.md) - [ObjectRolesResponse](docs/ObjectRolesResponse.md) - [OrphansCleanup](docs/OrphansCleanup.md) - [OstreeImportAll](docs/OstreeImportAll.md) @@ -923,6 +995,7 @@ Class | Method | HTTP request | Description - [PackageChecksumTypeEnum](docs/PackageChecksumTypeEnum.md) - [PackageMetadataResponse](docs/PackageMetadataResponse.md) - [PackageTypesEnum](docs/PackageTypesEnum.md) + - [PackageUpload](docs/PackageUpload.md) - [PackageUploadTaskResponse](docs/PackageUploadTaskResponse.md) - [PaginatedAccessPolicyResponseList](docs/PaginatedAccessPolicyResponseList.md) - [PaginatedArtifactDistributionResponseList](docs/PaginatedArtifactDistributionResponseList.md) @@ -931,6 +1004,7 @@ Class | Method | HTTP request | Description - [PaginatedCollectionResponseListLinks](docs/PaginatedCollectionResponseListLinks.md) - [PaginatedCollectionResponseListMeta](docs/PaginatedCollectionResponseListMeta.md) - [PaginatedCollectionVersionListResponseList](docs/PaginatedCollectionVersionListResponseList.md) + - [PaginatedCollectionVersionSearchListResponseList](docs/PaginatedCollectionVersionSearchListResponseList.md) - [PaginatedContentGuardResponseList](docs/PaginatedContentGuardResponseList.md) - [PaginatedContentRedirectContentGuardResponseList](docs/PaginatedContentRedirectContentGuardResponseList.md) - [PaginatedDistributionResponseList](docs/PaginatedDistributionResponseList.md) @@ -966,9 +1040,11 @@ Class | Method | HTTP request | Description - [PaginatedUserRoleResponseList](docs/PaginatedUserRoleResponseList.md) - [PaginatedWorkerResponseList](docs/PaginatedWorkerResponseList.md) - [PaginatedansibleAnsibleDistributionResponseList](docs/PaginatedansibleAnsibleDistributionResponseList.md) + - [PaginatedansibleAnsibleNamespaceMetadataResponseList](docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md) - [PaginatedansibleAnsibleRepositoryResponseList](docs/PaginatedansibleAnsibleRepositoryResponseList.md) - [PaginatedansibleCollectionRemoteResponseList](docs/PaginatedansibleCollectionRemoteResponseList.md) - [PaginatedansibleCollectionResponseList](docs/PaginatedansibleCollectionResponseList.md) + - [PaginatedansibleCollectionVersionMarkResponseList](docs/PaginatedansibleCollectionVersionMarkResponseList.md) - [PaginatedansibleCollectionVersionResponseList](docs/PaginatedansibleCollectionVersionResponseList.md) - [PaginatedansibleCollectionVersionSignatureResponseList](docs/PaginatedansibleCollectionVersionSignatureResponseList.md) - [PaginatedansibleGitRemoteResponseList](docs/PaginatedansibleGitRemoteResponseList.md) @@ -1053,6 +1129,7 @@ Class | Method | HTTP request | Description - [PatchedUpstreamPulp](docs/PatchedUpstreamPulp.md) - [PatchedUser](docs/PatchedUser.md) - [PatchedansibleAnsibleDistribution](docs/PatchedansibleAnsibleDistribution.md) + - [PatchedansibleAnsibleNamespaceMetadata](docs/PatchedansibleAnsibleNamespaceMetadata.md) - [PatchedansibleAnsibleRepository](docs/PatchedansibleAnsibleRepository.md) - [PatchedansibleCollectionRemote](docs/PatchedansibleCollectionRemote.md) - [PatchedansibleGitRemote](docs/PatchedansibleGitRemote.md) @@ -1102,8 +1179,10 @@ Class | Method | HTTP request | Description - [PulpImporter](docs/PulpImporter.md) - [PulpImporterResponse](docs/PulpImporterResponse.md) - [Purge](docs/Purge.md) + - [PythonBanderRemote](docs/PythonBanderRemote.md) - [PythonPythonDistribution](docs/PythonPythonDistribution.md) - [PythonPythonDistributionResponse](docs/PythonPythonDistributionResponse.md) + - [PythonPythonPackageContent](docs/PythonPythonPackageContent.md) - [PythonPythonPackageContentResponse](docs/PythonPythonPackageContentResponse.md) - [PythonPythonPublication](docs/PythonPythonPublication.md) - [PythonPythonPublicationResponse](docs/PythonPythonPublicationResponse.md) @@ -1123,6 +1202,7 @@ Class | Method | HTTP request | Description - [RemoveSignaturesResponse](docs/RemoveSignaturesResponse.md) - [Repair](docs/Repair.md) - [RepoMetadataResponse](docs/RepoMetadataResponse.md) + - [Repository](docs/Repository.md) - [RepositoryAddCachedContent](docs/RepositoryAddCachedContent.md) - [RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md) - [RepositoryResponse](docs/RepositoryResponse.md) @@ -1139,6 +1219,7 @@ Class | Method | HTTP request | Description - [RpmModulemdObsolete](docs/RpmModulemdObsolete.md) - [RpmModulemdObsoleteResponse](docs/RpmModulemdObsoleteResponse.md) - [RpmModulemdResponse](docs/RpmModulemdResponse.md) + - [RpmPackage](docs/RpmPackage.md) - [RpmPackageCategoryResponse](docs/RpmPackageCategoryResponse.md) - [RpmPackageEnvironmentResponse](docs/RpmPackageEnvironmentResponse.md) - [RpmPackageGroupResponse](docs/RpmPackageGroupResponse.md) @@ -1160,6 +1241,7 @@ Class | Method | HTTP request | Description - [RpmUlnRemoteResponse](docs/RpmUlnRemoteResponse.md) - [RpmUpdateCollection](docs/RpmUpdateCollection.md) - [RpmUpdateCollectionResponse](docs/RpmUpdateCollectionResponse.md) + - [RpmUpdateRecord](docs/RpmUpdateRecord.md) - [RpmUpdateRecordResponse](docs/RpmUpdateRecordResponse.md) - [SigningServiceResponse](docs/SigningServiceResponse.md) - [SkipTypesEnum](docs/SkipTypesEnum.md) @@ -1176,6 +1258,7 @@ Class | Method | HTTP request | Description - [TagCopy](docs/TagCopy.md) - [TagImage](docs/TagImage.md) - [TagResponse](docs/TagResponse.md) + - [Task](docs/Task.md) - [TaskGroupOperationResponse](docs/TaskGroupOperationResponse.md) - [TaskGroupResponse](docs/TaskGroupResponse.md) - [TaskResponse](docs/TaskResponse.md) @@ -1183,6 +1266,7 @@ Class | Method | HTTP request | Description - [UnTagImage](docs/UnTagImage.md) - [UnpaginatedCollectionVersionResponse](docs/UnpaginatedCollectionVersionResponse.md) - [Upload](docs/Upload.md) + - [UploadChunk](docs/UploadChunk.md) - [UploadChunkResponse](docs/UploadChunkResponse.md) - [UploadCommit](docs/UploadCommit.md) - [UploadDetailResponse](docs/UploadDetailResponse.md) diff --git a/release/api/openapi.yaml b/release/api/openapi.yaml index cf5f38e3..7be914f2 100644 --- a/release/api/openapi.yaml +++ b/release/api/openapi.yaml @@ -14,7 +14,7 @@ info: url: https://pulp.plan.io/attachments/download/517478/pulp_logo_word_rectangle.svg x-pulp-app-versions: core: 3.23.1 - ansible: 0.16.1 + ansible: 0.17.0 certguard: 1.6.1 container: 2.14.4 deb: 2.20.1 @@ -1434,6 +1434,166 @@ paths: description: "" tags: - "Galaxy: Detail" + '{ansible_collection_href}add_role/': + post: + description: Add a role for this object to users/groups. + operationId: ansible_collections_add_role + parameters: + - explode: false + in: path + name: ansible_collection_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRole' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/NestedRole' + multipart/form-data: + schema: + $ref: '#/components/schemas/NestedRole' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRoleResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Ansible: Collections" + '{ansible_collection_href}list_roles/': + get: + description: List roles assigned to this object. + operationId: ansible_collections_list_roles + parameters: + - explode: false + in: path + name: ansible_collection_href + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ObjectRolesResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Ansible: Collections" + '{ansible_collection_href}my_permissions/': + get: + description: List permissions available to the current user on this object. + operationId: ansible_collections_my_permissions + parameters: + - explode: false + in: path + name: ansible_collection_href + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MyPermissionsResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Ansible: Collections" + '{ansible_collection_href}remove_role/': + post: + description: Remove a role for this object from users/groups. + operationId: ansible_collections_remove_role + parameters: + - explode: false + in: path + name: ansible_collection_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRole' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/NestedRole' + multipart/form-data: + schema: + $ref: '#/components/schemas/NestedRole' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRoleResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Ansible: Collections" /pulp/api/v3/ansible/copy/: post: description: "Trigger an asynchronous task to copy ansible content from one\ @@ -2010,11 +2170,10 @@ paths: summary: Inspect an ansible collection deprecated tags: - "Content: Collection_Deprecations" - /pulp/api/v3/content/ansible/collection_signatures/: + /pulp/api/v3/content/ansible/collection_marks/: get: - description: ViewSet for looking at signature objects for CollectionVersion - content. - operationId: content_ansible_collection_signatures_list + description: ViewSet for looking at mark objects for CollectionVersion content. + operationId: content_ansible_collection_marks_list parameters: - description: Number of results to return per page. explode: true @@ -2024,6 +2183,15 @@ paths: schema: type: integer style: form + - description: Filter marks for collection version + explode: true + in: query + name: marked_collection + required: false + schema: + format: uri + type: string + style: form - description: The initial index from which to return the results. explode: true in: query @@ -2040,45 +2208,22 @@ paths: schema: items: enum: - - -data - - -digest - -pk - - -pubkey_fingerprint - -pulp_created - -pulp_id - -pulp_last_updated - -pulp_type - -timestamp_of_interest - -upstream_id - - data - - digest + - -value - pk - - pubkey_fingerprint - pulp_created - pulp_id - pulp_last_updated - pulp_type - timestamp_of_interest - upstream_id - type: string - type: array - style: form - - description: Filter results where pubkey_fingerprint matches value - explode: true - in: query - name: pubkey_fingerprint - required: false - schema: - type: string - style: form - - description: Filter results where pubkey_fingerprint is in a comma-separated - list of values - explode: false - in: query - name: pubkey_fingerprint__in - required: false - schema: - items: + - value type: string type: array style: form @@ -2106,96 +2251,24 @@ paths: schema: type: string style: form - - description: Filter signatures for collection version - explode: true - in: query - name: signed_collection - required: false - schema: - format: uri - type: string - style: form - - description: Filter signatures produced by signature service + - description: Filter marks by value explode: true in: query - name: signing_service + name: value required: false schema: - format: uri type: string style: form - - description: A list of fields to include in the response. - explode: true - in: query - name: fields - required: false - schema: - items: - type: string - type: array - style: form - - description: A list of fields to exclude from the response. - explode: true + - description: Filter results where value is in a comma-separated list of values + explode: false in: query - name: exclude_fields + name: value__in required: false schema: items: type: string type: array style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Paginatedansible.CollectionVersionSignatureResponseList' - description: "" - security: - - cookieAuth: [] - - basicAuth: [] - summary: List collection version signatures - tags: - - "Content: Collection_Signatures" - post: - description: "Trigger an asynchronous task to create content,optionally create\ - \ new repository version." - operationId: content_ansible_collection_signatures_create - requestBody: - content: - multipart/form-data: - schema: - $ref: '#/components/schemas/ansible.CollectionVersionSignature' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/ansible.CollectionVersionSignature' - required: true - responses: - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/AsyncOperationResponse' - description: "" - security: - - cookieAuth: [] - - basicAuth: [] - summary: Create a collection version signature - tags: - - "Content: Collection_Signatures" - '{ansible_collection_version_signature_href}': - get: - description: ViewSet for looking at signature objects for CollectionVersion - content. - operationId: content_ansible_collection_signatures_read - parameters: - - explode: false - in: path - name: ansible_collection_version_signature_href - required: true - schema: - type: string - style: simple - description: A list of fields to include in the response. explode: true in: query @@ -2221,47 +2294,100 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ansible.CollectionVersionSignatureResponse' + $ref: '#/components/schemas/Paginatedansible.CollectionVersionMarkResponseList' description: "" security: - cookieAuth: [] - basicAuth: [] - summary: Inspect a collection version signature + summary: List collection version marks tags: - - "Content: Collection_Signatures" - /pulp/api/v3/content/ansible/collection_versions/: + - "Content: Collection_Marks" + post: + description: ViewSet for looking at mark objects for CollectionVersion content. + operationId: content_ansible_collection_marks_create + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ansible.CollectionVersionMark' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ansible.CollectionVersionMark' + multipart/form-data: + schema: + $ref: '#/components/schemas/ansible.CollectionVersionMark' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ansible.CollectionVersionMarkResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + summary: Create a collection version mark + tags: + - "Content: Collection_Marks" + '{ansible_collection_version_mark_href}': get: - description: ViewSet for Ansible Collection. - operationId: content_ansible_collection_versions_list + description: ViewSet for looking at mark objects for CollectionVersion content. + operationId: content_ansible_collection_marks_read parameters: - - explode: true - in: query - name: is_highest - required: false + - explode: false + in: path + name: ansible_collection_version_mark_href + required: true schema: - type: boolean - style: form - - description: Number of results to return per page. + type: string + style: simple + - description: A list of fields to include in the response. explode: true in: query - name: limit + name: fields required: false schema: - type: integer + items: + type: string + type: array style: form - - explode: true + - description: A list of fields to exclude from the response. + explode: true in: query - name: name + name: exclude_fields required: false schema: - type: string + items: + type: string + type: array style: form - - explode: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ansible.CollectionVersionMarkResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + summary: Inspect a collection version mark + tags: + - "Content: Collection_Marks" + /pulp/api/v3/content/ansible/collection_signatures/: + get: + description: ViewSet for looking at signature objects for CollectionVersion + content. + operationId: content_ansible_collection_signatures_list + parameters: + - description: Number of results to return per page. + explode: true in: query - name: namespace + name: limit required: false schema: - type: string + type: integer style: form - description: The initial index from which to return the results. explode: true @@ -2279,66 +2405,48 @@ paths: schema: items: enum: - - -authors - - -contents - - -dependencies - - -description - - -docs_blob - - -documentation - - -files - - -homepage - - -is_highest - - -issues - - -license - - -manifest - - -name - - -namespace + - -data + - -digest - -pk + - -pubkey_fingerprint - -pulp_created - -pulp_id - -pulp_last_updated - -pulp_type - - -repository - - -requires_ansible - - -search_vector - -timestamp_of_interest - -upstream_id - - -version - - authors - - contents - - dependencies - - description - - docs_blob - - documentation - - files - - homepage - - is_highest - - issues - - license - - manifest - - name - - namespace + - data + - digest - pk + - pubkey_fingerprint - pulp_created - pulp_id - pulp_last_updated - pulp_type - - repository - - requires_ansible - - search_vector - timestamp_of_interest - upstream_id - - version type: string type: array style: form - - explode: true + - description: Filter results where pubkey_fingerprint matches value + explode: true in: query - name: q + name: pubkey_fingerprint required: false schema: type: string style: form + - description: Filter results where pubkey_fingerprint is in a comma-separated + list of values + explode: false + in: query + name: pubkey_fingerprint__in + required: false + schema: + items: + type: string + type: array + style: form - description: Repository Version referenced by HREF explode: true in: query @@ -2363,20 +2471,22 @@ paths: schema: type: string style: form - - description: Filter by comma separate list of tags that must all be matched + - description: Filter signatures for collection version explode: true in: query - name: tags + name: signed_collection required: false schema: + format: uri type: string style: form - - description: Filter results where version matches value + - description: Filter signatures produced by signature service explode: true in: query - name: version + name: signing_service required: false schema: + format: uri type: string style: form - description: A list of fields to include in the response. @@ -2404,26 +2514,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Paginatedansible.CollectionVersionResponseList' + $ref: '#/components/schemas/Paginatedansible.CollectionVersionSignatureResponseList' description: "" security: - cookieAuth: [] - basicAuth: [] - summary: List collection versions + summary: List collection version signatures tags: - - "Content: Collection_Versions" + - "Content: Collection_Signatures" post: description: "Trigger an asynchronous task to create content,optionally create\ \ new repository version." - operationId: content_ansible_collection_versions_create + operationId: content_ansible_collection_signatures_create requestBody: content: multipart/form-data: schema: - $ref: '#/components/schemas/ansible.CollectionVersion' + $ref: '#/components/schemas/ansible.CollectionVersionSignature' application/x-www-form-urlencoded: schema: - $ref: '#/components/schemas/ansible.CollectionVersion' + $ref: '#/components/schemas/ansible.CollectionVersionSignature' required: true responses: "202": @@ -2435,17 +2545,18 @@ paths: security: - cookieAuth: [] - basicAuth: [] - summary: Create a collection version + summary: Create a collection version signature tags: - - "Content: Collection_Versions" - '{ansible_collection_version_href}': + - "Content: Collection_Signatures" + '{ansible_collection_version_signature_href}': get: - description: ViewSet for Ansible Collection. - operationId: content_ansible_collection_versions_read + description: ViewSet for looking at signature objects for CollectionVersion + content. + operationId: content_ansible_collection_signatures_read parameters: - explode: false in: path - name: ansible_collection_version_href + name: ansible_collection_version_signature_href required: true schema: type: string @@ -2475,19 +2586,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ansible.CollectionVersionResponse' + $ref: '#/components/schemas/ansible.CollectionVersionSignatureResponse' description: "" security: - cookieAuth: [] - basicAuth: [] - summary: Inspect a collection version + summary: Inspect a collection version signature tags: - - "Content: Collection_Versions" - /pulp/api/v3/content/ansible/roles/: + - "Content: Collection_Signatures" + /pulp/api/v3/content/ansible/collection_versions/: get: - description: ViewSet for Role. - operationId: content_ansible_roles_list + description: ViewSet for Ansible Collection. + operationId: content_ansible_collection_versions_list parameters: + - explode: true + in: query + name: is_highest + required: false + schema: + type: boolean + style: form - description: Number of results to return per page. explode: true in: query @@ -2496,16 +2614,14 @@ paths: schema: type: integer style: form - - description: Filter results where name matches value - explode: true + - explode: true in: query name: name required: false schema: type: string style: form - - description: Filter results where namespace matches value - explode: true + - explode: true in: query name: namespace required: false @@ -2528,6 +2644,18 @@ paths: schema: items: enum: + - -authors + - -contents + - -dependencies + - -description + - -docs_blob + - -documentation + - -files + - -homepage + - -is_highest + - -issues + - -license + - -manifest - -name - -namespace - -pk @@ -2535,9 +2663,24 @@ paths: - -pulp_id - -pulp_last_updated - -pulp_type + - -repository + - -requires_ansible + - -search_vector - -timestamp_of_interest - -upstream_id - -version + - authors + - contents + - dependencies + - description + - docs_blob + - documentation + - files + - homepage + - is_highest + - issues + - license + - manifest - name - namespace - pk @@ -2545,12 +2688,22 @@ paths: - pulp_id - pulp_last_updated - pulp_type + - repository + - requires_ansible + - search_vector - timestamp_of_interest - upstream_id - version type: string type: array style: form + - explode: true + in: query + name: q + required: false + schema: + type: string + style: form - description: Repository Version referenced by HREF explode: true in: query @@ -2575,6 +2728,14 @@ paths: schema: type: string style: form + - description: Filter by comma separate list of tags that must all be matched + explode: true + in: query + name: tags + required: false + schema: + type: string + style: form - description: Filter results where version matches value explode: true in: query @@ -2608,50 +2769,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Paginatedansible.RoleResponseList' + $ref: '#/components/schemas/Paginatedansible.CollectionVersionResponseList' description: "" security: - cookieAuth: [] - basicAuth: [] - summary: List roles + summary: List collection versions tags: - - "Content: Roles" + - "Content: Collection_Versions" post: - description: ViewSet for Role. - operationId: content_ansible_roles_create + description: "Trigger an asynchronous task to create content,optionally create\ + \ new repository version." + operationId: content_ansible_collection_versions_create requestBody: content: - application/json: + multipart/form-data: schema: - $ref: '#/components/schemas/ansible.Role' + $ref: '#/components/schemas/ansible.CollectionVersion' application/x-www-form-urlencoded: schema: - $ref: '#/components/schemas/ansible.Role' - multipart/form-data: - schema: - $ref: '#/components/schemas/ansible.Role' + $ref: '#/components/schemas/ansible.CollectionVersion' required: true responses: - "201": + "202": content: application/json: schema: - $ref: '#/components/schemas/ansible.RoleResponse' + $ref: '#/components/schemas/AsyncOperationResponse' description: "" security: - cookieAuth: [] - basicAuth: [] - summary: Create a role + summary: Create a collection version tags: - - "Content: Roles" - '{ansible_role_href}': + - "Content: Collection_Versions" + '{ansible_collection_version_href}': get: - description: ViewSet for Role. - operationId: content_ansible_roles_read + description: ViewSet for Ansible Collection. + operationId: content_ansible_collection_versions_read parameters: - explode: false in: path - name: ansible_role_href + name: ansible_collection_version_href required: true schema: type: string @@ -2681,37 +2840,62 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ansible.RoleResponse' + $ref: '#/components/schemas/ansible.CollectionVersionResponse' description: "" security: - cookieAuth: [] - basicAuth: [] - summary: Inspect a role + summary: Inspect a collection version tags: - - "Content: Roles" - /pulp/api/v3/content/container/blobs/: + - "Content: Collection_Versions" + /pulp/api/v3/content/ansible/namespaces/: get: - description: ViewSet for Blobs. - operationId: content_container_blobs_list + description: ViewSet for AnsibleNamespace. + operationId: content_ansible_namespaces_list parameters: - - description: Filter results where digest matches value + - description: Filter results where company matches value explode: true in: query - name: digest + name: company required: false schema: type: string style: form - - description: Filter results where digest is in a comma-separated list of values + - description: Filter results where company contains value + explode: true + in: query + name: company__contains + required: false + schema: + type: string + style: form + - description: Filter results where company contains value + explode: true + in: query + name: company__icontains + required: false + schema: + type: string + style: form + - description: Filter results where company is in a comma-separated list of + values explode: false in: query - name: digest__in + name: company__in required: false schema: items: type: string type: array style: form + - description: Filter results where company starts with value + explode: true + in: query + name: company__startswith + required: false + schema: + type: string + style: form - description: Number of results to return per page. explode: true in: query @@ -2720,6 +2904,67 @@ paths: schema: type: integer style: form + - description: Filter results where metadata_sha256 matches value + explode: true + in: query + name: metadata_sha256 + required: false + schema: + type: string + style: form + - description: Filter results where metadata_sha256 is in a comma-separated + list of values + explode: false + in: query + name: metadata_sha256__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter results where name matches value + explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: Filter results where name contains value + explode: true + in: query + name: name__contains + required: false + schema: + type: string + style: form + - description: Filter results where name contains value + explode: true + in: query + name: name__icontains + required: false + schema: + type: string + style: form + - description: Filter results where name is in a comma-separated list of values + explode: false + in: query + name: name__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter results where name starts with value + explode: true + in: query + name: name__startswith + required: false + schema: + type: string + style: form - description: The initial index from which to return the results. explode: true in: query @@ -2736,20 +2981,34 @@ paths: schema: items: enum: - - -digest + - -avatar_sha256 + - -company + - -description + - -email + - -links + - -metadata_sha256 + - -name - -pk - -pulp_created - -pulp_id - -pulp_last_updated - -pulp_type + - -resources - -timestamp_of_interest - -upstream_id - - digest + - avatar_sha256 + - company + - description + - email + - links + - metadata_sha256 + - name - pk - pulp_created - pulp_id - pulp_last_updated - pulp_type + - resources - timestamp_of_interest - upstream_id type: string @@ -2804,22 +3063,22 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Paginatedcontainer.BlobResponseList' + $ref: '#/components/schemas/Paginatedansible.AnsibleNamespaceMetadataResponseList' description: "" security: - cookieAuth: [] - basicAuth: [] - summary: List blobs + summary: List ansible namespace metadatas tags: - - "Content: Blobs" - '{container_blob_href}': + - "Content: Namespaces" + '{ansible_ansible_namespace_metadata_href}': get: - description: ViewSet for Blobs. - operationId: content_container_blobs_read + description: ViewSet for AnsibleNamespace. + operationId: content_ansible_namespaces_read parameters: - explode: false in: path - name: container_blob_href + name: ansible_ansible_namespace_metadata_href required: true schema: type: string @@ -2849,37 +3108,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/container.BlobResponse' + $ref: '#/components/schemas/ansible.AnsibleNamespaceMetadataResponse' description: "" security: - cookieAuth: [] - basicAuth: [] - summary: Inspect a blob + summary: Inspect an ansible namespace metadata tags: - - "Content: Blobs" - /pulp/api/v3/content/container/manifests/: + - "Content: Namespaces" + '{ansible_ansible_namespace_metadata_href}avatar/': get: - description: ViewSet for Manifest. - operationId: content_container_manifests_list + description: Get the logo for the this namespace. + operationId: content_ansible_namespaces_avatar parameters: - - description: Filter results where digest matches value + - explode: false + in: path + name: ansible_ansible_namespace_metadata_href + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. explode: true in: query - name: digest + name: fields required: false schema: - type: string + items: + type: string + type: array style: form - - description: Filter results where digest is in a comma-separated list of values - explode: false + - description: A list of fields to exclude from the response. + explode: true in: query - name: digest__in + name: exclude_fields required: false schema: items: type: string type: array style: form + responses: + "302": + content: + application/json: + schema: + description: Unspecified response body + type: object + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Content: Namespaces" + /pulp/api/v3/content/ansible/roles/: + get: + description: ViewSet for Role. + operationId: content_ansible_roles_list + parameters: - description: Number of results to return per page. explode: true in: query @@ -2888,20 +3174,21 @@ paths: schema: type: integer style: form - - explode: true + - description: Filter results where name matches value + explode: true in: query - name: media_type + name: name required: false schema: - items: - enum: - - application/vnd.docker.distribution.manifest.list.v2+json - - application/vnd.docker.distribution.manifest.v1+json - - application/vnd.docker.distribution.manifest.v2+json - - application/vnd.oci.image.index.v1+json - - application/vnd.oci.image.manifest.v1+json - type: string - type: array + type: string + style: form + - description: Filter results where namespace matches value + explode: true + in: query + name: namespace + required: false + schema: + type: string style: form - description: The initial index from which to return the results. explode: true @@ -2919,26 +3206,26 @@ paths: schema: items: enum: - - -digest - - -media_type + - -name + - -namespace - -pk - -pulp_created - -pulp_id - -pulp_last_updated - -pulp_type - - -schema_version - -timestamp_of_interest - -upstream_id - - digest - - media_type + - -version + - name + - namespace - pk - pulp_created - pulp_id - pulp_last_updated - pulp_type - - schema_version - timestamp_of_interest - upstream_id + - version type: string type: array style: form @@ -2966,6 +3253,14 @@ paths: schema: type: string style: form + - description: Filter results where version matches value + explode: true + in: query + name: version + required: false + schema: + type: string + style: form - description: A list of fields to include in the response. explode: true in: query @@ -2991,22 +3286,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Paginatedcontainer.ManifestResponseList' + $ref: '#/components/schemas/Paginatedansible.RoleResponseList' description: "" security: - cookieAuth: [] - basicAuth: [] - summary: List manifests + summary: List roles tags: - - "Content: Manifests" - '{container_manifest_href}': + - "Content: Roles" + post: + description: ViewSet for Role. + operationId: content_ansible_roles_create + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ansible.Role' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ansible.Role' + multipart/form-data: + schema: + $ref: '#/components/schemas/ansible.Role' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ansible.RoleResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + summary: Create a role + tags: + - "Content: Roles" + '{ansible_role_href}': get: - description: ViewSet for Manifest. - operationId: content_container_manifests_read + description: ViewSet for Role. + operationId: content_ansible_roles_read parameters: - explode: false in: path - name: container_manifest_href + name: ansible_role_href required: true schema: type: string @@ -3036,14 +3359,369 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/container.ManifestResponse' + $ref: '#/components/schemas/ansible.RoleResponse' description: "" security: - cookieAuth: [] - basicAuth: [] - summary: Inspect a manifest + summary: Inspect a role tags: - - "Content: Manifests" + - "Content: Roles" + /pulp/api/v3/content/container/blobs/: + get: + description: ViewSet for Blobs. + operationId: content_container_blobs_list + parameters: + - description: Filter results where digest matches value + explode: true + in: query + name: digest + required: false + schema: + type: string + style: form + - description: Filter results where digest is in a comma-separated list of values + explode: false + in: query + name: digest__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Number of results to return per page. + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + - description: The initial index from which to return the results. + explode: true + in: query + name: offset + required: false + schema: + type: integer + style: form + - description: Ordering + explode: false + in: query + name: ordering + required: false + schema: + items: + enum: + - -digest + - -pk + - -pulp_created + - -pulp_id + - -pulp_last_updated + - -pulp_type + - -timestamp_of_interest + - -upstream_id + - digest + - pk + - pulp_created + - pulp_id + - pulp_last_updated + - pulp_type + - timestamp_of_interest + - upstream_id + type: string + type: array + style: form + - description: Repository Version referenced by HREF + explode: true + in: query + name: repository_version + required: false + schema: + type: string + style: form + - description: Repository Version referenced by HREF + explode: true + in: query + name: repository_version_added + required: false + schema: + type: string + style: form + - description: Repository Version referenced by HREF + explode: true + in: query + name: repository_version_removed + required: false + schema: + type: string + style: form + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Paginatedcontainer.BlobResponseList' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + summary: List blobs + tags: + - "Content: Blobs" + '{container_blob_href}': + get: + description: ViewSet for Blobs. + operationId: content_container_blobs_read + parameters: + - explode: false + in: path + name: container_blob_href + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/container.BlobResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + summary: Inspect a blob + tags: + - "Content: Blobs" + /pulp/api/v3/content/container/manifests/: + get: + description: ViewSet for Manifest. + operationId: content_container_manifests_list + parameters: + - description: Filter results where digest matches value + explode: true + in: query + name: digest + required: false + schema: + type: string + style: form + - description: Filter results where digest is in a comma-separated list of values + explode: false + in: query + name: digest__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Number of results to return per page. + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: media_type + required: false + schema: + items: + enum: + - application/vnd.docker.distribution.manifest.list.v2+json + - application/vnd.docker.distribution.manifest.v1+json + - application/vnd.docker.distribution.manifest.v2+json + - application/vnd.oci.image.index.v1+json + - application/vnd.oci.image.manifest.v1+json + type: string + type: array + style: form + - description: The initial index from which to return the results. + explode: true + in: query + name: offset + required: false + schema: + type: integer + style: form + - description: Ordering + explode: false + in: query + name: ordering + required: false + schema: + items: + enum: + - -digest + - -media_type + - -pk + - -pulp_created + - -pulp_id + - -pulp_last_updated + - -pulp_type + - -schema_version + - -timestamp_of_interest + - -upstream_id + - digest + - media_type + - pk + - pulp_created + - pulp_id + - pulp_last_updated + - pulp_type + - schema_version + - timestamp_of_interest + - upstream_id + type: string + type: array + style: form + - description: Repository Version referenced by HREF + explode: true + in: query + name: repository_version + required: false + schema: + type: string + style: form + - description: Repository Version referenced by HREF + explode: true + in: query + name: repository_version_added + required: false + schema: + type: string + style: form + - description: Repository Version referenced by HREF + explode: true + in: query + name: repository_version_removed + required: false + schema: + type: string + style: form + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Paginatedcontainer.ManifestResponseList' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + summary: List manifests + tags: + - "Content: Manifests" + '{container_manifest_href}': + get: + description: ViewSet for Manifest. + operationId: content_container_manifests_read + parameters: + - explode: false + in: path + name: container_manifest_href + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/container.ManifestResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + summary: Inspect a manifest + tags: + - "Content: Manifests" /pulp/api/v3/content/container/signatures/: get: description: ViewSet for image signatures. @@ -12362,6 +13040,166 @@ paths: summary: Update an ansible distribution tags: - "Distributions: Ansible" + '{ansible_ansible_distribution_href}add_role/': + post: + description: Add a role for this object to users/groups. + operationId: distributions_ansible_ansible_add_role + parameters: + - explode: false + in: path + name: ansible_ansible_distribution_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRole' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/NestedRole' + multipart/form-data: + schema: + $ref: '#/components/schemas/NestedRole' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRoleResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Distributions: Ansible" + '{ansible_ansible_distribution_href}list_roles/': + get: + description: List roles assigned to this object. + operationId: distributions_ansible_ansible_list_roles + parameters: + - explode: false + in: path + name: ansible_ansible_distribution_href + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ObjectRolesResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Distributions: Ansible" + '{ansible_ansible_distribution_href}my_permissions/': + get: + description: List permissions available to the current user on this object. + operationId: distributions_ansible_ansible_my_permissions + parameters: + - explode: false + in: path + name: ansible_ansible_distribution_href + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MyPermissionsResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Distributions: Ansible" + '{ansible_ansible_distribution_href}remove_role/': + post: + description: Remove a role for this object from users/groups. + operationId: distributions_ansible_ansible_remove_role + parameters: + - explode: false + in: path + name: ansible_ansible_distribution_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRole' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/NestedRole' + multipart/form-data: + schema: + $ref: '#/components/schemas/NestedRole' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRoleResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Distributions: Ansible" /pulp/api/v3/distributions/container/container/: get: description: |- @@ -21152,6 +21990,7 @@ paths: schema: items: enum: + - -auth_url - -ca_cert - -client_cert - -client_key @@ -21172,12 +22011,17 @@ paths: - -pulp_last_updated - -pulp_type - -rate_limit + - -requirements_file + - -signed_only - -sock_connect_timeout - -sock_read_timeout + - -sync_dependencies - -tls_validation + - -token - -total_timeout - -url - -username + - auth_url - ca_cert - client_cert - client_key @@ -21198,9 +22042,13 @@ paths: - pulp_last_updated - pulp_type - rate_limit + - requirements_file + - signed_only - sock_connect_timeout - sock_read_timeout + - sync_dependencies - tls_validation + - token - total_timeout - url - username @@ -21274,6 +22122,40 @@ paths: type: string type: array style: form + - description: Filter results where url matches value + explode: true + in: query + name: url + required: false + schema: + type: string + style: form + - description: Filter results where url contains value + explode: true + in: query + name: url__contains + required: false + schema: + type: string + style: form + - description: Filter results where url contains value + explode: true + in: query + name: url__icontains + required: false + schema: + type: string + style: form + - description: Filter results where url is in a comma-separated list of values + explode: false + in: query + name: url__in + required: false + schema: + items: + type: string + type: array + style: form - description: A list of fields to include in the response. explode: true in: query @@ -21476,6 +22358,166 @@ paths: summary: Update a collection remote tags: - "Remotes: Collection" + '{ansible_collection_remote_href}add_role/': + post: + description: Add a role for this object to users/groups. + operationId: remotes_ansible_collection_add_role + parameters: + - explode: false + in: path + name: ansible_collection_remote_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRole' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/NestedRole' + multipart/form-data: + schema: + $ref: '#/components/schemas/NestedRole' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRoleResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Remotes: Collection" + '{ansible_collection_remote_href}list_roles/': + get: + description: List roles assigned to this object. + operationId: remotes_ansible_collection_list_roles + parameters: + - explode: false + in: path + name: ansible_collection_remote_href + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ObjectRolesResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Remotes: Collection" + '{ansible_collection_remote_href}my_permissions/': + get: + description: List permissions available to the current user on this object. + operationId: remotes_ansible_collection_my_permissions + parameters: + - explode: false + in: path + name: ansible_collection_remote_href + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MyPermissionsResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Remotes: Collection" + '{ansible_collection_remote_href}remove_role/': + post: + description: Remove a role for this object from users/groups. + operationId: remotes_ansible_collection_remove_role + parameters: + - explode: false + in: path + name: ansible_collection_remote_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRole' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/NestedRole' + multipart/form-data: + schema: + $ref: '#/components/schemas/NestedRole' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRoleResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Remotes: Collection" /pulp/api/v3/remotes/ansible/git/: get: description: |- @@ -21880,6 +22922,166 @@ paths: summary: Update a git remote tags: - "Remotes: Git" + '{ansible_git_remote_href}add_role/': + post: + description: Add a role for this object to users/groups. + operationId: remotes_ansible_git_add_role + parameters: + - explode: false + in: path + name: ansible_git_remote_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRole' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/NestedRole' + multipart/form-data: + schema: + $ref: '#/components/schemas/NestedRole' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRoleResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Remotes: Git" + '{ansible_git_remote_href}list_roles/': + get: + description: List roles assigned to this object. + operationId: remotes_ansible_git_list_roles + parameters: + - explode: false + in: path + name: ansible_git_remote_href + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ObjectRolesResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Remotes: Git" + '{ansible_git_remote_href}my_permissions/': + get: + description: List permissions available to the current user on this object. + operationId: remotes_ansible_git_my_permissions + parameters: + - explode: false + in: path + name: ansible_git_remote_href + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MyPermissionsResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Remotes: Git" + '{ansible_git_remote_href}remove_role/': + post: + description: Remove a role for this object from users/groups. + operationId: remotes_ansible_git_remove_role + parameters: + - explode: false + in: path + name: ansible_git_remote_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRole' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/NestedRole' + multipart/form-data: + schema: + $ref: '#/components/schemas/NestedRole' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRoleResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Remotes: Git" /pulp/api/v3/remotes/ansible/role/: get: description: ViewSet for Role Remotes. @@ -22275,6 +23477,166 @@ paths: summary: Update a role remote tags: - "Remotes: Role" + '{ansible_role_remote_href}add_role/': + post: + description: Add a role for this object to users/groups. + operationId: remotes_ansible_role_add_role + parameters: + - explode: false + in: path + name: ansible_role_remote_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRole' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/NestedRole' + multipart/form-data: + schema: + $ref: '#/components/schemas/NestedRole' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRoleResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Remotes: Role" + '{ansible_role_remote_href}list_roles/': + get: + description: List roles assigned to this object. + operationId: remotes_ansible_role_list_roles + parameters: + - explode: false + in: path + name: ansible_role_remote_href + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ObjectRolesResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Remotes: Role" + '{ansible_role_remote_href}my_permissions/': + get: + description: List permissions available to the current user on this object. + operationId: remotes_ansible_role_my_permissions + parameters: + - explode: false + in: path + name: ansible_role_remote_href + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MyPermissionsResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Remotes: Role" + '{ansible_role_remote_href}remove_role/': + post: + description: Remove a role for this object from users/groups. + operationId: remotes_ansible_role_remove_role + parameters: + - explode: false + in: path + name: ansible_role_remote_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRole' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/NestedRole' + multipart/form-data: + schema: + $ref: '#/components/schemas/NestedRole' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRoleResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Remotes: Role" /pulp/api/v3/remotes/container/container/: get: description: |- @@ -26780,6 +28142,158 @@ paths: summary: Update an ansible repository tags: - "Repositories: Ansible" + '{ansible_ansible_repository_href}add_role/': + post: + description: Add a role for this object to users/groups. + operationId: repositories_ansible_ansible_add_role + parameters: + - explode: false + in: path + name: ansible_ansible_repository_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRole' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/NestedRole' + multipart/form-data: + schema: + $ref: '#/components/schemas/NestedRole' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRoleResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Repositories: Ansible" + '{ansible_ansible_repository_href}copy_collection_version/': + post: + description: Trigger an asynchronous task to copy collection versions. + operationId: repositories_ansible_ansible_copy_collection_version + parameters: + - explode: false + in: path + name: ansible_ansible_repository_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CollectionVersionCopyMove' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/CollectionVersionCopyMove' + multipart/form-data: + schema: + $ref: '#/components/schemas/CollectionVersionCopyMove' + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncOperationResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Repositories: Ansible" + '{ansible_ansible_repository_href}list_roles/': + get: + description: List roles assigned to this object. + operationId: repositories_ansible_ansible_list_roles + parameters: + - explode: false + in: path + name: ansible_ansible_repository_href + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ObjectRolesResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Repositories: Ansible" + '{ansible_ansible_repository_href}mark/': + post: + description: Trigger an asynchronous task to mark Ansible content. + operationId: repositories_ansible_ansible_mark + parameters: + - explode: false + in: path + name: ansible_ansible_repository_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AnsibleRepositoryMark' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/AnsibleRepositoryMark' + multipart/form-data: + schema: + $ref: '#/components/schemas/AnsibleRepositoryMark' + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncOperationResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Repositories: Ansible" '{ansible_ansible_repository_href}modify/': post: description: Trigger an asynchronous task to create a new repository version. @@ -26817,6 +28331,86 @@ paths: summary: Modify Repository Content tags: - "Repositories: Ansible" + '{ansible_ansible_repository_href}move_collection_version/': + post: + description: Trigger an asynchronous task to move collection versions. + operationId: repositories_ansible_ansible_move_collection_version + parameters: + - explode: false + in: path + name: ansible_ansible_repository_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CollectionVersionCopyMove' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/CollectionVersionCopyMove' + multipart/form-data: + schema: + $ref: '#/components/schemas/CollectionVersionCopyMove' + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncOperationResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Repositories: Ansible" + '{ansible_ansible_repository_href}my_permissions/': + get: + description: List permissions available to the current user on this object. + operationId: repositories_ansible_ansible_my_permissions + parameters: + - explode: false + in: path + name: ansible_ansible_repository_href + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MyPermissionsResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Repositories: Ansible" '{ansible_ansible_repository_href}rebuild_metadata/': post: description: Trigger an asynchronous task to rebuild Ansible content meta. @@ -26853,6 +28447,42 @@ paths: - basicAuth: [] tags: - "Repositories: Ansible" + '{ansible_ansible_repository_href}remove_role/': + post: + description: Remove a role for this object from users/groups. + operationId: repositories_ansible_ansible_remove_role + parameters: + - explode: false + in: path + name: ansible_ansible_repository_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRole' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/NestedRole' + multipart/form-data: + schema: + $ref: '#/components/schemas/NestedRole' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/NestedRoleResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Repositories: Ansible" '{ansible_ansible_repository_href}sign/': post: description: Trigger an asynchronous task to sign Ansible content. @@ -26925,6 +28555,42 @@ paths: - basicAuth: [] tags: - "Repositories: Ansible" + '{ansible_ansible_repository_href}unmark/': + post: + description: Trigger an asynchronous task to unmark Ansible content. + operationId: repositories_ansible_ansible_unmark + parameters: + - explode: false + in: path + name: ansible_ansible_repository_href + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AnsibleRepositoryMark' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/AnsibleRepositoryMark' + multipart/form-data: + schema: + $ref: '#/components/schemas/AnsibleRepositoryMark' + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncOperationResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Repositories: Ansible" '{ansible_ansible_repository_href}versions/': get: description: AnsibleRepositoryVersion represents a single file repository version. @@ -38330,7 +39996,7 @@ paths: '{ansible_role_href}versions/': get: description: APIView for Role Versions. - operationId: versions_get + operationId: api_v1_roles_versions_list parameters: - explode: false in: path @@ -38522,7 +40188,7 @@ paths: '{ansible_collection_version_href}versions/': get: description: APIView for Collections by namespace/name. - operationId: collection_versions_get + operationId: api_v2_collection_versions_list parameters: - explode: false in: path @@ -39547,10 +41213,272 @@ paths: - basicAuth: [] tags: - "Pulp_Ansible: Api V3 Collections All" + /pulp_ansible/galaxy/{path}/api/v3/namespaces/: + get: + deprecated: true + description: Legacy v3 endpoint. + operationId: pulp_ansible_galaxy_api_v3_namespaces_list + parameters: + - description: Filter results where company matches value + explode: true + in: query + name: company + required: false + schema: + type: string + style: form + - description: Filter results where company contains value + explode: true + in: query + name: company__contains + required: false + schema: + type: string + style: form + - description: Filter results where company contains value + explode: true + in: query + name: company__icontains + required: false + schema: + type: string + style: form + - description: Filter results where company is in a comma-separated list of + values + explode: false + in: query + name: company__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter results where company starts with value + explode: true + in: query + name: company__startswith + required: false + schema: + type: string + style: form + - description: Number of results to return per page. + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + - description: Filter results where metadata_sha256 matches value + explode: true + in: query + name: metadata_sha256 + required: false + schema: + type: string + style: form + - description: Filter results where metadata_sha256 is in a comma-separated + list of values + explode: false + in: query + name: metadata_sha256__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter results where name matches value + explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: Filter results where name contains value + explode: true + in: query + name: name__contains + required: false + schema: + type: string + style: form + - description: Filter results where name contains value + explode: true + in: query + name: name__icontains + required: false + schema: + type: string + style: form + - description: Filter results where name is in a comma-separated list of values + explode: false + in: query + name: name__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter results where name starts with value + explode: true + in: query + name: name__startswith + required: false + schema: + type: string + style: form + - description: The initial index from which to return the results. + explode: true + in: query + name: offset + required: false + schema: + type: integer + style: form + - description: Ordering + explode: false + in: query + name: ordering + required: false + schema: + items: + enum: + - -avatar_sha256 + - -company + - -description + - -email + - -links + - -metadata_sha256 + - -name + - -pk + - -pulp_created + - -pulp_id + - -pulp_last_updated + - -pulp_type + - -resources + - -timestamp_of_interest + - -upstream_id + - avatar_sha256 + - company + - description + - email + - links + - metadata_sha256 + - name + - pk + - pulp_created + - pulp_id + - pulp_last_updated + - pulp_type + - resources + - timestamp_of_interest + - upstream_id + type: string + type: array + style: form + - explode: false + in: path + name: path + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "302": + description: No response body + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/Paginatedansible.AnsibleNamespaceMetadataResponseList' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Api V3 Namespaces" + /pulp_ansible/galaxy/{path}/api/v3/namespaces/{name}/: + get: + deprecated: true + description: Legacy v3 endpoint. + operationId: pulp_ansible_galaxy_api_v3_namespaces_read + parameters: + - explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: path + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "302": + description: No response body + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/ansible.AnsibleNamespaceMetadataResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Api V3 Namespaces" /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/client-configuration/: get: - description: Get the client configs. - operationId: pulp_ansible_galaxy_api_v3_plugin_ansible_client_configuration_get + description: Return configurations for the ansible-galaxy client. + operationId: pulp_ansible_galaxy_api_v3_plugin_ansible_client_configuration_read parameters: - explode: false in: path @@ -40490,39 +42418,715 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CollectionVersionResponse' + $ref: '#/components/schemas/CollectionVersionResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Api V3 Plugin Ansible Content Collections Index Versions" + ? /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/{version}/docs-blob/ + : get: + description: Returns a CollectionVersion object. + operationId: pulp_ansible_galaxy_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_read + parameters: + - explode: false + in: path + name: distro_base_path + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: namespace + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: path + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: version + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CollectionVersionDocsResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Api V3 Plugin Ansible Content Collections Index Versions Docs-Blob" + /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/: + get: + description: Custom exception handler mixin class. + operationId: pulp_ansible_galaxy_api_v3_plugin_ansible_content_namespaces_list + parameters: + - description: Filter results where company matches value + explode: true + in: query + name: company + required: false + schema: + type: string + style: form + - description: Filter results where company contains value + explode: true + in: query + name: company__contains + required: false + schema: + type: string + style: form + - description: Filter results where company contains value + explode: true + in: query + name: company__icontains + required: false + schema: + type: string + style: form + - description: Filter results where company is in a comma-separated list of + values + explode: false + in: query + name: company__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter results where company starts with value + explode: true + in: query + name: company__startswith + required: false + schema: + type: string + style: form + - explode: false + in: path + name: distro_base_path + required: true + schema: + type: string + style: simple + - description: Number of results to return per page. + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + - description: Filter results where metadata_sha256 matches value + explode: true + in: query + name: metadata_sha256 + required: false + schema: + type: string + style: form + - description: Filter results where metadata_sha256 is in a comma-separated + list of values + explode: false + in: query + name: metadata_sha256__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter results where name matches value + explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: Filter results where name contains value + explode: true + in: query + name: name__contains + required: false + schema: + type: string + style: form + - description: Filter results where name contains value + explode: true + in: query + name: name__icontains + required: false + schema: + type: string + style: form + - description: Filter results where name is in a comma-separated list of values + explode: false + in: query + name: name__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter results where name starts with value + explode: true + in: query + name: name__startswith + required: false + schema: + type: string + style: form + - description: The initial index from which to return the results. + explode: true + in: query + name: offset + required: false + schema: + type: integer + style: form + - description: Ordering + explode: false + in: query + name: ordering + required: false + schema: + items: + enum: + - -avatar_sha256 + - -company + - -description + - -email + - -links + - -metadata_sha256 + - -name + - -pk + - -pulp_created + - -pulp_id + - -pulp_last_updated + - -pulp_type + - -resources + - -timestamp_of_interest + - -upstream_id + - avatar_sha256 + - company + - description + - email + - links + - metadata_sha256 + - name + - pk + - pulp_created + - pulp_id + - pulp_last_updated + - pulp_type + - resources + - timestamp_of_interest + - upstream_id + type: string + type: array + style: form + - explode: false + in: path + name: path + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Paginatedansible.AnsibleNamespaceMetadataResponseList' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Api V3 Plugin Ansible Content Namespaces" + post: + description: Custom exception handler mixin class. + operationId: pulp_ansible_galaxy_api_v3_plugin_ansible_content_namespaces_create + parameters: + - explode: false + in: path + name: distro_base_path + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: path + required: true + schema: + type: string + style: simple + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/ansible.AnsibleNamespaceMetadata' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ansible.AnsibleNamespaceMetadata' + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncOperationResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Api V3 Plugin Ansible Content Namespaces" + /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/: + delete: + description: Try to remove the Namespace if no Collections under Namespace are + present. + operationId: pulp_ansible_galaxy_api_v3_plugin_ansible_content_namespaces_delete + parameters: + - explode: false + in: path + name: distro_base_path + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: path + required: true + schema: + type: string + style: simple + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncOperationResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Api V3 Plugin Ansible Content Namespaces" + get: + description: Custom exception handler mixin class. + operationId: pulp_ansible_galaxy_api_v3_plugin_ansible_content_namespaces_read + parameters: + - explode: false + in: path + name: distro_base_path + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: path + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ansible.AnsibleNamespaceMetadataResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Api V3 Plugin Ansible Content Namespaces" + patch: + description: Custom exception handler mixin class. + operationId: pulp_ansible_galaxy_api_v3_plugin_ansible_content_namespaces_partial_update + parameters: + - explode: false + in: path + name: distro_base_path + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: path + required: true + schema: + type: string + style: simple + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/Patchedansible.AnsibleNamespaceMetadata' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Patchedansible.AnsibleNamespaceMetadata' + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncOperationResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Api V3 Plugin Ansible Content Namespaces" + /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/search/collection-versions/: + get: + description: A viewset for cross-repo searches. + operationId: pulp_ansible_galaxy_api_v3_plugin_ansible_search_collection_versions_list + parameters: + - explode: true + in: query + name: dependency + required: false + schema: + type: string + style: form + - explode: true + in: query + name: deprecated + required: false + schema: + type: boolean + style: form + - description: Filter collectionversions that are in these distrubtion ids. + explode: true + in: query + name: distribution + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter collectionversions that are in these base paths. + explode: true + in: query + name: distribution_base_path + required: false + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: highest + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: is_deprecated + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: is_highest + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: is_signed + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: keywords + required: false + schema: + type: string + style: form + - description: Number of results to return per page. + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: namespace + required: false + schema: + type: string + style: form + - description: The initial index from which to return the results. + explode: true + in: query + name: offset + required: false + schema: + type: integer + style: form + - description: Ordering + explode: false + in: query + name: order_by + required: false + schema: + items: + enum: + - -name + - -namespace + - -pulp_created + - -version + - name + - namespace + - pulp_created + - version + type: string + type: array + style: form + - explode: false + in: path + name: path + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: q + required: false + schema: + type: string + style: form + - description: Filter collectionversions that are in these repository ids. + explode: true + in: query + name: repository + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter labels by search string + explode: true + in: query + name: repository_label + required: false + schema: + type: string + style: form + - description: Filter collectionversions that are in these repositories. + explode: true + in: query + name: repository_name + required: false + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: repository_version + required: false + schema: + type: string + style: form + - explode: true + in: query + name: signed + required: false + schema: + type: boolean + style: form + - description: Filter by comma separate list of tags that must all be matched + explode: true + in: query + name: tags + required: false + schema: + type: string + style: form + - explode: true + in: query + name: version + required: false + schema: + type: string + style: form + - explode: true + in: query + name: version_range + required: false + schema: + type: string + style: form + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedCollectionVersionSearchListResponseList' description: "" security: - cookieAuth: [] - basicAuth: [] tags: - - "Pulp_Ansible: Api V3 Plugin Ansible Content Collections Index Versions" - ? /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/{version}/docs-blob/ - : get: - description: Returns a CollectionVersion object. - operationId: pulp_ansible_galaxy_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_read + - "Pulp_Ansible: Api V3 Plugin Ansible Search Collection-Versions" + post: + description: A viewset for cross-repo searches. + operationId: pulp_ansible_galaxy_api_v3_plugin_ansible_search_collection_versions_rebuild parameters: - - explode: false - in: path - name: distro_base_path - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: name - required: true - schema: - type: string - style: simple - - explode: false - in: path - name: namespace - required: true - schema: - type: string - style: simple - explode: false in: path name: path @@ -40530,45 +43134,30 @@ paths: schema: type: string style: simple - - explode: false - in: path - name: version + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CollectionVersionSearchList' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/CollectionVersionSearchList' + multipart/form-data: + schema: + $ref: '#/components/schemas/CollectionVersionSearchList' required: true - schema: - type: string - style: simple - - description: A list of fields to include in the response. - explode: true - in: query - name: fields - required: false - schema: - items: - type: string - type: array - style: form - - description: A list of fields to exclude from the response. - explode: true - in: query - name: exclude_fields - required: false - schema: - items: - type: string - type: array - style: form responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/CollectionVersionDocsResponse' + $ref: '#/components/schemas/CollectionVersionSearchListResponse' description: "" security: - cookieAuth: [] - basicAuth: [] tags: - - "Pulp_Ansible: Api V3 Plugin Ansible Content Collections Index Versions Docs-Blob" + - "Pulp_Ansible: Api V3 Plugin Ansible Search Collection-Versions" /pulp_ansible/galaxy/default/api/: get: description: Return a response to the "GET" action. @@ -41372,10 +43961,258 @@ paths: - basicAuth: [] tags: - "Pulp_Ansible: Default Api V3 Collections All" + /pulp_ansible/galaxy/default/api/v3/namespaces/: + get: + deprecated: true + description: Legacy v3 endpoint. + operationId: pulp_ansible_galaxy_default_api_v3_namespaces_list + parameters: + - description: Filter results where company matches value + explode: true + in: query + name: company + required: false + schema: + type: string + style: form + - description: Filter results where company contains value + explode: true + in: query + name: company__contains + required: false + schema: + type: string + style: form + - description: Filter results where company contains value + explode: true + in: query + name: company__icontains + required: false + schema: + type: string + style: form + - description: Filter results where company is in a comma-separated list of + values + explode: false + in: query + name: company__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter results where company starts with value + explode: true + in: query + name: company__startswith + required: false + schema: + type: string + style: form + - description: Number of results to return per page. + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + - description: Filter results where metadata_sha256 matches value + explode: true + in: query + name: metadata_sha256 + required: false + schema: + type: string + style: form + - description: Filter results where metadata_sha256 is in a comma-separated + list of values + explode: false + in: query + name: metadata_sha256__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter results where name matches value + explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: Filter results where name contains value + explode: true + in: query + name: name__contains + required: false + schema: + type: string + style: form + - description: Filter results where name contains value + explode: true + in: query + name: name__icontains + required: false + schema: + type: string + style: form + - description: Filter results where name is in a comma-separated list of values + explode: false + in: query + name: name__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter results where name starts with value + explode: true + in: query + name: name__startswith + required: false + schema: + type: string + style: form + - description: The initial index from which to return the results. + explode: true + in: query + name: offset + required: false + schema: + type: integer + style: form + - description: Ordering + explode: false + in: query + name: ordering + required: false + schema: + items: + enum: + - -avatar_sha256 + - -company + - -description + - -email + - -links + - -metadata_sha256 + - -name + - -pk + - -pulp_created + - -pulp_id + - -pulp_last_updated + - -pulp_type + - -resources + - -timestamp_of_interest + - -upstream_id + - avatar_sha256 + - company + - description + - email + - links + - metadata_sha256 + - name + - pk + - pulp_created + - pulp_id + - pulp_last_updated + - pulp_type + - resources + - timestamp_of_interest + - upstream_id + type: string + type: array + style: form + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "302": + description: No response body + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/Paginatedansible.AnsibleNamespaceMetadataResponseList' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Default Api V3 Namespaces" + /pulp_ansible/galaxy/default/api/v3/namespaces/{name}/: + get: + deprecated: true + description: Legacy v3 endpoint. + operationId: pulp_ansible_galaxy_default_api_v3_namespaces_read + parameters: + - explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "302": + description: No response body + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/ansible.AnsibleNamespaceMetadataResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Default Api V3 Namespaces" /pulp_ansible/galaxy/default/api/v3/plugin/ansible/client-configuration/: get: - description: Get the client configs. - operationId: pulp_ansible_galaxy_default_api_v3_plugin_ansible_client_configuration_get + description: Return configurations for the ansible-galaxy client. + operationId: pulp_ansible_galaxy_default_api_v3_plugin_ansible_client_configuration_read responses: "200": content: @@ -42203,17 +45040,401 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CollectionVersionResponse' + $ref: '#/components/schemas/CollectionVersionResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Default Api V3 Plugin Ansible Content Collections Index Versions" + ? /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/{version}/docs-blob/ + : get: + description: Returns a CollectionVersion object. + operationId: pulp_ansible_galaxy_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_read + parameters: + - explode: false + in: path + name: distro_base_path + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: namespace + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: version + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CollectionVersionDocsResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Default Api V3 Plugin Ansible Content Collections Index Versions\ + \ Docs-Blob" + /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/: + get: + description: Custom exception handler mixin class. + operationId: pulp_ansible_galaxy_default_api_v3_plugin_ansible_content_namespaces_list + parameters: + - description: Filter results where company matches value + explode: true + in: query + name: company + required: false + schema: + type: string + style: form + - description: Filter results where company contains value + explode: true + in: query + name: company__contains + required: false + schema: + type: string + style: form + - description: Filter results where company contains value + explode: true + in: query + name: company__icontains + required: false + schema: + type: string + style: form + - description: Filter results where company is in a comma-separated list of + values + explode: false + in: query + name: company__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter results where company starts with value + explode: true + in: query + name: company__startswith + required: false + schema: + type: string + style: form + - explode: false + in: path + name: distro_base_path + required: true + schema: + type: string + style: simple + - description: Number of results to return per page. + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + - description: Filter results where metadata_sha256 matches value + explode: true + in: query + name: metadata_sha256 + required: false + schema: + type: string + style: form + - description: Filter results where metadata_sha256 is in a comma-separated + list of values + explode: false + in: query + name: metadata_sha256__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter results where name matches value + explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: Filter results where name contains value + explode: true + in: query + name: name__contains + required: false + schema: + type: string + style: form + - description: Filter results where name contains value + explode: true + in: query + name: name__icontains + required: false + schema: + type: string + style: form + - description: Filter results where name is in a comma-separated list of values + explode: false + in: query + name: name__in + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter results where name starts with value + explode: true + in: query + name: name__startswith + required: false + schema: + type: string + style: form + - description: The initial index from which to return the results. + explode: true + in: query + name: offset + required: false + schema: + type: integer + style: form + - description: Ordering + explode: false + in: query + name: ordering + required: false + schema: + items: + enum: + - -avatar_sha256 + - -company + - -description + - -email + - -links + - -metadata_sha256 + - -name + - -pk + - -pulp_created + - -pulp_id + - -pulp_last_updated + - -pulp_type + - -resources + - -timestamp_of_interest + - -upstream_id + - avatar_sha256 + - company + - description + - email + - links + - metadata_sha256 + - name + - pk + - pulp_created + - pulp_id + - pulp_last_updated + - pulp_type + - resources + - timestamp_of_interest + - upstream_id + type: string + type: array + style: form + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Paginatedansible.AnsibleNamespaceMetadataResponseList' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Default Api V3 Plugin Ansible Content Namespaces" + post: + description: Custom exception handler mixin class. + operationId: pulp_ansible_galaxy_default_api_v3_plugin_ansible_content_namespaces_create + parameters: + - explode: false + in: path + name: distro_base_path + required: true + schema: + type: string + style: simple + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/ansible.AnsibleNamespaceMetadata' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ansible.AnsibleNamespaceMetadata' + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncOperationResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Default Api V3 Plugin Ansible Content Namespaces" + /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/: + delete: + description: Try to remove the Namespace if no Collections under Namespace are + present. + operationId: pulp_ansible_galaxy_default_api_v3_plugin_ansible_content_namespaces_delete + parameters: + - explode: false + in: path + name: distro_base_path + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncOperationResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Default Api V3 Plugin Ansible Content Namespaces" + get: + description: Custom exception handler mixin class. + operationId: pulp_ansible_galaxy_default_api_v3_plugin_ansible_content_namespaces_read + parameters: + - explode: false + in: path + name: distro_base_path + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + - description: A list of fields to include in the response. + explode: true + in: query + name: fields + required: false + schema: + items: + type: string + type: array + style: form + - description: A list of fields to exclude from the response. + explode: true + in: query + name: exclude_fields + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ansible.AnsibleNamespaceMetadataResponse' description: "" security: - cookieAuth: [] - basicAuth: [] tags: - - "Pulp_Ansible: Default Api V3 Plugin Ansible Content Collections Index Versions" - ? /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/{version}/docs-blob/ - : get: - description: Returns a CollectionVersion object. - operationId: pulp_ansible_galaxy_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_read + - "Pulp_Ansible: Default Api V3 Plugin Ansible Content Namespaces" + patch: + description: Custom exception handler mixin class. + operationId: pulp_ansible_galaxy_default_api_v3_plugin_ansible_content_namespaces_partial_update parameters: - explode: false in: path @@ -42229,20 +45450,221 @@ paths: schema: type: string style: simple - - explode: false - in: path - name: namespace + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/Patchedansible.AnsibleNamespaceMetadata' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/Patchedansible.AnsibleNamespaceMetadata' required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncOperationResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Default Api V3 Plugin Ansible Content Namespaces" + /pulp_ansible/galaxy/default/api/v3/plugin/ansible/search/collection-versions/: + get: + description: A viewset for cross-repo searches. + operationId: pulp_ansible_galaxy_default_api_v3_plugin_ansible_search_collection_versions_list + parameters: + - explode: true + in: query + name: dependency + required: false schema: type: string - style: simple - - explode: false - in: path + style: form + - explode: true + in: query + name: deprecated + required: false + schema: + type: boolean + style: form + - description: Filter collectionversions that are in these distrubtion ids. + explode: true + in: query + name: distribution + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter collectionversions that are in these base paths. + explode: true + in: query + name: distribution_base_path + required: false + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: highest + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: is_deprecated + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: is_highest + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: is_signed + required: false + schema: + type: boolean + style: form + - explode: true + in: query + name: keywords + required: false + schema: + type: string + style: form + - description: Number of results to return per page. + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - explode: true + in: query + name: namespace + required: false + schema: + type: string + style: form + - description: The initial index from which to return the results. + explode: true + in: query + name: offset + required: false + schema: + type: integer + style: form + - description: Ordering + explode: false + in: query + name: order_by + required: false + schema: + items: + enum: + - -name + - -namespace + - -pulp_created + - -version + - name + - namespace + - pulp_created + - version + type: string + type: array + style: form + - explode: true + in: query + name: q + required: false + schema: + type: string + style: form + - description: Filter collectionversions that are in these repository ids. + explode: true + in: query + name: repository + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter labels by search string + explode: true + in: query + name: repository_label + required: false + schema: + type: string + style: form + - description: Filter collectionversions that are in these repositories. + explode: true + in: query + name: repository_name + required: false + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: repository_version + required: false + schema: + type: string + style: form + - explode: true + in: query + name: signed + required: false + schema: + type: boolean + style: form + - description: Filter by comma separate list of tags that must all be matched + explode: true + in: query + name: tags + required: false + schema: + type: string + style: form + - explode: true + in: query name: version - required: true + required: false schema: type: string - style: simple + style: form + - explode: true + in: query + name: version_range + required: false + schema: + type: string + style: form - description: A list of fields to include in the response. explode: true in: query @@ -42268,14 +45690,40 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CollectionVersionDocsResponse' + $ref: '#/components/schemas/PaginatedCollectionVersionSearchListResponseList' description: "" security: - cookieAuth: [] - basicAuth: [] tags: - - "Pulp_Ansible: Default Api V3 Plugin Ansible Content Collections Index Versions\ - \ Docs-Blob" + - "Pulp_Ansible: Default Api V3 Plugin Ansible Search Collection-Versions" + post: + description: A viewset for cross-repo searches. + operationId: pulp_ansible_galaxy_default_api_v3_plugin_ansible_search_collection_versions_rebuild + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CollectionVersionSearchList' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/CollectionVersionSearchList' + multipart/form-data: + schema: + $ref: '#/components/schemas/CollectionVersionSearchList' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/CollectionVersionSearchListResponse' + description: "" + security: + - cookieAuth: [] + - basicAuth: [] + tags: + - "Pulp_Ansible: Default Api V3 Plugin Ansible Search Collection-Versions" /pypi/{path}/: get: description: Gets package summary stats of index. @@ -42674,6 +46122,28 @@ components: - type - uid type: object + AnsibleRepositoryMark: + description: A serializer for the mark action. + example: + content_units: + - "" + - "" + value: value + properties: + content_units: + description: "List of collection version hrefs to mark, use * to mark all\ + \ content in repository" + items: {} + type: array + value: + description: The string value of this mark. + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + type: string + required: + - content_units + - value + type: object AnsibleRepositoryRebuild: description: Serializer for Ansible Repository Rebuild. example: @@ -42823,15 +46293,10 @@ components: key: pulp_labels name: name base_url: base_url - pulp_created: 2000-01-23T04:56:07.000+00:00 base_path: base_path + pulp_created: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech properties: - pulp_created: - description: Timestamp of creation. - format: date-time - readOnly: true - type: string pulp_href: format: uri readOnly: true @@ -42839,25 +46304,30 @@ components: name: description: "A unique name. Ex, `rawhide` and `stable`." type: string - base_url: - description: The URL for accessing the publication as defined by this distribution. - readOnly: true - type: string - base_path: - description: The base (relative) path component of the published url. Avoid - paths that overlap with other distribution base paths - (e.g. "foo" and "foo/bar") - type: string pulp_labels: additionalProperties: nullable: true type: string type: object + base_url: + description: The URL for accessing the publication as defined by this distribution. + readOnly: true + type: string content_guard: description: An optional content-guard. format: uri nullable: true type: string + base_path: + description: The base (relative) path component of the published url. Avoid + paths that overlap with other distribution base paths + (e.g. "foo" and "foo/bar") + type: string + pulp_created: + description: Timestamp of creation. + format: date-time + readOnly: true + type: string required: - base_path - name @@ -43086,6 +46556,9 @@ components: properties: name: type: string + metadata_sha256: + readOnly: true + type: string required: - name type: object @@ -43171,6 +46644,111 @@ components: readOnly: true type: string type: object + CollectionSummary: + description: Collection Version serializer without docs blob. + properties: {} + type: object + CollectionSummaryResponse: + description: Collection Version serializer without docs blob. + example: + pulp_href: https://openapi-generator.tech + contents: "{}" + requires_ansible: requires_ansible + namespace: namespace + name: name + description: description + pulp_created: 2000-01-23T04:56:07.000+00:00 + version: version + dependencies: "{}" + tags: + - name: name + - name: name + properties: + pulp_href: + format: uri + readOnly: true + type: string + namespace: + description: The namespace of the collection. + maxLength: 64 + readOnly: true + type: string + name: + description: The name of the collection. + maxLength: 64 + readOnly: true + type: string + version: + description: The version of the collection. + maxLength: 128 + readOnly: true + type: string + requires_ansible: + description: The version of Ansible required to use the collection. Multiple + versions can be separated with a comma. + maxLength: 255 + nullable: true + readOnly: true + type: string + pulp_created: + description: Timestamp of creation. + format: date-time + readOnly: true + type: string + contents: + description: A JSON field with data about the contents. + readOnly: true + type: object + dependencies: + description: A dict declaring Collections that this collection requires + to be installed for it to be usable. + readOnly: true + type: object + description: + description: A short summary description of the collection. + readOnly: true + type: string + tags: + items: + $ref: '#/components/schemas/ansible.TagResponse' + readOnly: true + type: array + type: object + CollectionVersionCopyMove: + description: |- + Copy or move collections from a source repository into one or more destinations. + + This will carry associated content like Signatures and Marks along. + example: + signing_service: https://openapi-generator.tech + collection_versions: + - https://openapi-generator.tech + - https://openapi-generator.tech + destination_repositories: + - https://openapi-generator.tech + - https://openapi-generator.tech + properties: + collection_versions: + description: A list of collection versions to move or copy. + items: + format: uri + type: string + type: array + destination_repositories: + description: List of repository HREFs to put content in. + items: + format: uri + type: string + type: array + signing_service: + description: HREF for a signing service. This will be used to sign the collection + before moving putting it in any new repositories. + format: uri + type: string + required: + - collection_versions + - destination_repositories + type: object CollectionVersionDocsResponse: description: A serializer to display the docs_blob of a CollectionVersion. example: @@ -43188,6 +46766,9 @@ components: requires_ansible: requires_ansible created_at: 2000-01-23T04:56:07.000+00:00 href: href + marks: + - marks + - marks version: version properties: version: @@ -43206,6 +46787,11 @@ components: maxLength: 255 nullable: true type: string + marks: + items: + type: string + readOnly: true + type: array required: - created_at - updated_at @@ -43217,6 +46803,9 @@ components: manifest: "{}" requires_ansible: requires_ansible created_at: 2000-01-23T04:56:07.000+00:00 + marks: + - marks + - marks collection: "" version: version signatures: signatures @@ -43246,6 +46835,11 @@ components: maxLength: 255 nullable: true type: string + marks: + items: + type: string + readOnly: true + type: array artifact: allOf: - $ref: '#/components/schemas/ArtifactRefResponse' @@ -43289,6 +46883,104 @@ components: - created_at - updated_at type: object + CollectionVersionSearchList: + description: Cross-repo search results. + example: + is_highest: true + is_deprecated: true + namespace_metadata: "" + repository: + pulp_labels: + key: pulp_labels + name: name + description: description + retain_repo_versions: 1 + remote: https://openapi-generator.tech + collection_version: "{}" + is_signed: true + properties: + repository: + $ref: '#/components/schemas/Repository' + collection_version: + description: Collection Version serializer without docs blob. + properties: {} + type: object + namespace_metadata: + allOf: + - $ref: '#/components/schemas/ansible.AnsibleNamespaceMetadata' + nullable: true + is_highest: + type: boolean + is_deprecated: + type: boolean + is_signed: + type: boolean + required: + - collection_version + - is_deprecated + - is_highest + - is_signed + - namespace_metadata + - repository + type: object + CollectionVersionSearchListResponse: + description: Cross-repo search results. + example: + is_highest: true + is_deprecated: true + namespace_metadata: "" + repository_version: repository_version + repository: + latest_version_href: https://openapi-generator.tech + pulp_href: https://openapi-generator.tech + versions_href: https://openapi-generator.tech + pulp_labels: + key: pulp_labels + name: name + description: description + pulp_created: 2000-01-23T04:56:07.000+00:00 + retain_repo_versions: 1 + remote: https://openapi-generator.tech + collection_version: + pulp_href: https://openapi-generator.tech + contents: "{}" + requires_ansible: requires_ansible + namespace: namespace + name: name + description: description + pulp_created: 2000-01-23T04:56:07.000+00:00 + version: version + dependencies: "{}" + tags: + - name: name + - name: name + is_signed: true + properties: + repository: + $ref: '#/components/schemas/RepositoryResponse' + collection_version: + $ref: '#/components/schemas/CollectionSummaryResponse' + repository_version: + readOnly: true + type: string + namespace_metadata: + allOf: + - $ref: '#/components/schemas/ansible.AnsibleNamespaceMetadataResponse' + nullable: true + is_highest: + type: boolean + is_deprecated: + type: boolean + is_signed: + type: boolean + required: + - collection_version + - is_deprecated + - is_highest + - is_signed + - namespace_metadata + - repository + type: object CompsXml: description: A serializer for comps.xml Upload API. properties: @@ -44349,6 +48041,43 @@ components: required: - permissions type: object + NamespaceLink: + description: |- + Provides backwards compatible interface for links with the legacy + GalaxyNG API. + properties: + url: + format: uri + maxLength: 256 + minLength: 1 + type: string + name: + maxLength: 256 + minLength: 1 + type: string + required: + - name + - url + type: object + NamespaceLinkResponse: + description: |- + Provides backwards compatible interface for links with the legacy + GalaxyNG API. + example: + name: name + url: https://openapi-generator.tech + properties: + url: + format: uri + maxLength: 256 + type: string + name: + maxLength: 256 + type: string + required: + - name + - url + type: object NestedRole: description: |- Serializer to add/remove object roles to/from users/groups. @@ -44689,16 +48418,16 @@ components: key: pulp_labels name: name base_url: base_url - pulp_created: 2000-01-23T04:56:07.000+00:00 base_path: base_path + pulp_created: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech - pulp_href: https://openapi-generator.tech pulp_labels: key: pulp_labels name: name base_url: base_url - pulp_created: 2000-01-23T04:56:07.000+00:00 base_path: base_path + pulp_created: 2000-01-23T04:56:07.000+00:00 content_guard: https://openapi-generator.tech properties: count: @@ -44807,11 +48536,17 @@ components: requires_ansible: requires_ansible created_at: 2000-01-23T04:56:07.000+00:00 href: href + marks: + - marks + - marks version: version - updated_at: 2000-01-23T04:56:07.000+00:00 requires_ansible: requires_ansible created_at: 2000-01-23T04:56:07.000+00:00 href: href + marks: + - marks + - marks version: version meta: count: 123 @@ -44830,6 +48565,84 @@ components: $ref: '#/components/schemas/CollectionVersionListResponse' type: array type: object + PaginatedCollectionVersionSearchListResponseList: + example: + data: + - is_highest: true + is_deprecated: true + namespace_metadata: "" + repository_version: repository_version + repository: + latest_version_href: https://openapi-generator.tech + pulp_href: https://openapi-generator.tech + versions_href: https://openapi-generator.tech + pulp_labels: + key: pulp_labels + name: name + description: description + pulp_created: 2000-01-23T04:56:07.000+00:00 + retain_repo_versions: 1 + remote: https://openapi-generator.tech + collection_version: + pulp_href: https://openapi-generator.tech + contents: "{}" + requires_ansible: requires_ansible + namespace: namespace + name: name + description: description + pulp_created: 2000-01-23T04:56:07.000+00:00 + version: version + dependencies: "{}" + tags: + - name: name + - name: name + is_signed: true + - is_highest: true + is_deprecated: true + namespace_metadata: "" + repository_version: repository_version + repository: + latest_version_href: https://openapi-generator.tech + pulp_href: https://openapi-generator.tech + versions_href: https://openapi-generator.tech + pulp_labels: + key: pulp_labels + name: name + description: description + pulp_created: 2000-01-23T04:56:07.000+00:00 + retain_repo_versions: 1 + remote: https://openapi-generator.tech + collection_version: + pulp_href: https://openapi-generator.tech + contents: "{}" + requires_ansible: requires_ansible + namespace: namespace + name: name + description: description + pulp_created: 2000-01-23T04:56:07.000+00:00 + version: version + dependencies: "{}" + tags: + - name: name + - name: name + is_signed: true + meta: + count: 123 + links: + next: next + previous: previous + last: last + first: first + properties: + meta: + $ref: '#/components/schemas/PaginatedCollectionResponseList_meta' + links: + $ref: '#/components/schemas/PaginatedCollectionResponseList_links' + data: + items: + $ref: '#/components/schemas/CollectionVersionSearchListResponse' + type: array + type: object PaginatedContentGuardResponseList: example: next: http://api.example.org/accounts/?offset=400&limit=100 @@ -46371,35 +50184,92 @@ components: $ref: '#/components/schemas/ansible.AnsibleDistributionResponse' type: array type: object + Paginatedansible.AnsibleNamespaceMetadataResponseList: + example: + next: http://api.example.org/accounts/?offset=400&limit=100 + previous: http://api.example.org/accounts/?offset=200&limit=100 + count: 123 + results: + - avatar_sha256: avatar_sha256 + pulp_href: https://openapi-generator.tech + avatar_url: avatar_url + name: name + description: description + resources: resources + company: company + links: + - name: name + url: https://openapi-generator.tech + - name: name + url: https://openapi-generator.tech + metadata_sha256: metadata_sha256 + email: email + - avatar_sha256: avatar_sha256 + pulp_href: https://openapi-generator.tech + avatar_url: avatar_url + name: name + description: description + resources: resources + company: company + links: + - name: name + url: https://openapi-generator.tech + - name: name + url: https://openapi-generator.tech + metadata_sha256: metadata_sha256 + email: email + properties: + count: + example: 123 + type: integer + next: + example: http://api.example.org/accounts/?offset=400&limit=100 + format: uri + nullable: true + type: string + previous: + example: http://api.example.org/accounts/?offset=200&limit=100 + format: uri + nullable: true + type: string + results: + items: + $ref: '#/components/schemas/ansible.AnsibleNamespaceMetadataResponse' + type: array + type: object Paginatedansible.AnsibleRepositoryResponseList: example: next: http://api.example.org/accounts/?offset=400&limit=100 previous: http://api.example.org/accounts/?offset=200&limit=100 count: 123 results: - - latest_version_href: https://openapi-generator.tech - last_synced_metadata_time: 2000-01-23T04:56:07.000+00:00 + - last_sync_task: "" + private: true pulp_href: https://openapi-generator.tech + description: description + remote: https://openapi-generator.tech + latest_version_href: https://openapi-generator.tech + last_synced_metadata_time: 2000-01-23T04:56:07.000+00:00 versions_href: https://openapi-generator.tech pulp_labels: key: pulp_labels name: name - description: description pulp_created: 2000-01-23T04:56:07.000+00:00 retain_repo_versions: 1 - remote: https://openapi-generator.tech gpgkey: gpgkey - - latest_version_href: https://openapi-generator.tech - last_synced_metadata_time: 2000-01-23T04:56:07.000+00:00 + - last_sync_task: "" + private: true pulp_href: https://openapi-generator.tech + description: description + remote: https://openapi-generator.tech + latest_version_href: https://openapi-generator.tech + last_synced_metadata_time: 2000-01-23T04:56:07.000+00:00 versions_href: https://openapi-generator.tech pulp_labels: key: pulp_labels name: name - description: description pulp_created: 2000-01-23T04:56:07.000+00:00 retain_repo_versions: 1 - remote: https://openapi-generator.tech gpgkey: gpgkey properties: count: @@ -46426,7 +50296,14 @@ components: previous: http://api.example.org/accounts/?offset=200&limit=100 count: 123 results: - - headers: + - connect_timeout: 0.5962133916683182 + client_cert: client_cert + sock_read_timeout: 0.23021358869347652 + ca_cert: ca_cert + total_timeout: 0.14658129805029452 + policy: "" + last_sync_task: "" + headers: - "{}" - "{}" signed_only: false @@ -46434,10 +50311,7 @@ components: pulp_href: https://openapi-generator.tech tls_validation: true max_retries: 6 - connect_timeout: 0.5962133916683182 - client_cert: client_cert pulp_last_updated: 2000-01-23T04:56:07.000+00:00 - sock_read_timeout: 0.23021358869347652 url: url download_concurrency: 1 pulp_labels: @@ -46453,11 +50327,15 @@ components: name: name proxy_url: proxy_url auth_url: auth_url + sync_dependencies: true + - connect_timeout: 0.5962133916683182 + client_cert: client_cert + sock_read_timeout: 0.23021358869347652 ca_cert: ca_cert total_timeout: 0.14658129805029452 - sync_dependencies: true policy: "" - - headers: + last_sync_task: "" + headers: - "{}" - "{}" signed_only: false @@ -46465,10 +50343,7 @@ components: pulp_href: https://openapi-generator.tech tls_validation: true max_retries: 6 - connect_timeout: 0.5962133916683182 - client_cert: client_cert pulp_last_updated: 2000-01-23T04:56:07.000+00:00 - sock_read_timeout: 0.23021358869347652 url: url download_concurrency: 1 pulp_labels: @@ -46484,10 +50359,7 @@ components: name: name proxy_url: proxy_url auth_url: auth_url - ca_cert: ca_cert - total_timeout: 0.14658129805029452 sync_dependencies: true - policy: "" properties: count: example: 123 @@ -46536,6 +50408,39 @@ components: $ref: '#/components/schemas/ansible.CollectionResponse' type: array type: object + Paginatedansible.CollectionVersionMarkResponseList: + example: + next: http://api.example.org/accounts/?offset=400&limit=100 + previous: http://api.example.org/accounts/?offset=200&limit=100 + count: 123 + results: + - pulp_href: https://openapi-generator.tech + pulp_created: 2000-01-23T04:56:07.000+00:00 + marked_collection: https://openapi-generator.tech + value: value + - pulp_href: https://openapi-generator.tech + pulp_created: 2000-01-23T04:56:07.000+00:00 + marked_collection: https://openapi-generator.tech + value: value + properties: + count: + example: 123 + type: integer + next: + example: http://api.example.org/accounts/?offset=400&limit=100 + format: uri + nullable: true + type: string + previous: + example: http://api.example.org/accounts/?offset=200&limit=100 + format: uri + nullable: true + type: string + results: + items: + $ref: '#/components/schemas/ansible.CollectionVersionMarkResponse' + type: array + type: object Paginatedansible.CollectionVersionResponseList: example: next: http://api.example.org/accounts/?offset=400&limit=100 @@ -46671,13 +50576,13 @@ components: - headers: - "{}" - "{}" - rate_limit: 7 - connect_timeout: 0.14658129805029452 - pulp_href: https://openapi-generator.tech - max_retries: 5 + rate_limit: 6 + max_retries: 1 + connect_timeout: 0.23021358869347652 tls_validation: true + pulp_href: https://openapi-generator.tech client_cert: client_cert - sock_read_timeout: 0.08008281904610115 + sock_read_timeout: 0.5962133916683182 pulp_last_updated: 2000-01-23T04:56:07.000+00:00 url: url download_concurrency: 1 @@ -46686,26 +50591,26 @@ components: metadata_only: true name: name git_ref: git_ref - sock_connect_timeout: 0.6027456183070403 + sock_connect_timeout: 0.7061401241503109 + pulp_created: 2000-01-23T04:56:07.000+00:00 hidden_fields: - is_set: true name: name - is_set: true name: name - pulp_created: 2000-01-23T04:56:07.000+00:00 proxy_url: proxy_url ca_cert: ca_cert - total_timeout: 0.5962133916683182 + total_timeout: 0.5637376656633328 - headers: - "{}" - "{}" - rate_limit: 7 - connect_timeout: 0.14658129805029452 - pulp_href: https://openapi-generator.tech - max_retries: 5 + rate_limit: 6 + max_retries: 1 + connect_timeout: 0.23021358869347652 tls_validation: true + pulp_href: https://openapi-generator.tech client_cert: client_cert - sock_read_timeout: 0.08008281904610115 + sock_read_timeout: 0.5962133916683182 pulp_last_updated: 2000-01-23T04:56:07.000+00:00 url: url download_concurrency: 1 @@ -46714,16 +50619,16 @@ components: metadata_only: true name: name git_ref: git_ref - sock_connect_timeout: 0.6027456183070403 + sock_connect_timeout: 0.7061401241503109 + pulp_created: 2000-01-23T04:56:07.000+00:00 hidden_fields: - is_set: true name: name - is_set: true name: name - pulp_created: 2000-01-23T04:56:07.000+00:00 proxy_url: proxy_url ca_cert: ca_cert - total_timeout: 0.5962133916683182 + total_timeout: 0.5637376656633328 properties: count: example: 123 @@ -46975,8 +50880,8 @@ components: name: name namespace: https://openapi-generator.tech description: description - pulp_created: 2000-01-23T04:56:07.000+00:00 base_path: base_path + pulp_created: 2000-01-23T04:56:07.000+00:00 repository_version: https://openapi-generator.tech repository: https://openapi-generator.tech content_guard: https://openapi-generator.tech @@ -46988,8 +50893,8 @@ components: name: name namespace: https://openapi-generator.tech description: description - pulp_created: 2000-01-23T04:56:07.000+00:00 base_path: base_path + pulp_created: 2000-01-23T04:56:07.000+00:00 repository_version: https://openapi-generator.tech repository: https://openapi-generator.tech content_guard: https://openapi-generator.tech @@ -50713,6 +54618,41 @@ components: type: string type: object type: object + Patchedansible.AnsibleNamespaceMetadata: + description: A serializer for Namespaces. + properties: + name: + description: "Required named, only accepts lowercase, numbers and underscores." + maxLength: 64 + minLength: 3 + pattern: "^(?!.*__)[a-z]+[0-9a-z_]*$" + type: string + company: + description: Optional namespace company owner. + maxLength: 64 + type: string + email: + description: Optional namespace contact email. + maxLength: 256 + type: string + description: + description: Optional short description. + maxLength: 256 + type: string + resources: + description: Optional resource page in markdown format. + type: string + links: + description: Labeled related links. + items: + $ref: '#/components/schemas/NamespaceLink' + type: array + avatar: + description: Optional avatar image for Namespace + format: binary + type: string + writeOnly: true + type: object Patchedansible.AnsibleRepository: description: Serializer for Ansible Repositories. properties: @@ -50752,6 +54692,8 @@ components: minLength: 1 nullable: true type: string + private: + type: boolean type: object Patchedansible.CollectionRemote: description: A serializer for Collection Remotes. @@ -50913,35 +54855,18 @@ components: Patchedansible.GitRemote: description: A serializer for Git Collection Remotes. properties: - headers: - description: Headers for aiohttp.Clientsession - items: - type: object - type: array - sock_read_timeout: - description: "aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.\ - \ The default is null, which will cause the default from the aiohttp library\ - \ to be used." - format: double - minimum: 0.0 - nullable: true - type: number - sock_connect_timeout: - description: "aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.\ - \ The default is null, which will cause the default from the aiohttp library\ - \ to be used." - format: double - minimum: 0.0 + download_concurrency: + description: Total number of simultaneous connections. If not set then the + default value will be used. + format: int64 + minimum: 1 nullable: true - type: number - connect_timeout: - description: "aiohttp.ClientTimeout.connect (q.v.) for download-connections.\ - \ The default is null, which will cause the default from the aiohttp library\ - \ to be used." - format: double - minimum: 0.0 + type: integer + rate_limit: + description: Limits requests per second for each concurrent downloader + format: int64 nullable: true - type: number + type: integer name: description: A unique name for this remote. minLength: 1 @@ -50951,37 +54876,20 @@ components: minLength: 1 nullable: true type: string - proxy_url: - description: "The proxy URL. Format: scheme://host:port" - minLength: 1 - nullable: true - type: string - proxy_username: - description: The username to authenticte to the proxy. - minLength: 1 - nullable: true - type: string - writeOnly: true - username: - description: The username to be used for authentication when syncing. - minLength: 1 + max_retries: + description: Maximum number of retry attempts after a download failure. + If not set then the default value (3) will be used. + format: int64 nullable: true - type: string - writeOnly: true - total_timeout: - description: "aiohttp.ClientTimeout.total (q.v.) for download-connections.\ + type: integer + sock_read_timeout: + description: "aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.\ \ The default is null, which will cause the default from the aiohttp library\ \ to be used." format: double minimum: 0.0 nullable: true type: number - max_retries: - description: Maximum number of retry attempts after a download failure. - If not set then the default value (3) will be used. - format: int64 - nullable: true - type: integer password: description: The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. @@ -50989,20 +54897,16 @@ components: nullable: true type: string writeOnly: true - download_concurrency: - description: Total number of simultaneous connections. If not set then the - default value will be used. - format: int64 - minimum: 1 - nullable: true - type: integer - rate_limit: - description: Limits requests per second for each concurrent downloader - format: int64 + total_timeout: + description: "aiohttp.ClientTimeout.total (q.v.) for download-connections.\ + \ The default is null, which will cause the default from the aiohttp library\ + \ to be used." + format: double + minimum: 0.0 nullable: true - type: integer - client_key: - description: A PEM encoded private key used for authentication. + type: number + username: + description: The username to be used for authentication when syncing. minLength: 1 nullable: true type: string @@ -51019,19 +54923,57 @@ components: nullable: true type: string type: object + proxy_url: + description: "The proxy URL. Format: scheme://host:port" + minLength: 1 + nullable: true + type: string + client_key: + description: A PEM encoded private key used for authentication. + minLength: 1 + nullable: true + type: string + writeOnly: true + connect_timeout: + description: "aiohttp.ClientTimeout.connect (q.v.) for download-connections.\ + \ The default is null, which will cause the default from the aiohttp library\ + \ to be used." + format: double + minimum: 0.0 + nullable: true + type: number + ca_cert: + description: A PEM encoded CA certificate used to validate the server certificate + presented by the remote server. + minLength: 1 + nullable: true + type: string tls_validation: description: "If True, TLS peer validation must be performed." type: boolean + sock_connect_timeout: + description: "aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.\ + \ The default is null, which will cause the default from the aiohttp library\ + \ to be used." + format: double + minimum: 0.0 + nullable: true + type: number url: description: The URL of an external content source. minLength: 1 type: string - ca_cert: - description: A PEM encoded CA certificate used to validate the server certificate - presented by the remote server. + proxy_username: + description: The username to authenticte to the proxy. minLength: 1 nullable: true type: string + writeOnly: true + headers: + description: Headers for aiohttp.Clientsession + items: + type: object + type: array metadata_only: description: "If True, only metadata about the content will be stored in\ \ Pulp. Clients will retrieve content from the remote URL." @@ -51208,16 +55150,15 @@ components: Patchedcontainer.ContainerDistribution: description: A serializer for ContainerDistribution. properties: + repository: + description: The latest RepositoryVersion for this Repository will be served. + format: uri + nullable: true + type: string name: description: "A unique name. Ex, `rawhide` and `stable`." minLength: 1 type: string - base_path: - description: The base (relative) path component of the published url. Avoid - paths that overlap with other distribution base paths - (e.g. "foo" and "foo/bar") - minLength: 1 - type: string pulp_labels: additionalProperties: nullable: true @@ -51228,10 +55169,11 @@ components: \ one will be used." format: uri type: string - repository: - description: The latest RepositoryVersion for this Repository will be served. - format: uri - nullable: true + base_path: + description: The base (relative) path component of the published url. Avoid + paths that overlap with other distribution base paths + (e.g. "foo" and "foo/bar") + minLength: 1 type: string repository_version: description: RepositoryVersion to be served @@ -51251,18 +55193,6 @@ components: Patchedcontainer.ContainerPushRepository: description: Serializer for Container Push Repositories. properties: - description: - description: An optional description. - minLength: 1 - nullable: true - type: string - retain_repo_versions: - description: Retain X versions of the repository. Default is null which - retains all versions. - format: int64 - minimum: 1 - nullable: true - type: integer name: description: A unique name for this repository. minLength: 1 @@ -51277,6 +55207,18 @@ components: format: uri nullable: true type: string + description: + description: An optional description. + minLength: 1 + nullable: true + type: string + retain_repo_versions: + description: Retain X versions of the repository. Default is null which + retains all versions. + format: int64 + minimum: 1 + nullable: true + type: integer type: object Patchedcontainer.ContainerRemote: description: A Serializer for ContainerRemote. @@ -53033,6 +56975,17 @@ components: - immediate - "When syncing, download all metadata and content now." type: string + ProgressReport: + description: |- + Base serializer for use with :class:`pulpcore.app.models.Model` + + This ensures that all Serializers provide values for the 'pulp_href` field. + + The class provides a default for the ``ref_name`` attribute in the + ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions + of plugins are namespaced properly. + properties: {} + type: object ProgressReportResponse: description: |- Base serializer for use with :class:`pulpcore.app.models.Model` @@ -53783,6 +57736,52 @@ components: required: - published type: object + Repository: + description: |- + Base serializer for use with :class:`pulpcore.app.models.Model` + + This ensures that all Serializers provide values for the 'pulp_href` field. + + The class provides a default for the ``ref_name`` attribute in the + ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions + of plugins are namespaced properly. + example: + pulp_labels: + key: pulp_labels + name: name + description: description + retain_repo_versions: 1 + remote: https://openapi-generator.tech + properties: + pulp_labels: + additionalProperties: + nullable: true + type: string + type: object + name: + description: A unique name for this repository. + minLength: 1 + type: string + description: + description: An optional description. + minLength: 1 + nullable: true + type: string + retain_repo_versions: + description: Retain X versions of the repository. Default is null which + retains all versions. + format: int64 + minimum: 1 + nullable: true + type: integer + remote: + description: An optional remote to use by default when syncing. + format: uri + nullable: true + type: string + required: + - name + type: object RepositoryAddCachedContent: description: A mixin for validating unknown serializers' fields. example: @@ -54324,6 +58323,28 @@ components: readOnly: true type: string type: object + Task: + description: |- + Base serializer for use with :class:`pulpcore.app.models.Model` + + This ensures that all Serializers provide values for the 'pulp_href` field. + + The class provides a default for the ``ref_name`` attribute in the + ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions + of plugins are namespaced properly. + properties: + name: + description: The name of task. + minLength: 1 + type: string + logging_cid: + description: The logging correlation id associated with this task + minLength: 1 + type: string + required: + - logging_cid + - name + type: object TaskGroupOperationResponse: description: Serializer for asynchronous operations that return a task group. example: @@ -54641,6 +58662,9 @@ components: metadata: "" requires_ansible: requires_ansible created_at: 2000-01-23T04:56:07.000+00:00 + marks: + - marks + - marks collection: "" version: version signatures: signatures @@ -54669,6 +58693,11 @@ components: maxLength: 255 nullable: true type: string + marks: + items: + type: string + readOnly: true + type: array artifact: allOf: - $ref: '#/components/schemas/ArtifactRefResponse' @@ -55428,6 +59457,106 @@ components: - base_path - name type: object + ansible.AnsibleNamespaceMetadata: + description: A serializer for Namespaces. + properties: + name: + description: "Required named, only accepts lowercase, numbers and underscores." + maxLength: 64 + minLength: 3 + pattern: "^(?!.*__)[a-z]+[0-9a-z_]*$" + type: string + company: + description: Optional namespace company owner. + maxLength: 64 + type: string + email: + description: Optional namespace contact email. + maxLength: 256 + type: string + description: + description: Optional short description. + maxLength: 256 + type: string + resources: + description: Optional resource page in markdown format. + type: string + links: + description: Labeled related links. + items: + $ref: '#/components/schemas/NamespaceLink' + type: array + avatar: + description: Optional avatar image for Namespace + format: binary + type: string + writeOnly: true + required: + - name + type: object + ansible.AnsibleNamespaceMetadataResponse: + description: A serializer for Namespaces. + example: + avatar_sha256: avatar_sha256 + pulp_href: https://openapi-generator.tech + avatar_url: avatar_url + name: name + description: description + resources: resources + company: company + links: + - name: name + url: https://openapi-generator.tech + - name: name + url: https://openapi-generator.tech + metadata_sha256: metadata_sha256 + email: email + properties: + pulp_href: + format: uri + readOnly: true + type: string + name: + description: "Required named, only accepts lowercase, numbers and underscores." + maxLength: 64 + minLength: 3 + pattern: "^(?!.*__)[a-z]+[0-9a-z_]*$" + type: string + company: + description: Optional namespace company owner. + maxLength: 64 + type: string + email: + description: Optional namespace contact email. + maxLength: 256 + type: string + description: + description: Optional short description. + maxLength: 256 + type: string + resources: + description: Optional resource page in markdown format. + type: string + links: + description: Labeled related links. + items: + $ref: '#/components/schemas/NamespaceLinkResponse' + type: array + avatar_sha256: + description: SHA256 digest of avatar image if present. + maxLength: 64 + readOnly: true + type: string + avatar_url: + description: Download link for avatar image if present. + readOnly: true + type: string + metadata_sha256: + readOnly: true + type: string + required: + - name + type: object ansible.AnsibleRepository: description: Serializer for Ansible Repositories. properties: @@ -55467,23 +59596,27 @@ components: minLength: 1 nullable: true type: string + private: + type: boolean required: - name type: object ansible.AnsibleRepositoryResponse: description: Serializer for Ansible Repositories. example: + last_sync_task: "" + private: true + pulp_href: https://openapi-generator.tech + description: description + remote: https://openapi-generator.tech latest_version_href: https://openapi-generator.tech last_synced_metadata_time: 2000-01-23T04:56:07.000+00:00 - pulp_href: https://openapi-generator.tech versions_href: https://openapi-generator.tech pulp_labels: key: pulp_labels name: name - description: description pulp_created: 2000-01-23T04:56:07.000+00:00 retain_repo_versions: 1 - remote: https://openapi-generator.tech gpgkey: gpgkey properties: pulp_href: @@ -55536,6 +59669,12 @@ components: description: Gpg public key to verify collection signatures against nullable: true type: string + last_sync_task: + allOf: + - $ref: '#/components/schemas/TaskResponse' + readOnly: true + private: + type: boolean required: - name type: object @@ -55717,6 +59856,13 @@ components: ansible.CollectionRemoteResponse: description: A serializer for Collection Remotes. example: + connect_timeout: 0.5962133916683182 + client_cert: client_cert + sock_read_timeout: 0.23021358869347652 + ca_cert: ca_cert + total_timeout: 0.14658129805029452 + policy: "" + last_sync_task: "" headers: - "{}" - "{}" @@ -55725,10 +59871,7 @@ components: pulp_href: https://openapi-generator.tech tls_validation: true max_retries: 6 - connect_timeout: 0.5962133916683182 - client_cert: client_cert pulp_last_updated: 2000-01-23T04:56:07.000+00:00 - sock_read_timeout: 0.23021358869347652 url: url download_concurrency: 1 pulp_labels: @@ -55744,10 +59887,7 @@ components: name: name proxy_url: proxy_url auth_url: auth_url - ca_cert: ca_cert - total_timeout: 0.14658129805029452 sync_dependencies: true - policy: "" properties: pulp_href: format: uri @@ -55875,6 +60015,10 @@ components: default: false description: Sync only collections that have a signature type: boolean + last_sync_task: + allOf: + - $ref: '#/components/schemas/TaskResponse' + readOnly: true required: - name - url @@ -55898,10 +60042,12 @@ components: ansible.CollectionVersion: description: A serializer for CollectionVersion Content. properties: - artifact: - description: Artifact file representing the physical content + repository: + description: A URI of a repository the new content unit should be associated + with. format: uri type: string + writeOnly: true upload: description: An uncommitted upload that may be turned into the artifact of the content unit. @@ -55914,12 +60060,10 @@ components: format: binary type: string writeOnly: true - repository: - description: A URI of a repository the new content unit should be associated - with. + artifact: + description: Artifact file representing the physical content format: uri type: string - writeOnly: true expected_name: description: The name of the collection. maxLength: 64 @@ -55939,6 +60083,51 @@ components: type: string writeOnly: true type: object + ansible.CollectionVersionMark: + description: A serializer for mark models. + properties: + marked_collection: + description: The content this mark is pointing to. + format: uri + type: string + value: + description: The string value of this mark. + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + type: string + required: + - marked_collection + - value + type: object + ansible.CollectionVersionMarkResponse: + description: A serializer for mark models. + example: + pulp_href: https://openapi-generator.tech + pulp_created: 2000-01-23T04:56:07.000+00:00 + marked_collection: https://openapi-generator.tech + value: value + properties: + pulp_created: + description: Timestamp of creation. + format: date-time + readOnly: true + type: string + pulp_href: + format: uri + readOnly: true + type: string + marked_collection: + description: The content this mark is pointing to. + format: uri + type: string + value: + description: The string value of this mark. + pattern: "^[-a-zA-Z0-9_]+$" + type: string + required: + - marked_collection + - value + type: object ansible.CollectionVersionResponse: description: A serializer for CollectionVersion Content. example: @@ -55976,18 +60165,18 @@ components: - authors homepage: homepage properties: - artifact: - description: Artifact file representing the physical content + pulp_href: format: uri + readOnly: true type: string pulp_created: description: Timestamp of creation. format: date-time readOnly: true type: string - pulp_href: + artifact: + description: Artifact file representing the physical content format: uri - readOnly: true type: string sha256: description: The SHA-256 checksum if available. @@ -56167,35 +60356,18 @@ components: ansible.GitRemote: description: A serializer for Git Collection Remotes. properties: - headers: - description: Headers for aiohttp.Clientsession - items: - type: object - type: array - sock_read_timeout: - description: "aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.\ - \ The default is null, which will cause the default from the aiohttp library\ - \ to be used." - format: double - minimum: 0.0 - nullable: true - type: number - sock_connect_timeout: - description: "aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.\ - \ The default is null, which will cause the default from the aiohttp library\ - \ to be used." - format: double - minimum: 0.0 + download_concurrency: + description: Total number of simultaneous connections. If not set then the + default value will be used. + format: int64 + minimum: 1 nullable: true - type: number - connect_timeout: - description: "aiohttp.ClientTimeout.connect (q.v.) for download-connections.\ - \ The default is null, which will cause the default from the aiohttp library\ - \ to be used." - format: double - minimum: 0.0 + type: integer + rate_limit: + description: Limits requests per second for each concurrent downloader + format: int64 nullable: true - type: number + type: integer name: description: A unique name for this remote. minLength: 1 @@ -56205,37 +60377,20 @@ components: minLength: 1 nullable: true type: string - proxy_url: - description: "The proxy URL. Format: scheme://host:port" - minLength: 1 - nullable: true - type: string - proxy_username: - description: The username to authenticte to the proxy. - minLength: 1 - nullable: true - type: string - writeOnly: true - username: - description: The username to be used for authentication when syncing. - minLength: 1 + max_retries: + description: Maximum number of retry attempts after a download failure. + If not set then the default value (3) will be used. + format: int64 nullable: true - type: string - writeOnly: true - total_timeout: - description: "aiohttp.ClientTimeout.total (q.v.) for download-connections.\ + type: integer + sock_read_timeout: + description: "aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.\ \ The default is null, which will cause the default from the aiohttp library\ \ to be used." format: double minimum: 0.0 nullable: true type: number - max_retries: - description: Maximum number of retry attempts after a download failure. - If not set then the default value (3) will be used. - format: int64 - nullable: true - type: integer password: description: The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. @@ -56243,20 +60398,16 @@ components: nullable: true type: string writeOnly: true - download_concurrency: - description: Total number of simultaneous connections. If not set then the - default value will be used. - format: int64 - minimum: 1 - nullable: true - type: integer - rate_limit: - description: Limits requests per second for each concurrent downloader - format: int64 + total_timeout: + description: "aiohttp.ClientTimeout.total (q.v.) for download-connections.\ + \ The default is null, which will cause the default from the aiohttp library\ + \ to be used." + format: double + minimum: 0.0 nullable: true - type: integer - client_key: - description: A PEM encoded private key used for authentication. + type: number + username: + description: The username to be used for authentication when syncing. minLength: 1 nullable: true type: string @@ -56273,19 +60424,57 @@ components: nullable: true type: string type: object + proxy_url: + description: "The proxy URL. Format: scheme://host:port" + minLength: 1 + nullable: true + type: string + client_key: + description: A PEM encoded private key used for authentication. + minLength: 1 + nullable: true + type: string + writeOnly: true + connect_timeout: + description: "aiohttp.ClientTimeout.connect (q.v.) for download-connections.\ + \ The default is null, which will cause the default from the aiohttp library\ + \ to be used." + format: double + minimum: 0.0 + nullable: true + type: number + ca_cert: + description: A PEM encoded CA certificate used to validate the server certificate + presented by the remote server. + minLength: 1 + nullable: true + type: string tls_validation: description: "If True, TLS peer validation must be performed." type: boolean + sock_connect_timeout: + description: "aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.\ + \ The default is null, which will cause the default from the aiohttp library\ + \ to be used." + format: double + minimum: 0.0 + nullable: true + type: number url: description: The URL of an external content source. minLength: 1 type: string - ca_cert: - description: A PEM encoded CA certificate used to validate the server certificate - presented by the remote server. + proxy_username: + description: The username to authenticte to the proxy. minLength: 1 nullable: true type: string + writeOnly: true + headers: + description: Headers for aiohttp.Clientsession + items: + type: object + type: array metadata_only: description: "If True, only metadata about the content will be stored in\ \ Pulp. Clients will retrieve content from the remote URL." @@ -56304,13 +60493,13 @@ components: headers: - "{}" - "{}" - rate_limit: 7 - connect_timeout: 0.14658129805029452 - pulp_href: https://openapi-generator.tech - max_retries: 5 + rate_limit: 6 + max_retries: 1 + connect_timeout: 0.23021358869347652 tls_validation: true + pulp_href: https://openapi-generator.tech client_cert: client_cert - sock_read_timeout: 0.08008281904610115 + sock_read_timeout: 0.5962133916683182 pulp_last_updated: 2000-01-23T04:56:07.000+00:00 url: url download_concurrency: 1 @@ -56319,56 +60508,29 @@ components: metadata_only: true name: name git_ref: git_ref - sock_connect_timeout: 0.6027456183070403 + sock_connect_timeout: 0.7061401241503109 + pulp_created: 2000-01-23T04:56:07.000+00:00 hidden_fields: - is_set: true name: name - is_set: true name: name - pulp_created: 2000-01-23T04:56:07.000+00:00 proxy_url: proxy_url ca_cert: ca_cert - total_timeout: 0.5962133916683182 + total_timeout: 0.5637376656633328 properties: - headers: - description: Headers for aiohttp.Clientsession - items: - type: object - type: array - sock_read_timeout: - description: "aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.\ - \ The default is null, which will cause the default from the aiohttp library\ - \ to be used." - format: double - minimum: 0.0 - nullable: true - type: number - sock_connect_timeout: - description: "aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.\ - \ The default is null, which will cause the default from the aiohttp library\ - \ to be used." - format: double - minimum: 0.0 + download_concurrency: + description: Total number of simultaneous connections. If not set then the + default value will be used. + format: int64 + minimum: 1 nullable: true - type: number - connect_timeout: - description: "aiohttp.ClientTimeout.connect (q.v.) for download-connections.\ - \ The default is null, which will cause the default from the aiohttp library\ - \ to be used." - format: double - minimum: 0.0 + type: integer + rate_limit: + description: Limits requests per second for each concurrent downloader + format: int64 nullable: true - type: number - pulp_href: - format: uri - readOnly: true - type: string - hidden_fields: - description: List of hidden (write only) fields - items: - $ref: '#/components/schemas/RemoteResponse_hidden_fields_inner' - readOnly: true - type: array + type: integer name: description: A unique name for this remote. type: string @@ -56376,12 +60538,14 @@ components: description: A PEM encoded client certificate used for authentication. nullable: true type: string - proxy_url: - description: "The proxy URL. Format: scheme://host:port" + max_retries: + description: Maximum number of retry attempts after a download failure. + If not set then the default value (3) will be used. + format: int64 nullable: true - type: string - total_timeout: - description: "aiohttp.ClientTimeout.total (q.v.) for download-connections.\ + type: integer + sock_read_timeout: + description: "aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.\ \ The default is null, which will cause the default from the aiohttp library\ \ to be used." format: double @@ -56393,45 +60557,70 @@ components: format: date-time readOnly: true type: string - max_retries: - description: Maximum number of retry attempts after a download failure. - If not set then the default value (3) will be used. - format: int64 + total_timeout: + description: "aiohttp.ClientTimeout.total (q.v.) for download-connections.\ + \ The default is null, which will cause the default from the aiohttp library\ + \ to be used." + format: double + minimum: 0.0 nullable: true - type: integer + type: number + pulp_labels: + additionalProperties: + nullable: true + type: string + type: object pulp_created: description: Timestamp of creation. format: date-time readOnly: true type: string - download_concurrency: - description: Total number of simultaneous connections. If not set then the - default value will be used. - format: int64 - minimum: 1 + proxy_url: + description: "The proxy URL. Format: scheme://host:port" nullable: true - type: integer - rate_limit: - description: Limits requests per second for each concurrent downloader - format: int64 + type: string + connect_timeout: + description: "aiohttp.ClientTimeout.connect (q.v.) for download-connections.\ + \ The default is null, which will cause the default from the aiohttp library\ + \ to be used." + format: double + minimum: 0.0 nullable: true - type: integer - pulp_labels: - additionalProperties: - nullable: true - type: string - type: object + type: number + ca_cert: + description: A PEM encoded CA certificate used to validate the server certificate + presented by the remote server. + nullable: true + type: string tls_validation: description: "If True, TLS peer validation must be performed." type: boolean + sock_connect_timeout: + description: "aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.\ + \ The default is null, which will cause the default from the aiohttp library\ + \ to be used." + format: double + minimum: 0.0 + nullable: true + type: number url: description: The URL of an external content source. type: string - ca_cert: - description: A PEM encoded CA certificate used to validate the server certificate - presented by the remote server. - nullable: true + headers: + description: Headers for aiohttp.Clientsession + items: + type: object + type: array + pulp_href: + format: uri + readOnly: true type: string + hidden_fields: + description: List of hidden (write only) fields + items: + $ref: '#/components/schemas/RemoteResponse_hidden_fields_inner' + readOnly: true + type: array metadata_only: description: "If True, only metadata about the content will be stored in\ \ Pulp. Clients will retrieve content from the remote URL." @@ -56748,18 +60937,18 @@ components: pulp_created: 2000-01-23T04:56:07.000+00:00 version: version properties: - artifact: - description: Artifact file representing the physical content + pulp_href: format: uri + readOnly: true type: string pulp_created: description: Timestamp of creation. format: date-time readOnly: true type: string - pulp_href: + artifact: + description: Artifact file representing the physical content format: uri - readOnly: true type: string version: type: string @@ -56926,16 +61115,15 @@ components: container.ContainerDistribution: description: A serializer for ContainerDistribution. properties: + repository: + description: The latest RepositoryVersion for this Repository will be served. + format: uri + nullable: true + type: string name: description: "A unique name. Ex, `rawhide` and `stable`." minLength: 1 type: string - base_path: - description: The base (relative) path component of the published url. Avoid - paths that overlap with other distribution base paths - (e.g. "foo" and "foo/bar") - minLength: 1 - type: string pulp_labels: additionalProperties: nullable: true @@ -56946,10 +61134,11 @@ components: \ one will be used." format: uri type: string - repository: - description: The latest RepositoryVersion for this Repository will be served. - format: uri - nullable: true + base_path: + description: The base (relative) path component of the published url. Avoid + paths that overlap with other distribution base paths + (e.g. "foo" and "foo/bar") + minLength: 1 type: string repository_version: description: RepositoryVersion to be served @@ -56979,17 +61168,17 @@ components: name: name namespace: https://openapi-generator.tech description: description - pulp_created: 2000-01-23T04:56:07.000+00:00 base_path: base_path + pulp_created: 2000-01-23T04:56:07.000+00:00 repository_version: https://openapi-generator.tech repository: https://openapi-generator.tech content_guard: https://openapi-generator.tech registry_path: registry_path properties: - pulp_created: - description: Timestamp of creation. - format: date-time - readOnly: true + repository: + description: The latest RepositoryVersion for this Repository will be served. + format: uri + nullable: true type: string pulp_href: format: uri @@ -56998,11 +61187,6 @@ components: name: description: "A unique name. Ex, `rawhide` and `stable`." type: string - base_path: - description: The base (relative) path component of the published url. Avoid - paths that overlap with other distribution base paths - (e.g. "foo" and "foo/bar") - type: string pulp_labels: additionalProperties: nullable: true @@ -57013,10 +61197,15 @@ components: \ one will be used." format: uri type: string - repository: - description: The latest RepositoryVersion for this Repository will be served. - format: uri - nullable: true + base_path: + description: The base (relative) path component of the published url. Avoid + paths that overlap with other distribution base paths + (e.g. "foo" and "foo/bar") + type: string + pulp_created: + description: Timestamp of creation. + format: date-time + readOnly: true type: string repository_version: description: RepositoryVersion to be served @@ -57078,18 +61267,6 @@ components: container.ContainerPushRepository: description: Serializer for Container Push Repositories. properties: - description: - description: An optional description. - minLength: 1 - nullable: true - type: string - retain_repo_versions: - description: Retain X versions of the repository. Default is null which - retains all versions. - format: int64 - minimum: 1 - nullable: true - type: integer name: description: A unique name for this repository. minLength: 1 @@ -57104,6 +61281,18 @@ components: format: uri nullable: true type: string + description: + description: An optional description. + minLength: 1 + nullable: true + type: string + retain_repo_versions: + description: Retain X versions of the repository. Default is null which + retains all versions. + format: int64 + minimum: 1 + nullable: true + type: integer required: - name type: object @@ -57121,30 +61310,10 @@ components: pulp_created: 2000-01-23T04:56:07.000+00:00 retain_repo_versions: 1 properties: - description: - description: An optional description. - nullable: true - type: string - latest_version_href: - format: uri - readOnly: true - type: string - pulp_created: - description: Timestamp of creation. - format: date-time - readOnly: true - type: string pulp_href: format: uri readOnly: true type: string - retain_repo_versions: - description: Retain X versions of the repository. Default is null which - retains all versions. - format: int64 - minimum: 1 - nullable: true - type: integer versions_href: format: uri readOnly: true @@ -57157,11 +61326,31 @@ components: nullable: true type: string type: object + latest_version_href: + format: uri + readOnly: true + type: string manifest_signing_service: description: A reference to an associated signing service. format: uri nullable: true type: string + description: + description: An optional description. + nullable: true + type: string + pulp_created: + description: Timestamp of creation. + format: date-time + readOnly: true + type: string + retain_repo_versions: + description: Retain X versions of the repository. Default is null which + retains all versions. + format: int64 + minimum: 1 + nullable: true + type: integer required: - name type: object diff --git a/release/api_access_policies.go b/release/api_access_policies.go index 2e87c1d9..883b4138 100644 --- a/release/api_access_policies.go +++ b/release/api_access_policies.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_acs_file.go b/release/api_acs_file.go index ece137f0..524ec1bf 100644 --- a/release/api_acs_file.go +++ b/release/api_acs_file.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_acs_rpm.go b/release/api_acs_rpm.go index 9c8b19a4..93be65cd 100644 --- a/release/api_acs_rpm.go +++ b/release/api_acs_rpm.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_ansible_collections.go b/release/api_ansible_collections.go index 76315e4b..b3ceb941 100644 --- a/release/api_ansible_collections.go +++ b/release/api_ansible_collections.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" @@ -17,6 +17,7 @@ import ( "io" "net/http" "net/url" + "strings" "reflect" "os" ) @@ -25,6 +26,121 @@ import ( // AnsibleCollectionsApiService AnsibleCollectionsApi service type AnsibleCollectionsApiService service +type AnsibleCollectionsApiAnsibleCollectionsAddRoleRequest struct { + ctx context.Context + ApiService *AnsibleCollectionsApiService + ansibleCollectionHref string + nestedRole *NestedRole +} + +func (r AnsibleCollectionsApiAnsibleCollectionsAddRoleRequest) NestedRole(nestedRole NestedRole) AnsibleCollectionsApiAnsibleCollectionsAddRoleRequest { + r.nestedRole = &nestedRole + return r +} + +func (r AnsibleCollectionsApiAnsibleCollectionsAddRoleRequest) Execute() (*NestedRoleResponse, *http.Response, error) { + return r.ApiService.AnsibleCollectionsAddRoleExecute(r) +} + +/* +AnsibleCollectionsAddRole Method for AnsibleCollectionsAddRole + +Add a role for this object to users/groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleCollectionHref + @return AnsibleCollectionsApiAnsibleCollectionsAddRoleRequest +*/ +func (a *AnsibleCollectionsApiService) AnsibleCollectionsAddRole(ctx context.Context, ansibleCollectionHref string) AnsibleCollectionsApiAnsibleCollectionsAddRoleRequest { + return AnsibleCollectionsApiAnsibleCollectionsAddRoleRequest{ + ApiService: a, + ctx: ctx, + ansibleCollectionHref: ansibleCollectionHref, + } +} + +// Execute executes the request +// @return NestedRoleResponse +func (a *AnsibleCollectionsApiService) AnsibleCollectionsAddRoleExecute(r AnsibleCollectionsApiAnsibleCollectionsAddRoleRequest) (*NestedRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NestedRoleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnsibleCollectionsApiService.AnsibleCollectionsAddRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_collection_href}add_role/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_collection_href"+"}", url.PathEscape(parameterValueToString(r.ansibleCollectionHref, "ansibleCollectionHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.nestedRole == nil { + return localVarReturnValue, nil, reportError("nestedRole is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.nestedRole + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type AnsibleCollectionsApiAnsibleCollectionsListRequest struct { ctx context.Context ApiService *AnsibleCollectionsApiService @@ -207,6 +323,401 @@ func (a *AnsibleCollectionsApiService) AnsibleCollectionsListExecute(r AnsibleCo return localVarReturnValue, localVarHTTPResponse, nil } +type AnsibleCollectionsApiAnsibleCollectionsListRolesRequest struct { + ctx context.Context + ApiService *AnsibleCollectionsApiService + ansibleCollectionHref string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r AnsibleCollectionsApiAnsibleCollectionsListRolesRequest) Fields(fields []string) AnsibleCollectionsApiAnsibleCollectionsListRolesRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r AnsibleCollectionsApiAnsibleCollectionsListRolesRequest) ExcludeFields(excludeFields []string) AnsibleCollectionsApiAnsibleCollectionsListRolesRequest { + r.excludeFields = &excludeFields + return r +} + +func (r AnsibleCollectionsApiAnsibleCollectionsListRolesRequest) Execute() (*ObjectRolesResponse, *http.Response, error) { + return r.ApiService.AnsibleCollectionsListRolesExecute(r) +} + +/* +AnsibleCollectionsListRoles Method for AnsibleCollectionsListRoles + +List roles assigned to this object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleCollectionHref + @return AnsibleCollectionsApiAnsibleCollectionsListRolesRequest +*/ +func (a *AnsibleCollectionsApiService) AnsibleCollectionsListRoles(ctx context.Context, ansibleCollectionHref string) AnsibleCollectionsApiAnsibleCollectionsListRolesRequest { + return AnsibleCollectionsApiAnsibleCollectionsListRolesRequest{ + ApiService: a, + ctx: ctx, + ansibleCollectionHref: ansibleCollectionHref, + } +} + +// Execute executes the request +// @return ObjectRolesResponse +func (a *AnsibleCollectionsApiService) AnsibleCollectionsListRolesExecute(r AnsibleCollectionsApiAnsibleCollectionsListRolesRequest) (*ObjectRolesResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectRolesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnsibleCollectionsApiService.AnsibleCollectionsListRoles") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_collection_href}list_roles/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_collection_href"+"}", url.PathEscape(parameterValueToString(r.ansibleCollectionHref, "ansibleCollectionHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type AnsibleCollectionsApiAnsibleCollectionsMyPermissionsRequest struct { + ctx context.Context + ApiService *AnsibleCollectionsApiService + ansibleCollectionHref string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r AnsibleCollectionsApiAnsibleCollectionsMyPermissionsRequest) Fields(fields []string) AnsibleCollectionsApiAnsibleCollectionsMyPermissionsRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r AnsibleCollectionsApiAnsibleCollectionsMyPermissionsRequest) ExcludeFields(excludeFields []string) AnsibleCollectionsApiAnsibleCollectionsMyPermissionsRequest { + r.excludeFields = &excludeFields + return r +} + +func (r AnsibleCollectionsApiAnsibleCollectionsMyPermissionsRequest) Execute() (*MyPermissionsResponse, *http.Response, error) { + return r.ApiService.AnsibleCollectionsMyPermissionsExecute(r) +} + +/* +AnsibleCollectionsMyPermissions Method for AnsibleCollectionsMyPermissions + +List permissions available to the current user on this object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleCollectionHref + @return AnsibleCollectionsApiAnsibleCollectionsMyPermissionsRequest +*/ +func (a *AnsibleCollectionsApiService) AnsibleCollectionsMyPermissions(ctx context.Context, ansibleCollectionHref string) AnsibleCollectionsApiAnsibleCollectionsMyPermissionsRequest { + return AnsibleCollectionsApiAnsibleCollectionsMyPermissionsRequest{ + ApiService: a, + ctx: ctx, + ansibleCollectionHref: ansibleCollectionHref, + } +} + +// Execute executes the request +// @return MyPermissionsResponse +func (a *AnsibleCollectionsApiService) AnsibleCollectionsMyPermissionsExecute(r AnsibleCollectionsApiAnsibleCollectionsMyPermissionsRequest) (*MyPermissionsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MyPermissionsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnsibleCollectionsApiService.AnsibleCollectionsMyPermissions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_collection_href}my_permissions/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_collection_href"+"}", url.PathEscape(parameterValueToString(r.ansibleCollectionHref, "ansibleCollectionHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type AnsibleCollectionsApiAnsibleCollectionsRemoveRoleRequest struct { + ctx context.Context + ApiService *AnsibleCollectionsApiService + ansibleCollectionHref string + nestedRole *NestedRole +} + +func (r AnsibleCollectionsApiAnsibleCollectionsRemoveRoleRequest) NestedRole(nestedRole NestedRole) AnsibleCollectionsApiAnsibleCollectionsRemoveRoleRequest { + r.nestedRole = &nestedRole + return r +} + +func (r AnsibleCollectionsApiAnsibleCollectionsRemoveRoleRequest) Execute() (*NestedRoleResponse, *http.Response, error) { + return r.ApiService.AnsibleCollectionsRemoveRoleExecute(r) +} + +/* +AnsibleCollectionsRemoveRole Method for AnsibleCollectionsRemoveRole + +Remove a role for this object from users/groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleCollectionHref + @return AnsibleCollectionsApiAnsibleCollectionsRemoveRoleRequest +*/ +func (a *AnsibleCollectionsApiService) AnsibleCollectionsRemoveRole(ctx context.Context, ansibleCollectionHref string) AnsibleCollectionsApiAnsibleCollectionsRemoveRoleRequest { + return AnsibleCollectionsApiAnsibleCollectionsRemoveRoleRequest{ + ApiService: a, + ctx: ctx, + ansibleCollectionHref: ansibleCollectionHref, + } +} + +// Execute executes the request +// @return NestedRoleResponse +func (a *AnsibleCollectionsApiService) AnsibleCollectionsRemoveRoleExecute(r AnsibleCollectionsApiAnsibleCollectionsRemoveRoleRequest) (*NestedRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NestedRoleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnsibleCollectionsApiService.AnsibleCollectionsRemoveRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_collection_href}remove_role/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_collection_href"+"}", url.PathEscape(parameterValueToString(r.ansibleCollectionHref, "ansibleCollectionHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.nestedRole == nil { + return localVarReturnValue, nil, reportError("nestedRole is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.nestedRole + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type AnsibleCollectionsApiUploadCollectionRequest struct { ctx context.Context ApiService *AnsibleCollectionsApiService diff --git a/release/api_ansible_copy.go b/release/api_ansible_copy.go index 9cf8c2c1..f4f1ba47 100644 --- a/release/api_ansible_copy.go +++ b/release/api_ansible_copy.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_api_collections.go b/release/api_api_collections.go index be34f238..bd93b0f0 100644 --- a/release/api_api_collections.go +++ b/release/api_api_collections.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_api_roles.go b/release/api_api_roles.go index 16cb72d6..373c9f65 100644 --- a/release/api_api_roles.go +++ b/release/api_api_roles.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_artifacts.go b/release/api_artifacts.go index 6556a280..b8ed2ccb 100644 --- a/release/api_artifacts.go +++ b/release/api_artifacts.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_collection_import.go b/release/api_collection_import.go index 8ee7c059..96f03ed9 100644 --- a/release/api_collection_import.go +++ b/release/api_collection_import.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content.go b/release/api_content.go index c733f723..c629a5ea 100644 --- a/release/api_content.go +++ b/release/api_content.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_advisories.go b/release/api_content_advisories.go index 0c2a65b3..6e5eecec 100644 --- a/release/api_content_advisories.go +++ b/release/api_content_advisories.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_artifact.go b/release/api_content_artifact.go index a935bdc5..8873274f 100644 --- a/release/api_content_artifact.go +++ b/release/api_content_artifact.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_blobs.go b/release/api_content_blobs.go index 415d5543..bf0fdf8b 100644 --- a/release/api_content_blobs.go +++ b/release/api_content_blobs.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_collection_deprecations.go b/release/api_content_collection_deprecations.go index d926448c..e18c2fbe 100644 --- a/release/api_content_collection_deprecations.go +++ b/release/api_content_collection_deprecations.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_collection_marks.go b/release/api_content_collection_marks.go new file mode 100644 index 00000000..6531ed12 --- /dev/null +++ b/release/api_content_collection_marks.go @@ -0,0 +1,499 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + "reflect" +) + + +// ContentCollectionMarksApiService ContentCollectionMarksApi service +type ContentCollectionMarksApiService service + +type ContentCollectionMarksApiContentAnsibleCollectionMarksCreateRequest struct { + ctx context.Context + ApiService *ContentCollectionMarksApiService + ansibleCollectionVersionMark *AnsibleCollectionVersionMark +} + +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksCreateRequest) AnsibleCollectionVersionMark(ansibleCollectionVersionMark AnsibleCollectionVersionMark) ContentCollectionMarksApiContentAnsibleCollectionMarksCreateRequest { + r.ansibleCollectionVersionMark = &ansibleCollectionVersionMark + return r +} + +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksCreateRequest) Execute() (*AnsibleCollectionVersionMarkResponse, *http.Response, error) { + return r.ApiService.ContentAnsibleCollectionMarksCreateExecute(r) +} + +/* +ContentAnsibleCollectionMarksCreate Create a collection version mark + +ViewSet for looking at mark objects for CollectionVersion content. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ContentCollectionMarksApiContentAnsibleCollectionMarksCreateRequest +*/ +func (a *ContentCollectionMarksApiService) ContentAnsibleCollectionMarksCreate(ctx context.Context) ContentCollectionMarksApiContentAnsibleCollectionMarksCreateRequest { + return ContentCollectionMarksApiContentAnsibleCollectionMarksCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnsibleCollectionVersionMarkResponse +func (a *ContentCollectionMarksApiService) ContentAnsibleCollectionMarksCreateExecute(r ContentCollectionMarksApiContentAnsibleCollectionMarksCreateRequest) (*AnsibleCollectionVersionMarkResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnsibleCollectionVersionMarkResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ContentCollectionMarksApiService.ContentAnsibleCollectionMarksCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp/api/v3/content/ansible/collection_marks/" + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.ansibleCollectionVersionMark == nil { + return localVarReturnValue, nil, reportError("ansibleCollectionVersionMark is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.ansibleCollectionVersionMark + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest struct { + ctx context.Context + ApiService *ContentCollectionMarksApiService + limit *int32 + markedCollection *string + offset *int32 + ordering *[]string + repositoryVersion *string + repositoryVersionAdded *string + repositoryVersionRemoved *string + value *string + valueIn *[]string + fields *[]string + excludeFields *[]string +} + +// Number of results to return per page. +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest) Limit(limit int32) ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest { + r.limit = &limit + return r +} + +// Filter marks for collection version +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest) MarkedCollection(markedCollection string) ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest { + r.markedCollection = &markedCollection + return r +} + +// The initial index from which to return the results. +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest) Offset(offset int32) ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest { + r.offset = &offset + return r +} + +// Ordering +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest) Ordering(ordering []string) ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest { + r.ordering = &ordering + return r +} + +// Repository Version referenced by HREF +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest) RepositoryVersion(repositoryVersion string) ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest { + r.repositoryVersion = &repositoryVersion + return r +} + +// Repository Version referenced by HREF +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest) RepositoryVersionAdded(repositoryVersionAdded string) ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest { + r.repositoryVersionAdded = &repositoryVersionAdded + return r +} + +// Repository Version referenced by HREF +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest) RepositoryVersionRemoved(repositoryVersionRemoved string) ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest { + r.repositoryVersionRemoved = &repositoryVersionRemoved + return r +} + +// Filter marks by value +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest) Value(value string) ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest { + r.value = &value + return r +} + +// Filter results where value is in a comma-separated list of values +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest) ValueIn(valueIn []string) ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest { + r.valueIn = &valueIn + return r +} + +// A list of fields to include in the response. +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest) Fields(fields []string) ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest) ExcludeFields(excludeFields []string) ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest { + r.excludeFields = &excludeFields + return r +} + +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest) Execute() (*PaginatedansibleCollectionVersionMarkResponseList, *http.Response, error) { + return r.ApiService.ContentAnsibleCollectionMarksListExecute(r) +} + +/* +ContentAnsibleCollectionMarksList List collection version marks + +ViewSet for looking at mark objects for CollectionVersion content. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest +*/ +func (a *ContentCollectionMarksApiService) ContentAnsibleCollectionMarksList(ctx context.Context) ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest { + return ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedansibleCollectionVersionMarkResponseList +func (a *ContentCollectionMarksApiService) ContentAnsibleCollectionMarksListExecute(r ContentCollectionMarksApiContentAnsibleCollectionMarksListRequest) (*PaginatedansibleCollectionVersionMarkResponseList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedansibleCollectionVersionMarkResponseList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ContentCollectionMarksApiService.ContentAnsibleCollectionMarksList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp/api/v3/content/ansible/collection_marks/" + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.markedCollection != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "marked_collection", r.markedCollection, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "csv") + } + if r.repositoryVersion != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository_version", r.repositoryVersion, "") + } + if r.repositoryVersionAdded != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository_version_added", r.repositoryVersionAdded, "") + } + if r.repositoryVersionRemoved != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository_version_removed", r.repositoryVersionRemoved, "") + } + if r.value != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "value", r.value, "") + } + if r.valueIn != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "value__in", r.valueIn, "csv") + } + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ContentCollectionMarksApiContentAnsibleCollectionMarksReadRequest struct { + ctx context.Context + ApiService *ContentCollectionMarksApiService + ansibleCollectionVersionMarkHref string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksReadRequest) Fields(fields []string) ContentCollectionMarksApiContentAnsibleCollectionMarksReadRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksReadRequest) ExcludeFields(excludeFields []string) ContentCollectionMarksApiContentAnsibleCollectionMarksReadRequest { + r.excludeFields = &excludeFields + return r +} + +func (r ContentCollectionMarksApiContentAnsibleCollectionMarksReadRequest) Execute() (*AnsibleCollectionVersionMarkResponse, *http.Response, error) { + return r.ApiService.ContentAnsibleCollectionMarksReadExecute(r) +} + +/* +ContentAnsibleCollectionMarksRead Inspect a collection version mark + +ViewSet for looking at mark objects for CollectionVersion content. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleCollectionVersionMarkHref + @return ContentCollectionMarksApiContentAnsibleCollectionMarksReadRequest +*/ +func (a *ContentCollectionMarksApiService) ContentAnsibleCollectionMarksRead(ctx context.Context, ansibleCollectionVersionMarkHref string) ContentCollectionMarksApiContentAnsibleCollectionMarksReadRequest { + return ContentCollectionMarksApiContentAnsibleCollectionMarksReadRequest{ + ApiService: a, + ctx: ctx, + ansibleCollectionVersionMarkHref: ansibleCollectionVersionMarkHref, + } +} + +// Execute executes the request +// @return AnsibleCollectionVersionMarkResponse +func (a *ContentCollectionMarksApiService) ContentAnsibleCollectionMarksReadExecute(r ContentCollectionMarksApiContentAnsibleCollectionMarksReadRequest) (*AnsibleCollectionVersionMarkResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnsibleCollectionVersionMarkResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ContentCollectionMarksApiService.ContentAnsibleCollectionMarksRead") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_collection_version_mark_href}" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_collection_version_mark_href"+"}", url.PathEscape(parameterValueToString(r.ansibleCollectionVersionMarkHref, "ansibleCollectionVersionMarkHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/release/api_content_collection_signatures.go b/release/api_content_collection_signatures.go index 14f3b5db..0678b163 100644 --- a/release/api_content_collection_signatures.go +++ b/release/api_content_collection_signatures.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_collection_versions.go b/release/api_content_collection_versions.go index 6626554a..3067daac 100644 --- a/release/api_content_collection_versions.go +++ b/release/api_content_collection_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" @@ -29,18 +29,18 @@ type ContentCollectionVersionsApiService service type ContentCollectionVersionsApiContentAnsibleCollectionVersionsCreateRequest struct { ctx context.Context ApiService *ContentCollectionVersionsApiService - artifact *string + repository *string upload *string file *os.File - repository *string + artifact *string expectedName *string expectedNamespace *string expectedVersion *string } -// Artifact file representing the physical content -func (r ContentCollectionVersionsApiContentAnsibleCollectionVersionsCreateRequest) Artifact(artifact string) ContentCollectionVersionsApiContentAnsibleCollectionVersionsCreateRequest { - r.artifact = &artifact +// A URI of a repository the new content unit should be associated with. +func (r ContentCollectionVersionsApiContentAnsibleCollectionVersionsCreateRequest) Repository(repository string) ContentCollectionVersionsApiContentAnsibleCollectionVersionsCreateRequest { + r.repository = &repository return r } @@ -56,9 +56,9 @@ func (r ContentCollectionVersionsApiContentAnsibleCollectionVersionsCreateReques return r } -// A URI of a repository the new content unit should be associated with. -func (r ContentCollectionVersionsApiContentAnsibleCollectionVersionsCreateRequest) Repository(repository string) ContentCollectionVersionsApiContentAnsibleCollectionVersionsCreateRequest { - r.repository = &repository +// Artifact file representing the physical content +func (r ContentCollectionVersionsApiContentAnsibleCollectionVersionsCreateRequest) Artifact(artifact string) ContentCollectionVersionsApiContentAnsibleCollectionVersionsCreateRequest { + r.artifact = &artifact return r } @@ -136,8 +136,8 @@ func (a *ContentCollectionVersionsApiService) ContentAnsibleCollectionVersionsCr if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.artifact != nil { - parameterAddToHeaderOrQuery(localVarFormParams, "artifact", r.artifact, "") + if r.repository != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "repository", r.repository, "") } if r.upload != nil { parameterAddToHeaderOrQuery(localVarFormParams, "upload", r.upload, "") @@ -159,8 +159,8 @@ func (a *ContentCollectionVersionsApiService) ContentAnsibleCollectionVersionsCr fileLocalVarFile.Close() formFiles = append(formFiles, formFile{fileBytes: fileLocalVarFileBytes, fileName: fileLocalVarFileName, formFileName: fileLocalVarFormFileName}) } - if r.repository != nil { - parameterAddToHeaderOrQuery(localVarFormParams, "repository", r.repository, "") + if r.artifact != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "artifact", r.artifact, "") } if r.expectedName != nil { parameterAddToHeaderOrQuery(localVarFormParams, "expected_name", r.expectedName, "") diff --git a/release/api_content_commits.go b/release/api_content_commits.go index 62bcefe0..7e80f9b9 100644 --- a/release/api_content_commits.go +++ b/release/api_content_commits.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_configs.go b/release/api_content_configs.go index 4e0742c7..a065f1eb 100644 --- a/release/api_content_configs.go +++ b/release/api_content_configs.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_content.go b/release/api_content_content.go index 2e12e84c..3ca30633 100644 --- a/release/api_content_content.go +++ b/release/api_content_content.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_distribution_trees.go b/release/api_content_distribution_trees.go index ea4434ba..e1c2a7c1 100644 --- a/release/api_content_distribution_trees.go +++ b/release/api_content_distribution_trees.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_files.go b/release/api_content_files.go index aa956d12..df46e139 100644 --- a/release/api_content_files.go +++ b/release/api_content_files.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_generic_contents.go b/release/api_content_generic_contents.go index c79f82bc..4f650da5 100644 --- a/release/api_content_generic_contents.go +++ b/release/api_content_generic_contents.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_installer_file_indices.go b/release/api_content_installer_file_indices.go index 14fb5fe5..3905da3a 100644 --- a/release/api_content_installer_file_indices.go +++ b/release/api_content_installer_file_indices.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_installer_packages.go b/release/api_content_installer_packages.go index 51e29943..c346173c 100644 --- a/release/api_content_installer_packages.go +++ b/release/api_content_installer_packages.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_manifests.go b/release/api_content_manifests.go index 4a33c0bd..01d7d581 100644 --- a/release/api_content_manifests.go +++ b/release/api_content_manifests.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_modulemd_defaults.go b/release/api_content_modulemd_defaults.go index 43ee12dc..8d0dd679 100644 --- a/release/api_content_modulemd_defaults.go +++ b/release/api_content_modulemd_defaults.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_modulemd_obsoletes.go b/release/api_content_modulemd_obsoletes.go index 23da6dbd..02d7f16c 100644 --- a/release/api_content_modulemd_obsoletes.go +++ b/release/api_content_modulemd_obsoletes.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_modulemds.go b/release/api_content_modulemds.go index 92bbbf47..da80d2d7 100644 --- a/release/api_content_modulemds.go +++ b/release/api_content_modulemds.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_namespaces.go b/release/api_content_namespaces.go new file mode 100644 index 00000000..b2d6a3af --- /dev/null +++ b/release/api_content_namespaces.go @@ -0,0 +1,619 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + "reflect" +) + + +// ContentNamespacesApiService ContentNamespacesApi service +type ContentNamespacesApiService service + +type ContentNamespacesApiContentAnsibleNamespacesAvatarRequest struct { + ctx context.Context + ApiService *ContentNamespacesApiService + ansibleAnsibleNamespaceMetadataHref string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r ContentNamespacesApiContentAnsibleNamespacesAvatarRequest) Fields(fields []string) ContentNamespacesApiContentAnsibleNamespacesAvatarRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r ContentNamespacesApiContentAnsibleNamespacesAvatarRequest) ExcludeFields(excludeFields []string) ContentNamespacesApiContentAnsibleNamespacesAvatarRequest { + r.excludeFields = &excludeFields + return r +} + +func (r ContentNamespacesApiContentAnsibleNamespacesAvatarRequest) Execute() (*http.Response, error) { + return r.ApiService.ContentAnsibleNamespacesAvatarExecute(r) +} + +/* +ContentAnsibleNamespacesAvatar Method for ContentAnsibleNamespacesAvatar + +Get the logo for the this namespace. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleAnsibleNamespaceMetadataHref + @return ContentNamespacesApiContentAnsibleNamespacesAvatarRequest +*/ +func (a *ContentNamespacesApiService) ContentAnsibleNamespacesAvatar(ctx context.Context, ansibleAnsibleNamespaceMetadataHref string) ContentNamespacesApiContentAnsibleNamespacesAvatarRequest { + return ContentNamespacesApiContentAnsibleNamespacesAvatarRequest{ + ApiService: a, + ctx: ctx, + ansibleAnsibleNamespaceMetadataHref: ansibleAnsibleNamespaceMetadataHref, + } +} + +// Execute executes the request +func (a *ContentNamespacesApiService) ContentAnsibleNamespacesAvatarExecute(r ContentNamespacesApiContentAnsibleNamespacesAvatarRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ContentNamespacesApiService.ContentAnsibleNamespacesAvatar") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_ansible_namespace_metadata_href}avatar/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_ansible_namespace_metadata_href"+"}", url.PathEscape(parameterValueToString(r.ansibleAnsibleNamespaceMetadataHref, "ansibleAnsibleNamespaceMetadataHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 302 { + var v map[string]interface{} + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ContentNamespacesApiContentAnsibleNamespacesListRequest struct { + ctx context.Context + ApiService *ContentNamespacesApiService + company *string + companyContains *string + companyIcontains *string + companyIn *[]string + companyStartswith *string + limit *int32 + metadataSha256 *string + metadataSha256In *[]string + name *string + nameContains *string + nameIcontains *string + nameIn *[]string + nameStartswith *string + offset *int32 + ordering *[]string + repositoryVersion *string + repositoryVersionAdded *string + repositoryVersionRemoved *string + fields *[]string + excludeFields *[]string +} + +// Filter results where company matches value +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) Company(company string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.company = &company + return r +} + +// Filter results where company contains value +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) CompanyContains(companyContains string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.companyContains = &companyContains + return r +} + +// Filter results where company contains value +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) CompanyIcontains(companyIcontains string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.companyIcontains = &companyIcontains + return r +} + +// Filter results where company is in a comma-separated list of values +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) CompanyIn(companyIn []string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.companyIn = &companyIn + return r +} + +// Filter results where company starts with value +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) CompanyStartswith(companyStartswith string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.companyStartswith = &companyStartswith + return r +} + +// Number of results to return per page. +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) Limit(limit int32) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.limit = &limit + return r +} + +// Filter results where metadata_sha256 matches value +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) MetadataSha256(metadataSha256 string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.metadataSha256 = &metadataSha256 + return r +} + +// Filter results where metadata_sha256 is in a comma-separated list of values +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) MetadataSha256In(metadataSha256In []string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.metadataSha256In = &metadataSha256In + return r +} + +// Filter results where name matches value +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) Name(name string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.name = &name + return r +} + +// Filter results where name contains value +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) NameContains(nameContains string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.nameContains = &nameContains + return r +} + +// Filter results where name contains value +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) NameIcontains(nameIcontains string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.nameIcontains = &nameIcontains + return r +} + +// Filter results where name is in a comma-separated list of values +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) NameIn(nameIn []string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.nameIn = &nameIn + return r +} + +// Filter results where name starts with value +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) NameStartswith(nameStartswith string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.nameStartswith = &nameStartswith + return r +} + +// The initial index from which to return the results. +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) Offset(offset int32) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.offset = &offset + return r +} + +// Ordering +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) Ordering(ordering []string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.ordering = &ordering + return r +} + +// Repository Version referenced by HREF +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) RepositoryVersion(repositoryVersion string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.repositoryVersion = &repositoryVersion + return r +} + +// Repository Version referenced by HREF +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) RepositoryVersionAdded(repositoryVersionAdded string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.repositoryVersionAdded = &repositoryVersionAdded + return r +} + +// Repository Version referenced by HREF +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) RepositoryVersionRemoved(repositoryVersionRemoved string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.repositoryVersionRemoved = &repositoryVersionRemoved + return r +} + +// A list of fields to include in the response. +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) Fields(fields []string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) ExcludeFields(excludeFields []string) ContentNamespacesApiContentAnsibleNamespacesListRequest { + r.excludeFields = &excludeFields + return r +} + +func (r ContentNamespacesApiContentAnsibleNamespacesListRequest) Execute() (*PaginatedansibleAnsibleNamespaceMetadataResponseList, *http.Response, error) { + return r.ApiService.ContentAnsibleNamespacesListExecute(r) +} + +/* +ContentAnsibleNamespacesList List ansible namespace metadatas + +ViewSet for AnsibleNamespace. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ContentNamespacesApiContentAnsibleNamespacesListRequest +*/ +func (a *ContentNamespacesApiService) ContentAnsibleNamespacesList(ctx context.Context) ContentNamespacesApiContentAnsibleNamespacesListRequest { + return ContentNamespacesApiContentAnsibleNamespacesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedansibleAnsibleNamespaceMetadataResponseList +func (a *ContentNamespacesApiService) ContentAnsibleNamespacesListExecute(r ContentNamespacesApiContentAnsibleNamespacesListRequest) (*PaginatedansibleAnsibleNamespaceMetadataResponseList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedansibleAnsibleNamespaceMetadataResponseList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ContentNamespacesApiService.ContentAnsibleNamespacesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp/api/v3/content/ansible/namespaces/" + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.company != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company", r.company, "") + } + if r.companyContains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__contains", r.companyContains, "") + } + if r.companyIcontains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__icontains", r.companyIcontains, "") + } + if r.companyIn != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__in", r.companyIn, "csv") + } + if r.companyStartswith != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__startswith", r.companyStartswith, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.metadataSha256 != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metadata_sha256", r.metadataSha256, "") + } + if r.metadataSha256In != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metadata_sha256__in", r.metadataSha256In, "csv") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "") + } + if r.nameContains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__contains", r.nameContains, "") + } + if r.nameIcontains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__icontains", r.nameIcontains, "") + } + if r.nameIn != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__in", r.nameIn, "csv") + } + if r.nameStartswith != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__startswith", r.nameStartswith, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "csv") + } + if r.repositoryVersion != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository_version", r.repositoryVersion, "") + } + if r.repositoryVersionAdded != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository_version_added", r.repositoryVersionAdded, "") + } + if r.repositoryVersionRemoved != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository_version_removed", r.repositoryVersionRemoved, "") + } + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ContentNamespacesApiContentAnsibleNamespacesReadRequest struct { + ctx context.Context + ApiService *ContentNamespacesApiService + ansibleAnsibleNamespaceMetadataHref string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r ContentNamespacesApiContentAnsibleNamespacesReadRequest) Fields(fields []string) ContentNamespacesApiContentAnsibleNamespacesReadRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r ContentNamespacesApiContentAnsibleNamespacesReadRequest) ExcludeFields(excludeFields []string) ContentNamespacesApiContentAnsibleNamespacesReadRequest { + r.excludeFields = &excludeFields + return r +} + +func (r ContentNamespacesApiContentAnsibleNamespacesReadRequest) Execute() (*AnsibleAnsibleNamespaceMetadataResponse, *http.Response, error) { + return r.ApiService.ContentAnsibleNamespacesReadExecute(r) +} + +/* +ContentAnsibleNamespacesRead Inspect an ansible namespace metadata + +ViewSet for AnsibleNamespace. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleAnsibleNamespaceMetadataHref + @return ContentNamespacesApiContentAnsibleNamespacesReadRequest +*/ +func (a *ContentNamespacesApiService) ContentAnsibleNamespacesRead(ctx context.Context, ansibleAnsibleNamespaceMetadataHref string) ContentNamespacesApiContentAnsibleNamespacesReadRequest { + return ContentNamespacesApiContentAnsibleNamespacesReadRequest{ + ApiService: a, + ctx: ctx, + ansibleAnsibleNamespaceMetadataHref: ansibleAnsibleNamespaceMetadataHref, + } +} + +// Execute executes the request +// @return AnsibleAnsibleNamespaceMetadataResponse +func (a *ContentNamespacesApiService) ContentAnsibleNamespacesReadExecute(r ContentNamespacesApiContentAnsibleNamespacesReadRequest) (*AnsibleAnsibleNamespaceMetadataResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnsibleAnsibleNamespaceMetadataResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ContentNamespacesApiService.ContentAnsibleNamespacesRead") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_ansible_namespace_metadata_href}" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_ansible_namespace_metadata_href"+"}", url.PathEscape(parameterValueToString(r.ansibleAnsibleNamespaceMetadataHref, "ansibleAnsibleNamespaceMetadataHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/release/api_content_objects.go b/release/api_content_objects.go index 766f4782..62141802 100644 --- a/release/api_content_objects.go +++ b/release/api_content_objects.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_package_indices.go b/release/api_content_package_indices.go index 715b3f88..f4f46509 100644 --- a/release/api_content_package_indices.go +++ b/release/api_content_package_indices.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_package_release_components.go b/release/api_content_package_release_components.go index 9aa1de45..5a615477 100644 --- a/release/api_content_package_release_components.go +++ b/release/api_content_package_release_components.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_packagecategories.go b/release/api_content_packagecategories.go index 2e1d6d1f..4c298755 100644 --- a/release/api_content_packagecategories.go +++ b/release/api_content_packagecategories.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_packageenvironments.go b/release/api_content_packageenvironments.go index 1327c8b2..c98c73e0 100644 --- a/release/api_content_packageenvironments.go +++ b/release/api_content_packageenvironments.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_packagegroups.go b/release/api_content_packagegroups.go index 82d2cfac..5e59f0e3 100644 --- a/release/api_content_packagegroups.go +++ b/release/api_content_packagegroups.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_packagelangpacks.go b/release/api_content_packagelangpacks.go index a29421b6..209d6e11 100644 --- a/release/api_content_packagelangpacks.go +++ b/release/api_content_packagelangpacks.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_packages.go b/release/api_content_packages.go index a0bb76d6..1719c599 100644 --- a/release/api_content_packages.go +++ b/release/api_content_packages.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_refs.go b/release/api_content_refs.go index d8d5ed5d..63b1b5fd 100644 --- a/release/api_content_refs.go +++ b/release/api_content_refs.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_release_architectures.go b/release/api_content_release_architectures.go index c52ec420..03fc0d24 100644 --- a/release/api_content_release_architectures.go +++ b/release/api_content_release_architectures.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_release_components.go b/release/api_content_release_components.go index 1a06031c..f556de20 100644 --- a/release/api_content_release_components.go +++ b/release/api_content_release_components.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_release_files.go b/release/api_content_release_files.go index 6d6f3576..286a6850 100644 --- a/release/api_content_release_files.go +++ b/release/api_content_release_files.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_releases.go b/release/api_content_releases.go index 3dfecbab..4c5abd16 100644 --- a/release/api_content_releases.go +++ b/release/api_content_releases.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_repo_metadata_files.go b/release/api_content_repo_metadata_files.go index 510e02c3..db3e813c 100644 --- a/release/api_content_repo_metadata_files.go +++ b/release/api_content_repo_metadata_files.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_roles.go b/release/api_content_roles.go index ea8939b8..0ec903ea 100644 --- a/release/api_content_roles.go +++ b/release/api_content_roles.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_signatures.go b/release/api_content_signatures.go index 080ce08b..68b24093 100644 --- a/release/api_content_signatures.go +++ b/release/api_content_signatures.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_summaries.go b/release/api_content_summaries.go index 6864c9a1..618ebb53 100644 --- a/release/api_content_summaries.go +++ b/release/api_content_summaries.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_content_tags.go b/release/api_content_tags.go index 4243b9dc..c34f1530 100644 --- a/release/api_content_tags.go +++ b/release/api_content_tags.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_contentguards.go b/release/api_contentguards.go index ab57a2ba..cd6e5922 100644 --- a/release/api_contentguards.go +++ b/release/api_contentguards.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_contentguards_content_redirect.go b/release/api_contentguards_content_redirect.go index f385bc70..efd7ea3c 100644 --- a/release/api_contentguards_content_redirect.go +++ b/release/api_contentguards_content_redirect.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_contentguards_rbac.go b/release/api_contentguards_rbac.go index 0fd9cbd4..a972aa32 100644 --- a/release/api_contentguards_rbac.go +++ b/release/api_contentguards_rbac.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_contentguards_rhsm.go b/release/api_contentguards_rhsm.go index 1df08acb..daab8e58 100644 --- a/release/api_contentguards_rhsm.go +++ b/release/api_contentguards_rhsm.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_contentguards_x509.go b/release/api_contentguards_x509.go index 05a389b2..9274e91f 100644 --- a/release/api_contentguards_x509.go +++ b/release/api_contentguards_x509.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_deb_copy.go b/release/api_deb_copy.go index 7406a7a0..f7c422c1 100644 --- a/release/api_deb_copy.go +++ b/release/api_deb_copy.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_distributions.go b/release/api_distributions.go index 878502eb..be2b1630 100644 --- a/release/api_distributions.go +++ b/release/api_distributions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_distributions_ansible.go b/release/api_distributions_ansible.go index fead88f7..471fa2ce 100644 --- a/release/api_distributions_ansible.go +++ b/release/api_distributions_ansible.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" @@ -25,6 +25,121 @@ import ( // DistributionsAnsibleApiService DistributionsAnsibleApi service type DistributionsAnsibleApiService service +type DistributionsAnsibleApiDistributionsAnsibleAnsibleAddRoleRequest struct { + ctx context.Context + ApiService *DistributionsAnsibleApiService + ansibleAnsibleDistributionHref string + nestedRole *NestedRole +} + +func (r DistributionsAnsibleApiDistributionsAnsibleAnsibleAddRoleRequest) NestedRole(nestedRole NestedRole) DistributionsAnsibleApiDistributionsAnsibleAnsibleAddRoleRequest { + r.nestedRole = &nestedRole + return r +} + +func (r DistributionsAnsibleApiDistributionsAnsibleAnsibleAddRoleRequest) Execute() (*NestedRoleResponse, *http.Response, error) { + return r.ApiService.DistributionsAnsibleAnsibleAddRoleExecute(r) +} + +/* +DistributionsAnsibleAnsibleAddRole Method for DistributionsAnsibleAnsibleAddRole + +Add a role for this object to users/groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleAnsibleDistributionHref + @return DistributionsAnsibleApiDistributionsAnsibleAnsibleAddRoleRequest +*/ +func (a *DistributionsAnsibleApiService) DistributionsAnsibleAnsibleAddRole(ctx context.Context, ansibleAnsibleDistributionHref string) DistributionsAnsibleApiDistributionsAnsibleAnsibleAddRoleRequest { + return DistributionsAnsibleApiDistributionsAnsibleAnsibleAddRoleRequest{ + ApiService: a, + ctx: ctx, + ansibleAnsibleDistributionHref: ansibleAnsibleDistributionHref, + } +} + +// Execute executes the request +// @return NestedRoleResponse +func (a *DistributionsAnsibleApiService) DistributionsAnsibleAnsibleAddRoleExecute(r DistributionsAnsibleApiDistributionsAnsibleAnsibleAddRoleRequest) (*NestedRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NestedRoleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DistributionsAnsibleApiService.DistributionsAnsibleAnsibleAddRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_ansible_distribution_href}add_role/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_ansible_distribution_href"+"}", url.PathEscape(parameterValueToString(r.ansibleAnsibleDistributionHref, "ansibleAnsibleDistributionHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.nestedRole == nil { + return localVarReturnValue, nil, reportError("nestedRole is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.nestedRole + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type DistributionsAnsibleApiDistributionsAnsibleAnsibleCreateRequest struct { ctx context.Context ApiService *DistributionsAnsibleApiService @@ -532,6 +647,286 @@ func (a *DistributionsAnsibleApiService) DistributionsAnsibleAnsibleListExecute( return localVarReturnValue, localVarHTTPResponse, nil } +type DistributionsAnsibleApiDistributionsAnsibleAnsibleListRolesRequest struct { + ctx context.Context + ApiService *DistributionsAnsibleApiService + ansibleAnsibleDistributionHref string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r DistributionsAnsibleApiDistributionsAnsibleAnsibleListRolesRequest) Fields(fields []string) DistributionsAnsibleApiDistributionsAnsibleAnsibleListRolesRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r DistributionsAnsibleApiDistributionsAnsibleAnsibleListRolesRequest) ExcludeFields(excludeFields []string) DistributionsAnsibleApiDistributionsAnsibleAnsibleListRolesRequest { + r.excludeFields = &excludeFields + return r +} + +func (r DistributionsAnsibleApiDistributionsAnsibleAnsibleListRolesRequest) Execute() (*ObjectRolesResponse, *http.Response, error) { + return r.ApiService.DistributionsAnsibleAnsibleListRolesExecute(r) +} + +/* +DistributionsAnsibleAnsibleListRoles Method for DistributionsAnsibleAnsibleListRoles + +List roles assigned to this object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleAnsibleDistributionHref + @return DistributionsAnsibleApiDistributionsAnsibleAnsibleListRolesRequest +*/ +func (a *DistributionsAnsibleApiService) DistributionsAnsibleAnsibleListRoles(ctx context.Context, ansibleAnsibleDistributionHref string) DistributionsAnsibleApiDistributionsAnsibleAnsibleListRolesRequest { + return DistributionsAnsibleApiDistributionsAnsibleAnsibleListRolesRequest{ + ApiService: a, + ctx: ctx, + ansibleAnsibleDistributionHref: ansibleAnsibleDistributionHref, + } +} + +// Execute executes the request +// @return ObjectRolesResponse +func (a *DistributionsAnsibleApiService) DistributionsAnsibleAnsibleListRolesExecute(r DistributionsAnsibleApiDistributionsAnsibleAnsibleListRolesRequest) (*ObjectRolesResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectRolesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DistributionsAnsibleApiService.DistributionsAnsibleAnsibleListRoles") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_ansible_distribution_href}list_roles/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_ansible_distribution_href"+"}", url.PathEscape(parameterValueToString(r.ansibleAnsibleDistributionHref, "ansibleAnsibleDistributionHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type DistributionsAnsibleApiDistributionsAnsibleAnsibleMyPermissionsRequest struct { + ctx context.Context + ApiService *DistributionsAnsibleApiService + ansibleAnsibleDistributionHref string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r DistributionsAnsibleApiDistributionsAnsibleAnsibleMyPermissionsRequest) Fields(fields []string) DistributionsAnsibleApiDistributionsAnsibleAnsibleMyPermissionsRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r DistributionsAnsibleApiDistributionsAnsibleAnsibleMyPermissionsRequest) ExcludeFields(excludeFields []string) DistributionsAnsibleApiDistributionsAnsibleAnsibleMyPermissionsRequest { + r.excludeFields = &excludeFields + return r +} + +func (r DistributionsAnsibleApiDistributionsAnsibleAnsibleMyPermissionsRequest) Execute() (*MyPermissionsResponse, *http.Response, error) { + return r.ApiService.DistributionsAnsibleAnsibleMyPermissionsExecute(r) +} + +/* +DistributionsAnsibleAnsibleMyPermissions Method for DistributionsAnsibleAnsibleMyPermissions + +List permissions available to the current user on this object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleAnsibleDistributionHref + @return DistributionsAnsibleApiDistributionsAnsibleAnsibleMyPermissionsRequest +*/ +func (a *DistributionsAnsibleApiService) DistributionsAnsibleAnsibleMyPermissions(ctx context.Context, ansibleAnsibleDistributionHref string) DistributionsAnsibleApiDistributionsAnsibleAnsibleMyPermissionsRequest { + return DistributionsAnsibleApiDistributionsAnsibleAnsibleMyPermissionsRequest{ + ApiService: a, + ctx: ctx, + ansibleAnsibleDistributionHref: ansibleAnsibleDistributionHref, + } +} + +// Execute executes the request +// @return MyPermissionsResponse +func (a *DistributionsAnsibleApiService) DistributionsAnsibleAnsibleMyPermissionsExecute(r DistributionsAnsibleApiDistributionsAnsibleAnsibleMyPermissionsRequest) (*MyPermissionsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MyPermissionsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DistributionsAnsibleApiService.DistributionsAnsibleAnsibleMyPermissions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_ansible_distribution_href}my_permissions/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_ansible_distribution_href"+"}", url.PathEscape(parameterValueToString(r.ansibleAnsibleDistributionHref, "ansibleAnsibleDistributionHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type DistributionsAnsibleApiDistributionsAnsibleAnsiblePartialUpdateRequest struct { ctx context.Context ApiService *DistributionsAnsibleApiService @@ -787,6 +1182,121 @@ func (a *DistributionsAnsibleApiService) DistributionsAnsibleAnsibleReadExecute( return localVarReturnValue, localVarHTTPResponse, nil } +type DistributionsAnsibleApiDistributionsAnsibleAnsibleRemoveRoleRequest struct { + ctx context.Context + ApiService *DistributionsAnsibleApiService + ansibleAnsibleDistributionHref string + nestedRole *NestedRole +} + +func (r DistributionsAnsibleApiDistributionsAnsibleAnsibleRemoveRoleRequest) NestedRole(nestedRole NestedRole) DistributionsAnsibleApiDistributionsAnsibleAnsibleRemoveRoleRequest { + r.nestedRole = &nestedRole + return r +} + +func (r DistributionsAnsibleApiDistributionsAnsibleAnsibleRemoveRoleRequest) Execute() (*NestedRoleResponse, *http.Response, error) { + return r.ApiService.DistributionsAnsibleAnsibleRemoveRoleExecute(r) +} + +/* +DistributionsAnsibleAnsibleRemoveRole Method for DistributionsAnsibleAnsibleRemoveRole + +Remove a role for this object from users/groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleAnsibleDistributionHref + @return DistributionsAnsibleApiDistributionsAnsibleAnsibleRemoveRoleRequest +*/ +func (a *DistributionsAnsibleApiService) DistributionsAnsibleAnsibleRemoveRole(ctx context.Context, ansibleAnsibleDistributionHref string) DistributionsAnsibleApiDistributionsAnsibleAnsibleRemoveRoleRequest { + return DistributionsAnsibleApiDistributionsAnsibleAnsibleRemoveRoleRequest{ + ApiService: a, + ctx: ctx, + ansibleAnsibleDistributionHref: ansibleAnsibleDistributionHref, + } +} + +// Execute executes the request +// @return NestedRoleResponse +func (a *DistributionsAnsibleApiService) DistributionsAnsibleAnsibleRemoveRoleExecute(r DistributionsAnsibleApiDistributionsAnsibleAnsibleRemoveRoleRequest) (*NestedRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NestedRoleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DistributionsAnsibleApiService.DistributionsAnsibleAnsibleRemoveRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_ansible_distribution_href}remove_role/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_ansible_distribution_href"+"}", url.PathEscape(parameterValueToString(r.ansibleAnsibleDistributionHref, "ansibleAnsibleDistributionHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.nestedRole == nil { + return localVarReturnValue, nil, reportError("nestedRole is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.nestedRole + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type DistributionsAnsibleApiDistributionsAnsibleAnsibleUpdateRequest struct { ctx context.Context ApiService *DistributionsAnsibleApiService diff --git a/release/api_distributions_apt.go b/release/api_distributions_apt.go index f15bf3c9..322313f6 100644 --- a/release/api_distributions_apt.go +++ b/release/api_distributions_apt.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_distributions_artifacts.go b/release/api_distributions_artifacts.go index 73fdb106..143384e0 100644 --- a/release/api_distributions_artifacts.go +++ b/release/api_distributions_artifacts.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_distributions_container.go b/release/api_distributions_container.go index b40f9d13..0a40112f 100644 --- a/release/api_distributions_container.go +++ b/release/api_distributions_container.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_distributions_file.go b/release/api_distributions_file.go index d4560a6b..26554ad1 100644 --- a/release/api_distributions_file.go +++ b/release/api_distributions_file.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_distributions_maven.go b/release/api_distributions_maven.go index c687aff9..7142cd1a 100644 --- a/release/api_distributions_maven.go +++ b/release/api_distributions_maven.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_distributions_ostree.go b/release/api_distributions_ostree.go index 9e57bb70..2333a6c8 100644 --- a/release/api_distributions_ostree.go +++ b/release/api_distributions_ostree.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_distributions_pypi.go b/release/api_distributions_pypi.go index 3cca2c90..bf57a3cf 100644 --- a/release/api_distributions_pypi.go +++ b/release/api_distributions_pypi.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_distributions_rpm.go b/release/api_distributions_rpm.go index 08b4cb48..5c1fa4a3 100644 --- a/release/api_distributions_rpm.go +++ b/release/api_distributions_rpm.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_docs_api_json.go b/release/api_docs_api_json.go index 745ed91b..e8a7dae6 100644 --- a/release/api_docs_api_json.go +++ b/release/api_docs_api_json.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_docs_api_yaml.go b/release/api_docs_api_yaml.go index 7850075b..744cb806 100644 --- a/release/api_docs_api_yaml.go +++ b/release/api_docs_api_yaml.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_domains.go b/release/api_domains.go index 3db158ca..b254bac6 100644 --- a/release/api_domains.go +++ b/release/api_domains.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_exporters_filesystem.go b/release/api_exporters_filesystem.go index 7d9b554e..8cebbeda 100644 --- a/release/api_exporters_filesystem.go +++ b/release/api_exporters_filesystem.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_exporters_filesystem_exports.go b/release/api_exporters_filesystem_exports.go index 1d85e9ad..c994d565 100644 --- a/release/api_exporters_filesystem_exports.go +++ b/release/api_exporters_filesystem_exports.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_exporters_pulp.go b/release/api_exporters_pulp.go index 99d2c879..dedd2e37 100644 --- a/release/api_exporters_pulp.go +++ b/release/api_exporters_pulp.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_exporters_pulp_exports.go b/release/api_exporters_pulp_exports.go index 9e3f7e2a..d5f93b49 100644 --- a/release/api_exporters_pulp_exports.go +++ b/release/api_exporters_pulp_exports.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_galaxy_detail.go b/release/api_galaxy_detail.go index cefee59d..d8d8e4af 100644 --- a/release/api_galaxy_detail.go +++ b/release/api_galaxy_detail.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_groups.go b/release/api_groups.go index 6d9df8a6..10570111 100644 --- a/release/api_groups.go +++ b/release/api_groups.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_groups_roles.go b/release/api_groups_roles.go index b38ddb42..3c8a3ff5 100644 --- a/release/api_groups_roles.go +++ b/release/api_groups_roles.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_groups_users.go b/release/api_groups_users.go index 7f50a707..7cbb0220 100644 --- a/release/api_groups_users.go +++ b/release/api_groups_users.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_importers_pulp.go b/release/api_importers_pulp.go index 212ff617..a5264991 100644 --- a/release/api_importers_pulp.go +++ b/release/api_importers_pulp.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_importers_pulp_import_check.go b/release/api_importers_pulp_import_check.go index 68476e0d..2fe72a52 100644 --- a/release/api_importers_pulp_import_check.go +++ b/release/api_importers_pulp_import_check.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_importers_pulp_imports.go b/release/api_importers_pulp_imports.go index 9d026f15..3e7bf847 100644 --- a/release/api_importers_pulp_imports.go +++ b/release/api_importers_pulp_imports.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_orphans.go b/release/api_orphans.go index ec3d5b27..ea0314e2 100644 --- a/release/api_orphans.go +++ b/release/api_orphans.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_orphans_cleanup.go b/release/api_orphans_cleanup.go index 28d98a41..a944d2ec 100644 --- a/release/api_orphans_cleanup.go +++ b/release/api_orphans_cleanup.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_publications.go b/release/api_publications.go index af81f816..10ee33a9 100644 --- a/release/api_publications.go +++ b/release/api_publications.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_publications_apt.go b/release/api_publications_apt.go index 6be8516b..e26bb1df 100644 --- a/release/api_publications_apt.go +++ b/release/api_publications_apt.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_publications_file.go b/release/api_publications_file.go index 1b84be89..5794833b 100644 --- a/release/api_publications_file.go +++ b/release/api_publications_file.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_publications_pypi.go b/release/api_publications_pypi.go index 0ad143da..eaef64be 100644 --- a/release/api_publications_pypi.go +++ b/release/api_publications_pypi.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_publications_rpm.go b/release/api_publications_rpm.go index c0d3ecce..d96a49f2 100644 --- a/release/api_publications_rpm.go +++ b/release/api_publications_rpm.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_publications_verbatim.go b/release/api_publications_verbatim.go index 2710737e..ad68f3d8 100644 --- a/release/api_publications_verbatim.go +++ b/release/api_publications_verbatim.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api.go b/release/api_pulp_ansible_api.go index 2a3b25d3..0aad5c7d 100644 --- a/release/api_pulp_ansible_api.go +++ b/release/api_pulp_ansible_api.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v2_collections_versions.go b/release/api_pulp_ansible_api_v2_collections_versions.go index 2be90cd7..91ceba3a 100644 --- a/release/api_pulp_ansible_api_v2_collections_versions.go +++ b/release/api_pulp_ansible_api_v2_collections_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v3.go b/release/api_pulp_ansible_api_v3.go index e78b3e62..0cef1cf2 100644 --- a/release/api_pulp_ansible_api_v3.go +++ b/release/api_pulp_ansible_api_v3.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v3_artifacts_collections.go b/release/api_pulp_ansible_api_v3_artifacts_collections.go index 51946e2b..bf71f26f 100644 --- a/release/api_pulp_ansible_api_v3_artifacts_collections.go +++ b/release/api_pulp_ansible_api_v3_artifacts_collections.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v3_collection_versions_all.go b/release/api_pulp_ansible_api_v3_collection_versions_all.go index 3505157c..ad4636f2 100644 --- a/release/api_pulp_ansible_api_v3_collection_versions_all.go +++ b/release/api_pulp_ansible_api_v3_collection_versions_all.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v3_collections.go b/release/api_pulp_ansible_api_v3_collections.go index 5a139d75..ac7bdcec 100644 --- a/release/api_pulp_ansible_api_v3_collections.go +++ b/release/api_pulp_ansible_api_v3_collections.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v3_collections_all.go b/release/api_pulp_ansible_api_v3_collections_all.go index daac4613..9e31dbb1 100644 --- a/release/api_pulp_ansible_api_v3_collections_all.go +++ b/release/api_pulp_ansible_api_v3_collections_all.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v3_collections_versions.go b/release/api_pulp_ansible_api_v3_collections_versions.go index f3523772..97b98c0e 100644 --- a/release/api_pulp_ansible_api_v3_collections_versions.go +++ b/release/api_pulp_ansible_api_v3_collections_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v3_collections_versions_docs_blob.go b/release/api_pulp_ansible_api_v3_collections_versions_docs_blob.go index 2d14e536..7541f8e6 100644 --- a/release/api_pulp_ansible_api_v3_collections_versions_docs_blob.go +++ b/release/api_pulp_ansible_api_v3_collections_versions_docs_blob.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v3_namespaces.go b/release/api_pulp_ansible_api_v3_namespaces.go new file mode 100644 index 00000000..c83bcc2d --- /dev/null +++ b/release/api_pulp_ansible_api_v3_namespaces.go @@ -0,0 +1,468 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + "reflect" +) + + +// PulpAnsibleApiV3NamespacesApiService PulpAnsibleApiV3NamespacesApi service +type PulpAnsibleApiV3NamespacesApiService service + +type PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest struct { + ctx context.Context + ApiService *PulpAnsibleApiV3NamespacesApiService + path string + company *string + companyContains *string + companyIcontains *string + companyIn *[]string + companyStartswith *string + limit *int32 + metadataSha256 *string + metadataSha256In *[]string + name *string + nameContains *string + nameIcontains *string + nameIn *[]string + nameStartswith *string + offset *int32 + ordering *[]string + fields *[]string + excludeFields *[]string +} + +// Filter results where company matches value +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) Company(company string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.company = &company + return r +} + +// Filter results where company contains value +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) CompanyContains(companyContains string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.companyContains = &companyContains + return r +} + +// Filter results where company contains value +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) CompanyIcontains(companyIcontains string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.companyIcontains = &companyIcontains + return r +} + +// Filter results where company is in a comma-separated list of values +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) CompanyIn(companyIn []string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.companyIn = &companyIn + return r +} + +// Filter results where company starts with value +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) CompanyStartswith(companyStartswith string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.companyStartswith = &companyStartswith + return r +} + +// Number of results to return per page. +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) Limit(limit int32) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.limit = &limit + return r +} + +// Filter results where metadata_sha256 matches value +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) MetadataSha256(metadataSha256 string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.metadataSha256 = &metadataSha256 + return r +} + +// Filter results where metadata_sha256 is in a comma-separated list of values +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) MetadataSha256In(metadataSha256In []string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.metadataSha256In = &metadataSha256In + return r +} + +// Filter results where name matches value +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) Name(name string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.name = &name + return r +} + +// Filter results where name contains value +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) NameContains(nameContains string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.nameContains = &nameContains + return r +} + +// Filter results where name contains value +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) NameIcontains(nameIcontains string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.nameIcontains = &nameIcontains + return r +} + +// Filter results where name is in a comma-separated list of values +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) NameIn(nameIn []string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.nameIn = &nameIn + return r +} + +// Filter results where name starts with value +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) NameStartswith(nameStartswith string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.nameStartswith = &nameStartswith + return r +} + +// The initial index from which to return the results. +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) Offset(offset int32) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.offset = &offset + return r +} + +// Ordering +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) Ordering(ordering []string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.ordering = &ordering + return r +} + +// A list of fields to include in the response. +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) Fields(fields []string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) ExcludeFields(excludeFields []string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + r.excludeFields = &excludeFields + return r +} + +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) Execute() (*PaginatedansibleAnsibleNamespaceMetadataResponseList, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyApiV3NamespacesListExecute(r) +} + +/* +PulpAnsibleGalaxyApiV3NamespacesList Method for PulpAnsibleGalaxyApiV3NamespacesList + +Legacy v3 endpoint. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param path + @return PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest + +Deprecated +*/ +func (a *PulpAnsibleApiV3NamespacesApiService) PulpAnsibleGalaxyApiV3NamespacesList(ctx context.Context, path string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest { + return PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest{ + ApiService: a, + ctx: ctx, + path: path, + } +} + +// Execute executes the request +// @return PaginatedansibleAnsibleNamespaceMetadataResponseList +// Deprecated +func (a *PulpAnsibleApiV3NamespacesApiService) PulpAnsibleGalaxyApiV3NamespacesListExecute(r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesListRequest) (*PaginatedansibleAnsibleNamespaceMetadataResponseList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedansibleAnsibleNamespaceMetadataResponseList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleApiV3NamespacesApiService.PulpAnsibleGalaxyApiV3NamespacesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/{path}/api/v3/namespaces/" + localVarPath = strings.Replace(localVarPath, "{"+"path"+"}", url.PathEscape(parameterValueToString(r.path, "path")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.company != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company", r.company, "") + } + if r.companyContains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__contains", r.companyContains, "") + } + if r.companyIcontains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__icontains", r.companyIcontains, "") + } + if r.companyIn != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__in", r.companyIn, "csv") + } + if r.companyStartswith != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__startswith", r.companyStartswith, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.metadataSha256 != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metadata_sha256", r.metadataSha256, "") + } + if r.metadataSha256In != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metadata_sha256__in", r.metadataSha256In, "csv") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "") + } + if r.nameContains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__contains", r.nameContains, "") + } + if r.nameIcontains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__icontains", r.nameIcontains, "") + } + if r.nameIn != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__in", r.nameIn, "csv") + } + if r.nameStartswith != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__startswith", r.nameStartswith, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "csv") + } + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesReadRequest struct { + ctx context.Context + ApiService *PulpAnsibleApiV3NamespacesApiService + name string + path string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesReadRequest) Fields(fields []string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesReadRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesReadRequest) ExcludeFields(excludeFields []string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesReadRequest { + r.excludeFields = &excludeFields + return r +} + +func (r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesReadRequest) Execute() (*AnsibleAnsibleNamespaceMetadataResponse, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyApiV3NamespacesReadExecute(r) +} + +/* +PulpAnsibleGalaxyApiV3NamespacesRead Method for PulpAnsibleGalaxyApiV3NamespacesRead + +Legacy v3 endpoint. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name + @param path + @return PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesReadRequest + +Deprecated +*/ +func (a *PulpAnsibleApiV3NamespacesApiService) PulpAnsibleGalaxyApiV3NamespacesRead(ctx context.Context, name string, path string) PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesReadRequest { + return PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesReadRequest{ + ApiService: a, + ctx: ctx, + name: name, + path: path, + } +} + +// Execute executes the request +// @return AnsibleAnsibleNamespaceMetadataResponse +// Deprecated +func (a *PulpAnsibleApiV3NamespacesApiService) PulpAnsibleGalaxyApiV3NamespacesReadExecute(r PulpAnsibleApiV3NamespacesApiPulpAnsibleGalaxyApiV3NamespacesReadRequest) (*AnsibleAnsibleNamespaceMetadataResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnsibleAnsibleNamespaceMetadataResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleApiV3NamespacesApiService.PulpAnsibleGalaxyApiV3NamespacesRead") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/{path}/api/v3/namespaces/{name}/" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarPath = strings.Replace(localVarPath, "{"+"path"+"}", url.PathEscape(parameterValueToString(r.path, "path")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/release/api_pulp_ansible_api_v3_plugin_ansible_client_configuration.go b/release/api_pulp_ansible_api_v3_plugin_ansible_client_configuration.go index 2394233d..88f44309 100644 --- a/release/api_pulp_ansible_api_v3_plugin_ansible_client_configuration.go +++ b/release/api_pulp_ansible_api_v3_plugin_ansible_client_configuration.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" @@ -25,7 +25,7 @@ import ( // PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService PulpAnsibleApiV3PluginAnsibleClientConfigurationApi service type PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService service -type PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGetRequest struct { +type PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationReadRequest struct { ctx context.Context ApiService *PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService path string @@ -34,32 +34,32 @@ type PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3Pl } // A list of fields to include in the response. -func (r PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGetRequest) Fields(fields []string) PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGetRequest { +func (r PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationReadRequest) Fields(fields []string) PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationReadRequest { r.fields = &fields return r } // A list of fields to exclude from the response. -func (r PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGetRequest) ExcludeFields(excludeFields []string) PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGetRequest { +func (r PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationReadRequest) ExcludeFields(excludeFields []string) PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationReadRequest { r.excludeFields = &excludeFields return r } -func (r PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGetRequest) Execute() (*ClientConfigurationResponse, *http.Response, error) { - return r.ApiService.PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGetExecute(r) +func (r PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationReadRequest) Execute() (*ClientConfigurationResponse, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationReadExecute(r) } /* -PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGet Method for PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGet +PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationRead Method for PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationRead -Get the client configs. +Return configurations for the ansible-galaxy client. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param path - @return PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGetRequest + @return PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationReadRequest */ -func (a *PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService) PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGet(ctx context.Context, path string) PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGetRequest { - return PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGetRequest{ +func (a *PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService) PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationRead(ctx context.Context, path string) PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationReadRequest { + return PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationReadRequest{ ApiService: a, ctx: ctx, path: path, @@ -68,7 +68,7 @@ func (a *PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService) PulpAnsible // Execute executes the request // @return ClientConfigurationResponse -func (a *PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService) PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGetExecute(r PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGetRequest) (*ClientConfigurationResponse, *http.Response, error) { +func (a *PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService) PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationReadExecute(r PulpAnsibleApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationReadRequest) (*ClientConfigurationResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -76,7 +76,7 @@ func (a *PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService) PulpAnsible localVarReturnValue *ClientConfigurationResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService.PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService.PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationRead") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections.go b/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections.go index dc9c5c16..77b5abe6 100644 --- a/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections.go +++ b/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections.go b/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections.go index c2e990b7..5ab2cee1 100644 --- a/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections.go +++ b/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions.go b/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions.go index 272c46a3..7311bbaf 100644 --- a/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions.go +++ b/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts.go b/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts.go index 276040ce..08cdf682 100644 --- a/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts.go +++ b/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index.go b/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index.go index 7fe94714..35f0bad9 100644 --- a/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index.go +++ b/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions.go b/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions.go index cc87594b..273e8b45 100644 --- a/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions.go +++ b/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob.go b/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob.go index e5f1b88a..b9c1975e 100644 --- a/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob.go +++ b/release/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_api_v3_plugin_ansible_content_namespaces.go b/release/api_pulp_ansible_api_v3_plugin_ansible_content_namespaces.go new file mode 100644 index 00000000..9ce53928 --- /dev/null +++ b/release/api_pulp_ansible_api_v3_plugin_ansible_content_namespaces.go @@ -0,0 +1,992 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + "os" + "reflect" +) + + +// PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService PulpAnsibleApiV3PluginAnsibleContentNamespacesApi service +type PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService service + +type PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest struct { + ctx context.Context + ApiService *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService + distroBasePath string + path string + name *string + company *string + email *string + description *string + resources *string + links *[]NamespaceLink + avatar *os.File +} + +// Required named, only accepts lowercase, numbers and underscores. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest) Name(name string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest { + r.name = &name + return r +} + +// Optional namespace company owner. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest) Company(company string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest { + r.company = &company + return r +} + +// Optional namespace contact email. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest) Email(email string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest { + r.email = &email + return r +} + +// Optional short description. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest) Description(description string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest { + r.description = &description + return r +} + +// Optional resource page in markdown format. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest) Resources(resources string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest { + r.resources = &resources + return r +} + +// Labeled related links. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest) Links(links []NamespaceLink) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest { + r.links = &links + return r +} + +// Optional avatar image for Namespace +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest) Avatar(avatar *os.File) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest { + r.avatar = avatar + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest) Execute() (*AsyncOperationResponse, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateExecute(r) +} + +/* +PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreate Method for PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreate + +Custom exception handler mixin class. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param distroBasePath + @param path + @return PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest +*/ +func (a *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreate(ctx context.Context, distroBasePath string, path string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest { + return PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest{ + ApiService: a, + ctx: ctx, + distroBasePath: distroBasePath, + path: path, + } +} + +// Execute executes the request +// @return AsyncOperationResponse +func (a *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateExecute(r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest) (*AsyncOperationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AsyncOperationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/" + localVarPath = strings.Replace(localVarPath, "{"+"distro_base_path"+"}", url.PathEscape(parameterValueToString(r.distroBasePath, "distroBasePath")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarPath = strings.Replace(localVarPath, "{"+"path"+"}", url.PathEscape(parameterValueToString(r.path, "path")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.name == nil { + return localVarReturnValue, nil, reportError("name is required and must be specified") + } + if strlen(*r.name) < 3 { + return localVarReturnValue, nil, reportError("name must have at least 3 elements") + } + if strlen(*r.name) > 64 { + return localVarReturnValue, nil, reportError("name must have less than 64 elements") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"multipart/form-data", "application/x-www-form-urlencoded"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarFormParams, "name", r.name, "") + if r.company != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "company", r.company, "") + } + if r.email != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "email", r.email, "") + } + if r.description != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "description", r.description, "") + } + if r.resources != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "resources", r.resources, "") + } + if r.links != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "links", r.links, "csv") + } + var avatarLocalVarFormFileName string + var avatarLocalVarFileName string + var avatarLocalVarFileBytes []byte + + avatarLocalVarFormFileName = "avatar" + + + avatarLocalVarFile := r.avatar + + if avatarLocalVarFile != nil { + fbs, _ := io.ReadAll(avatarLocalVarFile) + + avatarLocalVarFileBytes = fbs + avatarLocalVarFileName = avatarLocalVarFile.Name() + avatarLocalVarFile.Close() + formFiles = append(formFiles, formFile{fileBytes: avatarLocalVarFileBytes, fileName: avatarLocalVarFileName, formFileName: avatarLocalVarFormFileName}) + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDeleteRequest struct { + ctx context.Context + ApiService *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService + distroBasePath string + name string + path string +} + +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDeleteRequest) Execute() (*AsyncOperationResponse, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDeleteExecute(r) +} + +/* +PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDelete Method for PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDelete + +Try to remove the Namespace if no Collections under Namespace are present. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param distroBasePath + @param name + @param path + @return PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDeleteRequest +*/ +func (a *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDelete(ctx context.Context, distroBasePath string, name string, path string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDeleteRequest { + return PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDeleteRequest{ + ApiService: a, + ctx: ctx, + distroBasePath: distroBasePath, + name: name, + path: path, + } +} + +// Execute executes the request +// @return AsyncOperationResponse +func (a *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDeleteExecute(r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDeleteRequest) (*AsyncOperationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AsyncOperationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/" + localVarPath = strings.Replace(localVarPath, "{"+"distro_base_path"+"}", url.PathEscape(parameterValueToString(r.distroBasePath, "distroBasePath")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarPath = strings.Replace(localVarPath, "{"+"path"+"}", url.PathEscape(parameterValueToString(r.path, "path")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest struct { + ctx context.Context + ApiService *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService + distroBasePath string + path string + company *string + companyContains *string + companyIcontains *string + companyIn *[]string + companyStartswith *string + limit *int32 + metadataSha256 *string + metadataSha256In *[]string + name *string + nameContains *string + nameIcontains *string + nameIn *[]string + nameStartswith *string + offset *int32 + ordering *[]string + fields *[]string + excludeFields *[]string +} + +// Filter results where company matches value +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) Company(company string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.company = &company + return r +} + +// Filter results where company contains value +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) CompanyContains(companyContains string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.companyContains = &companyContains + return r +} + +// Filter results where company contains value +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) CompanyIcontains(companyIcontains string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.companyIcontains = &companyIcontains + return r +} + +// Filter results where company is in a comma-separated list of values +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) CompanyIn(companyIn []string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.companyIn = &companyIn + return r +} + +// Filter results where company starts with value +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) CompanyStartswith(companyStartswith string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.companyStartswith = &companyStartswith + return r +} + +// Number of results to return per page. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) Limit(limit int32) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.limit = &limit + return r +} + +// Filter results where metadata_sha256 matches value +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) MetadataSha256(metadataSha256 string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.metadataSha256 = &metadataSha256 + return r +} + +// Filter results where metadata_sha256 is in a comma-separated list of values +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) MetadataSha256In(metadataSha256In []string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.metadataSha256In = &metadataSha256In + return r +} + +// Filter results where name matches value +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) Name(name string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.name = &name + return r +} + +// Filter results where name contains value +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) NameContains(nameContains string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.nameContains = &nameContains + return r +} + +// Filter results where name contains value +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) NameIcontains(nameIcontains string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.nameIcontains = &nameIcontains + return r +} + +// Filter results where name is in a comma-separated list of values +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) NameIn(nameIn []string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.nameIn = &nameIn + return r +} + +// Filter results where name starts with value +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) NameStartswith(nameStartswith string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.nameStartswith = &nameStartswith + return r +} + +// The initial index from which to return the results. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) Offset(offset int32) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.offset = &offset + return r +} + +// Ordering +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) Ordering(ordering []string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.ordering = &ordering + return r +} + +// A list of fields to include in the response. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) Fields(fields []string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) ExcludeFields(excludeFields []string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + r.excludeFields = &excludeFields + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) Execute() (*PaginatedansibleAnsibleNamespaceMetadataResponseList, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListExecute(r) +} + +/* +PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesList Method for PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesList + +Custom exception handler mixin class. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param distroBasePath + @param path + @return PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest +*/ +func (a *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesList(ctx context.Context, distroBasePath string, path string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest { + return PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest{ + ApiService: a, + ctx: ctx, + distroBasePath: distroBasePath, + path: path, + } +} + +// Execute executes the request +// @return PaginatedansibleAnsibleNamespaceMetadataResponseList +func (a *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListExecute(r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest) (*PaginatedansibleAnsibleNamespaceMetadataResponseList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedansibleAnsibleNamespaceMetadataResponseList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/" + localVarPath = strings.Replace(localVarPath, "{"+"distro_base_path"+"}", url.PathEscape(parameterValueToString(r.distroBasePath, "distroBasePath")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarPath = strings.Replace(localVarPath, "{"+"path"+"}", url.PathEscape(parameterValueToString(r.path, "path")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.company != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company", r.company, "") + } + if r.companyContains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__contains", r.companyContains, "") + } + if r.companyIcontains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__icontains", r.companyIcontains, "") + } + if r.companyIn != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__in", r.companyIn, "csv") + } + if r.companyStartswith != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__startswith", r.companyStartswith, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.metadataSha256 != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metadata_sha256", r.metadataSha256, "") + } + if r.metadataSha256In != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metadata_sha256__in", r.metadataSha256In, "csv") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "") + } + if r.nameContains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__contains", r.nameContains, "") + } + if r.nameIcontains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__icontains", r.nameIcontains, "") + } + if r.nameIn != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__in", r.nameIn, "csv") + } + if r.nameStartswith != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__startswith", r.nameStartswith, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "csv") + } + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest struct { + ctx context.Context + ApiService *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService + distroBasePath string + name string + path string + name2 *string + company *string + email *string + description *string + resources *string + links *[]NamespaceLink + avatar *os.File +} + +// Required named, only accepts lowercase, numbers and underscores. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Name2(name2 string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + r.name2 = &name2 + return r +} + +// Optional namespace company owner. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Company(company string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + r.company = &company + return r +} + +// Optional namespace contact email. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Email(email string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + r.email = &email + return r +} + +// Optional short description. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Description(description string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + r.description = &description + return r +} + +// Optional resource page in markdown format. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Resources(resources string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + r.resources = &resources + return r +} + +// Labeled related links. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Links(links []NamespaceLink) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + r.links = &links + return r +} + +// Optional avatar image for Namespace +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Avatar(avatar *os.File) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + r.avatar = avatar + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Execute() (*AsyncOperationResponse, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateExecute(r) +} + +/* +PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdate Method for PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdate + +Custom exception handler mixin class. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param distroBasePath + @param name + @param path + @return PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest +*/ +func (a *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdate(ctx context.Context, distroBasePath string, name string, path string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + return PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + distroBasePath: distroBasePath, + name: name, + path: path, + } +} + +// Execute executes the request +// @return AsyncOperationResponse +func (a *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateExecute(r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) (*AsyncOperationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AsyncOperationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/" + localVarPath = strings.Replace(localVarPath, "{"+"distro_base_path"+"}", url.PathEscape(parameterValueToString(r.distroBasePath, "distroBasePath")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarPath = strings.Replace(localVarPath, "{"+"path"+"}", url.PathEscape(parameterValueToString(r.path, "path")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"multipart/form-data", "application/x-www-form-urlencoded"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.name2 != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "name", r.name2, "") + } + if r.company != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "company", r.company, "") + } + if r.email != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "email", r.email, "") + } + if r.description != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "description", r.description, "") + } + if r.resources != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "resources", r.resources, "") + } + if r.links != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "links", r.links, "csv") + } + var avatarLocalVarFormFileName string + var avatarLocalVarFileName string + var avatarLocalVarFileBytes []byte + + avatarLocalVarFormFileName = "avatar" + + + avatarLocalVarFile := r.avatar + + if avatarLocalVarFile != nil { + fbs, _ := io.ReadAll(avatarLocalVarFile) + + avatarLocalVarFileBytes = fbs + avatarLocalVarFileName = avatarLocalVarFile.Name() + avatarLocalVarFile.Close() + formFiles = append(formFiles, formFile{fileBytes: avatarLocalVarFileBytes, fileName: avatarLocalVarFileName, formFileName: avatarLocalVarFormFileName}) + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesReadRequest struct { + ctx context.Context + ApiService *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService + distroBasePath string + name string + path string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesReadRequest) Fields(fields []string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesReadRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesReadRequest) ExcludeFields(excludeFields []string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesReadRequest { + r.excludeFields = &excludeFields + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesReadRequest) Execute() (*AnsibleAnsibleNamespaceMetadataResponse, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesReadExecute(r) +} + +/* +PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesRead Method for PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesRead + +Custom exception handler mixin class. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param distroBasePath + @param name + @param path + @return PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesReadRequest +*/ +func (a *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesRead(ctx context.Context, distroBasePath string, name string, path string) PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesReadRequest { + return PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesReadRequest{ + ApiService: a, + ctx: ctx, + distroBasePath: distroBasePath, + name: name, + path: path, + } +} + +// Execute executes the request +// @return AnsibleAnsibleNamespaceMetadataResponse +func (a *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesReadExecute(r PulpAnsibleApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesReadRequest) (*AnsibleAnsibleNamespaceMetadataResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnsibleAnsibleNamespaceMetadataResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesRead") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/" + localVarPath = strings.Replace(localVarPath, "{"+"distro_base_path"+"}", url.PathEscape(parameterValueToString(r.distroBasePath, "distroBasePath")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarPath = strings.Replace(localVarPath, "{"+"path"+"}", url.PathEscape(parameterValueToString(r.path, "path")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/release/api_pulp_ansible_api_v3_plugin_ansible_search_collection_versions.go b/release/api_pulp_ansible_api_v3_plugin_ansible_search_collection_versions.go new file mode 100644 index 00000000..a812e9b6 --- /dev/null +++ b/release/api_pulp_ansible_api_v3_plugin_ansible_search_collection_versions.go @@ -0,0 +1,529 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + "reflect" +) + + +// PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi service +type PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService service + +type PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest struct { + ctx context.Context + ApiService *PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService + path string + dependency *string + deprecated *bool + distribution *[]string + distributionBasePath *[]string + highest *bool + isDeprecated *bool + isHighest *bool + isSigned *bool + keywords *string + limit *int32 + name *string + namespace *string + offset *int32 + orderBy *[]string + q *string + repository *[]string + repositoryLabel *string + repositoryName *[]string + repositoryVersion *string + signed *bool + tags *string + version *string + versionRange *string + fields *[]string + excludeFields *[]string +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Dependency(dependency string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.dependency = &dependency + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Deprecated(deprecated bool) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.deprecated = &deprecated + return r +} + +// Filter collectionversions that are in these distrubtion ids. +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Distribution(distribution []string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.distribution = &distribution + return r +} + +// Filter collectionversions that are in these base paths. +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) DistributionBasePath(distributionBasePath []string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.distributionBasePath = &distributionBasePath + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Highest(highest bool) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.highest = &highest + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) IsDeprecated(isDeprecated bool) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.isDeprecated = &isDeprecated + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) IsHighest(isHighest bool) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.isHighest = &isHighest + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) IsSigned(isSigned bool) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.isSigned = &isSigned + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Keywords(keywords string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.keywords = &keywords + return r +} + +// Number of results to return per page. +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Limit(limit int32) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.limit = &limit + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Name(name string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.name = &name + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Namespace(namespace string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.namespace = &namespace + return r +} + +// The initial index from which to return the results. +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Offset(offset int32) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.offset = &offset + return r +} + +// Ordering +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) OrderBy(orderBy []string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.orderBy = &orderBy + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Q(q string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.q = &q + return r +} + +// Filter collectionversions that are in these repository ids. +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Repository(repository []string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.repository = &repository + return r +} + +// Filter labels by search string +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) RepositoryLabel(repositoryLabel string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.repositoryLabel = &repositoryLabel + return r +} + +// Filter collectionversions that are in these repositories. +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) RepositoryName(repositoryName []string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.repositoryName = &repositoryName + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) RepositoryVersion(repositoryVersion string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.repositoryVersion = &repositoryVersion + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Signed(signed bool) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.signed = &signed + return r +} + +// Filter by comma separate list of tags that must all be matched +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Tags(tags string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.tags = &tags + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Version(version string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.version = &version + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) VersionRange(versionRange string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.versionRange = &versionRange + return r +} + +// A list of fields to include in the response. +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Fields(fields []string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) ExcludeFields(excludeFields []string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.excludeFields = &excludeFields + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) Execute() (*PaginatedCollectionVersionSearchListResponseList, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListExecute(r) +} + +/* +PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsList Method for PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsList + +A viewset for cross-repo searches. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param path + @return PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest +*/ +func (a *PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService) PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsList(ctx context.Context, path string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest { + return PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest{ + ApiService: a, + ctx: ctx, + path: path, + } +} + +// Execute executes the request +// @return PaginatedCollectionVersionSearchListResponseList +func (a *PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService) PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListExecute(r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest) (*PaginatedCollectionVersionSearchListResponseList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCollectionVersionSearchListResponseList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService.PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/search/collection-versions/" + localVarPath = strings.Replace(localVarPath, "{"+"path"+"}", url.PathEscape(parameterValueToString(r.path, "path")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.dependency != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "dependency", r.dependency, "") + } + if r.deprecated != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deprecated", r.deprecated, "") + } + if r.distribution != nil { + t := *r.distribution + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distribution", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distribution", t, "multi") + } + } + if r.distributionBasePath != nil { + t := *r.distributionBasePath + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distribution_base_path", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distribution_base_path", t, "multi") + } + } + if r.highest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "highest", r.highest, "") + } + if r.isDeprecated != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_deprecated", r.isDeprecated, "") + } + if r.isHighest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_highest", r.isHighest, "") + } + if r.isSigned != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_signed", r.isSigned, "") + } + if r.keywords != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "keywords", r.keywords, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "") + } + if r.namespace != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "namespace", r.namespace, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "csv") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.repository != nil { + t := *r.repository + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository", t, "multi") + } + } + if r.repositoryLabel != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository_label", r.repositoryLabel, "") + } + if r.repositoryName != nil { + t := *r.repositoryName + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository_name", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository_name", t, "multi") + } + } + if r.repositoryVersion != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository_version", r.repositoryVersion, "") + } + if r.signed != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "signed", r.signed, "") + } + if r.tags != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + } + if r.version != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "version", r.version, "") + } + if r.versionRange != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "version_range", r.versionRange, "") + } + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest struct { + ctx context.Context + ApiService *PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService + path string + collectionVersionSearchList *CollectionVersionSearchList +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest) CollectionVersionSearchList(collectionVersionSearchList CollectionVersionSearchList) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest { + r.collectionVersionSearchList = &collectionVersionSearchList + return r +} + +func (r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest) Execute() (*CollectionVersionSearchListResponse, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuildExecute(r) +} + +/* +PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuild Method for PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuild + +A viewset for cross-repo searches. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param path + @return PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest +*/ +func (a *PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService) PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuild(ctx context.Context, path string) PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest { + return PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest{ + ApiService: a, + ctx: ctx, + path: path, + } +} + +// Execute executes the request +// @return CollectionVersionSearchListResponse +func (a *PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService) PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuildExecute(r PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest) (*CollectionVersionSearchListResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CollectionVersionSearchListResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService.PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuild") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/search/collection-versions/" + localVarPath = strings.Replace(localVarPath, "{"+"path"+"}", url.PathEscape(parameterValueToString(r.path, "path")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.collectionVersionSearchList == nil { + return localVarReturnValue, nil, reportError("collectionVersionSearchList is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.collectionVersionSearchList + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/release/api_pulp_ansible_artifacts_collections_v3.go b/release/api_pulp_ansible_artifacts_collections_v3.go index 70dede13..11bcc612 100644 --- a/release/api_pulp_ansible_artifacts_collections_v3.go +++ b/release/api_pulp_ansible_artifacts_collections_v3.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api.go b/release/api_pulp_ansible_default_api.go index d6368618..3a302828 100644 --- a/release/api_pulp_ansible_default_api.go +++ b/release/api_pulp_ansible_default_api.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api_v3.go b/release/api_pulp_ansible_default_api_v3.go index 5c777c3b..24d61018 100644 --- a/release/api_pulp_ansible_default_api_v3.go +++ b/release/api_pulp_ansible_default_api_v3.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api_v3_artifacts_collections.go b/release/api_pulp_ansible_default_api_v3_artifacts_collections.go index a870fddf..ac8ef20d 100644 --- a/release/api_pulp_ansible_default_api_v3_artifacts_collections.go +++ b/release/api_pulp_ansible_default_api_v3_artifacts_collections.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api_v3_collection_versions_all.go b/release/api_pulp_ansible_default_api_v3_collection_versions_all.go index 7c1e75e6..d66a4545 100644 --- a/release/api_pulp_ansible_default_api_v3_collection_versions_all.go +++ b/release/api_pulp_ansible_default_api_v3_collection_versions_all.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api_v3_collections.go b/release/api_pulp_ansible_default_api_v3_collections.go index 493efb01..04f698c3 100644 --- a/release/api_pulp_ansible_default_api_v3_collections.go +++ b/release/api_pulp_ansible_default_api_v3_collections.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api_v3_collections_all.go b/release/api_pulp_ansible_default_api_v3_collections_all.go index fad3029d..ce97d8ed 100644 --- a/release/api_pulp_ansible_default_api_v3_collections_all.go +++ b/release/api_pulp_ansible_default_api_v3_collections_all.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api_v3_collections_versions.go b/release/api_pulp_ansible_default_api_v3_collections_versions.go index 56f9dc09..ef273dc6 100644 --- a/release/api_pulp_ansible_default_api_v3_collections_versions.go +++ b/release/api_pulp_ansible_default_api_v3_collections_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api_v3_collections_versions_docs_blob.go b/release/api_pulp_ansible_default_api_v3_collections_versions_docs_blob.go index 6814ed07..f8f1cc67 100644 --- a/release/api_pulp_ansible_default_api_v3_collections_versions_docs_blob.go +++ b/release/api_pulp_ansible_default_api_v3_collections_versions_docs_blob.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api_v3_namespaces.go b/release/api_pulp_ansible_default_api_v3_namespaces.go new file mode 100644 index 00000000..10927360 --- /dev/null +++ b/release/api_pulp_ansible_default_api_v3_namespaces.go @@ -0,0 +1,456 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + "reflect" +) + + +// PulpAnsibleDefaultApiV3NamespacesApiService PulpAnsibleDefaultApiV3NamespacesApi service +type PulpAnsibleDefaultApiV3NamespacesApiService service + +type PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest struct { + ctx context.Context + ApiService *PulpAnsibleDefaultApiV3NamespacesApiService + company *string + companyContains *string + companyIcontains *string + companyIn *[]string + companyStartswith *string + limit *int32 + metadataSha256 *string + metadataSha256In *[]string + name *string + nameContains *string + nameIcontains *string + nameIn *[]string + nameStartswith *string + offset *int32 + ordering *[]string + fields *[]string + excludeFields *[]string +} + +// Filter results where company matches value +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) Company(company string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.company = &company + return r +} + +// Filter results where company contains value +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) CompanyContains(companyContains string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.companyContains = &companyContains + return r +} + +// Filter results where company contains value +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) CompanyIcontains(companyIcontains string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.companyIcontains = &companyIcontains + return r +} + +// Filter results where company is in a comma-separated list of values +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) CompanyIn(companyIn []string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.companyIn = &companyIn + return r +} + +// Filter results where company starts with value +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) CompanyStartswith(companyStartswith string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.companyStartswith = &companyStartswith + return r +} + +// Number of results to return per page. +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) Limit(limit int32) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.limit = &limit + return r +} + +// Filter results where metadata_sha256 matches value +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) MetadataSha256(metadataSha256 string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.metadataSha256 = &metadataSha256 + return r +} + +// Filter results where metadata_sha256 is in a comma-separated list of values +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) MetadataSha256In(metadataSha256In []string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.metadataSha256In = &metadataSha256In + return r +} + +// Filter results where name matches value +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) Name(name string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.name = &name + return r +} + +// Filter results where name contains value +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) NameContains(nameContains string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.nameContains = &nameContains + return r +} + +// Filter results where name contains value +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) NameIcontains(nameIcontains string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.nameIcontains = &nameIcontains + return r +} + +// Filter results where name is in a comma-separated list of values +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) NameIn(nameIn []string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.nameIn = &nameIn + return r +} + +// Filter results where name starts with value +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) NameStartswith(nameStartswith string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.nameStartswith = &nameStartswith + return r +} + +// The initial index from which to return the results. +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) Offset(offset int32) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.offset = &offset + return r +} + +// Ordering +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) Ordering(ordering []string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.ordering = &ordering + return r +} + +// A list of fields to include in the response. +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) Fields(fields []string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) ExcludeFields(excludeFields []string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + r.excludeFields = &excludeFields + return r +} + +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) Execute() (*PaginatedansibleAnsibleNamespaceMetadataResponseList, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyDefaultApiV3NamespacesListExecute(r) +} + +/* +PulpAnsibleGalaxyDefaultApiV3NamespacesList Method for PulpAnsibleGalaxyDefaultApiV3NamespacesList + +Legacy v3 endpoint. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest + +Deprecated +*/ +func (a *PulpAnsibleDefaultApiV3NamespacesApiService) PulpAnsibleGalaxyDefaultApiV3NamespacesList(ctx context.Context) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest { + return PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedansibleAnsibleNamespaceMetadataResponseList +// Deprecated +func (a *PulpAnsibleDefaultApiV3NamespacesApiService) PulpAnsibleGalaxyDefaultApiV3NamespacesListExecute(r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest) (*PaginatedansibleAnsibleNamespaceMetadataResponseList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedansibleAnsibleNamespaceMetadataResponseList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleDefaultApiV3NamespacesApiService.PulpAnsibleGalaxyDefaultApiV3NamespacesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/default/api/v3/namespaces/" + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.company != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company", r.company, "") + } + if r.companyContains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__contains", r.companyContains, "") + } + if r.companyIcontains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__icontains", r.companyIcontains, "") + } + if r.companyIn != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__in", r.companyIn, "csv") + } + if r.companyStartswith != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__startswith", r.companyStartswith, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.metadataSha256 != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metadata_sha256", r.metadataSha256, "") + } + if r.metadataSha256In != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metadata_sha256__in", r.metadataSha256In, "csv") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "") + } + if r.nameContains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__contains", r.nameContains, "") + } + if r.nameIcontains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__icontains", r.nameIcontains, "") + } + if r.nameIn != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__in", r.nameIn, "csv") + } + if r.nameStartswith != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__startswith", r.nameStartswith, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "csv") + } + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesReadRequest struct { + ctx context.Context + ApiService *PulpAnsibleDefaultApiV3NamespacesApiService + name string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesReadRequest) Fields(fields []string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesReadRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesReadRequest) ExcludeFields(excludeFields []string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesReadRequest { + r.excludeFields = &excludeFields + return r +} + +func (r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesReadRequest) Execute() (*AnsibleAnsibleNamespaceMetadataResponse, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyDefaultApiV3NamespacesReadExecute(r) +} + +/* +PulpAnsibleGalaxyDefaultApiV3NamespacesRead Method for PulpAnsibleGalaxyDefaultApiV3NamespacesRead + +Legacy v3 endpoint. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name + @return PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesReadRequest + +Deprecated +*/ +func (a *PulpAnsibleDefaultApiV3NamespacesApiService) PulpAnsibleGalaxyDefaultApiV3NamespacesRead(ctx context.Context, name string) PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesReadRequest { + return PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesReadRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return AnsibleAnsibleNamespaceMetadataResponse +// Deprecated +func (a *PulpAnsibleDefaultApiV3NamespacesApiService) PulpAnsibleGalaxyDefaultApiV3NamespacesReadExecute(r PulpAnsibleDefaultApiV3NamespacesApiPulpAnsibleGalaxyDefaultApiV3NamespacesReadRequest) (*AnsibleAnsibleNamespaceMetadataResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnsibleAnsibleNamespaceMetadataResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleDefaultApiV3NamespacesApiService.PulpAnsibleGalaxyDefaultApiV3NamespacesRead") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/default/api/v3/namespaces/{name}/" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/release/api_pulp_ansible_default_api_v3_plugin_ansible_client_configuration.go b/release/api_pulp_ansible_default_api_v3_plugin_ansible_client_configuration.go index 2897fddc..dd4ba191 100644 --- a/release/api_pulp_ansible_default_api_v3_plugin_ansible_client_configuration.go +++ b/release/api_pulp_ansible_default_api_v3_plugin_ansible_client_configuration.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" @@ -23,25 +23,25 @@ import ( // PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi service type PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService service -type PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGetRequest struct { +type PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationReadRequest struct { ctx context.Context ApiService *PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService } -func (r PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGetRequest) Execute() (*ClientConfigurationResponse, *http.Response, error) { - return r.ApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGetExecute(r) +func (r PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationReadRequest) Execute() (*ClientConfigurationResponse, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationReadExecute(r) } /* -PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGet Method for PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGet +PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationRead Method for PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationRead -Get the client configs. +Return configurations for the ansible-galaxy client. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGetRequest + @return PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationReadRequest */ -func (a *PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGet(ctx context.Context) PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGetRequest { - return PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGetRequest{ +func (a *PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationRead(ctx context.Context) PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationReadRequest { + return PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationReadRequest{ ApiService: a, ctx: ctx, } @@ -49,7 +49,7 @@ func (a *PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService) Pulp // Execute executes the request // @return ClientConfigurationResponse -func (a *PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGetExecute(r PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGetRequest) (*ClientConfigurationResponse, *http.Response, error) { +func (a *PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationReadExecute(r PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationReadRequest) (*ClientConfigurationResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -57,7 +57,7 @@ func (a *PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService) Pulp localVarReturnValue *ClientConfigurationResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationRead") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections.go b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections.go index 6a9b08c4..9cd50c47 100644 --- a/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections.go +++ b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections.go b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections.go index 8f5c4cae..1c26303c 100644 --- a/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections.go +++ b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions.go b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions.go index 81aff164..8dc98e1e 100644 --- a/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions.go +++ b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts.go b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts.go index 2c71247f..213fd213 100644 --- a/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts.go +++ b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index.go b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index.go index 1bdd4494..eab0b886 100644 --- a/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index.go +++ b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions.go b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions.go index d0ccb870..dd17d5e3 100644 --- a/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions.go +++ b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob.go b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob.go index 9ddf8ec7..763d2a10 100644 --- a/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob.go +++ b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_namespaces.go b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_namespaces.go new file mode 100644 index 00000000..bebbda0b --- /dev/null +++ b/release/api_pulp_ansible_default_api_v3_plugin_ansible_content_namespaces.go @@ -0,0 +1,962 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + "os" + "reflect" +) + + +// PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi service +type PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService service + +type PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest struct { + ctx context.Context + ApiService *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService + distroBasePath string + name *string + company *string + email *string + description *string + resources *string + links *[]NamespaceLink + avatar *os.File +} + +// Required named, only accepts lowercase, numbers and underscores. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest) Name(name string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest { + r.name = &name + return r +} + +// Optional namespace company owner. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest) Company(company string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest { + r.company = &company + return r +} + +// Optional namespace contact email. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest) Email(email string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest { + r.email = &email + return r +} + +// Optional short description. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest) Description(description string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest { + r.description = &description + return r +} + +// Optional resource page in markdown format. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest) Resources(resources string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest { + r.resources = &resources + return r +} + +// Labeled related links. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest) Links(links []NamespaceLink) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest { + r.links = &links + return r +} + +// Optional avatar image for Namespace +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest) Avatar(avatar *os.File) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest { + r.avatar = avatar + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest) Execute() (*AsyncOperationResponse, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateExecute(r) +} + +/* +PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreate Method for PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreate + +Custom exception handler mixin class. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param distroBasePath + @return PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest +*/ +func (a *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreate(ctx context.Context, distroBasePath string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest { + return PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest{ + ApiService: a, + ctx: ctx, + distroBasePath: distroBasePath, + } +} + +// Execute executes the request +// @return AsyncOperationResponse +func (a *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateExecute(r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest) (*AsyncOperationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AsyncOperationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/" + localVarPath = strings.Replace(localVarPath, "{"+"distro_base_path"+"}", url.PathEscape(parameterValueToString(r.distroBasePath, "distroBasePath")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.name == nil { + return localVarReturnValue, nil, reportError("name is required and must be specified") + } + if strlen(*r.name) < 3 { + return localVarReturnValue, nil, reportError("name must have at least 3 elements") + } + if strlen(*r.name) > 64 { + return localVarReturnValue, nil, reportError("name must have less than 64 elements") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"multipart/form-data", "application/x-www-form-urlencoded"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarFormParams, "name", r.name, "") + if r.company != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "company", r.company, "") + } + if r.email != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "email", r.email, "") + } + if r.description != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "description", r.description, "") + } + if r.resources != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "resources", r.resources, "") + } + if r.links != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "links", r.links, "csv") + } + var avatarLocalVarFormFileName string + var avatarLocalVarFileName string + var avatarLocalVarFileBytes []byte + + avatarLocalVarFormFileName = "avatar" + + + avatarLocalVarFile := r.avatar + + if avatarLocalVarFile != nil { + fbs, _ := io.ReadAll(avatarLocalVarFile) + + avatarLocalVarFileBytes = fbs + avatarLocalVarFileName = avatarLocalVarFile.Name() + avatarLocalVarFile.Close() + formFiles = append(formFiles, formFile{fileBytes: avatarLocalVarFileBytes, fileName: avatarLocalVarFileName, formFileName: avatarLocalVarFormFileName}) + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDeleteRequest struct { + ctx context.Context + ApiService *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService + distroBasePath string + name string +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDeleteRequest) Execute() (*AsyncOperationResponse, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDeleteExecute(r) +} + +/* +PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDelete Method for PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDelete + +Try to remove the Namespace if no Collections under Namespace are present. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param distroBasePath + @param name + @return PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDeleteRequest +*/ +func (a *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDelete(ctx context.Context, distroBasePath string, name string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDeleteRequest { + return PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDeleteRequest{ + ApiService: a, + ctx: ctx, + distroBasePath: distroBasePath, + name: name, + } +} + +// Execute executes the request +// @return AsyncOperationResponse +func (a *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDeleteExecute(r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDeleteRequest) (*AsyncOperationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AsyncOperationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/" + localVarPath = strings.Replace(localVarPath, "{"+"distro_base_path"+"}", url.PathEscape(parameterValueToString(r.distroBasePath, "distroBasePath")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest struct { + ctx context.Context + ApiService *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService + distroBasePath string + company *string + companyContains *string + companyIcontains *string + companyIn *[]string + companyStartswith *string + limit *int32 + metadataSha256 *string + metadataSha256In *[]string + name *string + nameContains *string + nameIcontains *string + nameIn *[]string + nameStartswith *string + offset *int32 + ordering *[]string + fields *[]string + excludeFields *[]string +} + +// Filter results where company matches value +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) Company(company string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.company = &company + return r +} + +// Filter results where company contains value +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) CompanyContains(companyContains string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.companyContains = &companyContains + return r +} + +// Filter results where company contains value +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) CompanyIcontains(companyIcontains string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.companyIcontains = &companyIcontains + return r +} + +// Filter results where company is in a comma-separated list of values +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) CompanyIn(companyIn []string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.companyIn = &companyIn + return r +} + +// Filter results where company starts with value +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) CompanyStartswith(companyStartswith string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.companyStartswith = &companyStartswith + return r +} + +// Number of results to return per page. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) Limit(limit int32) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.limit = &limit + return r +} + +// Filter results where metadata_sha256 matches value +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) MetadataSha256(metadataSha256 string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.metadataSha256 = &metadataSha256 + return r +} + +// Filter results where metadata_sha256 is in a comma-separated list of values +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) MetadataSha256In(metadataSha256In []string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.metadataSha256In = &metadataSha256In + return r +} + +// Filter results where name matches value +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) Name(name string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.name = &name + return r +} + +// Filter results where name contains value +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) NameContains(nameContains string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.nameContains = &nameContains + return r +} + +// Filter results where name contains value +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) NameIcontains(nameIcontains string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.nameIcontains = &nameIcontains + return r +} + +// Filter results where name is in a comma-separated list of values +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) NameIn(nameIn []string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.nameIn = &nameIn + return r +} + +// Filter results where name starts with value +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) NameStartswith(nameStartswith string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.nameStartswith = &nameStartswith + return r +} + +// The initial index from which to return the results. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) Offset(offset int32) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.offset = &offset + return r +} + +// Ordering +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) Ordering(ordering []string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.ordering = &ordering + return r +} + +// A list of fields to include in the response. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) Fields(fields []string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) ExcludeFields(excludeFields []string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + r.excludeFields = &excludeFields + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) Execute() (*PaginatedansibleAnsibleNamespaceMetadataResponseList, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListExecute(r) +} + +/* +PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesList Method for PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesList + +Custom exception handler mixin class. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param distroBasePath + @return PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest +*/ +func (a *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesList(ctx context.Context, distroBasePath string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest { + return PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest{ + ApiService: a, + ctx: ctx, + distroBasePath: distroBasePath, + } +} + +// Execute executes the request +// @return PaginatedansibleAnsibleNamespaceMetadataResponseList +func (a *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListExecute(r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest) (*PaginatedansibleAnsibleNamespaceMetadataResponseList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedansibleAnsibleNamespaceMetadataResponseList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/" + localVarPath = strings.Replace(localVarPath, "{"+"distro_base_path"+"}", url.PathEscape(parameterValueToString(r.distroBasePath, "distroBasePath")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.company != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company", r.company, "") + } + if r.companyContains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__contains", r.companyContains, "") + } + if r.companyIcontains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__icontains", r.companyIcontains, "") + } + if r.companyIn != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__in", r.companyIn, "csv") + } + if r.companyStartswith != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "company__startswith", r.companyStartswith, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.metadataSha256 != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metadata_sha256", r.metadataSha256, "") + } + if r.metadataSha256In != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metadata_sha256__in", r.metadataSha256In, "csv") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "") + } + if r.nameContains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__contains", r.nameContains, "") + } + if r.nameIcontains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__icontains", r.nameIcontains, "") + } + if r.nameIn != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__in", r.nameIn, "csv") + } + if r.nameStartswith != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__startswith", r.nameStartswith, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "csv") + } + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest struct { + ctx context.Context + ApiService *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService + distroBasePath string + name string + name2 *string + company *string + email *string + description *string + resources *string + links *[]NamespaceLink + avatar *os.File +} + +// Required named, only accepts lowercase, numbers and underscores. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Name2(name2 string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + r.name2 = &name2 + return r +} + +// Optional namespace company owner. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Company(company string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + r.company = &company + return r +} + +// Optional namespace contact email. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Email(email string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + r.email = &email + return r +} + +// Optional short description. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Description(description string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + r.description = &description + return r +} + +// Optional resource page in markdown format. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Resources(resources string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + r.resources = &resources + return r +} + +// Labeled related links. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Links(links []NamespaceLink) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + r.links = &links + return r +} + +// Optional avatar image for Namespace +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Avatar(avatar *os.File) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + r.avatar = avatar + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) Execute() (*AsyncOperationResponse, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateExecute(r) +} + +/* +PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdate Method for PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdate + +Custom exception handler mixin class. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param distroBasePath + @param name + @return PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest +*/ +func (a *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdate(ctx context.Context, distroBasePath string, name string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest { + return PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + distroBasePath: distroBasePath, + name: name, + } +} + +// Execute executes the request +// @return AsyncOperationResponse +func (a *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateExecute(r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest) (*AsyncOperationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AsyncOperationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/" + localVarPath = strings.Replace(localVarPath, "{"+"distro_base_path"+"}", url.PathEscape(parameterValueToString(r.distroBasePath, "distroBasePath")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"multipart/form-data", "application/x-www-form-urlencoded"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.name2 != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "name", r.name2, "") + } + if r.company != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "company", r.company, "") + } + if r.email != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "email", r.email, "") + } + if r.description != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "description", r.description, "") + } + if r.resources != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "resources", r.resources, "") + } + if r.links != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "links", r.links, "csv") + } + var avatarLocalVarFormFileName string + var avatarLocalVarFileName string + var avatarLocalVarFileBytes []byte + + avatarLocalVarFormFileName = "avatar" + + + avatarLocalVarFile := r.avatar + + if avatarLocalVarFile != nil { + fbs, _ := io.ReadAll(avatarLocalVarFile) + + avatarLocalVarFileBytes = fbs + avatarLocalVarFileName = avatarLocalVarFile.Name() + avatarLocalVarFile.Close() + formFiles = append(formFiles, formFile{fileBytes: avatarLocalVarFileBytes, fileName: avatarLocalVarFileName, formFileName: avatarLocalVarFormFileName}) + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesReadRequest struct { + ctx context.Context + ApiService *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService + distroBasePath string + name string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesReadRequest) Fields(fields []string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesReadRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesReadRequest) ExcludeFields(excludeFields []string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesReadRequest { + r.excludeFields = &excludeFields + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesReadRequest) Execute() (*AnsibleAnsibleNamespaceMetadataResponse, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesReadExecute(r) +} + +/* +PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesRead Method for PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesRead + +Custom exception handler mixin class. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param distroBasePath + @param name + @return PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesReadRequest +*/ +func (a *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesRead(ctx context.Context, distroBasePath string, name string) PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesReadRequest { + return PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesReadRequest{ + ApiService: a, + ctx: ctx, + distroBasePath: distroBasePath, + name: name, + } +} + +// Execute executes the request +// @return AnsibleAnsibleNamespaceMetadataResponse +func (a *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesReadExecute(r PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesReadRequest) (*AnsibleAnsibleNamespaceMetadataResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnsibleAnsibleNamespaceMetadataResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesRead") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/" + localVarPath = strings.Replace(localVarPath, "{"+"distro_base_path"+"}", url.PathEscape(parameterValueToString(r.distroBasePath, "distroBasePath")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/release/api_pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions.go b/release/api_pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions.go new file mode 100644 index 00000000..be531e73 --- /dev/null +++ b/release/api_pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions.go @@ -0,0 +1,516 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "reflect" +) + + +// PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi service +type PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService service + +type PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest struct { + ctx context.Context + ApiService *PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService + dependency *string + deprecated *bool + distribution *[]string + distributionBasePath *[]string + highest *bool + isDeprecated *bool + isHighest *bool + isSigned *bool + keywords *string + limit *int32 + name *string + namespace *string + offset *int32 + orderBy *[]string + q *string + repository *[]string + repositoryLabel *string + repositoryName *[]string + repositoryVersion *string + signed *bool + tags *string + version *string + versionRange *string + fields *[]string + excludeFields *[]string +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Dependency(dependency string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.dependency = &dependency + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Deprecated(deprecated bool) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.deprecated = &deprecated + return r +} + +// Filter collectionversions that are in these distrubtion ids. +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Distribution(distribution []string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.distribution = &distribution + return r +} + +// Filter collectionversions that are in these base paths. +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) DistributionBasePath(distributionBasePath []string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.distributionBasePath = &distributionBasePath + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Highest(highest bool) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.highest = &highest + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) IsDeprecated(isDeprecated bool) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.isDeprecated = &isDeprecated + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) IsHighest(isHighest bool) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.isHighest = &isHighest + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) IsSigned(isSigned bool) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.isSigned = &isSigned + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Keywords(keywords string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.keywords = &keywords + return r +} + +// Number of results to return per page. +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Limit(limit int32) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.limit = &limit + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Name(name string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.name = &name + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Namespace(namespace string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.namespace = &namespace + return r +} + +// The initial index from which to return the results. +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Offset(offset int32) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.offset = &offset + return r +} + +// Ordering +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) OrderBy(orderBy []string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.orderBy = &orderBy + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Q(q string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.q = &q + return r +} + +// Filter collectionversions that are in these repository ids. +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Repository(repository []string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.repository = &repository + return r +} + +// Filter labels by search string +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) RepositoryLabel(repositoryLabel string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.repositoryLabel = &repositoryLabel + return r +} + +// Filter collectionversions that are in these repositories. +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) RepositoryName(repositoryName []string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.repositoryName = &repositoryName + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) RepositoryVersion(repositoryVersion string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.repositoryVersion = &repositoryVersion + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Signed(signed bool) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.signed = &signed + return r +} + +// Filter by comma separate list of tags that must all be matched +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Tags(tags string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.tags = &tags + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Version(version string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.version = &version + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) VersionRange(versionRange string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.versionRange = &versionRange + return r +} + +// A list of fields to include in the response. +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Fields(fields []string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) ExcludeFields(excludeFields []string) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + r.excludeFields = &excludeFields + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) Execute() (*PaginatedCollectionVersionSearchListResponseList, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListExecute(r) +} + +/* +PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsList Method for PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsList + +A viewset for cross-repo searches. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest +*/ +func (a *PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsList(ctx context.Context) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest { + return PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedCollectionVersionSearchListResponseList +func (a *PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListExecute(r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest) (*PaginatedCollectionVersionSearchListResponseList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCollectionVersionSearchListResponseList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/default/api/v3/plugin/ansible/search/collection-versions/" + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.dependency != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "dependency", r.dependency, "") + } + if r.deprecated != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "deprecated", r.deprecated, "") + } + if r.distribution != nil { + t := *r.distribution + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distribution", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distribution", t, "multi") + } + } + if r.distributionBasePath != nil { + t := *r.distributionBasePath + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distribution_base_path", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distribution_base_path", t, "multi") + } + } + if r.highest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "highest", r.highest, "") + } + if r.isDeprecated != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_deprecated", r.isDeprecated, "") + } + if r.isHighest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_highest", r.isHighest, "") + } + if r.isSigned != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_signed", r.isSigned, "") + } + if r.keywords != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "keywords", r.keywords, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.name != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "") + } + if r.namespace != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "namespace", r.namespace, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "csv") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.repository != nil { + t := *r.repository + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository", t, "multi") + } + } + if r.repositoryLabel != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository_label", r.repositoryLabel, "") + } + if r.repositoryName != nil { + t := *r.repositoryName + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository_name", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository_name", t, "multi") + } + } + if r.repositoryVersion != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "repository_version", r.repositoryVersion, "") + } + if r.signed != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "signed", r.signed, "") + } + if r.tags != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "") + } + if r.version != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "version", r.version, "") + } + if r.versionRange != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "version_range", r.versionRange, "") + } + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest struct { + ctx context.Context + ApiService *PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService + collectionVersionSearchList *CollectionVersionSearchList +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest) CollectionVersionSearchList(collectionVersionSearchList CollectionVersionSearchList) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest { + r.collectionVersionSearchList = &collectionVersionSearchList + return r +} + +func (r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest) Execute() (*CollectionVersionSearchListResponse, *http.Response, error) { + return r.ApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuildExecute(r) +} + +/* +PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuild Method for PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuild + +A viewset for cross-repo searches. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest +*/ +func (a *PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuild(ctx context.Context) PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest { + return PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return CollectionVersionSearchListResponse +func (a *PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService) PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuildExecute(r PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest) (*CollectionVersionSearchListResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CollectionVersionSearchListResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuild") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pulp_ansible/galaxy/default/api/v3/plugin/ansible/search/collection-versions/" + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.collectionVersionSearchList == nil { + return localVarReturnValue, nil, reportError("collectionVersionSearchList is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.collectionVersionSearchList + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/release/api_pulp_ansible_tags.go b/release/api_pulp_ansible_tags.go index b56f89e4..3a7d0e98 100644 --- a/release/api_pulp_ansible_tags.go +++ b/release/api_pulp_ansible_tags.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_container_namespaces.go b/release/api_pulp_container_namespaces.go index 4fc70ffe..e04e4734 100644 --- a/release/api_pulp_container_namespaces.go +++ b/release/api_pulp_container_namespaces.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pulp_maven.go b/release/api_pulp_maven.go index 10c38fc2..6318ed2b 100644 --- a/release/api_pulp_maven.go +++ b/release/api_pulp_maven.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pypi.go b/release/api_pypi.go index b35dbfb3..72cfab35 100644 --- a/release/api_pypi.go +++ b/release/api_pypi.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pypi_legacy.go b/release/api_pypi_legacy.go index 0b3892de..f079622c 100644 --- a/release/api_pypi_legacy.go +++ b/release/api_pypi_legacy.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pypi_metadata.go b/release/api_pypi_metadata.go index 2468e731..435cc539 100644 --- a/release/api_pypi_metadata.go +++ b/release/api_pypi_metadata.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_pypi_simple.go b/release/api_pypi_simple.go index aee56da8..6492bfe0 100644 --- a/release/api_pypi_simple.go +++ b/release/api_pypi_simple.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_remotes.go b/release/api_remotes.go index ba3c26e0..eb9ce55f 100644 --- a/release/api_remotes.go +++ b/release/api_remotes.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_remotes_apt.go b/release/api_remotes_apt.go index 8a36e2e6..4f748abb 100644 --- a/release/api_remotes_apt.go +++ b/release/api_remotes_apt.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_remotes_collection.go b/release/api_remotes_collection.go index b2d4c6ae..53723676 100644 --- a/release/api_remotes_collection.go +++ b/release/api_remotes_collection.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" @@ -26,6 +26,121 @@ import ( // RemotesCollectionApiService RemotesCollectionApi service type RemotesCollectionApiService service +type RemotesCollectionApiRemotesAnsibleCollectionAddRoleRequest struct { + ctx context.Context + ApiService *RemotesCollectionApiService + ansibleCollectionRemoteHref string + nestedRole *NestedRole +} + +func (r RemotesCollectionApiRemotesAnsibleCollectionAddRoleRequest) NestedRole(nestedRole NestedRole) RemotesCollectionApiRemotesAnsibleCollectionAddRoleRequest { + r.nestedRole = &nestedRole + return r +} + +func (r RemotesCollectionApiRemotesAnsibleCollectionAddRoleRequest) Execute() (*NestedRoleResponse, *http.Response, error) { + return r.ApiService.RemotesAnsibleCollectionAddRoleExecute(r) +} + +/* +RemotesAnsibleCollectionAddRole Method for RemotesAnsibleCollectionAddRole + +Add a role for this object to users/groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleCollectionRemoteHref + @return RemotesCollectionApiRemotesAnsibleCollectionAddRoleRequest +*/ +func (a *RemotesCollectionApiService) RemotesAnsibleCollectionAddRole(ctx context.Context, ansibleCollectionRemoteHref string) RemotesCollectionApiRemotesAnsibleCollectionAddRoleRequest { + return RemotesCollectionApiRemotesAnsibleCollectionAddRoleRequest{ + ApiService: a, + ctx: ctx, + ansibleCollectionRemoteHref: ansibleCollectionRemoteHref, + } +} + +// Execute executes the request +// @return NestedRoleResponse +func (a *RemotesCollectionApiService) RemotesAnsibleCollectionAddRoleExecute(r RemotesCollectionApiRemotesAnsibleCollectionAddRoleRequest) (*NestedRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NestedRoleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RemotesCollectionApiService.RemotesAnsibleCollectionAddRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_collection_remote_href}add_role/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_collection_remote_href"+"}", url.PathEscape(parameterValueToString(r.ansibleCollectionRemoteHref, "ansibleCollectionRemoteHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.nestedRole == nil { + return localVarReturnValue, nil, reportError("nestedRole is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.nestedRole + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type RemotesCollectionApiRemotesAnsibleCollectionCreateRequest struct { ctx context.Context ApiService *RemotesCollectionApiService @@ -257,6 +372,10 @@ type RemotesCollectionApiRemotesAnsibleCollectionListRequest struct { pulpLastUpdatedLt *time.Time pulpLastUpdatedLte *time.Time pulpLastUpdatedRange *[]time.Time + url *string + urlContains *string + urlIcontains *string + urlIn *[]string fields *[]string excludeFields *[]string } @@ -351,6 +470,30 @@ func (r RemotesCollectionApiRemotesAnsibleCollectionListRequest) PulpLastUpdated return r } +// Filter results where url matches value +func (r RemotesCollectionApiRemotesAnsibleCollectionListRequest) Url(url string) RemotesCollectionApiRemotesAnsibleCollectionListRequest { + r.url = &url + return r +} + +// Filter results where url contains value +func (r RemotesCollectionApiRemotesAnsibleCollectionListRequest) UrlContains(urlContains string) RemotesCollectionApiRemotesAnsibleCollectionListRequest { + r.urlContains = &urlContains + return r +} + +// Filter results where url contains value +func (r RemotesCollectionApiRemotesAnsibleCollectionListRequest) UrlIcontains(urlIcontains string) RemotesCollectionApiRemotesAnsibleCollectionListRequest { + r.urlIcontains = &urlIcontains + return r +} + +// Filter results where url is in a comma-separated list of values +func (r RemotesCollectionApiRemotesAnsibleCollectionListRequest) UrlIn(urlIn []string) RemotesCollectionApiRemotesAnsibleCollectionListRequest { + r.urlIn = &urlIn + return r +} + // A list of fields to include in the response. func (r RemotesCollectionApiRemotesAnsibleCollectionListRequest) Fields(fields []string) RemotesCollectionApiRemotesAnsibleCollectionListRequest { r.fields = &fields @@ -447,6 +590,298 @@ func (a *RemotesCollectionApiService) RemotesAnsibleCollectionListExecute(r Remo if r.pulpLastUpdatedRange != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "pulp_last_updated__range", r.pulpLastUpdatedRange, "csv") } + if r.url != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "url", r.url, "") + } + if r.urlContains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "url__contains", r.urlContains, "") + } + if r.urlIcontains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "url__icontains", r.urlIcontains, "") + } + if r.urlIn != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "url__in", r.urlIn, "csv") + } + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type RemotesCollectionApiRemotesAnsibleCollectionListRolesRequest struct { + ctx context.Context + ApiService *RemotesCollectionApiService + ansibleCollectionRemoteHref string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r RemotesCollectionApiRemotesAnsibleCollectionListRolesRequest) Fields(fields []string) RemotesCollectionApiRemotesAnsibleCollectionListRolesRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r RemotesCollectionApiRemotesAnsibleCollectionListRolesRequest) ExcludeFields(excludeFields []string) RemotesCollectionApiRemotesAnsibleCollectionListRolesRequest { + r.excludeFields = &excludeFields + return r +} + +func (r RemotesCollectionApiRemotesAnsibleCollectionListRolesRequest) Execute() (*ObjectRolesResponse, *http.Response, error) { + return r.ApiService.RemotesAnsibleCollectionListRolesExecute(r) +} + +/* +RemotesAnsibleCollectionListRoles Method for RemotesAnsibleCollectionListRoles + +List roles assigned to this object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleCollectionRemoteHref + @return RemotesCollectionApiRemotesAnsibleCollectionListRolesRequest +*/ +func (a *RemotesCollectionApiService) RemotesAnsibleCollectionListRoles(ctx context.Context, ansibleCollectionRemoteHref string) RemotesCollectionApiRemotesAnsibleCollectionListRolesRequest { + return RemotesCollectionApiRemotesAnsibleCollectionListRolesRequest{ + ApiService: a, + ctx: ctx, + ansibleCollectionRemoteHref: ansibleCollectionRemoteHref, + } +} + +// Execute executes the request +// @return ObjectRolesResponse +func (a *RemotesCollectionApiService) RemotesAnsibleCollectionListRolesExecute(r RemotesCollectionApiRemotesAnsibleCollectionListRolesRequest) (*ObjectRolesResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectRolesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RemotesCollectionApiService.RemotesAnsibleCollectionListRoles") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_collection_remote_href}list_roles/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_collection_remote_href"+"}", url.PathEscape(parameterValueToString(r.ansibleCollectionRemoteHref, "ansibleCollectionRemoteHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type RemotesCollectionApiRemotesAnsibleCollectionMyPermissionsRequest struct { + ctx context.Context + ApiService *RemotesCollectionApiService + ansibleCollectionRemoteHref string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r RemotesCollectionApiRemotesAnsibleCollectionMyPermissionsRequest) Fields(fields []string) RemotesCollectionApiRemotesAnsibleCollectionMyPermissionsRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r RemotesCollectionApiRemotesAnsibleCollectionMyPermissionsRequest) ExcludeFields(excludeFields []string) RemotesCollectionApiRemotesAnsibleCollectionMyPermissionsRequest { + r.excludeFields = &excludeFields + return r +} + +func (r RemotesCollectionApiRemotesAnsibleCollectionMyPermissionsRequest) Execute() (*MyPermissionsResponse, *http.Response, error) { + return r.ApiService.RemotesAnsibleCollectionMyPermissionsExecute(r) +} + +/* +RemotesAnsibleCollectionMyPermissions Method for RemotesAnsibleCollectionMyPermissions + +List permissions available to the current user on this object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleCollectionRemoteHref + @return RemotesCollectionApiRemotesAnsibleCollectionMyPermissionsRequest +*/ +func (a *RemotesCollectionApiService) RemotesAnsibleCollectionMyPermissions(ctx context.Context, ansibleCollectionRemoteHref string) RemotesCollectionApiRemotesAnsibleCollectionMyPermissionsRequest { + return RemotesCollectionApiRemotesAnsibleCollectionMyPermissionsRequest{ + ApiService: a, + ctx: ctx, + ansibleCollectionRemoteHref: ansibleCollectionRemoteHref, + } +} + +// Execute executes the request +// @return MyPermissionsResponse +func (a *RemotesCollectionApiService) RemotesAnsibleCollectionMyPermissionsExecute(r RemotesCollectionApiRemotesAnsibleCollectionMyPermissionsRequest) (*MyPermissionsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MyPermissionsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RemotesCollectionApiService.RemotesAnsibleCollectionMyPermissions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_collection_remote_href}my_permissions/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_collection_remote_href"+"}", url.PathEscape(parameterValueToString(r.ansibleCollectionRemoteHref, "ansibleCollectionRemoteHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.fields != nil { t := *r.fields if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -778,6 +1213,121 @@ func (a *RemotesCollectionApiService) RemotesAnsibleCollectionReadExecute(r Remo return localVarReturnValue, localVarHTTPResponse, nil } +type RemotesCollectionApiRemotesAnsibleCollectionRemoveRoleRequest struct { + ctx context.Context + ApiService *RemotesCollectionApiService + ansibleCollectionRemoteHref string + nestedRole *NestedRole +} + +func (r RemotesCollectionApiRemotesAnsibleCollectionRemoveRoleRequest) NestedRole(nestedRole NestedRole) RemotesCollectionApiRemotesAnsibleCollectionRemoveRoleRequest { + r.nestedRole = &nestedRole + return r +} + +func (r RemotesCollectionApiRemotesAnsibleCollectionRemoveRoleRequest) Execute() (*NestedRoleResponse, *http.Response, error) { + return r.ApiService.RemotesAnsibleCollectionRemoveRoleExecute(r) +} + +/* +RemotesAnsibleCollectionRemoveRole Method for RemotesAnsibleCollectionRemoveRole + +Remove a role for this object from users/groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleCollectionRemoteHref + @return RemotesCollectionApiRemotesAnsibleCollectionRemoveRoleRequest +*/ +func (a *RemotesCollectionApiService) RemotesAnsibleCollectionRemoveRole(ctx context.Context, ansibleCollectionRemoteHref string) RemotesCollectionApiRemotesAnsibleCollectionRemoveRoleRequest { + return RemotesCollectionApiRemotesAnsibleCollectionRemoveRoleRequest{ + ApiService: a, + ctx: ctx, + ansibleCollectionRemoteHref: ansibleCollectionRemoteHref, + } +} + +// Execute executes the request +// @return NestedRoleResponse +func (a *RemotesCollectionApiService) RemotesAnsibleCollectionRemoveRoleExecute(r RemotesCollectionApiRemotesAnsibleCollectionRemoveRoleRequest) (*NestedRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NestedRoleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RemotesCollectionApiService.RemotesAnsibleCollectionRemoveRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_collection_remote_href}remove_role/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_collection_remote_href"+"}", url.PathEscape(parameterValueToString(r.ansibleCollectionRemoteHref, "ansibleCollectionRemoteHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.nestedRole == nil { + return localVarReturnValue, nil, reportError("nestedRole is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.nestedRole + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type RemotesCollectionApiRemotesAnsibleCollectionUpdateRequest struct { ctx context.Context ApiService *RemotesCollectionApiService diff --git a/release/api_remotes_container.go b/release/api_remotes_container.go index 812d53dd..0c487a48 100644 --- a/release/api_remotes_container.go +++ b/release/api_remotes_container.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_remotes_file.go b/release/api_remotes_file.go index b2aacdd0..1c233d4a 100644 --- a/release/api_remotes_file.go +++ b/release/api_remotes_file.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_remotes_git.go b/release/api_remotes_git.go index 3d1b611c..63a49259 100644 --- a/release/api_remotes_git.go +++ b/release/api_remotes_git.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" @@ -26,6 +26,121 @@ import ( // RemotesGitApiService RemotesGitApi service type RemotesGitApiService service +type RemotesGitApiRemotesAnsibleGitAddRoleRequest struct { + ctx context.Context + ApiService *RemotesGitApiService + ansibleGitRemoteHref string + nestedRole *NestedRole +} + +func (r RemotesGitApiRemotesAnsibleGitAddRoleRequest) NestedRole(nestedRole NestedRole) RemotesGitApiRemotesAnsibleGitAddRoleRequest { + r.nestedRole = &nestedRole + return r +} + +func (r RemotesGitApiRemotesAnsibleGitAddRoleRequest) Execute() (*NestedRoleResponse, *http.Response, error) { + return r.ApiService.RemotesAnsibleGitAddRoleExecute(r) +} + +/* +RemotesAnsibleGitAddRole Method for RemotesAnsibleGitAddRole + +Add a role for this object to users/groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleGitRemoteHref + @return RemotesGitApiRemotesAnsibleGitAddRoleRequest +*/ +func (a *RemotesGitApiService) RemotesAnsibleGitAddRole(ctx context.Context, ansibleGitRemoteHref string) RemotesGitApiRemotesAnsibleGitAddRoleRequest { + return RemotesGitApiRemotesAnsibleGitAddRoleRequest{ + ApiService: a, + ctx: ctx, + ansibleGitRemoteHref: ansibleGitRemoteHref, + } +} + +// Execute executes the request +// @return NestedRoleResponse +func (a *RemotesGitApiService) RemotesAnsibleGitAddRoleExecute(r RemotesGitApiRemotesAnsibleGitAddRoleRequest) (*NestedRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NestedRoleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RemotesGitApiService.RemotesAnsibleGitAddRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_git_remote_href}add_role/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_git_remote_href"+"}", url.PathEscape(parameterValueToString(r.ansibleGitRemoteHref, "ansibleGitRemoteHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.nestedRole == nil { + return localVarReturnValue, nil, reportError("nestedRole is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.nestedRole + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type RemotesGitApiRemotesAnsibleGitCreateRequest struct { ctx context.Context ApiService *RemotesGitApiService @@ -527,6 +642,286 @@ func (a *RemotesGitApiService) RemotesAnsibleGitListExecute(r RemotesGitApiRemot return localVarReturnValue, localVarHTTPResponse, nil } +type RemotesGitApiRemotesAnsibleGitListRolesRequest struct { + ctx context.Context + ApiService *RemotesGitApiService + ansibleGitRemoteHref string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r RemotesGitApiRemotesAnsibleGitListRolesRequest) Fields(fields []string) RemotesGitApiRemotesAnsibleGitListRolesRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r RemotesGitApiRemotesAnsibleGitListRolesRequest) ExcludeFields(excludeFields []string) RemotesGitApiRemotesAnsibleGitListRolesRequest { + r.excludeFields = &excludeFields + return r +} + +func (r RemotesGitApiRemotesAnsibleGitListRolesRequest) Execute() (*ObjectRolesResponse, *http.Response, error) { + return r.ApiService.RemotesAnsibleGitListRolesExecute(r) +} + +/* +RemotesAnsibleGitListRoles Method for RemotesAnsibleGitListRoles + +List roles assigned to this object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleGitRemoteHref + @return RemotesGitApiRemotesAnsibleGitListRolesRequest +*/ +func (a *RemotesGitApiService) RemotesAnsibleGitListRoles(ctx context.Context, ansibleGitRemoteHref string) RemotesGitApiRemotesAnsibleGitListRolesRequest { + return RemotesGitApiRemotesAnsibleGitListRolesRequest{ + ApiService: a, + ctx: ctx, + ansibleGitRemoteHref: ansibleGitRemoteHref, + } +} + +// Execute executes the request +// @return ObjectRolesResponse +func (a *RemotesGitApiService) RemotesAnsibleGitListRolesExecute(r RemotesGitApiRemotesAnsibleGitListRolesRequest) (*ObjectRolesResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectRolesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RemotesGitApiService.RemotesAnsibleGitListRoles") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_git_remote_href}list_roles/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_git_remote_href"+"}", url.PathEscape(parameterValueToString(r.ansibleGitRemoteHref, "ansibleGitRemoteHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type RemotesGitApiRemotesAnsibleGitMyPermissionsRequest struct { + ctx context.Context + ApiService *RemotesGitApiService + ansibleGitRemoteHref string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r RemotesGitApiRemotesAnsibleGitMyPermissionsRequest) Fields(fields []string) RemotesGitApiRemotesAnsibleGitMyPermissionsRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r RemotesGitApiRemotesAnsibleGitMyPermissionsRequest) ExcludeFields(excludeFields []string) RemotesGitApiRemotesAnsibleGitMyPermissionsRequest { + r.excludeFields = &excludeFields + return r +} + +func (r RemotesGitApiRemotesAnsibleGitMyPermissionsRequest) Execute() (*MyPermissionsResponse, *http.Response, error) { + return r.ApiService.RemotesAnsibleGitMyPermissionsExecute(r) +} + +/* +RemotesAnsibleGitMyPermissions Method for RemotesAnsibleGitMyPermissions + +List permissions available to the current user on this object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleGitRemoteHref + @return RemotesGitApiRemotesAnsibleGitMyPermissionsRequest +*/ +func (a *RemotesGitApiService) RemotesAnsibleGitMyPermissions(ctx context.Context, ansibleGitRemoteHref string) RemotesGitApiRemotesAnsibleGitMyPermissionsRequest { + return RemotesGitApiRemotesAnsibleGitMyPermissionsRequest{ + ApiService: a, + ctx: ctx, + ansibleGitRemoteHref: ansibleGitRemoteHref, + } +} + +// Execute executes the request +// @return MyPermissionsResponse +func (a *RemotesGitApiService) RemotesAnsibleGitMyPermissionsExecute(r RemotesGitApiRemotesAnsibleGitMyPermissionsRequest) (*MyPermissionsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MyPermissionsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RemotesGitApiService.RemotesAnsibleGitMyPermissions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_git_remote_href}my_permissions/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_git_remote_href"+"}", url.PathEscape(parameterValueToString(r.ansibleGitRemoteHref, "ansibleGitRemoteHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type RemotesGitApiRemotesAnsibleGitPartialUpdateRequest struct { ctx context.Context ApiService *RemotesGitApiService @@ -784,6 +1179,121 @@ func (a *RemotesGitApiService) RemotesAnsibleGitReadExecute(r RemotesGitApiRemot return localVarReturnValue, localVarHTTPResponse, nil } +type RemotesGitApiRemotesAnsibleGitRemoveRoleRequest struct { + ctx context.Context + ApiService *RemotesGitApiService + ansibleGitRemoteHref string + nestedRole *NestedRole +} + +func (r RemotesGitApiRemotesAnsibleGitRemoveRoleRequest) NestedRole(nestedRole NestedRole) RemotesGitApiRemotesAnsibleGitRemoveRoleRequest { + r.nestedRole = &nestedRole + return r +} + +func (r RemotesGitApiRemotesAnsibleGitRemoveRoleRequest) Execute() (*NestedRoleResponse, *http.Response, error) { + return r.ApiService.RemotesAnsibleGitRemoveRoleExecute(r) +} + +/* +RemotesAnsibleGitRemoveRole Method for RemotesAnsibleGitRemoveRole + +Remove a role for this object from users/groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleGitRemoteHref + @return RemotesGitApiRemotesAnsibleGitRemoveRoleRequest +*/ +func (a *RemotesGitApiService) RemotesAnsibleGitRemoveRole(ctx context.Context, ansibleGitRemoteHref string) RemotesGitApiRemotesAnsibleGitRemoveRoleRequest { + return RemotesGitApiRemotesAnsibleGitRemoveRoleRequest{ + ApiService: a, + ctx: ctx, + ansibleGitRemoteHref: ansibleGitRemoteHref, + } +} + +// Execute executes the request +// @return NestedRoleResponse +func (a *RemotesGitApiService) RemotesAnsibleGitRemoveRoleExecute(r RemotesGitApiRemotesAnsibleGitRemoveRoleRequest) (*NestedRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NestedRoleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RemotesGitApiService.RemotesAnsibleGitRemoveRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_git_remote_href}remove_role/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_git_remote_href"+"}", url.PathEscape(parameterValueToString(r.ansibleGitRemoteHref, "ansibleGitRemoteHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.nestedRole == nil { + return localVarReturnValue, nil, reportError("nestedRole is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.nestedRole + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type RemotesGitApiRemotesAnsibleGitUpdateRequest struct { ctx context.Context ApiService *RemotesGitApiService diff --git a/release/api_remotes_maven.go b/release/api_remotes_maven.go index 68fcaf83..8fa959ea 100644 --- a/release/api_remotes_maven.go +++ b/release/api_remotes_maven.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_remotes_ostree.go b/release/api_remotes_ostree.go index 387286bb..0b80360e 100644 --- a/release/api_remotes_ostree.go +++ b/release/api_remotes_ostree.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_remotes_python.go b/release/api_remotes_python.go index caa52d95..f98ce2d1 100644 --- a/release/api_remotes_python.go +++ b/release/api_remotes_python.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_remotes_role.go b/release/api_remotes_role.go index 295feec3..c7bee726 100644 --- a/release/api_remotes_role.go +++ b/release/api_remotes_role.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" @@ -26,6 +26,121 @@ import ( // RemotesRoleApiService RemotesRoleApi service type RemotesRoleApiService service +type RemotesRoleApiRemotesAnsibleRoleAddRoleRequest struct { + ctx context.Context + ApiService *RemotesRoleApiService + ansibleRoleRemoteHref string + nestedRole *NestedRole +} + +func (r RemotesRoleApiRemotesAnsibleRoleAddRoleRequest) NestedRole(nestedRole NestedRole) RemotesRoleApiRemotesAnsibleRoleAddRoleRequest { + r.nestedRole = &nestedRole + return r +} + +func (r RemotesRoleApiRemotesAnsibleRoleAddRoleRequest) Execute() (*NestedRoleResponse, *http.Response, error) { + return r.ApiService.RemotesAnsibleRoleAddRoleExecute(r) +} + +/* +RemotesAnsibleRoleAddRole Method for RemotesAnsibleRoleAddRole + +Add a role for this object to users/groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleRoleRemoteHref + @return RemotesRoleApiRemotesAnsibleRoleAddRoleRequest +*/ +func (a *RemotesRoleApiService) RemotesAnsibleRoleAddRole(ctx context.Context, ansibleRoleRemoteHref string) RemotesRoleApiRemotesAnsibleRoleAddRoleRequest { + return RemotesRoleApiRemotesAnsibleRoleAddRoleRequest{ + ApiService: a, + ctx: ctx, + ansibleRoleRemoteHref: ansibleRoleRemoteHref, + } +} + +// Execute executes the request +// @return NestedRoleResponse +func (a *RemotesRoleApiService) RemotesAnsibleRoleAddRoleExecute(r RemotesRoleApiRemotesAnsibleRoleAddRoleRequest) (*NestedRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NestedRoleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RemotesRoleApiService.RemotesAnsibleRoleAddRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_role_remote_href}add_role/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_role_remote_href"+"}", url.PathEscape(parameterValueToString(r.ansibleRoleRemoteHref, "ansibleRoleRemoteHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.nestedRole == nil { + return localVarReturnValue, nil, reportError("nestedRole is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.nestedRole + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type RemotesRoleApiRemotesAnsibleRoleCreateRequest struct { ctx context.Context ApiService *RemotesRoleApiService @@ -523,6 +638,286 @@ func (a *RemotesRoleApiService) RemotesAnsibleRoleListExecute(r RemotesRoleApiRe return localVarReturnValue, localVarHTTPResponse, nil } +type RemotesRoleApiRemotesAnsibleRoleListRolesRequest struct { + ctx context.Context + ApiService *RemotesRoleApiService + ansibleRoleRemoteHref string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r RemotesRoleApiRemotesAnsibleRoleListRolesRequest) Fields(fields []string) RemotesRoleApiRemotesAnsibleRoleListRolesRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r RemotesRoleApiRemotesAnsibleRoleListRolesRequest) ExcludeFields(excludeFields []string) RemotesRoleApiRemotesAnsibleRoleListRolesRequest { + r.excludeFields = &excludeFields + return r +} + +func (r RemotesRoleApiRemotesAnsibleRoleListRolesRequest) Execute() (*ObjectRolesResponse, *http.Response, error) { + return r.ApiService.RemotesAnsibleRoleListRolesExecute(r) +} + +/* +RemotesAnsibleRoleListRoles Method for RemotesAnsibleRoleListRoles + +List roles assigned to this object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleRoleRemoteHref + @return RemotesRoleApiRemotesAnsibleRoleListRolesRequest +*/ +func (a *RemotesRoleApiService) RemotesAnsibleRoleListRoles(ctx context.Context, ansibleRoleRemoteHref string) RemotesRoleApiRemotesAnsibleRoleListRolesRequest { + return RemotesRoleApiRemotesAnsibleRoleListRolesRequest{ + ApiService: a, + ctx: ctx, + ansibleRoleRemoteHref: ansibleRoleRemoteHref, + } +} + +// Execute executes the request +// @return ObjectRolesResponse +func (a *RemotesRoleApiService) RemotesAnsibleRoleListRolesExecute(r RemotesRoleApiRemotesAnsibleRoleListRolesRequest) (*ObjectRolesResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectRolesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RemotesRoleApiService.RemotesAnsibleRoleListRoles") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_role_remote_href}list_roles/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_role_remote_href"+"}", url.PathEscape(parameterValueToString(r.ansibleRoleRemoteHref, "ansibleRoleRemoteHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type RemotesRoleApiRemotesAnsibleRoleMyPermissionsRequest struct { + ctx context.Context + ApiService *RemotesRoleApiService + ansibleRoleRemoteHref string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r RemotesRoleApiRemotesAnsibleRoleMyPermissionsRequest) Fields(fields []string) RemotesRoleApiRemotesAnsibleRoleMyPermissionsRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r RemotesRoleApiRemotesAnsibleRoleMyPermissionsRequest) ExcludeFields(excludeFields []string) RemotesRoleApiRemotesAnsibleRoleMyPermissionsRequest { + r.excludeFields = &excludeFields + return r +} + +func (r RemotesRoleApiRemotesAnsibleRoleMyPermissionsRequest) Execute() (*MyPermissionsResponse, *http.Response, error) { + return r.ApiService.RemotesAnsibleRoleMyPermissionsExecute(r) +} + +/* +RemotesAnsibleRoleMyPermissions Method for RemotesAnsibleRoleMyPermissions + +List permissions available to the current user on this object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleRoleRemoteHref + @return RemotesRoleApiRemotesAnsibleRoleMyPermissionsRequest +*/ +func (a *RemotesRoleApiService) RemotesAnsibleRoleMyPermissions(ctx context.Context, ansibleRoleRemoteHref string) RemotesRoleApiRemotesAnsibleRoleMyPermissionsRequest { + return RemotesRoleApiRemotesAnsibleRoleMyPermissionsRequest{ + ApiService: a, + ctx: ctx, + ansibleRoleRemoteHref: ansibleRoleRemoteHref, + } +} + +// Execute executes the request +// @return MyPermissionsResponse +func (a *RemotesRoleApiService) RemotesAnsibleRoleMyPermissionsExecute(r RemotesRoleApiRemotesAnsibleRoleMyPermissionsRequest) (*MyPermissionsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MyPermissionsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RemotesRoleApiService.RemotesAnsibleRoleMyPermissions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_role_remote_href}my_permissions/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_role_remote_href"+"}", url.PathEscape(parameterValueToString(r.ansibleRoleRemoteHref, "ansibleRoleRemoteHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type RemotesRoleApiRemotesAnsibleRolePartialUpdateRequest struct { ctx context.Context ApiService *RemotesRoleApiService @@ -778,6 +1173,121 @@ func (a *RemotesRoleApiService) RemotesAnsibleRoleReadExecute(r RemotesRoleApiRe return localVarReturnValue, localVarHTTPResponse, nil } +type RemotesRoleApiRemotesAnsibleRoleRemoveRoleRequest struct { + ctx context.Context + ApiService *RemotesRoleApiService + ansibleRoleRemoteHref string + nestedRole *NestedRole +} + +func (r RemotesRoleApiRemotesAnsibleRoleRemoveRoleRequest) NestedRole(nestedRole NestedRole) RemotesRoleApiRemotesAnsibleRoleRemoveRoleRequest { + r.nestedRole = &nestedRole + return r +} + +func (r RemotesRoleApiRemotesAnsibleRoleRemoveRoleRequest) Execute() (*NestedRoleResponse, *http.Response, error) { + return r.ApiService.RemotesAnsibleRoleRemoveRoleExecute(r) +} + +/* +RemotesAnsibleRoleRemoveRole Method for RemotesAnsibleRoleRemoveRole + +Remove a role for this object from users/groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleRoleRemoteHref + @return RemotesRoleApiRemotesAnsibleRoleRemoveRoleRequest +*/ +func (a *RemotesRoleApiService) RemotesAnsibleRoleRemoveRole(ctx context.Context, ansibleRoleRemoteHref string) RemotesRoleApiRemotesAnsibleRoleRemoveRoleRequest { + return RemotesRoleApiRemotesAnsibleRoleRemoveRoleRequest{ + ApiService: a, + ctx: ctx, + ansibleRoleRemoteHref: ansibleRoleRemoteHref, + } +} + +// Execute executes the request +// @return NestedRoleResponse +func (a *RemotesRoleApiService) RemotesAnsibleRoleRemoveRoleExecute(r RemotesRoleApiRemotesAnsibleRoleRemoveRoleRequest) (*NestedRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NestedRoleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RemotesRoleApiService.RemotesAnsibleRoleRemoveRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_role_remote_href}remove_role/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_role_remote_href"+"}", url.PathEscape(parameterValueToString(r.ansibleRoleRemoteHref, "ansibleRoleRemoteHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.nestedRole == nil { + return localVarReturnValue, nil, reportError("nestedRole is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.nestedRole + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type RemotesRoleApiRemotesAnsibleRoleUpdateRequest struct { ctx context.Context ApiService *RemotesRoleApiService diff --git a/release/api_remotes_rpm.go b/release/api_remotes_rpm.go index bb94593d..cf1147c3 100644 --- a/release/api_remotes_rpm.go +++ b/release/api_remotes_rpm.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_remotes_uln.go b/release/api_remotes_uln.go index c18347ca..f29a9702 100644 --- a/release/api_remotes_uln.go +++ b/release/api_remotes_uln.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repair.go b/release/api_repair.go index af3947dc..7db2e2b8 100644 --- a/release/api_repair.go +++ b/release/api_repair.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories.go b/release/api_repositories.go index 97faa32a..a7ebe09d 100644 --- a/release/api_repositories.go +++ b/release/api_repositories.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_ansible.go b/release/api_repositories_ansible.go index 2d329322..00eab797 100644 --- a/release/api_repositories_ansible.go +++ b/release/api_repositories_ansible.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" @@ -25,6 +25,236 @@ import ( // RepositoriesAnsibleApiService RepositoriesAnsibleApi service type RepositoriesAnsibleApiService service +type RepositoriesAnsibleApiRepositoriesAnsibleAnsibleAddRoleRequest struct { + ctx context.Context + ApiService *RepositoriesAnsibleApiService + ansibleAnsibleRepositoryHref string + nestedRole *NestedRole +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleAddRoleRequest) NestedRole(nestedRole NestedRole) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleAddRoleRequest { + r.nestedRole = &nestedRole + return r +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleAddRoleRequest) Execute() (*NestedRoleResponse, *http.Response, error) { + return r.ApiService.RepositoriesAnsibleAnsibleAddRoleExecute(r) +} + +/* +RepositoriesAnsibleAnsibleAddRole Method for RepositoriesAnsibleAnsibleAddRole + +Add a role for this object to users/groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleAnsibleRepositoryHref + @return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleAddRoleRequest +*/ +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleAddRole(ctx context.Context, ansibleAnsibleRepositoryHref string) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleAddRoleRequest { + return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleAddRoleRequest{ + ApiService: a, + ctx: ctx, + ansibleAnsibleRepositoryHref: ansibleAnsibleRepositoryHref, + } +} + +// Execute executes the request +// @return NestedRoleResponse +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleAddRoleExecute(r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleAddRoleRequest) (*NestedRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NestedRoleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RepositoriesAnsibleApiService.RepositoriesAnsibleAnsibleAddRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_ansible_repository_href}add_role/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_ansible_repository_href"+"}", url.PathEscape(parameterValueToString(r.ansibleAnsibleRepositoryHref, "ansibleAnsibleRepositoryHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.nestedRole == nil { + return localVarReturnValue, nil, reportError("nestedRole is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.nestedRole + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type RepositoriesAnsibleApiRepositoriesAnsibleAnsibleCopyCollectionVersionRequest struct { + ctx context.Context + ApiService *RepositoriesAnsibleApiService + ansibleAnsibleRepositoryHref string + collectionVersionCopyMove *CollectionVersionCopyMove +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleCopyCollectionVersionRequest) CollectionVersionCopyMove(collectionVersionCopyMove CollectionVersionCopyMove) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleCopyCollectionVersionRequest { + r.collectionVersionCopyMove = &collectionVersionCopyMove + return r +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleCopyCollectionVersionRequest) Execute() (*AsyncOperationResponse, *http.Response, error) { + return r.ApiService.RepositoriesAnsibleAnsibleCopyCollectionVersionExecute(r) +} + +/* +RepositoriesAnsibleAnsibleCopyCollectionVersion Method for RepositoriesAnsibleAnsibleCopyCollectionVersion + +Trigger an asynchronous task to copy collection versions. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleAnsibleRepositoryHref + @return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleCopyCollectionVersionRequest +*/ +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleCopyCollectionVersion(ctx context.Context, ansibleAnsibleRepositoryHref string) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleCopyCollectionVersionRequest { + return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleCopyCollectionVersionRequest{ + ApiService: a, + ctx: ctx, + ansibleAnsibleRepositoryHref: ansibleAnsibleRepositoryHref, + } +} + +// Execute executes the request +// @return AsyncOperationResponse +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleCopyCollectionVersionExecute(r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleCopyCollectionVersionRequest) (*AsyncOperationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AsyncOperationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RepositoriesAnsibleApiService.RepositoriesAnsibleAnsibleCopyCollectionVersion") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_ansible_repository_href}copy_collection_version/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_ansible_repository_href"+"}", url.PathEscape(parameterValueToString(r.ansibleAnsibleRepositoryHref, "ansibleAnsibleRepositoryHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.collectionVersionCopyMove == nil { + return localVarReturnValue, nil, reportError("collectionVersionCopyMove is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.collectionVersionCopyMove + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type RepositoriesAnsibleApiRepositoriesAnsibleAnsibleCreateRequest struct { ctx context.Context ApiService *RepositoriesAnsibleApiService @@ -499,7 +729,490 @@ func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleListExecute(r } } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type RepositoriesAnsibleApiRepositoriesAnsibleAnsibleListRolesRequest struct { + ctx context.Context + ApiService *RepositoriesAnsibleApiService + ansibleAnsibleRepositoryHref string + fields *[]string + excludeFields *[]string +} + +// A list of fields to include in the response. +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleListRolesRequest) Fields(fields []string) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleListRolesRequest { + r.fields = &fields + return r +} + +// A list of fields to exclude from the response. +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleListRolesRequest) ExcludeFields(excludeFields []string) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleListRolesRequest { + r.excludeFields = &excludeFields + return r +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleListRolesRequest) Execute() (*ObjectRolesResponse, *http.Response, error) { + return r.ApiService.RepositoriesAnsibleAnsibleListRolesExecute(r) +} + +/* +RepositoriesAnsibleAnsibleListRoles Method for RepositoriesAnsibleAnsibleListRoles + +List roles assigned to this object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleAnsibleRepositoryHref + @return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleListRolesRequest +*/ +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleListRoles(ctx context.Context, ansibleAnsibleRepositoryHref string) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleListRolesRequest { + return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleListRolesRequest{ + ApiService: a, + ctx: ctx, + ansibleAnsibleRepositoryHref: ansibleAnsibleRepositoryHref, + } +} + +// Execute executes the request +// @return ObjectRolesResponse +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleListRolesExecute(r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleListRolesRequest) (*ObjectRolesResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectRolesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RepositoriesAnsibleApiService.RepositoriesAnsibleAnsibleListRoles") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_ansible_repository_href}list_roles/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_ansible_repository_href"+"}", url.PathEscape(parameterValueToString(r.ansibleAnsibleRepositoryHref, "ansibleAnsibleRepositoryHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMarkRequest struct { + ctx context.Context + ApiService *RepositoriesAnsibleApiService + ansibleAnsibleRepositoryHref string + ansibleRepositoryMark *AnsibleRepositoryMark +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMarkRequest) AnsibleRepositoryMark(ansibleRepositoryMark AnsibleRepositoryMark) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMarkRequest { + r.ansibleRepositoryMark = &ansibleRepositoryMark + return r +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMarkRequest) Execute() (*AsyncOperationResponse, *http.Response, error) { + return r.ApiService.RepositoriesAnsibleAnsibleMarkExecute(r) +} + +/* +RepositoriesAnsibleAnsibleMark Method for RepositoriesAnsibleAnsibleMark + +Trigger an asynchronous task to mark Ansible content. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleAnsibleRepositoryHref + @return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMarkRequest +*/ +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleMark(ctx context.Context, ansibleAnsibleRepositoryHref string) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMarkRequest { + return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMarkRequest{ + ApiService: a, + ctx: ctx, + ansibleAnsibleRepositoryHref: ansibleAnsibleRepositoryHref, + } +} + +// Execute executes the request +// @return AsyncOperationResponse +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleMarkExecute(r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMarkRequest) (*AsyncOperationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AsyncOperationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RepositoriesAnsibleApiService.RepositoriesAnsibleAnsibleMark") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_ansible_repository_href}mark/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_ansible_repository_href"+"}", url.PathEscape(parameterValueToString(r.ansibleAnsibleRepositoryHref, "ansibleAnsibleRepositoryHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.ansibleRepositoryMark == nil { + return localVarReturnValue, nil, reportError("ansibleRepositoryMark is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.ansibleRepositoryMark + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest struct { + ctx context.Context + ApiService *RepositoriesAnsibleApiService + ansibleAnsibleRepositoryHref string + repositoryAddRemoveContent *RepositoryAddRemoveContent +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest) RepositoryAddRemoveContent(repositoryAddRemoveContent RepositoryAddRemoveContent) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest { + r.repositoryAddRemoveContent = &repositoryAddRemoveContent + return r +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest) Execute() (*AsyncOperationResponse, *http.Response, error) { + return r.ApiService.RepositoriesAnsibleAnsibleModifyExecute(r) +} + +/* +RepositoriesAnsibleAnsibleModify Modify Repository Content + +Trigger an asynchronous task to create a new repository version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleAnsibleRepositoryHref + @return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest +*/ +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleModify(ctx context.Context, ansibleAnsibleRepositoryHref string) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest { + return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest{ + ApiService: a, + ctx: ctx, + ansibleAnsibleRepositoryHref: ansibleAnsibleRepositoryHref, + } +} + +// Execute executes the request +// @return AsyncOperationResponse +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleModifyExecute(r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest) (*AsyncOperationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AsyncOperationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RepositoriesAnsibleApiService.RepositoriesAnsibleAnsibleModify") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_ansible_repository_href}modify/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_ansible_repository_href"+"}", url.PathEscape(parameterValueToString(r.ansibleAnsibleRepositoryHref, "ansibleAnsibleRepositoryHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.repositoryAddRemoveContent == nil { + return localVarReturnValue, nil, reportError("repositoryAddRemoveContent is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.repositoryAddRemoveContent + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMoveCollectionVersionRequest struct { + ctx context.Context + ApiService *RepositoriesAnsibleApiService + ansibleAnsibleRepositoryHref string + collectionVersionCopyMove *CollectionVersionCopyMove +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMoveCollectionVersionRequest) CollectionVersionCopyMove(collectionVersionCopyMove CollectionVersionCopyMove) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMoveCollectionVersionRequest { + r.collectionVersionCopyMove = &collectionVersionCopyMove + return r +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMoveCollectionVersionRequest) Execute() (*AsyncOperationResponse, *http.Response, error) { + return r.ApiService.RepositoriesAnsibleAnsibleMoveCollectionVersionExecute(r) +} + +/* +RepositoriesAnsibleAnsibleMoveCollectionVersion Method for RepositoriesAnsibleAnsibleMoveCollectionVersion + +Trigger an asynchronous task to move collection versions. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleAnsibleRepositoryHref + @return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMoveCollectionVersionRequest +*/ +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleMoveCollectionVersion(ctx context.Context, ansibleAnsibleRepositoryHref string) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMoveCollectionVersionRequest { + return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMoveCollectionVersionRequest{ + ApiService: a, + ctx: ctx, + ansibleAnsibleRepositoryHref: ansibleAnsibleRepositoryHref, + } +} + +// Execute executes the request +// @return AsyncOperationResponse +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleMoveCollectionVersionExecute(r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMoveCollectionVersionRequest) (*AsyncOperationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AsyncOperationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RepositoriesAnsibleApiService.RepositoriesAnsibleAnsibleMoveCollectionVersion") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_ansible_repository_href}move_collection_version/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_ansible_repository_href"+"}", url.PathEscape(parameterValueToString(r.ansibleAnsibleRepositoryHref, "ansibleAnsibleRepositoryHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.collectionVersionCopyMove == nil { + return localVarReturnValue, nil, reportError("collectionVersionCopyMove is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -515,6 +1228,8 @@ func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleListExecute(r if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.collectionVersionCopyMove req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -552,33 +1267,41 @@ func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleListExecute(r return localVarReturnValue, localVarHTTPResponse, nil } -type RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest struct { +type RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMyPermissionsRequest struct { ctx context.Context ApiService *RepositoriesAnsibleApiService ansibleAnsibleRepositoryHref string - repositoryAddRemoveContent *RepositoryAddRemoveContent + fields *[]string + excludeFields *[]string } -func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest) RepositoryAddRemoveContent(repositoryAddRemoveContent RepositoryAddRemoveContent) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest { - r.repositoryAddRemoveContent = &repositoryAddRemoveContent +// A list of fields to include in the response. +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMyPermissionsRequest) Fields(fields []string) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMyPermissionsRequest { + r.fields = &fields return r } -func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest) Execute() (*AsyncOperationResponse, *http.Response, error) { - return r.ApiService.RepositoriesAnsibleAnsibleModifyExecute(r) +// A list of fields to exclude from the response. +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMyPermissionsRequest) ExcludeFields(excludeFields []string) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMyPermissionsRequest { + r.excludeFields = &excludeFields + return r +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMyPermissionsRequest) Execute() (*MyPermissionsResponse, *http.Response, error) { + return r.ApiService.RepositoriesAnsibleAnsibleMyPermissionsExecute(r) } /* -RepositoriesAnsibleAnsibleModify Modify Repository Content +RepositoriesAnsibleAnsibleMyPermissions Method for RepositoriesAnsibleAnsibleMyPermissions -Trigger an asynchronous task to create a new repository version. +List permissions available to the current user on this object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param ansibleAnsibleRepositoryHref - @return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest + @return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMyPermissionsRequest */ -func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleModify(ctx context.Context, ansibleAnsibleRepositoryHref string) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest { - return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest{ +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleMyPermissions(ctx context.Context, ansibleAnsibleRepositoryHref string) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMyPermissionsRequest { + return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMyPermissionsRequest{ ApiService: a, ctx: ctx, ansibleAnsibleRepositoryHref: ansibleAnsibleRepositoryHref, @@ -586,33 +1309,52 @@ func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleModify(ctx con } // Execute executes the request -// @return AsyncOperationResponse -func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleModifyExecute(r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleModifyRequest) (*AsyncOperationResponse, *http.Response, error) { +// @return MyPermissionsResponse +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleMyPermissionsExecute(r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleMyPermissionsRequest) (*MyPermissionsResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AsyncOperationResponse + localVarReturnValue *MyPermissionsResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RepositoriesAnsibleApiService.RepositoriesAnsibleAnsibleModify") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RepositoriesAnsibleApiService.RepositoriesAnsibleAnsibleMyPermissions") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/{ansible_ansible_repository_href}modify/" + localVarPath := localBasePath + "/{ansible_ansible_repository_href}my_permissions/" localVarPath = strings.Replace(localVarPath, "{"+"ansible_ansible_repository_href"+"}", url.PathEscape(parameterValueToString(r.ansibleAnsibleRepositoryHref, "ansibleAnsibleRepositoryHref")), -1) localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.repositoryAddRemoveContent == nil { - return localVarReturnValue, nil, reportError("repositoryAddRemoveContent is required and must be specified") - } + if r.fields != nil { + t := *r.fields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", t, "multi") + } + } + if r.excludeFields != nil { + t := *r.excludeFields + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", s.Index(i), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_fields", t, "multi") + } + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -628,8 +1370,6 @@ func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleModifyExecute( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.repositoryAddRemoveContent req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1037,6 +1777,121 @@ func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleRebuildMetadat return localVarReturnValue, localVarHTTPResponse, nil } +type RepositoriesAnsibleApiRepositoriesAnsibleAnsibleRemoveRoleRequest struct { + ctx context.Context + ApiService *RepositoriesAnsibleApiService + ansibleAnsibleRepositoryHref string + nestedRole *NestedRole +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleRemoveRoleRequest) NestedRole(nestedRole NestedRole) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleRemoveRoleRequest { + r.nestedRole = &nestedRole + return r +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleRemoveRoleRequest) Execute() (*NestedRoleResponse, *http.Response, error) { + return r.ApiService.RepositoriesAnsibleAnsibleRemoveRoleExecute(r) +} + +/* +RepositoriesAnsibleAnsibleRemoveRole Method for RepositoriesAnsibleAnsibleRemoveRole + +Remove a role for this object from users/groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleAnsibleRepositoryHref + @return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleRemoveRoleRequest +*/ +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleRemoveRole(ctx context.Context, ansibleAnsibleRepositoryHref string) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleRemoveRoleRequest { + return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleRemoveRoleRequest{ + ApiService: a, + ctx: ctx, + ansibleAnsibleRepositoryHref: ansibleAnsibleRepositoryHref, + } +} + +// Execute executes the request +// @return NestedRoleResponse +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleRemoveRoleExecute(r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleRemoveRoleRequest) (*NestedRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NestedRoleResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RepositoriesAnsibleApiService.RepositoriesAnsibleAnsibleRemoveRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_ansible_repository_href}remove_role/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_ansible_repository_href"+"}", url.PathEscape(parameterValueToString(r.ansibleAnsibleRepositoryHref, "ansibleAnsibleRepositoryHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.nestedRole == nil { + return localVarReturnValue, nil, reportError("nestedRole is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.nestedRole + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type RepositoriesAnsibleApiRepositoriesAnsibleAnsibleSignRequest struct { ctx context.Context ApiService *RepositoriesAnsibleApiService @@ -1267,6 +2122,121 @@ func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleSyncExecute(r return localVarReturnValue, localVarHTTPResponse, nil } +type RepositoriesAnsibleApiRepositoriesAnsibleAnsibleUnmarkRequest struct { + ctx context.Context + ApiService *RepositoriesAnsibleApiService + ansibleAnsibleRepositoryHref string + ansibleRepositoryMark *AnsibleRepositoryMark +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleUnmarkRequest) AnsibleRepositoryMark(ansibleRepositoryMark AnsibleRepositoryMark) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleUnmarkRequest { + r.ansibleRepositoryMark = &ansibleRepositoryMark + return r +} + +func (r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleUnmarkRequest) Execute() (*AsyncOperationResponse, *http.Response, error) { + return r.ApiService.RepositoriesAnsibleAnsibleUnmarkExecute(r) +} + +/* +RepositoriesAnsibleAnsibleUnmark Method for RepositoriesAnsibleAnsibleUnmark + +Trigger an asynchronous task to unmark Ansible content. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ansibleAnsibleRepositoryHref + @return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleUnmarkRequest +*/ +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleUnmark(ctx context.Context, ansibleAnsibleRepositoryHref string) RepositoriesAnsibleApiRepositoriesAnsibleAnsibleUnmarkRequest { + return RepositoriesAnsibleApiRepositoriesAnsibleAnsibleUnmarkRequest{ + ApiService: a, + ctx: ctx, + ansibleAnsibleRepositoryHref: ansibleAnsibleRepositoryHref, + } +} + +// Execute executes the request +// @return AsyncOperationResponse +func (a *RepositoriesAnsibleApiService) RepositoriesAnsibleAnsibleUnmarkExecute(r RepositoriesAnsibleApiRepositoriesAnsibleAnsibleUnmarkRequest) (*AsyncOperationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AsyncOperationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RepositoriesAnsibleApiService.RepositoriesAnsibleAnsibleUnmark") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/{ansible_ansible_repository_href}unmark/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_ansible_repository_href"+"}", url.PathEscape(parameterValueToString(r.ansibleAnsibleRepositoryHref, "ansibleAnsibleRepositoryHref")), -1) + localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.ansibleRepositoryMark == nil { + return localVarReturnValue, nil, reportError("ansibleRepositoryMark is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.ansibleRepositoryMark + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type RepositoriesAnsibleApiRepositoriesAnsibleAnsibleUpdateRequest struct { ctx context.Context ApiService *RepositoriesAnsibleApiService diff --git a/release/api_repositories_ansible_versions.go b/release/api_repositories_ansible_versions.go index 5859eae1..641e3953 100644 --- a/release/api_repositories_ansible_versions.go +++ b/release/api_repositories_ansible_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_apt.go b/release/api_repositories_apt.go index 7f6ebc72..1ddbcd49 100644 --- a/release/api_repositories_apt.go +++ b/release/api_repositories_apt.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_apt_versions.go b/release/api_repositories_apt_versions.go index 4b021db3..c1c987a2 100644 --- a/release/api_repositories_apt_versions.go +++ b/release/api_repositories_apt_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_container.go b/release/api_repositories_container.go index b63d5741..833471b6 100644 --- a/release/api_repositories_container.go +++ b/release/api_repositories_container.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_container_push.go b/release/api_repositories_container_push.go index 85843cce..4e099d28 100644 --- a/release/api_repositories_container_push.go +++ b/release/api_repositories_container_push.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_container_push_versions.go b/release/api_repositories_container_push_versions.go index 3b515dbf..60077cb1 100644 --- a/release/api_repositories_container_push_versions.go +++ b/release/api_repositories_container_push_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_container_versions.go b/release/api_repositories_container_versions.go index a9a5fe96..bd7933f0 100644 --- a/release/api_repositories_container_versions.go +++ b/release/api_repositories_container_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_file.go b/release/api_repositories_file.go index 7a4f395e..8a810488 100644 --- a/release/api_repositories_file.go +++ b/release/api_repositories_file.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_file_versions.go b/release/api_repositories_file_versions.go index afe5582f..67d22caf 100644 --- a/release/api_repositories_file_versions.go +++ b/release/api_repositories_file_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_maven.go b/release/api_repositories_maven.go index 230ca1b3..aa4b7190 100644 --- a/release/api_repositories_maven.go +++ b/release/api_repositories_maven.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_maven_versions.go b/release/api_repositories_maven_versions.go index 85aaf262..2dc504fe 100644 --- a/release/api_repositories_maven_versions.go +++ b/release/api_repositories_maven_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_ostree.go b/release/api_repositories_ostree.go index ca7f81b6..e80e3b1d 100644 --- a/release/api_repositories_ostree.go +++ b/release/api_repositories_ostree.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_ostree_versions.go b/release/api_repositories_ostree_versions.go index c2570ccf..242b3261 100644 --- a/release/api_repositories_ostree_versions.go +++ b/release/api_repositories_ostree_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_python.go b/release/api_repositories_python.go index bc66f2a3..9cb3ce91 100644 --- a/release/api_repositories_python.go +++ b/release/api_repositories_python.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_python_versions.go b/release/api_repositories_python_versions.go index 6831abc8..cfd9d152 100644 --- a/release/api_repositories_python_versions.go +++ b/release/api_repositories_python_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_reclaim_space.go b/release/api_repositories_reclaim_space.go index 94a880cd..0b701dd7 100644 --- a/release/api_repositories_reclaim_space.go +++ b/release/api_repositories_reclaim_space.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_rpm.go b/release/api_repositories_rpm.go index daaecd4f..5ef9f5a1 100644 --- a/release/api_repositories_rpm.go +++ b/release/api_repositories_rpm.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repositories_rpm_versions.go b/release/api_repositories_rpm_versions.go index ae1f7f35..3a9aa507 100644 --- a/release/api_repositories_rpm_versions.go +++ b/release/api_repositories_rpm_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_repository_versions.go b/release/api_repository_versions.go index bd5de1c9..022055a5 100644 --- a/release/api_repository_versions.go +++ b/release/api_repository_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_roles.go b/release/api_roles.go index 3ae4db17..de4d17b3 100644 --- a/release/api_roles.go +++ b/release/api_roles.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_rpm_comps.go b/release/api_rpm_comps.go index 93570be7..c43fd298 100644 --- a/release/api_rpm_comps.go +++ b/release/api_rpm_comps.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_rpm_copy.go b/release/api_rpm_copy.go index 3ae848dc..42f7967a 100644 --- a/release/api_rpm_copy.go +++ b/release/api_rpm_copy.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_signing_services.go b/release/api_signing_services.go index 25bb5a97..b5c8e80a 100644 --- a/release/api_signing_services.go +++ b/release/api_signing_services.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_status.go b/release/api_status.go index e57b4168..266b2f04 100644 --- a/release/api_status.go +++ b/release/api_status.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_task_groups.go b/release/api_task_groups.go index 8a9a8639..bd727ba2 100644 --- a/release/api_task_groups.go +++ b/release/api_task_groups.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_task_schedules.go b/release/api_task_schedules.go index 6030cf00..e49f12a9 100644 --- a/release/api_task_schedules.go +++ b/release/api_task_schedules.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_tasks.go b/release/api_tasks.go index 5e0989f0..f6bbf45c 100644 --- a/release/api_tasks.go +++ b/release/api_tasks.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_token.go b/release/api_token.go index e4937062..62988f24 100644 --- a/release/api_token.go +++ b/release/api_token.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_uploads.go b/release/api_uploads.go index a7564ffb..6d23b805 100644 --- a/release/api_uploads.go +++ b/release/api_uploads.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_upstream_pulps.go b/release/api_upstream_pulps.go index a0733475..b65e29f2 100644 --- a/release/api_upstream_pulps.go +++ b/release/api_upstream_pulps.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_users.go b/release/api_users.go index 0e03c041..73dfd05b 100644 --- a/release/api_users.go +++ b/release/api_users.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_users_roles.go b/release/api_users_roles.go index 2404da46..635c31b2 100644 --- a/release/api_users_roles.go +++ b/release/api_users_roles.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/api_versions.go b/release/api_versions.go index aed4bf68..ac92f37c 100644 --- a/release/api_versions.go +++ b/release/api_versions.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" @@ -25,79 +25,89 @@ import ( // VersionsApiService VersionsApi service type VersionsApiService service -type VersionsApiCollectionVersionsGetRequest struct { +type VersionsApiApiV1RolesVersionsListRequest struct { ctx context.Context ApiService *VersionsApiService - ansibleCollectionVersionHref string - page *int32 + ansibleRoleHref string + limit *int32 + offset *int32 fields *[]string excludeFields *[]string } -// A page number within the paginated result set. -func (r VersionsApiCollectionVersionsGetRequest) Page(page int32) VersionsApiCollectionVersionsGetRequest { - r.page = &page +// Number of results to return per page. +func (r VersionsApiApiV1RolesVersionsListRequest) Limit(limit int32) VersionsApiApiV1RolesVersionsListRequest { + r.limit = &limit + return r +} + +// The initial index from which to return the results. +func (r VersionsApiApiV1RolesVersionsListRequest) Offset(offset int32) VersionsApiApiV1RolesVersionsListRequest { + r.offset = &offset return r } // A list of fields to include in the response. -func (r VersionsApiCollectionVersionsGetRequest) Fields(fields []string) VersionsApiCollectionVersionsGetRequest { +func (r VersionsApiApiV1RolesVersionsListRequest) Fields(fields []string) VersionsApiApiV1RolesVersionsListRequest { r.fields = &fields return r } // A list of fields to exclude from the response. -func (r VersionsApiCollectionVersionsGetRequest) ExcludeFields(excludeFields []string) VersionsApiCollectionVersionsGetRequest { +func (r VersionsApiApiV1RolesVersionsListRequest) ExcludeFields(excludeFields []string) VersionsApiApiV1RolesVersionsListRequest { r.excludeFields = &excludeFields return r } -func (r VersionsApiCollectionVersionsGetRequest) Execute() (*PaginatedGalaxyCollectionVersionResponseList, *http.Response, error) { - return r.ApiService.CollectionVersionsGetExecute(r) +func (r VersionsApiApiV1RolesVersionsListRequest) Execute() (*PaginatedGalaxyRoleVersionResponseList, *http.Response, error) { + return r.ApiService.ApiV1RolesVersionsListExecute(r) } /* -CollectionVersionsGet Method for CollectionVersionsGet +ApiV1RolesVersionsList Method for ApiV1RolesVersionsList -APIView for Collections by namespace/name. +APIView for Role Versions. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ansibleCollectionVersionHref - @return VersionsApiCollectionVersionsGetRequest + @param ansibleRoleHref + @return VersionsApiApiV1RolesVersionsListRequest */ -func (a *VersionsApiService) CollectionVersionsGet(ctx context.Context, ansibleCollectionVersionHref string) VersionsApiCollectionVersionsGetRequest { - return VersionsApiCollectionVersionsGetRequest{ +func (a *VersionsApiService) ApiV1RolesVersionsList(ctx context.Context, ansibleRoleHref string) VersionsApiApiV1RolesVersionsListRequest { + return VersionsApiApiV1RolesVersionsListRequest{ ApiService: a, ctx: ctx, - ansibleCollectionVersionHref: ansibleCollectionVersionHref, + ansibleRoleHref: ansibleRoleHref, } } // Execute executes the request -// @return PaginatedGalaxyCollectionVersionResponseList -func (a *VersionsApiService) CollectionVersionsGetExecute(r VersionsApiCollectionVersionsGetRequest) (*PaginatedGalaxyCollectionVersionResponseList, *http.Response, error) { +// @return PaginatedGalaxyRoleVersionResponseList +func (a *VersionsApiService) ApiV1RolesVersionsListExecute(r VersionsApiApiV1RolesVersionsListRequest) (*PaginatedGalaxyRoleVersionResponseList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedGalaxyCollectionVersionResponseList + localVarReturnValue *PaginatedGalaxyRoleVersionResponseList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.CollectionVersionsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.ApiV1RolesVersionsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/{ansible_collection_version_href}versions/" - localVarPath = strings.Replace(localVarPath, "{"+"ansible_collection_version_href"+"}", url.PathEscape(parameterValueToString(r.ansibleCollectionVersionHref, "ansibleCollectionVersionHref")), -1) + localVarPath := localBasePath + "/{ansible_role_href}versions/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_role_href"+"}", url.PathEscape(parameterValueToString(r.ansibleRoleHref, "ansibleRoleHref")), -1) localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } if r.fields != nil { t := *r.fields @@ -175,89 +185,79 @@ func (a *VersionsApiService) CollectionVersionsGetExecute(r VersionsApiCollectio return localVarReturnValue, localVarHTTPResponse, nil } -type VersionsApiVersionsGetRequest struct { +type VersionsApiApiV2CollectionVersionsListRequest struct { ctx context.Context ApiService *VersionsApiService - ansibleRoleHref string - limit *int32 - offset *int32 + ansibleCollectionVersionHref string + page *int32 fields *[]string excludeFields *[]string } -// Number of results to return per page. -func (r VersionsApiVersionsGetRequest) Limit(limit int32) VersionsApiVersionsGetRequest { - r.limit = &limit - return r -} - -// The initial index from which to return the results. -func (r VersionsApiVersionsGetRequest) Offset(offset int32) VersionsApiVersionsGetRequest { - r.offset = &offset +// A page number within the paginated result set. +func (r VersionsApiApiV2CollectionVersionsListRequest) Page(page int32) VersionsApiApiV2CollectionVersionsListRequest { + r.page = &page return r } // A list of fields to include in the response. -func (r VersionsApiVersionsGetRequest) Fields(fields []string) VersionsApiVersionsGetRequest { +func (r VersionsApiApiV2CollectionVersionsListRequest) Fields(fields []string) VersionsApiApiV2CollectionVersionsListRequest { r.fields = &fields return r } // A list of fields to exclude from the response. -func (r VersionsApiVersionsGetRequest) ExcludeFields(excludeFields []string) VersionsApiVersionsGetRequest { +func (r VersionsApiApiV2CollectionVersionsListRequest) ExcludeFields(excludeFields []string) VersionsApiApiV2CollectionVersionsListRequest { r.excludeFields = &excludeFields return r } -func (r VersionsApiVersionsGetRequest) Execute() (*PaginatedGalaxyRoleVersionResponseList, *http.Response, error) { - return r.ApiService.VersionsGetExecute(r) +func (r VersionsApiApiV2CollectionVersionsListRequest) Execute() (*PaginatedGalaxyCollectionVersionResponseList, *http.Response, error) { + return r.ApiService.ApiV2CollectionVersionsListExecute(r) } /* -VersionsGet Method for VersionsGet +ApiV2CollectionVersionsList Method for ApiV2CollectionVersionsList -APIView for Role Versions. +APIView for Collections by namespace/name. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ansibleRoleHref - @return VersionsApiVersionsGetRequest + @param ansibleCollectionVersionHref + @return VersionsApiApiV2CollectionVersionsListRequest */ -func (a *VersionsApiService) VersionsGet(ctx context.Context, ansibleRoleHref string) VersionsApiVersionsGetRequest { - return VersionsApiVersionsGetRequest{ +func (a *VersionsApiService) ApiV2CollectionVersionsList(ctx context.Context, ansibleCollectionVersionHref string) VersionsApiApiV2CollectionVersionsListRequest { + return VersionsApiApiV2CollectionVersionsListRequest{ ApiService: a, ctx: ctx, - ansibleRoleHref: ansibleRoleHref, + ansibleCollectionVersionHref: ansibleCollectionVersionHref, } } // Execute executes the request -// @return PaginatedGalaxyRoleVersionResponseList -func (a *VersionsApiService) VersionsGetExecute(r VersionsApiVersionsGetRequest) (*PaginatedGalaxyRoleVersionResponseList, *http.Response, error) { +// @return PaginatedGalaxyCollectionVersionResponseList +func (a *VersionsApiService) ApiV2CollectionVersionsListExecute(r VersionsApiApiV2CollectionVersionsListRequest) (*PaginatedGalaxyCollectionVersionResponseList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedGalaxyRoleVersionResponseList + localVarReturnValue *PaginatedGalaxyCollectionVersionResponseList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.VersionsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.ApiV2CollectionVersionsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/{ansible_role_href}versions/" - localVarPath = strings.Replace(localVarPath, "{"+"ansible_role_href"+"}", url.PathEscape(parameterValueToString(r.ansibleRoleHref, "ansibleRoleHref")), -1) + localVarPath := localBasePath + "/{ansible_collection_version_href}versions/" + localVarPath = strings.Replace(localVarPath, "{"+"ansible_collection_version_href"+"}", url.PathEscape(parameterValueToString(r.ansibleCollectionVersionHref, "ansibleCollectionVersionHref")), -1) localVarPath = strings.Replace(localVarPath, "/%2F", "/", -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") } if r.fields != nil { t := *r.fields diff --git a/release/api_workers.go b/release/api_workers.go index b88e7ea3..5ca8c0c2 100644 --- a/release/api_workers.go +++ b/release/api_workers.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" diff --git a/release/client.go b/release/client.go index 5e9f5823..6342d040 100644 --- a/release/client.go +++ b/release/client.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "bytes" @@ -78,6 +78,8 @@ type APIClient struct { ContentCollectionDeprecationsApi *ContentCollectionDeprecationsApiService + ContentCollectionMarksApi *ContentCollectionMarksApiService + ContentCollectionSignaturesApi *ContentCollectionSignaturesApiService ContentCollectionVersionsApi *ContentCollectionVersionsApiService @@ -106,6 +108,8 @@ type APIClient struct { ContentModulemdsApi *ContentModulemdsApiService + ContentNamespacesApi *ContentNamespacesApiService + ContentObjectsApi *ContentObjectsApiService ContentPackageIndicesApi *ContentPackageIndicesApiService @@ -236,6 +240,8 @@ type APIClient struct { PulpAnsibleApiV3CollectionsVersionsDocsBlobApi *PulpAnsibleApiV3CollectionsVersionsDocsBlobApiService + PulpAnsibleApiV3NamespacesApi *PulpAnsibleApiV3NamespacesApiService + PulpAnsibleApiV3PluginAnsibleClientConfigurationApi *PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService PulpAnsibleApiV3PluginAnsibleContentCollectionsApi *PulpAnsibleApiV3PluginAnsibleContentCollectionsApiService @@ -252,6 +258,10 @@ type APIClient struct { PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi *PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApiService + PulpAnsibleApiV3PluginAnsibleContentNamespacesApi *PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService + + PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi *PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService + PulpAnsibleArtifactsCollectionsV3Api *PulpAnsibleArtifactsCollectionsV3ApiService PulpAnsibleDefaultApiApi *PulpAnsibleDefaultApiApiService @@ -270,6 +280,8 @@ type APIClient struct { PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi *PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApiService + PulpAnsibleDefaultApiV3NamespacesApi *PulpAnsibleDefaultApiV3NamespacesApiService + PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi *PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi *PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApiService @@ -286,6 +298,10 @@ type APIClient struct { PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi *PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApiService + PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi *PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService + + PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi *PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService + PulpAnsibleTagsApi *PulpAnsibleTagsApiService PulpContainerNamespacesApi *PulpContainerNamespacesApiService @@ -429,6 +445,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.ContentArtifactApi = (*ContentArtifactApiService)(&c.common) c.ContentBlobsApi = (*ContentBlobsApiService)(&c.common) c.ContentCollectionDeprecationsApi = (*ContentCollectionDeprecationsApiService)(&c.common) + c.ContentCollectionMarksApi = (*ContentCollectionMarksApiService)(&c.common) c.ContentCollectionSignaturesApi = (*ContentCollectionSignaturesApiService)(&c.common) c.ContentCollectionVersionsApi = (*ContentCollectionVersionsApiService)(&c.common) c.ContentCommitsApi = (*ContentCommitsApiService)(&c.common) @@ -443,6 +460,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.ContentModulemdDefaultsApi = (*ContentModulemdDefaultsApiService)(&c.common) c.ContentModulemdObsoletesApi = (*ContentModulemdObsoletesApiService)(&c.common) c.ContentModulemdsApi = (*ContentModulemdsApiService)(&c.common) + c.ContentNamespacesApi = (*ContentNamespacesApiService)(&c.common) c.ContentObjectsApi = (*ContentObjectsApiService)(&c.common) c.ContentPackageIndicesApi = (*ContentPackageIndicesApiService)(&c.common) c.ContentPackageReleaseComponentsApi = (*ContentPackageReleaseComponentsApiService)(&c.common) @@ -508,6 +526,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.PulpAnsibleApiV3CollectionsAllApi = (*PulpAnsibleApiV3CollectionsAllApiService)(&c.common) c.PulpAnsibleApiV3CollectionsVersionsApi = (*PulpAnsibleApiV3CollectionsVersionsApiService)(&c.common) c.PulpAnsibleApiV3CollectionsVersionsDocsBlobApi = (*PulpAnsibleApiV3CollectionsVersionsDocsBlobApiService)(&c.common) + c.PulpAnsibleApiV3NamespacesApi = (*PulpAnsibleApiV3NamespacesApiService)(&c.common) c.PulpAnsibleApiV3PluginAnsibleClientConfigurationApi = (*PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService)(&c.common) c.PulpAnsibleApiV3PluginAnsibleContentCollectionsApi = (*PulpAnsibleApiV3PluginAnsibleContentCollectionsApiService)(&c.common) c.PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi = (*PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApiService)(&c.common) @@ -516,6 +535,8 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi = (*PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApiService)(&c.common) c.PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi = (*PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApiService)(&c.common) c.PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi = (*PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApiService)(&c.common) + c.PulpAnsibleApiV3PluginAnsibleContentNamespacesApi = (*PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService)(&c.common) + c.PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi = (*PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService)(&c.common) c.PulpAnsibleArtifactsCollectionsV3Api = (*PulpAnsibleArtifactsCollectionsV3ApiService)(&c.common) c.PulpAnsibleDefaultApiApi = (*PulpAnsibleDefaultApiApiService)(&c.common) c.PulpAnsibleDefaultApiV3Api = (*PulpAnsibleDefaultApiV3ApiService)(&c.common) @@ -525,6 +546,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.PulpAnsibleDefaultApiV3CollectionsAllApi = (*PulpAnsibleDefaultApiV3CollectionsAllApiService)(&c.common) c.PulpAnsibleDefaultApiV3CollectionsVersionsApi = (*PulpAnsibleDefaultApiV3CollectionsVersionsApiService)(&c.common) c.PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi = (*PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApiService)(&c.common) + c.PulpAnsibleDefaultApiV3NamespacesApi = (*PulpAnsibleDefaultApiV3NamespacesApiService)(&c.common) c.PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi = (*PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService)(&c.common) c.PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi = (*PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApiService)(&c.common) c.PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi = (*PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApiService)(&c.common) @@ -533,6 +555,8 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi = (*PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApiService)(&c.common) c.PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi = (*PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApiService)(&c.common) c.PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi = (*PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApiService)(&c.common) + c.PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi = (*PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService)(&c.common) + c.PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi = (*PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService)(&c.common) c.PulpAnsibleTagsApi = (*PulpAnsibleTagsApiService)(&c.common) c.PulpContainerNamespacesApi = (*PulpContainerNamespacesApiService)(&c.common) c.PulpMavenApi = (*PulpMavenApiService)(&c.common) diff --git a/release/configuration.go b/release/configuration.go index aea6cc2b..cac7a826 100644 --- a/release/configuration.go +++ b/release/configuration.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "context" diff --git a/release/docs/AnsibleAnsibleNamespaceMetadata.md b/release/docs/AnsibleAnsibleNamespaceMetadata.md new file mode 100644 index 00000000..6285fcc1 --- /dev/null +++ b/release/docs/AnsibleAnsibleNamespaceMetadata.md @@ -0,0 +1,207 @@ +# AnsibleAnsibleNamespaceMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Required named, only accepts lowercase, numbers and underscores. | +**Company** | Pointer to **string** | Optional namespace company owner. | [optional] +**Email** | Pointer to **string** | Optional namespace contact email. | [optional] +**Description** | Pointer to **string** | Optional short description. | [optional] +**Resources** | Pointer to **string** | Optional resource page in markdown format. | [optional] +**Links** | Pointer to [**[]NamespaceLink**](NamespaceLink.md) | Labeled related links. | [optional] +**Avatar** | Pointer to ***os.File** | Optional avatar image for Namespace | [optional] + +## Methods + +### NewAnsibleAnsibleNamespaceMetadata + +`func NewAnsibleAnsibleNamespaceMetadata(name string, ) *AnsibleAnsibleNamespaceMetadata` + +NewAnsibleAnsibleNamespaceMetadata instantiates a new AnsibleAnsibleNamespaceMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnsibleAnsibleNamespaceMetadataWithDefaults + +`func NewAnsibleAnsibleNamespaceMetadataWithDefaults() *AnsibleAnsibleNamespaceMetadata` + +NewAnsibleAnsibleNamespaceMetadataWithDefaults instantiates a new AnsibleAnsibleNamespaceMetadata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *AnsibleAnsibleNamespaceMetadata) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AnsibleAnsibleNamespaceMetadata) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AnsibleAnsibleNamespaceMetadata) SetName(v string)` + +SetName sets Name field to given value. + + +### GetCompany + +`func (o *AnsibleAnsibleNamespaceMetadata) GetCompany() string` + +GetCompany returns the Company field if non-nil, zero value otherwise. + +### GetCompanyOk + +`func (o *AnsibleAnsibleNamespaceMetadata) GetCompanyOk() (*string, bool)` + +GetCompanyOk returns a tuple with the Company field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompany + +`func (o *AnsibleAnsibleNamespaceMetadata) SetCompany(v string)` + +SetCompany sets Company field to given value. + +### HasCompany + +`func (o *AnsibleAnsibleNamespaceMetadata) HasCompany() bool` + +HasCompany returns a boolean if a field has been set. + +### GetEmail + +`func (o *AnsibleAnsibleNamespaceMetadata) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *AnsibleAnsibleNamespaceMetadata) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *AnsibleAnsibleNamespaceMetadata) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *AnsibleAnsibleNamespaceMetadata) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetDescription + +`func (o *AnsibleAnsibleNamespaceMetadata) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AnsibleAnsibleNamespaceMetadata) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *AnsibleAnsibleNamespaceMetadata) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *AnsibleAnsibleNamespaceMetadata) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetResources + +`func (o *AnsibleAnsibleNamespaceMetadata) GetResources() string` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *AnsibleAnsibleNamespaceMetadata) GetResourcesOk() (*string, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *AnsibleAnsibleNamespaceMetadata) SetResources(v string)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *AnsibleAnsibleNamespaceMetadata) HasResources() bool` + +HasResources returns a boolean if a field has been set. + +### GetLinks + +`func (o *AnsibleAnsibleNamespaceMetadata) GetLinks() []NamespaceLink` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *AnsibleAnsibleNamespaceMetadata) GetLinksOk() (*[]NamespaceLink, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *AnsibleAnsibleNamespaceMetadata) SetLinks(v []NamespaceLink)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *AnsibleAnsibleNamespaceMetadata) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAvatar + +`func (o *AnsibleAnsibleNamespaceMetadata) GetAvatar() *os.File` + +GetAvatar returns the Avatar field if non-nil, zero value otherwise. + +### GetAvatarOk + +`func (o *AnsibleAnsibleNamespaceMetadata) GetAvatarOk() (**os.File, bool)` + +GetAvatarOk returns a tuple with the Avatar field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatar + +`func (o *AnsibleAnsibleNamespaceMetadata) SetAvatar(v *os.File)` + +SetAvatar sets Avatar field to given value. + +### HasAvatar + +`func (o *AnsibleAnsibleNamespaceMetadata) HasAvatar() bool` + +HasAvatar returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/AnsibleAnsibleNamespaceMetadataResponse.md b/release/docs/AnsibleAnsibleNamespaceMetadataResponse.md new file mode 100644 index 00000000..9ad83f6d --- /dev/null +++ b/release/docs/AnsibleAnsibleNamespaceMetadataResponse.md @@ -0,0 +1,285 @@ +# AnsibleAnsibleNamespaceMetadataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PulpHref** | Pointer to **string** | | [optional] [readonly] +**Name** | **string** | Required named, only accepts lowercase, numbers and underscores. | +**Company** | Pointer to **string** | Optional namespace company owner. | [optional] +**Email** | Pointer to **string** | Optional namespace contact email. | [optional] +**Description** | Pointer to **string** | Optional short description. | [optional] +**Resources** | Pointer to **string** | Optional resource page in markdown format. | [optional] +**Links** | Pointer to [**[]NamespaceLinkResponse**](NamespaceLinkResponse.md) | Labeled related links. | [optional] +**AvatarSha256** | Pointer to **string** | SHA256 digest of avatar image if present. | [optional] [readonly] +**AvatarUrl** | Pointer to **string** | Download link for avatar image if present. | [optional] [readonly] +**MetadataSha256** | Pointer to **string** | | [optional] [readonly] + +## Methods + +### NewAnsibleAnsibleNamespaceMetadataResponse + +`func NewAnsibleAnsibleNamespaceMetadataResponse(name string, ) *AnsibleAnsibleNamespaceMetadataResponse` + +NewAnsibleAnsibleNamespaceMetadataResponse instantiates a new AnsibleAnsibleNamespaceMetadataResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnsibleAnsibleNamespaceMetadataResponseWithDefaults + +`func NewAnsibleAnsibleNamespaceMetadataResponseWithDefaults() *AnsibleAnsibleNamespaceMetadataResponse` + +NewAnsibleAnsibleNamespaceMetadataResponseWithDefaults instantiates a new AnsibleAnsibleNamespaceMetadataResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPulpHref + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetPulpHref() string` + +GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. + +### GetPulpHrefOk + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetPulpHrefOk() (*string, bool)` + +GetPulpHrefOk returns a tuple with the PulpHref field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPulpHref + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) SetPulpHref(v string)` + +SetPulpHref sets PulpHref field to given value. + +### HasPulpHref + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) HasPulpHref() bool` + +HasPulpHref returns a boolean if a field has been set. + +### GetName + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) SetName(v string)` + +SetName sets Name field to given value. + + +### GetCompany + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetCompany() string` + +GetCompany returns the Company field if non-nil, zero value otherwise. + +### GetCompanyOk + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetCompanyOk() (*string, bool)` + +GetCompanyOk returns a tuple with the Company field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompany + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) SetCompany(v string)` + +SetCompany sets Company field to given value. + +### HasCompany + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) HasCompany() bool` + +HasCompany returns a boolean if a field has been set. + +### GetEmail + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetDescription + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetResources + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetResources() string` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetResourcesOk() (*string, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) SetResources(v string)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) HasResources() bool` + +HasResources returns a boolean if a field has been set. + +### GetLinks + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetLinks() []NamespaceLinkResponse` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetLinksOk() (*[]NamespaceLinkResponse, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) SetLinks(v []NamespaceLinkResponse)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAvatarSha256 + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetAvatarSha256() string` + +GetAvatarSha256 returns the AvatarSha256 field if non-nil, zero value otherwise. + +### GetAvatarSha256Ok + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetAvatarSha256Ok() (*string, bool)` + +GetAvatarSha256Ok returns a tuple with the AvatarSha256 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatarSha256 + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) SetAvatarSha256(v string)` + +SetAvatarSha256 sets AvatarSha256 field to given value. + +### HasAvatarSha256 + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) HasAvatarSha256() bool` + +HasAvatarSha256 returns a boolean if a field has been set. + +### GetAvatarUrl + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetAvatarUrl() string` + +GetAvatarUrl returns the AvatarUrl field if non-nil, zero value otherwise. + +### GetAvatarUrlOk + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetAvatarUrlOk() (*string, bool)` + +GetAvatarUrlOk returns a tuple with the AvatarUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatarUrl + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) SetAvatarUrl(v string)` + +SetAvatarUrl sets AvatarUrl field to given value. + +### HasAvatarUrl + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) HasAvatarUrl() bool` + +HasAvatarUrl returns a boolean if a field has been set. + +### GetMetadataSha256 + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetMetadataSha256() string` + +GetMetadataSha256 returns the MetadataSha256 field if non-nil, zero value otherwise. + +### GetMetadataSha256Ok + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) GetMetadataSha256Ok() (*string, bool)` + +GetMetadataSha256Ok returns a tuple with the MetadataSha256 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataSha256 + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) SetMetadataSha256(v string)` + +SetMetadataSha256 sets MetadataSha256 field to given value. + +### HasMetadataSha256 + +`func (o *AnsibleAnsibleNamespaceMetadataResponse) HasMetadataSha256() bool` + +HasMetadataSha256 returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/AnsibleAnsibleRepository.md b/release/docs/AnsibleAnsibleRepository.md index 0b69eb29..d37f74d1 100644 --- a/release/docs/AnsibleAnsibleRepository.md +++ b/release/docs/AnsibleAnsibleRepository.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **Remote** | Pointer to **NullableString** | An optional remote to use by default when syncing. | [optional] **LastSyncedMetadataTime** | Pointer to **NullableTime** | Last synced metadata time. | [optional] **Gpgkey** | Pointer to **NullableString** | Gpg public key to verify collection signatures against | [optional] +**Private** | Pointer to **bool** | | [optional] ## Methods @@ -251,6 +252,31 @@ HasGpgkey returns a boolean if a field has been set. `func (o *AnsibleAnsibleRepository) UnsetGpgkey()` UnsetGpgkey ensures that no value is present for Gpgkey, not even an explicit nil +### GetPrivate + +`func (o *AnsibleAnsibleRepository) GetPrivate() bool` + +GetPrivate returns the Private field if non-nil, zero value otherwise. + +### GetPrivateOk + +`func (o *AnsibleAnsibleRepository) GetPrivateOk() (*bool, bool)` + +GetPrivateOk returns a tuple with the Private field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivate + +`func (o *AnsibleAnsibleRepository) SetPrivate(v bool)` + +SetPrivate sets Private field to given value. + +### HasPrivate + +`func (o *AnsibleAnsibleRepository) HasPrivate() bool` + +HasPrivate returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/release/docs/AnsibleAnsibleRepositoryResponse.md b/release/docs/AnsibleAnsibleRepositoryResponse.md index 478cd2a7..b980a4b6 100644 --- a/release/docs/AnsibleAnsibleRepositoryResponse.md +++ b/release/docs/AnsibleAnsibleRepositoryResponse.md @@ -15,6 +15,8 @@ Name | Type | Description | Notes **Remote** | Pointer to **NullableString** | An optional remote to use by default when syncing. | [optional] **LastSyncedMetadataTime** | Pointer to **NullableTime** | Last synced metadata time. | [optional] **Gpgkey** | Pointer to **NullableString** | Gpg public key to verify collection signatures against | [optional] +**LastSyncTask** | Pointer to [**TaskResponse**](TaskResponse.md) | | [optional] [readonly] +**Private** | Pointer to **bool** | | [optional] ## Methods @@ -355,6 +357,56 @@ HasGpgkey returns a boolean if a field has been set. `func (o *AnsibleAnsibleRepositoryResponse) UnsetGpgkey()` UnsetGpgkey ensures that no value is present for Gpgkey, not even an explicit nil +### GetLastSyncTask + +`func (o *AnsibleAnsibleRepositoryResponse) GetLastSyncTask() TaskResponse` + +GetLastSyncTask returns the LastSyncTask field if non-nil, zero value otherwise. + +### GetLastSyncTaskOk + +`func (o *AnsibleAnsibleRepositoryResponse) GetLastSyncTaskOk() (*TaskResponse, bool)` + +GetLastSyncTaskOk returns a tuple with the LastSyncTask field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSyncTask + +`func (o *AnsibleAnsibleRepositoryResponse) SetLastSyncTask(v TaskResponse)` + +SetLastSyncTask sets LastSyncTask field to given value. + +### HasLastSyncTask + +`func (o *AnsibleAnsibleRepositoryResponse) HasLastSyncTask() bool` + +HasLastSyncTask returns a boolean if a field has been set. + +### GetPrivate + +`func (o *AnsibleAnsibleRepositoryResponse) GetPrivate() bool` + +GetPrivate returns the Private field if non-nil, zero value otherwise. + +### GetPrivateOk + +`func (o *AnsibleAnsibleRepositoryResponse) GetPrivateOk() (*bool, bool)` + +GetPrivateOk returns a tuple with the Private field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivate + +`func (o *AnsibleAnsibleRepositoryResponse) SetPrivate(v bool)` + +SetPrivate sets Private field to given value. + +### HasPrivate + +`func (o *AnsibleAnsibleRepositoryResponse) HasPrivate() bool` + +HasPrivate returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/release/docs/AnsibleCollectionRemoteResponse.md b/release/docs/AnsibleCollectionRemoteResponse.md index 3920ebc4..a6272cf1 100644 --- a/release/docs/AnsibleCollectionRemoteResponse.md +++ b/release/docs/AnsibleCollectionRemoteResponse.md @@ -28,6 +28,7 @@ Name | Type | Description | Notes **AuthUrl** | Pointer to **NullableString** | The URL to receive a session token from, e.g. used with Automation Hub. | [optional] **SyncDependencies** | Pointer to **bool** | Sync dependencies for collections specified via requirements file | [optional] [default to true] **SignedOnly** | Pointer to **bool** | Sync only collections that have a signature | [optional] [default to false] +**LastSyncTask** | Pointer to [**TaskResponse**](TaskResponse.md) | | [optional] [readonly] ## Methods @@ -758,6 +759,31 @@ SetSignedOnly sets SignedOnly field to given value. HasSignedOnly returns a boolean if a field has been set. +### GetLastSyncTask + +`func (o *AnsibleCollectionRemoteResponse) GetLastSyncTask() TaskResponse` + +GetLastSyncTask returns the LastSyncTask field if non-nil, zero value otherwise. + +### GetLastSyncTaskOk + +`func (o *AnsibleCollectionRemoteResponse) GetLastSyncTaskOk() (*TaskResponse, bool)` + +GetLastSyncTaskOk returns a tuple with the LastSyncTask field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSyncTask + +`func (o *AnsibleCollectionRemoteResponse) SetLastSyncTask(v TaskResponse)` + +SetLastSyncTask sets LastSyncTask field to given value. + +### HasLastSyncTask + +`func (o *AnsibleCollectionRemoteResponse) HasLastSyncTask() bool` + +HasLastSyncTask returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/release/docs/AnsibleCollectionVersion.md b/release/docs/AnsibleCollectionVersion.md new file mode 100644 index 00000000..c0b67fcc --- /dev/null +++ b/release/docs/AnsibleCollectionVersion.md @@ -0,0 +1,212 @@ +# AnsibleCollectionVersion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Repository** | Pointer to **string** | A URI of a repository the new content unit should be associated with. | [optional] +**Upload** | Pointer to **string** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional] +**File** | Pointer to ***os.File** | An uploaded file that may be turned into the artifact of the content unit. | [optional] +**Artifact** | Pointer to **string** | Artifact file representing the physical content | [optional] +**ExpectedName** | Pointer to **string** | The name of the collection. | [optional] +**ExpectedNamespace** | Pointer to **string** | The namespace of the collection. | [optional] +**ExpectedVersion** | Pointer to **string** | The version of the collection. | [optional] + +## Methods + +### NewAnsibleCollectionVersion + +`func NewAnsibleCollectionVersion() *AnsibleCollectionVersion` + +NewAnsibleCollectionVersion instantiates a new AnsibleCollectionVersion object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnsibleCollectionVersionWithDefaults + +`func NewAnsibleCollectionVersionWithDefaults() *AnsibleCollectionVersion` + +NewAnsibleCollectionVersionWithDefaults instantiates a new AnsibleCollectionVersion object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRepository + +`func (o *AnsibleCollectionVersion) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *AnsibleCollectionVersion) GetRepositoryOk() (*string, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *AnsibleCollectionVersion) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *AnsibleCollectionVersion) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetUpload + +`func (o *AnsibleCollectionVersion) GetUpload() string` + +GetUpload returns the Upload field if non-nil, zero value otherwise. + +### GetUploadOk + +`func (o *AnsibleCollectionVersion) GetUploadOk() (*string, bool)` + +GetUploadOk returns a tuple with the Upload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpload + +`func (o *AnsibleCollectionVersion) SetUpload(v string)` + +SetUpload sets Upload field to given value. + +### HasUpload + +`func (o *AnsibleCollectionVersion) HasUpload() bool` + +HasUpload returns a boolean if a field has been set. + +### GetFile + +`func (o *AnsibleCollectionVersion) GetFile() *os.File` + +GetFile returns the File field if non-nil, zero value otherwise. + +### GetFileOk + +`func (o *AnsibleCollectionVersion) GetFileOk() (**os.File, bool)` + +GetFileOk returns a tuple with the File field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFile + +`func (o *AnsibleCollectionVersion) SetFile(v *os.File)` + +SetFile sets File field to given value. + +### HasFile + +`func (o *AnsibleCollectionVersion) HasFile() bool` + +HasFile returns a boolean if a field has been set. + +### GetArtifact + +`func (o *AnsibleCollectionVersion) GetArtifact() string` + +GetArtifact returns the Artifact field if non-nil, zero value otherwise. + +### GetArtifactOk + +`func (o *AnsibleCollectionVersion) GetArtifactOk() (*string, bool)` + +GetArtifactOk returns a tuple with the Artifact field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifact + +`func (o *AnsibleCollectionVersion) SetArtifact(v string)` + +SetArtifact sets Artifact field to given value. + +### HasArtifact + +`func (o *AnsibleCollectionVersion) HasArtifact() bool` + +HasArtifact returns a boolean if a field has been set. + +### GetExpectedName + +`func (o *AnsibleCollectionVersion) GetExpectedName() string` + +GetExpectedName returns the ExpectedName field if non-nil, zero value otherwise. + +### GetExpectedNameOk + +`func (o *AnsibleCollectionVersion) GetExpectedNameOk() (*string, bool)` + +GetExpectedNameOk returns a tuple with the ExpectedName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpectedName + +`func (o *AnsibleCollectionVersion) SetExpectedName(v string)` + +SetExpectedName sets ExpectedName field to given value. + +### HasExpectedName + +`func (o *AnsibleCollectionVersion) HasExpectedName() bool` + +HasExpectedName returns a boolean if a field has been set. + +### GetExpectedNamespace + +`func (o *AnsibleCollectionVersion) GetExpectedNamespace() string` + +GetExpectedNamespace returns the ExpectedNamespace field if non-nil, zero value otherwise. + +### GetExpectedNamespaceOk + +`func (o *AnsibleCollectionVersion) GetExpectedNamespaceOk() (*string, bool)` + +GetExpectedNamespaceOk returns a tuple with the ExpectedNamespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpectedNamespace + +`func (o *AnsibleCollectionVersion) SetExpectedNamespace(v string)` + +SetExpectedNamespace sets ExpectedNamespace field to given value. + +### HasExpectedNamespace + +`func (o *AnsibleCollectionVersion) HasExpectedNamespace() bool` + +HasExpectedNamespace returns a boolean if a field has been set. + +### GetExpectedVersion + +`func (o *AnsibleCollectionVersion) GetExpectedVersion() string` + +GetExpectedVersion returns the ExpectedVersion field if non-nil, zero value otherwise. + +### GetExpectedVersionOk + +`func (o *AnsibleCollectionVersion) GetExpectedVersionOk() (*string, bool)` + +GetExpectedVersionOk returns a tuple with the ExpectedVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpectedVersion + +`func (o *AnsibleCollectionVersion) SetExpectedVersion(v string)` + +SetExpectedVersion sets ExpectedVersion field to given value. + +### HasExpectedVersion + +`func (o *AnsibleCollectionVersion) HasExpectedVersion() bool` + +HasExpectedVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/AnsibleCollectionVersionMark.md b/release/docs/AnsibleCollectionVersionMark.md new file mode 100644 index 00000000..b674d1aa --- /dev/null +++ b/release/docs/AnsibleCollectionVersionMark.md @@ -0,0 +1,72 @@ +# AnsibleCollectionVersionMark + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MarkedCollection** | **string** | The content this mark is pointing to. | +**Value** | **string** | The string value of this mark. | + +## Methods + +### NewAnsibleCollectionVersionMark + +`func NewAnsibleCollectionVersionMark(markedCollection string, value string, ) *AnsibleCollectionVersionMark` + +NewAnsibleCollectionVersionMark instantiates a new AnsibleCollectionVersionMark object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnsibleCollectionVersionMarkWithDefaults + +`func NewAnsibleCollectionVersionMarkWithDefaults() *AnsibleCollectionVersionMark` + +NewAnsibleCollectionVersionMarkWithDefaults instantiates a new AnsibleCollectionVersionMark object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarkedCollection + +`func (o *AnsibleCollectionVersionMark) GetMarkedCollection() string` + +GetMarkedCollection returns the MarkedCollection field if non-nil, zero value otherwise. + +### GetMarkedCollectionOk + +`func (o *AnsibleCollectionVersionMark) GetMarkedCollectionOk() (*string, bool)` + +GetMarkedCollectionOk returns a tuple with the MarkedCollection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkedCollection + +`func (o *AnsibleCollectionVersionMark) SetMarkedCollection(v string)` + +SetMarkedCollection sets MarkedCollection field to given value. + + +### GetValue + +`func (o *AnsibleCollectionVersionMark) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *AnsibleCollectionVersionMark) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *AnsibleCollectionVersionMark) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/AnsibleCollectionVersionMarkResponse.md b/release/docs/AnsibleCollectionVersionMarkResponse.md new file mode 100644 index 00000000..717ba894 --- /dev/null +++ b/release/docs/AnsibleCollectionVersionMarkResponse.md @@ -0,0 +1,124 @@ +# AnsibleCollectionVersionMarkResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] +**PulpHref** | Pointer to **string** | | [optional] [readonly] +**MarkedCollection** | **string** | The content this mark is pointing to. | +**Value** | **string** | The string value of this mark. | + +## Methods + +### NewAnsibleCollectionVersionMarkResponse + +`func NewAnsibleCollectionVersionMarkResponse(markedCollection string, value string, ) *AnsibleCollectionVersionMarkResponse` + +NewAnsibleCollectionVersionMarkResponse instantiates a new AnsibleCollectionVersionMarkResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnsibleCollectionVersionMarkResponseWithDefaults + +`func NewAnsibleCollectionVersionMarkResponseWithDefaults() *AnsibleCollectionVersionMarkResponse` + +NewAnsibleCollectionVersionMarkResponseWithDefaults instantiates a new AnsibleCollectionVersionMarkResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPulpCreated + +`func (o *AnsibleCollectionVersionMarkResponse) GetPulpCreated() time.Time` + +GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. + +### GetPulpCreatedOk + +`func (o *AnsibleCollectionVersionMarkResponse) GetPulpCreatedOk() (*time.Time, bool)` + +GetPulpCreatedOk returns a tuple with the PulpCreated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPulpCreated + +`func (o *AnsibleCollectionVersionMarkResponse) SetPulpCreated(v time.Time)` + +SetPulpCreated sets PulpCreated field to given value. + +### HasPulpCreated + +`func (o *AnsibleCollectionVersionMarkResponse) HasPulpCreated() bool` + +HasPulpCreated returns a boolean if a field has been set. + +### GetPulpHref + +`func (o *AnsibleCollectionVersionMarkResponse) GetPulpHref() string` + +GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. + +### GetPulpHrefOk + +`func (o *AnsibleCollectionVersionMarkResponse) GetPulpHrefOk() (*string, bool)` + +GetPulpHrefOk returns a tuple with the PulpHref field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPulpHref + +`func (o *AnsibleCollectionVersionMarkResponse) SetPulpHref(v string)` + +SetPulpHref sets PulpHref field to given value. + +### HasPulpHref + +`func (o *AnsibleCollectionVersionMarkResponse) HasPulpHref() bool` + +HasPulpHref returns a boolean if a field has been set. + +### GetMarkedCollection + +`func (o *AnsibleCollectionVersionMarkResponse) GetMarkedCollection() string` + +GetMarkedCollection returns the MarkedCollection field if non-nil, zero value otherwise. + +### GetMarkedCollectionOk + +`func (o *AnsibleCollectionVersionMarkResponse) GetMarkedCollectionOk() (*string, bool)` + +GetMarkedCollectionOk returns a tuple with the MarkedCollection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkedCollection + +`func (o *AnsibleCollectionVersionMarkResponse) SetMarkedCollection(v string)` + +SetMarkedCollection sets MarkedCollection field to given value. + + +### GetValue + +`func (o *AnsibleCollectionVersionMarkResponse) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *AnsibleCollectionVersionMarkResponse) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *AnsibleCollectionVersionMarkResponse) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/AnsibleCollectionVersionResponse.md b/release/docs/AnsibleCollectionVersionResponse.md index f66a7e14..8140d3d7 100644 --- a/release/docs/AnsibleCollectionVersionResponse.md +++ b/release/docs/AnsibleCollectionVersionResponse.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Artifact** | Pointer to **string** | Artifact file representing the physical content | [optional] -**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] **PulpHref** | Pointer to **string** | | [optional] [readonly] +**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] +**Artifact** | Pointer to **string** | Artifact file representing the physical content | [optional] **Sha256** | Pointer to **string** | The SHA-256 checksum if available. | [optional] [readonly] **Md5** | Pointer to **string** | The MD5 checksum if available. | [optional] [readonly] **Sha1** | Pointer to **string** | The SHA-1 checksum if available. | [optional] [readonly] @@ -51,30 +51,30 @@ NewAnsibleCollectionVersionResponseWithDefaults instantiates a new AnsibleCollec This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetArtifact +### GetPulpHref -`func (o *AnsibleCollectionVersionResponse) GetArtifact() string` +`func (o *AnsibleCollectionVersionResponse) GetPulpHref() string` -GetArtifact returns the Artifact field if non-nil, zero value otherwise. +GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. -### GetArtifactOk +### GetPulpHrefOk -`func (o *AnsibleCollectionVersionResponse) GetArtifactOk() (*string, bool)` +`func (o *AnsibleCollectionVersionResponse) GetPulpHrefOk() (*string, bool)` -GetArtifactOk returns a tuple with the Artifact field if it's non-nil, zero value otherwise +GetPulpHrefOk returns a tuple with the PulpHref field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetArtifact +### SetPulpHref -`func (o *AnsibleCollectionVersionResponse) SetArtifact(v string)` +`func (o *AnsibleCollectionVersionResponse) SetPulpHref(v string)` -SetArtifact sets Artifact field to given value. +SetPulpHref sets PulpHref field to given value. -### HasArtifact +### HasPulpHref -`func (o *AnsibleCollectionVersionResponse) HasArtifact() bool` +`func (o *AnsibleCollectionVersionResponse) HasPulpHref() bool` -HasArtifact returns a boolean if a field has been set. +HasPulpHref returns a boolean if a field has been set. ### GetPulpCreated @@ -101,30 +101,30 @@ SetPulpCreated sets PulpCreated field to given value. HasPulpCreated returns a boolean if a field has been set. -### GetPulpHref +### GetArtifact -`func (o *AnsibleCollectionVersionResponse) GetPulpHref() string` +`func (o *AnsibleCollectionVersionResponse) GetArtifact() string` -GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. +GetArtifact returns the Artifact field if non-nil, zero value otherwise. -### GetPulpHrefOk +### GetArtifactOk -`func (o *AnsibleCollectionVersionResponse) GetPulpHrefOk() (*string, bool)` +`func (o *AnsibleCollectionVersionResponse) GetArtifactOk() (*string, bool)` -GetPulpHrefOk returns a tuple with the PulpHref field if it's non-nil, zero value otherwise +GetArtifactOk returns a tuple with the Artifact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPulpHref +### SetArtifact -`func (o *AnsibleCollectionVersionResponse) SetPulpHref(v string)` +`func (o *AnsibleCollectionVersionResponse) SetArtifact(v string)` -SetPulpHref sets PulpHref field to given value. +SetArtifact sets Artifact field to given value. -### HasPulpHref +### HasArtifact -`func (o *AnsibleCollectionVersionResponse) HasPulpHref() bool` +`func (o *AnsibleCollectionVersionResponse) HasArtifact() bool` -HasPulpHref returns a boolean if a field has been set. +HasArtifact returns a boolean if a field has been set. ### GetSha256 diff --git a/release/docs/AnsibleCollectionVersionSignature.md b/release/docs/AnsibleCollectionVersionSignature.md new file mode 100644 index 00000000..63b2c48e --- /dev/null +++ b/release/docs/AnsibleCollectionVersionSignature.md @@ -0,0 +1,98 @@ +# AnsibleCollectionVersionSignature + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**File** | ***os.File** | An uploaded file that may be turned into the artifact of the content unit. | +**Repository** | Pointer to **string** | A URI of a repository the new content unit should be associated with. | [optional] +**SignedCollection** | **string** | The content this signature is pointing to. | + +## Methods + +### NewAnsibleCollectionVersionSignature + +`func NewAnsibleCollectionVersionSignature(file *os.File, signedCollection string, ) *AnsibleCollectionVersionSignature` + +NewAnsibleCollectionVersionSignature instantiates a new AnsibleCollectionVersionSignature object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnsibleCollectionVersionSignatureWithDefaults + +`func NewAnsibleCollectionVersionSignatureWithDefaults() *AnsibleCollectionVersionSignature` + +NewAnsibleCollectionVersionSignatureWithDefaults instantiates a new AnsibleCollectionVersionSignature object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFile + +`func (o *AnsibleCollectionVersionSignature) GetFile() *os.File` + +GetFile returns the File field if non-nil, zero value otherwise. + +### GetFileOk + +`func (o *AnsibleCollectionVersionSignature) GetFileOk() (**os.File, bool)` + +GetFileOk returns a tuple with the File field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFile + +`func (o *AnsibleCollectionVersionSignature) SetFile(v *os.File)` + +SetFile sets File field to given value. + + +### GetRepository + +`func (o *AnsibleCollectionVersionSignature) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *AnsibleCollectionVersionSignature) GetRepositoryOk() (*string, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *AnsibleCollectionVersionSignature) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *AnsibleCollectionVersionSignature) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetSignedCollection + +`func (o *AnsibleCollectionVersionSignature) GetSignedCollection() string` + +GetSignedCollection returns the SignedCollection field if non-nil, zero value otherwise. + +### GetSignedCollectionOk + +`func (o *AnsibleCollectionVersionSignature) GetSignedCollectionOk() (*string, bool)` + +GetSignedCollectionOk returns a tuple with the SignedCollection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignedCollection + +`func (o *AnsibleCollectionVersionSignature) SetSignedCollection(v string)` + +SetSignedCollection sets SignedCollection field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/AnsibleCollectionsApi.md b/release/docs/AnsibleCollectionsApi.md index 855da2ce..2a7581df 100644 --- a/release/docs/AnsibleCollectionsApi.md +++ b/release/docs/AnsibleCollectionsApi.md @@ -4,11 +4,87 @@ All URIs are relative to *http://localhost:8080* Method | HTTP request | Description ------------- | ------------- | ------------- +[**AnsibleCollectionsAddRole**](AnsibleCollectionsApi.md#AnsibleCollectionsAddRole) | **Post** /{ansible_collection_href}add_role/ | [**AnsibleCollectionsList**](AnsibleCollectionsApi.md#AnsibleCollectionsList) | **Get** /pulp/api/v3/ansible/collections/ | List collections +[**AnsibleCollectionsListRoles**](AnsibleCollectionsApi.md#AnsibleCollectionsListRoles) | **Get** /{ansible_collection_href}list_roles/ | +[**AnsibleCollectionsMyPermissions**](AnsibleCollectionsApi.md#AnsibleCollectionsMyPermissions) | **Get** /{ansible_collection_href}my_permissions/ | +[**AnsibleCollectionsRemoveRole**](AnsibleCollectionsApi.md#AnsibleCollectionsRemoveRole) | **Post** /{ansible_collection_href}remove_role/ | [**UploadCollection**](AnsibleCollectionsApi.md#UploadCollection) | **Post** /ansible/collections/ | Upload a collection +## AnsibleCollectionsAddRole + +> NestedRoleResponse AnsibleCollectionsAddRole(ctx, ansibleCollectionHref).NestedRole(nestedRole).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleCollectionHref := "ansibleCollectionHref_example" // string | + nestedRole := *openapiclient.NewNestedRole("Role_example") // NestedRole | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AnsibleCollectionsApi.AnsibleCollectionsAddRole(context.Background(), ansibleCollectionHref).NestedRole(nestedRole).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AnsibleCollectionsApi.AnsibleCollectionsAddRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnsibleCollectionsAddRole`: NestedRoleResponse + fmt.Fprintf(os.Stdout, "Response from `AnsibleCollectionsApi.AnsibleCollectionsAddRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleCollectionHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnsibleCollectionsAddRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **nestedRole** | [**NestedRole**](NestedRole.md) | | + +### Return type + +[**NestedRoleResponse**](NestedRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## AnsibleCollectionsList > PaginatedansibleCollectionResponseList AnsibleCollectionsList(ctx).Limit(limit).Name(name).Namespace(namespace).Offset(offset).Ordering(ordering).Fields(fields).ExcludeFields(excludeFields).Execute() @@ -87,6 +163,226 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## AnsibleCollectionsListRoles + +> ObjectRolesResponse AnsibleCollectionsListRoles(ctx, ansibleCollectionHref).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleCollectionHref := "ansibleCollectionHref_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AnsibleCollectionsApi.AnsibleCollectionsListRoles(context.Background(), ansibleCollectionHref).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AnsibleCollectionsApi.AnsibleCollectionsListRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnsibleCollectionsListRoles`: ObjectRolesResponse + fmt.Fprintf(os.Stdout, "Response from `AnsibleCollectionsApi.AnsibleCollectionsListRoles`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleCollectionHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnsibleCollectionsListRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**ObjectRolesResponse**](ObjectRolesResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnsibleCollectionsMyPermissions + +> MyPermissionsResponse AnsibleCollectionsMyPermissions(ctx, ansibleCollectionHref).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleCollectionHref := "ansibleCollectionHref_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AnsibleCollectionsApi.AnsibleCollectionsMyPermissions(context.Background(), ansibleCollectionHref).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AnsibleCollectionsApi.AnsibleCollectionsMyPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnsibleCollectionsMyPermissions`: MyPermissionsResponse + fmt.Fprintf(os.Stdout, "Response from `AnsibleCollectionsApi.AnsibleCollectionsMyPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleCollectionHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnsibleCollectionsMyPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**MyPermissionsResponse**](MyPermissionsResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnsibleCollectionsRemoveRole + +> NestedRoleResponse AnsibleCollectionsRemoveRole(ctx, ansibleCollectionHref).NestedRole(nestedRole).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleCollectionHref := "ansibleCollectionHref_example" // string | + nestedRole := *openapiclient.NewNestedRole("Role_example") // NestedRole | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AnsibleCollectionsApi.AnsibleCollectionsRemoveRole(context.Background(), ansibleCollectionHref).NestedRole(nestedRole).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AnsibleCollectionsApi.AnsibleCollectionsRemoveRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnsibleCollectionsRemoveRole`: NestedRoleResponse + fmt.Fprintf(os.Stdout, "Response from `AnsibleCollectionsApi.AnsibleCollectionsRemoveRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleCollectionHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnsibleCollectionsRemoveRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **nestedRole** | [**NestedRole**](NestedRole.md) | | + +### Return type + +[**NestedRoleResponse**](NestedRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## UploadCollection > AsyncOperationResponse UploadCollection(ctx).File(file).Sha256(sha256).ExpectedNamespace(expectedNamespace).ExpectedName(expectedName).ExpectedVersion(expectedVersion).Execute() diff --git a/release/docs/AnsibleGitRemote.md b/release/docs/AnsibleGitRemote.md index 2b3e5478..768e7fae 100644 --- a/release/docs/AnsibleGitRemote.md +++ b/release/docs/AnsibleGitRemote.md @@ -4,26 +4,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Headers** | Pointer to **[]map[string]interface{}** | Headers for aiohttp.Clientsession | [optional] -**SockReadTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] -**SockConnectTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] -**ConnectTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] +**DownloadConcurrency** | Pointer to **NullableInt64** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] +**RateLimit** | Pointer to **NullableInt64** | Limits requests per second for each concurrent downloader | [optional] **Name** | **string** | A unique name for this remote. | **ClientCert** | Pointer to **NullableString** | A PEM encoded client certificate used for authentication. | [optional] -**ProxyUrl** | Pointer to **NullableString** | The proxy URL. Format: scheme://host:port | [optional] -**ProxyUsername** | Pointer to **NullableString** | The username to authenticte to the proxy. | [optional] -**Username** | Pointer to **NullableString** | The username to be used for authentication when syncing. | [optional] -**TotalTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] **MaxRetries** | Pointer to **NullableInt64** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] +**SockReadTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] **Password** | Pointer to **NullableString** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional] -**DownloadConcurrency** | Pointer to **NullableInt64** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] -**RateLimit** | Pointer to **NullableInt64** | Limits requests per second for each concurrent downloader | [optional] -**ClientKey** | Pointer to **NullableString** | A PEM encoded private key used for authentication. | [optional] +**TotalTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] +**Username** | Pointer to **NullableString** | The username to be used for authentication when syncing. | [optional] **ProxyPassword** | Pointer to **NullableString** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional] **PulpLabels** | Pointer to **map[string]string** | | [optional] +**ProxyUrl** | Pointer to **NullableString** | The proxy URL. Format: scheme://host:port | [optional] +**ClientKey** | Pointer to **NullableString** | A PEM encoded private key used for authentication. | [optional] +**ConnectTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] +**CaCert** | Pointer to **NullableString** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] **TlsValidation** | Pointer to **bool** | If True, TLS peer validation must be performed. | [optional] +**SockConnectTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] **Url** | **string** | The URL of an external content source. | -**CaCert** | Pointer to **NullableString** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] +**ProxyUsername** | Pointer to **NullableString** | The username to authenticte to the proxy. | [optional] +**Headers** | Pointer to **[]map[string]interface{}** | Headers for aiohttp.Clientsession | [optional] **MetadataOnly** | Pointer to **bool** | If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL. | [optional] **GitRef** | Pointer to **string** | A git ref. e.g.: branch, tag, or commit sha. | [optional] @@ -46,136 +46,76 @@ NewAnsibleGitRemoteWithDefaults instantiates a new AnsibleGitRemote object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetHeaders - -`func (o *AnsibleGitRemote) GetHeaders() []map[string]interface{}` - -GetHeaders returns the Headers field if non-nil, zero value otherwise. - -### GetHeadersOk - -`func (o *AnsibleGitRemote) GetHeadersOk() (*[]map[string]interface{}, bool)` - -GetHeadersOk returns a tuple with the Headers field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHeaders - -`func (o *AnsibleGitRemote) SetHeaders(v []map[string]interface{})` - -SetHeaders sets Headers field to given value. - -### HasHeaders - -`func (o *AnsibleGitRemote) HasHeaders() bool` - -HasHeaders returns a boolean if a field has been set. - -### GetSockReadTimeout - -`func (o *AnsibleGitRemote) GetSockReadTimeout() float64` - -GetSockReadTimeout returns the SockReadTimeout field if non-nil, zero value otherwise. - -### GetSockReadTimeoutOk - -`func (o *AnsibleGitRemote) GetSockReadTimeoutOk() (*float64, bool)` - -GetSockReadTimeoutOk returns a tuple with the SockReadTimeout field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSockReadTimeout - -`func (o *AnsibleGitRemote) SetSockReadTimeout(v float64)` - -SetSockReadTimeout sets SockReadTimeout field to given value. - -### HasSockReadTimeout - -`func (o *AnsibleGitRemote) HasSockReadTimeout() bool` - -HasSockReadTimeout returns a boolean if a field has been set. - -### SetSockReadTimeoutNil - -`func (o *AnsibleGitRemote) SetSockReadTimeoutNil(b bool)` - - SetSockReadTimeoutNil sets the value for SockReadTimeout to be an explicit nil - -### UnsetSockReadTimeout -`func (o *AnsibleGitRemote) UnsetSockReadTimeout()` - -UnsetSockReadTimeout ensures that no value is present for SockReadTimeout, not even an explicit nil -### GetSockConnectTimeout +### GetDownloadConcurrency -`func (o *AnsibleGitRemote) GetSockConnectTimeout() float64` +`func (o *AnsibleGitRemote) GetDownloadConcurrency() int64` -GetSockConnectTimeout returns the SockConnectTimeout field if non-nil, zero value otherwise. +GetDownloadConcurrency returns the DownloadConcurrency field if non-nil, zero value otherwise. -### GetSockConnectTimeoutOk +### GetDownloadConcurrencyOk -`func (o *AnsibleGitRemote) GetSockConnectTimeoutOk() (*float64, bool)` +`func (o *AnsibleGitRemote) GetDownloadConcurrencyOk() (*int64, bool)` -GetSockConnectTimeoutOk returns a tuple with the SockConnectTimeout field if it's non-nil, zero value otherwise +GetDownloadConcurrencyOk returns a tuple with the DownloadConcurrency field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSockConnectTimeout +### SetDownloadConcurrency -`func (o *AnsibleGitRemote) SetSockConnectTimeout(v float64)` +`func (o *AnsibleGitRemote) SetDownloadConcurrency(v int64)` -SetSockConnectTimeout sets SockConnectTimeout field to given value. +SetDownloadConcurrency sets DownloadConcurrency field to given value. -### HasSockConnectTimeout +### HasDownloadConcurrency -`func (o *AnsibleGitRemote) HasSockConnectTimeout() bool` +`func (o *AnsibleGitRemote) HasDownloadConcurrency() bool` -HasSockConnectTimeout returns a boolean if a field has been set. +HasDownloadConcurrency returns a boolean if a field has been set. -### SetSockConnectTimeoutNil +### SetDownloadConcurrencyNil -`func (o *AnsibleGitRemote) SetSockConnectTimeoutNil(b bool)` +`func (o *AnsibleGitRemote) SetDownloadConcurrencyNil(b bool)` - SetSockConnectTimeoutNil sets the value for SockConnectTimeout to be an explicit nil + SetDownloadConcurrencyNil sets the value for DownloadConcurrency to be an explicit nil -### UnsetSockConnectTimeout -`func (o *AnsibleGitRemote) UnsetSockConnectTimeout()` +### UnsetDownloadConcurrency +`func (o *AnsibleGitRemote) UnsetDownloadConcurrency()` -UnsetSockConnectTimeout ensures that no value is present for SockConnectTimeout, not even an explicit nil -### GetConnectTimeout +UnsetDownloadConcurrency ensures that no value is present for DownloadConcurrency, not even an explicit nil +### GetRateLimit -`func (o *AnsibleGitRemote) GetConnectTimeout() float64` +`func (o *AnsibleGitRemote) GetRateLimit() int64` -GetConnectTimeout returns the ConnectTimeout field if non-nil, zero value otherwise. +GetRateLimit returns the RateLimit field if non-nil, zero value otherwise. -### GetConnectTimeoutOk +### GetRateLimitOk -`func (o *AnsibleGitRemote) GetConnectTimeoutOk() (*float64, bool)` +`func (o *AnsibleGitRemote) GetRateLimitOk() (*int64, bool)` -GetConnectTimeoutOk returns a tuple with the ConnectTimeout field if it's non-nil, zero value otherwise +GetRateLimitOk returns a tuple with the RateLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetConnectTimeout +### SetRateLimit -`func (o *AnsibleGitRemote) SetConnectTimeout(v float64)` +`func (o *AnsibleGitRemote) SetRateLimit(v int64)` -SetConnectTimeout sets ConnectTimeout field to given value. +SetRateLimit sets RateLimit field to given value. -### HasConnectTimeout +### HasRateLimit -`func (o *AnsibleGitRemote) HasConnectTimeout() bool` +`func (o *AnsibleGitRemote) HasRateLimit() bool` -HasConnectTimeout returns a boolean if a field has been set. +HasRateLimit returns a boolean if a field has been set. -### SetConnectTimeoutNil +### SetRateLimitNil -`func (o *AnsibleGitRemote) SetConnectTimeoutNil(b bool)` +`func (o *AnsibleGitRemote) SetRateLimitNil(b bool)` - SetConnectTimeoutNil sets the value for ConnectTimeout to be an explicit nil + SetRateLimitNil sets the value for RateLimit to be an explicit nil -### UnsetConnectTimeout -`func (o *AnsibleGitRemote) UnsetConnectTimeout()` +### UnsetRateLimit +`func (o *AnsibleGitRemote) UnsetRateLimit()` -UnsetConnectTimeout ensures that no value is present for ConnectTimeout, not even an explicit nil +UnsetRateLimit ensures that no value is present for RateLimit, not even an explicit nil ### GetName `func (o *AnsibleGitRemote) GetName() string` @@ -231,111 +171,111 @@ HasClientCert returns a boolean if a field has been set. `func (o *AnsibleGitRemote) UnsetClientCert()` UnsetClientCert ensures that no value is present for ClientCert, not even an explicit nil -### GetProxyUrl +### GetMaxRetries -`func (o *AnsibleGitRemote) GetProxyUrl() string` +`func (o *AnsibleGitRemote) GetMaxRetries() int64` -GetProxyUrl returns the ProxyUrl field if non-nil, zero value otherwise. +GetMaxRetries returns the MaxRetries field if non-nil, zero value otherwise. -### GetProxyUrlOk +### GetMaxRetriesOk -`func (o *AnsibleGitRemote) GetProxyUrlOk() (*string, bool)` +`func (o *AnsibleGitRemote) GetMaxRetriesOk() (*int64, bool)` -GetProxyUrlOk returns a tuple with the ProxyUrl field if it's non-nil, zero value otherwise +GetMaxRetriesOk returns a tuple with the MaxRetries field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetProxyUrl +### SetMaxRetries -`func (o *AnsibleGitRemote) SetProxyUrl(v string)` +`func (o *AnsibleGitRemote) SetMaxRetries(v int64)` -SetProxyUrl sets ProxyUrl field to given value. +SetMaxRetries sets MaxRetries field to given value. -### HasProxyUrl +### HasMaxRetries -`func (o *AnsibleGitRemote) HasProxyUrl() bool` +`func (o *AnsibleGitRemote) HasMaxRetries() bool` -HasProxyUrl returns a boolean if a field has been set. +HasMaxRetries returns a boolean if a field has been set. -### SetProxyUrlNil +### SetMaxRetriesNil -`func (o *AnsibleGitRemote) SetProxyUrlNil(b bool)` +`func (o *AnsibleGitRemote) SetMaxRetriesNil(b bool)` - SetProxyUrlNil sets the value for ProxyUrl to be an explicit nil + SetMaxRetriesNil sets the value for MaxRetries to be an explicit nil -### UnsetProxyUrl -`func (o *AnsibleGitRemote) UnsetProxyUrl()` +### UnsetMaxRetries +`func (o *AnsibleGitRemote) UnsetMaxRetries()` -UnsetProxyUrl ensures that no value is present for ProxyUrl, not even an explicit nil -### GetProxyUsername +UnsetMaxRetries ensures that no value is present for MaxRetries, not even an explicit nil +### GetSockReadTimeout -`func (o *AnsibleGitRemote) GetProxyUsername() string` +`func (o *AnsibleGitRemote) GetSockReadTimeout() float64` -GetProxyUsername returns the ProxyUsername field if non-nil, zero value otherwise. +GetSockReadTimeout returns the SockReadTimeout field if non-nil, zero value otherwise. -### GetProxyUsernameOk +### GetSockReadTimeoutOk -`func (o *AnsibleGitRemote) GetProxyUsernameOk() (*string, bool)` +`func (o *AnsibleGitRemote) GetSockReadTimeoutOk() (*float64, bool)` -GetProxyUsernameOk returns a tuple with the ProxyUsername field if it's non-nil, zero value otherwise +GetSockReadTimeoutOk returns a tuple with the SockReadTimeout field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetProxyUsername +### SetSockReadTimeout -`func (o *AnsibleGitRemote) SetProxyUsername(v string)` +`func (o *AnsibleGitRemote) SetSockReadTimeout(v float64)` -SetProxyUsername sets ProxyUsername field to given value. +SetSockReadTimeout sets SockReadTimeout field to given value. -### HasProxyUsername +### HasSockReadTimeout -`func (o *AnsibleGitRemote) HasProxyUsername() bool` +`func (o *AnsibleGitRemote) HasSockReadTimeout() bool` -HasProxyUsername returns a boolean if a field has been set. +HasSockReadTimeout returns a boolean if a field has been set. -### SetProxyUsernameNil +### SetSockReadTimeoutNil -`func (o *AnsibleGitRemote) SetProxyUsernameNil(b bool)` +`func (o *AnsibleGitRemote) SetSockReadTimeoutNil(b bool)` - SetProxyUsernameNil sets the value for ProxyUsername to be an explicit nil + SetSockReadTimeoutNil sets the value for SockReadTimeout to be an explicit nil -### UnsetProxyUsername -`func (o *AnsibleGitRemote) UnsetProxyUsername()` +### UnsetSockReadTimeout +`func (o *AnsibleGitRemote) UnsetSockReadTimeout()` -UnsetProxyUsername ensures that no value is present for ProxyUsername, not even an explicit nil -### GetUsername +UnsetSockReadTimeout ensures that no value is present for SockReadTimeout, not even an explicit nil +### GetPassword -`func (o *AnsibleGitRemote) GetUsername() string` +`func (o *AnsibleGitRemote) GetPassword() string` -GetUsername returns the Username field if non-nil, zero value otherwise. +GetPassword returns the Password field if non-nil, zero value otherwise. -### GetUsernameOk +### GetPasswordOk -`func (o *AnsibleGitRemote) GetUsernameOk() (*string, bool)` +`func (o *AnsibleGitRemote) GetPasswordOk() (*string, bool)` -GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetUsername +### SetPassword -`func (o *AnsibleGitRemote) SetUsername(v string)` +`func (o *AnsibleGitRemote) SetPassword(v string)` -SetUsername sets Username field to given value. +SetPassword sets Password field to given value. -### HasUsername +### HasPassword -`func (o *AnsibleGitRemote) HasUsername() bool` +`func (o *AnsibleGitRemote) HasPassword() bool` -HasUsername returns a boolean if a field has been set. +HasPassword returns a boolean if a field has been set. -### SetUsernameNil +### SetPasswordNil -`func (o *AnsibleGitRemote) SetUsernameNil(b bool)` +`func (o *AnsibleGitRemote) SetPasswordNil(b bool)` - SetUsernameNil sets the value for Username to be an explicit nil + SetPasswordNil sets the value for Password to be an explicit nil -### UnsetUsername -`func (o *AnsibleGitRemote) UnsetUsername()` +### UnsetPassword +`func (o *AnsibleGitRemote) UnsetPassword()` -UnsetUsername ensures that no value is present for Username, not even an explicit nil +UnsetPassword ensures that no value is present for Password, not even an explicit nil ### GetTotalTimeout `func (o *AnsibleGitRemote) GetTotalTimeout() float64` @@ -371,146 +311,136 @@ HasTotalTimeout returns a boolean if a field has been set. `func (o *AnsibleGitRemote) UnsetTotalTimeout()` UnsetTotalTimeout ensures that no value is present for TotalTimeout, not even an explicit nil -### GetMaxRetries +### GetUsername -`func (o *AnsibleGitRemote) GetMaxRetries() int64` +`func (o *AnsibleGitRemote) GetUsername() string` -GetMaxRetries returns the MaxRetries field if non-nil, zero value otherwise. +GetUsername returns the Username field if non-nil, zero value otherwise. -### GetMaxRetriesOk +### GetUsernameOk -`func (o *AnsibleGitRemote) GetMaxRetriesOk() (*int64, bool)` +`func (o *AnsibleGitRemote) GetUsernameOk() (*string, bool)` -GetMaxRetriesOk returns a tuple with the MaxRetries field if it's non-nil, zero value otherwise +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMaxRetries +### SetUsername -`func (o *AnsibleGitRemote) SetMaxRetries(v int64)` +`func (o *AnsibleGitRemote) SetUsername(v string)` -SetMaxRetries sets MaxRetries field to given value. +SetUsername sets Username field to given value. -### HasMaxRetries +### HasUsername -`func (o *AnsibleGitRemote) HasMaxRetries() bool` +`func (o *AnsibleGitRemote) HasUsername() bool` -HasMaxRetries returns a boolean if a field has been set. +HasUsername returns a boolean if a field has been set. -### SetMaxRetriesNil +### SetUsernameNil -`func (o *AnsibleGitRemote) SetMaxRetriesNil(b bool)` +`func (o *AnsibleGitRemote) SetUsernameNil(b bool)` - SetMaxRetriesNil sets the value for MaxRetries to be an explicit nil + SetUsernameNil sets the value for Username to be an explicit nil -### UnsetMaxRetries -`func (o *AnsibleGitRemote) UnsetMaxRetries()` +### UnsetUsername +`func (o *AnsibleGitRemote) UnsetUsername()` -UnsetMaxRetries ensures that no value is present for MaxRetries, not even an explicit nil -### GetPassword +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetProxyPassword -`func (o *AnsibleGitRemote) GetPassword() string` +`func (o *AnsibleGitRemote) GetProxyPassword() string` -GetPassword returns the Password field if non-nil, zero value otherwise. +GetProxyPassword returns the ProxyPassword field if non-nil, zero value otherwise. -### GetPasswordOk +### GetProxyPasswordOk -`func (o *AnsibleGitRemote) GetPasswordOk() (*string, bool)` +`func (o *AnsibleGitRemote) GetProxyPasswordOk() (*string, bool)` -GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +GetProxyPasswordOk returns a tuple with the ProxyPassword field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPassword +### SetProxyPassword -`func (o *AnsibleGitRemote) SetPassword(v string)` +`func (o *AnsibleGitRemote) SetProxyPassword(v string)` -SetPassword sets Password field to given value. +SetProxyPassword sets ProxyPassword field to given value. -### HasPassword +### HasProxyPassword -`func (o *AnsibleGitRemote) HasPassword() bool` +`func (o *AnsibleGitRemote) HasProxyPassword() bool` -HasPassword returns a boolean if a field has been set. +HasProxyPassword returns a boolean if a field has been set. -### SetPasswordNil +### SetProxyPasswordNil -`func (o *AnsibleGitRemote) SetPasswordNil(b bool)` +`func (o *AnsibleGitRemote) SetProxyPasswordNil(b bool)` - SetPasswordNil sets the value for Password to be an explicit nil + SetProxyPasswordNil sets the value for ProxyPassword to be an explicit nil -### UnsetPassword -`func (o *AnsibleGitRemote) UnsetPassword()` +### UnsetProxyPassword +`func (o *AnsibleGitRemote) UnsetProxyPassword()` -UnsetPassword ensures that no value is present for Password, not even an explicit nil -### GetDownloadConcurrency +UnsetProxyPassword ensures that no value is present for ProxyPassword, not even an explicit nil +### GetPulpLabels -`func (o *AnsibleGitRemote) GetDownloadConcurrency() int64` +`func (o *AnsibleGitRemote) GetPulpLabels() map[string]string` -GetDownloadConcurrency returns the DownloadConcurrency field if non-nil, zero value otherwise. +GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. -### GetDownloadConcurrencyOk +### GetPulpLabelsOk -`func (o *AnsibleGitRemote) GetDownloadConcurrencyOk() (*int64, bool)` +`func (o *AnsibleGitRemote) GetPulpLabelsOk() (*map[string]string, bool)` -GetDownloadConcurrencyOk returns a tuple with the DownloadConcurrency field if it's non-nil, zero value otherwise +GetPulpLabelsOk returns a tuple with the PulpLabels field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDownloadConcurrency - -`func (o *AnsibleGitRemote) SetDownloadConcurrency(v int64)` - -SetDownloadConcurrency sets DownloadConcurrency field to given value. - -### HasDownloadConcurrency - -`func (o *AnsibleGitRemote) HasDownloadConcurrency() bool` +### SetPulpLabels -HasDownloadConcurrency returns a boolean if a field has been set. +`func (o *AnsibleGitRemote) SetPulpLabels(v map[string]string)` -### SetDownloadConcurrencyNil +SetPulpLabels sets PulpLabels field to given value. -`func (o *AnsibleGitRemote) SetDownloadConcurrencyNil(b bool)` +### HasPulpLabels - SetDownloadConcurrencyNil sets the value for DownloadConcurrency to be an explicit nil +`func (o *AnsibleGitRemote) HasPulpLabels() bool` -### UnsetDownloadConcurrency -`func (o *AnsibleGitRemote) UnsetDownloadConcurrency()` +HasPulpLabels returns a boolean if a field has been set. -UnsetDownloadConcurrency ensures that no value is present for DownloadConcurrency, not even an explicit nil -### GetRateLimit +### GetProxyUrl -`func (o *AnsibleGitRemote) GetRateLimit() int64` +`func (o *AnsibleGitRemote) GetProxyUrl() string` -GetRateLimit returns the RateLimit field if non-nil, zero value otherwise. +GetProxyUrl returns the ProxyUrl field if non-nil, zero value otherwise. -### GetRateLimitOk +### GetProxyUrlOk -`func (o *AnsibleGitRemote) GetRateLimitOk() (*int64, bool)` +`func (o *AnsibleGitRemote) GetProxyUrlOk() (*string, bool)` -GetRateLimitOk returns a tuple with the RateLimit field if it's non-nil, zero value otherwise +GetProxyUrlOk returns a tuple with the ProxyUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetRateLimit +### SetProxyUrl -`func (o *AnsibleGitRemote) SetRateLimit(v int64)` +`func (o *AnsibleGitRemote) SetProxyUrl(v string)` -SetRateLimit sets RateLimit field to given value. +SetProxyUrl sets ProxyUrl field to given value. -### HasRateLimit +### HasProxyUrl -`func (o *AnsibleGitRemote) HasRateLimit() bool` +`func (o *AnsibleGitRemote) HasProxyUrl() bool` -HasRateLimit returns a boolean if a field has been set. +HasProxyUrl returns a boolean if a field has been set. -### SetRateLimitNil +### SetProxyUrlNil -`func (o *AnsibleGitRemote) SetRateLimitNil(b bool)` +`func (o *AnsibleGitRemote) SetProxyUrlNil(b bool)` - SetRateLimitNil sets the value for RateLimit to be an explicit nil + SetProxyUrlNil sets the value for ProxyUrl to be an explicit nil -### UnsetRateLimit -`func (o *AnsibleGitRemote) UnsetRateLimit()` +### UnsetProxyUrl +`func (o *AnsibleGitRemote) UnsetProxyUrl()` -UnsetRateLimit ensures that no value is present for RateLimit, not even an explicit nil +UnsetProxyUrl ensures that no value is present for ProxyUrl, not even an explicit nil ### GetClientKey `func (o *AnsibleGitRemote) GetClientKey() string` @@ -546,66 +476,76 @@ HasClientKey returns a boolean if a field has been set. `func (o *AnsibleGitRemote) UnsetClientKey()` UnsetClientKey ensures that no value is present for ClientKey, not even an explicit nil -### GetProxyPassword +### GetConnectTimeout -`func (o *AnsibleGitRemote) GetProxyPassword() string` +`func (o *AnsibleGitRemote) GetConnectTimeout() float64` -GetProxyPassword returns the ProxyPassword field if non-nil, zero value otherwise. +GetConnectTimeout returns the ConnectTimeout field if non-nil, zero value otherwise. -### GetProxyPasswordOk +### GetConnectTimeoutOk -`func (o *AnsibleGitRemote) GetProxyPasswordOk() (*string, bool)` +`func (o *AnsibleGitRemote) GetConnectTimeoutOk() (*float64, bool)` -GetProxyPasswordOk returns a tuple with the ProxyPassword field if it's non-nil, zero value otherwise +GetConnectTimeoutOk returns a tuple with the ConnectTimeout field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetProxyPassword +### SetConnectTimeout -`func (o *AnsibleGitRemote) SetProxyPassword(v string)` +`func (o *AnsibleGitRemote) SetConnectTimeout(v float64)` -SetProxyPassword sets ProxyPassword field to given value. +SetConnectTimeout sets ConnectTimeout field to given value. -### HasProxyPassword +### HasConnectTimeout -`func (o *AnsibleGitRemote) HasProxyPassword() bool` +`func (o *AnsibleGitRemote) HasConnectTimeout() bool` -HasProxyPassword returns a boolean if a field has been set. +HasConnectTimeout returns a boolean if a field has been set. -### SetProxyPasswordNil +### SetConnectTimeoutNil -`func (o *AnsibleGitRemote) SetProxyPasswordNil(b bool)` +`func (o *AnsibleGitRemote) SetConnectTimeoutNil(b bool)` - SetProxyPasswordNil sets the value for ProxyPassword to be an explicit nil + SetConnectTimeoutNil sets the value for ConnectTimeout to be an explicit nil -### UnsetProxyPassword -`func (o *AnsibleGitRemote) UnsetProxyPassword()` +### UnsetConnectTimeout +`func (o *AnsibleGitRemote) UnsetConnectTimeout()` -UnsetProxyPassword ensures that no value is present for ProxyPassword, not even an explicit nil -### GetPulpLabels +UnsetConnectTimeout ensures that no value is present for ConnectTimeout, not even an explicit nil +### GetCaCert -`func (o *AnsibleGitRemote) GetPulpLabels() map[string]string` +`func (o *AnsibleGitRemote) GetCaCert() string` -GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. +GetCaCert returns the CaCert field if non-nil, zero value otherwise. -### GetPulpLabelsOk +### GetCaCertOk -`func (o *AnsibleGitRemote) GetPulpLabelsOk() (*map[string]string, bool)` +`func (o *AnsibleGitRemote) GetCaCertOk() (*string, bool)` -GetPulpLabelsOk returns a tuple with the PulpLabels field if it's non-nil, zero value otherwise +GetCaCertOk returns a tuple with the CaCert field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPulpLabels +### SetCaCert -`func (o *AnsibleGitRemote) SetPulpLabels(v map[string]string)` +`func (o *AnsibleGitRemote) SetCaCert(v string)` -SetPulpLabels sets PulpLabels field to given value. +SetCaCert sets CaCert field to given value. -### HasPulpLabels +### HasCaCert -`func (o *AnsibleGitRemote) HasPulpLabels() bool` +`func (o *AnsibleGitRemote) HasCaCert() bool` -HasPulpLabels returns a boolean if a field has been set. +HasCaCert returns a boolean if a field has been set. + +### SetCaCertNil + +`func (o *AnsibleGitRemote) SetCaCertNil(b bool)` + + SetCaCertNil sets the value for CaCert to be an explicit nil +### UnsetCaCert +`func (o *AnsibleGitRemote) UnsetCaCert()` + +UnsetCaCert ensures that no value is present for CaCert, not even an explicit nil ### GetTlsValidation `func (o *AnsibleGitRemote) GetTlsValidation() bool` @@ -631,6 +571,41 @@ SetTlsValidation sets TlsValidation field to given value. HasTlsValidation returns a boolean if a field has been set. +### GetSockConnectTimeout + +`func (o *AnsibleGitRemote) GetSockConnectTimeout() float64` + +GetSockConnectTimeout returns the SockConnectTimeout field if non-nil, zero value otherwise. + +### GetSockConnectTimeoutOk + +`func (o *AnsibleGitRemote) GetSockConnectTimeoutOk() (*float64, bool)` + +GetSockConnectTimeoutOk returns a tuple with the SockConnectTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSockConnectTimeout + +`func (o *AnsibleGitRemote) SetSockConnectTimeout(v float64)` + +SetSockConnectTimeout sets SockConnectTimeout field to given value. + +### HasSockConnectTimeout + +`func (o *AnsibleGitRemote) HasSockConnectTimeout() bool` + +HasSockConnectTimeout returns a boolean if a field has been set. + +### SetSockConnectTimeoutNil + +`func (o *AnsibleGitRemote) SetSockConnectTimeoutNil(b bool)` + + SetSockConnectTimeoutNil sets the value for SockConnectTimeout to be an explicit nil + +### UnsetSockConnectTimeout +`func (o *AnsibleGitRemote) UnsetSockConnectTimeout()` + +UnsetSockConnectTimeout ensures that no value is present for SockConnectTimeout, not even an explicit nil ### GetUrl `func (o *AnsibleGitRemote) GetUrl() string` @@ -651,41 +626,66 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetCaCert +### GetProxyUsername -`func (o *AnsibleGitRemote) GetCaCert() string` +`func (o *AnsibleGitRemote) GetProxyUsername() string` -GetCaCert returns the CaCert field if non-nil, zero value otherwise. +GetProxyUsername returns the ProxyUsername field if non-nil, zero value otherwise. -### GetCaCertOk +### GetProxyUsernameOk -`func (o *AnsibleGitRemote) GetCaCertOk() (*string, bool)` +`func (o *AnsibleGitRemote) GetProxyUsernameOk() (*string, bool)` -GetCaCertOk returns a tuple with the CaCert field if it's non-nil, zero value otherwise +GetProxyUsernameOk returns a tuple with the ProxyUsername field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetCaCert +### SetProxyUsername -`func (o *AnsibleGitRemote) SetCaCert(v string)` +`func (o *AnsibleGitRemote) SetProxyUsername(v string)` -SetCaCert sets CaCert field to given value. +SetProxyUsername sets ProxyUsername field to given value. -### HasCaCert +### HasProxyUsername -`func (o *AnsibleGitRemote) HasCaCert() bool` +`func (o *AnsibleGitRemote) HasProxyUsername() bool` -HasCaCert returns a boolean if a field has been set. +HasProxyUsername returns a boolean if a field has been set. -### SetCaCertNil +### SetProxyUsernameNil -`func (o *AnsibleGitRemote) SetCaCertNil(b bool)` +`func (o *AnsibleGitRemote) SetProxyUsernameNil(b bool)` - SetCaCertNil sets the value for CaCert to be an explicit nil + SetProxyUsernameNil sets the value for ProxyUsername to be an explicit nil -### UnsetCaCert -`func (o *AnsibleGitRemote) UnsetCaCert()` +### UnsetProxyUsername +`func (o *AnsibleGitRemote) UnsetProxyUsername()` + +UnsetProxyUsername ensures that no value is present for ProxyUsername, not even an explicit nil +### GetHeaders + +`func (o *AnsibleGitRemote) GetHeaders() []map[string]interface{}` + +GetHeaders returns the Headers field if non-nil, zero value otherwise. + +### GetHeadersOk + +`func (o *AnsibleGitRemote) GetHeadersOk() (*[]map[string]interface{}, bool)` + +GetHeadersOk returns a tuple with the Headers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeaders + +`func (o *AnsibleGitRemote) SetHeaders(v []map[string]interface{})` + +SetHeaders sets Headers field to given value. + +### HasHeaders + +`func (o *AnsibleGitRemote) HasHeaders() bool` + +HasHeaders returns a boolean if a field has been set. -UnsetCaCert ensures that no value is present for CaCert, not even an explicit nil ### GetMetadataOnly `func (o *AnsibleGitRemote) GetMetadataOnly() bool` diff --git a/release/docs/AnsibleGitRemoteResponse.md b/release/docs/AnsibleGitRemoteResponse.md index f553f762..3cbef038 100644 --- a/release/docs/AnsibleGitRemoteResponse.md +++ b/release/docs/AnsibleGitRemoteResponse.md @@ -4,25 +4,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Headers** | Pointer to **[]map[string]interface{}** | Headers for aiohttp.Clientsession | [optional] -**SockReadTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] -**SockConnectTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] -**ConnectTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] -**PulpHref** | Pointer to **string** | | [optional] [readonly] -**HiddenFields** | Pointer to [**[]RemoteResponseHiddenFieldsInner**](RemoteResponseHiddenFieldsInner.md) | List of hidden (write only) fields | [optional] [readonly] +**DownloadConcurrency** | Pointer to **NullableInt64** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] +**RateLimit** | Pointer to **NullableInt64** | Limits requests per second for each concurrent downloader | [optional] **Name** | **string** | A unique name for this remote. | **ClientCert** | Pointer to **NullableString** | A PEM encoded client certificate used for authentication. | [optional] -**ProxyUrl** | Pointer to **NullableString** | The proxy URL. Format: scheme://host:port | [optional] -**TotalTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] -**PulpLastUpdated** | Pointer to **time.Time** | Timestamp of the most recent update of the remote. | [optional] [readonly] **MaxRetries** | Pointer to **NullableInt64** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] -**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] -**DownloadConcurrency** | Pointer to **NullableInt64** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] -**RateLimit** | Pointer to **NullableInt64** | Limits requests per second for each concurrent downloader | [optional] +**SockReadTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] +**PulpLastUpdated** | Pointer to **time.Time** | Timestamp of the most recent update of the remote. | [optional] [readonly] +**TotalTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] **PulpLabels** | Pointer to **map[string]string** | | [optional] +**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] +**ProxyUrl** | Pointer to **NullableString** | The proxy URL. Format: scheme://host:port | [optional] +**ConnectTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] +**CaCert** | Pointer to **NullableString** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] **TlsValidation** | Pointer to **bool** | If True, TLS peer validation must be performed. | [optional] +**SockConnectTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] **Url** | **string** | The URL of an external content source. | -**CaCert** | Pointer to **NullableString** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] +**Headers** | Pointer to **[]map[string]interface{}** | Headers for aiohttp.Clientsession | [optional] +**PulpHref** | Pointer to **string** | | [optional] [readonly] +**HiddenFields** | Pointer to [**[]RemoteResponseHiddenFieldsInner**](RemoteResponseHiddenFieldsInner.md) | List of hidden (write only) fields | [optional] [readonly] **MetadataOnly** | Pointer to **bool** | If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL. | [optional] **GitRef** | Pointer to **string** | A git ref. e.g.: branch, tag, or commit sha. | [optional] @@ -45,186 +45,76 @@ NewAnsibleGitRemoteResponseWithDefaults instantiates a new AnsibleGitRemoteRespo This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetHeaders - -`func (o *AnsibleGitRemoteResponse) GetHeaders() []map[string]interface{}` - -GetHeaders returns the Headers field if non-nil, zero value otherwise. - -### GetHeadersOk - -`func (o *AnsibleGitRemoteResponse) GetHeadersOk() (*[]map[string]interface{}, bool)` - -GetHeadersOk returns a tuple with the Headers field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHeaders - -`func (o *AnsibleGitRemoteResponse) SetHeaders(v []map[string]interface{})` - -SetHeaders sets Headers field to given value. - -### HasHeaders - -`func (o *AnsibleGitRemoteResponse) HasHeaders() bool` - -HasHeaders returns a boolean if a field has been set. - -### GetSockReadTimeout - -`func (o *AnsibleGitRemoteResponse) GetSockReadTimeout() float64` - -GetSockReadTimeout returns the SockReadTimeout field if non-nil, zero value otherwise. - -### GetSockReadTimeoutOk - -`func (o *AnsibleGitRemoteResponse) GetSockReadTimeoutOk() (*float64, bool)` - -GetSockReadTimeoutOk returns a tuple with the SockReadTimeout field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSockReadTimeout - -`func (o *AnsibleGitRemoteResponse) SetSockReadTimeout(v float64)` - -SetSockReadTimeout sets SockReadTimeout field to given value. - -### HasSockReadTimeout - -`func (o *AnsibleGitRemoteResponse) HasSockReadTimeout() bool` - -HasSockReadTimeout returns a boolean if a field has been set. - -### SetSockReadTimeoutNil - -`func (o *AnsibleGitRemoteResponse) SetSockReadTimeoutNil(b bool)` - - SetSockReadTimeoutNil sets the value for SockReadTimeout to be an explicit nil - -### UnsetSockReadTimeout -`func (o *AnsibleGitRemoteResponse) UnsetSockReadTimeout()` - -UnsetSockReadTimeout ensures that no value is present for SockReadTimeout, not even an explicit nil -### GetSockConnectTimeout - -`func (o *AnsibleGitRemoteResponse) GetSockConnectTimeout() float64` - -GetSockConnectTimeout returns the SockConnectTimeout field if non-nil, zero value otherwise. - -### GetSockConnectTimeoutOk - -`func (o *AnsibleGitRemoteResponse) GetSockConnectTimeoutOk() (*float64, bool)` - -GetSockConnectTimeoutOk returns a tuple with the SockConnectTimeout field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSockConnectTimeout - -`func (o *AnsibleGitRemoteResponse) SetSockConnectTimeout(v float64)` - -SetSockConnectTimeout sets SockConnectTimeout field to given value. - -### HasSockConnectTimeout - -`func (o *AnsibleGitRemoteResponse) HasSockConnectTimeout() bool` - -HasSockConnectTimeout returns a boolean if a field has been set. - -### SetSockConnectTimeoutNil - -`func (o *AnsibleGitRemoteResponse) SetSockConnectTimeoutNil(b bool)` - - SetSockConnectTimeoutNil sets the value for SockConnectTimeout to be an explicit nil - -### UnsetSockConnectTimeout -`func (o *AnsibleGitRemoteResponse) UnsetSockConnectTimeout()` - -UnsetSockConnectTimeout ensures that no value is present for SockConnectTimeout, not even an explicit nil -### GetConnectTimeout +### GetDownloadConcurrency -`func (o *AnsibleGitRemoteResponse) GetConnectTimeout() float64` +`func (o *AnsibleGitRemoteResponse) GetDownloadConcurrency() int64` -GetConnectTimeout returns the ConnectTimeout field if non-nil, zero value otherwise. +GetDownloadConcurrency returns the DownloadConcurrency field if non-nil, zero value otherwise. -### GetConnectTimeoutOk +### GetDownloadConcurrencyOk -`func (o *AnsibleGitRemoteResponse) GetConnectTimeoutOk() (*float64, bool)` +`func (o *AnsibleGitRemoteResponse) GetDownloadConcurrencyOk() (*int64, bool)` -GetConnectTimeoutOk returns a tuple with the ConnectTimeout field if it's non-nil, zero value otherwise +GetDownloadConcurrencyOk returns a tuple with the DownloadConcurrency field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetConnectTimeout +### SetDownloadConcurrency -`func (o *AnsibleGitRemoteResponse) SetConnectTimeout(v float64)` +`func (o *AnsibleGitRemoteResponse) SetDownloadConcurrency(v int64)` -SetConnectTimeout sets ConnectTimeout field to given value. +SetDownloadConcurrency sets DownloadConcurrency field to given value. -### HasConnectTimeout +### HasDownloadConcurrency -`func (o *AnsibleGitRemoteResponse) HasConnectTimeout() bool` +`func (o *AnsibleGitRemoteResponse) HasDownloadConcurrency() bool` -HasConnectTimeout returns a boolean if a field has been set. +HasDownloadConcurrency returns a boolean if a field has been set. -### SetConnectTimeoutNil +### SetDownloadConcurrencyNil -`func (o *AnsibleGitRemoteResponse) SetConnectTimeoutNil(b bool)` +`func (o *AnsibleGitRemoteResponse) SetDownloadConcurrencyNil(b bool)` - SetConnectTimeoutNil sets the value for ConnectTimeout to be an explicit nil + SetDownloadConcurrencyNil sets the value for DownloadConcurrency to be an explicit nil -### UnsetConnectTimeout -`func (o *AnsibleGitRemoteResponse) UnsetConnectTimeout()` +### UnsetDownloadConcurrency +`func (o *AnsibleGitRemoteResponse) UnsetDownloadConcurrency()` -UnsetConnectTimeout ensures that no value is present for ConnectTimeout, not even an explicit nil -### GetPulpHref +UnsetDownloadConcurrency ensures that no value is present for DownloadConcurrency, not even an explicit nil +### GetRateLimit -`func (o *AnsibleGitRemoteResponse) GetPulpHref() string` +`func (o *AnsibleGitRemoteResponse) GetRateLimit() int64` -GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. +GetRateLimit returns the RateLimit field if non-nil, zero value otherwise. -### GetPulpHrefOk +### GetRateLimitOk -`func (o *AnsibleGitRemoteResponse) GetPulpHrefOk() (*string, bool)` +`func (o *AnsibleGitRemoteResponse) GetRateLimitOk() (*int64, bool)` -GetPulpHrefOk returns a tuple with the PulpHref field if it's non-nil, zero value otherwise +GetRateLimitOk returns a tuple with the RateLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPulpHref - -`func (o *AnsibleGitRemoteResponse) SetPulpHref(v string)` - -SetPulpHref sets PulpHref field to given value. - -### HasPulpHref - -`func (o *AnsibleGitRemoteResponse) HasPulpHref() bool` - -HasPulpHref returns a boolean if a field has been set. - -### GetHiddenFields - -`func (o *AnsibleGitRemoteResponse) GetHiddenFields() []RemoteResponseHiddenFieldsInner` - -GetHiddenFields returns the HiddenFields field if non-nil, zero value otherwise. +### SetRateLimit -### GetHiddenFieldsOk +`func (o *AnsibleGitRemoteResponse) SetRateLimit(v int64)` -`func (o *AnsibleGitRemoteResponse) GetHiddenFieldsOk() (*[]RemoteResponseHiddenFieldsInner, bool)` +SetRateLimit sets RateLimit field to given value. -GetHiddenFieldsOk returns a tuple with the HiddenFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +### HasRateLimit -### SetHiddenFields +`func (o *AnsibleGitRemoteResponse) HasRateLimit() bool` -`func (o *AnsibleGitRemoteResponse) SetHiddenFields(v []RemoteResponseHiddenFieldsInner)` +HasRateLimit returns a boolean if a field has been set. -SetHiddenFields sets HiddenFields field to given value. +### SetRateLimitNil -### HasHiddenFields +`func (o *AnsibleGitRemoteResponse) SetRateLimitNil(b bool)` -`func (o *AnsibleGitRemoteResponse) HasHiddenFields() bool` + SetRateLimitNil sets the value for RateLimit to be an explicit nil -HasHiddenFields returns a boolean if a field has been set. +### UnsetRateLimit +`func (o *AnsibleGitRemoteResponse) UnsetRateLimit()` +UnsetRateLimit ensures that no value is present for RateLimit, not even an explicit nil ### GetName `func (o *AnsibleGitRemoteResponse) GetName() string` @@ -280,76 +170,76 @@ HasClientCert returns a boolean if a field has been set. `func (o *AnsibleGitRemoteResponse) UnsetClientCert()` UnsetClientCert ensures that no value is present for ClientCert, not even an explicit nil -### GetProxyUrl +### GetMaxRetries -`func (o *AnsibleGitRemoteResponse) GetProxyUrl() string` +`func (o *AnsibleGitRemoteResponse) GetMaxRetries() int64` -GetProxyUrl returns the ProxyUrl field if non-nil, zero value otherwise. +GetMaxRetries returns the MaxRetries field if non-nil, zero value otherwise. -### GetProxyUrlOk +### GetMaxRetriesOk -`func (o *AnsibleGitRemoteResponse) GetProxyUrlOk() (*string, bool)` +`func (o *AnsibleGitRemoteResponse) GetMaxRetriesOk() (*int64, bool)` -GetProxyUrlOk returns a tuple with the ProxyUrl field if it's non-nil, zero value otherwise +GetMaxRetriesOk returns a tuple with the MaxRetries field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetProxyUrl +### SetMaxRetries -`func (o *AnsibleGitRemoteResponse) SetProxyUrl(v string)` +`func (o *AnsibleGitRemoteResponse) SetMaxRetries(v int64)` -SetProxyUrl sets ProxyUrl field to given value. +SetMaxRetries sets MaxRetries field to given value. -### HasProxyUrl +### HasMaxRetries -`func (o *AnsibleGitRemoteResponse) HasProxyUrl() bool` +`func (o *AnsibleGitRemoteResponse) HasMaxRetries() bool` -HasProxyUrl returns a boolean if a field has been set. +HasMaxRetries returns a boolean if a field has been set. -### SetProxyUrlNil +### SetMaxRetriesNil -`func (o *AnsibleGitRemoteResponse) SetProxyUrlNil(b bool)` +`func (o *AnsibleGitRemoteResponse) SetMaxRetriesNil(b bool)` - SetProxyUrlNil sets the value for ProxyUrl to be an explicit nil + SetMaxRetriesNil sets the value for MaxRetries to be an explicit nil -### UnsetProxyUrl -`func (o *AnsibleGitRemoteResponse) UnsetProxyUrl()` +### UnsetMaxRetries +`func (o *AnsibleGitRemoteResponse) UnsetMaxRetries()` -UnsetProxyUrl ensures that no value is present for ProxyUrl, not even an explicit nil -### GetTotalTimeout +UnsetMaxRetries ensures that no value is present for MaxRetries, not even an explicit nil +### GetSockReadTimeout -`func (o *AnsibleGitRemoteResponse) GetTotalTimeout() float64` +`func (o *AnsibleGitRemoteResponse) GetSockReadTimeout() float64` -GetTotalTimeout returns the TotalTimeout field if non-nil, zero value otherwise. +GetSockReadTimeout returns the SockReadTimeout field if non-nil, zero value otherwise. -### GetTotalTimeoutOk +### GetSockReadTimeoutOk -`func (o *AnsibleGitRemoteResponse) GetTotalTimeoutOk() (*float64, bool)` +`func (o *AnsibleGitRemoteResponse) GetSockReadTimeoutOk() (*float64, bool)` -GetTotalTimeoutOk returns a tuple with the TotalTimeout field if it's non-nil, zero value otherwise +GetSockReadTimeoutOk returns a tuple with the SockReadTimeout field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetTotalTimeout +### SetSockReadTimeout -`func (o *AnsibleGitRemoteResponse) SetTotalTimeout(v float64)` +`func (o *AnsibleGitRemoteResponse) SetSockReadTimeout(v float64)` -SetTotalTimeout sets TotalTimeout field to given value. +SetSockReadTimeout sets SockReadTimeout field to given value. -### HasTotalTimeout +### HasSockReadTimeout -`func (o *AnsibleGitRemoteResponse) HasTotalTimeout() bool` +`func (o *AnsibleGitRemoteResponse) HasSockReadTimeout() bool` -HasTotalTimeout returns a boolean if a field has been set. +HasSockReadTimeout returns a boolean if a field has been set. -### SetTotalTimeoutNil +### SetSockReadTimeoutNil -`func (o *AnsibleGitRemoteResponse) SetTotalTimeoutNil(b bool)` +`func (o *AnsibleGitRemoteResponse) SetSockReadTimeoutNil(b bool)` - SetTotalTimeoutNil sets the value for TotalTimeout to be an explicit nil + SetSockReadTimeoutNil sets the value for SockReadTimeout to be an explicit nil -### UnsetTotalTimeout -`func (o *AnsibleGitRemoteResponse) UnsetTotalTimeout()` +### UnsetSockReadTimeout +`func (o *AnsibleGitRemoteResponse) UnsetSockReadTimeout()` -UnsetTotalTimeout ensures that no value is present for TotalTimeout, not even an explicit nil +UnsetSockReadTimeout ensures that no value is present for SockReadTimeout, not even an explicit nil ### GetPulpLastUpdated `func (o *AnsibleGitRemoteResponse) GetPulpLastUpdated() time.Time` @@ -375,41 +265,66 @@ SetPulpLastUpdated sets PulpLastUpdated field to given value. HasPulpLastUpdated returns a boolean if a field has been set. -### GetMaxRetries +### GetTotalTimeout + +`func (o *AnsibleGitRemoteResponse) GetTotalTimeout() float64` + +GetTotalTimeout returns the TotalTimeout field if non-nil, zero value otherwise. + +### GetTotalTimeoutOk + +`func (o *AnsibleGitRemoteResponse) GetTotalTimeoutOk() (*float64, bool)` + +GetTotalTimeoutOk returns a tuple with the TotalTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalTimeout + +`func (o *AnsibleGitRemoteResponse) SetTotalTimeout(v float64)` + +SetTotalTimeout sets TotalTimeout field to given value. + +### HasTotalTimeout + +`func (o *AnsibleGitRemoteResponse) HasTotalTimeout() bool` + +HasTotalTimeout returns a boolean if a field has been set. + +### SetTotalTimeoutNil -`func (o *AnsibleGitRemoteResponse) GetMaxRetries() int64` +`func (o *AnsibleGitRemoteResponse) SetTotalTimeoutNil(b bool)` -GetMaxRetries returns the MaxRetries field if non-nil, zero value otherwise. + SetTotalTimeoutNil sets the value for TotalTimeout to be an explicit nil -### GetMaxRetriesOk +### UnsetTotalTimeout +`func (o *AnsibleGitRemoteResponse) UnsetTotalTimeout()` -`func (o *AnsibleGitRemoteResponse) GetMaxRetriesOk() (*int64, bool)` +UnsetTotalTimeout ensures that no value is present for TotalTimeout, not even an explicit nil +### GetPulpLabels -GetMaxRetriesOk returns a tuple with the MaxRetries field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *AnsibleGitRemoteResponse) GetPulpLabels() map[string]string` -### SetMaxRetries +GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. -`func (o *AnsibleGitRemoteResponse) SetMaxRetries(v int64)` +### GetPulpLabelsOk -SetMaxRetries sets MaxRetries field to given value. +`func (o *AnsibleGitRemoteResponse) GetPulpLabelsOk() (*map[string]string, bool)` -### HasMaxRetries +GetPulpLabelsOk returns a tuple with the PulpLabels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *AnsibleGitRemoteResponse) HasMaxRetries() bool` +### SetPulpLabels -HasMaxRetries returns a boolean if a field has been set. +`func (o *AnsibleGitRemoteResponse) SetPulpLabels(v map[string]string)` -### SetMaxRetriesNil +SetPulpLabels sets PulpLabels field to given value. -`func (o *AnsibleGitRemoteResponse) SetMaxRetriesNil(b bool)` +### HasPulpLabels - SetMaxRetriesNil sets the value for MaxRetries to be an explicit nil +`func (o *AnsibleGitRemoteResponse) HasPulpLabels() bool` -### UnsetMaxRetries -`func (o *AnsibleGitRemoteResponse) UnsetMaxRetries()` +HasPulpLabels returns a boolean if a field has been set. -UnsetMaxRetries ensures that no value is present for MaxRetries, not even an explicit nil ### GetPulpCreated `func (o *AnsibleGitRemoteResponse) GetPulpCreated() time.Time` @@ -435,101 +350,111 @@ SetPulpCreated sets PulpCreated field to given value. HasPulpCreated returns a boolean if a field has been set. -### GetDownloadConcurrency +### GetProxyUrl -`func (o *AnsibleGitRemoteResponse) GetDownloadConcurrency() int64` +`func (o *AnsibleGitRemoteResponse) GetProxyUrl() string` -GetDownloadConcurrency returns the DownloadConcurrency field if non-nil, zero value otherwise. +GetProxyUrl returns the ProxyUrl field if non-nil, zero value otherwise. -### GetDownloadConcurrencyOk +### GetProxyUrlOk -`func (o *AnsibleGitRemoteResponse) GetDownloadConcurrencyOk() (*int64, bool)` +`func (o *AnsibleGitRemoteResponse) GetProxyUrlOk() (*string, bool)` -GetDownloadConcurrencyOk returns a tuple with the DownloadConcurrency field if it's non-nil, zero value otherwise +GetProxyUrlOk returns a tuple with the ProxyUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDownloadConcurrency +### SetProxyUrl -`func (o *AnsibleGitRemoteResponse) SetDownloadConcurrency(v int64)` +`func (o *AnsibleGitRemoteResponse) SetProxyUrl(v string)` -SetDownloadConcurrency sets DownloadConcurrency field to given value. +SetProxyUrl sets ProxyUrl field to given value. -### HasDownloadConcurrency +### HasProxyUrl -`func (o *AnsibleGitRemoteResponse) HasDownloadConcurrency() bool` +`func (o *AnsibleGitRemoteResponse) HasProxyUrl() bool` -HasDownloadConcurrency returns a boolean if a field has been set. +HasProxyUrl returns a boolean if a field has been set. -### SetDownloadConcurrencyNil +### SetProxyUrlNil -`func (o *AnsibleGitRemoteResponse) SetDownloadConcurrencyNil(b bool)` +`func (o *AnsibleGitRemoteResponse) SetProxyUrlNil(b bool)` - SetDownloadConcurrencyNil sets the value for DownloadConcurrency to be an explicit nil + SetProxyUrlNil sets the value for ProxyUrl to be an explicit nil -### UnsetDownloadConcurrency -`func (o *AnsibleGitRemoteResponse) UnsetDownloadConcurrency()` +### UnsetProxyUrl +`func (o *AnsibleGitRemoteResponse) UnsetProxyUrl()` -UnsetDownloadConcurrency ensures that no value is present for DownloadConcurrency, not even an explicit nil -### GetRateLimit +UnsetProxyUrl ensures that no value is present for ProxyUrl, not even an explicit nil +### GetConnectTimeout -`func (o *AnsibleGitRemoteResponse) GetRateLimit() int64` +`func (o *AnsibleGitRemoteResponse) GetConnectTimeout() float64` -GetRateLimit returns the RateLimit field if non-nil, zero value otherwise. +GetConnectTimeout returns the ConnectTimeout field if non-nil, zero value otherwise. -### GetRateLimitOk +### GetConnectTimeoutOk -`func (o *AnsibleGitRemoteResponse) GetRateLimitOk() (*int64, bool)` +`func (o *AnsibleGitRemoteResponse) GetConnectTimeoutOk() (*float64, bool)` -GetRateLimitOk returns a tuple with the RateLimit field if it's non-nil, zero value otherwise +GetConnectTimeoutOk returns a tuple with the ConnectTimeout field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetRateLimit +### SetConnectTimeout -`func (o *AnsibleGitRemoteResponse) SetRateLimit(v int64)` +`func (o *AnsibleGitRemoteResponse) SetConnectTimeout(v float64)` -SetRateLimit sets RateLimit field to given value. +SetConnectTimeout sets ConnectTimeout field to given value. -### HasRateLimit +### HasConnectTimeout -`func (o *AnsibleGitRemoteResponse) HasRateLimit() bool` +`func (o *AnsibleGitRemoteResponse) HasConnectTimeout() bool` -HasRateLimit returns a boolean if a field has been set. +HasConnectTimeout returns a boolean if a field has been set. -### SetRateLimitNil +### SetConnectTimeoutNil -`func (o *AnsibleGitRemoteResponse) SetRateLimitNil(b bool)` +`func (o *AnsibleGitRemoteResponse) SetConnectTimeoutNil(b bool)` - SetRateLimitNil sets the value for RateLimit to be an explicit nil + SetConnectTimeoutNil sets the value for ConnectTimeout to be an explicit nil -### UnsetRateLimit -`func (o *AnsibleGitRemoteResponse) UnsetRateLimit()` +### UnsetConnectTimeout +`func (o *AnsibleGitRemoteResponse) UnsetConnectTimeout()` -UnsetRateLimit ensures that no value is present for RateLimit, not even an explicit nil -### GetPulpLabels +UnsetConnectTimeout ensures that no value is present for ConnectTimeout, not even an explicit nil +### GetCaCert -`func (o *AnsibleGitRemoteResponse) GetPulpLabels() map[string]string` +`func (o *AnsibleGitRemoteResponse) GetCaCert() string` -GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. +GetCaCert returns the CaCert field if non-nil, zero value otherwise. -### GetPulpLabelsOk +### GetCaCertOk -`func (o *AnsibleGitRemoteResponse) GetPulpLabelsOk() (*map[string]string, bool)` +`func (o *AnsibleGitRemoteResponse) GetCaCertOk() (*string, bool)` -GetPulpLabelsOk returns a tuple with the PulpLabels field if it's non-nil, zero value otherwise +GetCaCertOk returns a tuple with the CaCert field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPulpLabels +### SetCaCert -`func (o *AnsibleGitRemoteResponse) SetPulpLabels(v map[string]string)` +`func (o *AnsibleGitRemoteResponse) SetCaCert(v string)` -SetPulpLabels sets PulpLabels field to given value. +SetCaCert sets CaCert field to given value. -### HasPulpLabels +### HasCaCert -`func (o *AnsibleGitRemoteResponse) HasPulpLabels() bool` +`func (o *AnsibleGitRemoteResponse) HasCaCert() bool` -HasPulpLabels returns a boolean if a field has been set. +HasCaCert returns a boolean if a field has been set. + +### SetCaCertNil + +`func (o *AnsibleGitRemoteResponse) SetCaCertNil(b bool)` + + SetCaCertNil sets the value for CaCert to be an explicit nil + +### UnsetCaCert +`func (o *AnsibleGitRemoteResponse) UnsetCaCert()` +UnsetCaCert ensures that no value is present for CaCert, not even an explicit nil ### GetTlsValidation `func (o *AnsibleGitRemoteResponse) GetTlsValidation() bool` @@ -555,6 +480,41 @@ SetTlsValidation sets TlsValidation field to given value. HasTlsValidation returns a boolean if a field has been set. +### GetSockConnectTimeout + +`func (o *AnsibleGitRemoteResponse) GetSockConnectTimeout() float64` + +GetSockConnectTimeout returns the SockConnectTimeout field if non-nil, zero value otherwise. + +### GetSockConnectTimeoutOk + +`func (o *AnsibleGitRemoteResponse) GetSockConnectTimeoutOk() (*float64, bool)` + +GetSockConnectTimeoutOk returns a tuple with the SockConnectTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSockConnectTimeout + +`func (o *AnsibleGitRemoteResponse) SetSockConnectTimeout(v float64)` + +SetSockConnectTimeout sets SockConnectTimeout field to given value. + +### HasSockConnectTimeout + +`func (o *AnsibleGitRemoteResponse) HasSockConnectTimeout() bool` + +HasSockConnectTimeout returns a boolean if a field has been set. + +### SetSockConnectTimeoutNil + +`func (o *AnsibleGitRemoteResponse) SetSockConnectTimeoutNil(b bool)` + + SetSockConnectTimeoutNil sets the value for SockConnectTimeout to be an explicit nil + +### UnsetSockConnectTimeout +`func (o *AnsibleGitRemoteResponse) UnsetSockConnectTimeout()` + +UnsetSockConnectTimeout ensures that no value is present for SockConnectTimeout, not even an explicit nil ### GetUrl `func (o *AnsibleGitRemoteResponse) GetUrl() string` @@ -575,41 +535,81 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetCaCert +### GetHeaders -`func (o *AnsibleGitRemoteResponse) GetCaCert() string` +`func (o *AnsibleGitRemoteResponse) GetHeaders() []map[string]interface{}` -GetCaCert returns the CaCert field if non-nil, zero value otherwise. +GetHeaders returns the Headers field if non-nil, zero value otherwise. -### GetCaCertOk +### GetHeadersOk -`func (o *AnsibleGitRemoteResponse) GetCaCertOk() (*string, bool)` +`func (o *AnsibleGitRemoteResponse) GetHeadersOk() (*[]map[string]interface{}, bool)` -GetCaCertOk returns a tuple with the CaCert field if it's non-nil, zero value otherwise +GetHeadersOk returns a tuple with the Headers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetCaCert +### SetHeaders -`func (o *AnsibleGitRemoteResponse) SetCaCert(v string)` +`func (o *AnsibleGitRemoteResponse) SetHeaders(v []map[string]interface{})` -SetCaCert sets CaCert field to given value. +SetHeaders sets Headers field to given value. -### HasCaCert +### HasHeaders -`func (o *AnsibleGitRemoteResponse) HasCaCert() bool` +`func (o *AnsibleGitRemoteResponse) HasHeaders() bool` -HasCaCert returns a boolean if a field has been set. +HasHeaders returns a boolean if a field has been set. -### SetCaCertNil +### GetPulpHref -`func (o *AnsibleGitRemoteResponse) SetCaCertNil(b bool)` +`func (o *AnsibleGitRemoteResponse) GetPulpHref() string` - SetCaCertNil sets the value for CaCert to be an explicit nil +GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. -### UnsetCaCert -`func (o *AnsibleGitRemoteResponse) UnsetCaCert()` +### GetPulpHrefOk + +`func (o *AnsibleGitRemoteResponse) GetPulpHrefOk() (*string, bool)` + +GetPulpHrefOk returns a tuple with the PulpHref field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPulpHref + +`func (o *AnsibleGitRemoteResponse) SetPulpHref(v string)` + +SetPulpHref sets PulpHref field to given value. + +### HasPulpHref + +`func (o *AnsibleGitRemoteResponse) HasPulpHref() bool` + +HasPulpHref returns a boolean if a field has been set. + +### GetHiddenFields + +`func (o *AnsibleGitRemoteResponse) GetHiddenFields() []RemoteResponseHiddenFieldsInner` + +GetHiddenFields returns the HiddenFields field if non-nil, zero value otherwise. + +### GetHiddenFieldsOk + +`func (o *AnsibleGitRemoteResponse) GetHiddenFieldsOk() (*[]RemoteResponseHiddenFieldsInner, bool)` + +GetHiddenFieldsOk returns a tuple with the HiddenFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHiddenFields + +`func (o *AnsibleGitRemoteResponse) SetHiddenFields(v []RemoteResponseHiddenFieldsInner)` + +SetHiddenFields sets HiddenFields field to given value. + +### HasHiddenFields + +`func (o *AnsibleGitRemoteResponse) HasHiddenFields() bool` + +HasHiddenFields returns a boolean if a field has been set. -UnsetCaCert ensures that no value is present for CaCert, not even an explicit nil ### GetMetadataOnly `func (o *AnsibleGitRemoteResponse) GetMetadataOnly() bool` diff --git a/release/docs/AnsibleRepositoryMark.md b/release/docs/AnsibleRepositoryMark.md new file mode 100644 index 00000000..d9a85eb9 --- /dev/null +++ b/release/docs/AnsibleRepositoryMark.md @@ -0,0 +1,72 @@ +# AnsibleRepositoryMark + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContentUnits** | **[]interface{}** | List of collection version hrefs to mark, use * to mark all content in repository | +**Value** | **string** | The string value of this mark. | + +## Methods + +### NewAnsibleRepositoryMark + +`func NewAnsibleRepositoryMark(contentUnits []interface{}, value string, ) *AnsibleRepositoryMark` + +NewAnsibleRepositoryMark instantiates a new AnsibleRepositoryMark object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnsibleRepositoryMarkWithDefaults + +`func NewAnsibleRepositoryMarkWithDefaults() *AnsibleRepositoryMark` + +NewAnsibleRepositoryMarkWithDefaults instantiates a new AnsibleRepositoryMark object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContentUnits + +`func (o *AnsibleRepositoryMark) GetContentUnits() []interface{}` + +GetContentUnits returns the ContentUnits field if non-nil, zero value otherwise. + +### GetContentUnitsOk + +`func (o *AnsibleRepositoryMark) GetContentUnitsOk() (*[]interface{}, bool)` + +GetContentUnitsOk returns a tuple with the ContentUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentUnits + +`func (o *AnsibleRepositoryMark) SetContentUnits(v []interface{})` + +SetContentUnits sets ContentUnits field to given value. + + +### GetValue + +`func (o *AnsibleRepositoryMark) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *AnsibleRepositoryMark) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *AnsibleRepositoryMark) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/AnsibleRoleResponse.md b/release/docs/AnsibleRoleResponse.md index 3e6a9cbf..adebc3d9 100644 --- a/release/docs/AnsibleRoleResponse.md +++ b/release/docs/AnsibleRoleResponse.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Artifact** | **string** | Artifact file representing the physical content | -**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] **PulpHref** | Pointer to **string** | | [optional] [readonly] +**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] +**Artifact** | **string** | Artifact file representing the physical content | **Version** | **string** | | **Name** | **string** | | **Namespace** | **string** | | @@ -30,25 +30,30 @@ NewAnsibleRoleResponseWithDefaults instantiates a new AnsibleRoleResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetArtifact +### GetPulpHref -`func (o *AnsibleRoleResponse) GetArtifact() string` +`func (o *AnsibleRoleResponse) GetPulpHref() string` -GetArtifact returns the Artifact field if non-nil, zero value otherwise. +GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. -### GetArtifactOk +### GetPulpHrefOk -`func (o *AnsibleRoleResponse) GetArtifactOk() (*string, bool)` +`func (o *AnsibleRoleResponse) GetPulpHrefOk() (*string, bool)` -GetArtifactOk returns a tuple with the Artifact field if it's non-nil, zero value otherwise +GetPulpHrefOk returns a tuple with the PulpHref field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetArtifact +### SetPulpHref -`func (o *AnsibleRoleResponse) SetArtifact(v string)` +`func (o *AnsibleRoleResponse) SetPulpHref(v string)` -SetArtifact sets Artifact field to given value. +SetPulpHref sets PulpHref field to given value. + +### HasPulpHref + +`func (o *AnsibleRoleResponse) HasPulpHref() bool` +HasPulpHref returns a boolean if a field has been set. ### GetPulpCreated @@ -75,30 +80,25 @@ SetPulpCreated sets PulpCreated field to given value. HasPulpCreated returns a boolean if a field has been set. -### GetPulpHref +### GetArtifact -`func (o *AnsibleRoleResponse) GetPulpHref() string` +`func (o *AnsibleRoleResponse) GetArtifact() string` -GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. +GetArtifact returns the Artifact field if non-nil, zero value otherwise. -### GetPulpHrefOk +### GetArtifactOk -`func (o *AnsibleRoleResponse) GetPulpHrefOk() (*string, bool)` +`func (o *AnsibleRoleResponse) GetArtifactOk() (*string, bool)` -GetPulpHrefOk returns a tuple with the PulpHref field if it's non-nil, zero value otherwise +GetArtifactOk returns a tuple with the Artifact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPulpHref - -`func (o *AnsibleRoleResponse) SetPulpHref(v string)` - -SetPulpHref sets PulpHref field to given value. +### SetArtifact -### HasPulpHref +`func (o *AnsibleRoleResponse) SetArtifact(v string)` -`func (o *AnsibleRoleResponse) HasPulpHref() bool` +SetArtifact sets Artifact field to given value. -HasPulpHref returns a boolean if a field has been set. ### GetVersion diff --git a/release/docs/Artifact.md b/release/docs/Artifact.md new file mode 100644 index 00000000..d96a8dbb --- /dev/null +++ b/release/docs/Artifact.md @@ -0,0 +1,293 @@ +# Artifact + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**File** | ***os.File** | The stored file. | +**Size** | Pointer to **int64** | The size of the file in bytes. | [optional] +**Md5** | Pointer to **NullableString** | The MD5 checksum of the file if available. | [optional] +**Sha1** | Pointer to **NullableString** | The SHA-1 checksum of the file if available. | [optional] +**Sha224** | Pointer to **NullableString** | The SHA-224 checksum of the file if available. | [optional] +**Sha256** | Pointer to **NullableString** | The SHA-256 checksum of the file if available. | [optional] +**Sha384** | Pointer to **NullableString** | The SHA-384 checksum of the file if available. | [optional] +**Sha512** | Pointer to **NullableString** | The SHA-512 checksum of the file if available. | [optional] + +## Methods + +### NewArtifact + +`func NewArtifact(file *os.File, ) *Artifact` + +NewArtifact instantiates a new Artifact object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewArtifactWithDefaults + +`func NewArtifactWithDefaults() *Artifact` + +NewArtifactWithDefaults instantiates a new Artifact object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFile + +`func (o *Artifact) GetFile() *os.File` + +GetFile returns the File field if non-nil, zero value otherwise. + +### GetFileOk + +`func (o *Artifact) GetFileOk() (**os.File, bool)` + +GetFileOk returns a tuple with the File field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFile + +`func (o *Artifact) SetFile(v *os.File)` + +SetFile sets File field to given value. + + +### GetSize + +`func (o *Artifact) GetSize() int64` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *Artifact) GetSizeOk() (*int64, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *Artifact) SetSize(v int64)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *Artifact) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetMd5 + +`func (o *Artifact) GetMd5() string` + +GetMd5 returns the Md5 field if non-nil, zero value otherwise. + +### GetMd5Ok + +`func (o *Artifact) GetMd5Ok() (*string, bool)` + +GetMd5Ok returns a tuple with the Md5 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMd5 + +`func (o *Artifact) SetMd5(v string)` + +SetMd5 sets Md5 field to given value. + +### HasMd5 + +`func (o *Artifact) HasMd5() bool` + +HasMd5 returns a boolean if a field has been set. + +### SetMd5Nil + +`func (o *Artifact) SetMd5Nil(b bool)` + + SetMd5Nil sets the value for Md5 to be an explicit nil + +### UnsetMd5 +`func (o *Artifact) UnsetMd5()` + +UnsetMd5 ensures that no value is present for Md5, not even an explicit nil +### GetSha1 + +`func (o *Artifact) GetSha1() string` + +GetSha1 returns the Sha1 field if non-nil, zero value otherwise. + +### GetSha1Ok + +`func (o *Artifact) GetSha1Ok() (*string, bool)` + +GetSha1Ok returns a tuple with the Sha1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSha1 + +`func (o *Artifact) SetSha1(v string)` + +SetSha1 sets Sha1 field to given value. + +### HasSha1 + +`func (o *Artifact) HasSha1() bool` + +HasSha1 returns a boolean if a field has been set. + +### SetSha1Nil + +`func (o *Artifact) SetSha1Nil(b bool)` + + SetSha1Nil sets the value for Sha1 to be an explicit nil + +### UnsetSha1 +`func (o *Artifact) UnsetSha1()` + +UnsetSha1 ensures that no value is present for Sha1, not even an explicit nil +### GetSha224 + +`func (o *Artifact) GetSha224() string` + +GetSha224 returns the Sha224 field if non-nil, zero value otherwise. + +### GetSha224Ok + +`func (o *Artifact) GetSha224Ok() (*string, bool)` + +GetSha224Ok returns a tuple with the Sha224 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSha224 + +`func (o *Artifact) SetSha224(v string)` + +SetSha224 sets Sha224 field to given value. + +### HasSha224 + +`func (o *Artifact) HasSha224() bool` + +HasSha224 returns a boolean if a field has been set. + +### SetSha224Nil + +`func (o *Artifact) SetSha224Nil(b bool)` + + SetSha224Nil sets the value for Sha224 to be an explicit nil + +### UnsetSha224 +`func (o *Artifact) UnsetSha224()` + +UnsetSha224 ensures that no value is present for Sha224, not even an explicit nil +### GetSha256 + +`func (o *Artifact) GetSha256() string` + +GetSha256 returns the Sha256 field if non-nil, zero value otherwise. + +### GetSha256Ok + +`func (o *Artifact) GetSha256Ok() (*string, bool)` + +GetSha256Ok returns a tuple with the Sha256 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSha256 + +`func (o *Artifact) SetSha256(v string)` + +SetSha256 sets Sha256 field to given value. + +### HasSha256 + +`func (o *Artifact) HasSha256() bool` + +HasSha256 returns a boolean if a field has been set. + +### SetSha256Nil + +`func (o *Artifact) SetSha256Nil(b bool)` + + SetSha256Nil sets the value for Sha256 to be an explicit nil + +### UnsetSha256 +`func (o *Artifact) UnsetSha256()` + +UnsetSha256 ensures that no value is present for Sha256, not even an explicit nil +### GetSha384 + +`func (o *Artifact) GetSha384() string` + +GetSha384 returns the Sha384 field if non-nil, zero value otherwise. + +### GetSha384Ok + +`func (o *Artifact) GetSha384Ok() (*string, bool)` + +GetSha384Ok returns a tuple with the Sha384 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSha384 + +`func (o *Artifact) SetSha384(v string)` + +SetSha384 sets Sha384 field to given value. + +### HasSha384 + +`func (o *Artifact) HasSha384() bool` + +HasSha384 returns a boolean if a field has been set. + +### SetSha384Nil + +`func (o *Artifact) SetSha384Nil(b bool)` + + SetSha384Nil sets the value for Sha384 to be an explicit nil + +### UnsetSha384 +`func (o *Artifact) UnsetSha384()` + +UnsetSha384 ensures that no value is present for Sha384, not even an explicit nil +### GetSha512 + +`func (o *Artifact) GetSha512() string` + +GetSha512 returns the Sha512 field if non-nil, zero value otherwise. + +### GetSha512Ok + +`func (o *Artifact) GetSha512Ok() (*string, bool)` + +GetSha512Ok returns a tuple with the Sha512 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSha512 + +`func (o *Artifact) SetSha512(v string)` + +SetSha512 sets Sha512 field to given value. + +### HasSha512 + +`func (o *Artifact) HasSha512() bool` + +HasSha512 returns a boolean if a field has been set. + +### SetSha512Nil + +`func (o *Artifact) SetSha512Nil(b bool)` + + SetSha512Nil sets the value for Sha512 to be an explicit nil + +### UnsetSha512 +`func (o *Artifact) UnsetSha512()` + +UnsetSha512 ensures that no value is present for Sha512, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/ArtifactDistributionResponse.md b/release/docs/ArtifactDistributionResponse.md index 3632d9a7..400fdc48 100644 --- a/release/docs/ArtifactDistributionResponse.md +++ b/release/docs/ArtifactDistributionResponse.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] **PulpHref** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | -**BaseUrl** | Pointer to **string** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly] -**BasePath** | **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | **PulpLabels** | Pointer to **map[string]string** | | [optional] +**BaseUrl** | Pointer to **string** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly] **ContentGuard** | Pointer to **NullableString** | An optional content-guard. | [optional] +**BasePath** | **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | +**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] ## Methods @@ -31,31 +31,6 @@ NewArtifactDistributionResponseWithDefaults instantiates a new ArtifactDistribut This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetPulpCreated - -`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` - -GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. - -### GetPulpCreatedOk - -`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` - -GetPulpCreatedOk returns a tuple with the PulpCreated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPulpCreated - -`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` - -SetPulpCreated sets PulpCreated field to given value. - -### HasPulpCreated - -`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` - -HasPulpCreated returns a boolean if a field has been set. - ### GetPulpHref `func (o *ArtifactDistributionResponse) GetPulpHref() string` @@ -101,6 +76,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetPulpLabels + +`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` + +GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. + +### GetPulpLabelsOk + +`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` + +GetPulpLabelsOk returns a tuple with the PulpLabels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPulpLabels + +`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` + +SetPulpLabels sets PulpLabels field to given value. + +### HasPulpLabels + +`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` + +HasPulpLabels returns a boolean if a field has been set. + ### GetBaseUrl `func (o *ArtifactDistributionResponse) GetBaseUrl() string` @@ -126,86 +126,86 @@ SetBaseUrl sets BaseUrl field to given value. HasBaseUrl returns a boolean if a field has been set. -### GetBasePath +### GetContentGuard -`func (o *ArtifactDistributionResponse) GetBasePath() string` +`func (o *ArtifactDistributionResponse) GetContentGuard() string` -GetBasePath returns the BasePath field if non-nil, zero value otherwise. +GetContentGuard returns the ContentGuard field if non-nil, zero value otherwise. -### GetBasePathOk +### GetContentGuardOk -`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` +`func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool)` -GetBasePathOk returns a tuple with the BasePath field if it's non-nil, zero value otherwise +GetContentGuardOk returns a tuple with the ContentGuard field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetBasePath +### SetContentGuard -`func (o *ArtifactDistributionResponse) SetBasePath(v string)` +`func (o *ArtifactDistributionResponse) SetContentGuard(v string)` -SetBasePath sets BasePath field to given value. +SetContentGuard sets ContentGuard field to given value. +### HasContentGuard -### GetPulpLabels +`func (o *ArtifactDistributionResponse) HasContentGuard() bool` -`func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string` +HasContentGuard returns a boolean if a field has been set. -GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. +### SetContentGuardNil -### GetPulpLabelsOk +`func (o *ArtifactDistributionResponse) SetContentGuardNil(b bool)` -`func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool)` + SetContentGuardNil sets the value for ContentGuard to be an explicit nil -GetPulpLabelsOk returns a tuple with the PulpLabels field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +### UnsetContentGuard +`func (o *ArtifactDistributionResponse) UnsetContentGuard()` -### SetPulpLabels +UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil +### GetBasePath -`func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string)` +`func (o *ArtifactDistributionResponse) GetBasePath() string` -SetPulpLabels sets PulpLabels field to given value. +GetBasePath returns the BasePath field if non-nil, zero value otherwise. -### HasPulpLabels +### GetBasePathOk -`func (o *ArtifactDistributionResponse) HasPulpLabels() bool` +`func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool)` -HasPulpLabels returns a boolean if a field has been set. +GetBasePathOk returns a tuple with the BasePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -### GetContentGuard +### SetBasePath -`func (o *ArtifactDistributionResponse) GetContentGuard() string` +`func (o *ArtifactDistributionResponse) SetBasePath(v string)` -GetContentGuard returns the ContentGuard field if non-nil, zero value otherwise. +SetBasePath sets BasePath field to given value. -### GetContentGuardOk -`func (o *ArtifactDistributionResponse) GetContentGuardOk() (*string, bool)` +### GetPulpCreated -GetContentGuardOk returns a tuple with the ContentGuard field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time` -### SetContentGuard +GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. -`func (o *ArtifactDistributionResponse) SetContentGuard(v string)` +### GetPulpCreatedOk -SetContentGuard sets ContentGuard field to given value. +`func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` -### HasContentGuard +GetPulpCreatedOk returns a tuple with the PulpCreated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *ArtifactDistributionResponse) HasContentGuard() bool` +### SetPulpCreated -HasContentGuard returns a boolean if a field has been set. +`func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time)` -### SetContentGuardNil +SetPulpCreated sets PulpCreated field to given value. -`func (o *ArtifactDistributionResponse) SetContentGuardNil(b bool)` +### HasPulpCreated - SetContentGuardNil sets the value for ContentGuard to be an explicit nil +`func (o *ArtifactDistributionResponse) HasPulpCreated() bool` -### UnsetContentGuard -`func (o *ArtifactDistributionResponse) UnsetContentGuard()` +HasPulpCreated returns a boolean if a field has been set. -UnsetContentGuard ensures that no value is present for ContentGuard, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/release/docs/CollectionNamespaceResponse.md b/release/docs/CollectionNamespaceResponse.md index fe923cba..c9f4a412 100644 --- a/release/docs/CollectionNamespaceResponse.md +++ b/release/docs/CollectionNamespaceResponse.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**MetadataSha256** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -45,6 +46,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetMetadataSha256 + +`func (o *CollectionNamespaceResponse) GetMetadataSha256() string` + +GetMetadataSha256 returns the MetadataSha256 field if non-nil, zero value otherwise. + +### GetMetadataSha256Ok + +`func (o *CollectionNamespaceResponse) GetMetadataSha256Ok() (*string, bool)` + +GetMetadataSha256Ok returns a tuple with the MetadataSha256 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataSha256 + +`func (o *CollectionNamespaceResponse) SetMetadataSha256(v string)` + +SetMetadataSha256 sets MetadataSha256 field to given value. + +### HasMetadataSha256 + +`func (o *CollectionNamespaceResponse) HasMetadataSha256() bool` + +HasMetadataSha256 returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/release/docs/CollectionOneShot.md b/release/docs/CollectionOneShot.md new file mode 100644 index 00000000..58c3bb17 --- /dev/null +++ b/release/docs/CollectionOneShot.md @@ -0,0 +1,155 @@ +# CollectionOneShot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**File** | ***os.File** | The Collection tarball. | +**Sha256** | Pointer to **string** | An optional sha256 checksum of the uploaded file. | [optional] +**ExpectedNamespace** | Pointer to **string** | The expected 'namespace' of the Collection to be verified against the metadata during import. | [optional] +**ExpectedName** | Pointer to **string** | The expected 'name' of the Collection to be verified against the metadata during import. | [optional] +**ExpectedVersion** | Pointer to **string** | The expected version of the Collection to be verified against the metadata during import. | [optional] + +## Methods + +### NewCollectionOneShot + +`func NewCollectionOneShot(file *os.File, ) *CollectionOneShot` + +NewCollectionOneShot instantiates a new CollectionOneShot object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCollectionOneShotWithDefaults + +`func NewCollectionOneShotWithDefaults() *CollectionOneShot` + +NewCollectionOneShotWithDefaults instantiates a new CollectionOneShot object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFile + +`func (o *CollectionOneShot) GetFile() *os.File` + +GetFile returns the File field if non-nil, zero value otherwise. + +### GetFileOk + +`func (o *CollectionOneShot) GetFileOk() (**os.File, bool)` + +GetFileOk returns a tuple with the File field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFile + +`func (o *CollectionOneShot) SetFile(v *os.File)` + +SetFile sets File field to given value. + + +### GetSha256 + +`func (o *CollectionOneShot) GetSha256() string` + +GetSha256 returns the Sha256 field if non-nil, zero value otherwise. + +### GetSha256Ok + +`func (o *CollectionOneShot) GetSha256Ok() (*string, bool)` + +GetSha256Ok returns a tuple with the Sha256 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSha256 + +`func (o *CollectionOneShot) SetSha256(v string)` + +SetSha256 sets Sha256 field to given value. + +### HasSha256 + +`func (o *CollectionOneShot) HasSha256() bool` + +HasSha256 returns a boolean if a field has been set. + +### GetExpectedNamespace + +`func (o *CollectionOneShot) GetExpectedNamespace() string` + +GetExpectedNamespace returns the ExpectedNamespace field if non-nil, zero value otherwise. + +### GetExpectedNamespaceOk + +`func (o *CollectionOneShot) GetExpectedNamespaceOk() (*string, bool)` + +GetExpectedNamespaceOk returns a tuple with the ExpectedNamespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpectedNamespace + +`func (o *CollectionOneShot) SetExpectedNamespace(v string)` + +SetExpectedNamespace sets ExpectedNamespace field to given value. + +### HasExpectedNamespace + +`func (o *CollectionOneShot) HasExpectedNamespace() bool` + +HasExpectedNamespace returns a boolean if a field has been set. + +### GetExpectedName + +`func (o *CollectionOneShot) GetExpectedName() string` + +GetExpectedName returns the ExpectedName field if non-nil, zero value otherwise. + +### GetExpectedNameOk + +`func (o *CollectionOneShot) GetExpectedNameOk() (*string, bool)` + +GetExpectedNameOk returns a tuple with the ExpectedName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpectedName + +`func (o *CollectionOneShot) SetExpectedName(v string)` + +SetExpectedName sets ExpectedName field to given value. + +### HasExpectedName + +`func (o *CollectionOneShot) HasExpectedName() bool` + +HasExpectedName returns a boolean if a field has been set. + +### GetExpectedVersion + +`func (o *CollectionOneShot) GetExpectedVersion() string` + +GetExpectedVersion returns the ExpectedVersion field if non-nil, zero value otherwise. + +### GetExpectedVersionOk + +`func (o *CollectionOneShot) GetExpectedVersionOk() (*string, bool)` + +GetExpectedVersionOk returns a tuple with the ExpectedVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpectedVersion + +`func (o *CollectionOneShot) SetExpectedVersion(v string)` + +SetExpectedVersion sets ExpectedVersion field to given value. + +### HasExpectedVersion + +`func (o *CollectionOneShot) HasExpectedVersion() bool` + +HasExpectedVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/CollectionSummaryResponse.md b/release/docs/CollectionSummaryResponse.md new file mode 100644 index 00000000..330e1e8c --- /dev/null +++ b/release/docs/CollectionSummaryResponse.md @@ -0,0 +1,300 @@ +# CollectionSummaryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PulpHref** | Pointer to **string** | | [optional] [readonly] +**Namespace** | Pointer to **string** | The namespace of the collection. | [optional] [readonly] +**Name** | Pointer to **string** | The name of the collection. | [optional] [readonly] +**Version** | Pointer to **string** | The version of the collection. | [optional] [readonly] +**RequiresAnsible** | Pointer to **NullableString** | The version of Ansible required to use the collection. Multiple versions can be separated with a comma. | [optional] [readonly] +**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] +**Contents** | Pointer to **map[string]interface{}** | A JSON field with data about the contents. | [optional] [readonly] +**Dependencies** | Pointer to **map[string]interface{}** | A dict declaring Collections that this collection requires to be installed for it to be usable. | [optional] [readonly] +**Description** | Pointer to **string** | A short summary description of the collection. | [optional] [readonly] +**Tags** | Pointer to [**[]AnsibleTagResponse**](AnsibleTagResponse.md) | | [optional] [readonly] + +## Methods + +### NewCollectionSummaryResponse + +`func NewCollectionSummaryResponse() *CollectionSummaryResponse` + +NewCollectionSummaryResponse instantiates a new CollectionSummaryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCollectionSummaryResponseWithDefaults + +`func NewCollectionSummaryResponseWithDefaults() *CollectionSummaryResponse` + +NewCollectionSummaryResponseWithDefaults instantiates a new CollectionSummaryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPulpHref + +`func (o *CollectionSummaryResponse) GetPulpHref() string` + +GetPulpHref returns the PulpHref field if non-nil, zero value otherwise. + +### GetPulpHrefOk + +`func (o *CollectionSummaryResponse) GetPulpHrefOk() (*string, bool)` + +GetPulpHrefOk returns a tuple with the PulpHref field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPulpHref + +`func (o *CollectionSummaryResponse) SetPulpHref(v string)` + +SetPulpHref sets PulpHref field to given value. + +### HasPulpHref + +`func (o *CollectionSummaryResponse) HasPulpHref() bool` + +HasPulpHref returns a boolean if a field has been set. + +### GetNamespace + +`func (o *CollectionSummaryResponse) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *CollectionSummaryResponse) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *CollectionSummaryResponse) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *CollectionSummaryResponse) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + +### GetName + +`func (o *CollectionSummaryResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CollectionSummaryResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CollectionSummaryResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CollectionSummaryResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVersion + +`func (o *CollectionSummaryResponse) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *CollectionSummaryResponse) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *CollectionSummaryResponse) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *CollectionSummaryResponse) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetRequiresAnsible + +`func (o *CollectionSummaryResponse) GetRequiresAnsible() string` + +GetRequiresAnsible returns the RequiresAnsible field if non-nil, zero value otherwise. + +### GetRequiresAnsibleOk + +`func (o *CollectionSummaryResponse) GetRequiresAnsibleOk() (*string, bool)` + +GetRequiresAnsibleOk returns a tuple with the RequiresAnsible field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiresAnsible + +`func (o *CollectionSummaryResponse) SetRequiresAnsible(v string)` + +SetRequiresAnsible sets RequiresAnsible field to given value. + +### HasRequiresAnsible + +`func (o *CollectionSummaryResponse) HasRequiresAnsible() bool` + +HasRequiresAnsible returns a boolean if a field has been set. + +### SetRequiresAnsibleNil + +`func (o *CollectionSummaryResponse) SetRequiresAnsibleNil(b bool)` + + SetRequiresAnsibleNil sets the value for RequiresAnsible to be an explicit nil + +### UnsetRequiresAnsible +`func (o *CollectionSummaryResponse) UnsetRequiresAnsible()` + +UnsetRequiresAnsible ensures that no value is present for RequiresAnsible, not even an explicit nil +### GetPulpCreated + +`func (o *CollectionSummaryResponse) GetPulpCreated() time.Time` + +GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. + +### GetPulpCreatedOk + +`func (o *CollectionSummaryResponse) GetPulpCreatedOk() (*time.Time, bool)` + +GetPulpCreatedOk returns a tuple with the PulpCreated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPulpCreated + +`func (o *CollectionSummaryResponse) SetPulpCreated(v time.Time)` + +SetPulpCreated sets PulpCreated field to given value. + +### HasPulpCreated + +`func (o *CollectionSummaryResponse) HasPulpCreated() bool` + +HasPulpCreated returns a boolean if a field has been set. + +### GetContents + +`func (o *CollectionSummaryResponse) GetContents() map[string]interface{}` + +GetContents returns the Contents field if non-nil, zero value otherwise. + +### GetContentsOk + +`func (o *CollectionSummaryResponse) GetContentsOk() (*map[string]interface{}, bool)` + +GetContentsOk returns a tuple with the Contents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContents + +`func (o *CollectionSummaryResponse) SetContents(v map[string]interface{})` + +SetContents sets Contents field to given value. + +### HasContents + +`func (o *CollectionSummaryResponse) HasContents() bool` + +HasContents returns a boolean if a field has been set. + +### GetDependencies + +`func (o *CollectionSummaryResponse) GetDependencies() map[string]interface{}` + +GetDependencies returns the Dependencies field if non-nil, zero value otherwise. + +### GetDependenciesOk + +`func (o *CollectionSummaryResponse) GetDependenciesOk() (*map[string]interface{}, bool)` + +GetDependenciesOk returns a tuple with the Dependencies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependencies + +`func (o *CollectionSummaryResponse) SetDependencies(v map[string]interface{})` + +SetDependencies sets Dependencies field to given value. + +### HasDependencies + +`func (o *CollectionSummaryResponse) HasDependencies() bool` + +HasDependencies returns a boolean if a field has been set. + +### GetDescription + +`func (o *CollectionSummaryResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CollectionSummaryResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CollectionSummaryResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CollectionSummaryResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *CollectionSummaryResponse) GetTags() []AnsibleTagResponse` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CollectionSummaryResponse) GetTagsOk() (*[]AnsibleTagResponse, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CollectionSummaryResponse) SetTags(v []AnsibleTagResponse)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CollectionSummaryResponse) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/CollectionVersionCopyMove.md b/release/docs/CollectionVersionCopyMove.md new file mode 100644 index 00000000..7c1e99b4 --- /dev/null +++ b/release/docs/CollectionVersionCopyMove.md @@ -0,0 +1,98 @@ +# CollectionVersionCopyMove + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionVersions** | **[]string** | A list of collection versions to move or copy. | +**DestinationRepositories** | **[]string** | List of repository HREFs to put content in. | +**SigningService** | Pointer to **string** | HREF for a signing service. This will be used to sign the collection before moving putting it in any new repositories. | [optional] + +## Methods + +### NewCollectionVersionCopyMove + +`func NewCollectionVersionCopyMove(collectionVersions []string, destinationRepositories []string, ) *CollectionVersionCopyMove` + +NewCollectionVersionCopyMove instantiates a new CollectionVersionCopyMove object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCollectionVersionCopyMoveWithDefaults + +`func NewCollectionVersionCopyMoveWithDefaults() *CollectionVersionCopyMove` + +NewCollectionVersionCopyMoveWithDefaults instantiates a new CollectionVersionCopyMove object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCollectionVersions + +`func (o *CollectionVersionCopyMove) GetCollectionVersions() []string` + +GetCollectionVersions returns the CollectionVersions field if non-nil, zero value otherwise. + +### GetCollectionVersionsOk + +`func (o *CollectionVersionCopyMove) GetCollectionVersionsOk() (*[]string, bool)` + +GetCollectionVersionsOk returns a tuple with the CollectionVersions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionVersions + +`func (o *CollectionVersionCopyMove) SetCollectionVersions(v []string)` + +SetCollectionVersions sets CollectionVersions field to given value. + + +### GetDestinationRepositories + +`func (o *CollectionVersionCopyMove) GetDestinationRepositories() []string` + +GetDestinationRepositories returns the DestinationRepositories field if non-nil, zero value otherwise. + +### GetDestinationRepositoriesOk + +`func (o *CollectionVersionCopyMove) GetDestinationRepositoriesOk() (*[]string, bool)` + +GetDestinationRepositoriesOk returns a tuple with the DestinationRepositories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDestinationRepositories + +`func (o *CollectionVersionCopyMove) SetDestinationRepositories(v []string)` + +SetDestinationRepositories sets DestinationRepositories field to given value. + + +### GetSigningService + +`func (o *CollectionVersionCopyMove) GetSigningService() string` + +GetSigningService returns the SigningService field if non-nil, zero value otherwise. + +### GetSigningServiceOk + +`func (o *CollectionVersionCopyMove) GetSigningServiceOk() (*string, bool)` + +GetSigningServiceOk returns a tuple with the SigningService field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSigningService + +`func (o *CollectionVersionCopyMove) SetSigningService(v string)` + +SetSigningService sets SigningService field to given value. + +### HasSigningService + +`func (o *CollectionVersionCopyMove) HasSigningService() bool` + +HasSigningService returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/CollectionVersionListResponse.md b/release/docs/CollectionVersionListResponse.md index 9147949f..20e70fec 100644 --- a/release/docs/CollectionVersionListResponse.md +++ b/release/docs/CollectionVersionListResponse.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **CreatedAt** | **time.Time** | | **UpdatedAt** | **time.Time** | | **RequiresAnsible** | Pointer to **NullableString** | | [optional] +**Marks** | Pointer to **[]string** | | [optional] [readonly] ## Methods @@ -154,6 +155,31 @@ HasRequiresAnsible returns a boolean if a field has been set. `func (o *CollectionVersionListResponse) UnsetRequiresAnsible()` UnsetRequiresAnsible ensures that no value is present for RequiresAnsible, not even an explicit nil +### GetMarks + +`func (o *CollectionVersionListResponse) GetMarks() []string` + +GetMarks returns the Marks field if non-nil, zero value otherwise. + +### GetMarksOk + +`func (o *CollectionVersionListResponse) GetMarksOk() (*[]string, bool)` + +GetMarksOk returns a tuple with the Marks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarks + +`func (o *CollectionVersionListResponse) SetMarks(v []string)` + +SetMarks sets Marks field to given value. + +### HasMarks + +`func (o *CollectionVersionListResponse) HasMarks() bool` + +HasMarks returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/release/docs/CollectionVersionResponse.md b/release/docs/CollectionVersionResponse.md index 3ddc5230..7a6ee41e 100644 --- a/release/docs/CollectionVersionResponse.md +++ b/release/docs/CollectionVersionResponse.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **CreatedAt** | **time.Time** | | **UpdatedAt** | **time.Time** | | **RequiresAnsible** | Pointer to **NullableString** | | [optional] +**Marks** | Pointer to **[]string** | | [optional] [readonly] **Artifact** | Pointer to [**ArtifactRefResponse**](ArtifactRefResponse.md) | | [optional] [readonly] **Collection** | Pointer to [**CollectionRefResponse**](CollectionRefResponse.md) | | [optional] [readonly] **DownloadUrl** | Pointer to **string** | | [optional] [readonly] @@ -165,6 +166,31 @@ HasRequiresAnsible returns a boolean if a field has been set. `func (o *CollectionVersionResponse) UnsetRequiresAnsible()` UnsetRequiresAnsible ensures that no value is present for RequiresAnsible, not even an explicit nil +### GetMarks + +`func (o *CollectionVersionResponse) GetMarks() []string` + +GetMarks returns the Marks field if non-nil, zero value otherwise. + +### GetMarksOk + +`func (o *CollectionVersionResponse) GetMarksOk() (*[]string, bool)` + +GetMarksOk returns a tuple with the Marks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarks + +`func (o *CollectionVersionResponse) SetMarks(v []string)` + +SetMarks sets Marks field to given value. + +### HasMarks + +`func (o *CollectionVersionResponse) HasMarks() bool` + +HasMarks returns a boolean if a field has been set. + ### GetArtifact `func (o *CollectionVersionResponse) GetArtifact() ArtifactRefResponse` diff --git a/release/docs/CollectionVersionSearchList.md b/release/docs/CollectionVersionSearchList.md new file mode 100644 index 00000000..62165447 --- /dev/null +++ b/release/docs/CollectionVersionSearchList.md @@ -0,0 +1,166 @@ +# CollectionVersionSearchList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Repository** | [**Repository**](Repository.md) | | +**CollectionVersion** | **map[string]interface{}** | Collection Version serializer without docs blob. | +**NamespaceMetadata** | [**NullableAnsibleAnsibleNamespaceMetadata**](AnsibleAnsibleNamespaceMetadata.md) | | +**IsHighest** | **bool** | | +**IsDeprecated** | **bool** | | +**IsSigned** | **bool** | | + +## Methods + +### NewCollectionVersionSearchList + +`func NewCollectionVersionSearchList(repository Repository, collectionVersion map[string]interface{}, namespaceMetadata NullableAnsibleAnsibleNamespaceMetadata, isHighest bool, isDeprecated bool, isSigned bool, ) *CollectionVersionSearchList` + +NewCollectionVersionSearchList instantiates a new CollectionVersionSearchList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCollectionVersionSearchListWithDefaults + +`func NewCollectionVersionSearchListWithDefaults() *CollectionVersionSearchList` + +NewCollectionVersionSearchListWithDefaults instantiates a new CollectionVersionSearchList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRepository + +`func (o *CollectionVersionSearchList) GetRepository() Repository` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *CollectionVersionSearchList) GetRepositoryOk() (*Repository, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *CollectionVersionSearchList) SetRepository(v Repository)` + +SetRepository sets Repository field to given value. + + +### GetCollectionVersion + +`func (o *CollectionVersionSearchList) GetCollectionVersion() map[string]interface{}` + +GetCollectionVersion returns the CollectionVersion field if non-nil, zero value otherwise. + +### GetCollectionVersionOk + +`func (o *CollectionVersionSearchList) GetCollectionVersionOk() (*map[string]interface{}, bool)` + +GetCollectionVersionOk returns a tuple with the CollectionVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionVersion + +`func (o *CollectionVersionSearchList) SetCollectionVersion(v map[string]interface{})` + +SetCollectionVersion sets CollectionVersion field to given value. + + +### GetNamespaceMetadata + +`func (o *CollectionVersionSearchList) GetNamespaceMetadata() AnsibleAnsibleNamespaceMetadata` + +GetNamespaceMetadata returns the NamespaceMetadata field if non-nil, zero value otherwise. + +### GetNamespaceMetadataOk + +`func (o *CollectionVersionSearchList) GetNamespaceMetadataOk() (*AnsibleAnsibleNamespaceMetadata, bool)` + +GetNamespaceMetadataOk returns a tuple with the NamespaceMetadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespaceMetadata + +`func (o *CollectionVersionSearchList) SetNamespaceMetadata(v AnsibleAnsibleNamespaceMetadata)` + +SetNamespaceMetadata sets NamespaceMetadata field to given value. + + +### SetNamespaceMetadataNil + +`func (o *CollectionVersionSearchList) SetNamespaceMetadataNil(b bool)` + + SetNamespaceMetadataNil sets the value for NamespaceMetadata to be an explicit nil + +### UnsetNamespaceMetadata +`func (o *CollectionVersionSearchList) UnsetNamespaceMetadata()` + +UnsetNamespaceMetadata ensures that no value is present for NamespaceMetadata, not even an explicit nil +### GetIsHighest + +`func (o *CollectionVersionSearchList) GetIsHighest() bool` + +GetIsHighest returns the IsHighest field if non-nil, zero value otherwise. + +### GetIsHighestOk + +`func (o *CollectionVersionSearchList) GetIsHighestOk() (*bool, bool)` + +GetIsHighestOk returns a tuple with the IsHighest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHighest + +`func (o *CollectionVersionSearchList) SetIsHighest(v bool)` + +SetIsHighest sets IsHighest field to given value. + + +### GetIsDeprecated + +`func (o *CollectionVersionSearchList) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *CollectionVersionSearchList) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *CollectionVersionSearchList) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsSigned + +`func (o *CollectionVersionSearchList) GetIsSigned() bool` + +GetIsSigned returns the IsSigned field if non-nil, zero value otherwise. + +### GetIsSignedOk + +`func (o *CollectionVersionSearchList) GetIsSignedOk() (*bool, bool)` + +GetIsSignedOk returns a tuple with the IsSigned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSigned + +`func (o *CollectionVersionSearchList) SetIsSigned(v bool)` + +SetIsSigned sets IsSigned field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/CollectionVersionSearchListResponse.md b/release/docs/CollectionVersionSearchListResponse.md new file mode 100644 index 00000000..22cd3266 --- /dev/null +++ b/release/docs/CollectionVersionSearchListResponse.md @@ -0,0 +1,192 @@ +# CollectionVersionSearchListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Repository** | [**RepositoryResponse**](RepositoryResponse.md) | | +**CollectionVersion** | [**CollectionSummaryResponse**](CollectionSummaryResponse.md) | | +**RepositoryVersion** | Pointer to **string** | | [optional] [readonly] +**NamespaceMetadata** | [**NullableAnsibleAnsibleNamespaceMetadataResponse**](AnsibleAnsibleNamespaceMetadataResponse.md) | | +**IsHighest** | **bool** | | +**IsDeprecated** | **bool** | | +**IsSigned** | **bool** | | + +## Methods + +### NewCollectionVersionSearchListResponse + +`func NewCollectionVersionSearchListResponse(repository RepositoryResponse, collectionVersion CollectionSummaryResponse, namespaceMetadata NullableAnsibleAnsibleNamespaceMetadataResponse, isHighest bool, isDeprecated bool, isSigned bool, ) *CollectionVersionSearchListResponse` + +NewCollectionVersionSearchListResponse instantiates a new CollectionVersionSearchListResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCollectionVersionSearchListResponseWithDefaults + +`func NewCollectionVersionSearchListResponseWithDefaults() *CollectionVersionSearchListResponse` + +NewCollectionVersionSearchListResponseWithDefaults instantiates a new CollectionVersionSearchListResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRepository + +`func (o *CollectionVersionSearchListResponse) GetRepository() RepositoryResponse` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *CollectionVersionSearchListResponse) GetRepositoryOk() (*RepositoryResponse, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *CollectionVersionSearchListResponse) SetRepository(v RepositoryResponse)` + +SetRepository sets Repository field to given value. + + +### GetCollectionVersion + +`func (o *CollectionVersionSearchListResponse) GetCollectionVersion() CollectionSummaryResponse` + +GetCollectionVersion returns the CollectionVersion field if non-nil, zero value otherwise. + +### GetCollectionVersionOk + +`func (o *CollectionVersionSearchListResponse) GetCollectionVersionOk() (*CollectionSummaryResponse, bool)` + +GetCollectionVersionOk returns a tuple with the CollectionVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionVersion + +`func (o *CollectionVersionSearchListResponse) SetCollectionVersion(v CollectionSummaryResponse)` + +SetCollectionVersion sets CollectionVersion field to given value. + + +### GetRepositoryVersion + +`func (o *CollectionVersionSearchListResponse) GetRepositoryVersion() string` + +GetRepositoryVersion returns the RepositoryVersion field if non-nil, zero value otherwise. + +### GetRepositoryVersionOk + +`func (o *CollectionVersionSearchListResponse) GetRepositoryVersionOk() (*string, bool)` + +GetRepositoryVersionOk returns a tuple with the RepositoryVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepositoryVersion + +`func (o *CollectionVersionSearchListResponse) SetRepositoryVersion(v string)` + +SetRepositoryVersion sets RepositoryVersion field to given value. + +### HasRepositoryVersion + +`func (o *CollectionVersionSearchListResponse) HasRepositoryVersion() bool` + +HasRepositoryVersion returns a boolean if a field has been set. + +### GetNamespaceMetadata + +`func (o *CollectionVersionSearchListResponse) GetNamespaceMetadata() AnsibleAnsibleNamespaceMetadataResponse` + +GetNamespaceMetadata returns the NamespaceMetadata field if non-nil, zero value otherwise. + +### GetNamespaceMetadataOk + +`func (o *CollectionVersionSearchListResponse) GetNamespaceMetadataOk() (*AnsibleAnsibleNamespaceMetadataResponse, bool)` + +GetNamespaceMetadataOk returns a tuple with the NamespaceMetadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespaceMetadata + +`func (o *CollectionVersionSearchListResponse) SetNamespaceMetadata(v AnsibleAnsibleNamespaceMetadataResponse)` + +SetNamespaceMetadata sets NamespaceMetadata field to given value. + + +### SetNamespaceMetadataNil + +`func (o *CollectionVersionSearchListResponse) SetNamespaceMetadataNil(b bool)` + + SetNamespaceMetadataNil sets the value for NamespaceMetadata to be an explicit nil + +### UnsetNamespaceMetadata +`func (o *CollectionVersionSearchListResponse) UnsetNamespaceMetadata()` + +UnsetNamespaceMetadata ensures that no value is present for NamespaceMetadata, not even an explicit nil +### GetIsHighest + +`func (o *CollectionVersionSearchListResponse) GetIsHighest() bool` + +GetIsHighest returns the IsHighest field if non-nil, zero value otherwise. + +### GetIsHighestOk + +`func (o *CollectionVersionSearchListResponse) GetIsHighestOk() (*bool, bool)` + +GetIsHighestOk returns a tuple with the IsHighest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHighest + +`func (o *CollectionVersionSearchListResponse) SetIsHighest(v bool)` + +SetIsHighest sets IsHighest field to given value. + + +### GetIsDeprecated + +`func (o *CollectionVersionSearchListResponse) GetIsDeprecated() bool` + +GetIsDeprecated returns the IsDeprecated field if non-nil, zero value otherwise. + +### GetIsDeprecatedOk + +`func (o *CollectionVersionSearchListResponse) GetIsDeprecatedOk() (*bool, bool)` + +GetIsDeprecatedOk returns a tuple with the IsDeprecated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeprecated + +`func (o *CollectionVersionSearchListResponse) SetIsDeprecated(v bool)` + +SetIsDeprecated sets IsDeprecated field to given value. + + +### GetIsSigned + +`func (o *CollectionVersionSearchListResponse) GetIsSigned() bool` + +GetIsSigned returns the IsSigned field if non-nil, zero value otherwise. + +### GetIsSignedOk + +`func (o *CollectionVersionSearchListResponse) GetIsSignedOk() (*bool, bool)` + +GetIsSignedOk returns a tuple with the IsSigned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSigned + +`func (o *CollectionVersionSearchListResponse) SetIsSigned(v bool)` + +SetIsSigned sets IsSigned field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/CompsXml.md b/release/docs/CompsXml.md new file mode 100644 index 00000000..d443f801 --- /dev/null +++ b/release/docs/CompsXml.md @@ -0,0 +1,103 @@ +# CompsXml + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**File** | ***os.File** | Full path of a comps.xml file that may be parsed into comps.xml Content units. | +**Repository** | Pointer to **string** | URI of an RPM repository the comps.xml content units should be associated to. | [optional] +**Replace** | Pointer to **bool** | If true, incoming comps.xml replaces existing comps-related ContentUnits in the specified repository. | [optional] + +## Methods + +### NewCompsXml + +`func NewCompsXml(file *os.File, ) *CompsXml` + +NewCompsXml instantiates a new CompsXml object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCompsXmlWithDefaults + +`func NewCompsXmlWithDefaults() *CompsXml` + +NewCompsXmlWithDefaults instantiates a new CompsXml object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFile + +`func (o *CompsXml) GetFile() *os.File` + +GetFile returns the File field if non-nil, zero value otherwise. + +### GetFileOk + +`func (o *CompsXml) GetFileOk() (**os.File, bool)` + +GetFileOk returns a tuple with the File field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFile + +`func (o *CompsXml) SetFile(v *os.File)` + +SetFile sets File field to given value. + + +### GetRepository + +`func (o *CompsXml) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *CompsXml) GetRepositoryOk() (*string, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *CompsXml) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *CompsXml) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetReplace + +`func (o *CompsXml) GetReplace() bool` + +GetReplace returns the Replace field if non-nil, zero value otherwise. + +### GetReplaceOk + +`func (o *CompsXml) GetReplaceOk() (*bool, bool)` + +GetReplaceOk returns a tuple with the Replace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplace + +`func (o *CompsXml) SetReplace(v bool)` + +SetReplace sets Replace field to given value. + +### HasReplace + +`func (o *CompsXml) HasReplace() bool` + +HasReplace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/ContainerContainerDistribution.md b/release/docs/ContainerContainerDistribution.md index 4fbe27e6..a58c7dc3 100644 --- a/release/docs/ContainerContainerDistribution.md +++ b/release/docs/ContainerContainerDistribution.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Repository** | Pointer to **NullableString** | The latest RepositoryVersion for this Repository will be served. | [optional] **Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | -**BasePath** | **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | **PulpLabels** | Pointer to **map[string]string** | | [optional] **ContentGuard** | Pointer to **string** | An optional content-guard. If none is specified, a default one will be used. | [optional] -**Repository** | Pointer to **NullableString** | The latest RepositoryVersion for this Repository will be served. | [optional] +**BasePath** | **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | **RepositoryVersion** | Pointer to **NullableString** | RepositoryVersion to be served | [optional] **Private** | Pointer to **bool** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional] **Description** | Pointer to **NullableString** | An optional description. | [optional] @@ -32,44 +32,59 @@ NewContainerContainerDistributionWithDefaults instantiates a new ContainerContai This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetName +### GetRepository -`func (o *ContainerContainerDistribution) GetName() string` +`func (o *ContainerContainerDistribution) GetRepository() string` -GetName returns the Name field if non-nil, zero value otherwise. +GetRepository returns the Repository field if non-nil, zero value otherwise. -### GetNameOk +### GetRepositoryOk -`func (o *ContainerContainerDistribution) GetNameOk() (*string, bool)` +`func (o *ContainerContainerDistribution) GetRepositoryOk() (*string, bool)` -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetName +### SetRepository -`func (o *ContainerContainerDistribution) SetName(v string)` +`func (o *ContainerContainerDistribution) SetRepository(v string)` -SetName sets Name field to given value. +SetRepository sets Repository field to given value. +### HasRepository -### GetBasePath +`func (o *ContainerContainerDistribution) HasRepository() bool` -`func (o *ContainerContainerDistribution) GetBasePath() string` +HasRepository returns a boolean if a field has been set. -GetBasePath returns the BasePath field if non-nil, zero value otherwise. +### SetRepositoryNil -### GetBasePathOk +`func (o *ContainerContainerDistribution) SetRepositoryNil(b bool)` -`func (o *ContainerContainerDistribution) GetBasePathOk() (*string, bool)` + SetRepositoryNil sets the value for Repository to be an explicit nil -GetBasePathOk returns a tuple with the BasePath field if it's non-nil, zero value otherwise +### UnsetRepository +`func (o *ContainerContainerDistribution) UnsetRepository()` + +UnsetRepository ensures that no value is present for Repository, not even an explicit nil +### GetName + +`func (o *ContainerContainerDistribution) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ContainerContainerDistribution) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetBasePath +### SetName -`func (o *ContainerContainerDistribution) SetBasePath(v string)` +`func (o *ContainerContainerDistribution) SetName(v string)` -SetBasePath sets BasePath field to given value. +SetName sets Name field to given value. ### GetPulpLabels @@ -122,41 +137,26 @@ SetContentGuard sets ContentGuard field to given value. HasContentGuard returns a boolean if a field has been set. -### GetRepository +### GetBasePath -`func (o *ContainerContainerDistribution) GetRepository() string` +`func (o *ContainerContainerDistribution) GetBasePath() string` -GetRepository returns the Repository field if non-nil, zero value otherwise. +GetBasePath returns the BasePath field if non-nil, zero value otherwise. -### GetRepositoryOk +### GetBasePathOk -`func (o *ContainerContainerDistribution) GetRepositoryOk() (*string, bool)` +`func (o *ContainerContainerDistribution) GetBasePathOk() (*string, bool)` -GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +GetBasePathOk returns a tuple with the BasePath field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetRepository - -`func (o *ContainerContainerDistribution) SetRepository(v string)` - -SetRepository sets Repository field to given value. - -### HasRepository - -`func (o *ContainerContainerDistribution) HasRepository() bool` - -HasRepository returns a boolean if a field has been set. - -### SetRepositoryNil +### SetBasePath -`func (o *ContainerContainerDistribution) SetRepositoryNil(b bool)` +`func (o *ContainerContainerDistribution) SetBasePath(v string)` - SetRepositoryNil sets the value for Repository to be an explicit nil +SetBasePath sets BasePath field to given value. -### UnsetRepository -`func (o *ContainerContainerDistribution) UnsetRepository()` -UnsetRepository ensures that no value is present for Repository, not even an explicit nil ### GetRepositoryVersion `func (o *ContainerContainerDistribution) GetRepositoryVersion() string` diff --git a/release/docs/ContainerContainerDistributionResponse.md b/release/docs/ContainerContainerDistributionResponse.md index 6a340b86..ae4b5ca2 100644 --- a/release/docs/ContainerContainerDistributionResponse.md +++ b/release/docs/ContainerContainerDistributionResponse.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] +**Repository** | Pointer to **NullableString** | The latest RepositoryVersion for this Repository will be served. | [optional] **PulpHref** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | A unique name. Ex, `rawhide` and `stable`. | -**BasePath** | **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | **PulpLabels** | Pointer to **map[string]string** | | [optional] **ContentGuard** | Pointer to **string** | An optional content-guard. If none is specified, a default one will be used. | [optional] -**Repository** | Pointer to **NullableString** | The latest RepositoryVersion for this Repository will be served. | [optional] +**BasePath** | **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | +**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] **RepositoryVersion** | Pointer to **NullableString** | RepositoryVersion to be served | [optional] **RegistryPath** | Pointer to **string** | The Registry hostname/name/ to use with docker pull command defined by this distribution. | [optional] [readonly] **Namespace** | Pointer to **string** | Namespace this distribution belongs to. | [optional] [readonly] @@ -36,31 +36,41 @@ NewContainerContainerDistributionResponseWithDefaults instantiates a new Contain This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetPulpCreated +### GetRepository -`func (o *ContainerContainerDistributionResponse) GetPulpCreated() time.Time` +`func (o *ContainerContainerDistributionResponse) GetRepository() string` -GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. +GetRepository returns the Repository field if non-nil, zero value otherwise. -### GetPulpCreatedOk +### GetRepositoryOk -`func (o *ContainerContainerDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` +`func (o *ContainerContainerDistributionResponse) GetRepositoryOk() (*string, bool)` -GetPulpCreatedOk returns a tuple with the PulpCreated field if it's non-nil, zero value otherwise +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPulpCreated +### SetRepository -`func (o *ContainerContainerDistributionResponse) SetPulpCreated(v time.Time)` +`func (o *ContainerContainerDistributionResponse) SetRepository(v string)` -SetPulpCreated sets PulpCreated field to given value. +SetRepository sets Repository field to given value. -### HasPulpCreated +### HasRepository -`func (o *ContainerContainerDistributionResponse) HasPulpCreated() bool` +`func (o *ContainerContainerDistributionResponse) HasRepository() bool` -HasPulpCreated returns a boolean if a field has been set. +HasRepository returns a boolean if a field has been set. + +### SetRepositoryNil + +`func (o *ContainerContainerDistributionResponse) SetRepositoryNil(b bool)` + SetRepositoryNil sets the value for Repository to be an explicit nil + +### UnsetRepository +`func (o *ContainerContainerDistributionResponse) UnsetRepository()` + +UnsetRepository ensures that no value is present for Repository, not even an explicit nil ### GetPulpHref `func (o *ContainerContainerDistributionResponse) GetPulpHref() string` @@ -106,26 +116,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetBasePath - -`func (o *ContainerContainerDistributionResponse) GetBasePath() string` - -GetBasePath returns the BasePath field if non-nil, zero value otherwise. - -### GetBasePathOk - -`func (o *ContainerContainerDistributionResponse) GetBasePathOk() (*string, bool)` - -GetBasePathOk returns a tuple with the BasePath field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBasePath - -`func (o *ContainerContainerDistributionResponse) SetBasePath(v string)` - -SetBasePath sets BasePath field to given value. - - ### GetPulpLabels `func (o *ContainerContainerDistributionResponse) GetPulpLabels() map[string]string` @@ -176,41 +166,51 @@ SetContentGuard sets ContentGuard field to given value. HasContentGuard returns a boolean if a field has been set. -### GetRepository +### GetBasePath -`func (o *ContainerContainerDistributionResponse) GetRepository() string` +`func (o *ContainerContainerDistributionResponse) GetBasePath() string` -GetRepository returns the Repository field if non-nil, zero value otherwise. +GetBasePath returns the BasePath field if non-nil, zero value otherwise. -### GetRepositoryOk +### GetBasePathOk -`func (o *ContainerContainerDistributionResponse) GetRepositoryOk() (*string, bool)` +`func (o *ContainerContainerDistributionResponse) GetBasePathOk() (*string, bool)` -GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +GetBasePathOk returns a tuple with the BasePath field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetRepository +### SetBasePath -`func (o *ContainerContainerDistributionResponse) SetRepository(v string)` +`func (o *ContainerContainerDistributionResponse) SetBasePath(v string)` -SetRepository sets Repository field to given value. +SetBasePath sets BasePath field to given value. -### HasRepository -`func (o *ContainerContainerDistributionResponse) HasRepository() bool` +### GetPulpCreated -HasRepository returns a boolean if a field has been set. +`func (o *ContainerContainerDistributionResponse) GetPulpCreated() time.Time` -### SetRepositoryNil +GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. -`func (o *ContainerContainerDistributionResponse) SetRepositoryNil(b bool)` +### GetPulpCreatedOk - SetRepositoryNil sets the value for Repository to be an explicit nil +`func (o *ContainerContainerDistributionResponse) GetPulpCreatedOk() (*time.Time, bool)` -### UnsetRepository -`func (o *ContainerContainerDistributionResponse) UnsetRepository()` +GetPulpCreatedOk returns a tuple with the PulpCreated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPulpCreated + +`func (o *ContainerContainerDistributionResponse) SetPulpCreated(v time.Time)` + +SetPulpCreated sets PulpCreated field to given value. + +### HasPulpCreated + +`func (o *ContainerContainerDistributionResponse) HasPulpCreated() bool` + +HasPulpCreated returns a boolean if a field has been set. -UnsetRepository ensures that no value is present for Repository, not even an explicit nil ### GetRepositoryVersion `func (o *ContainerContainerDistributionResponse) GetRepositoryVersion() string` diff --git a/release/docs/ContainerContainerPushRepository.md b/release/docs/ContainerContainerPushRepository.md index df6e930b..142421f2 100644 --- a/release/docs/ContainerContainerPushRepository.md +++ b/release/docs/ContainerContainerPushRepository.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Description** | Pointer to **NullableString** | An optional description. | [optional] -**RetainRepoVersions** | Pointer to **NullableInt64** | Retain X versions of the repository. Default is null which retains all versions. | [optional] **Name** | **string** | A unique name for this repository. | **PulpLabels** | Pointer to **map[string]string** | | [optional] **ManifestSigningService** | Pointer to **NullableString** | A reference to an associated signing service. | [optional] +**Description** | Pointer to **NullableString** | An optional description. | [optional] +**RetainRepoVersions** | Pointer to **NullableInt64** | Retain X versions of the repository. Default is null which retains all versions. | [optional] ## Methods @@ -29,76 +29,6 @@ NewContainerContainerPushRepositoryWithDefaults instantiates a new ContainerCont This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetDescription - -`func (o *ContainerContainerPushRepository) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *ContainerContainerPushRepository) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *ContainerContainerPushRepository) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *ContainerContainerPushRepository) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *ContainerContainerPushRepository) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *ContainerContainerPushRepository) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetRetainRepoVersions - -`func (o *ContainerContainerPushRepository) GetRetainRepoVersions() int64` - -GetRetainRepoVersions returns the RetainRepoVersions field if non-nil, zero value otherwise. - -### GetRetainRepoVersionsOk - -`func (o *ContainerContainerPushRepository) GetRetainRepoVersionsOk() (*int64, bool)` - -GetRetainRepoVersionsOk returns a tuple with the RetainRepoVersions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRetainRepoVersions - -`func (o *ContainerContainerPushRepository) SetRetainRepoVersions(v int64)` - -SetRetainRepoVersions sets RetainRepoVersions field to given value. - -### HasRetainRepoVersions - -`func (o *ContainerContainerPushRepository) HasRetainRepoVersions() bool` - -HasRetainRepoVersions returns a boolean if a field has been set. - -### SetRetainRepoVersionsNil - -`func (o *ContainerContainerPushRepository) SetRetainRepoVersionsNil(b bool)` - - SetRetainRepoVersionsNil sets the value for RetainRepoVersions to be an explicit nil - -### UnsetRetainRepoVersions -`func (o *ContainerContainerPushRepository) UnsetRetainRepoVersions()` - -UnsetRetainRepoVersions ensures that no value is present for RetainRepoVersions, not even an explicit nil ### GetName `func (o *ContainerContainerPushRepository) GetName() string` @@ -179,6 +109,76 @@ HasManifestSigningService returns a boolean if a field has been set. `func (o *ContainerContainerPushRepository) UnsetManifestSigningService()` UnsetManifestSigningService ensures that no value is present for ManifestSigningService, not even an explicit nil +### GetDescription + +`func (o *ContainerContainerPushRepository) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ContainerContainerPushRepository) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ContainerContainerPushRepository) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ContainerContainerPushRepository) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *ContainerContainerPushRepository) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *ContainerContainerPushRepository) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetRetainRepoVersions + +`func (o *ContainerContainerPushRepository) GetRetainRepoVersions() int64` + +GetRetainRepoVersions returns the RetainRepoVersions field if non-nil, zero value otherwise. + +### GetRetainRepoVersionsOk + +`func (o *ContainerContainerPushRepository) GetRetainRepoVersionsOk() (*int64, bool)` + +GetRetainRepoVersionsOk returns a tuple with the RetainRepoVersions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetainRepoVersions + +`func (o *ContainerContainerPushRepository) SetRetainRepoVersions(v int64)` + +SetRetainRepoVersions sets RetainRepoVersions field to given value. + +### HasRetainRepoVersions + +`func (o *ContainerContainerPushRepository) HasRetainRepoVersions() bool` + +HasRetainRepoVersions returns a boolean if a field has been set. + +### SetRetainRepoVersionsNil + +`func (o *ContainerContainerPushRepository) SetRetainRepoVersionsNil(b bool)` + + SetRetainRepoVersionsNil sets the value for RetainRepoVersions to be an explicit nil + +### UnsetRetainRepoVersions +`func (o *ContainerContainerPushRepository) UnsetRetainRepoVersions()` + +UnsetRetainRepoVersions ensures that no value is present for RetainRepoVersions, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/release/docs/ContainerContainerPushRepositoryResponse.md b/release/docs/ContainerContainerPushRepositoryResponse.md index 2a1d17d0..5cb62a1a 100644 --- a/release/docs/ContainerContainerPushRepositoryResponse.md +++ b/release/docs/ContainerContainerPushRepositoryResponse.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Description** | Pointer to **NullableString** | An optional description. | [optional] -**LatestVersionHref** | Pointer to **string** | | [optional] [readonly] -**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] **PulpHref** | Pointer to **string** | | [optional] [readonly] -**RetainRepoVersions** | Pointer to **NullableInt64** | Retain X versions of the repository. Default is null which retains all versions. | [optional] **VersionsHref** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | A unique name for this repository. | **PulpLabels** | Pointer to **map[string]string** | | [optional] +**LatestVersionHref** | Pointer to **string** | | [optional] [readonly] **ManifestSigningService** | Pointer to **NullableString** | A reference to an associated signing service. | [optional] +**Description** | Pointer to **NullableString** | An optional description. | [optional] +**PulpCreated** | Pointer to **time.Time** | Timestamp of creation. | [optional] [readonly] +**RetainRepoVersions** | Pointer to **NullableInt64** | Retain X versions of the repository. Default is null which retains all versions. | [optional] ## Methods @@ -33,91 +33,6 @@ NewContainerContainerPushRepositoryResponseWithDefaults instantiates a new Conta This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetDescription - -`func (o *ContainerContainerPushRepositoryResponse) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *ContainerContainerPushRepositoryResponse) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *ContainerContainerPushRepositoryResponse) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *ContainerContainerPushRepositoryResponse) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *ContainerContainerPushRepositoryResponse) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *ContainerContainerPushRepositoryResponse) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetLatestVersionHref - -`func (o *ContainerContainerPushRepositoryResponse) GetLatestVersionHref() string` - -GetLatestVersionHref returns the LatestVersionHref field if non-nil, zero value otherwise. - -### GetLatestVersionHrefOk - -`func (o *ContainerContainerPushRepositoryResponse) GetLatestVersionHrefOk() (*string, bool)` - -GetLatestVersionHrefOk returns a tuple with the LatestVersionHref field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLatestVersionHref - -`func (o *ContainerContainerPushRepositoryResponse) SetLatestVersionHref(v string)` - -SetLatestVersionHref sets LatestVersionHref field to given value. - -### HasLatestVersionHref - -`func (o *ContainerContainerPushRepositoryResponse) HasLatestVersionHref() bool` - -HasLatestVersionHref returns a boolean if a field has been set. - -### GetPulpCreated - -`func (o *ContainerContainerPushRepositoryResponse) GetPulpCreated() time.Time` - -GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. - -### GetPulpCreatedOk - -`func (o *ContainerContainerPushRepositoryResponse) GetPulpCreatedOk() (*time.Time, bool)` - -GetPulpCreatedOk returns a tuple with the PulpCreated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPulpCreated - -`func (o *ContainerContainerPushRepositoryResponse) SetPulpCreated(v time.Time)` - -SetPulpCreated sets PulpCreated field to given value. - -### HasPulpCreated - -`func (o *ContainerContainerPushRepositoryResponse) HasPulpCreated() bool` - -HasPulpCreated returns a boolean if a field has been set. - ### GetPulpHref `func (o *ContainerContainerPushRepositoryResponse) GetPulpHref() string` @@ -143,41 +58,6 @@ SetPulpHref sets PulpHref field to given value. HasPulpHref returns a boolean if a field has been set. -### GetRetainRepoVersions - -`func (o *ContainerContainerPushRepositoryResponse) GetRetainRepoVersions() int64` - -GetRetainRepoVersions returns the RetainRepoVersions field if non-nil, zero value otherwise. - -### GetRetainRepoVersionsOk - -`func (o *ContainerContainerPushRepositoryResponse) GetRetainRepoVersionsOk() (*int64, bool)` - -GetRetainRepoVersionsOk returns a tuple with the RetainRepoVersions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRetainRepoVersions - -`func (o *ContainerContainerPushRepositoryResponse) SetRetainRepoVersions(v int64)` - -SetRetainRepoVersions sets RetainRepoVersions field to given value. - -### HasRetainRepoVersions - -`func (o *ContainerContainerPushRepositoryResponse) HasRetainRepoVersions() bool` - -HasRetainRepoVersions returns a boolean if a field has been set. - -### SetRetainRepoVersionsNil - -`func (o *ContainerContainerPushRepositoryResponse) SetRetainRepoVersionsNil(b bool)` - - SetRetainRepoVersionsNil sets the value for RetainRepoVersions to be an explicit nil - -### UnsetRetainRepoVersions -`func (o *ContainerContainerPushRepositoryResponse) UnsetRetainRepoVersions()` - -UnsetRetainRepoVersions ensures that no value is present for RetainRepoVersions, not even an explicit nil ### GetVersionsHref `func (o *ContainerContainerPushRepositoryResponse) GetVersionsHref() string` @@ -248,6 +128,31 @@ SetPulpLabels sets PulpLabels field to given value. HasPulpLabels returns a boolean if a field has been set. +### GetLatestVersionHref + +`func (o *ContainerContainerPushRepositoryResponse) GetLatestVersionHref() string` + +GetLatestVersionHref returns the LatestVersionHref field if non-nil, zero value otherwise. + +### GetLatestVersionHrefOk + +`func (o *ContainerContainerPushRepositoryResponse) GetLatestVersionHrefOk() (*string, bool)` + +GetLatestVersionHrefOk returns a tuple with the LatestVersionHref field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatestVersionHref + +`func (o *ContainerContainerPushRepositoryResponse) SetLatestVersionHref(v string)` + +SetLatestVersionHref sets LatestVersionHref field to given value. + +### HasLatestVersionHref + +`func (o *ContainerContainerPushRepositoryResponse) HasLatestVersionHref() bool` + +HasLatestVersionHref returns a boolean if a field has been set. + ### GetManifestSigningService `func (o *ContainerContainerPushRepositoryResponse) GetManifestSigningService() string` @@ -283,6 +188,101 @@ HasManifestSigningService returns a boolean if a field has been set. `func (o *ContainerContainerPushRepositoryResponse) UnsetManifestSigningService()` UnsetManifestSigningService ensures that no value is present for ManifestSigningService, not even an explicit nil +### GetDescription + +`func (o *ContainerContainerPushRepositoryResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ContainerContainerPushRepositoryResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ContainerContainerPushRepositoryResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ContainerContainerPushRepositoryResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *ContainerContainerPushRepositoryResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *ContainerContainerPushRepositoryResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetPulpCreated + +`func (o *ContainerContainerPushRepositoryResponse) GetPulpCreated() time.Time` + +GetPulpCreated returns the PulpCreated field if non-nil, zero value otherwise. + +### GetPulpCreatedOk + +`func (o *ContainerContainerPushRepositoryResponse) GetPulpCreatedOk() (*time.Time, bool)` + +GetPulpCreatedOk returns a tuple with the PulpCreated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPulpCreated + +`func (o *ContainerContainerPushRepositoryResponse) SetPulpCreated(v time.Time)` + +SetPulpCreated sets PulpCreated field to given value. + +### HasPulpCreated + +`func (o *ContainerContainerPushRepositoryResponse) HasPulpCreated() bool` + +HasPulpCreated returns a boolean if a field has been set. + +### GetRetainRepoVersions + +`func (o *ContainerContainerPushRepositoryResponse) GetRetainRepoVersions() int64` + +GetRetainRepoVersions returns the RetainRepoVersions field if non-nil, zero value otherwise. + +### GetRetainRepoVersionsOk + +`func (o *ContainerContainerPushRepositoryResponse) GetRetainRepoVersionsOk() (*int64, bool)` + +GetRetainRepoVersionsOk returns a tuple with the RetainRepoVersions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetainRepoVersions + +`func (o *ContainerContainerPushRepositoryResponse) SetRetainRepoVersions(v int64)` + +SetRetainRepoVersions sets RetainRepoVersions field to given value. + +### HasRetainRepoVersions + +`func (o *ContainerContainerPushRepositoryResponse) HasRetainRepoVersions() bool` + +HasRetainRepoVersions returns a boolean if a field has been set. + +### SetRetainRepoVersionsNil + +`func (o *ContainerContainerPushRepositoryResponse) SetRetainRepoVersionsNil(b bool)` + + SetRetainRepoVersionsNil sets the value for RetainRepoVersions to be an explicit nil + +### UnsetRetainRepoVersions +`func (o *ContainerContainerPushRepositoryResponse) UnsetRetainRepoVersions()` + +UnsetRetainRepoVersions ensures that no value is present for RetainRepoVersions, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/release/docs/ContentCollectionMarksApi.md b/release/docs/ContentCollectionMarksApi.md new file mode 100644 index 00000000..55a1c83b --- /dev/null +++ b/release/docs/ContentCollectionMarksApi.md @@ -0,0 +1,237 @@ +# \ContentCollectionMarksApi + +All URIs are relative to *http://localhost:8080* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ContentAnsibleCollectionMarksCreate**](ContentCollectionMarksApi.md#ContentAnsibleCollectionMarksCreate) | **Post** /pulp/api/v3/content/ansible/collection_marks/ | Create a collection version mark +[**ContentAnsibleCollectionMarksList**](ContentCollectionMarksApi.md#ContentAnsibleCollectionMarksList) | **Get** /pulp/api/v3/content/ansible/collection_marks/ | List collection version marks +[**ContentAnsibleCollectionMarksRead**](ContentCollectionMarksApi.md#ContentAnsibleCollectionMarksRead) | **Get** /{ansible_collection_version_mark_href} | Inspect a collection version mark + + + +## ContentAnsibleCollectionMarksCreate + +> AnsibleCollectionVersionMarkResponse ContentAnsibleCollectionMarksCreate(ctx).AnsibleCollectionVersionMark(ansibleCollectionVersionMark).Execute() + +Create a collection version mark + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleCollectionVersionMark := *openapiclient.NewAnsibleCollectionVersionMark("MarkedCollection_example", "Value_example") // AnsibleCollectionVersionMark | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ContentCollectionMarksApi.ContentAnsibleCollectionMarksCreate(context.Background()).AnsibleCollectionVersionMark(ansibleCollectionVersionMark).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ContentCollectionMarksApi.ContentAnsibleCollectionMarksCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ContentAnsibleCollectionMarksCreate`: AnsibleCollectionVersionMarkResponse + fmt.Fprintf(os.Stdout, "Response from `ContentCollectionMarksApi.ContentAnsibleCollectionMarksCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiContentAnsibleCollectionMarksCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ansibleCollectionVersionMark** | [**AnsibleCollectionVersionMark**](AnsibleCollectionVersionMark.md) | | + +### Return type + +[**AnsibleCollectionVersionMarkResponse**](AnsibleCollectionVersionMarkResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ContentAnsibleCollectionMarksList + +> PaginatedansibleCollectionVersionMarkResponseList ContentAnsibleCollectionMarksList(ctx).Limit(limit).MarkedCollection(markedCollection).Offset(offset).Ordering(ordering).RepositoryVersion(repositoryVersion).RepositoryVersionAdded(repositoryVersionAdded).RepositoryVersionRemoved(repositoryVersionRemoved).Value(value).ValueIn(valueIn).Fields(fields).ExcludeFields(excludeFields).Execute() + +List collection version marks + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + limit := int32(56) // int32 | Number of results to return per page. (optional) + markedCollection := "markedCollection_example" // string | Filter marks for collection version (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := []string{"Ordering_example"} // []string | Ordering (optional) + repositoryVersion := "repositoryVersion_example" // string | Repository Version referenced by HREF (optional) + repositoryVersionAdded := "repositoryVersionAdded_example" // string | Repository Version referenced by HREF (optional) + repositoryVersionRemoved := "repositoryVersionRemoved_example" // string | Repository Version referenced by HREF (optional) + value := "value_example" // string | Filter marks by value (optional) + valueIn := []string{"Inner_example"} // []string | Filter results where value is in a comma-separated list of values (optional) + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ContentCollectionMarksApi.ContentAnsibleCollectionMarksList(context.Background()).Limit(limit).MarkedCollection(markedCollection).Offset(offset).Ordering(ordering).RepositoryVersion(repositoryVersion).RepositoryVersionAdded(repositoryVersionAdded).RepositoryVersionRemoved(repositoryVersionRemoved).Value(value).ValueIn(valueIn).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ContentCollectionMarksApi.ContentAnsibleCollectionMarksList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ContentAnsibleCollectionMarksList`: PaginatedansibleCollectionVersionMarkResponseList + fmt.Fprintf(os.Stdout, "Response from `ContentCollectionMarksApi.ContentAnsibleCollectionMarksList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiContentAnsibleCollectionMarksListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int32** | Number of results to return per page. | + **markedCollection** | **string** | Filter marks for collection version | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **[]string** | Ordering | + **repositoryVersion** | **string** | Repository Version referenced by HREF | + **repositoryVersionAdded** | **string** | Repository Version referenced by HREF | + **repositoryVersionRemoved** | **string** | Repository Version referenced by HREF | + **value** | **string** | Filter marks by value | + **valueIn** | **[]string** | Filter results where value is in a comma-separated list of values | + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**PaginatedansibleCollectionVersionMarkResponseList**](PaginatedansibleCollectionVersionMarkResponseList.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ContentAnsibleCollectionMarksRead + +> AnsibleCollectionVersionMarkResponse ContentAnsibleCollectionMarksRead(ctx, ansibleCollectionVersionMarkHref).Fields(fields).ExcludeFields(excludeFields).Execute() + +Inspect a collection version mark + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleCollectionVersionMarkHref := "ansibleCollectionVersionMarkHref_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ContentCollectionMarksApi.ContentAnsibleCollectionMarksRead(context.Background(), ansibleCollectionVersionMarkHref).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ContentCollectionMarksApi.ContentAnsibleCollectionMarksRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ContentAnsibleCollectionMarksRead`: AnsibleCollectionVersionMarkResponse + fmt.Fprintf(os.Stdout, "Response from `ContentCollectionMarksApi.ContentAnsibleCollectionMarksRead`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleCollectionVersionMarkHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiContentAnsibleCollectionMarksReadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**AnsibleCollectionVersionMarkResponse**](AnsibleCollectionVersionMarkResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/release/docs/ContentCollectionVersionsApi.md b/release/docs/ContentCollectionVersionsApi.md index 53ddbd4a..985487c3 100644 --- a/release/docs/ContentCollectionVersionsApi.md +++ b/release/docs/ContentCollectionVersionsApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description ## ContentAnsibleCollectionVersionsCreate -> AsyncOperationResponse ContentAnsibleCollectionVersionsCreate(ctx).Artifact(artifact).Upload(upload).File(file).Repository(repository).ExpectedName(expectedName).ExpectedNamespace(expectedNamespace).ExpectedVersion(expectedVersion).Execute() +> AsyncOperationResponse ContentAnsibleCollectionVersionsCreate(ctx).Repository(repository).Upload(upload).File(file).Artifact(artifact).ExpectedName(expectedName).ExpectedNamespace(expectedNamespace).ExpectedVersion(expectedVersion).Execute() Create a collection version @@ -31,17 +31,17 @@ import ( ) func main() { - artifact := "artifact_example" // string | Artifact file representing the physical content (optional) + repository := "repository_example" // string | A URI of a repository the new content unit should be associated with. (optional) upload := "upload_example" // string | An uncommitted upload that may be turned into the artifact of the content unit. (optional) file := os.NewFile(1234, "some_file") // *os.File | An uploaded file that may be turned into the artifact of the content unit. (optional) - repository := "repository_example" // string | A URI of a repository the new content unit should be associated with. (optional) + artifact := "artifact_example" // string | Artifact file representing the physical content (optional) expectedName := "expectedName_example" // string | The name of the collection. (optional) expectedNamespace := "expectedNamespace_example" // string | The namespace of the collection. (optional) expectedVersion := "expectedVersion_example" // string | The version of the collection. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ContentCollectionVersionsApi.ContentAnsibleCollectionVersionsCreate(context.Background()).Artifact(artifact).Upload(upload).File(file).Repository(repository).ExpectedName(expectedName).ExpectedNamespace(expectedNamespace).ExpectedVersion(expectedVersion).Execute() + resp, r, err := apiClient.ContentCollectionVersionsApi.ContentAnsibleCollectionVersionsCreate(context.Background()).Repository(repository).Upload(upload).File(file).Artifact(artifact).ExpectedName(expectedName).ExpectedNamespace(expectedNamespace).ExpectedVersion(expectedVersion).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ContentCollectionVersionsApi.ContentAnsibleCollectionVersionsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -62,10 +62,10 @@ Other parameters are passed through a pointer to a apiContentAnsibleCollectionVe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **artifact** | **string** | Artifact file representing the physical content | + **repository** | **string** | A URI of a repository the new content unit should be associated with. | **upload** | **string** | An uncommitted upload that may be turned into the artifact of the content unit. | **file** | ***os.File** | An uploaded file that may be turned into the artifact of the content unit. | - **repository** | **string** | A URI of a repository the new content unit should be associated with. | + **artifact** | **string** | Artifact file representing the physical content | **expectedName** | **string** | The name of the collection. | **expectedNamespace** | **string** | The namespace of the collection. | **expectedVersion** | **string** | The version of the collection. | diff --git a/release/docs/ContentNamespacesApi.md b/release/docs/ContentNamespacesApi.md new file mode 100644 index 00000000..f022065b --- /dev/null +++ b/release/docs/ContentNamespacesApi.md @@ -0,0 +1,261 @@ +# \ContentNamespacesApi + +All URIs are relative to *http://localhost:8080* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ContentAnsibleNamespacesAvatar**](ContentNamespacesApi.md#ContentAnsibleNamespacesAvatar) | **Get** /{ansible_ansible_namespace_metadata_href}avatar/ | +[**ContentAnsibleNamespacesList**](ContentNamespacesApi.md#ContentAnsibleNamespacesList) | **Get** /pulp/api/v3/content/ansible/namespaces/ | List ansible namespace metadatas +[**ContentAnsibleNamespacesRead**](ContentNamespacesApi.md#ContentAnsibleNamespacesRead) | **Get** /{ansible_ansible_namespace_metadata_href} | Inspect an ansible namespace metadata + + + +## ContentAnsibleNamespacesAvatar + +> ContentAnsibleNamespacesAvatar(ctx, ansibleAnsibleNamespaceMetadataHref).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleAnsibleNamespaceMetadataHref := "ansibleAnsibleNamespaceMetadataHref_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ContentNamespacesApi.ContentAnsibleNamespacesAvatar(context.Background(), ansibleAnsibleNamespaceMetadataHref).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ContentNamespacesApi.ContentAnsibleNamespacesAvatar``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleAnsibleNamespaceMetadataHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiContentAnsibleNamespacesAvatarRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ContentAnsibleNamespacesList + +> PaginatedansibleAnsibleNamespaceMetadataResponseList ContentAnsibleNamespacesList(ctx).Company(company).CompanyContains(companyContains).CompanyIcontains(companyIcontains).CompanyIn(companyIn).CompanyStartswith(companyStartswith).Limit(limit).MetadataSha256(metadataSha256).MetadataSha256In(metadataSha256In).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).RepositoryVersion(repositoryVersion).RepositoryVersionAdded(repositoryVersionAdded).RepositoryVersionRemoved(repositoryVersionRemoved).Fields(fields).ExcludeFields(excludeFields).Execute() + +List ansible namespace metadatas + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + company := "company_example" // string | Filter results where company matches value (optional) + companyContains := "companyContains_example" // string | Filter results where company contains value (optional) + companyIcontains := "companyIcontains_example" // string | Filter results where company contains value (optional) + companyIn := []string{"Inner_example"} // []string | Filter results where company is in a comma-separated list of values (optional) + companyStartswith := "companyStartswith_example" // string | Filter results where company starts with value (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + metadataSha256 := "metadataSha256_example" // string | Filter results where metadata_sha256 matches value (optional) + metadataSha256In := []string{"Inner_example"} // []string | Filter results where metadata_sha256 is in a comma-separated list of values (optional) + name := "name_example" // string | Filter results where name matches value (optional) + nameContains := "nameContains_example" // string | Filter results where name contains value (optional) + nameIcontains := "nameIcontains_example" // string | Filter results where name contains value (optional) + nameIn := []string{"Inner_example"} // []string | Filter results where name is in a comma-separated list of values (optional) + nameStartswith := "nameStartswith_example" // string | Filter results where name starts with value (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := []string{"Ordering_example"} // []string | Ordering (optional) + repositoryVersion := "repositoryVersion_example" // string | Repository Version referenced by HREF (optional) + repositoryVersionAdded := "repositoryVersionAdded_example" // string | Repository Version referenced by HREF (optional) + repositoryVersionRemoved := "repositoryVersionRemoved_example" // string | Repository Version referenced by HREF (optional) + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ContentNamespacesApi.ContentAnsibleNamespacesList(context.Background()).Company(company).CompanyContains(companyContains).CompanyIcontains(companyIcontains).CompanyIn(companyIn).CompanyStartswith(companyStartswith).Limit(limit).MetadataSha256(metadataSha256).MetadataSha256In(metadataSha256In).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).RepositoryVersion(repositoryVersion).RepositoryVersionAdded(repositoryVersionAdded).RepositoryVersionRemoved(repositoryVersionRemoved).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ContentNamespacesApi.ContentAnsibleNamespacesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ContentAnsibleNamespacesList`: PaginatedansibleAnsibleNamespaceMetadataResponseList + fmt.Fprintf(os.Stdout, "Response from `ContentNamespacesApi.ContentAnsibleNamespacesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiContentAnsibleNamespacesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **company** | **string** | Filter results where company matches value | + **companyContains** | **string** | Filter results where company contains value | + **companyIcontains** | **string** | Filter results where company contains value | + **companyIn** | **[]string** | Filter results where company is in a comma-separated list of values | + **companyStartswith** | **string** | Filter results where company starts with value | + **limit** | **int32** | Number of results to return per page. | + **metadataSha256** | **string** | Filter results where metadata_sha256 matches value | + **metadataSha256In** | **[]string** | Filter results where metadata_sha256 is in a comma-separated list of values | + **name** | **string** | Filter results where name matches value | + **nameContains** | **string** | Filter results where name contains value | + **nameIcontains** | **string** | Filter results where name contains value | + **nameIn** | **[]string** | Filter results where name is in a comma-separated list of values | + **nameStartswith** | **string** | Filter results where name starts with value | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **[]string** | Ordering | + **repositoryVersion** | **string** | Repository Version referenced by HREF | + **repositoryVersionAdded** | **string** | Repository Version referenced by HREF | + **repositoryVersionRemoved** | **string** | Repository Version referenced by HREF | + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**PaginatedansibleAnsibleNamespaceMetadataResponseList**](PaginatedansibleAnsibleNamespaceMetadataResponseList.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ContentAnsibleNamespacesRead + +> AnsibleAnsibleNamespaceMetadataResponse ContentAnsibleNamespacesRead(ctx, ansibleAnsibleNamespaceMetadataHref).Fields(fields).ExcludeFields(excludeFields).Execute() + +Inspect an ansible namespace metadata + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleAnsibleNamespaceMetadataHref := "ansibleAnsibleNamespaceMetadataHref_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ContentNamespacesApi.ContentAnsibleNamespacesRead(context.Background(), ansibleAnsibleNamespaceMetadataHref).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ContentNamespacesApi.ContentAnsibleNamespacesRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ContentAnsibleNamespacesRead`: AnsibleAnsibleNamespaceMetadataResponse + fmt.Fprintf(os.Stdout, "Response from `ContentNamespacesApi.ContentAnsibleNamespacesRead`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleAnsibleNamespaceMetadataHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiContentAnsibleNamespacesReadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**AnsibleAnsibleNamespaceMetadataResponse**](AnsibleAnsibleNamespaceMetadataResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/release/docs/DebBasePackage.md b/release/docs/DebBasePackage.md new file mode 100644 index 00000000..b2ff2037 --- /dev/null +++ b/release/docs/DebBasePackage.md @@ -0,0 +1,160 @@ +# DebBasePackage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Artifact** | Pointer to **string** | Artifact file representing the physical content | [optional] +**RelativePath** | Pointer to **string** | Path where the artifact is located relative to distributions base_path | [optional] +**File** | Pointer to ***os.File** | An uploaded file that may be turned into the artifact of the content unit. | [optional] +**Repository** | Pointer to **string** | A URI of a repository the new content unit should be associated with. | [optional] +**Upload** | Pointer to **string** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional] + +## Methods + +### NewDebBasePackage + +`func NewDebBasePackage() *DebBasePackage` + +NewDebBasePackage instantiates a new DebBasePackage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDebBasePackageWithDefaults + +`func NewDebBasePackageWithDefaults() *DebBasePackage` + +NewDebBasePackageWithDefaults instantiates a new DebBasePackage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArtifact + +`func (o *DebBasePackage) GetArtifact() string` + +GetArtifact returns the Artifact field if non-nil, zero value otherwise. + +### GetArtifactOk + +`func (o *DebBasePackage) GetArtifactOk() (*string, bool)` + +GetArtifactOk returns a tuple with the Artifact field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifact + +`func (o *DebBasePackage) SetArtifact(v string)` + +SetArtifact sets Artifact field to given value. + +### HasArtifact + +`func (o *DebBasePackage) HasArtifact() bool` + +HasArtifact returns a boolean if a field has been set. + +### GetRelativePath + +`func (o *DebBasePackage) GetRelativePath() string` + +GetRelativePath returns the RelativePath field if non-nil, zero value otherwise. + +### GetRelativePathOk + +`func (o *DebBasePackage) GetRelativePathOk() (*string, bool)` + +GetRelativePathOk returns a tuple with the RelativePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelativePath + +`func (o *DebBasePackage) SetRelativePath(v string)` + +SetRelativePath sets RelativePath field to given value. + +### HasRelativePath + +`func (o *DebBasePackage) HasRelativePath() bool` + +HasRelativePath returns a boolean if a field has been set. + +### GetFile + +`func (o *DebBasePackage) GetFile() *os.File` + +GetFile returns the File field if non-nil, zero value otherwise. + +### GetFileOk + +`func (o *DebBasePackage) GetFileOk() (**os.File, bool)` + +GetFileOk returns a tuple with the File field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFile + +`func (o *DebBasePackage) SetFile(v *os.File)` + +SetFile sets File field to given value. + +### HasFile + +`func (o *DebBasePackage) HasFile() bool` + +HasFile returns a boolean if a field has been set. + +### GetRepository + +`func (o *DebBasePackage) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *DebBasePackage) GetRepositoryOk() (*string, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *DebBasePackage) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *DebBasePackage) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetUpload + +`func (o *DebBasePackage) GetUpload() string` + +GetUpload returns the Upload field if non-nil, zero value otherwise. + +### GetUploadOk + +`func (o *DebBasePackage) GetUploadOk() (*string, bool)` + +GetUploadOk returns a tuple with the Upload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpload + +`func (o *DebBasePackage) SetUpload(v string)` + +SetUpload sets Upload field to given value. + +### HasUpload + +`func (o *DebBasePackage) HasUpload() bool` + +HasUpload returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/DebGenericContent.md b/release/docs/DebGenericContent.md new file mode 100644 index 00000000..8db3c02f --- /dev/null +++ b/release/docs/DebGenericContent.md @@ -0,0 +1,155 @@ +# DebGenericContent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Artifact** | Pointer to **string** | Artifact file representing the physical content | [optional] +**RelativePath** | **string** | Path where the artifact is located relative to distributions base_path | +**File** | Pointer to ***os.File** | An uploaded file that may be turned into the artifact of the content unit. | [optional] +**Repository** | Pointer to **string** | A URI of a repository the new content unit should be associated with. | [optional] +**Upload** | Pointer to **string** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional] + +## Methods + +### NewDebGenericContent + +`func NewDebGenericContent(relativePath string, ) *DebGenericContent` + +NewDebGenericContent instantiates a new DebGenericContent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDebGenericContentWithDefaults + +`func NewDebGenericContentWithDefaults() *DebGenericContent` + +NewDebGenericContentWithDefaults instantiates a new DebGenericContent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArtifact + +`func (o *DebGenericContent) GetArtifact() string` + +GetArtifact returns the Artifact field if non-nil, zero value otherwise. + +### GetArtifactOk + +`func (o *DebGenericContent) GetArtifactOk() (*string, bool)` + +GetArtifactOk returns a tuple with the Artifact field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifact + +`func (o *DebGenericContent) SetArtifact(v string)` + +SetArtifact sets Artifact field to given value. + +### HasArtifact + +`func (o *DebGenericContent) HasArtifact() bool` + +HasArtifact returns a boolean if a field has been set. + +### GetRelativePath + +`func (o *DebGenericContent) GetRelativePath() string` + +GetRelativePath returns the RelativePath field if non-nil, zero value otherwise. + +### GetRelativePathOk + +`func (o *DebGenericContent) GetRelativePathOk() (*string, bool)` + +GetRelativePathOk returns a tuple with the RelativePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelativePath + +`func (o *DebGenericContent) SetRelativePath(v string)` + +SetRelativePath sets RelativePath field to given value. + + +### GetFile + +`func (o *DebGenericContent) GetFile() *os.File` + +GetFile returns the File field if non-nil, zero value otherwise. + +### GetFileOk + +`func (o *DebGenericContent) GetFileOk() (**os.File, bool)` + +GetFileOk returns a tuple with the File field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFile + +`func (o *DebGenericContent) SetFile(v *os.File)` + +SetFile sets File field to given value. + +### HasFile + +`func (o *DebGenericContent) HasFile() bool` + +HasFile returns a boolean if a field has been set. + +### GetRepository + +`func (o *DebGenericContent) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *DebGenericContent) GetRepositoryOk() (*string, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *DebGenericContent) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *DebGenericContent) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetUpload + +`func (o *DebGenericContent) GetUpload() string` + +GetUpload returns the Upload field if non-nil, zero value otherwise. + +### GetUploadOk + +`func (o *DebGenericContent) GetUploadOk() (*string, bool)` + +GetUploadOk returns a tuple with the Upload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpload + +`func (o *DebGenericContent) SetUpload(v string)` + +SetUpload sets Upload field to given value. + +### HasUpload + +`func (o *DebGenericContent) HasUpload() bool` + +HasUpload returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/DistributionsAnsibleApi.md b/release/docs/DistributionsAnsibleApi.md index 2b26f59e..cf644bb6 100644 --- a/release/docs/DistributionsAnsibleApi.md +++ b/release/docs/DistributionsAnsibleApi.md @@ -4,15 +4,91 @@ All URIs are relative to *http://localhost:8080* Method | HTTP request | Description ------------- | ------------- | ------------- +[**DistributionsAnsibleAnsibleAddRole**](DistributionsAnsibleApi.md#DistributionsAnsibleAnsibleAddRole) | **Post** /{ansible_ansible_distribution_href}add_role/ | [**DistributionsAnsibleAnsibleCreate**](DistributionsAnsibleApi.md#DistributionsAnsibleAnsibleCreate) | **Post** /pulp/api/v3/distributions/ansible/ansible/ | Create an ansible distribution [**DistributionsAnsibleAnsibleDelete**](DistributionsAnsibleApi.md#DistributionsAnsibleAnsibleDelete) | **Delete** /{ansible_ansible_distribution_href} | Delete an ansible distribution [**DistributionsAnsibleAnsibleList**](DistributionsAnsibleApi.md#DistributionsAnsibleAnsibleList) | **Get** /pulp/api/v3/distributions/ansible/ansible/ | List ansible distributions +[**DistributionsAnsibleAnsibleListRoles**](DistributionsAnsibleApi.md#DistributionsAnsibleAnsibleListRoles) | **Get** /{ansible_ansible_distribution_href}list_roles/ | +[**DistributionsAnsibleAnsibleMyPermissions**](DistributionsAnsibleApi.md#DistributionsAnsibleAnsibleMyPermissions) | **Get** /{ansible_ansible_distribution_href}my_permissions/ | [**DistributionsAnsibleAnsiblePartialUpdate**](DistributionsAnsibleApi.md#DistributionsAnsibleAnsiblePartialUpdate) | **Patch** /{ansible_ansible_distribution_href} | Update an ansible distribution [**DistributionsAnsibleAnsibleRead**](DistributionsAnsibleApi.md#DistributionsAnsibleAnsibleRead) | **Get** /{ansible_ansible_distribution_href} | Inspect an ansible distribution +[**DistributionsAnsibleAnsibleRemoveRole**](DistributionsAnsibleApi.md#DistributionsAnsibleAnsibleRemoveRole) | **Post** /{ansible_ansible_distribution_href}remove_role/ | [**DistributionsAnsibleAnsibleUpdate**](DistributionsAnsibleApi.md#DistributionsAnsibleAnsibleUpdate) | **Put** /{ansible_ansible_distribution_href} | Update an ansible distribution +## DistributionsAnsibleAnsibleAddRole + +> NestedRoleResponse DistributionsAnsibleAnsibleAddRole(ctx, ansibleAnsibleDistributionHref).NestedRole(nestedRole).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleAnsibleDistributionHref := "ansibleAnsibleDistributionHref_example" // string | + nestedRole := *openapiclient.NewNestedRole("Role_example") // NestedRole | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DistributionsAnsibleApi.DistributionsAnsibleAnsibleAddRole(context.Background(), ansibleAnsibleDistributionHref).NestedRole(nestedRole).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DistributionsAnsibleApi.DistributionsAnsibleAnsibleAddRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DistributionsAnsibleAnsibleAddRole`: NestedRoleResponse + fmt.Fprintf(os.Stdout, "Response from `DistributionsAnsibleApi.DistributionsAnsibleAnsibleAddRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleAnsibleDistributionHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDistributionsAnsibleAnsibleAddRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **nestedRole** | [**NestedRole**](NestedRole.md) | | + +### Return type + +[**NestedRoleResponse**](NestedRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## DistributionsAnsibleAnsibleCreate > AsyncOperationResponse DistributionsAnsibleAnsibleCreate(ctx).AnsibleAnsibleDistribution(ansibleAnsibleDistribution).Execute() @@ -249,6 +325,154 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## DistributionsAnsibleAnsibleListRoles + +> ObjectRolesResponse DistributionsAnsibleAnsibleListRoles(ctx, ansibleAnsibleDistributionHref).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleAnsibleDistributionHref := "ansibleAnsibleDistributionHref_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DistributionsAnsibleApi.DistributionsAnsibleAnsibleListRoles(context.Background(), ansibleAnsibleDistributionHref).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DistributionsAnsibleApi.DistributionsAnsibleAnsibleListRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DistributionsAnsibleAnsibleListRoles`: ObjectRolesResponse + fmt.Fprintf(os.Stdout, "Response from `DistributionsAnsibleApi.DistributionsAnsibleAnsibleListRoles`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleAnsibleDistributionHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDistributionsAnsibleAnsibleListRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**ObjectRolesResponse**](ObjectRolesResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DistributionsAnsibleAnsibleMyPermissions + +> MyPermissionsResponse DistributionsAnsibleAnsibleMyPermissions(ctx, ansibleAnsibleDistributionHref).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleAnsibleDistributionHref := "ansibleAnsibleDistributionHref_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DistributionsAnsibleApi.DistributionsAnsibleAnsibleMyPermissions(context.Background(), ansibleAnsibleDistributionHref).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DistributionsAnsibleApi.DistributionsAnsibleAnsibleMyPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DistributionsAnsibleAnsibleMyPermissions`: MyPermissionsResponse + fmt.Fprintf(os.Stdout, "Response from `DistributionsAnsibleApi.DistributionsAnsibleAnsibleMyPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleAnsibleDistributionHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDistributionsAnsibleAnsibleMyPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**MyPermissionsResponse**](MyPermissionsResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## DistributionsAnsibleAnsiblePartialUpdate > AsyncOperationResponse DistributionsAnsibleAnsiblePartialUpdate(ctx, ansibleAnsibleDistributionHref).PatchedansibleAnsibleDistribution(patchedansibleAnsibleDistribution).Execute() @@ -395,6 +619,78 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## DistributionsAnsibleAnsibleRemoveRole + +> NestedRoleResponse DistributionsAnsibleAnsibleRemoveRole(ctx, ansibleAnsibleDistributionHref).NestedRole(nestedRole).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleAnsibleDistributionHref := "ansibleAnsibleDistributionHref_example" // string | + nestedRole := *openapiclient.NewNestedRole("Role_example") // NestedRole | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DistributionsAnsibleApi.DistributionsAnsibleAnsibleRemoveRole(context.Background(), ansibleAnsibleDistributionHref).NestedRole(nestedRole).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DistributionsAnsibleApi.DistributionsAnsibleAnsibleRemoveRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DistributionsAnsibleAnsibleRemoveRole`: NestedRoleResponse + fmt.Fprintf(os.Stdout, "Response from `DistributionsAnsibleApi.DistributionsAnsibleAnsibleRemoveRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleAnsibleDistributionHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDistributionsAnsibleAnsibleRemoveRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **nestedRole** | [**NestedRole**](NestedRole.md) | | + +### Return type + +[**NestedRoleResponse**](NestedRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## DistributionsAnsibleAnsibleUpdate > AsyncOperationResponse DistributionsAnsibleAnsibleUpdate(ctx, ansibleAnsibleDistributionHref).AnsibleAnsibleDistribution(ansibleAnsibleDistribution).Execute() diff --git a/release/docs/FileFileContent.md b/release/docs/FileFileContent.md new file mode 100644 index 00000000..d6ce6652 --- /dev/null +++ b/release/docs/FileFileContent.md @@ -0,0 +1,155 @@ +# FileFileContent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Artifact** | Pointer to **string** | Artifact file representing the physical content | [optional] +**RelativePath** | **string** | Path where the artifact is located relative to distributions base_path | +**File** | Pointer to ***os.File** | An uploaded file that may be turned into the artifact of the content unit. | [optional] +**Repository** | Pointer to **string** | A URI of a repository the new content unit should be associated with. | [optional] +**Upload** | Pointer to **string** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional] + +## Methods + +### NewFileFileContent + +`func NewFileFileContent(relativePath string, ) *FileFileContent` + +NewFileFileContent instantiates a new FileFileContent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFileFileContentWithDefaults + +`func NewFileFileContentWithDefaults() *FileFileContent` + +NewFileFileContentWithDefaults instantiates a new FileFileContent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArtifact + +`func (o *FileFileContent) GetArtifact() string` + +GetArtifact returns the Artifact field if non-nil, zero value otherwise. + +### GetArtifactOk + +`func (o *FileFileContent) GetArtifactOk() (*string, bool)` + +GetArtifactOk returns a tuple with the Artifact field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifact + +`func (o *FileFileContent) SetArtifact(v string)` + +SetArtifact sets Artifact field to given value. + +### HasArtifact + +`func (o *FileFileContent) HasArtifact() bool` + +HasArtifact returns a boolean if a field has been set. + +### GetRelativePath + +`func (o *FileFileContent) GetRelativePath() string` + +GetRelativePath returns the RelativePath field if non-nil, zero value otherwise. + +### GetRelativePathOk + +`func (o *FileFileContent) GetRelativePathOk() (*string, bool)` + +GetRelativePathOk returns a tuple with the RelativePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelativePath + +`func (o *FileFileContent) SetRelativePath(v string)` + +SetRelativePath sets RelativePath field to given value. + + +### GetFile + +`func (o *FileFileContent) GetFile() *os.File` + +GetFile returns the File field if non-nil, zero value otherwise. + +### GetFileOk + +`func (o *FileFileContent) GetFileOk() (**os.File, bool)` + +GetFileOk returns a tuple with the File field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFile + +`func (o *FileFileContent) SetFile(v *os.File)` + +SetFile sets File field to given value. + +### HasFile + +`func (o *FileFileContent) HasFile() bool` + +HasFile returns a boolean if a field has been set. + +### GetRepository + +`func (o *FileFileContent) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *FileFileContent) GetRepositoryOk() (*string, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *FileFileContent) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *FileFileContent) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetUpload + +`func (o *FileFileContent) GetUpload() string` + +GetUpload returns the Upload field if non-nil, zero value otherwise. + +### GetUploadOk + +`func (o *FileFileContent) GetUploadOk() (*string, bool)` + +GetUploadOk returns a tuple with the Upload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpload + +`func (o *FileFileContent) SetUpload(v string)` + +SetUpload sets Upload field to given value. + +### HasUpload + +`func (o *FileFileContent) HasUpload() bool` + +HasUpload returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/NamespaceLink.md b/release/docs/NamespaceLink.md new file mode 100644 index 00000000..d4babc1d --- /dev/null +++ b/release/docs/NamespaceLink.md @@ -0,0 +1,72 @@ +# NamespaceLink + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | | +**Name** | **string** | | + +## Methods + +### NewNamespaceLink + +`func NewNamespaceLink(url string, name string, ) *NamespaceLink` + +NewNamespaceLink instantiates a new NamespaceLink object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNamespaceLinkWithDefaults + +`func NewNamespaceLinkWithDefaults() *NamespaceLink` + +NewNamespaceLinkWithDefaults instantiates a new NamespaceLink object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUrl + +`func (o *NamespaceLink) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NamespaceLink) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *NamespaceLink) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetName + +`func (o *NamespaceLink) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NamespaceLink) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NamespaceLink) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/NamespaceLinkResponse.md b/release/docs/NamespaceLinkResponse.md new file mode 100644 index 00000000..d16b63cc --- /dev/null +++ b/release/docs/NamespaceLinkResponse.md @@ -0,0 +1,72 @@ +# NamespaceLinkResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | | +**Name** | **string** | | + +## Methods + +### NewNamespaceLinkResponse + +`func NewNamespaceLinkResponse(url string, name string, ) *NamespaceLinkResponse` + +NewNamespaceLinkResponse instantiates a new NamespaceLinkResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNamespaceLinkResponseWithDefaults + +`func NewNamespaceLinkResponseWithDefaults() *NamespaceLinkResponse` + +NewNamespaceLinkResponseWithDefaults instantiates a new NamespaceLinkResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUrl + +`func (o *NamespaceLinkResponse) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NamespaceLinkResponse) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *NamespaceLinkResponse) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetName + +`func (o *NamespaceLinkResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NamespaceLinkResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NamespaceLinkResponse) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/OCIBuildImage.md b/release/docs/OCIBuildImage.md new file mode 100644 index 00000000..4f24f324 --- /dev/null +++ b/release/docs/OCIBuildImage.md @@ -0,0 +1,134 @@ +# OCIBuildImage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContainerfileArtifact** | Pointer to **string** | Artifact representing the Containerfile that should be used to run podman-build. | [optional] +**Containerfile** | Pointer to ***os.File** | An uploaded Containerfile that should be used to run podman-build. | [optional] +**Tag** | Pointer to **string** | A tag name for the new image being built. | [optional] [default to "latest"] +**Artifacts** | Pointer to **map[string]interface{}** | A JSON string where each key is an artifact href and the value is it's relative path (name) inside the /pulp_working_directory of the build container executing the Containerfile. | [optional] + +## Methods + +### NewOCIBuildImage + +`func NewOCIBuildImage() *OCIBuildImage` + +NewOCIBuildImage instantiates a new OCIBuildImage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOCIBuildImageWithDefaults + +`func NewOCIBuildImageWithDefaults() *OCIBuildImage` + +NewOCIBuildImageWithDefaults instantiates a new OCIBuildImage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContainerfileArtifact + +`func (o *OCIBuildImage) GetContainerfileArtifact() string` + +GetContainerfileArtifact returns the ContainerfileArtifact field if non-nil, zero value otherwise. + +### GetContainerfileArtifactOk + +`func (o *OCIBuildImage) GetContainerfileArtifactOk() (*string, bool)` + +GetContainerfileArtifactOk returns a tuple with the ContainerfileArtifact field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerfileArtifact + +`func (o *OCIBuildImage) SetContainerfileArtifact(v string)` + +SetContainerfileArtifact sets ContainerfileArtifact field to given value. + +### HasContainerfileArtifact + +`func (o *OCIBuildImage) HasContainerfileArtifact() bool` + +HasContainerfileArtifact returns a boolean if a field has been set. + +### GetContainerfile + +`func (o *OCIBuildImage) GetContainerfile() *os.File` + +GetContainerfile returns the Containerfile field if non-nil, zero value otherwise. + +### GetContainerfileOk + +`func (o *OCIBuildImage) GetContainerfileOk() (**os.File, bool)` + +GetContainerfileOk returns a tuple with the Containerfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerfile + +`func (o *OCIBuildImage) SetContainerfile(v *os.File)` + +SetContainerfile sets Containerfile field to given value. + +### HasContainerfile + +`func (o *OCIBuildImage) HasContainerfile() bool` + +HasContainerfile returns a boolean if a field has been set. + +### GetTag + +`func (o *OCIBuildImage) GetTag() string` + +GetTag returns the Tag field if non-nil, zero value otherwise. + +### GetTagOk + +`func (o *OCIBuildImage) GetTagOk() (*string, bool)` + +GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTag + +`func (o *OCIBuildImage) SetTag(v string)` + +SetTag sets Tag field to given value. + +### HasTag + +`func (o *OCIBuildImage) HasTag() bool` + +HasTag returns a boolean if a field has been set. + +### GetArtifacts + +`func (o *OCIBuildImage) GetArtifacts() map[string]interface{}` + +GetArtifacts returns the Artifacts field if non-nil, zero value otherwise. + +### GetArtifactsOk + +`func (o *OCIBuildImage) GetArtifactsOk() (*map[string]interface{}, bool)` + +GetArtifactsOk returns a tuple with the Artifacts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifacts + +`func (o *OCIBuildImage) SetArtifacts(v map[string]interface{})` + +SetArtifacts sets Artifacts field to given value. + +### HasArtifacts + +`func (o *OCIBuildImage) HasArtifacts() bool` + +HasArtifacts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/PackageUpload.md b/release/docs/PackageUpload.md new file mode 100644 index 00000000..fee142c9 --- /dev/null +++ b/release/docs/PackageUpload.md @@ -0,0 +1,98 @@ +# PackageUpload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | ***os.File** | A Python package release file to upload to the index. | +**Action** | Pointer to **string** | Defaults to `file_upload`, don't change it or request will fail! | [optional] [default to "file_upload"] +**Sha256Digest** | **string** | SHA256 of package to validate upload integrity. | + +## Methods + +### NewPackageUpload + +`func NewPackageUpload(content *os.File, sha256Digest string, ) *PackageUpload` + +NewPackageUpload instantiates a new PackageUpload object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPackageUploadWithDefaults + +`func NewPackageUploadWithDefaults() *PackageUpload` + +NewPackageUploadWithDefaults instantiates a new PackageUpload object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContent + +`func (o *PackageUpload) GetContent() *os.File` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *PackageUpload) GetContentOk() (**os.File, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *PackageUpload) SetContent(v *os.File)` + +SetContent sets Content field to given value. + + +### GetAction + +`func (o *PackageUpload) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *PackageUpload) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *PackageUpload) SetAction(v string)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *PackageUpload) HasAction() bool` + +HasAction returns a boolean if a field has been set. + +### GetSha256Digest + +`func (o *PackageUpload) GetSha256Digest() string` + +GetSha256Digest returns the Sha256Digest field if non-nil, zero value otherwise. + +### GetSha256DigestOk + +`func (o *PackageUpload) GetSha256DigestOk() (*string, bool)` + +GetSha256DigestOk returns a tuple with the Sha256Digest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSha256Digest + +`func (o *PackageUpload) SetSha256Digest(v string)` + +SetSha256Digest sets Sha256Digest field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/PaginatedCollectionVersionSearchListResponseList.md b/release/docs/PaginatedCollectionVersionSearchListResponseList.md new file mode 100644 index 00000000..7e21ca6b --- /dev/null +++ b/release/docs/PaginatedCollectionVersionSearchListResponseList.md @@ -0,0 +1,108 @@ +# PaginatedCollectionVersionSearchListResponseList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | Pointer to [**PaginatedCollectionResponseListMeta**](PaginatedCollectionResponseListMeta.md) | | [optional] +**Links** | Pointer to [**PaginatedCollectionResponseListLinks**](PaginatedCollectionResponseListLinks.md) | | [optional] +**Data** | Pointer to [**[]CollectionVersionSearchListResponse**](CollectionVersionSearchListResponse.md) | | [optional] + +## Methods + +### NewPaginatedCollectionVersionSearchListResponseList + +`func NewPaginatedCollectionVersionSearchListResponseList() *PaginatedCollectionVersionSearchListResponseList` + +NewPaginatedCollectionVersionSearchListResponseList instantiates a new PaginatedCollectionVersionSearchListResponseList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedCollectionVersionSearchListResponseListWithDefaults + +`func NewPaginatedCollectionVersionSearchListResponseListWithDefaults() *PaginatedCollectionVersionSearchListResponseList` + +NewPaginatedCollectionVersionSearchListResponseListWithDefaults instantiates a new PaginatedCollectionVersionSearchListResponseList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMeta + +`func (o *PaginatedCollectionVersionSearchListResponseList) GetMeta() PaginatedCollectionResponseListMeta` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *PaginatedCollectionVersionSearchListResponseList) GetMetaOk() (*PaginatedCollectionResponseListMeta, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *PaginatedCollectionVersionSearchListResponseList) SetMeta(v PaginatedCollectionResponseListMeta)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *PaginatedCollectionVersionSearchListResponseList) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetLinks + +`func (o *PaginatedCollectionVersionSearchListResponseList) GetLinks() PaginatedCollectionResponseListLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PaginatedCollectionVersionSearchListResponseList) GetLinksOk() (*PaginatedCollectionResponseListLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PaginatedCollectionVersionSearchListResponseList) SetLinks(v PaginatedCollectionResponseListLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PaginatedCollectionVersionSearchListResponseList) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *PaginatedCollectionVersionSearchListResponseList) GetData() []CollectionVersionSearchListResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PaginatedCollectionVersionSearchListResponseList) GetDataOk() (*[]CollectionVersionSearchListResponse, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PaginatedCollectionVersionSearchListResponseList) SetData(v []CollectionVersionSearchListResponse)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PaginatedCollectionVersionSearchListResponseList) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md b/release/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md new file mode 100644 index 00000000..9fa6bfea --- /dev/null +++ b/release/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md @@ -0,0 +1,154 @@ +# PaginatedansibleAnsibleNamespaceMetadataResponseList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **int32** | | [optional] +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | Pointer to [**[]AnsibleAnsibleNamespaceMetadataResponse**](AnsibleAnsibleNamespaceMetadataResponse.md) | | [optional] + +## Methods + +### NewPaginatedansibleAnsibleNamespaceMetadataResponseList + +`func NewPaginatedansibleAnsibleNamespaceMetadataResponseList() *PaginatedansibleAnsibleNamespaceMetadataResponseList` + +NewPaginatedansibleAnsibleNamespaceMetadataResponseList instantiates a new PaginatedansibleAnsibleNamespaceMetadataResponseList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedansibleAnsibleNamespaceMetadataResponseListWithDefaults + +`func NewPaginatedansibleAnsibleNamespaceMetadataResponseListWithDefaults() *PaginatedansibleAnsibleNamespaceMetadataResponseList` + +NewPaginatedansibleAnsibleNamespaceMetadataResponseListWithDefaults instantiates a new PaginatedansibleAnsibleNamespaceMetadataResponseList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetNext + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetResults() []AnsibleAnsibleNamespaceMetadataResponse` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetResultsOk() (*[]AnsibleAnsibleNamespaceMetadataResponse, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) SetResults(v []AnsibleAnsibleNamespaceMetadataResponse)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) HasResults() bool` + +HasResults returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/PaginatedansibleCollectionVersionMarkResponseList.md b/release/docs/PaginatedansibleCollectionVersionMarkResponseList.md new file mode 100644 index 00000000..6b7842d3 --- /dev/null +++ b/release/docs/PaginatedansibleCollectionVersionMarkResponseList.md @@ -0,0 +1,154 @@ +# PaginatedansibleCollectionVersionMarkResponseList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **int32** | | [optional] +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | Pointer to [**[]AnsibleCollectionVersionMarkResponse**](AnsibleCollectionVersionMarkResponse.md) | | [optional] + +## Methods + +### NewPaginatedansibleCollectionVersionMarkResponseList + +`func NewPaginatedansibleCollectionVersionMarkResponseList() *PaginatedansibleCollectionVersionMarkResponseList` + +NewPaginatedansibleCollectionVersionMarkResponseList instantiates a new PaginatedansibleCollectionVersionMarkResponseList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedansibleCollectionVersionMarkResponseListWithDefaults + +`func NewPaginatedansibleCollectionVersionMarkResponseListWithDefaults() *PaginatedansibleCollectionVersionMarkResponseList` + +NewPaginatedansibleCollectionVersionMarkResponseListWithDefaults instantiates a new PaginatedansibleCollectionVersionMarkResponseList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetNext + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedansibleCollectionVersionMarkResponseList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedansibleCollectionVersionMarkResponseList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) GetResults() []AnsibleCollectionVersionMarkResponse` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) GetResultsOk() (*[]AnsibleCollectionVersionMarkResponse, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) SetResults(v []AnsibleCollectionVersionMarkResponse)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *PaginatedansibleCollectionVersionMarkResponseList) HasResults() bool` + +HasResults returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/PatchedansibleAnsibleNamespaceMetadata.md b/release/docs/PatchedansibleAnsibleNamespaceMetadata.md new file mode 100644 index 00000000..4c69e124 --- /dev/null +++ b/release/docs/PatchedansibleAnsibleNamespaceMetadata.md @@ -0,0 +1,212 @@ +# PatchedansibleAnsibleNamespaceMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Required named, only accepts lowercase, numbers and underscores. | [optional] +**Company** | Pointer to **string** | Optional namespace company owner. | [optional] +**Email** | Pointer to **string** | Optional namespace contact email. | [optional] +**Description** | Pointer to **string** | Optional short description. | [optional] +**Resources** | Pointer to **string** | Optional resource page in markdown format. | [optional] +**Links** | Pointer to [**[]NamespaceLink**](NamespaceLink.md) | Labeled related links. | [optional] +**Avatar** | Pointer to ***os.File** | Optional avatar image for Namespace | [optional] + +## Methods + +### NewPatchedansibleAnsibleNamespaceMetadata + +`func NewPatchedansibleAnsibleNamespaceMetadata() *PatchedansibleAnsibleNamespaceMetadata` + +NewPatchedansibleAnsibleNamespaceMetadata instantiates a new PatchedansibleAnsibleNamespaceMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedansibleAnsibleNamespaceMetadataWithDefaults + +`func NewPatchedansibleAnsibleNamespaceMetadataWithDefaults() *PatchedansibleAnsibleNamespaceMetadata` + +NewPatchedansibleAnsibleNamespaceMetadataWithDefaults instantiates a new PatchedansibleAnsibleNamespaceMetadata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PatchedansibleAnsibleNamespaceMetadata) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedansibleAnsibleNamespaceMetadata) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PatchedansibleAnsibleNamespaceMetadata) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedansibleAnsibleNamespaceMetadata) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetCompany + +`func (o *PatchedansibleAnsibleNamespaceMetadata) GetCompany() string` + +GetCompany returns the Company field if non-nil, zero value otherwise. + +### GetCompanyOk + +`func (o *PatchedansibleAnsibleNamespaceMetadata) GetCompanyOk() (*string, bool)` + +GetCompanyOk returns a tuple with the Company field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompany + +`func (o *PatchedansibleAnsibleNamespaceMetadata) SetCompany(v string)` + +SetCompany sets Company field to given value. + +### HasCompany + +`func (o *PatchedansibleAnsibleNamespaceMetadata) HasCompany() bool` + +HasCompany returns a boolean if a field has been set. + +### GetEmail + +`func (o *PatchedansibleAnsibleNamespaceMetadata) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *PatchedansibleAnsibleNamespaceMetadata) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *PatchedansibleAnsibleNamespaceMetadata) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *PatchedansibleAnsibleNamespaceMetadata) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedansibleAnsibleNamespaceMetadata) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedansibleAnsibleNamespaceMetadata) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PatchedansibleAnsibleNamespaceMetadata) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedansibleAnsibleNamespaceMetadata) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetResources + +`func (o *PatchedansibleAnsibleNamespaceMetadata) GetResources() string` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *PatchedansibleAnsibleNamespaceMetadata) GetResourcesOk() (*string, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *PatchedansibleAnsibleNamespaceMetadata) SetResources(v string)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *PatchedansibleAnsibleNamespaceMetadata) HasResources() bool` + +HasResources returns a boolean if a field has been set. + +### GetLinks + +`func (o *PatchedansibleAnsibleNamespaceMetadata) GetLinks() []NamespaceLink` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PatchedansibleAnsibleNamespaceMetadata) GetLinksOk() (*[]NamespaceLink, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PatchedansibleAnsibleNamespaceMetadata) SetLinks(v []NamespaceLink)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PatchedansibleAnsibleNamespaceMetadata) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAvatar + +`func (o *PatchedansibleAnsibleNamespaceMetadata) GetAvatar() *os.File` + +GetAvatar returns the Avatar field if non-nil, zero value otherwise. + +### GetAvatarOk + +`func (o *PatchedansibleAnsibleNamespaceMetadata) GetAvatarOk() (**os.File, bool)` + +GetAvatarOk returns a tuple with the Avatar field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatar + +`func (o *PatchedansibleAnsibleNamespaceMetadata) SetAvatar(v *os.File)` + +SetAvatar sets Avatar field to given value. + +### HasAvatar + +`func (o *PatchedansibleAnsibleNamespaceMetadata) HasAvatar() bool` + +HasAvatar returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/PatchedansibleAnsibleRepository.md b/release/docs/PatchedansibleAnsibleRepository.md index cedb7299..7ba7e04a 100644 --- a/release/docs/PatchedansibleAnsibleRepository.md +++ b/release/docs/PatchedansibleAnsibleRepository.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **Remote** | Pointer to **NullableString** | An optional remote to use by default when syncing. | [optional] **LastSyncedMetadataTime** | Pointer to **NullableTime** | Last synced metadata time. | [optional] **Gpgkey** | Pointer to **NullableString** | Gpg public key to verify collection signatures against | [optional] +**Private** | Pointer to **bool** | | [optional] ## Methods @@ -256,6 +257,31 @@ HasGpgkey returns a boolean if a field has been set. `func (o *PatchedansibleAnsibleRepository) UnsetGpgkey()` UnsetGpgkey ensures that no value is present for Gpgkey, not even an explicit nil +### GetPrivate + +`func (o *PatchedansibleAnsibleRepository) GetPrivate() bool` + +GetPrivate returns the Private field if non-nil, zero value otherwise. + +### GetPrivateOk + +`func (o *PatchedansibleAnsibleRepository) GetPrivateOk() (*bool, bool)` + +GetPrivateOk returns a tuple with the Private field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivate + +`func (o *PatchedansibleAnsibleRepository) SetPrivate(v bool)` + +SetPrivate sets Private field to given value. + +### HasPrivate + +`func (o *PatchedansibleAnsibleRepository) HasPrivate() bool` + +HasPrivate returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/release/docs/PatchedansibleGitRemote.md b/release/docs/PatchedansibleGitRemote.md index ff09d1c5..2660016a 100644 --- a/release/docs/PatchedansibleGitRemote.md +++ b/release/docs/PatchedansibleGitRemote.md @@ -4,26 +4,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Headers** | Pointer to **[]map[string]interface{}** | Headers for aiohttp.Clientsession | [optional] -**SockReadTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] -**SockConnectTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] -**ConnectTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] +**DownloadConcurrency** | Pointer to **NullableInt64** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] +**RateLimit** | Pointer to **NullableInt64** | Limits requests per second for each concurrent downloader | [optional] **Name** | Pointer to **string** | A unique name for this remote. | [optional] **ClientCert** | Pointer to **NullableString** | A PEM encoded client certificate used for authentication. | [optional] -**ProxyUrl** | Pointer to **NullableString** | The proxy URL. Format: scheme://host:port | [optional] -**ProxyUsername** | Pointer to **NullableString** | The username to authenticte to the proxy. | [optional] -**Username** | Pointer to **NullableString** | The username to be used for authentication when syncing. | [optional] -**TotalTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] **MaxRetries** | Pointer to **NullableInt64** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional] +**SockReadTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] **Password** | Pointer to **NullableString** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional] -**DownloadConcurrency** | Pointer to **NullableInt64** | Total number of simultaneous connections. If not set then the default value will be used. | [optional] -**RateLimit** | Pointer to **NullableInt64** | Limits requests per second for each concurrent downloader | [optional] -**ClientKey** | Pointer to **NullableString** | A PEM encoded private key used for authentication. | [optional] +**TotalTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] +**Username** | Pointer to **NullableString** | The username to be used for authentication when syncing. | [optional] **ProxyPassword** | Pointer to **NullableString** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional] **PulpLabels** | Pointer to **map[string]string** | | [optional] +**ProxyUrl** | Pointer to **NullableString** | The proxy URL. Format: scheme://host:port | [optional] +**ClientKey** | Pointer to **NullableString** | A PEM encoded private key used for authentication. | [optional] +**ConnectTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] +**CaCert** | Pointer to **NullableString** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] **TlsValidation** | Pointer to **bool** | If True, TLS peer validation must be performed. | [optional] +**SockConnectTimeout** | Pointer to **NullableFloat64** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] **Url** | Pointer to **string** | The URL of an external content source. | [optional] -**CaCert** | Pointer to **NullableString** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional] +**ProxyUsername** | Pointer to **NullableString** | The username to authenticte to the proxy. | [optional] +**Headers** | Pointer to **[]map[string]interface{}** | Headers for aiohttp.Clientsession | [optional] **MetadataOnly** | Pointer to **bool** | If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL. | [optional] **GitRef** | Pointer to **string** | A git ref. e.g.: branch, tag, or commit sha. | [optional] @@ -46,136 +46,76 @@ NewPatchedansibleGitRemoteWithDefaults instantiates a new PatchedansibleGitRemot This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetHeaders - -`func (o *PatchedansibleGitRemote) GetHeaders() []map[string]interface{}` - -GetHeaders returns the Headers field if non-nil, zero value otherwise. - -### GetHeadersOk - -`func (o *PatchedansibleGitRemote) GetHeadersOk() (*[]map[string]interface{}, bool)` - -GetHeadersOk returns a tuple with the Headers field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHeaders - -`func (o *PatchedansibleGitRemote) SetHeaders(v []map[string]interface{})` - -SetHeaders sets Headers field to given value. - -### HasHeaders - -`func (o *PatchedansibleGitRemote) HasHeaders() bool` - -HasHeaders returns a boolean if a field has been set. - -### GetSockReadTimeout - -`func (o *PatchedansibleGitRemote) GetSockReadTimeout() float64` - -GetSockReadTimeout returns the SockReadTimeout field if non-nil, zero value otherwise. - -### GetSockReadTimeoutOk - -`func (o *PatchedansibleGitRemote) GetSockReadTimeoutOk() (*float64, bool)` - -GetSockReadTimeoutOk returns a tuple with the SockReadTimeout field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSockReadTimeout - -`func (o *PatchedansibleGitRemote) SetSockReadTimeout(v float64)` - -SetSockReadTimeout sets SockReadTimeout field to given value. - -### HasSockReadTimeout - -`func (o *PatchedansibleGitRemote) HasSockReadTimeout() bool` - -HasSockReadTimeout returns a boolean if a field has been set. - -### SetSockReadTimeoutNil - -`func (o *PatchedansibleGitRemote) SetSockReadTimeoutNil(b bool)` - - SetSockReadTimeoutNil sets the value for SockReadTimeout to be an explicit nil - -### UnsetSockReadTimeout -`func (o *PatchedansibleGitRemote) UnsetSockReadTimeout()` - -UnsetSockReadTimeout ensures that no value is present for SockReadTimeout, not even an explicit nil -### GetSockConnectTimeout +### GetDownloadConcurrency -`func (o *PatchedansibleGitRemote) GetSockConnectTimeout() float64` +`func (o *PatchedansibleGitRemote) GetDownloadConcurrency() int64` -GetSockConnectTimeout returns the SockConnectTimeout field if non-nil, zero value otherwise. +GetDownloadConcurrency returns the DownloadConcurrency field if non-nil, zero value otherwise. -### GetSockConnectTimeoutOk +### GetDownloadConcurrencyOk -`func (o *PatchedansibleGitRemote) GetSockConnectTimeoutOk() (*float64, bool)` +`func (o *PatchedansibleGitRemote) GetDownloadConcurrencyOk() (*int64, bool)` -GetSockConnectTimeoutOk returns a tuple with the SockConnectTimeout field if it's non-nil, zero value otherwise +GetDownloadConcurrencyOk returns a tuple with the DownloadConcurrency field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSockConnectTimeout +### SetDownloadConcurrency -`func (o *PatchedansibleGitRemote) SetSockConnectTimeout(v float64)` +`func (o *PatchedansibleGitRemote) SetDownloadConcurrency(v int64)` -SetSockConnectTimeout sets SockConnectTimeout field to given value. +SetDownloadConcurrency sets DownloadConcurrency field to given value. -### HasSockConnectTimeout +### HasDownloadConcurrency -`func (o *PatchedansibleGitRemote) HasSockConnectTimeout() bool` +`func (o *PatchedansibleGitRemote) HasDownloadConcurrency() bool` -HasSockConnectTimeout returns a boolean if a field has been set. +HasDownloadConcurrency returns a boolean if a field has been set. -### SetSockConnectTimeoutNil +### SetDownloadConcurrencyNil -`func (o *PatchedansibleGitRemote) SetSockConnectTimeoutNil(b bool)` +`func (o *PatchedansibleGitRemote) SetDownloadConcurrencyNil(b bool)` - SetSockConnectTimeoutNil sets the value for SockConnectTimeout to be an explicit nil + SetDownloadConcurrencyNil sets the value for DownloadConcurrency to be an explicit nil -### UnsetSockConnectTimeout -`func (o *PatchedansibleGitRemote) UnsetSockConnectTimeout()` +### UnsetDownloadConcurrency +`func (o *PatchedansibleGitRemote) UnsetDownloadConcurrency()` -UnsetSockConnectTimeout ensures that no value is present for SockConnectTimeout, not even an explicit nil -### GetConnectTimeout +UnsetDownloadConcurrency ensures that no value is present for DownloadConcurrency, not even an explicit nil +### GetRateLimit -`func (o *PatchedansibleGitRemote) GetConnectTimeout() float64` +`func (o *PatchedansibleGitRemote) GetRateLimit() int64` -GetConnectTimeout returns the ConnectTimeout field if non-nil, zero value otherwise. +GetRateLimit returns the RateLimit field if non-nil, zero value otherwise. -### GetConnectTimeoutOk +### GetRateLimitOk -`func (o *PatchedansibleGitRemote) GetConnectTimeoutOk() (*float64, bool)` +`func (o *PatchedansibleGitRemote) GetRateLimitOk() (*int64, bool)` -GetConnectTimeoutOk returns a tuple with the ConnectTimeout field if it's non-nil, zero value otherwise +GetRateLimitOk returns a tuple with the RateLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetConnectTimeout +### SetRateLimit -`func (o *PatchedansibleGitRemote) SetConnectTimeout(v float64)` +`func (o *PatchedansibleGitRemote) SetRateLimit(v int64)` -SetConnectTimeout sets ConnectTimeout field to given value. +SetRateLimit sets RateLimit field to given value. -### HasConnectTimeout +### HasRateLimit -`func (o *PatchedansibleGitRemote) HasConnectTimeout() bool` +`func (o *PatchedansibleGitRemote) HasRateLimit() bool` -HasConnectTimeout returns a boolean if a field has been set. +HasRateLimit returns a boolean if a field has been set. -### SetConnectTimeoutNil +### SetRateLimitNil -`func (o *PatchedansibleGitRemote) SetConnectTimeoutNil(b bool)` +`func (o *PatchedansibleGitRemote) SetRateLimitNil(b bool)` - SetConnectTimeoutNil sets the value for ConnectTimeout to be an explicit nil + SetRateLimitNil sets the value for RateLimit to be an explicit nil -### UnsetConnectTimeout -`func (o *PatchedansibleGitRemote) UnsetConnectTimeout()` +### UnsetRateLimit +`func (o *PatchedansibleGitRemote) UnsetRateLimit()` -UnsetConnectTimeout ensures that no value is present for ConnectTimeout, not even an explicit nil +UnsetRateLimit ensures that no value is present for RateLimit, not even an explicit nil ### GetName `func (o *PatchedansibleGitRemote) GetName() string` @@ -236,111 +176,111 @@ HasClientCert returns a boolean if a field has been set. `func (o *PatchedansibleGitRemote) UnsetClientCert()` UnsetClientCert ensures that no value is present for ClientCert, not even an explicit nil -### GetProxyUrl +### GetMaxRetries -`func (o *PatchedansibleGitRemote) GetProxyUrl() string` +`func (o *PatchedansibleGitRemote) GetMaxRetries() int64` -GetProxyUrl returns the ProxyUrl field if non-nil, zero value otherwise. +GetMaxRetries returns the MaxRetries field if non-nil, zero value otherwise. -### GetProxyUrlOk +### GetMaxRetriesOk -`func (o *PatchedansibleGitRemote) GetProxyUrlOk() (*string, bool)` +`func (o *PatchedansibleGitRemote) GetMaxRetriesOk() (*int64, bool)` -GetProxyUrlOk returns a tuple with the ProxyUrl field if it's non-nil, zero value otherwise +GetMaxRetriesOk returns a tuple with the MaxRetries field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetProxyUrl +### SetMaxRetries -`func (o *PatchedansibleGitRemote) SetProxyUrl(v string)` +`func (o *PatchedansibleGitRemote) SetMaxRetries(v int64)` -SetProxyUrl sets ProxyUrl field to given value. +SetMaxRetries sets MaxRetries field to given value. -### HasProxyUrl +### HasMaxRetries -`func (o *PatchedansibleGitRemote) HasProxyUrl() bool` +`func (o *PatchedansibleGitRemote) HasMaxRetries() bool` -HasProxyUrl returns a boolean if a field has been set. +HasMaxRetries returns a boolean if a field has been set. -### SetProxyUrlNil +### SetMaxRetriesNil -`func (o *PatchedansibleGitRemote) SetProxyUrlNil(b bool)` +`func (o *PatchedansibleGitRemote) SetMaxRetriesNil(b bool)` - SetProxyUrlNil sets the value for ProxyUrl to be an explicit nil + SetMaxRetriesNil sets the value for MaxRetries to be an explicit nil -### UnsetProxyUrl -`func (o *PatchedansibleGitRemote) UnsetProxyUrl()` +### UnsetMaxRetries +`func (o *PatchedansibleGitRemote) UnsetMaxRetries()` -UnsetProxyUrl ensures that no value is present for ProxyUrl, not even an explicit nil -### GetProxyUsername +UnsetMaxRetries ensures that no value is present for MaxRetries, not even an explicit nil +### GetSockReadTimeout -`func (o *PatchedansibleGitRemote) GetProxyUsername() string` +`func (o *PatchedansibleGitRemote) GetSockReadTimeout() float64` -GetProxyUsername returns the ProxyUsername field if non-nil, zero value otherwise. +GetSockReadTimeout returns the SockReadTimeout field if non-nil, zero value otherwise. -### GetProxyUsernameOk +### GetSockReadTimeoutOk -`func (o *PatchedansibleGitRemote) GetProxyUsernameOk() (*string, bool)` +`func (o *PatchedansibleGitRemote) GetSockReadTimeoutOk() (*float64, bool)` -GetProxyUsernameOk returns a tuple with the ProxyUsername field if it's non-nil, zero value otherwise +GetSockReadTimeoutOk returns a tuple with the SockReadTimeout field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetProxyUsername +### SetSockReadTimeout -`func (o *PatchedansibleGitRemote) SetProxyUsername(v string)` +`func (o *PatchedansibleGitRemote) SetSockReadTimeout(v float64)` -SetProxyUsername sets ProxyUsername field to given value. +SetSockReadTimeout sets SockReadTimeout field to given value. -### HasProxyUsername +### HasSockReadTimeout -`func (o *PatchedansibleGitRemote) HasProxyUsername() bool` +`func (o *PatchedansibleGitRemote) HasSockReadTimeout() bool` -HasProxyUsername returns a boolean if a field has been set. +HasSockReadTimeout returns a boolean if a field has been set. -### SetProxyUsernameNil +### SetSockReadTimeoutNil -`func (o *PatchedansibleGitRemote) SetProxyUsernameNil(b bool)` +`func (o *PatchedansibleGitRemote) SetSockReadTimeoutNil(b bool)` - SetProxyUsernameNil sets the value for ProxyUsername to be an explicit nil + SetSockReadTimeoutNil sets the value for SockReadTimeout to be an explicit nil -### UnsetProxyUsername -`func (o *PatchedansibleGitRemote) UnsetProxyUsername()` +### UnsetSockReadTimeout +`func (o *PatchedansibleGitRemote) UnsetSockReadTimeout()` -UnsetProxyUsername ensures that no value is present for ProxyUsername, not even an explicit nil -### GetUsername +UnsetSockReadTimeout ensures that no value is present for SockReadTimeout, not even an explicit nil +### GetPassword -`func (o *PatchedansibleGitRemote) GetUsername() string` +`func (o *PatchedansibleGitRemote) GetPassword() string` -GetUsername returns the Username field if non-nil, zero value otherwise. +GetPassword returns the Password field if non-nil, zero value otherwise. -### GetUsernameOk +### GetPasswordOk -`func (o *PatchedansibleGitRemote) GetUsernameOk() (*string, bool)` +`func (o *PatchedansibleGitRemote) GetPasswordOk() (*string, bool)` -GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetUsername +### SetPassword -`func (o *PatchedansibleGitRemote) SetUsername(v string)` +`func (o *PatchedansibleGitRemote) SetPassword(v string)` -SetUsername sets Username field to given value. +SetPassword sets Password field to given value. -### HasUsername +### HasPassword -`func (o *PatchedansibleGitRemote) HasUsername() bool` +`func (o *PatchedansibleGitRemote) HasPassword() bool` -HasUsername returns a boolean if a field has been set. +HasPassword returns a boolean if a field has been set. -### SetUsernameNil +### SetPasswordNil -`func (o *PatchedansibleGitRemote) SetUsernameNil(b bool)` +`func (o *PatchedansibleGitRemote) SetPasswordNil(b bool)` - SetUsernameNil sets the value for Username to be an explicit nil + SetPasswordNil sets the value for Password to be an explicit nil -### UnsetUsername -`func (o *PatchedansibleGitRemote) UnsetUsername()` +### UnsetPassword +`func (o *PatchedansibleGitRemote) UnsetPassword()` -UnsetUsername ensures that no value is present for Username, not even an explicit nil +UnsetPassword ensures that no value is present for Password, not even an explicit nil ### GetTotalTimeout `func (o *PatchedansibleGitRemote) GetTotalTimeout() float64` @@ -376,146 +316,136 @@ HasTotalTimeout returns a boolean if a field has been set. `func (o *PatchedansibleGitRemote) UnsetTotalTimeout()` UnsetTotalTimeout ensures that no value is present for TotalTimeout, not even an explicit nil -### GetMaxRetries +### GetUsername -`func (o *PatchedansibleGitRemote) GetMaxRetries() int64` +`func (o *PatchedansibleGitRemote) GetUsername() string` -GetMaxRetries returns the MaxRetries field if non-nil, zero value otherwise. +GetUsername returns the Username field if non-nil, zero value otherwise. -### GetMaxRetriesOk +### GetUsernameOk -`func (o *PatchedansibleGitRemote) GetMaxRetriesOk() (*int64, bool)` +`func (o *PatchedansibleGitRemote) GetUsernameOk() (*string, bool)` -GetMaxRetriesOk returns a tuple with the MaxRetries field if it's non-nil, zero value otherwise +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMaxRetries +### SetUsername -`func (o *PatchedansibleGitRemote) SetMaxRetries(v int64)` +`func (o *PatchedansibleGitRemote) SetUsername(v string)` -SetMaxRetries sets MaxRetries field to given value. +SetUsername sets Username field to given value. -### HasMaxRetries +### HasUsername -`func (o *PatchedansibleGitRemote) HasMaxRetries() bool` +`func (o *PatchedansibleGitRemote) HasUsername() bool` -HasMaxRetries returns a boolean if a field has been set. +HasUsername returns a boolean if a field has been set. -### SetMaxRetriesNil +### SetUsernameNil -`func (o *PatchedansibleGitRemote) SetMaxRetriesNil(b bool)` +`func (o *PatchedansibleGitRemote) SetUsernameNil(b bool)` - SetMaxRetriesNil sets the value for MaxRetries to be an explicit nil + SetUsernameNil sets the value for Username to be an explicit nil -### UnsetMaxRetries -`func (o *PatchedansibleGitRemote) UnsetMaxRetries()` +### UnsetUsername +`func (o *PatchedansibleGitRemote) UnsetUsername()` -UnsetMaxRetries ensures that no value is present for MaxRetries, not even an explicit nil -### GetPassword +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetProxyPassword -`func (o *PatchedansibleGitRemote) GetPassword() string` +`func (o *PatchedansibleGitRemote) GetProxyPassword() string` -GetPassword returns the Password field if non-nil, zero value otherwise. +GetProxyPassword returns the ProxyPassword field if non-nil, zero value otherwise. -### GetPasswordOk +### GetProxyPasswordOk -`func (o *PatchedansibleGitRemote) GetPasswordOk() (*string, bool)` +`func (o *PatchedansibleGitRemote) GetProxyPasswordOk() (*string, bool)` -GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +GetProxyPasswordOk returns a tuple with the ProxyPassword field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPassword +### SetProxyPassword -`func (o *PatchedansibleGitRemote) SetPassword(v string)` +`func (o *PatchedansibleGitRemote) SetProxyPassword(v string)` -SetPassword sets Password field to given value. +SetProxyPassword sets ProxyPassword field to given value. -### HasPassword +### HasProxyPassword -`func (o *PatchedansibleGitRemote) HasPassword() bool` +`func (o *PatchedansibleGitRemote) HasProxyPassword() bool` -HasPassword returns a boolean if a field has been set. +HasProxyPassword returns a boolean if a field has been set. -### SetPasswordNil +### SetProxyPasswordNil -`func (o *PatchedansibleGitRemote) SetPasswordNil(b bool)` +`func (o *PatchedansibleGitRemote) SetProxyPasswordNil(b bool)` - SetPasswordNil sets the value for Password to be an explicit nil + SetProxyPasswordNil sets the value for ProxyPassword to be an explicit nil -### UnsetPassword -`func (o *PatchedansibleGitRemote) UnsetPassword()` +### UnsetProxyPassword +`func (o *PatchedansibleGitRemote) UnsetProxyPassword()` -UnsetPassword ensures that no value is present for Password, not even an explicit nil -### GetDownloadConcurrency +UnsetProxyPassword ensures that no value is present for ProxyPassword, not even an explicit nil +### GetPulpLabels -`func (o *PatchedansibleGitRemote) GetDownloadConcurrency() int64` +`func (o *PatchedansibleGitRemote) GetPulpLabels() map[string]string` -GetDownloadConcurrency returns the DownloadConcurrency field if non-nil, zero value otherwise. +GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. -### GetDownloadConcurrencyOk +### GetPulpLabelsOk -`func (o *PatchedansibleGitRemote) GetDownloadConcurrencyOk() (*int64, bool)` +`func (o *PatchedansibleGitRemote) GetPulpLabelsOk() (*map[string]string, bool)` -GetDownloadConcurrencyOk returns a tuple with the DownloadConcurrency field if it's non-nil, zero value otherwise +GetPulpLabelsOk returns a tuple with the PulpLabels field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDownloadConcurrency - -`func (o *PatchedansibleGitRemote) SetDownloadConcurrency(v int64)` - -SetDownloadConcurrency sets DownloadConcurrency field to given value. - -### HasDownloadConcurrency - -`func (o *PatchedansibleGitRemote) HasDownloadConcurrency() bool` +### SetPulpLabels -HasDownloadConcurrency returns a boolean if a field has been set. +`func (o *PatchedansibleGitRemote) SetPulpLabels(v map[string]string)` -### SetDownloadConcurrencyNil +SetPulpLabels sets PulpLabels field to given value. -`func (o *PatchedansibleGitRemote) SetDownloadConcurrencyNil(b bool)` +### HasPulpLabels - SetDownloadConcurrencyNil sets the value for DownloadConcurrency to be an explicit nil +`func (o *PatchedansibleGitRemote) HasPulpLabels() bool` -### UnsetDownloadConcurrency -`func (o *PatchedansibleGitRemote) UnsetDownloadConcurrency()` +HasPulpLabels returns a boolean if a field has been set. -UnsetDownloadConcurrency ensures that no value is present for DownloadConcurrency, not even an explicit nil -### GetRateLimit +### GetProxyUrl -`func (o *PatchedansibleGitRemote) GetRateLimit() int64` +`func (o *PatchedansibleGitRemote) GetProxyUrl() string` -GetRateLimit returns the RateLimit field if non-nil, zero value otherwise. +GetProxyUrl returns the ProxyUrl field if non-nil, zero value otherwise. -### GetRateLimitOk +### GetProxyUrlOk -`func (o *PatchedansibleGitRemote) GetRateLimitOk() (*int64, bool)` +`func (o *PatchedansibleGitRemote) GetProxyUrlOk() (*string, bool)` -GetRateLimitOk returns a tuple with the RateLimit field if it's non-nil, zero value otherwise +GetProxyUrlOk returns a tuple with the ProxyUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetRateLimit +### SetProxyUrl -`func (o *PatchedansibleGitRemote) SetRateLimit(v int64)` +`func (o *PatchedansibleGitRemote) SetProxyUrl(v string)` -SetRateLimit sets RateLimit field to given value. +SetProxyUrl sets ProxyUrl field to given value. -### HasRateLimit +### HasProxyUrl -`func (o *PatchedansibleGitRemote) HasRateLimit() bool` +`func (o *PatchedansibleGitRemote) HasProxyUrl() bool` -HasRateLimit returns a boolean if a field has been set. +HasProxyUrl returns a boolean if a field has been set. -### SetRateLimitNil +### SetProxyUrlNil -`func (o *PatchedansibleGitRemote) SetRateLimitNil(b bool)` +`func (o *PatchedansibleGitRemote) SetProxyUrlNil(b bool)` - SetRateLimitNil sets the value for RateLimit to be an explicit nil + SetProxyUrlNil sets the value for ProxyUrl to be an explicit nil -### UnsetRateLimit -`func (o *PatchedansibleGitRemote) UnsetRateLimit()` +### UnsetProxyUrl +`func (o *PatchedansibleGitRemote) UnsetProxyUrl()` -UnsetRateLimit ensures that no value is present for RateLimit, not even an explicit nil +UnsetProxyUrl ensures that no value is present for ProxyUrl, not even an explicit nil ### GetClientKey `func (o *PatchedansibleGitRemote) GetClientKey() string` @@ -551,66 +481,76 @@ HasClientKey returns a boolean if a field has been set. `func (o *PatchedansibleGitRemote) UnsetClientKey()` UnsetClientKey ensures that no value is present for ClientKey, not even an explicit nil -### GetProxyPassword +### GetConnectTimeout -`func (o *PatchedansibleGitRemote) GetProxyPassword() string` +`func (o *PatchedansibleGitRemote) GetConnectTimeout() float64` -GetProxyPassword returns the ProxyPassword field if non-nil, zero value otherwise. +GetConnectTimeout returns the ConnectTimeout field if non-nil, zero value otherwise. -### GetProxyPasswordOk +### GetConnectTimeoutOk -`func (o *PatchedansibleGitRemote) GetProxyPasswordOk() (*string, bool)` +`func (o *PatchedansibleGitRemote) GetConnectTimeoutOk() (*float64, bool)` -GetProxyPasswordOk returns a tuple with the ProxyPassword field if it's non-nil, zero value otherwise +GetConnectTimeoutOk returns a tuple with the ConnectTimeout field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetProxyPassword +### SetConnectTimeout -`func (o *PatchedansibleGitRemote) SetProxyPassword(v string)` +`func (o *PatchedansibleGitRemote) SetConnectTimeout(v float64)` -SetProxyPassword sets ProxyPassword field to given value. +SetConnectTimeout sets ConnectTimeout field to given value. -### HasProxyPassword +### HasConnectTimeout -`func (o *PatchedansibleGitRemote) HasProxyPassword() bool` +`func (o *PatchedansibleGitRemote) HasConnectTimeout() bool` -HasProxyPassword returns a boolean if a field has been set. +HasConnectTimeout returns a boolean if a field has been set. -### SetProxyPasswordNil +### SetConnectTimeoutNil -`func (o *PatchedansibleGitRemote) SetProxyPasswordNil(b bool)` +`func (o *PatchedansibleGitRemote) SetConnectTimeoutNil(b bool)` - SetProxyPasswordNil sets the value for ProxyPassword to be an explicit nil + SetConnectTimeoutNil sets the value for ConnectTimeout to be an explicit nil -### UnsetProxyPassword -`func (o *PatchedansibleGitRemote) UnsetProxyPassword()` +### UnsetConnectTimeout +`func (o *PatchedansibleGitRemote) UnsetConnectTimeout()` -UnsetProxyPassword ensures that no value is present for ProxyPassword, not even an explicit nil -### GetPulpLabels +UnsetConnectTimeout ensures that no value is present for ConnectTimeout, not even an explicit nil +### GetCaCert -`func (o *PatchedansibleGitRemote) GetPulpLabels() map[string]string` +`func (o *PatchedansibleGitRemote) GetCaCert() string` -GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. +GetCaCert returns the CaCert field if non-nil, zero value otherwise. -### GetPulpLabelsOk +### GetCaCertOk -`func (o *PatchedansibleGitRemote) GetPulpLabelsOk() (*map[string]string, bool)` +`func (o *PatchedansibleGitRemote) GetCaCertOk() (*string, bool)` -GetPulpLabelsOk returns a tuple with the PulpLabels field if it's non-nil, zero value otherwise +GetCaCertOk returns a tuple with the CaCert field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPulpLabels +### SetCaCert -`func (o *PatchedansibleGitRemote) SetPulpLabels(v map[string]string)` +`func (o *PatchedansibleGitRemote) SetCaCert(v string)` -SetPulpLabels sets PulpLabels field to given value. +SetCaCert sets CaCert field to given value. -### HasPulpLabels +### HasCaCert -`func (o *PatchedansibleGitRemote) HasPulpLabels() bool` +`func (o *PatchedansibleGitRemote) HasCaCert() bool` -HasPulpLabels returns a boolean if a field has been set. +HasCaCert returns a boolean if a field has been set. + +### SetCaCertNil + +`func (o *PatchedansibleGitRemote) SetCaCertNil(b bool)` + + SetCaCertNil sets the value for CaCert to be an explicit nil +### UnsetCaCert +`func (o *PatchedansibleGitRemote) UnsetCaCert()` + +UnsetCaCert ensures that no value is present for CaCert, not even an explicit nil ### GetTlsValidation `func (o *PatchedansibleGitRemote) GetTlsValidation() bool` @@ -636,6 +576,41 @@ SetTlsValidation sets TlsValidation field to given value. HasTlsValidation returns a boolean if a field has been set. +### GetSockConnectTimeout + +`func (o *PatchedansibleGitRemote) GetSockConnectTimeout() float64` + +GetSockConnectTimeout returns the SockConnectTimeout field if non-nil, zero value otherwise. + +### GetSockConnectTimeoutOk + +`func (o *PatchedansibleGitRemote) GetSockConnectTimeoutOk() (*float64, bool)` + +GetSockConnectTimeoutOk returns a tuple with the SockConnectTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSockConnectTimeout + +`func (o *PatchedansibleGitRemote) SetSockConnectTimeout(v float64)` + +SetSockConnectTimeout sets SockConnectTimeout field to given value. + +### HasSockConnectTimeout + +`func (o *PatchedansibleGitRemote) HasSockConnectTimeout() bool` + +HasSockConnectTimeout returns a boolean if a field has been set. + +### SetSockConnectTimeoutNil + +`func (o *PatchedansibleGitRemote) SetSockConnectTimeoutNil(b bool)` + + SetSockConnectTimeoutNil sets the value for SockConnectTimeout to be an explicit nil + +### UnsetSockConnectTimeout +`func (o *PatchedansibleGitRemote) UnsetSockConnectTimeout()` + +UnsetSockConnectTimeout ensures that no value is present for SockConnectTimeout, not even an explicit nil ### GetUrl `func (o *PatchedansibleGitRemote) GetUrl() string` @@ -661,41 +636,66 @@ SetUrl sets Url field to given value. HasUrl returns a boolean if a field has been set. -### GetCaCert +### GetProxyUsername -`func (o *PatchedansibleGitRemote) GetCaCert() string` +`func (o *PatchedansibleGitRemote) GetProxyUsername() string` -GetCaCert returns the CaCert field if non-nil, zero value otherwise. +GetProxyUsername returns the ProxyUsername field if non-nil, zero value otherwise. -### GetCaCertOk +### GetProxyUsernameOk -`func (o *PatchedansibleGitRemote) GetCaCertOk() (*string, bool)` +`func (o *PatchedansibleGitRemote) GetProxyUsernameOk() (*string, bool)` -GetCaCertOk returns a tuple with the CaCert field if it's non-nil, zero value otherwise +GetProxyUsernameOk returns a tuple with the ProxyUsername field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetCaCert +### SetProxyUsername -`func (o *PatchedansibleGitRemote) SetCaCert(v string)` +`func (o *PatchedansibleGitRemote) SetProxyUsername(v string)` -SetCaCert sets CaCert field to given value. +SetProxyUsername sets ProxyUsername field to given value. -### HasCaCert +### HasProxyUsername -`func (o *PatchedansibleGitRemote) HasCaCert() bool` +`func (o *PatchedansibleGitRemote) HasProxyUsername() bool` -HasCaCert returns a boolean if a field has been set. +HasProxyUsername returns a boolean if a field has been set. -### SetCaCertNil +### SetProxyUsernameNil -`func (o *PatchedansibleGitRemote) SetCaCertNil(b bool)` +`func (o *PatchedansibleGitRemote) SetProxyUsernameNil(b bool)` - SetCaCertNil sets the value for CaCert to be an explicit nil + SetProxyUsernameNil sets the value for ProxyUsername to be an explicit nil -### UnsetCaCert -`func (o *PatchedansibleGitRemote) UnsetCaCert()` +### UnsetProxyUsername +`func (o *PatchedansibleGitRemote) UnsetProxyUsername()` + +UnsetProxyUsername ensures that no value is present for ProxyUsername, not even an explicit nil +### GetHeaders + +`func (o *PatchedansibleGitRemote) GetHeaders() []map[string]interface{}` + +GetHeaders returns the Headers field if non-nil, zero value otherwise. + +### GetHeadersOk + +`func (o *PatchedansibleGitRemote) GetHeadersOk() (*[]map[string]interface{}, bool)` + +GetHeadersOk returns a tuple with the Headers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeaders + +`func (o *PatchedansibleGitRemote) SetHeaders(v []map[string]interface{})` + +SetHeaders sets Headers field to given value. + +### HasHeaders + +`func (o *PatchedansibleGitRemote) HasHeaders() bool` + +HasHeaders returns a boolean if a field has been set. -UnsetCaCert ensures that no value is present for CaCert, not even an explicit nil ### GetMetadataOnly `func (o *PatchedansibleGitRemote) GetMetadataOnly() bool` diff --git a/release/docs/PatchedcontainerContainerDistribution.md b/release/docs/PatchedcontainerContainerDistribution.md index da7d30c0..57e1f819 100644 --- a/release/docs/PatchedcontainerContainerDistribution.md +++ b/release/docs/PatchedcontainerContainerDistribution.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Repository** | Pointer to **NullableString** | The latest RepositoryVersion for this Repository will be served. | [optional] **Name** | Pointer to **string** | A unique name. Ex, `rawhide` and `stable`. | [optional] -**BasePath** | Pointer to **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional] **PulpLabels** | Pointer to **map[string]string** | | [optional] **ContentGuard** | Pointer to **string** | An optional content-guard. If none is specified, a default one will be used. | [optional] -**Repository** | Pointer to **NullableString** | The latest RepositoryVersion for this Repository will be served. | [optional] +**BasePath** | Pointer to **string** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional] **RepositoryVersion** | Pointer to **NullableString** | RepositoryVersion to be served | [optional] **Private** | Pointer to **bool** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional] **Description** | Pointer to **NullableString** | An optional description. | [optional] @@ -32,55 +32,65 @@ NewPatchedcontainerContainerDistributionWithDefaults instantiates a new Patchedc This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetName +### GetRepository -`func (o *PatchedcontainerContainerDistribution) GetName() string` +`func (o *PatchedcontainerContainerDistribution) GetRepository() string` -GetName returns the Name field if non-nil, zero value otherwise. +GetRepository returns the Repository field if non-nil, zero value otherwise. -### GetNameOk +### GetRepositoryOk -`func (o *PatchedcontainerContainerDistribution) GetNameOk() (*string, bool)` +`func (o *PatchedcontainerContainerDistribution) GetRepositoryOk() (*string, bool)` -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetName +### SetRepository -`func (o *PatchedcontainerContainerDistribution) SetName(v string)` +`func (o *PatchedcontainerContainerDistribution) SetRepository(v string)` -SetName sets Name field to given value. +SetRepository sets Repository field to given value. -### HasName +### HasRepository -`func (o *PatchedcontainerContainerDistribution) HasName() bool` +`func (o *PatchedcontainerContainerDistribution) HasRepository() bool` -HasName returns a boolean if a field has been set. +HasRepository returns a boolean if a field has been set. -### GetBasePath +### SetRepositoryNil -`func (o *PatchedcontainerContainerDistribution) GetBasePath() string` +`func (o *PatchedcontainerContainerDistribution) SetRepositoryNil(b bool)` -GetBasePath returns the BasePath field if non-nil, zero value otherwise. + SetRepositoryNil sets the value for Repository to be an explicit nil -### GetBasePathOk +### UnsetRepository +`func (o *PatchedcontainerContainerDistribution) UnsetRepository()` -`func (o *PatchedcontainerContainerDistribution) GetBasePathOk() (*string, bool)` +UnsetRepository ensures that no value is present for Repository, not even an explicit nil +### GetName -GetBasePathOk returns a tuple with the BasePath field if it's non-nil, zero value otherwise +`func (o *PatchedcontainerContainerDistribution) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedcontainerContainerDistribution) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetBasePath +### SetName -`func (o *PatchedcontainerContainerDistribution) SetBasePath(v string)` +`func (o *PatchedcontainerContainerDistribution) SetName(v string)` -SetBasePath sets BasePath field to given value. +SetName sets Name field to given value. -### HasBasePath +### HasName -`func (o *PatchedcontainerContainerDistribution) HasBasePath() bool` +`func (o *PatchedcontainerContainerDistribution) HasName() bool` -HasBasePath returns a boolean if a field has been set. +HasName returns a boolean if a field has been set. ### GetPulpLabels @@ -132,41 +142,31 @@ SetContentGuard sets ContentGuard field to given value. HasContentGuard returns a boolean if a field has been set. -### GetRepository +### GetBasePath -`func (o *PatchedcontainerContainerDistribution) GetRepository() string` +`func (o *PatchedcontainerContainerDistribution) GetBasePath() string` -GetRepository returns the Repository field if non-nil, zero value otherwise. +GetBasePath returns the BasePath field if non-nil, zero value otherwise. -### GetRepositoryOk +### GetBasePathOk -`func (o *PatchedcontainerContainerDistribution) GetRepositoryOk() (*string, bool)` +`func (o *PatchedcontainerContainerDistribution) GetBasePathOk() (*string, bool)` -GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +GetBasePathOk returns a tuple with the BasePath field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetRepository - -`func (o *PatchedcontainerContainerDistribution) SetRepository(v string)` - -SetRepository sets Repository field to given value. - -### HasRepository - -`func (o *PatchedcontainerContainerDistribution) HasRepository() bool` +### SetBasePath -HasRepository returns a boolean if a field has been set. +`func (o *PatchedcontainerContainerDistribution) SetBasePath(v string)` -### SetRepositoryNil +SetBasePath sets BasePath field to given value. -`func (o *PatchedcontainerContainerDistribution) SetRepositoryNil(b bool)` +### HasBasePath - SetRepositoryNil sets the value for Repository to be an explicit nil +`func (o *PatchedcontainerContainerDistribution) HasBasePath() bool` -### UnsetRepository -`func (o *PatchedcontainerContainerDistribution) UnsetRepository()` +HasBasePath returns a boolean if a field has been set. -UnsetRepository ensures that no value is present for Repository, not even an explicit nil ### GetRepositoryVersion `func (o *PatchedcontainerContainerDistribution) GetRepositoryVersion() string` diff --git a/release/docs/PatchedcontainerContainerPushRepository.md b/release/docs/PatchedcontainerContainerPushRepository.md index f2dbf5c5..1c0a3d5f 100644 --- a/release/docs/PatchedcontainerContainerPushRepository.md +++ b/release/docs/PatchedcontainerContainerPushRepository.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Description** | Pointer to **NullableString** | An optional description. | [optional] -**RetainRepoVersions** | Pointer to **NullableInt64** | Retain X versions of the repository. Default is null which retains all versions. | [optional] **Name** | Pointer to **string** | A unique name for this repository. | [optional] **PulpLabels** | Pointer to **map[string]string** | | [optional] **ManifestSigningService** | Pointer to **NullableString** | A reference to an associated signing service. | [optional] +**Description** | Pointer to **NullableString** | An optional description. | [optional] +**RetainRepoVersions** | Pointer to **NullableInt64** | Retain X versions of the repository. Default is null which retains all versions. | [optional] ## Methods @@ -29,76 +29,6 @@ NewPatchedcontainerContainerPushRepositoryWithDefaults instantiates a new Patche This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetDescription - -`func (o *PatchedcontainerContainerPushRepository) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *PatchedcontainerContainerPushRepository) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *PatchedcontainerContainerPushRepository) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *PatchedcontainerContainerPushRepository) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *PatchedcontainerContainerPushRepository) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *PatchedcontainerContainerPushRepository) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetRetainRepoVersions - -`func (o *PatchedcontainerContainerPushRepository) GetRetainRepoVersions() int64` - -GetRetainRepoVersions returns the RetainRepoVersions field if non-nil, zero value otherwise. - -### GetRetainRepoVersionsOk - -`func (o *PatchedcontainerContainerPushRepository) GetRetainRepoVersionsOk() (*int64, bool)` - -GetRetainRepoVersionsOk returns a tuple with the RetainRepoVersions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRetainRepoVersions - -`func (o *PatchedcontainerContainerPushRepository) SetRetainRepoVersions(v int64)` - -SetRetainRepoVersions sets RetainRepoVersions field to given value. - -### HasRetainRepoVersions - -`func (o *PatchedcontainerContainerPushRepository) HasRetainRepoVersions() bool` - -HasRetainRepoVersions returns a boolean if a field has been set. - -### SetRetainRepoVersionsNil - -`func (o *PatchedcontainerContainerPushRepository) SetRetainRepoVersionsNil(b bool)` - - SetRetainRepoVersionsNil sets the value for RetainRepoVersions to be an explicit nil - -### UnsetRetainRepoVersions -`func (o *PatchedcontainerContainerPushRepository) UnsetRetainRepoVersions()` - -UnsetRetainRepoVersions ensures that no value is present for RetainRepoVersions, not even an explicit nil ### GetName `func (o *PatchedcontainerContainerPushRepository) GetName() string` @@ -184,6 +114,76 @@ HasManifestSigningService returns a boolean if a field has been set. `func (o *PatchedcontainerContainerPushRepository) UnsetManifestSigningService()` UnsetManifestSigningService ensures that no value is present for ManifestSigningService, not even an explicit nil +### GetDescription + +`func (o *PatchedcontainerContainerPushRepository) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedcontainerContainerPushRepository) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PatchedcontainerContainerPushRepository) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedcontainerContainerPushRepository) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *PatchedcontainerContainerPushRepository) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *PatchedcontainerContainerPushRepository) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetRetainRepoVersions + +`func (o *PatchedcontainerContainerPushRepository) GetRetainRepoVersions() int64` + +GetRetainRepoVersions returns the RetainRepoVersions field if non-nil, zero value otherwise. + +### GetRetainRepoVersionsOk + +`func (o *PatchedcontainerContainerPushRepository) GetRetainRepoVersionsOk() (*int64, bool)` + +GetRetainRepoVersionsOk returns a tuple with the RetainRepoVersions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetainRepoVersions + +`func (o *PatchedcontainerContainerPushRepository) SetRetainRepoVersions(v int64)` + +SetRetainRepoVersions sets RetainRepoVersions field to given value. + +### HasRetainRepoVersions + +`func (o *PatchedcontainerContainerPushRepository) HasRetainRepoVersions() bool` + +HasRetainRepoVersions returns a boolean if a field has been set. + +### SetRetainRepoVersionsNil + +`func (o *PatchedcontainerContainerPushRepository) SetRetainRepoVersionsNil(b bool)` + + SetRetainRepoVersionsNil sets the value for RetainRepoVersions to be an explicit nil + +### UnsetRetainRepoVersions +`func (o *PatchedcontainerContainerPushRepository) UnsetRetainRepoVersions()` + +UnsetRetainRepoVersions ensures that no value is present for RetainRepoVersions, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/release/docs/PulpAnsibleApiV3NamespacesApi.md b/release/docs/PulpAnsibleApiV3NamespacesApi.md new file mode 100644 index 00000000..8595dfac --- /dev/null +++ b/release/docs/PulpAnsibleApiV3NamespacesApi.md @@ -0,0 +1,191 @@ +# \PulpAnsibleApiV3NamespacesApi + +All URIs are relative to *http://localhost:8080* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**PulpAnsibleGalaxyApiV3NamespacesList**](PulpAnsibleApiV3NamespacesApi.md#PulpAnsibleGalaxyApiV3NamespacesList) | **Get** /pulp_ansible/galaxy/{path}/api/v3/namespaces/ | +[**PulpAnsibleGalaxyApiV3NamespacesRead**](PulpAnsibleApiV3NamespacesApi.md#PulpAnsibleGalaxyApiV3NamespacesRead) | **Get** /pulp_ansible/galaxy/{path}/api/v3/namespaces/{name}/ | + + + +## PulpAnsibleGalaxyApiV3NamespacesList + +> PaginatedansibleAnsibleNamespaceMetadataResponseList PulpAnsibleGalaxyApiV3NamespacesList(ctx, path).Company(company).CompanyContains(companyContains).CompanyIcontains(companyIcontains).CompanyIn(companyIn).CompanyStartswith(companyStartswith).Limit(limit).MetadataSha256(metadataSha256).MetadataSha256In(metadataSha256In).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + path := "path_example" // string | + company := "company_example" // string | Filter results where company matches value (optional) + companyContains := "companyContains_example" // string | Filter results where company contains value (optional) + companyIcontains := "companyIcontains_example" // string | Filter results where company contains value (optional) + companyIn := []string{"Inner_example"} // []string | Filter results where company is in a comma-separated list of values (optional) + companyStartswith := "companyStartswith_example" // string | Filter results where company starts with value (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + metadataSha256 := "metadataSha256_example" // string | Filter results where metadata_sha256 matches value (optional) + metadataSha256In := []string{"Inner_example"} // []string | Filter results where metadata_sha256 is in a comma-separated list of values (optional) + name := "name_example" // string | Filter results where name matches value (optional) + nameContains := "nameContains_example" // string | Filter results where name contains value (optional) + nameIcontains := "nameIcontains_example" // string | Filter results where name contains value (optional) + nameIn := []string{"Inner_example"} // []string | Filter results where name is in a comma-separated list of values (optional) + nameStartswith := "nameStartswith_example" // string | Filter results where name starts with value (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := []string{"Ordering_example"} // []string | Ordering (optional) + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleApiV3NamespacesApi.PulpAnsibleGalaxyApiV3NamespacesList(context.Background(), path).Company(company).CompanyContains(companyContains).CompanyIcontains(companyIcontains).CompanyIn(companyIn).CompanyStartswith(companyStartswith).Limit(limit).MetadataSha256(metadataSha256).MetadataSha256In(metadataSha256In).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleApiV3NamespacesApi.PulpAnsibleGalaxyApiV3NamespacesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyApiV3NamespacesList`: PaginatedansibleAnsibleNamespaceMetadataResponseList + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleApiV3NamespacesApi.PulpAnsibleGalaxyApiV3NamespacesList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**path** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyApiV3NamespacesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **company** | **string** | Filter results where company matches value | + **companyContains** | **string** | Filter results where company contains value | + **companyIcontains** | **string** | Filter results where company contains value | + **companyIn** | **[]string** | Filter results where company is in a comma-separated list of values | + **companyStartswith** | **string** | Filter results where company starts with value | + **limit** | **int32** | Number of results to return per page. | + **metadataSha256** | **string** | Filter results where metadata_sha256 matches value | + **metadataSha256In** | **[]string** | Filter results where metadata_sha256 is in a comma-separated list of values | + **name** | **string** | Filter results where name matches value | + **nameContains** | **string** | Filter results where name contains value | + **nameIcontains** | **string** | Filter results where name contains value | + **nameIn** | **[]string** | Filter results where name is in a comma-separated list of values | + **nameStartswith** | **string** | Filter results where name starts with value | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **[]string** | Ordering | + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**PaginatedansibleAnsibleNamespaceMetadataResponseList**](PaginatedansibleAnsibleNamespaceMetadataResponseList.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PulpAnsibleGalaxyApiV3NamespacesRead + +> AnsibleAnsibleNamespaceMetadataResponse PulpAnsibleGalaxyApiV3NamespacesRead(ctx, name, path).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + name := "name_example" // string | + path := "path_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleApiV3NamespacesApi.PulpAnsibleGalaxyApiV3NamespacesRead(context.Background(), name, path).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleApiV3NamespacesApi.PulpAnsibleGalaxyApiV3NamespacesRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyApiV3NamespacesRead`: AnsibleAnsibleNamespaceMetadataResponse + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleApiV3NamespacesApi.PulpAnsibleGalaxyApiV3NamespacesRead`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | | +**path** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyApiV3NamespacesReadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**AnsibleAnsibleNamespaceMetadataResponse**](AnsibleAnsibleNamespaceMetadataResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/release/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md b/release/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md index 893bb43c..3381ab82 100644 --- a/release/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +++ b/release/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md @@ -4,13 +4,13 @@ All URIs are relative to *http://localhost:8080* Method | HTTP request | Description ------------- | ------------- | ------------- -[**PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGet**](PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md#PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGet) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/client-configuration/ | +[**PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationRead**](PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md#PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationRead) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/client-configuration/ | -## PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGet +## PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationRead -> ClientConfigurationResponse PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGet(ctx, path).Fields(fields).ExcludeFields(excludeFields).Execute() +> ClientConfigurationResponse PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationRead(ctx, path).Fields(fields).ExcludeFields(excludeFields).Execute() @@ -35,13 +35,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGet(context.Background(), path).Fields(fields).ExcludeFields(excludeFields).Execute() + resp, r, err := apiClient.PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationRead(context.Background(), path).Fields(fields).ExcludeFields(excludeFields).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGet`: ClientConfigurationResponse - fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGet`: %v\n", resp) + // response from `PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationRead`: ClientConfigurationResponse + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationRead`: %v\n", resp) } ``` @@ -55,7 +55,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationReadRequest struct via the builder pattern Name | Type | Description | Notes diff --git a/release/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md b/release/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md new file mode 100644 index 00000000..7bed393d --- /dev/null +++ b/release/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md @@ -0,0 +1,453 @@ +# \PulpAnsibleApiV3PluginAnsibleContentNamespacesApi + +All URIs are relative to *http://localhost:8080* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreate**](PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md#PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreate) | **Post** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/ | +[**PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDelete**](PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md#PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDelete) | **Delete** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/ | +[**PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesList**](PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md#PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesList) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/ | +[**PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdate**](PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md#PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdate) | **Patch** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/ | +[**PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesRead**](PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md#PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesRead) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/ | + + + +## PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreate + +> AsyncOperationResponse PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreate(ctx, distroBasePath, path).Name(name).Company(company).Email(email).Description(description).Resources(resources).Links(links).Avatar(avatar).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + distroBasePath := "distroBasePath_example" // string | + path := "path_example" // string | + name := "name_example" // string | Required named, only accepts lowercase, numbers and underscores. + company := "company_example" // string | Optional namespace company owner. (optional) + email := "email_example" // string | Optional namespace contact email. (optional) + description := "description_example" // string | Optional short description. (optional) + resources := "resources_example" // string | Optional resource page in markdown format. (optional) + links := []openapiclient.NamespaceLink{*openapiclient.NewNamespaceLink("Url_example", "Name_example")} // []NamespaceLink | Labeled related links. (optional) + avatar := os.NewFile(1234, "some_file") // *os.File | Optional avatar image for Namespace (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreate(context.Background(), distroBasePath, path).Name(name).Company(company).Email(email).Description(description).Resources(resources).Links(links).Avatar(avatar).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreate`: AsyncOperationResponse + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**distroBasePath** | **string** | | +**path** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **name** | **string** | Required named, only accepts lowercase, numbers and underscores. | + **company** | **string** | Optional namespace company owner. | + **email** | **string** | Optional namespace contact email. | + **description** | **string** | Optional short description. | + **resources** | **string** | Optional resource page in markdown format. | + **links** | [**[]NamespaceLink**](NamespaceLink.md) | Labeled related links. | + **avatar** | ***os.File** | Optional avatar image for Namespace | + +### Return type + +[**AsyncOperationResponse**](AsyncOperationResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDelete + +> AsyncOperationResponse PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDelete(ctx, distroBasePath, name, path).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + distroBasePath := "distroBasePath_example" // string | + name := "name_example" // string | + path := "path_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDelete(context.Background(), distroBasePath, name, path).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDelete`: AsyncOperationResponse + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**distroBasePath** | **string** | | +**name** | **string** | | +**path** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**AsyncOperationResponse**](AsyncOperationResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesList + +> PaginatedansibleAnsibleNamespaceMetadataResponseList PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesList(ctx, distroBasePath, path).Company(company).CompanyContains(companyContains).CompanyIcontains(companyIcontains).CompanyIn(companyIn).CompanyStartswith(companyStartswith).Limit(limit).MetadataSha256(metadataSha256).MetadataSha256In(metadataSha256In).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + distroBasePath := "distroBasePath_example" // string | + path := "path_example" // string | + company := "company_example" // string | Filter results where company matches value (optional) + companyContains := "companyContains_example" // string | Filter results where company contains value (optional) + companyIcontains := "companyIcontains_example" // string | Filter results where company contains value (optional) + companyIn := []string{"Inner_example"} // []string | Filter results where company is in a comma-separated list of values (optional) + companyStartswith := "companyStartswith_example" // string | Filter results where company starts with value (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + metadataSha256 := "metadataSha256_example" // string | Filter results where metadata_sha256 matches value (optional) + metadataSha256In := []string{"Inner_example"} // []string | Filter results where metadata_sha256 is in a comma-separated list of values (optional) + name := "name_example" // string | Filter results where name matches value (optional) + nameContains := "nameContains_example" // string | Filter results where name contains value (optional) + nameIcontains := "nameIcontains_example" // string | Filter results where name contains value (optional) + nameIn := []string{"Inner_example"} // []string | Filter results where name is in a comma-separated list of values (optional) + nameStartswith := "nameStartswith_example" // string | Filter results where name starts with value (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := []string{"Ordering_example"} // []string | Ordering (optional) + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesList(context.Background(), distroBasePath, path).Company(company).CompanyContains(companyContains).CompanyIcontains(companyIcontains).CompanyIn(companyIn).CompanyStartswith(companyStartswith).Limit(limit).MetadataSha256(metadataSha256).MetadataSha256In(metadataSha256In).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesList`: PaginatedansibleAnsibleNamespaceMetadataResponseList + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**distroBasePath** | **string** | | +**path** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **company** | **string** | Filter results where company matches value | + **companyContains** | **string** | Filter results where company contains value | + **companyIcontains** | **string** | Filter results where company contains value | + **companyIn** | **[]string** | Filter results where company is in a comma-separated list of values | + **companyStartswith** | **string** | Filter results where company starts with value | + **limit** | **int32** | Number of results to return per page. | + **metadataSha256** | **string** | Filter results where metadata_sha256 matches value | + **metadataSha256In** | **[]string** | Filter results where metadata_sha256 is in a comma-separated list of values | + **name** | **string** | Filter results where name matches value | + **nameContains** | **string** | Filter results where name contains value | + **nameIcontains** | **string** | Filter results where name contains value | + **nameIn** | **[]string** | Filter results where name is in a comma-separated list of values | + **nameStartswith** | **string** | Filter results where name starts with value | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **[]string** | Ordering | + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**PaginatedansibleAnsibleNamespaceMetadataResponseList**](PaginatedansibleAnsibleNamespaceMetadataResponseList.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdate + +> AsyncOperationResponse PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdate(ctx, distroBasePath, name, path).Name2(name2).Company(company).Email(email).Description(description).Resources(resources).Links(links).Avatar(avatar).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + distroBasePath := "distroBasePath_example" // string | + name := "name_example" // string | + path := "path_example" // string | + name2 := "name_example" // string | Required named, only accepts lowercase, numbers and underscores. (optional) + company := "company_example" // string | Optional namespace company owner. (optional) + email := "email_example" // string | Optional namespace contact email. (optional) + description := "description_example" // string | Optional short description. (optional) + resources := "resources_example" // string | Optional resource page in markdown format. (optional) + links := []openapiclient.NamespaceLink{*openapiclient.NewNamespaceLink("Url_example", "Name_example")} // []NamespaceLink | Labeled related links. (optional) + avatar := os.NewFile(1234, "some_file") // *os.File | Optional avatar image for Namespace (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdate(context.Background(), distroBasePath, name, path).Name2(name2).Company(company).Email(email).Description(description).Resources(resources).Links(links).Avatar(avatar).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdate`: AsyncOperationResponse + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**distroBasePath** | **string** | | +**name** | **string** | | +**path** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **name2** | **string** | Required named, only accepts lowercase, numbers and underscores. | + **company** | **string** | Optional namespace company owner. | + **email** | **string** | Optional namespace contact email. | + **description** | **string** | Optional short description. | + **resources** | **string** | Optional resource page in markdown format. | + **links** | [**[]NamespaceLink**](NamespaceLink.md) | Labeled related links. | + **avatar** | ***os.File** | Optional avatar image for Namespace | + +### Return type + +[**AsyncOperationResponse**](AsyncOperationResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesRead + +> AnsibleAnsibleNamespaceMetadataResponse PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesRead(ctx, distroBasePath, name, path).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + distroBasePath := "distroBasePath_example" // string | + name := "name_example" // string | + path := "path_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesRead(context.Background(), distroBasePath, name, path).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesRead`: AnsibleAnsibleNamespaceMetadataResponse + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesRead`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**distroBasePath** | **string** | | +**name** | **string** | | +**path** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesReadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**AnsibleAnsibleNamespaceMetadataResponse**](AnsibleAnsibleNamespaceMetadataResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/release/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md b/release/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md new file mode 100644 index 00000000..4346162c --- /dev/null +++ b/release/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md @@ -0,0 +1,202 @@ +# \PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi + +All URIs are relative to *http://localhost:8080* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsList**](PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md#PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsList) | **Get** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/search/collection-versions/ | +[**PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuild**](PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md#PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuild) | **Post** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/search/collection-versions/ | + + + +## PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsList + +> PaginatedCollectionVersionSearchListResponseList PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsList(ctx, path).Dependency(dependency).Deprecated(deprecated).Distribution(distribution).DistributionBasePath(distributionBasePath).Highest(highest).IsDeprecated(isDeprecated).IsHighest(isHighest).IsSigned(isSigned).Keywords(keywords).Limit(limit).Name(name).Namespace(namespace).Offset(offset).OrderBy(orderBy).Q(q).Repository(repository).RepositoryLabel(repositoryLabel).RepositoryName(repositoryName).RepositoryVersion(repositoryVersion).Signed(signed).Tags(tags).Version(version).VersionRange(versionRange).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + path := "path_example" // string | + dependency := "dependency_example" // string | (optional) + deprecated := true // bool | (optional) + distribution := []string{"Inner_example"} // []string | Filter collectionversions that are in these distrubtion ids. (optional) + distributionBasePath := []string{"Inner_example"} // []string | Filter collectionversions that are in these base paths. (optional) + highest := true // bool | (optional) + isDeprecated := true // bool | (optional) + isHighest := true // bool | (optional) + isSigned := true // bool | (optional) + keywords := "keywords_example" // string | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + name := "name_example" // string | (optional) + namespace := "namespace_example" // string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + orderBy := []string{"OrderBy_example"} // []string | Ordering (optional) + q := "q_example" // string | (optional) + repository := []string{"Inner_example"} // []string | Filter collectionversions that are in these repository ids. (optional) + repositoryLabel := "repositoryLabel_example" // string | Filter labels by search string (optional) + repositoryName := []string{"Inner_example"} // []string | Filter collectionversions that are in these repositories. (optional) + repositoryVersion := "repositoryVersion_example" // string | (optional) + signed := true // bool | (optional) + tags := "tags_example" // string | Filter by comma separate list of tags that must all be matched (optional) + version := "version_example" // string | (optional) + versionRange := "versionRange_example" // string | (optional) + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsList(context.Background(), path).Dependency(dependency).Deprecated(deprecated).Distribution(distribution).DistributionBasePath(distributionBasePath).Highest(highest).IsDeprecated(isDeprecated).IsHighest(isHighest).IsSigned(isSigned).Keywords(keywords).Limit(limit).Name(name).Namespace(namespace).Offset(offset).OrderBy(orderBy).Q(q).Repository(repository).RepositoryLabel(repositoryLabel).RepositoryName(repositoryName).RepositoryVersion(repositoryVersion).Signed(signed).Tags(tags).Version(version).VersionRange(versionRange).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsList`: PaginatedCollectionVersionSearchListResponseList + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**path** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **dependency** | **string** | | + **deprecated** | **bool** | | + **distribution** | **[]string** | Filter collectionversions that are in these distrubtion ids. | + **distributionBasePath** | **[]string** | Filter collectionversions that are in these base paths. | + **highest** | **bool** | | + **isDeprecated** | **bool** | | + **isHighest** | **bool** | | + **isSigned** | **bool** | | + **keywords** | **string** | | + **limit** | **int32** | Number of results to return per page. | + **name** | **string** | | + **namespace** | **string** | | + **offset** | **int32** | The initial index from which to return the results. | + **orderBy** | **[]string** | Ordering | + **q** | **string** | | + **repository** | **[]string** | Filter collectionversions that are in these repository ids. | + **repositoryLabel** | **string** | Filter labels by search string | + **repositoryName** | **[]string** | Filter collectionversions that are in these repositories. | + **repositoryVersion** | **string** | | + **signed** | **bool** | | + **tags** | **string** | Filter by comma separate list of tags that must all be matched | + **version** | **string** | | + **versionRange** | **string** | | + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**PaginatedCollectionVersionSearchListResponseList**](PaginatedCollectionVersionSearchListResponseList.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuild + +> CollectionVersionSearchListResponse PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuild(ctx, path).CollectionVersionSearchList(collectionVersionSearchList).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + path := "path_example" // string | + collectionVersionSearchList := *openapiclient.NewCollectionVersionSearchList(*openapiclient.NewRepository("Name_example"), map[string]interface{}(123), "TODO", false, false, false) // CollectionVersionSearchList | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuild(context.Background(), path).CollectionVersionSearchList(collectionVersionSearchList).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuild``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuild`: CollectionVersionSearchListResponse + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuild`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**path** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **collectionVersionSearchList** | [**CollectionVersionSearchList**](CollectionVersionSearchList.md) | | + +### Return type + +[**CollectionVersionSearchListResponse**](CollectionVersionSearchListResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/release/docs/PulpAnsibleDefaultApiV3NamespacesApi.md b/release/docs/PulpAnsibleDefaultApiV3NamespacesApi.md new file mode 100644 index 00000000..e9f07a21 --- /dev/null +++ b/release/docs/PulpAnsibleDefaultApiV3NamespacesApi.md @@ -0,0 +1,182 @@ +# \PulpAnsibleDefaultApiV3NamespacesApi + +All URIs are relative to *http://localhost:8080* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**PulpAnsibleGalaxyDefaultApiV3NamespacesList**](PulpAnsibleDefaultApiV3NamespacesApi.md#PulpAnsibleGalaxyDefaultApiV3NamespacesList) | **Get** /pulp_ansible/galaxy/default/api/v3/namespaces/ | +[**PulpAnsibleGalaxyDefaultApiV3NamespacesRead**](PulpAnsibleDefaultApiV3NamespacesApi.md#PulpAnsibleGalaxyDefaultApiV3NamespacesRead) | **Get** /pulp_ansible/galaxy/default/api/v3/namespaces/{name}/ | + + + +## PulpAnsibleGalaxyDefaultApiV3NamespacesList + +> PaginatedansibleAnsibleNamespaceMetadataResponseList PulpAnsibleGalaxyDefaultApiV3NamespacesList(ctx).Company(company).CompanyContains(companyContains).CompanyIcontains(companyIcontains).CompanyIn(companyIn).CompanyStartswith(companyStartswith).Limit(limit).MetadataSha256(metadataSha256).MetadataSha256In(metadataSha256In).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + company := "company_example" // string | Filter results where company matches value (optional) + companyContains := "companyContains_example" // string | Filter results where company contains value (optional) + companyIcontains := "companyIcontains_example" // string | Filter results where company contains value (optional) + companyIn := []string{"Inner_example"} // []string | Filter results where company is in a comma-separated list of values (optional) + companyStartswith := "companyStartswith_example" // string | Filter results where company starts with value (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + metadataSha256 := "metadataSha256_example" // string | Filter results where metadata_sha256 matches value (optional) + metadataSha256In := []string{"Inner_example"} // []string | Filter results where metadata_sha256 is in a comma-separated list of values (optional) + name := "name_example" // string | Filter results where name matches value (optional) + nameContains := "nameContains_example" // string | Filter results where name contains value (optional) + nameIcontains := "nameIcontains_example" // string | Filter results where name contains value (optional) + nameIn := []string{"Inner_example"} // []string | Filter results where name is in a comma-separated list of values (optional) + nameStartswith := "nameStartswith_example" // string | Filter results where name starts with value (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := []string{"Ordering_example"} // []string | Ordering (optional) + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleDefaultApiV3NamespacesApi.PulpAnsibleGalaxyDefaultApiV3NamespacesList(context.Background()).Company(company).CompanyContains(companyContains).CompanyIcontains(companyIcontains).CompanyIn(companyIn).CompanyStartswith(companyStartswith).Limit(limit).MetadataSha256(metadataSha256).MetadataSha256In(metadataSha256In).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleDefaultApiV3NamespacesApi.PulpAnsibleGalaxyDefaultApiV3NamespacesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyDefaultApiV3NamespacesList`: PaginatedansibleAnsibleNamespaceMetadataResponseList + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleDefaultApiV3NamespacesApi.PulpAnsibleGalaxyDefaultApiV3NamespacesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyDefaultApiV3NamespacesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **company** | **string** | Filter results where company matches value | + **companyContains** | **string** | Filter results where company contains value | + **companyIcontains** | **string** | Filter results where company contains value | + **companyIn** | **[]string** | Filter results where company is in a comma-separated list of values | + **companyStartswith** | **string** | Filter results where company starts with value | + **limit** | **int32** | Number of results to return per page. | + **metadataSha256** | **string** | Filter results where metadata_sha256 matches value | + **metadataSha256In** | **[]string** | Filter results where metadata_sha256 is in a comma-separated list of values | + **name** | **string** | Filter results where name matches value | + **nameContains** | **string** | Filter results where name contains value | + **nameIcontains** | **string** | Filter results where name contains value | + **nameIn** | **[]string** | Filter results where name is in a comma-separated list of values | + **nameStartswith** | **string** | Filter results where name starts with value | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **[]string** | Ordering | + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**PaginatedansibleAnsibleNamespaceMetadataResponseList**](PaginatedansibleAnsibleNamespaceMetadataResponseList.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PulpAnsibleGalaxyDefaultApiV3NamespacesRead + +> AnsibleAnsibleNamespaceMetadataResponse PulpAnsibleGalaxyDefaultApiV3NamespacesRead(ctx, name).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + name := "name_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleDefaultApiV3NamespacesApi.PulpAnsibleGalaxyDefaultApiV3NamespacesRead(context.Background(), name).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleDefaultApiV3NamespacesApi.PulpAnsibleGalaxyDefaultApiV3NamespacesRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyDefaultApiV3NamespacesRead`: AnsibleAnsibleNamespaceMetadataResponse + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleDefaultApiV3NamespacesApi.PulpAnsibleGalaxyDefaultApiV3NamespacesRead`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyDefaultApiV3NamespacesReadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**AnsibleAnsibleNamespaceMetadataResponse**](AnsibleAnsibleNamespaceMetadataResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/release/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md b/release/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md index 463d5ba6..ac1407a8 100644 --- a/release/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +++ b/release/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md @@ -4,13 +4,13 @@ All URIs are relative to *http://localhost:8080* Method | HTTP request | Description ------------- | ------------- | ------------- -[**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGet**](PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md#PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGet) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/client-configuration/ | +[**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationRead**](PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md#PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationRead) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/client-configuration/ | -## PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGet +## PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationRead -> ClientConfigurationResponse PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGet(ctx).Execute() +> ClientConfigurationResponse PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationRead(ctx).Execute() @@ -32,13 +32,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGet(context.Background()).Execute() + resp, r, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationRead(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGet`: ClientConfigurationResponse - fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGet`: %v\n", resp) + // response from `PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationRead`: ClientConfigurationResponse + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationRead`: %v\n", resp) } ``` @@ -48,7 +48,7 @@ This endpoint does not need any parameter. ### Other Parameters -Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationReadRequest struct via the builder pattern ### Return type diff --git a/release/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md b/release/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md new file mode 100644 index 00000000..03124d5d --- /dev/null +++ b/release/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md @@ -0,0 +1,438 @@ +# \PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi + +All URIs are relative to *http://localhost:8080* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreate**](PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md#PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreate) | **Post** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/ | +[**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDelete**](PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md#PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDelete) | **Delete** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/ | +[**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesList**](PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md#PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesList) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/ | +[**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdate**](PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md#PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdate) | **Patch** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/ | +[**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesRead**](PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md#PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesRead) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/namespaces/{name}/ | + + + +## PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreate + +> AsyncOperationResponse PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreate(ctx, distroBasePath).Name(name).Company(company).Email(email).Description(description).Resources(resources).Links(links).Avatar(avatar).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + distroBasePath := "distroBasePath_example" // string | + name := "name_example" // string | Required named, only accepts lowercase, numbers and underscores. + company := "company_example" // string | Optional namespace company owner. (optional) + email := "email_example" // string | Optional namespace contact email. (optional) + description := "description_example" // string | Optional short description. (optional) + resources := "resources_example" // string | Optional resource page in markdown format. (optional) + links := []openapiclient.NamespaceLink{*openapiclient.NewNamespaceLink("Url_example", "Name_example")} // []NamespaceLink | Labeled related links. (optional) + avatar := os.NewFile(1234, "some_file") // *os.File | Optional avatar image for Namespace (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreate(context.Background(), distroBasePath).Name(name).Company(company).Email(email).Description(description).Resources(resources).Links(links).Avatar(avatar).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreate`: AsyncOperationResponse + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**distroBasePath** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **name** | **string** | Required named, only accepts lowercase, numbers and underscores. | + **company** | **string** | Optional namespace company owner. | + **email** | **string** | Optional namespace contact email. | + **description** | **string** | Optional short description. | + **resources** | **string** | Optional resource page in markdown format. | + **links** | [**[]NamespaceLink**](NamespaceLink.md) | Labeled related links. | + **avatar** | ***os.File** | Optional avatar image for Namespace | + +### Return type + +[**AsyncOperationResponse**](AsyncOperationResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDelete + +> AsyncOperationResponse PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDelete(ctx, distroBasePath, name).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + distroBasePath := "distroBasePath_example" // string | + name := "name_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDelete(context.Background(), distroBasePath, name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDelete`: AsyncOperationResponse + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**distroBasePath** | **string** | | +**name** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**AsyncOperationResponse**](AsyncOperationResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesList + +> PaginatedansibleAnsibleNamespaceMetadataResponseList PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesList(ctx, distroBasePath).Company(company).CompanyContains(companyContains).CompanyIcontains(companyIcontains).CompanyIn(companyIn).CompanyStartswith(companyStartswith).Limit(limit).MetadataSha256(metadataSha256).MetadataSha256In(metadataSha256In).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + distroBasePath := "distroBasePath_example" // string | + company := "company_example" // string | Filter results where company matches value (optional) + companyContains := "companyContains_example" // string | Filter results where company contains value (optional) + companyIcontains := "companyIcontains_example" // string | Filter results where company contains value (optional) + companyIn := []string{"Inner_example"} // []string | Filter results where company is in a comma-separated list of values (optional) + companyStartswith := "companyStartswith_example" // string | Filter results where company starts with value (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + metadataSha256 := "metadataSha256_example" // string | Filter results where metadata_sha256 matches value (optional) + metadataSha256In := []string{"Inner_example"} // []string | Filter results where metadata_sha256 is in a comma-separated list of values (optional) + name := "name_example" // string | Filter results where name matches value (optional) + nameContains := "nameContains_example" // string | Filter results where name contains value (optional) + nameIcontains := "nameIcontains_example" // string | Filter results where name contains value (optional) + nameIn := []string{"Inner_example"} // []string | Filter results where name is in a comma-separated list of values (optional) + nameStartswith := "nameStartswith_example" // string | Filter results where name starts with value (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := []string{"Ordering_example"} // []string | Ordering (optional) + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesList(context.Background(), distroBasePath).Company(company).CompanyContains(companyContains).CompanyIcontains(companyIcontains).CompanyIn(companyIn).CompanyStartswith(companyStartswith).Limit(limit).MetadataSha256(metadataSha256).MetadataSha256In(metadataSha256In).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesList`: PaginatedansibleAnsibleNamespaceMetadataResponseList + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**distroBasePath** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **company** | **string** | Filter results where company matches value | + **companyContains** | **string** | Filter results where company contains value | + **companyIcontains** | **string** | Filter results where company contains value | + **companyIn** | **[]string** | Filter results where company is in a comma-separated list of values | + **companyStartswith** | **string** | Filter results where company starts with value | + **limit** | **int32** | Number of results to return per page. | + **metadataSha256** | **string** | Filter results where metadata_sha256 matches value | + **metadataSha256In** | **[]string** | Filter results where metadata_sha256 is in a comma-separated list of values | + **name** | **string** | Filter results where name matches value | + **nameContains** | **string** | Filter results where name contains value | + **nameIcontains** | **string** | Filter results where name contains value | + **nameIn** | **[]string** | Filter results where name is in a comma-separated list of values | + **nameStartswith** | **string** | Filter results where name starts with value | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **[]string** | Ordering | + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**PaginatedansibleAnsibleNamespaceMetadataResponseList**](PaginatedansibleAnsibleNamespaceMetadataResponseList.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdate + +> AsyncOperationResponse PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdate(ctx, distroBasePath, name).Name2(name2).Company(company).Email(email).Description(description).Resources(resources).Links(links).Avatar(avatar).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + distroBasePath := "distroBasePath_example" // string | + name := "name_example" // string | + name2 := "name_example" // string | Required named, only accepts lowercase, numbers and underscores. (optional) + company := "company_example" // string | Optional namespace company owner. (optional) + email := "email_example" // string | Optional namespace contact email. (optional) + description := "description_example" // string | Optional short description. (optional) + resources := "resources_example" // string | Optional resource page in markdown format. (optional) + links := []openapiclient.NamespaceLink{*openapiclient.NewNamespaceLink("Url_example", "Name_example")} // []NamespaceLink | Labeled related links. (optional) + avatar := os.NewFile(1234, "some_file") // *os.File | Optional avatar image for Namespace (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdate(context.Background(), distroBasePath, name).Name2(name2).Company(company).Email(email).Description(description).Resources(resources).Links(links).Avatar(avatar).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdate`: AsyncOperationResponse + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**distroBasePath** | **string** | | +**name** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **name2** | **string** | Required named, only accepts lowercase, numbers and underscores. | + **company** | **string** | Optional namespace company owner. | + **email** | **string** | Optional namespace contact email. | + **description** | **string** | Optional short description. | + **resources** | **string** | Optional resource page in markdown format. | + **links** | [**[]NamespaceLink**](NamespaceLink.md) | Labeled related links. | + **avatar** | ***os.File** | Optional avatar image for Namespace | + +### Return type + +[**AsyncOperationResponse**](AsyncOperationResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesRead + +> AnsibleAnsibleNamespaceMetadataResponse PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesRead(ctx, distroBasePath, name).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + distroBasePath := "distroBasePath_example" // string | + name := "name_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesRead(context.Background(), distroBasePath, name).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesRead``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesRead`: AnsibleAnsibleNamespaceMetadataResponse + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesRead`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**distroBasePath** | **string** | | +**name** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesReadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**AnsibleAnsibleNamespaceMetadataResponse**](AnsibleAnsibleNamespaceMetadataResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/release/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md b/release/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md new file mode 100644 index 00000000..4ca40aac --- /dev/null +++ b/release/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md @@ -0,0 +1,190 @@ +# \PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi + +All URIs are relative to *http://localhost:8080* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsList**](PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md#PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsList) | **Get** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/search/collection-versions/ | +[**PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuild**](PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md#PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuild) | **Post** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/search/collection-versions/ | + + + +## PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsList + +> PaginatedCollectionVersionSearchListResponseList PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsList(ctx).Dependency(dependency).Deprecated(deprecated).Distribution(distribution).DistributionBasePath(distributionBasePath).Highest(highest).IsDeprecated(isDeprecated).IsHighest(isHighest).IsSigned(isSigned).Keywords(keywords).Limit(limit).Name(name).Namespace(namespace).Offset(offset).OrderBy(orderBy).Q(q).Repository(repository).RepositoryLabel(repositoryLabel).RepositoryName(repositoryName).RepositoryVersion(repositoryVersion).Signed(signed).Tags(tags).Version(version).VersionRange(versionRange).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + dependency := "dependency_example" // string | (optional) + deprecated := true // bool | (optional) + distribution := []string{"Inner_example"} // []string | Filter collectionversions that are in these distrubtion ids. (optional) + distributionBasePath := []string{"Inner_example"} // []string | Filter collectionversions that are in these base paths. (optional) + highest := true // bool | (optional) + isDeprecated := true // bool | (optional) + isHighest := true // bool | (optional) + isSigned := true // bool | (optional) + keywords := "keywords_example" // string | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + name := "name_example" // string | (optional) + namespace := "namespace_example" // string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + orderBy := []string{"OrderBy_example"} // []string | Ordering (optional) + q := "q_example" // string | (optional) + repository := []string{"Inner_example"} // []string | Filter collectionversions that are in these repository ids. (optional) + repositoryLabel := "repositoryLabel_example" // string | Filter labels by search string (optional) + repositoryName := []string{"Inner_example"} // []string | Filter collectionversions that are in these repositories. (optional) + repositoryVersion := "repositoryVersion_example" // string | (optional) + signed := true // bool | (optional) + tags := "tags_example" // string | Filter by comma separate list of tags that must all be matched (optional) + version := "version_example" // string | (optional) + versionRange := "versionRange_example" // string | (optional) + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsList(context.Background()).Dependency(dependency).Deprecated(deprecated).Distribution(distribution).DistributionBasePath(distributionBasePath).Highest(highest).IsDeprecated(isDeprecated).IsHighest(isHighest).IsSigned(isSigned).Keywords(keywords).Limit(limit).Name(name).Namespace(namespace).Offset(offset).OrderBy(orderBy).Q(q).Repository(repository).RepositoryLabel(repositoryLabel).RepositoryName(repositoryName).RepositoryVersion(repositoryVersion).Signed(signed).Tags(tags).Version(version).VersionRange(versionRange).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsList`: PaginatedCollectionVersionSearchListResponseList + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dependency** | **string** | | + **deprecated** | **bool** | | + **distribution** | **[]string** | Filter collectionversions that are in these distrubtion ids. | + **distributionBasePath** | **[]string** | Filter collectionversions that are in these base paths. | + **highest** | **bool** | | + **isDeprecated** | **bool** | | + **isHighest** | **bool** | | + **isSigned** | **bool** | | + **keywords** | **string** | | + **limit** | **int32** | Number of results to return per page. | + **name** | **string** | | + **namespace** | **string** | | + **offset** | **int32** | The initial index from which to return the results. | + **orderBy** | **[]string** | Ordering | + **q** | **string** | | + **repository** | **[]string** | Filter collectionversions that are in these repository ids. | + **repositoryLabel** | **string** | Filter labels by search string | + **repositoryName** | **[]string** | Filter collectionversions that are in these repositories. | + **repositoryVersion** | **string** | | + **signed** | **bool** | | + **tags** | **string** | Filter by comma separate list of tags that must all be matched | + **version** | **string** | | + **versionRange** | **string** | | + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**PaginatedCollectionVersionSearchListResponseList**](PaginatedCollectionVersionSearchListResponseList.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuild + +> CollectionVersionSearchListResponse PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuild(ctx).CollectionVersionSearchList(collectionVersionSearchList).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + collectionVersionSearchList := *openapiclient.NewCollectionVersionSearchList(*openapiclient.NewRepository("Name_example"), map[string]interface{}(123), "TODO", false, false, false) // CollectionVersionSearchList | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuild(context.Background()).CollectionVersionSearchList(collectionVersionSearchList).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuild``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuild`: CollectionVersionSearchListResponse + fmt.Fprintf(os.Stdout, "Response from `PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuild`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuildRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **collectionVersionSearchList** | [**CollectionVersionSearchList**](CollectionVersionSearchList.md) | | + +### Return type + +[**CollectionVersionSearchListResponse**](CollectionVersionSearchListResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/release/docs/PythonBanderRemote.md b/release/docs/PythonBanderRemote.md new file mode 100644 index 00000000..8d754a80 --- /dev/null +++ b/release/docs/PythonBanderRemote.md @@ -0,0 +1,98 @@ +# PythonBanderRemote + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | ***os.File** | A Bandersnatch config that may be used to construct a Python Remote. | +**Name** | **string** | A unique name for this remote | +**Policy** | Pointer to [**Policy762Enum**](Policy762Enum.md) | | [optional] [default to POLICY762ENUM_ON_DEMAND] + +## Methods + +### NewPythonBanderRemote + +`func NewPythonBanderRemote(config *os.File, name string, ) *PythonBanderRemote` + +NewPythonBanderRemote instantiates a new PythonBanderRemote object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPythonBanderRemoteWithDefaults + +`func NewPythonBanderRemoteWithDefaults() *PythonBanderRemote` + +NewPythonBanderRemoteWithDefaults instantiates a new PythonBanderRemote object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *PythonBanderRemote) GetConfig() *os.File` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *PythonBanderRemote) GetConfigOk() (**os.File, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *PythonBanderRemote) SetConfig(v *os.File)` + +SetConfig sets Config field to given value. + + +### GetName + +`func (o *PythonBanderRemote) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PythonBanderRemote) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PythonBanderRemote) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPolicy + +`func (o *PythonBanderRemote) GetPolicy() Policy762Enum` + +GetPolicy returns the Policy field if non-nil, zero value otherwise. + +### GetPolicyOk + +`func (o *PythonBanderRemote) GetPolicyOk() (*Policy762Enum, bool)` + +GetPolicyOk returns a tuple with the Policy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicy + +`func (o *PythonBanderRemote) SetPolicy(v Policy762Enum)` + +SetPolicy sets Policy field to given value. + +### HasPolicy + +`func (o *PythonBanderRemote) HasPolicy() bool` + +HasPolicy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/PythonPythonPackageContent.md b/release/docs/PythonPythonPackageContent.md new file mode 100644 index 00000000..011cfdd7 --- /dev/null +++ b/release/docs/PythonPythonPackageContent.md @@ -0,0 +1,727 @@ +# PythonPythonPackageContent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Artifact** | Pointer to **string** | Artifact file representing the physical content | [optional] +**RelativePath** | **string** | Path where the artifact is located relative to distributions base_path | +**File** | Pointer to ***os.File** | An uploaded file that may be turned into the artifact of the content unit. | [optional] +**Repository** | Pointer to **string** | A URI of a repository the new content unit should be associated with. | [optional] +**Upload** | Pointer to **string** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional] +**Sha256** | Pointer to **string** | The SHA256 digest of this package. | [optional] [default to ""] +**Summary** | Pointer to **string** | A one-line summary of what the package does. | [optional] +**Description** | Pointer to **string** | A longer description of the package that can run to several paragraphs. | [optional] +**DescriptionContentType** | Pointer to **string** | A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description. | [optional] +**Keywords** | Pointer to **string** | Additional keywords to be used to assist searching for the package in a larger catalog. | [optional] +**HomePage** | Pointer to **string** | The URL for the package's home page. | [optional] +**DownloadUrl** | Pointer to **string** | Legacy field denoting the URL from which this package can be downloaded. | [optional] +**Author** | Pointer to **string** | Text containing the author's name. Contact information can also be added, separated with newlines. | [optional] +**AuthorEmail** | Pointer to **string** | The author's e-mail address. | [optional] +**Maintainer** | Pointer to **string** | The maintainer's name at a minimum; additional contact information may be provided. | [optional] +**MaintainerEmail** | Pointer to **string** | The maintainer's e-mail address. | [optional] +**License** | Pointer to **string** | Text indicating the license covering the distribution | [optional] +**RequiresPython** | Pointer to **string** | The Python version(s) that the distribution is guaranteed to be compatible with. | [optional] +**ProjectUrl** | Pointer to **string** | A browsable URL for the project and a label for it, separated by a comma. | [optional] +**ProjectUrls** | Pointer to **map[string]interface{}** | A dictionary of labels and URLs for the project. | [optional] +**Platform** | Pointer to **string** | A comma-separated list of platform specifications, summarizing the operating systems supported by the package. | [optional] +**SupportedPlatform** | Pointer to **string** | Field to specify the OS and CPU for which the binary package was compiled. | [optional] +**RequiresDist** | Pointer to **map[string]interface{}** | A JSON list containing names of some other distutils project required by this distribution. | [optional] +**ProvidesDist** | Pointer to **map[string]interface{}** | A JSON list containing names of a Distutils project which is contained within this distribution. | [optional] +**ObsoletesDist** | Pointer to **map[string]interface{}** | A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time. | [optional] +**RequiresExternal** | Pointer to **map[string]interface{}** | A JSON list containing some dependency in the system that the distribution is to be used. | [optional] +**Classifiers** | Pointer to **map[string]interface{}** | A JSON list containing classification values for a Python package. | [optional] + +## Methods + +### NewPythonPythonPackageContent + +`func NewPythonPythonPackageContent(relativePath string, ) *PythonPythonPackageContent` + +NewPythonPythonPackageContent instantiates a new PythonPythonPackageContent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPythonPythonPackageContentWithDefaults + +`func NewPythonPythonPackageContentWithDefaults() *PythonPythonPackageContent` + +NewPythonPythonPackageContentWithDefaults instantiates a new PythonPythonPackageContent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArtifact + +`func (o *PythonPythonPackageContent) GetArtifact() string` + +GetArtifact returns the Artifact field if non-nil, zero value otherwise. + +### GetArtifactOk + +`func (o *PythonPythonPackageContent) GetArtifactOk() (*string, bool)` + +GetArtifactOk returns a tuple with the Artifact field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifact + +`func (o *PythonPythonPackageContent) SetArtifact(v string)` + +SetArtifact sets Artifact field to given value. + +### HasArtifact + +`func (o *PythonPythonPackageContent) HasArtifact() bool` + +HasArtifact returns a boolean if a field has been set. + +### GetRelativePath + +`func (o *PythonPythonPackageContent) GetRelativePath() string` + +GetRelativePath returns the RelativePath field if non-nil, zero value otherwise. + +### GetRelativePathOk + +`func (o *PythonPythonPackageContent) GetRelativePathOk() (*string, bool)` + +GetRelativePathOk returns a tuple with the RelativePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelativePath + +`func (o *PythonPythonPackageContent) SetRelativePath(v string)` + +SetRelativePath sets RelativePath field to given value. + + +### GetFile + +`func (o *PythonPythonPackageContent) GetFile() *os.File` + +GetFile returns the File field if non-nil, zero value otherwise. + +### GetFileOk + +`func (o *PythonPythonPackageContent) GetFileOk() (**os.File, bool)` + +GetFileOk returns a tuple with the File field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFile + +`func (o *PythonPythonPackageContent) SetFile(v *os.File)` + +SetFile sets File field to given value. + +### HasFile + +`func (o *PythonPythonPackageContent) HasFile() bool` + +HasFile returns a boolean if a field has been set. + +### GetRepository + +`func (o *PythonPythonPackageContent) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *PythonPythonPackageContent) GetRepositoryOk() (*string, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *PythonPythonPackageContent) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *PythonPythonPackageContent) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetUpload + +`func (o *PythonPythonPackageContent) GetUpload() string` + +GetUpload returns the Upload field if non-nil, zero value otherwise. + +### GetUploadOk + +`func (o *PythonPythonPackageContent) GetUploadOk() (*string, bool)` + +GetUploadOk returns a tuple with the Upload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpload + +`func (o *PythonPythonPackageContent) SetUpload(v string)` + +SetUpload sets Upload field to given value. + +### HasUpload + +`func (o *PythonPythonPackageContent) HasUpload() bool` + +HasUpload returns a boolean if a field has been set. + +### GetSha256 + +`func (o *PythonPythonPackageContent) GetSha256() string` + +GetSha256 returns the Sha256 field if non-nil, zero value otherwise. + +### GetSha256Ok + +`func (o *PythonPythonPackageContent) GetSha256Ok() (*string, bool)` + +GetSha256Ok returns a tuple with the Sha256 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSha256 + +`func (o *PythonPythonPackageContent) SetSha256(v string)` + +SetSha256 sets Sha256 field to given value. + +### HasSha256 + +`func (o *PythonPythonPackageContent) HasSha256() bool` + +HasSha256 returns a boolean if a field has been set. + +### GetSummary + +`func (o *PythonPythonPackageContent) GetSummary() string` + +GetSummary returns the Summary field if non-nil, zero value otherwise. + +### GetSummaryOk + +`func (o *PythonPythonPackageContent) GetSummaryOk() (*string, bool)` + +GetSummaryOk returns a tuple with the Summary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSummary + +`func (o *PythonPythonPackageContent) SetSummary(v string)` + +SetSummary sets Summary field to given value. + +### HasSummary + +`func (o *PythonPythonPackageContent) HasSummary() bool` + +HasSummary returns a boolean if a field has been set. + +### GetDescription + +`func (o *PythonPythonPackageContent) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PythonPythonPackageContent) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PythonPythonPackageContent) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PythonPythonPackageContent) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDescriptionContentType + +`func (o *PythonPythonPackageContent) GetDescriptionContentType() string` + +GetDescriptionContentType returns the DescriptionContentType field if non-nil, zero value otherwise. + +### GetDescriptionContentTypeOk + +`func (o *PythonPythonPackageContent) GetDescriptionContentTypeOk() (*string, bool)` + +GetDescriptionContentTypeOk returns a tuple with the DescriptionContentType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescriptionContentType + +`func (o *PythonPythonPackageContent) SetDescriptionContentType(v string)` + +SetDescriptionContentType sets DescriptionContentType field to given value. + +### HasDescriptionContentType + +`func (o *PythonPythonPackageContent) HasDescriptionContentType() bool` + +HasDescriptionContentType returns a boolean if a field has been set. + +### GetKeywords + +`func (o *PythonPythonPackageContent) GetKeywords() string` + +GetKeywords returns the Keywords field if non-nil, zero value otherwise. + +### GetKeywordsOk + +`func (o *PythonPythonPackageContent) GetKeywordsOk() (*string, bool)` + +GetKeywordsOk returns a tuple with the Keywords field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeywords + +`func (o *PythonPythonPackageContent) SetKeywords(v string)` + +SetKeywords sets Keywords field to given value. + +### HasKeywords + +`func (o *PythonPythonPackageContent) HasKeywords() bool` + +HasKeywords returns a boolean if a field has been set. + +### GetHomePage + +`func (o *PythonPythonPackageContent) GetHomePage() string` + +GetHomePage returns the HomePage field if non-nil, zero value otherwise. + +### GetHomePageOk + +`func (o *PythonPythonPackageContent) GetHomePageOk() (*string, bool)` + +GetHomePageOk returns a tuple with the HomePage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHomePage + +`func (o *PythonPythonPackageContent) SetHomePage(v string)` + +SetHomePage sets HomePage field to given value. + +### HasHomePage + +`func (o *PythonPythonPackageContent) HasHomePage() bool` + +HasHomePage returns a boolean if a field has been set. + +### GetDownloadUrl + +`func (o *PythonPythonPackageContent) GetDownloadUrl() string` + +GetDownloadUrl returns the DownloadUrl field if non-nil, zero value otherwise. + +### GetDownloadUrlOk + +`func (o *PythonPythonPackageContent) GetDownloadUrlOk() (*string, bool)` + +GetDownloadUrlOk returns a tuple with the DownloadUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownloadUrl + +`func (o *PythonPythonPackageContent) SetDownloadUrl(v string)` + +SetDownloadUrl sets DownloadUrl field to given value. + +### HasDownloadUrl + +`func (o *PythonPythonPackageContent) HasDownloadUrl() bool` + +HasDownloadUrl returns a boolean if a field has been set. + +### GetAuthor + +`func (o *PythonPythonPackageContent) GetAuthor() string` + +GetAuthor returns the Author field if non-nil, zero value otherwise. + +### GetAuthorOk + +`func (o *PythonPythonPackageContent) GetAuthorOk() (*string, bool)` + +GetAuthorOk returns a tuple with the Author field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthor + +`func (o *PythonPythonPackageContent) SetAuthor(v string)` + +SetAuthor sets Author field to given value. + +### HasAuthor + +`func (o *PythonPythonPackageContent) HasAuthor() bool` + +HasAuthor returns a boolean if a field has been set. + +### GetAuthorEmail + +`func (o *PythonPythonPackageContent) GetAuthorEmail() string` + +GetAuthorEmail returns the AuthorEmail field if non-nil, zero value otherwise. + +### GetAuthorEmailOk + +`func (o *PythonPythonPackageContent) GetAuthorEmailOk() (*string, bool)` + +GetAuthorEmailOk returns a tuple with the AuthorEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorEmail + +`func (o *PythonPythonPackageContent) SetAuthorEmail(v string)` + +SetAuthorEmail sets AuthorEmail field to given value. + +### HasAuthorEmail + +`func (o *PythonPythonPackageContent) HasAuthorEmail() bool` + +HasAuthorEmail returns a boolean if a field has been set. + +### GetMaintainer + +`func (o *PythonPythonPackageContent) GetMaintainer() string` + +GetMaintainer returns the Maintainer field if non-nil, zero value otherwise. + +### GetMaintainerOk + +`func (o *PythonPythonPackageContent) GetMaintainerOk() (*string, bool)` + +GetMaintainerOk returns a tuple with the Maintainer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaintainer + +`func (o *PythonPythonPackageContent) SetMaintainer(v string)` + +SetMaintainer sets Maintainer field to given value. + +### HasMaintainer + +`func (o *PythonPythonPackageContent) HasMaintainer() bool` + +HasMaintainer returns a boolean if a field has been set. + +### GetMaintainerEmail + +`func (o *PythonPythonPackageContent) GetMaintainerEmail() string` + +GetMaintainerEmail returns the MaintainerEmail field if non-nil, zero value otherwise. + +### GetMaintainerEmailOk + +`func (o *PythonPythonPackageContent) GetMaintainerEmailOk() (*string, bool)` + +GetMaintainerEmailOk returns a tuple with the MaintainerEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaintainerEmail + +`func (o *PythonPythonPackageContent) SetMaintainerEmail(v string)` + +SetMaintainerEmail sets MaintainerEmail field to given value. + +### HasMaintainerEmail + +`func (o *PythonPythonPackageContent) HasMaintainerEmail() bool` + +HasMaintainerEmail returns a boolean if a field has been set. + +### GetLicense + +`func (o *PythonPythonPackageContent) GetLicense() string` + +GetLicense returns the License field if non-nil, zero value otherwise. + +### GetLicenseOk + +`func (o *PythonPythonPackageContent) GetLicenseOk() (*string, bool)` + +GetLicenseOk returns a tuple with the License field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicense + +`func (o *PythonPythonPackageContent) SetLicense(v string)` + +SetLicense sets License field to given value. + +### HasLicense + +`func (o *PythonPythonPackageContent) HasLicense() bool` + +HasLicense returns a boolean if a field has been set. + +### GetRequiresPython + +`func (o *PythonPythonPackageContent) GetRequiresPython() string` + +GetRequiresPython returns the RequiresPython field if non-nil, zero value otherwise. + +### GetRequiresPythonOk + +`func (o *PythonPythonPackageContent) GetRequiresPythonOk() (*string, bool)` + +GetRequiresPythonOk returns a tuple with the RequiresPython field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiresPython + +`func (o *PythonPythonPackageContent) SetRequiresPython(v string)` + +SetRequiresPython sets RequiresPython field to given value. + +### HasRequiresPython + +`func (o *PythonPythonPackageContent) HasRequiresPython() bool` + +HasRequiresPython returns a boolean if a field has been set. + +### GetProjectUrl + +`func (o *PythonPythonPackageContent) GetProjectUrl() string` + +GetProjectUrl returns the ProjectUrl field if non-nil, zero value otherwise. + +### GetProjectUrlOk + +`func (o *PythonPythonPackageContent) GetProjectUrlOk() (*string, bool)` + +GetProjectUrlOk returns a tuple with the ProjectUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjectUrl + +`func (o *PythonPythonPackageContent) SetProjectUrl(v string)` + +SetProjectUrl sets ProjectUrl field to given value. + +### HasProjectUrl + +`func (o *PythonPythonPackageContent) HasProjectUrl() bool` + +HasProjectUrl returns a boolean if a field has been set. + +### GetProjectUrls + +`func (o *PythonPythonPackageContent) GetProjectUrls() map[string]interface{}` + +GetProjectUrls returns the ProjectUrls field if non-nil, zero value otherwise. + +### GetProjectUrlsOk + +`func (o *PythonPythonPackageContent) GetProjectUrlsOk() (*map[string]interface{}, bool)` + +GetProjectUrlsOk returns a tuple with the ProjectUrls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjectUrls + +`func (o *PythonPythonPackageContent) SetProjectUrls(v map[string]interface{})` + +SetProjectUrls sets ProjectUrls field to given value. + +### HasProjectUrls + +`func (o *PythonPythonPackageContent) HasProjectUrls() bool` + +HasProjectUrls returns a boolean if a field has been set. + +### GetPlatform + +`func (o *PythonPythonPackageContent) GetPlatform() string` + +GetPlatform returns the Platform field if non-nil, zero value otherwise. + +### GetPlatformOk + +`func (o *PythonPythonPackageContent) GetPlatformOk() (*string, bool)` + +GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatform + +`func (o *PythonPythonPackageContent) SetPlatform(v string)` + +SetPlatform sets Platform field to given value. + +### HasPlatform + +`func (o *PythonPythonPackageContent) HasPlatform() bool` + +HasPlatform returns a boolean if a field has been set. + +### GetSupportedPlatform + +`func (o *PythonPythonPackageContent) GetSupportedPlatform() string` + +GetSupportedPlatform returns the SupportedPlatform field if non-nil, zero value otherwise. + +### GetSupportedPlatformOk + +`func (o *PythonPythonPackageContent) GetSupportedPlatformOk() (*string, bool)` + +GetSupportedPlatformOk returns a tuple with the SupportedPlatform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedPlatform + +`func (o *PythonPythonPackageContent) SetSupportedPlatform(v string)` + +SetSupportedPlatform sets SupportedPlatform field to given value. + +### HasSupportedPlatform + +`func (o *PythonPythonPackageContent) HasSupportedPlatform() bool` + +HasSupportedPlatform returns a boolean if a field has been set. + +### GetRequiresDist + +`func (o *PythonPythonPackageContent) GetRequiresDist() map[string]interface{}` + +GetRequiresDist returns the RequiresDist field if non-nil, zero value otherwise. + +### GetRequiresDistOk + +`func (o *PythonPythonPackageContent) GetRequiresDistOk() (*map[string]interface{}, bool)` + +GetRequiresDistOk returns a tuple with the RequiresDist field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiresDist + +`func (o *PythonPythonPackageContent) SetRequiresDist(v map[string]interface{})` + +SetRequiresDist sets RequiresDist field to given value. + +### HasRequiresDist + +`func (o *PythonPythonPackageContent) HasRequiresDist() bool` + +HasRequiresDist returns a boolean if a field has been set. + +### GetProvidesDist + +`func (o *PythonPythonPackageContent) GetProvidesDist() map[string]interface{}` + +GetProvidesDist returns the ProvidesDist field if non-nil, zero value otherwise. + +### GetProvidesDistOk + +`func (o *PythonPythonPackageContent) GetProvidesDistOk() (*map[string]interface{}, bool)` + +GetProvidesDistOk returns a tuple with the ProvidesDist field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvidesDist + +`func (o *PythonPythonPackageContent) SetProvidesDist(v map[string]interface{})` + +SetProvidesDist sets ProvidesDist field to given value. + +### HasProvidesDist + +`func (o *PythonPythonPackageContent) HasProvidesDist() bool` + +HasProvidesDist returns a boolean if a field has been set. + +### GetObsoletesDist + +`func (o *PythonPythonPackageContent) GetObsoletesDist() map[string]interface{}` + +GetObsoletesDist returns the ObsoletesDist field if non-nil, zero value otherwise. + +### GetObsoletesDistOk + +`func (o *PythonPythonPackageContent) GetObsoletesDistOk() (*map[string]interface{}, bool)` + +GetObsoletesDistOk returns a tuple with the ObsoletesDist field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObsoletesDist + +`func (o *PythonPythonPackageContent) SetObsoletesDist(v map[string]interface{})` + +SetObsoletesDist sets ObsoletesDist field to given value. + +### HasObsoletesDist + +`func (o *PythonPythonPackageContent) HasObsoletesDist() bool` + +HasObsoletesDist returns a boolean if a field has been set. + +### GetRequiresExternal + +`func (o *PythonPythonPackageContent) GetRequiresExternal() map[string]interface{}` + +GetRequiresExternal returns the RequiresExternal field if non-nil, zero value otherwise. + +### GetRequiresExternalOk + +`func (o *PythonPythonPackageContent) GetRequiresExternalOk() (*map[string]interface{}, bool)` + +GetRequiresExternalOk returns a tuple with the RequiresExternal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiresExternal + +`func (o *PythonPythonPackageContent) SetRequiresExternal(v map[string]interface{})` + +SetRequiresExternal sets RequiresExternal field to given value. + +### HasRequiresExternal + +`func (o *PythonPythonPackageContent) HasRequiresExternal() bool` + +HasRequiresExternal returns a boolean if a field has been set. + +### GetClassifiers + +`func (o *PythonPythonPackageContent) GetClassifiers() map[string]interface{}` + +GetClassifiers returns the Classifiers field if non-nil, zero value otherwise. + +### GetClassifiersOk + +`func (o *PythonPythonPackageContent) GetClassifiersOk() (*map[string]interface{}, bool)` + +GetClassifiersOk returns a tuple with the Classifiers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClassifiers + +`func (o *PythonPythonPackageContent) SetClassifiers(v map[string]interface{})` + +SetClassifiers sets Classifiers field to given value. + +### HasClassifiers + +`func (o *PythonPythonPackageContent) HasClassifiers() bool` + +HasClassifiers returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/RemotesCollectionApi.md b/release/docs/RemotesCollectionApi.md index 5ee8a220..12a46155 100644 --- a/release/docs/RemotesCollectionApi.md +++ b/release/docs/RemotesCollectionApi.md @@ -4,15 +4,91 @@ All URIs are relative to *http://localhost:8080* Method | HTTP request | Description ------------- | ------------- | ------------- +[**RemotesAnsibleCollectionAddRole**](RemotesCollectionApi.md#RemotesAnsibleCollectionAddRole) | **Post** /{ansible_collection_remote_href}add_role/ | [**RemotesAnsibleCollectionCreate**](RemotesCollectionApi.md#RemotesAnsibleCollectionCreate) | **Post** /pulp/api/v3/remotes/ansible/collection/ | Create a collection remote [**RemotesAnsibleCollectionDelete**](RemotesCollectionApi.md#RemotesAnsibleCollectionDelete) | **Delete** /{ansible_collection_remote_href} | Delete a collection remote [**RemotesAnsibleCollectionList**](RemotesCollectionApi.md#RemotesAnsibleCollectionList) | **Get** /pulp/api/v3/remotes/ansible/collection/ | List collection remotes +[**RemotesAnsibleCollectionListRoles**](RemotesCollectionApi.md#RemotesAnsibleCollectionListRoles) | **Get** /{ansible_collection_remote_href}list_roles/ | +[**RemotesAnsibleCollectionMyPermissions**](RemotesCollectionApi.md#RemotesAnsibleCollectionMyPermissions) | **Get** /{ansible_collection_remote_href}my_permissions/ | [**RemotesAnsibleCollectionPartialUpdate**](RemotesCollectionApi.md#RemotesAnsibleCollectionPartialUpdate) | **Patch** /{ansible_collection_remote_href} | Update a collection remote [**RemotesAnsibleCollectionRead**](RemotesCollectionApi.md#RemotesAnsibleCollectionRead) | **Get** /{ansible_collection_remote_href} | Inspect a collection remote +[**RemotesAnsibleCollectionRemoveRole**](RemotesCollectionApi.md#RemotesAnsibleCollectionRemoveRole) | **Post** /{ansible_collection_remote_href}remove_role/ | [**RemotesAnsibleCollectionUpdate**](RemotesCollectionApi.md#RemotesAnsibleCollectionUpdate) | **Put** /{ansible_collection_remote_href} | Update a collection remote +## RemotesAnsibleCollectionAddRole + +> NestedRoleResponse RemotesAnsibleCollectionAddRole(ctx, ansibleCollectionRemoteHref).NestedRole(nestedRole).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleCollectionRemoteHref := "ansibleCollectionRemoteHref_example" // string | + nestedRole := *openapiclient.NewNestedRole("Role_example") // NestedRole | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RemotesCollectionApi.RemotesAnsibleCollectionAddRole(context.Background(), ansibleCollectionRemoteHref).NestedRole(nestedRole).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RemotesCollectionApi.RemotesAnsibleCollectionAddRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RemotesAnsibleCollectionAddRole`: NestedRoleResponse + fmt.Fprintf(os.Stdout, "Response from `RemotesCollectionApi.RemotesAnsibleCollectionAddRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleCollectionRemoteHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemotesAnsibleCollectionAddRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **nestedRole** | [**NestedRole**](NestedRole.md) | | + +### Return type + +[**NestedRoleResponse**](NestedRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## RemotesAnsibleCollectionCreate > AnsibleCollectionRemoteResponse RemotesAnsibleCollectionCreate(ctx).AnsibleCollectionRemote(ansibleCollectionRemote).Execute() @@ -151,7 +227,7 @@ Name | Type | Description | Notes ## RemotesAnsibleCollectionList -> PaginatedansibleCollectionRemoteResponseList RemotesAnsibleCollectionList(ctx).Limit(limit).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).PulpLabelSelect(pulpLabelSelect).PulpLastUpdated(pulpLastUpdated).PulpLastUpdatedGt(pulpLastUpdatedGt).PulpLastUpdatedGte(pulpLastUpdatedGte).PulpLastUpdatedLt(pulpLastUpdatedLt).PulpLastUpdatedLte(pulpLastUpdatedLte).PulpLastUpdatedRange(pulpLastUpdatedRange).Fields(fields).ExcludeFields(excludeFields).Execute() +> PaginatedansibleCollectionRemoteResponseList RemotesAnsibleCollectionList(ctx).Limit(limit).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).PulpLabelSelect(pulpLabelSelect).PulpLastUpdated(pulpLastUpdated).PulpLastUpdatedGt(pulpLastUpdatedGt).PulpLastUpdatedGte(pulpLastUpdatedGte).PulpLastUpdatedLt(pulpLastUpdatedLt).PulpLastUpdatedLte(pulpLastUpdatedLte).PulpLastUpdatedRange(pulpLastUpdatedRange).Url(url).UrlContains(urlContains).UrlIcontains(urlIcontains).UrlIn(urlIn).Fields(fields).ExcludeFields(excludeFields).Execute() List collection remotes @@ -186,12 +262,16 @@ func main() { pulpLastUpdatedLt := time.Now() // time.Time | Filter results where pulp_last_updated is less than value (optional) pulpLastUpdatedLte := time.Now() // time.Time | Filter results where pulp_last_updated is less than or equal to value (optional) pulpLastUpdatedRange := []time.Time{time.Now()} // []time.Time | Filter results where pulp_last_updated is between two comma separated values (optional) + url := "url_example" // string | Filter results where url matches value (optional) + urlContains := "urlContains_example" // string | Filter results where url contains value (optional) + urlIcontains := "urlIcontains_example" // string | Filter results where url contains value (optional) + urlIn := []string{"Inner_example"} // []string | Filter results where url is in a comma-separated list of values (optional) fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RemotesCollectionApi.RemotesAnsibleCollectionList(context.Background()).Limit(limit).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).PulpLabelSelect(pulpLabelSelect).PulpLastUpdated(pulpLastUpdated).PulpLastUpdatedGt(pulpLastUpdatedGt).PulpLastUpdatedGte(pulpLastUpdatedGte).PulpLastUpdatedLt(pulpLastUpdatedLt).PulpLastUpdatedLte(pulpLastUpdatedLte).PulpLastUpdatedRange(pulpLastUpdatedRange).Fields(fields).ExcludeFields(excludeFields).Execute() + resp, r, err := apiClient.RemotesCollectionApi.RemotesAnsibleCollectionList(context.Background()).Limit(limit).Name(name).NameContains(nameContains).NameIcontains(nameIcontains).NameIn(nameIn).NameStartswith(nameStartswith).Offset(offset).Ordering(ordering).PulpLabelSelect(pulpLabelSelect).PulpLastUpdated(pulpLastUpdated).PulpLastUpdatedGt(pulpLastUpdatedGt).PulpLastUpdatedGte(pulpLastUpdatedGte).PulpLastUpdatedLt(pulpLastUpdatedLt).PulpLastUpdatedLte(pulpLastUpdatedLte).PulpLastUpdatedRange(pulpLastUpdatedRange).Url(url).UrlContains(urlContains).UrlIcontains(urlIcontains).UrlIn(urlIn).Fields(fields).ExcludeFields(excludeFields).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RemotesCollectionApi.RemotesAnsibleCollectionList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -227,6 +307,10 @@ Name | Type | Description | Notes **pulpLastUpdatedLt** | **time.Time** | Filter results where pulp_last_updated is less than value | **pulpLastUpdatedLte** | **time.Time** | Filter results where pulp_last_updated is less than or equal to value | **pulpLastUpdatedRange** | [**[]time.Time**](time.Time.md) | Filter results where pulp_last_updated is between two comma separated values | + **url** | **string** | Filter results where url matches value | + **urlContains** | **string** | Filter results where url contains value | + **urlIcontains** | **string** | Filter results where url contains value | + **urlIn** | **[]string** | Filter results where url is in a comma-separated list of values | **fields** | **[]string** | A list of fields to include in the response. | **excludeFields** | **[]string** | A list of fields to exclude from the response. | @@ -248,6 +332,154 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## RemotesAnsibleCollectionListRoles + +> ObjectRolesResponse RemotesAnsibleCollectionListRoles(ctx, ansibleCollectionRemoteHref).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleCollectionRemoteHref := "ansibleCollectionRemoteHref_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RemotesCollectionApi.RemotesAnsibleCollectionListRoles(context.Background(), ansibleCollectionRemoteHref).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RemotesCollectionApi.RemotesAnsibleCollectionListRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RemotesAnsibleCollectionListRoles`: ObjectRolesResponse + fmt.Fprintf(os.Stdout, "Response from `RemotesCollectionApi.RemotesAnsibleCollectionListRoles`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleCollectionRemoteHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemotesAnsibleCollectionListRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**ObjectRolesResponse**](ObjectRolesResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RemotesAnsibleCollectionMyPermissions + +> MyPermissionsResponse RemotesAnsibleCollectionMyPermissions(ctx, ansibleCollectionRemoteHref).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleCollectionRemoteHref := "ansibleCollectionRemoteHref_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RemotesCollectionApi.RemotesAnsibleCollectionMyPermissions(context.Background(), ansibleCollectionRemoteHref).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RemotesCollectionApi.RemotesAnsibleCollectionMyPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RemotesAnsibleCollectionMyPermissions`: MyPermissionsResponse + fmt.Fprintf(os.Stdout, "Response from `RemotesCollectionApi.RemotesAnsibleCollectionMyPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleCollectionRemoteHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemotesAnsibleCollectionMyPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**MyPermissionsResponse**](MyPermissionsResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## RemotesAnsibleCollectionPartialUpdate > AsyncOperationResponse RemotesAnsibleCollectionPartialUpdate(ctx, ansibleCollectionRemoteHref).PatchedansibleCollectionRemote(patchedansibleCollectionRemote).Execute() @@ -394,6 +626,78 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## RemotesAnsibleCollectionRemoveRole + +> NestedRoleResponse RemotesAnsibleCollectionRemoveRole(ctx, ansibleCollectionRemoteHref).NestedRole(nestedRole).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleCollectionRemoteHref := "ansibleCollectionRemoteHref_example" // string | + nestedRole := *openapiclient.NewNestedRole("Role_example") // NestedRole | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RemotesCollectionApi.RemotesAnsibleCollectionRemoveRole(context.Background(), ansibleCollectionRemoteHref).NestedRole(nestedRole).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RemotesCollectionApi.RemotesAnsibleCollectionRemoveRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RemotesAnsibleCollectionRemoveRole`: NestedRoleResponse + fmt.Fprintf(os.Stdout, "Response from `RemotesCollectionApi.RemotesAnsibleCollectionRemoveRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleCollectionRemoteHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemotesAnsibleCollectionRemoveRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **nestedRole** | [**NestedRole**](NestedRole.md) | | + +### Return type + +[**NestedRoleResponse**](NestedRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## RemotesAnsibleCollectionUpdate > AsyncOperationResponse RemotesAnsibleCollectionUpdate(ctx, ansibleCollectionRemoteHref).AnsibleCollectionRemote(ansibleCollectionRemote).Execute() diff --git a/release/docs/RemotesGitApi.md b/release/docs/RemotesGitApi.md index 4ecffa86..47590a03 100644 --- a/release/docs/RemotesGitApi.md +++ b/release/docs/RemotesGitApi.md @@ -4,15 +4,91 @@ All URIs are relative to *http://localhost:8080* Method | HTTP request | Description ------------- | ------------- | ------------- +[**RemotesAnsibleGitAddRole**](RemotesGitApi.md#RemotesAnsibleGitAddRole) | **Post** /{ansible_git_remote_href}add_role/ | [**RemotesAnsibleGitCreate**](RemotesGitApi.md#RemotesAnsibleGitCreate) | **Post** /pulp/api/v3/remotes/ansible/git/ | Create a git remote [**RemotesAnsibleGitDelete**](RemotesGitApi.md#RemotesAnsibleGitDelete) | **Delete** /{ansible_git_remote_href} | Delete a git remote [**RemotesAnsibleGitList**](RemotesGitApi.md#RemotesAnsibleGitList) | **Get** /pulp/api/v3/remotes/ansible/git/ | List git remotes +[**RemotesAnsibleGitListRoles**](RemotesGitApi.md#RemotesAnsibleGitListRoles) | **Get** /{ansible_git_remote_href}list_roles/ | +[**RemotesAnsibleGitMyPermissions**](RemotesGitApi.md#RemotesAnsibleGitMyPermissions) | **Get** /{ansible_git_remote_href}my_permissions/ | [**RemotesAnsibleGitPartialUpdate**](RemotesGitApi.md#RemotesAnsibleGitPartialUpdate) | **Patch** /{ansible_git_remote_href} | Update a git remote [**RemotesAnsibleGitRead**](RemotesGitApi.md#RemotesAnsibleGitRead) | **Get** /{ansible_git_remote_href} | Inspect a git remote +[**RemotesAnsibleGitRemoveRole**](RemotesGitApi.md#RemotesAnsibleGitRemoveRole) | **Post** /{ansible_git_remote_href}remove_role/ | [**RemotesAnsibleGitUpdate**](RemotesGitApi.md#RemotesAnsibleGitUpdate) | **Put** /{ansible_git_remote_href} | Update a git remote +## RemotesAnsibleGitAddRole + +> NestedRoleResponse RemotesAnsibleGitAddRole(ctx, ansibleGitRemoteHref).NestedRole(nestedRole).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleGitRemoteHref := "ansibleGitRemoteHref_example" // string | + nestedRole := *openapiclient.NewNestedRole("Role_example") // NestedRole | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RemotesGitApi.RemotesAnsibleGitAddRole(context.Background(), ansibleGitRemoteHref).NestedRole(nestedRole).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RemotesGitApi.RemotesAnsibleGitAddRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RemotesAnsibleGitAddRole`: NestedRoleResponse + fmt.Fprintf(os.Stdout, "Response from `RemotesGitApi.RemotesAnsibleGitAddRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleGitRemoteHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemotesAnsibleGitAddRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **nestedRole** | [**NestedRole**](NestedRole.md) | | + +### Return type + +[**NestedRoleResponse**](NestedRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## RemotesAnsibleGitCreate > AnsibleGitRemoteResponse RemotesAnsibleGitCreate(ctx).AnsibleGitRemote(ansibleGitRemote).Execute() @@ -248,6 +324,154 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## RemotesAnsibleGitListRoles + +> ObjectRolesResponse RemotesAnsibleGitListRoles(ctx, ansibleGitRemoteHref).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleGitRemoteHref := "ansibleGitRemoteHref_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RemotesGitApi.RemotesAnsibleGitListRoles(context.Background(), ansibleGitRemoteHref).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RemotesGitApi.RemotesAnsibleGitListRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RemotesAnsibleGitListRoles`: ObjectRolesResponse + fmt.Fprintf(os.Stdout, "Response from `RemotesGitApi.RemotesAnsibleGitListRoles`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleGitRemoteHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemotesAnsibleGitListRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**ObjectRolesResponse**](ObjectRolesResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RemotesAnsibleGitMyPermissions + +> MyPermissionsResponse RemotesAnsibleGitMyPermissions(ctx, ansibleGitRemoteHref).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleGitRemoteHref := "ansibleGitRemoteHref_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RemotesGitApi.RemotesAnsibleGitMyPermissions(context.Background(), ansibleGitRemoteHref).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RemotesGitApi.RemotesAnsibleGitMyPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RemotesAnsibleGitMyPermissions`: MyPermissionsResponse + fmt.Fprintf(os.Stdout, "Response from `RemotesGitApi.RemotesAnsibleGitMyPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleGitRemoteHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemotesAnsibleGitMyPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**MyPermissionsResponse**](MyPermissionsResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## RemotesAnsibleGitPartialUpdate > AsyncOperationResponse RemotesAnsibleGitPartialUpdate(ctx, ansibleGitRemoteHref).PatchedansibleGitRemote(patchedansibleGitRemote).Execute() @@ -394,6 +618,78 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## RemotesAnsibleGitRemoveRole + +> NestedRoleResponse RemotesAnsibleGitRemoveRole(ctx, ansibleGitRemoteHref).NestedRole(nestedRole).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleGitRemoteHref := "ansibleGitRemoteHref_example" // string | + nestedRole := *openapiclient.NewNestedRole("Role_example") // NestedRole | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RemotesGitApi.RemotesAnsibleGitRemoveRole(context.Background(), ansibleGitRemoteHref).NestedRole(nestedRole).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RemotesGitApi.RemotesAnsibleGitRemoveRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RemotesAnsibleGitRemoveRole`: NestedRoleResponse + fmt.Fprintf(os.Stdout, "Response from `RemotesGitApi.RemotesAnsibleGitRemoveRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleGitRemoteHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemotesAnsibleGitRemoveRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **nestedRole** | [**NestedRole**](NestedRole.md) | | + +### Return type + +[**NestedRoleResponse**](NestedRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## RemotesAnsibleGitUpdate > AsyncOperationResponse RemotesAnsibleGitUpdate(ctx, ansibleGitRemoteHref).AnsibleGitRemote(ansibleGitRemote).Execute() diff --git a/release/docs/RemotesRoleApi.md b/release/docs/RemotesRoleApi.md index e5ec3336..b6327518 100644 --- a/release/docs/RemotesRoleApi.md +++ b/release/docs/RemotesRoleApi.md @@ -4,15 +4,91 @@ All URIs are relative to *http://localhost:8080* Method | HTTP request | Description ------------- | ------------- | ------------- +[**RemotesAnsibleRoleAddRole**](RemotesRoleApi.md#RemotesAnsibleRoleAddRole) | **Post** /{ansible_role_remote_href}add_role/ | [**RemotesAnsibleRoleCreate**](RemotesRoleApi.md#RemotesAnsibleRoleCreate) | **Post** /pulp/api/v3/remotes/ansible/role/ | Create a role remote [**RemotesAnsibleRoleDelete**](RemotesRoleApi.md#RemotesAnsibleRoleDelete) | **Delete** /{ansible_role_remote_href} | Delete a role remote [**RemotesAnsibleRoleList**](RemotesRoleApi.md#RemotesAnsibleRoleList) | **Get** /pulp/api/v3/remotes/ansible/role/ | List role remotes +[**RemotesAnsibleRoleListRoles**](RemotesRoleApi.md#RemotesAnsibleRoleListRoles) | **Get** /{ansible_role_remote_href}list_roles/ | +[**RemotesAnsibleRoleMyPermissions**](RemotesRoleApi.md#RemotesAnsibleRoleMyPermissions) | **Get** /{ansible_role_remote_href}my_permissions/ | [**RemotesAnsibleRolePartialUpdate**](RemotesRoleApi.md#RemotesAnsibleRolePartialUpdate) | **Patch** /{ansible_role_remote_href} | Update a role remote [**RemotesAnsibleRoleRead**](RemotesRoleApi.md#RemotesAnsibleRoleRead) | **Get** /{ansible_role_remote_href} | Inspect a role remote +[**RemotesAnsibleRoleRemoveRole**](RemotesRoleApi.md#RemotesAnsibleRoleRemoveRole) | **Post** /{ansible_role_remote_href}remove_role/ | [**RemotesAnsibleRoleUpdate**](RemotesRoleApi.md#RemotesAnsibleRoleUpdate) | **Put** /{ansible_role_remote_href} | Update a role remote +## RemotesAnsibleRoleAddRole + +> NestedRoleResponse RemotesAnsibleRoleAddRole(ctx, ansibleRoleRemoteHref).NestedRole(nestedRole).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleRoleRemoteHref := "ansibleRoleRemoteHref_example" // string | + nestedRole := *openapiclient.NewNestedRole("Role_example") // NestedRole | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RemotesRoleApi.RemotesAnsibleRoleAddRole(context.Background(), ansibleRoleRemoteHref).NestedRole(nestedRole).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RemotesRoleApi.RemotesAnsibleRoleAddRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RemotesAnsibleRoleAddRole`: NestedRoleResponse + fmt.Fprintf(os.Stdout, "Response from `RemotesRoleApi.RemotesAnsibleRoleAddRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleRoleRemoteHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemotesAnsibleRoleAddRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **nestedRole** | [**NestedRole**](NestedRole.md) | | + +### Return type + +[**NestedRoleResponse**](NestedRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## RemotesAnsibleRoleCreate > AnsibleRoleRemoteResponse RemotesAnsibleRoleCreate(ctx).AnsibleRoleRemote(ansibleRoleRemote).Execute() @@ -248,6 +324,154 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## RemotesAnsibleRoleListRoles + +> ObjectRolesResponse RemotesAnsibleRoleListRoles(ctx, ansibleRoleRemoteHref).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleRoleRemoteHref := "ansibleRoleRemoteHref_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RemotesRoleApi.RemotesAnsibleRoleListRoles(context.Background(), ansibleRoleRemoteHref).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RemotesRoleApi.RemotesAnsibleRoleListRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RemotesAnsibleRoleListRoles`: ObjectRolesResponse + fmt.Fprintf(os.Stdout, "Response from `RemotesRoleApi.RemotesAnsibleRoleListRoles`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleRoleRemoteHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemotesAnsibleRoleListRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**ObjectRolesResponse**](ObjectRolesResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RemotesAnsibleRoleMyPermissions + +> MyPermissionsResponse RemotesAnsibleRoleMyPermissions(ctx, ansibleRoleRemoteHref).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleRoleRemoteHref := "ansibleRoleRemoteHref_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RemotesRoleApi.RemotesAnsibleRoleMyPermissions(context.Background(), ansibleRoleRemoteHref).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RemotesRoleApi.RemotesAnsibleRoleMyPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RemotesAnsibleRoleMyPermissions`: MyPermissionsResponse + fmt.Fprintf(os.Stdout, "Response from `RemotesRoleApi.RemotesAnsibleRoleMyPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleRoleRemoteHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemotesAnsibleRoleMyPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**MyPermissionsResponse**](MyPermissionsResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## RemotesAnsibleRolePartialUpdate > AsyncOperationResponse RemotesAnsibleRolePartialUpdate(ctx, ansibleRoleRemoteHref).PatchedansibleRoleRemote(patchedansibleRoleRemote).Execute() @@ -394,6 +618,78 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## RemotesAnsibleRoleRemoveRole + +> NestedRoleResponse RemotesAnsibleRoleRemoveRole(ctx, ansibleRoleRemoteHref).NestedRole(nestedRole).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleRoleRemoteHref := "ansibleRoleRemoteHref_example" // string | + nestedRole := *openapiclient.NewNestedRole("Role_example") // NestedRole | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RemotesRoleApi.RemotesAnsibleRoleRemoveRole(context.Background(), ansibleRoleRemoteHref).NestedRole(nestedRole).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RemotesRoleApi.RemotesAnsibleRoleRemoveRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RemotesAnsibleRoleRemoveRole`: NestedRoleResponse + fmt.Fprintf(os.Stdout, "Response from `RemotesRoleApi.RemotesAnsibleRoleRemoveRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleRoleRemoteHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemotesAnsibleRoleRemoveRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **nestedRole** | [**NestedRole**](NestedRole.md) | | + +### Return type + +[**NestedRoleResponse**](NestedRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## RemotesAnsibleRoleUpdate > AsyncOperationResponse RemotesAnsibleRoleUpdate(ctx, ansibleRoleRemoteHref).AnsibleRoleRemote(ansibleRoleRemote).Execute() diff --git a/release/docs/RepositoriesAnsibleApi.md b/release/docs/RepositoriesAnsibleApi.md index 4f04672e..d38a1b31 100644 --- a/release/docs/RepositoriesAnsibleApi.md +++ b/release/docs/RepositoriesAnsibleApi.md @@ -4,19 +4,171 @@ All URIs are relative to *http://localhost:8080* Method | HTTP request | Description ------------- | ------------- | ------------- +[**RepositoriesAnsibleAnsibleAddRole**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleAddRole) | **Post** /{ansible_ansible_repository_href}add_role/ | +[**RepositoriesAnsibleAnsibleCopyCollectionVersion**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleCopyCollectionVersion) | **Post** /{ansible_ansible_repository_href}copy_collection_version/ | [**RepositoriesAnsibleAnsibleCreate**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleCreate) | **Post** /pulp/api/v3/repositories/ansible/ansible/ | Create an ansible repository [**RepositoriesAnsibleAnsibleDelete**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleDelete) | **Delete** /{ansible_ansible_repository_href} | Delete an ansible repository [**RepositoriesAnsibleAnsibleList**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleList) | **Get** /pulp/api/v3/repositories/ansible/ansible/ | List ansible repositorys +[**RepositoriesAnsibleAnsibleListRoles**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleListRoles) | **Get** /{ansible_ansible_repository_href}list_roles/ | +[**RepositoriesAnsibleAnsibleMark**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleMark) | **Post** /{ansible_ansible_repository_href}mark/ | [**RepositoriesAnsibleAnsibleModify**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleModify) | **Post** /{ansible_ansible_repository_href}modify/ | Modify Repository Content +[**RepositoriesAnsibleAnsibleMoveCollectionVersion**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleMoveCollectionVersion) | **Post** /{ansible_ansible_repository_href}move_collection_version/ | +[**RepositoriesAnsibleAnsibleMyPermissions**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleMyPermissions) | **Get** /{ansible_ansible_repository_href}my_permissions/ | [**RepositoriesAnsibleAnsiblePartialUpdate**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsiblePartialUpdate) | **Patch** /{ansible_ansible_repository_href} | Update an ansible repository [**RepositoriesAnsibleAnsibleRead**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleRead) | **Get** /{ansible_ansible_repository_href} | Inspect an ansible repository [**RepositoriesAnsibleAnsibleRebuildMetadata**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleRebuildMetadata) | **Post** /{ansible_ansible_repository_href}rebuild_metadata/ | +[**RepositoriesAnsibleAnsibleRemoveRole**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleRemoveRole) | **Post** /{ansible_ansible_repository_href}remove_role/ | [**RepositoriesAnsibleAnsibleSign**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleSign) | **Post** /{ansible_ansible_repository_href}sign/ | [**RepositoriesAnsibleAnsibleSync**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleSync) | **Post** /{ansible_ansible_repository_href}sync/ | +[**RepositoriesAnsibleAnsibleUnmark**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleUnmark) | **Post** /{ansible_ansible_repository_href}unmark/ | [**RepositoriesAnsibleAnsibleUpdate**](RepositoriesAnsibleApi.md#RepositoriesAnsibleAnsibleUpdate) | **Put** /{ansible_ansible_repository_href} | Update an ansible repository +## RepositoriesAnsibleAnsibleAddRole + +> NestedRoleResponse RepositoriesAnsibleAnsibleAddRole(ctx, ansibleAnsibleRepositoryHref).NestedRole(nestedRole).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleAnsibleRepositoryHref := "ansibleAnsibleRepositoryHref_example" // string | + nestedRole := *openapiclient.NewNestedRole("Role_example") // NestedRole | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleAddRole(context.Background(), ansibleAnsibleRepositoryHref).NestedRole(nestedRole).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleAddRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RepositoriesAnsibleAnsibleAddRole`: NestedRoleResponse + fmt.Fprintf(os.Stdout, "Response from `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleAddRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleAnsibleRepositoryHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRepositoriesAnsibleAnsibleAddRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **nestedRole** | [**NestedRole**](NestedRole.md) | | + +### Return type + +[**NestedRoleResponse**](NestedRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RepositoriesAnsibleAnsibleCopyCollectionVersion + +> AsyncOperationResponse RepositoriesAnsibleAnsibleCopyCollectionVersion(ctx, ansibleAnsibleRepositoryHref).CollectionVersionCopyMove(collectionVersionCopyMove).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleAnsibleRepositoryHref := "ansibleAnsibleRepositoryHref_example" // string | + collectionVersionCopyMove := *openapiclient.NewCollectionVersionCopyMove([]string{"CollectionVersions_example"}, []string{"DestinationRepositories_example"}) // CollectionVersionCopyMove | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleCopyCollectionVersion(context.Background(), ansibleAnsibleRepositoryHref).CollectionVersionCopyMove(collectionVersionCopyMove).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleCopyCollectionVersion``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RepositoriesAnsibleAnsibleCopyCollectionVersion`: AsyncOperationResponse + fmt.Fprintf(os.Stdout, "Response from `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleCopyCollectionVersion`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleAnsibleRepositoryHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRepositoriesAnsibleAnsibleCopyCollectionVersionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **collectionVersionCopyMove** | [**CollectionVersionCopyMove**](CollectionVersionCopyMove.md) | | + +### Return type + +[**AsyncOperationResponse**](AsyncOperationResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## RepositoriesAnsibleAnsibleCreate > AnsibleAnsibleRepositoryResponse RepositoriesAnsibleAnsibleCreate(ctx).AnsibleAnsibleRepository(ansibleAnsibleRepository).Execute() @@ -257,6 +409,152 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## RepositoriesAnsibleAnsibleListRoles + +> ObjectRolesResponse RepositoriesAnsibleAnsibleListRoles(ctx, ansibleAnsibleRepositoryHref).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleAnsibleRepositoryHref := "ansibleAnsibleRepositoryHref_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleListRoles(context.Background(), ansibleAnsibleRepositoryHref).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleListRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RepositoriesAnsibleAnsibleListRoles`: ObjectRolesResponse + fmt.Fprintf(os.Stdout, "Response from `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleListRoles`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleAnsibleRepositoryHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRepositoriesAnsibleAnsibleListRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**ObjectRolesResponse**](ObjectRolesResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RepositoriesAnsibleAnsibleMark + +> AsyncOperationResponse RepositoriesAnsibleAnsibleMark(ctx, ansibleAnsibleRepositoryHref).AnsibleRepositoryMark(ansibleRepositoryMark).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleAnsibleRepositoryHref := "ansibleAnsibleRepositoryHref_example" // string | + ansibleRepositoryMark := *openapiclient.NewAnsibleRepositoryMark([]interface{}{nil}, "Value_example") // AnsibleRepositoryMark | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleMark(context.Background(), ansibleAnsibleRepositoryHref).AnsibleRepositoryMark(ansibleRepositoryMark).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleMark``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RepositoriesAnsibleAnsibleMark`: AsyncOperationResponse + fmt.Fprintf(os.Stdout, "Response from `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleMark`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleAnsibleRepositoryHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRepositoriesAnsibleAnsibleMarkRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **ansibleRepositoryMark** | [**AnsibleRepositoryMark**](AnsibleRepositoryMark.md) | | + +### Return type + +[**AsyncOperationResponse**](AsyncOperationResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## RepositoriesAnsibleAnsibleModify > AsyncOperationResponse RepositoriesAnsibleAnsibleModify(ctx, ansibleAnsibleRepositoryHref).RepositoryAddRemoveContent(repositoryAddRemoveContent).Execute() @@ -329,6 +627,152 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## RepositoriesAnsibleAnsibleMoveCollectionVersion + +> AsyncOperationResponse RepositoriesAnsibleAnsibleMoveCollectionVersion(ctx, ansibleAnsibleRepositoryHref).CollectionVersionCopyMove(collectionVersionCopyMove).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleAnsibleRepositoryHref := "ansibleAnsibleRepositoryHref_example" // string | + collectionVersionCopyMove := *openapiclient.NewCollectionVersionCopyMove([]string{"CollectionVersions_example"}, []string{"DestinationRepositories_example"}) // CollectionVersionCopyMove | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleMoveCollectionVersion(context.Background(), ansibleAnsibleRepositoryHref).CollectionVersionCopyMove(collectionVersionCopyMove).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleMoveCollectionVersion``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RepositoriesAnsibleAnsibleMoveCollectionVersion`: AsyncOperationResponse + fmt.Fprintf(os.Stdout, "Response from `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleMoveCollectionVersion`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleAnsibleRepositoryHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRepositoriesAnsibleAnsibleMoveCollectionVersionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **collectionVersionCopyMove** | [**CollectionVersionCopyMove**](CollectionVersionCopyMove.md) | | + +### Return type + +[**AsyncOperationResponse**](AsyncOperationResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RepositoriesAnsibleAnsibleMyPermissions + +> MyPermissionsResponse RepositoriesAnsibleAnsibleMyPermissions(ctx, ansibleAnsibleRepositoryHref).Fields(fields).ExcludeFields(excludeFields).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleAnsibleRepositoryHref := "ansibleAnsibleRepositoryHref_example" // string | + fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) + excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleMyPermissions(context.Background(), ansibleAnsibleRepositoryHref).Fields(fields).ExcludeFields(excludeFields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleMyPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RepositoriesAnsibleAnsibleMyPermissions`: MyPermissionsResponse + fmt.Fprintf(os.Stdout, "Response from `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleMyPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleAnsibleRepositoryHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRepositoriesAnsibleAnsibleMyPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fields** | **[]string** | A list of fields to include in the response. | + **excludeFields** | **[]string** | A list of fields to exclude from the response. | + +### Return type + +[**MyPermissionsResponse**](MyPermissionsResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## RepositoriesAnsibleAnsiblePartialUpdate > AsyncOperationResponse RepositoriesAnsibleAnsiblePartialUpdate(ctx, ansibleAnsibleRepositoryHref).PatchedansibleAnsibleRepository(patchedansibleAnsibleRepository).Execute() @@ -547,6 +991,78 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## RepositoriesAnsibleAnsibleRemoveRole + +> NestedRoleResponse RepositoriesAnsibleAnsibleRemoveRole(ctx, ansibleAnsibleRepositoryHref).NestedRole(nestedRole).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleAnsibleRepositoryHref := "ansibleAnsibleRepositoryHref_example" // string | + nestedRole := *openapiclient.NewNestedRole("Role_example") // NestedRole | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleRemoveRole(context.Background(), ansibleAnsibleRepositoryHref).NestedRole(nestedRole).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleRemoveRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RepositoriesAnsibleAnsibleRemoveRole`: NestedRoleResponse + fmt.Fprintf(os.Stdout, "Response from `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleRemoveRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleAnsibleRepositoryHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRepositoriesAnsibleAnsibleRemoveRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **nestedRole** | [**NestedRole**](NestedRole.md) | | + +### Return type + +[**NestedRoleResponse**](NestedRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## RepositoriesAnsibleAnsibleSign > AsyncOperationResponse RepositoriesAnsibleAnsibleSign(ctx, ansibleAnsibleRepositoryHref).AnsibleRepositorySignature(ansibleRepositorySignature).Execute() @@ -691,6 +1207,78 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## RepositoriesAnsibleAnsibleUnmark + +> AsyncOperationResponse RepositoriesAnsibleAnsibleUnmark(ctx, ansibleAnsibleRepositoryHref).AnsibleRepositoryMark(ansibleRepositoryMark).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/content-services/zest/release/v3" +) + +func main() { + ansibleAnsibleRepositoryHref := "ansibleAnsibleRepositoryHref_example" // string | + ansibleRepositoryMark := *openapiclient.NewAnsibleRepositoryMark([]interface{}{nil}, "Value_example") // AnsibleRepositoryMark | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleUnmark(context.Background(), ansibleAnsibleRepositoryHref).AnsibleRepositoryMark(ansibleRepositoryMark).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleUnmark``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RepositoriesAnsibleAnsibleUnmark`: AsyncOperationResponse + fmt.Fprintf(os.Stdout, "Response from `RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleUnmark`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ansibleAnsibleRepositoryHref** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRepositoriesAnsibleAnsibleUnmarkRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **ansibleRepositoryMark** | [**AnsibleRepositoryMark**](AnsibleRepositoryMark.md) | | + +### Return type + +[**AsyncOperationResponse**](AsyncOperationResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth), [cookieAuth](../README.md#cookieAuth) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## RepositoriesAnsibleAnsibleUpdate > AsyncOperationResponse RepositoriesAnsibleAnsibleUpdate(ctx, ansibleAnsibleRepositoryHref).AnsibleAnsibleRepository(ansibleAnsibleRepository).Execute() diff --git a/release/docs/Repository.md b/release/docs/Repository.md new file mode 100644 index 00000000..eb4dc821 --- /dev/null +++ b/release/docs/Repository.md @@ -0,0 +1,185 @@ +# Repository + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PulpLabels** | Pointer to **map[string]string** | | [optional] +**Name** | **string** | A unique name for this repository. | +**Description** | Pointer to **NullableString** | An optional description. | [optional] +**RetainRepoVersions** | Pointer to **NullableInt64** | Retain X versions of the repository. Default is null which retains all versions. | [optional] +**Remote** | Pointer to **NullableString** | An optional remote to use by default when syncing. | [optional] + +## Methods + +### NewRepository + +`func NewRepository(name string, ) *Repository` + +NewRepository instantiates a new Repository object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRepositoryWithDefaults + +`func NewRepositoryWithDefaults() *Repository` + +NewRepositoryWithDefaults instantiates a new Repository object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPulpLabels + +`func (o *Repository) GetPulpLabels() map[string]string` + +GetPulpLabels returns the PulpLabels field if non-nil, zero value otherwise. + +### GetPulpLabelsOk + +`func (o *Repository) GetPulpLabelsOk() (*map[string]string, bool)` + +GetPulpLabelsOk returns a tuple with the PulpLabels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPulpLabels + +`func (o *Repository) SetPulpLabels(v map[string]string)` + +SetPulpLabels sets PulpLabels field to given value. + +### HasPulpLabels + +`func (o *Repository) HasPulpLabels() bool` + +HasPulpLabels returns a boolean if a field has been set. + +### GetName + +`func (o *Repository) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Repository) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Repository) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *Repository) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Repository) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Repository) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Repository) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *Repository) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *Repository) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetRetainRepoVersions + +`func (o *Repository) GetRetainRepoVersions() int64` + +GetRetainRepoVersions returns the RetainRepoVersions field if non-nil, zero value otherwise. + +### GetRetainRepoVersionsOk + +`func (o *Repository) GetRetainRepoVersionsOk() (*int64, bool)` + +GetRetainRepoVersionsOk returns a tuple with the RetainRepoVersions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetainRepoVersions + +`func (o *Repository) SetRetainRepoVersions(v int64)` + +SetRetainRepoVersions sets RetainRepoVersions field to given value. + +### HasRetainRepoVersions + +`func (o *Repository) HasRetainRepoVersions() bool` + +HasRetainRepoVersions returns a boolean if a field has been set. + +### SetRetainRepoVersionsNil + +`func (o *Repository) SetRetainRepoVersionsNil(b bool)` + + SetRetainRepoVersionsNil sets the value for RetainRepoVersions to be an explicit nil + +### UnsetRetainRepoVersions +`func (o *Repository) UnsetRetainRepoVersions()` + +UnsetRetainRepoVersions ensures that no value is present for RetainRepoVersions, not even an explicit nil +### GetRemote + +`func (o *Repository) GetRemote() string` + +GetRemote returns the Remote field if non-nil, zero value otherwise. + +### GetRemoteOk + +`func (o *Repository) GetRemoteOk() (*string, bool)` + +GetRemoteOk returns a tuple with the Remote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemote + +`func (o *Repository) SetRemote(v string)` + +SetRemote sets Remote field to given value. + +### HasRemote + +`func (o *Repository) HasRemote() bool` + +HasRemote returns a boolean if a field has been set. + +### SetRemoteNil + +`func (o *Repository) SetRemoteNil(b bool)` + + SetRemoteNil sets the value for Remote to be an explicit nil + +### UnsetRemote +`func (o *Repository) UnsetRemote()` + +UnsetRemote ensures that no value is present for Remote, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/RpmPackage.md b/release/docs/RpmPackage.md new file mode 100644 index 00000000..449064ce --- /dev/null +++ b/release/docs/RpmPackage.md @@ -0,0 +1,160 @@ +# RpmPackage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Artifact** | Pointer to **string** | Artifact file representing the physical content | [optional] +**RelativePath** | Pointer to **string** | Path where the artifact is located relative to distributions base_path | [optional] +**File** | Pointer to ***os.File** | An uploaded file that may be turned into the artifact of the content unit. | [optional] +**Repository** | Pointer to **string** | A URI of a repository the new content unit should be associated with. | [optional] +**Upload** | Pointer to **string** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional] + +## Methods + +### NewRpmPackage + +`func NewRpmPackage() *RpmPackage` + +NewRpmPackage instantiates a new RpmPackage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRpmPackageWithDefaults + +`func NewRpmPackageWithDefaults() *RpmPackage` + +NewRpmPackageWithDefaults instantiates a new RpmPackage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArtifact + +`func (o *RpmPackage) GetArtifact() string` + +GetArtifact returns the Artifact field if non-nil, zero value otherwise. + +### GetArtifactOk + +`func (o *RpmPackage) GetArtifactOk() (*string, bool)` + +GetArtifactOk returns a tuple with the Artifact field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifact + +`func (o *RpmPackage) SetArtifact(v string)` + +SetArtifact sets Artifact field to given value. + +### HasArtifact + +`func (o *RpmPackage) HasArtifact() bool` + +HasArtifact returns a boolean if a field has been set. + +### GetRelativePath + +`func (o *RpmPackage) GetRelativePath() string` + +GetRelativePath returns the RelativePath field if non-nil, zero value otherwise. + +### GetRelativePathOk + +`func (o *RpmPackage) GetRelativePathOk() (*string, bool)` + +GetRelativePathOk returns a tuple with the RelativePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelativePath + +`func (o *RpmPackage) SetRelativePath(v string)` + +SetRelativePath sets RelativePath field to given value. + +### HasRelativePath + +`func (o *RpmPackage) HasRelativePath() bool` + +HasRelativePath returns a boolean if a field has been set. + +### GetFile + +`func (o *RpmPackage) GetFile() *os.File` + +GetFile returns the File field if non-nil, zero value otherwise. + +### GetFileOk + +`func (o *RpmPackage) GetFileOk() (**os.File, bool)` + +GetFileOk returns a tuple with the File field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFile + +`func (o *RpmPackage) SetFile(v *os.File)` + +SetFile sets File field to given value. + +### HasFile + +`func (o *RpmPackage) HasFile() bool` + +HasFile returns a boolean if a field has been set. + +### GetRepository + +`func (o *RpmPackage) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *RpmPackage) GetRepositoryOk() (*string, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *RpmPackage) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *RpmPackage) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetUpload + +`func (o *RpmPackage) GetUpload() string` + +GetUpload returns the Upload field if non-nil, zero value otherwise. + +### GetUploadOk + +`func (o *RpmPackage) GetUploadOk() (*string, bool)` + +GetUploadOk returns a tuple with the Upload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpload + +`func (o *RpmPackage) SetUpload(v string)` + +SetUpload sets Upload field to given value. + +### HasUpload + +`func (o *RpmPackage) HasUpload() bool` + +HasUpload returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/RpmUpdateRecord.md b/release/docs/RpmUpdateRecord.md new file mode 100644 index 00000000..0a327f8c --- /dev/null +++ b/release/docs/RpmUpdateRecord.md @@ -0,0 +1,82 @@ +# RpmUpdateRecord + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**File** | Pointer to ***os.File** | An uploaded file that may be turned into the artifact of the content unit. | [optional] +**Repository** | Pointer to **string** | A URI of a repository the new content unit should be associated with. | [optional] + +## Methods + +### NewRpmUpdateRecord + +`func NewRpmUpdateRecord() *RpmUpdateRecord` + +NewRpmUpdateRecord instantiates a new RpmUpdateRecord object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRpmUpdateRecordWithDefaults + +`func NewRpmUpdateRecordWithDefaults() *RpmUpdateRecord` + +NewRpmUpdateRecordWithDefaults instantiates a new RpmUpdateRecord object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFile + +`func (o *RpmUpdateRecord) GetFile() *os.File` + +GetFile returns the File field if non-nil, zero value otherwise. + +### GetFileOk + +`func (o *RpmUpdateRecord) GetFileOk() (**os.File, bool)` + +GetFileOk returns a tuple with the File field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFile + +`func (o *RpmUpdateRecord) SetFile(v *os.File)` + +SetFile sets File field to given value. + +### HasFile + +`func (o *RpmUpdateRecord) HasFile() bool` + +HasFile returns a boolean if a field has been set. + +### GetRepository + +`func (o *RpmUpdateRecord) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *RpmUpdateRecord) GetRepositoryOk() (*string, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *RpmUpdateRecord) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *RpmUpdateRecord) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/Task.md b/release/docs/Task.md new file mode 100644 index 00000000..0643e66f --- /dev/null +++ b/release/docs/Task.md @@ -0,0 +1,72 @@ +# Task + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of task. | +**LoggingCid** | **string** | The logging correlation id associated with this task | + +## Methods + +### NewTask + +`func NewTask(name string, loggingCid string, ) *Task` + +NewTask instantiates a new Task object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTaskWithDefaults + +`func NewTaskWithDefaults() *Task` + +NewTaskWithDefaults instantiates a new Task object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *Task) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Task) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Task) SetName(v string)` + +SetName sets Name field to given value. + + +### GetLoggingCid + +`func (o *Task) GetLoggingCid() string` + +GetLoggingCid returns the LoggingCid field if non-nil, zero value otherwise. + +### GetLoggingCidOk + +`func (o *Task) GetLoggingCidOk() (*string, bool)` + +GetLoggingCidOk returns a tuple with the LoggingCid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoggingCid + +`func (o *Task) SetLoggingCid(v string)` + +SetLoggingCid sets LoggingCid field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/UnpaginatedCollectionVersionResponse.md b/release/docs/UnpaginatedCollectionVersionResponse.md index 5e9e41ad..30cc6e7a 100644 --- a/release/docs/UnpaginatedCollectionVersionResponse.md +++ b/release/docs/UnpaginatedCollectionVersionResponse.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **CreatedAt** | **time.Time** | | **UpdatedAt** | **time.Time** | | **RequiresAnsible** | Pointer to **NullableString** | | [optional] +**Marks** | Pointer to **[]string** | | [optional] [readonly] **Artifact** | Pointer to [**ArtifactRefResponse**](ArtifactRefResponse.md) | | [optional] [readonly] **Collection** | Pointer to [**CollectionRefResponse**](CollectionRefResponse.md) | | [optional] [readonly] **DownloadUrl** | Pointer to **string** | | [optional] [readonly] @@ -163,6 +164,31 @@ HasRequiresAnsible returns a boolean if a field has been set. `func (o *UnpaginatedCollectionVersionResponse) UnsetRequiresAnsible()` UnsetRequiresAnsible ensures that no value is present for RequiresAnsible, not even an explicit nil +### GetMarks + +`func (o *UnpaginatedCollectionVersionResponse) GetMarks() []string` + +GetMarks returns the Marks field if non-nil, zero value otherwise. + +### GetMarksOk + +`func (o *UnpaginatedCollectionVersionResponse) GetMarksOk() (*[]string, bool)` + +GetMarksOk returns a tuple with the Marks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarks + +`func (o *UnpaginatedCollectionVersionResponse) SetMarks(v []string)` + +SetMarks sets Marks field to given value. + +### HasMarks + +`func (o *UnpaginatedCollectionVersionResponse) HasMarks() bool` + +HasMarks returns a boolean if a field has been set. + ### GetArtifact `func (o *UnpaginatedCollectionVersionResponse) GetArtifact() ArtifactRefResponse` diff --git a/release/docs/UploadChunk.md b/release/docs/UploadChunk.md new file mode 100644 index 00000000..2d3b9627 --- /dev/null +++ b/release/docs/UploadChunk.md @@ -0,0 +1,87 @@ +# UploadChunk + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**File** | ***os.File** | A chunk of the uploaded file. | +**Sha256** | Pointer to **NullableString** | The SHA-256 checksum of the chunk if available. | [optional] + +## Methods + +### NewUploadChunk + +`func NewUploadChunk(file *os.File, ) *UploadChunk` + +NewUploadChunk instantiates a new UploadChunk object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUploadChunkWithDefaults + +`func NewUploadChunkWithDefaults() *UploadChunk` + +NewUploadChunkWithDefaults instantiates a new UploadChunk object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFile + +`func (o *UploadChunk) GetFile() *os.File` + +GetFile returns the File field if non-nil, zero value otherwise. + +### GetFileOk + +`func (o *UploadChunk) GetFileOk() (**os.File, bool)` + +GetFileOk returns a tuple with the File field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFile + +`func (o *UploadChunk) SetFile(v *os.File)` + +SetFile sets File field to given value. + + +### GetSha256 + +`func (o *UploadChunk) GetSha256() string` + +GetSha256 returns the Sha256 field if non-nil, zero value otherwise. + +### GetSha256Ok + +`func (o *UploadChunk) GetSha256Ok() (*string, bool)` + +GetSha256Ok returns a tuple with the Sha256 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSha256 + +`func (o *UploadChunk) SetSha256(v string)` + +SetSha256 sets Sha256 field to given value. + +### HasSha256 + +`func (o *UploadChunk) HasSha256() bool` + +HasSha256 returns a boolean if a field has been set. + +### SetSha256Nil + +`func (o *UploadChunk) SetSha256Nil(b bool)` + + SetSha256Nil sets the value for Sha256 to be an explicit nil + +### UnsetSha256 +`func (o *UploadChunk) UnsetSha256()` + +UnsetSha256 ensures that no value is present for Sha256, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/release/docs/VersionsApi.md b/release/docs/VersionsApi.md index 290ece63..a6044b5b 100644 --- a/release/docs/VersionsApi.md +++ b/release/docs/VersionsApi.md @@ -4,14 +4,14 @@ All URIs are relative to *http://localhost:8080* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CollectionVersionsGet**](VersionsApi.md#CollectionVersionsGet) | **Get** /{ansible_collection_version_href}versions/ | -[**VersionsGet**](VersionsApi.md#VersionsGet) | **Get** /{ansible_role_href}versions/ | +[**ApiV1RolesVersionsList**](VersionsApi.md#ApiV1RolesVersionsList) | **Get** /{ansible_role_href}versions/ | +[**ApiV2CollectionVersionsList**](VersionsApi.md#ApiV2CollectionVersionsList) | **Get** /{ansible_collection_version_href}versions/ | -## CollectionVersionsGet +## ApiV1RolesVersionsList -> PaginatedGalaxyCollectionVersionResponseList CollectionVersionsGet(ctx, ansibleCollectionVersionHref).Page(page).Fields(fields).ExcludeFields(excludeFields).Execute() +> PaginatedGalaxyRoleVersionResponseList ApiV1RolesVersionsList(ctx, ansibleRoleHref).Limit(limit).Offset(offset).Fields(fields).ExcludeFields(excludeFields).Execute() @@ -30,20 +30,21 @@ import ( ) func main() { - ansibleCollectionVersionHref := "ansibleCollectionVersionHref_example" // string | - page := int32(56) // int32 | A page number within the paginated result set. (optional) + ansibleRoleHref := "ansibleRoleHref_example" // string | + limit := int32(56) // int32 | Number of results to return per page. (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VersionsApi.CollectionVersionsGet(context.Background(), ansibleCollectionVersionHref).Page(page).Fields(fields).ExcludeFields(excludeFields).Execute() + resp, r, err := apiClient.VersionsApi.ApiV1RolesVersionsList(context.Background(), ansibleRoleHref).Limit(limit).Offset(offset).Fields(fields).ExcludeFields(excludeFields).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.CollectionVersionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.ApiV1RolesVersionsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CollectionVersionsGet`: PaginatedGalaxyCollectionVersionResponseList - fmt.Fprintf(os.Stdout, "Response from `VersionsApi.CollectionVersionsGet`: %v\n", resp) + // response from `ApiV1RolesVersionsList`: PaginatedGalaxyRoleVersionResponseList + fmt.Fprintf(os.Stdout, "Response from `VersionsApi.ApiV1RolesVersionsList`: %v\n", resp) } ``` @@ -53,23 +54,24 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ansibleCollectionVersionHref** | **string** | | +**ansibleRoleHref** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiCollectionVersionsGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiApiV1RolesVersionsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **int32** | A page number within the paginated result set. | + **limit** | **int32** | Number of results to return per page. | + **offset** | **int32** | The initial index from which to return the results. | **fields** | **[]string** | A list of fields to include in the response. | **excludeFields** | **[]string** | A list of fields to exclude from the response. | ### Return type -[**PaginatedGalaxyCollectionVersionResponseList**](PaginatedGalaxyCollectionVersionResponseList.md) +[**PaginatedGalaxyRoleVersionResponseList**](PaginatedGalaxyRoleVersionResponseList.md) ### Authorization @@ -85,9 +87,9 @@ No authorization required [[Back to README]](../README.md) -## VersionsGet +## ApiV2CollectionVersionsList -> PaginatedGalaxyRoleVersionResponseList VersionsGet(ctx, ansibleRoleHref).Limit(limit).Offset(offset).Fields(fields).ExcludeFields(excludeFields).Execute() +> PaginatedGalaxyCollectionVersionResponseList ApiV2CollectionVersionsList(ctx, ansibleCollectionVersionHref).Page(page).Fields(fields).ExcludeFields(excludeFields).Execute() @@ -106,21 +108,20 @@ import ( ) func main() { - ansibleRoleHref := "ansibleRoleHref_example" // string | - limit := int32(56) // int32 | Number of results to return per page. (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ansibleCollectionVersionHref := "ansibleCollectionVersionHref_example" // string | + page := int32(56) // int32 | A page number within the paginated result set. (optional) fields := []string{"Inner_example"} // []string | A list of fields to include in the response. (optional) excludeFields := []string{"Inner_example"} // []string | A list of fields to exclude from the response. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VersionsApi.VersionsGet(context.Background(), ansibleRoleHref).Limit(limit).Offset(offset).Fields(fields).ExcludeFields(excludeFields).Execute() + resp, r, err := apiClient.VersionsApi.ApiV2CollectionVersionsList(context.Background(), ansibleCollectionVersionHref).Page(page).Fields(fields).ExcludeFields(excludeFields).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.VersionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.ApiV2CollectionVersionsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `VersionsGet`: PaginatedGalaxyRoleVersionResponseList - fmt.Fprintf(os.Stdout, "Response from `VersionsApi.VersionsGet`: %v\n", resp) + // response from `ApiV2CollectionVersionsList`: PaginatedGalaxyCollectionVersionResponseList + fmt.Fprintf(os.Stdout, "Response from `VersionsApi.ApiV2CollectionVersionsList`: %v\n", resp) } ``` @@ -130,24 +131,23 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ansibleRoleHref** | **string** | | +**ansibleCollectionVersionHref** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiVersionsGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiApiV2CollectionVersionsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int32** | Number of results to return per page. | - **offset** | **int32** | The initial index from which to return the results. | + **page** | **int32** | A page number within the paginated result set. | **fields** | **[]string** | A list of fields to include in the response. | **excludeFields** | **[]string** | A list of fields to exclude from the response. | ### Return type -[**PaginatedGalaxyRoleVersionResponseList**](PaginatedGalaxyRoleVersionResponseList.md) +[**PaginatedGalaxyCollectionVersionResponseList**](PaginatedGalaxyCollectionVersionResponseList.md) ### Authorization diff --git a/release/go.mod b/release/go.mod old mode 100644 new mode 100755 index eeaefc50..ac015e3b --- a/release/go.mod +++ b/release/go.mod @@ -3,4 +3,8 @@ module github.com/content-services/zest/release/v3 go 1.18 require ( + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/stretchr/testify v1.8.2 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/release/go.sum b/release/go.sum old mode 100644 new mode 100755 index c966c8dd..c0d7a04b --- a/release/go.sum +++ b/release/go.sum @@ -1,6 +1,18 @@ cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -9,3 +21,7 @@ golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/release/model_access_policy.go b/release/model_access_policy.go index 226f9d7c..53a288d2 100644 --- a/release/model_access_policy.go +++ b/release/model_access_policy.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_access_policy_response.go b/release/model_access_policy_response.go index a3037e19..74807223 100644 --- a/release/model_access_policy_response.go +++ b/release/model_access_policy_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_addon_response.go b/release/model_addon_response.go index b70c61ad..6957b357 100644 --- a/release/model_addon_response.go +++ b/release/model_addon_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ansible_ansible_distribution.go b/release/model_ansible_ansible_distribution.go index 10b3b901..3a420ffc 100644 --- a/release/model_ansible_ansible_distribution.go +++ b/release/model_ansible_ansible_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ansible_ansible_distribution_response.go b/release/model_ansible_ansible_distribution_response.go index b6260175..829c2d3f 100644 --- a/release/model_ansible_ansible_distribution_response.go +++ b/release/model_ansible_ansible_distribution_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ansible_ansible_namespace_metadata.go b/release/model_ansible_ansible_namespace_metadata.go new file mode 100644 index 00000000..82fe92c3 --- /dev/null +++ b/release/model_ansible_ansible_namespace_metadata.go @@ -0,0 +1,342 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the AnsibleAnsibleNamespaceMetadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnsibleAnsibleNamespaceMetadata{} + +// AnsibleAnsibleNamespaceMetadata A serializer for Namespaces. +type AnsibleAnsibleNamespaceMetadata struct { + // Required named, only accepts lowercase, numbers and underscores. + Name string `json:"name"` + // Optional namespace company owner. + Company *string `json:"company,omitempty"` + // Optional namespace contact email. + Email *string `json:"email,omitempty"` + // Optional short description. + Description *string `json:"description,omitempty"` + // Optional resource page in markdown format. + Resources *string `json:"resources,omitempty"` + // Labeled related links. + Links []NamespaceLink `json:"links,omitempty"` + // Optional avatar image for Namespace + Avatar **os.File `json:"avatar,omitempty"` +} + +// NewAnsibleAnsibleNamespaceMetadata instantiates a new AnsibleAnsibleNamespaceMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnsibleAnsibleNamespaceMetadata(name string) *AnsibleAnsibleNamespaceMetadata { + this := AnsibleAnsibleNamespaceMetadata{} + this.Name = name + return &this +} + +// NewAnsibleAnsibleNamespaceMetadataWithDefaults instantiates a new AnsibleAnsibleNamespaceMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnsibleAnsibleNamespaceMetadataWithDefaults() *AnsibleAnsibleNamespaceMetadata { + this := AnsibleAnsibleNamespaceMetadata{} + return &this +} + +// GetName returns the Name field value +func (o *AnsibleAnsibleNamespaceMetadata) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadata) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AnsibleAnsibleNamespaceMetadata) SetName(v string) { + o.Name = v +} + +// GetCompany returns the Company field value if set, zero value otherwise. +func (o *AnsibleAnsibleNamespaceMetadata) GetCompany() string { + if o == nil || IsNil(o.Company) { + var ret string + return ret + } + return *o.Company +} + +// GetCompanyOk returns a tuple with the Company field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadata) GetCompanyOk() (*string, bool) { + if o == nil || IsNil(o.Company) { + return nil, false + } + return o.Company, true +} + +// HasCompany returns a boolean if a field has been set. +func (o *AnsibleAnsibleNamespaceMetadata) HasCompany() bool { + if o != nil && !IsNil(o.Company) { + return true + } + + return false +} + +// SetCompany gets a reference to the given string and assigns it to the Company field. +func (o *AnsibleAnsibleNamespaceMetadata) SetCompany(v string) { + o.Company = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *AnsibleAnsibleNamespaceMetadata) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadata) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *AnsibleAnsibleNamespaceMetadata) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *AnsibleAnsibleNamespaceMetadata) SetEmail(v string) { + o.Email = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *AnsibleAnsibleNamespaceMetadata) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadata) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *AnsibleAnsibleNamespaceMetadata) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *AnsibleAnsibleNamespaceMetadata) SetDescription(v string) { + o.Description = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *AnsibleAnsibleNamespaceMetadata) GetResources() string { + if o == nil || IsNil(o.Resources) { + var ret string + return ret + } + return *o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadata) GetResourcesOk() (*string, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *AnsibleAnsibleNamespaceMetadata) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given string and assigns it to the Resources field. +func (o *AnsibleAnsibleNamespaceMetadata) SetResources(v string) { + o.Resources = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *AnsibleAnsibleNamespaceMetadata) GetLinks() []NamespaceLink { + if o == nil || IsNil(o.Links) { + var ret []NamespaceLink + return ret + } + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadata) GetLinksOk() ([]NamespaceLink, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *AnsibleAnsibleNamespaceMetadata) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given []NamespaceLink and assigns it to the Links field. +func (o *AnsibleAnsibleNamespaceMetadata) SetLinks(v []NamespaceLink) { + o.Links = v +} + +// GetAvatar returns the Avatar field value if set, zero value otherwise. +func (o *AnsibleAnsibleNamespaceMetadata) GetAvatar() *os.File { + if o == nil || IsNil(o.Avatar) { + var ret *os.File + return ret + } + return *o.Avatar +} + +// GetAvatarOk returns a tuple with the Avatar field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadata) GetAvatarOk() (**os.File, bool) { + if o == nil || IsNil(o.Avatar) { + return nil, false + } + return o.Avatar, true +} + +// HasAvatar returns a boolean if a field has been set. +func (o *AnsibleAnsibleNamespaceMetadata) HasAvatar() bool { + if o != nil && !IsNil(o.Avatar) { + return true + } + + return false +} + +// SetAvatar gets a reference to the given *os.File and assigns it to the Avatar field. +func (o *AnsibleAnsibleNamespaceMetadata) SetAvatar(v *os.File) { + o.Avatar = &v +} + +func (o AnsibleAnsibleNamespaceMetadata) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnsibleAnsibleNamespaceMetadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Company) { + toSerialize["company"] = o.Company + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Avatar) { + toSerialize["avatar"] = o.Avatar + } + return toSerialize, nil +} + +type NullableAnsibleAnsibleNamespaceMetadata struct { + value *AnsibleAnsibleNamespaceMetadata + isSet bool +} + +func (v NullableAnsibleAnsibleNamespaceMetadata) Get() *AnsibleAnsibleNamespaceMetadata { + return v.value +} + +func (v *NullableAnsibleAnsibleNamespaceMetadata) Set(val *AnsibleAnsibleNamespaceMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableAnsibleAnsibleNamespaceMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableAnsibleAnsibleNamespaceMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnsibleAnsibleNamespaceMetadata(val *AnsibleAnsibleNamespaceMetadata) *NullableAnsibleAnsibleNamespaceMetadata { + return &NullableAnsibleAnsibleNamespaceMetadata{value: val, isSet: true} +} + +func (v NullableAnsibleAnsibleNamespaceMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnsibleAnsibleNamespaceMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_ansible_ansible_namespace_metadata_response.go b/release/model_ansible_ansible_namespace_metadata_response.go new file mode 100644 index 00000000..c02831f4 --- /dev/null +++ b/release/model_ansible_ansible_namespace_metadata_response.go @@ -0,0 +1,442 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" +) + +// checks if the AnsibleAnsibleNamespaceMetadataResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnsibleAnsibleNamespaceMetadataResponse{} + +// AnsibleAnsibleNamespaceMetadataResponse A serializer for Namespaces. +type AnsibleAnsibleNamespaceMetadataResponse struct { + PulpHref *string `json:"pulp_href,omitempty"` + // Required named, only accepts lowercase, numbers and underscores. + Name string `json:"name"` + // Optional namespace company owner. + Company *string `json:"company,omitempty"` + // Optional namespace contact email. + Email *string `json:"email,omitempty"` + // Optional short description. + Description *string `json:"description,omitempty"` + // Optional resource page in markdown format. + Resources *string `json:"resources,omitempty"` + // Labeled related links. + Links []NamespaceLinkResponse `json:"links,omitempty"` + // SHA256 digest of avatar image if present. + AvatarSha256 *string `json:"avatar_sha256,omitempty"` + // Download link for avatar image if present. + AvatarUrl *string `json:"avatar_url,omitempty"` + MetadataSha256 *string `json:"metadata_sha256,omitempty"` +} + +// NewAnsibleAnsibleNamespaceMetadataResponse instantiates a new AnsibleAnsibleNamespaceMetadataResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnsibleAnsibleNamespaceMetadataResponse(name string) *AnsibleAnsibleNamespaceMetadataResponse { + this := AnsibleAnsibleNamespaceMetadataResponse{} + this.Name = name + return &this +} + +// NewAnsibleAnsibleNamespaceMetadataResponseWithDefaults instantiates a new AnsibleAnsibleNamespaceMetadataResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnsibleAnsibleNamespaceMetadataResponseWithDefaults() *AnsibleAnsibleNamespaceMetadataResponse { + this := AnsibleAnsibleNamespaceMetadataResponse{} + return &this +} + +// GetPulpHref returns the PulpHref field value if set, zero value otherwise. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetPulpHref() string { + if o == nil || IsNil(o.PulpHref) { + var ret string + return ret + } + return *o.PulpHref +} + +// GetPulpHrefOk returns a tuple with the PulpHref field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetPulpHrefOk() (*string, bool) { + if o == nil || IsNil(o.PulpHref) { + return nil, false + } + return o.PulpHref, true +} + +// HasPulpHref returns a boolean if a field has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) HasPulpHref() bool { + if o != nil && !IsNil(o.PulpHref) { + return true + } + + return false +} + +// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. +func (o *AnsibleAnsibleNamespaceMetadataResponse) SetPulpHref(v string) { + o.PulpHref = &v +} + +// GetName returns the Name field value +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AnsibleAnsibleNamespaceMetadataResponse) SetName(v string) { + o.Name = v +} + +// GetCompany returns the Company field value if set, zero value otherwise. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetCompany() string { + if o == nil || IsNil(o.Company) { + var ret string + return ret + } + return *o.Company +} + +// GetCompanyOk returns a tuple with the Company field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetCompanyOk() (*string, bool) { + if o == nil || IsNil(o.Company) { + return nil, false + } + return o.Company, true +} + +// HasCompany returns a boolean if a field has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) HasCompany() bool { + if o != nil && !IsNil(o.Company) { + return true + } + + return false +} + +// SetCompany gets a reference to the given string and assigns it to the Company field. +func (o *AnsibleAnsibleNamespaceMetadataResponse) SetCompany(v string) { + o.Company = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *AnsibleAnsibleNamespaceMetadataResponse) SetEmail(v string) { + o.Email = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *AnsibleAnsibleNamespaceMetadataResponse) SetDescription(v string) { + o.Description = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetResources() string { + if o == nil || IsNil(o.Resources) { + var ret string + return ret + } + return *o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetResourcesOk() (*string, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given string and assigns it to the Resources field. +func (o *AnsibleAnsibleNamespaceMetadataResponse) SetResources(v string) { + o.Resources = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetLinks() []NamespaceLinkResponse { + if o == nil || IsNil(o.Links) { + var ret []NamespaceLinkResponse + return ret + } + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetLinksOk() ([]NamespaceLinkResponse, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given []NamespaceLinkResponse and assigns it to the Links field. +func (o *AnsibleAnsibleNamespaceMetadataResponse) SetLinks(v []NamespaceLinkResponse) { + o.Links = v +} + +// GetAvatarSha256 returns the AvatarSha256 field value if set, zero value otherwise. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetAvatarSha256() string { + if o == nil || IsNil(o.AvatarSha256) { + var ret string + return ret + } + return *o.AvatarSha256 +} + +// GetAvatarSha256Ok returns a tuple with the AvatarSha256 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetAvatarSha256Ok() (*string, bool) { + if o == nil || IsNil(o.AvatarSha256) { + return nil, false + } + return o.AvatarSha256, true +} + +// HasAvatarSha256 returns a boolean if a field has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) HasAvatarSha256() bool { + if o != nil && !IsNil(o.AvatarSha256) { + return true + } + + return false +} + +// SetAvatarSha256 gets a reference to the given string and assigns it to the AvatarSha256 field. +func (o *AnsibleAnsibleNamespaceMetadataResponse) SetAvatarSha256(v string) { + o.AvatarSha256 = &v +} + +// GetAvatarUrl returns the AvatarUrl field value if set, zero value otherwise. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetAvatarUrl() string { + if o == nil || IsNil(o.AvatarUrl) { + var ret string + return ret + } + return *o.AvatarUrl +} + +// GetAvatarUrlOk returns a tuple with the AvatarUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetAvatarUrlOk() (*string, bool) { + if o == nil || IsNil(o.AvatarUrl) { + return nil, false + } + return o.AvatarUrl, true +} + +// HasAvatarUrl returns a boolean if a field has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) HasAvatarUrl() bool { + if o != nil && !IsNil(o.AvatarUrl) { + return true + } + + return false +} + +// SetAvatarUrl gets a reference to the given string and assigns it to the AvatarUrl field. +func (o *AnsibleAnsibleNamespaceMetadataResponse) SetAvatarUrl(v string) { + o.AvatarUrl = &v +} + +// GetMetadataSha256 returns the MetadataSha256 field value if set, zero value otherwise. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetMetadataSha256() string { + if o == nil || IsNil(o.MetadataSha256) { + var ret string + return ret + } + return *o.MetadataSha256 +} + +// GetMetadataSha256Ok returns a tuple with the MetadataSha256 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) GetMetadataSha256Ok() (*string, bool) { + if o == nil || IsNil(o.MetadataSha256) { + return nil, false + } + return o.MetadataSha256, true +} + +// HasMetadataSha256 returns a boolean if a field has been set. +func (o *AnsibleAnsibleNamespaceMetadataResponse) HasMetadataSha256() bool { + if o != nil && !IsNil(o.MetadataSha256) { + return true + } + + return false +} + +// SetMetadataSha256 gets a reference to the given string and assigns it to the MetadataSha256 field. +func (o *AnsibleAnsibleNamespaceMetadataResponse) SetMetadataSha256(v string) { + o.MetadataSha256 = &v +} + +func (o AnsibleAnsibleNamespaceMetadataResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnsibleAnsibleNamespaceMetadataResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + // skip: pulp_href is readOnly + toSerialize["name"] = o.Name + if !IsNil(o.Company) { + toSerialize["company"] = o.Company + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + // skip: avatar_sha256 is readOnly + // skip: avatar_url is readOnly + // skip: metadata_sha256 is readOnly + return toSerialize, nil +} + +type NullableAnsibleAnsibleNamespaceMetadataResponse struct { + value *AnsibleAnsibleNamespaceMetadataResponse + isSet bool +} + +func (v NullableAnsibleAnsibleNamespaceMetadataResponse) Get() *AnsibleAnsibleNamespaceMetadataResponse { + return v.value +} + +func (v *NullableAnsibleAnsibleNamespaceMetadataResponse) Set(val *AnsibleAnsibleNamespaceMetadataResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAnsibleAnsibleNamespaceMetadataResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAnsibleAnsibleNamespaceMetadataResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnsibleAnsibleNamespaceMetadataResponse(val *AnsibleAnsibleNamespaceMetadataResponse) *NullableAnsibleAnsibleNamespaceMetadataResponse { + return &NullableAnsibleAnsibleNamespaceMetadataResponse{value: val, isSet: true} +} + +func (v NullableAnsibleAnsibleNamespaceMetadataResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnsibleAnsibleNamespaceMetadataResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_ansible_ansible_repository.go b/release/model_ansible_ansible_repository.go index ff696635..9045486a 100644 --- a/release/model_ansible_ansible_repository.go +++ b/release/model_ansible_ansible_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -34,6 +34,7 @@ type AnsibleAnsibleRepository struct { LastSyncedMetadataTime NullableTime `json:"last_synced_metadata_time,omitempty"` // Gpg public key to verify collection signatures against Gpgkey NullableString `json:"gpgkey,omitempty"` + Private *bool `json:"private,omitempty"` } // NewAnsibleAnsibleRepository instantiates a new AnsibleAnsibleRepository object @@ -320,6 +321,38 @@ func (o *AnsibleAnsibleRepository) UnsetGpgkey() { o.Gpgkey.Unset() } +// GetPrivate returns the Private field value if set, zero value otherwise. +func (o *AnsibleAnsibleRepository) GetPrivate() bool { + if o == nil || IsNil(o.Private) { + var ret bool + return ret + } + return *o.Private +} + +// GetPrivateOk returns a tuple with the Private field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleRepository) GetPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.Private) { + return nil, false + } + return o.Private, true +} + +// HasPrivate returns a boolean if a field has been set. +func (o *AnsibleAnsibleRepository) HasPrivate() bool { + if o != nil && !IsNil(o.Private) { + return true + } + + return false +} + +// SetPrivate gets a reference to the given bool and assigns it to the Private field. +func (o *AnsibleAnsibleRepository) SetPrivate(v bool) { + o.Private = &v +} + func (o AnsibleAnsibleRepository) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -349,6 +382,9 @@ func (o AnsibleAnsibleRepository) ToMap() (map[string]interface{}, error) { if o.Gpgkey.IsSet() { toSerialize["gpgkey"] = o.Gpgkey.Get() } + if !IsNil(o.Private) { + toSerialize["private"] = o.Private + } return toSerialize, nil } diff --git a/release/model_ansible_ansible_repository_response.go b/release/model_ansible_ansible_repository_response.go index 5210f20c..9558d2b3 100644 --- a/release/model_ansible_ansible_repository_response.go +++ b/release/model_ansible_ansible_repository_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -39,6 +39,8 @@ type AnsibleAnsibleRepositoryResponse struct { LastSyncedMetadataTime NullableTime `json:"last_synced_metadata_time,omitempty"` // Gpg public key to verify collection signatures against Gpgkey NullableString `json:"gpgkey,omitempty"` + LastSyncTask *TaskResponse `json:"last_sync_task,omitempty"` + Private *bool `json:"private,omitempty"` } // NewAnsibleAnsibleRepositoryResponse instantiates a new AnsibleAnsibleRepositoryResponse object @@ -453,6 +455,70 @@ func (o *AnsibleAnsibleRepositoryResponse) UnsetGpgkey() { o.Gpgkey.Unset() } +// GetLastSyncTask returns the LastSyncTask field value if set, zero value otherwise. +func (o *AnsibleAnsibleRepositoryResponse) GetLastSyncTask() TaskResponse { + if o == nil || IsNil(o.LastSyncTask) { + var ret TaskResponse + return ret + } + return *o.LastSyncTask +} + +// GetLastSyncTaskOk returns a tuple with the LastSyncTask field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleRepositoryResponse) GetLastSyncTaskOk() (*TaskResponse, bool) { + if o == nil || IsNil(o.LastSyncTask) { + return nil, false + } + return o.LastSyncTask, true +} + +// HasLastSyncTask returns a boolean if a field has been set. +func (o *AnsibleAnsibleRepositoryResponse) HasLastSyncTask() bool { + if o != nil && !IsNil(o.LastSyncTask) { + return true + } + + return false +} + +// SetLastSyncTask gets a reference to the given TaskResponse and assigns it to the LastSyncTask field. +func (o *AnsibleAnsibleRepositoryResponse) SetLastSyncTask(v TaskResponse) { + o.LastSyncTask = &v +} + +// GetPrivate returns the Private field value if set, zero value otherwise. +func (o *AnsibleAnsibleRepositoryResponse) GetPrivate() bool { + if o == nil || IsNil(o.Private) { + var ret bool + return ret + } + return *o.Private +} + +// GetPrivateOk returns a tuple with the Private field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleAnsibleRepositoryResponse) GetPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.Private) { + return nil, false + } + return o.Private, true +} + +// HasPrivate returns a boolean if a field has been set. +func (o *AnsibleAnsibleRepositoryResponse) HasPrivate() bool { + if o != nil && !IsNil(o.Private) { + return true + } + + return false +} + +// SetPrivate gets a reference to the given bool and assigns it to the Private field. +func (o *AnsibleAnsibleRepositoryResponse) SetPrivate(v bool) { + o.Private = &v +} + func (o AnsibleAnsibleRepositoryResponse) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -486,6 +552,10 @@ func (o AnsibleAnsibleRepositoryResponse) ToMap() (map[string]interface{}, error if o.Gpgkey.IsSet() { toSerialize["gpgkey"] = o.Gpgkey.Get() } + // skip: last_sync_task is readOnly + if !IsNil(o.Private) { + toSerialize["private"] = o.Private + } return toSerialize, nil } diff --git a/release/model_ansible_collection.go b/release/model_ansible_collection.go index 42c2ab58..0f3a68b1 100644 --- a/release/model_ansible_collection.go +++ b/release/model_ansible_collection.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ansible_collection_remote.go b/release/model_ansible_collection_remote.go index 6c600ee1..fec69f83 100644 --- a/release/model_ansible_collection_remote.go +++ b/release/model_ansible_collection_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ansible_collection_remote_response.go b/release/model_ansible_collection_remote_response.go index 34d3d8f3..38dc531c 100644 --- a/release/model_ansible_collection_remote_response.go +++ b/release/model_ansible_collection_remote_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -66,6 +66,7 @@ type AnsibleCollectionRemoteResponse struct { SyncDependencies *bool `json:"sync_dependencies,omitempty"` // Sync only collections that have a signature SignedOnly *bool `json:"signed_only,omitempty"` + LastSyncTask *TaskResponse `json:"last_sync_task,omitempty"` } // NewAnsibleCollectionRemoteResponse instantiates a new AnsibleCollectionRemoteResponse object @@ -971,6 +972,38 @@ func (o *AnsibleCollectionRemoteResponse) SetSignedOnly(v bool) { o.SignedOnly = &v } +// GetLastSyncTask returns the LastSyncTask field value if set, zero value otherwise. +func (o *AnsibleCollectionRemoteResponse) GetLastSyncTask() TaskResponse { + if o == nil || IsNil(o.LastSyncTask) { + var ret TaskResponse + return ret + } + return *o.LastSyncTask +} + +// GetLastSyncTaskOk returns a tuple with the LastSyncTask field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionRemoteResponse) GetLastSyncTaskOk() (*TaskResponse, bool) { + if o == nil || IsNil(o.LastSyncTask) { + return nil, false + } + return o.LastSyncTask, true +} + +// HasLastSyncTask returns a boolean if a field has been set. +func (o *AnsibleCollectionRemoteResponse) HasLastSyncTask() bool { + if o != nil && !IsNil(o.LastSyncTask) { + return true + } + + return false +} + +// SetLastSyncTask gets a reference to the given TaskResponse and assigns it to the LastSyncTask field. +func (o *AnsibleCollectionRemoteResponse) SetLastSyncTask(v TaskResponse) { + o.LastSyncTask = &v +} + func (o AnsibleCollectionRemoteResponse) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -1041,6 +1074,7 @@ func (o AnsibleCollectionRemoteResponse) ToMap() (map[string]interface{}, error) if !IsNil(o.SignedOnly) { toSerialize["signed_only"] = o.SignedOnly } + // skip: last_sync_task is readOnly return toSerialize, nil } diff --git a/release/model_ansible_collection_response.go b/release/model_ansible_collection_response.go index 8c783b7e..619bf442 100644 --- a/release/model_ansible_collection_response.go +++ b/release/model_ansible_collection_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ansible_collection_version.go b/release/model_ansible_collection_version.go new file mode 100644 index 00000000..ed16f4c6 --- /dev/null +++ b/release/model_ansible_collection_version.go @@ -0,0 +1,351 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the AnsibleCollectionVersion type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnsibleCollectionVersion{} + +// AnsibleCollectionVersion A serializer for CollectionVersion Content. +type AnsibleCollectionVersion struct { + // A URI of a repository the new content unit should be associated with. + Repository *string `json:"repository,omitempty"` + // An uncommitted upload that may be turned into the artifact of the content unit. + Upload *string `json:"upload,omitempty"` + // An uploaded file that may be turned into the artifact of the content unit. + File **os.File `json:"file,omitempty"` + // Artifact file representing the physical content + Artifact *string `json:"artifact,omitempty"` + // The name of the collection. + ExpectedName *string `json:"expected_name,omitempty"` + // The namespace of the collection. + ExpectedNamespace *string `json:"expected_namespace,omitempty"` + // The version of the collection. + ExpectedVersion *string `json:"expected_version,omitempty"` +} + +// NewAnsibleCollectionVersion instantiates a new AnsibleCollectionVersion object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnsibleCollectionVersion() *AnsibleCollectionVersion { + this := AnsibleCollectionVersion{} + return &this +} + +// NewAnsibleCollectionVersionWithDefaults instantiates a new AnsibleCollectionVersion object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnsibleCollectionVersionWithDefaults() *AnsibleCollectionVersion { + this := AnsibleCollectionVersion{} + return &this +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *AnsibleCollectionVersion) GetRepository() string { + if o == nil || IsNil(o.Repository) { + var ret string + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersion) GetRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.Repository) { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *AnsibleCollectionVersion) HasRepository() bool { + if o != nil && !IsNil(o.Repository) { + return true + } + + return false +} + +// SetRepository gets a reference to the given string and assigns it to the Repository field. +func (o *AnsibleCollectionVersion) SetRepository(v string) { + o.Repository = &v +} + +// GetUpload returns the Upload field value if set, zero value otherwise. +func (o *AnsibleCollectionVersion) GetUpload() string { + if o == nil || IsNil(o.Upload) { + var ret string + return ret + } + return *o.Upload +} + +// GetUploadOk returns a tuple with the Upload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersion) GetUploadOk() (*string, bool) { + if o == nil || IsNil(o.Upload) { + return nil, false + } + return o.Upload, true +} + +// HasUpload returns a boolean if a field has been set. +func (o *AnsibleCollectionVersion) HasUpload() bool { + if o != nil && !IsNil(o.Upload) { + return true + } + + return false +} + +// SetUpload gets a reference to the given string and assigns it to the Upload field. +func (o *AnsibleCollectionVersion) SetUpload(v string) { + o.Upload = &v +} + +// GetFile returns the File field value if set, zero value otherwise. +func (o *AnsibleCollectionVersion) GetFile() *os.File { + if o == nil || IsNil(o.File) { + var ret *os.File + return ret + } + return *o.File +} + +// GetFileOk returns a tuple with the File field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersion) GetFileOk() (**os.File, bool) { + if o == nil || IsNil(o.File) { + return nil, false + } + return o.File, true +} + +// HasFile returns a boolean if a field has been set. +func (o *AnsibleCollectionVersion) HasFile() bool { + if o != nil && !IsNil(o.File) { + return true + } + + return false +} + +// SetFile gets a reference to the given *os.File and assigns it to the File field. +func (o *AnsibleCollectionVersion) SetFile(v *os.File) { + o.File = &v +} + +// GetArtifact returns the Artifact field value if set, zero value otherwise. +func (o *AnsibleCollectionVersion) GetArtifact() string { + if o == nil || IsNil(o.Artifact) { + var ret string + return ret + } + return *o.Artifact +} + +// GetArtifactOk returns a tuple with the Artifact field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersion) GetArtifactOk() (*string, bool) { + if o == nil || IsNil(o.Artifact) { + return nil, false + } + return o.Artifact, true +} + +// HasArtifact returns a boolean if a field has been set. +func (o *AnsibleCollectionVersion) HasArtifact() bool { + if o != nil && !IsNil(o.Artifact) { + return true + } + + return false +} + +// SetArtifact gets a reference to the given string and assigns it to the Artifact field. +func (o *AnsibleCollectionVersion) SetArtifact(v string) { + o.Artifact = &v +} + +// GetExpectedName returns the ExpectedName field value if set, zero value otherwise. +func (o *AnsibleCollectionVersion) GetExpectedName() string { + if o == nil || IsNil(o.ExpectedName) { + var ret string + return ret + } + return *o.ExpectedName +} + +// GetExpectedNameOk returns a tuple with the ExpectedName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersion) GetExpectedNameOk() (*string, bool) { + if o == nil || IsNil(o.ExpectedName) { + return nil, false + } + return o.ExpectedName, true +} + +// HasExpectedName returns a boolean if a field has been set. +func (o *AnsibleCollectionVersion) HasExpectedName() bool { + if o != nil && !IsNil(o.ExpectedName) { + return true + } + + return false +} + +// SetExpectedName gets a reference to the given string and assigns it to the ExpectedName field. +func (o *AnsibleCollectionVersion) SetExpectedName(v string) { + o.ExpectedName = &v +} + +// GetExpectedNamespace returns the ExpectedNamespace field value if set, zero value otherwise. +func (o *AnsibleCollectionVersion) GetExpectedNamespace() string { + if o == nil || IsNil(o.ExpectedNamespace) { + var ret string + return ret + } + return *o.ExpectedNamespace +} + +// GetExpectedNamespaceOk returns a tuple with the ExpectedNamespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersion) GetExpectedNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.ExpectedNamespace) { + return nil, false + } + return o.ExpectedNamespace, true +} + +// HasExpectedNamespace returns a boolean if a field has been set. +func (o *AnsibleCollectionVersion) HasExpectedNamespace() bool { + if o != nil && !IsNil(o.ExpectedNamespace) { + return true + } + + return false +} + +// SetExpectedNamespace gets a reference to the given string and assigns it to the ExpectedNamespace field. +func (o *AnsibleCollectionVersion) SetExpectedNamespace(v string) { + o.ExpectedNamespace = &v +} + +// GetExpectedVersion returns the ExpectedVersion field value if set, zero value otherwise. +func (o *AnsibleCollectionVersion) GetExpectedVersion() string { + if o == nil || IsNil(o.ExpectedVersion) { + var ret string + return ret + } + return *o.ExpectedVersion +} + +// GetExpectedVersionOk returns a tuple with the ExpectedVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersion) GetExpectedVersionOk() (*string, bool) { + if o == nil || IsNil(o.ExpectedVersion) { + return nil, false + } + return o.ExpectedVersion, true +} + +// HasExpectedVersion returns a boolean if a field has been set. +func (o *AnsibleCollectionVersion) HasExpectedVersion() bool { + if o != nil && !IsNil(o.ExpectedVersion) { + return true + } + + return false +} + +// SetExpectedVersion gets a reference to the given string and assigns it to the ExpectedVersion field. +func (o *AnsibleCollectionVersion) SetExpectedVersion(v string) { + o.ExpectedVersion = &v +} + +func (o AnsibleCollectionVersion) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnsibleCollectionVersion) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + if !IsNil(o.Upload) { + toSerialize["upload"] = o.Upload + } + if !IsNil(o.File) { + toSerialize["file"] = o.File + } + if !IsNil(o.Artifact) { + toSerialize["artifact"] = o.Artifact + } + if !IsNil(o.ExpectedName) { + toSerialize["expected_name"] = o.ExpectedName + } + if !IsNil(o.ExpectedNamespace) { + toSerialize["expected_namespace"] = o.ExpectedNamespace + } + if !IsNil(o.ExpectedVersion) { + toSerialize["expected_version"] = o.ExpectedVersion + } + return toSerialize, nil +} + +type NullableAnsibleCollectionVersion struct { + value *AnsibleCollectionVersion + isSet bool +} + +func (v NullableAnsibleCollectionVersion) Get() *AnsibleCollectionVersion { + return v.value +} + +func (v *NullableAnsibleCollectionVersion) Set(val *AnsibleCollectionVersion) { + v.value = val + v.isSet = true +} + +func (v NullableAnsibleCollectionVersion) IsSet() bool { + return v.isSet +} + +func (v *NullableAnsibleCollectionVersion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnsibleCollectionVersion(val *AnsibleCollectionVersion) *NullableAnsibleCollectionVersion { + return &NullableAnsibleCollectionVersion{value: val, isSet: true} +} + +func (v NullableAnsibleCollectionVersion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnsibleCollectionVersion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_ansible_collection_version_mark.go b/release/model_ansible_collection_version_mark.go new file mode 100644 index 00000000..78ecea08 --- /dev/null +++ b/release/model_ansible_collection_version_mark.go @@ -0,0 +1,147 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" +) + +// checks if the AnsibleCollectionVersionMark type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnsibleCollectionVersionMark{} + +// AnsibleCollectionVersionMark A serializer for mark models. +type AnsibleCollectionVersionMark struct { + // The content this mark is pointing to. + MarkedCollection string `json:"marked_collection"` + // The string value of this mark. + Value string `json:"value"` +} + +// NewAnsibleCollectionVersionMark instantiates a new AnsibleCollectionVersionMark object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnsibleCollectionVersionMark(markedCollection string, value string) *AnsibleCollectionVersionMark { + this := AnsibleCollectionVersionMark{} + this.MarkedCollection = markedCollection + this.Value = value + return &this +} + +// NewAnsibleCollectionVersionMarkWithDefaults instantiates a new AnsibleCollectionVersionMark object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnsibleCollectionVersionMarkWithDefaults() *AnsibleCollectionVersionMark { + this := AnsibleCollectionVersionMark{} + return &this +} + +// GetMarkedCollection returns the MarkedCollection field value +func (o *AnsibleCollectionVersionMark) GetMarkedCollection() string { + if o == nil { + var ret string + return ret + } + + return o.MarkedCollection +} + +// GetMarkedCollectionOk returns a tuple with the MarkedCollection field value +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersionMark) GetMarkedCollectionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MarkedCollection, true +} + +// SetMarkedCollection sets field value +func (o *AnsibleCollectionVersionMark) SetMarkedCollection(v string) { + o.MarkedCollection = v +} + +// GetValue returns the Value field value +func (o *AnsibleCollectionVersionMark) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersionMark) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *AnsibleCollectionVersionMark) SetValue(v string) { + o.Value = v +} + +func (o AnsibleCollectionVersionMark) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnsibleCollectionVersionMark) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["marked_collection"] = o.MarkedCollection + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableAnsibleCollectionVersionMark struct { + value *AnsibleCollectionVersionMark + isSet bool +} + +func (v NullableAnsibleCollectionVersionMark) Get() *AnsibleCollectionVersionMark { + return v.value +} + +func (v *NullableAnsibleCollectionVersionMark) Set(val *AnsibleCollectionVersionMark) { + v.value = val + v.isSet = true +} + +func (v NullableAnsibleCollectionVersionMark) IsSet() bool { + return v.isSet +} + +func (v *NullableAnsibleCollectionVersionMark) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnsibleCollectionVersionMark(val *AnsibleCollectionVersionMark) *NullableAnsibleCollectionVersionMark { + return &NullableAnsibleCollectionVersionMark{value: val, isSet: true} +} + +func (v NullableAnsibleCollectionVersionMark) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnsibleCollectionVersionMark) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_ansible_collection_version_mark_response.go b/release/model_ansible_collection_version_mark_response.go new file mode 100644 index 00000000..236f8b84 --- /dev/null +++ b/release/model_ansible_collection_version_mark_response.go @@ -0,0 +1,217 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "time" +) + +// checks if the AnsibleCollectionVersionMarkResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnsibleCollectionVersionMarkResponse{} + +// AnsibleCollectionVersionMarkResponse A serializer for mark models. +type AnsibleCollectionVersionMarkResponse struct { + // Timestamp of creation. + PulpCreated *time.Time `json:"pulp_created,omitempty"` + PulpHref *string `json:"pulp_href,omitempty"` + // The content this mark is pointing to. + MarkedCollection string `json:"marked_collection"` + // The string value of this mark. + Value string `json:"value"` +} + +// NewAnsibleCollectionVersionMarkResponse instantiates a new AnsibleCollectionVersionMarkResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnsibleCollectionVersionMarkResponse(markedCollection string, value string) *AnsibleCollectionVersionMarkResponse { + this := AnsibleCollectionVersionMarkResponse{} + this.MarkedCollection = markedCollection + this.Value = value + return &this +} + +// NewAnsibleCollectionVersionMarkResponseWithDefaults instantiates a new AnsibleCollectionVersionMarkResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnsibleCollectionVersionMarkResponseWithDefaults() *AnsibleCollectionVersionMarkResponse { + this := AnsibleCollectionVersionMarkResponse{} + return &this +} + +// GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. +func (o *AnsibleCollectionVersionMarkResponse) GetPulpCreated() time.Time { + if o == nil || IsNil(o.PulpCreated) { + var ret time.Time + return ret + } + return *o.PulpCreated +} + +// GetPulpCreatedOk returns a tuple with the PulpCreated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersionMarkResponse) GetPulpCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpCreated) { + return nil, false + } + return o.PulpCreated, true +} + +// HasPulpCreated returns a boolean if a field has been set. +func (o *AnsibleCollectionVersionMarkResponse) HasPulpCreated() bool { + if o != nil && !IsNil(o.PulpCreated) { + return true + } + + return false +} + +// SetPulpCreated gets a reference to the given time.Time and assigns it to the PulpCreated field. +func (o *AnsibleCollectionVersionMarkResponse) SetPulpCreated(v time.Time) { + o.PulpCreated = &v +} + +// GetPulpHref returns the PulpHref field value if set, zero value otherwise. +func (o *AnsibleCollectionVersionMarkResponse) GetPulpHref() string { + if o == nil || IsNil(o.PulpHref) { + var ret string + return ret + } + return *o.PulpHref +} + +// GetPulpHrefOk returns a tuple with the PulpHref field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersionMarkResponse) GetPulpHrefOk() (*string, bool) { + if o == nil || IsNil(o.PulpHref) { + return nil, false + } + return o.PulpHref, true +} + +// HasPulpHref returns a boolean if a field has been set. +func (o *AnsibleCollectionVersionMarkResponse) HasPulpHref() bool { + if o != nil && !IsNil(o.PulpHref) { + return true + } + + return false +} + +// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. +func (o *AnsibleCollectionVersionMarkResponse) SetPulpHref(v string) { + o.PulpHref = &v +} + +// GetMarkedCollection returns the MarkedCollection field value +func (o *AnsibleCollectionVersionMarkResponse) GetMarkedCollection() string { + if o == nil { + var ret string + return ret + } + + return o.MarkedCollection +} + +// GetMarkedCollectionOk returns a tuple with the MarkedCollection field value +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersionMarkResponse) GetMarkedCollectionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MarkedCollection, true +} + +// SetMarkedCollection sets field value +func (o *AnsibleCollectionVersionMarkResponse) SetMarkedCollection(v string) { + o.MarkedCollection = v +} + +// GetValue returns the Value field value +func (o *AnsibleCollectionVersionMarkResponse) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersionMarkResponse) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *AnsibleCollectionVersionMarkResponse) SetValue(v string) { + o.Value = v +} + +func (o AnsibleCollectionVersionMarkResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnsibleCollectionVersionMarkResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + // skip: pulp_created is readOnly + // skip: pulp_href is readOnly + toSerialize["marked_collection"] = o.MarkedCollection + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableAnsibleCollectionVersionMarkResponse struct { + value *AnsibleCollectionVersionMarkResponse + isSet bool +} + +func (v NullableAnsibleCollectionVersionMarkResponse) Get() *AnsibleCollectionVersionMarkResponse { + return v.value +} + +func (v *NullableAnsibleCollectionVersionMarkResponse) Set(val *AnsibleCollectionVersionMarkResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAnsibleCollectionVersionMarkResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAnsibleCollectionVersionMarkResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnsibleCollectionVersionMarkResponse(val *AnsibleCollectionVersionMarkResponse) *NullableAnsibleCollectionVersionMarkResponse { + return &NullableAnsibleCollectionVersionMarkResponse{value: val, isSet: true} +} + +func (v NullableAnsibleCollectionVersionMarkResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnsibleCollectionVersionMarkResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_ansible_collection_version_response.go b/release/model_ansible_collection_version_response.go index 5431b879..2a143195 100644 --- a/release/model_ansible_collection_version_response.go +++ b/release/model_ansible_collection_version_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -21,11 +21,11 @@ var _ MappedNullable = &AnsibleCollectionVersionResponse{} // AnsibleCollectionVersionResponse A serializer for CollectionVersion Content. type AnsibleCollectionVersionResponse struct { - // Artifact file representing the physical content - Artifact *string `json:"artifact,omitempty"` + PulpHref *string `json:"pulp_href,omitempty"` // Timestamp of creation. PulpCreated *time.Time `json:"pulp_created,omitempty"` - PulpHref *string `json:"pulp_href,omitempty"` + // Artifact file representing the physical content + Artifact *string `json:"artifact,omitempty"` // The SHA-256 checksum if available. Sha256 *string `json:"sha256,omitempty"` // The MD5 checksum if available. @@ -92,36 +92,36 @@ func NewAnsibleCollectionVersionResponseWithDefaults() *AnsibleCollectionVersion return &this } -// GetArtifact returns the Artifact field value if set, zero value otherwise. -func (o *AnsibleCollectionVersionResponse) GetArtifact() string { - if o == nil || IsNil(o.Artifact) { +// GetPulpHref returns the PulpHref field value if set, zero value otherwise. +func (o *AnsibleCollectionVersionResponse) GetPulpHref() string { + if o == nil || IsNil(o.PulpHref) { var ret string return ret } - return *o.Artifact + return *o.PulpHref } -// GetArtifactOk returns a tuple with the Artifact field value if set, nil otherwise +// GetPulpHrefOk returns a tuple with the PulpHref field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnsibleCollectionVersionResponse) GetArtifactOk() (*string, bool) { - if o == nil || IsNil(o.Artifact) { +func (o *AnsibleCollectionVersionResponse) GetPulpHrefOk() (*string, bool) { + if o == nil || IsNil(o.PulpHref) { return nil, false } - return o.Artifact, true + return o.PulpHref, true } -// HasArtifact returns a boolean if a field has been set. -func (o *AnsibleCollectionVersionResponse) HasArtifact() bool { - if o != nil && !IsNil(o.Artifact) { +// HasPulpHref returns a boolean if a field has been set. +func (o *AnsibleCollectionVersionResponse) HasPulpHref() bool { + if o != nil && !IsNil(o.PulpHref) { return true } return false } -// SetArtifact gets a reference to the given string and assigns it to the Artifact field. -func (o *AnsibleCollectionVersionResponse) SetArtifact(v string) { - o.Artifact = &v +// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. +func (o *AnsibleCollectionVersionResponse) SetPulpHref(v string) { + o.PulpHref = &v } // GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. @@ -156,36 +156,36 @@ func (o *AnsibleCollectionVersionResponse) SetPulpCreated(v time.Time) { o.PulpCreated = &v } -// GetPulpHref returns the PulpHref field value if set, zero value otherwise. -func (o *AnsibleCollectionVersionResponse) GetPulpHref() string { - if o == nil || IsNil(o.PulpHref) { +// GetArtifact returns the Artifact field value if set, zero value otherwise. +func (o *AnsibleCollectionVersionResponse) GetArtifact() string { + if o == nil || IsNil(o.Artifact) { var ret string return ret } - return *o.PulpHref + return *o.Artifact } -// GetPulpHrefOk returns a tuple with the PulpHref field value if set, nil otherwise +// GetArtifactOk returns a tuple with the Artifact field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnsibleCollectionVersionResponse) GetPulpHrefOk() (*string, bool) { - if o == nil || IsNil(o.PulpHref) { +func (o *AnsibleCollectionVersionResponse) GetArtifactOk() (*string, bool) { + if o == nil || IsNil(o.Artifact) { return nil, false } - return o.PulpHref, true + return o.Artifact, true } -// HasPulpHref returns a boolean if a field has been set. -func (o *AnsibleCollectionVersionResponse) HasPulpHref() bool { - if o != nil && !IsNil(o.PulpHref) { +// HasArtifact returns a boolean if a field has been set. +func (o *AnsibleCollectionVersionResponse) HasArtifact() bool { + if o != nil && !IsNil(o.Artifact) { return true } return false } -// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. -func (o *AnsibleCollectionVersionResponse) SetPulpHref(v string) { - o.PulpHref = &v +// SetArtifact gets a reference to the given string and assigns it to the Artifact field. +func (o *AnsibleCollectionVersionResponse) SetArtifact(v string) { + o.Artifact = &v } // GetSha256 returns the Sha256 field value if set, zero value otherwise. @@ -976,11 +976,11 @@ func (o AnsibleCollectionVersionResponse) MarshalJSON() ([]byte, error) { func (o AnsibleCollectionVersionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + // skip: pulp_href is readOnly + // skip: pulp_created is readOnly if !IsNil(o.Artifact) { toSerialize["artifact"] = o.Artifact } - // skip: pulp_created is readOnly - // skip: pulp_href is readOnly // skip: sha256 is readOnly // skip: md5 is readOnly // skip: sha1 is readOnly diff --git a/release/model_ansible_collection_version_signature.go b/release/model_ansible_collection_version_signature.go new file mode 100644 index 00000000..6084f392 --- /dev/null +++ b/release/model_ansible_collection_version_signature.go @@ -0,0 +1,185 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the AnsibleCollectionVersionSignature type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnsibleCollectionVersionSignature{} + +// AnsibleCollectionVersionSignature A serializer for signature models. +type AnsibleCollectionVersionSignature struct { + // An uploaded file that may be turned into the artifact of the content unit. + File *os.File `json:"file"` + // A URI of a repository the new content unit should be associated with. + Repository *string `json:"repository,omitempty"` + // The content this signature is pointing to. + SignedCollection string `json:"signed_collection"` +} + +// NewAnsibleCollectionVersionSignature instantiates a new AnsibleCollectionVersionSignature object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnsibleCollectionVersionSignature(file *os.File, signedCollection string) *AnsibleCollectionVersionSignature { + this := AnsibleCollectionVersionSignature{} + this.File = file + this.SignedCollection = signedCollection + return &this +} + +// NewAnsibleCollectionVersionSignatureWithDefaults instantiates a new AnsibleCollectionVersionSignature object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnsibleCollectionVersionSignatureWithDefaults() *AnsibleCollectionVersionSignature { + this := AnsibleCollectionVersionSignature{} + return &this +} + +// GetFile returns the File field value +func (o *AnsibleCollectionVersionSignature) GetFile() *os.File { + if o == nil { + var ret *os.File + return ret + } + + return o.File +} + +// GetFileOk returns a tuple with the File field value +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersionSignature) GetFileOk() (**os.File, bool) { + if o == nil { + return nil, false + } + return &o.File, true +} + +// SetFile sets field value +func (o *AnsibleCollectionVersionSignature) SetFile(v *os.File) { + o.File = v +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *AnsibleCollectionVersionSignature) GetRepository() string { + if o == nil || IsNil(o.Repository) { + var ret string + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersionSignature) GetRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.Repository) { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *AnsibleCollectionVersionSignature) HasRepository() bool { + if o != nil && !IsNil(o.Repository) { + return true + } + + return false +} + +// SetRepository gets a reference to the given string and assigns it to the Repository field. +func (o *AnsibleCollectionVersionSignature) SetRepository(v string) { + o.Repository = &v +} + +// GetSignedCollection returns the SignedCollection field value +func (o *AnsibleCollectionVersionSignature) GetSignedCollection() string { + if o == nil { + var ret string + return ret + } + + return o.SignedCollection +} + +// GetSignedCollectionOk returns a tuple with the SignedCollection field value +// and a boolean to check if the value has been set. +func (o *AnsibleCollectionVersionSignature) GetSignedCollectionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SignedCollection, true +} + +// SetSignedCollection sets field value +func (o *AnsibleCollectionVersionSignature) SetSignedCollection(v string) { + o.SignedCollection = v +} + +func (o AnsibleCollectionVersionSignature) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnsibleCollectionVersionSignature) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["file"] = o.File + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + toSerialize["signed_collection"] = o.SignedCollection + return toSerialize, nil +} + +type NullableAnsibleCollectionVersionSignature struct { + value *AnsibleCollectionVersionSignature + isSet bool +} + +func (v NullableAnsibleCollectionVersionSignature) Get() *AnsibleCollectionVersionSignature { + return v.value +} + +func (v *NullableAnsibleCollectionVersionSignature) Set(val *AnsibleCollectionVersionSignature) { + v.value = val + v.isSet = true +} + +func (v NullableAnsibleCollectionVersionSignature) IsSet() bool { + return v.isSet +} + +func (v *NullableAnsibleCollectionVersionSignature) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnsibleCollectionVersionSignature(val *AnsibleCollectionVersionSignature) *NullableAnsibleCollectionVersionSignature { + return &NullableAnsibleCollectionVersionSignature{value: val, isSet: true} +} + +func (v NullableAnsibleCollectionVersionSignature) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnsibleCollectionVersionSignature) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_ansible_collection_version_signature_response.go b/release/model_ansible_collection_version_signature_response.go index f7990685..84ce9aaa 100644 --- a/release/model_ansible_collection_version_signature_response.go +++ b/release/model_ansible_collection_version_signature_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ansible_git_remote.go b/release/model_ansible_git_remote.go index f57fcfc0..e1776f76 100644 --- a/release/model_ansible_git_remote.go +++ b/release/model_ansible_git_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -20,45 +20,45 @@ var _ MappedNullable = &AnsibleGitRemote{} // AnsibleGitRemote A serializer for Git Collection Remotes. type AnsibleGitRemote struct { - // Headers for aiohttp.Clientsession - Headers []map[string]interface{} `json:"headers,omitempty"` - // aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. - SockReadTimeout NullableFloat64 `json:"sock_read_timeout,omitempty"` - // aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. - SockConnectTimeout NullableFloat64 `json:"sock_connect_timeout,omitempty"` - // aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. - ConnectTimeout NullableFloat64 `json:"connect_timeout,omitempty"` + // Total number of simultaneous connections. If not set then the default value will be used. + DownloadConcurrency NullableInt64 `json:"download_concurrency,omitempty"` + // Limits requests per second for each concurrent downloader + RateLimit NullableInt64 `json:"rate_limit,omitempty"` // A unique name for this remote. Name string `json:"name"` // A PEM encoded client certificate used for authentication. ClientCert NullableString `json:"client_cert,omitempty"` - // The proxy URL. Format: scheme://host:port - ProxyUrl NullableString `json:"proxy_url,omitempty"` - // The username to authenticte to the proxy. - ProxyUsername NullableString `json:"proxy_username,omitempty"` - // The username to be used for authentication when syncing. - Username NullableString `json:"username,omitempty"` - // aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. - TotalTimeout NullableFloat64 `json:"total_timeout,omitempty"` // Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. MaxRetries NullableInt64 `json:"max_retries,omitempty"` + // aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. + SockReadTimeout NullableFloat64 `json:"sock_read_timeout,omitempty"` // The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. Password NullableString `json:"password,omitempty"` - // Total number of simultaneous connections. If not set then the default value will be used. - DownloadConcurrency NullableInt64 `json:"download_concurrency,omitempty"` - // Limits requests per second for each concurrent downloader - RateLimit NullableInt64 `json:"rate_limit,omitempty"` - // A PEM encoded private key used for authentication. - ClientKey NullableString `json:"client_key,omitempty"` + // aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. + TotalTimeout NullableFloat64 `json:"total_timeout,omitempty"` + // The username to be used for authentication when syncing. + Username NullableString `json:"username,omitempty"` // The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. ProxyPassword NullableString `json:"proxy_password,omitempty"` PulpLabels *map[string]string `json:"pulp_labels,omitempty"` + // The proxy URL. Format: scheme://host:port + ProxyUrl NullableString `json:"proxy_url,omitempty"` + // A PEM encoded private key used for authentication. + ClientKey NullableString `json:"client_key,omitempty"` + // aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. + ConnectTimeout NullableFloat64 `json:"connect_timeout,omitempty"` + // A PEM encoded CA certificate used to validate the server certificate presented by the remote server. + CaCert NullableString `json:"ca_cert,omitempty"` // If True, TLS peer validation must be performed. TlsValidation *bool `json:"tls_validation,omitempty"` + // aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. + SockConnectTimeout NullableFloat64 `json:"sock_connect_timeout,omitempty"` // The URL of an external content source. Url string `json:"url"` - // A PEM encoded CA certificate used to validate the server certificate presented by the remote server. - CaCert NullableString `json:"ca_cert,omitempty"` + // The username to authenticte to the proxy. + ProxyUsername NullableString `json:"proxy_username,omitempty"` + // Headers for aiohttp.Clientsession + Headers []map[string]interface{} `json:"headers,omitempty"` // If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL. MetadataOnly *bool `json:"metadata_only,omitempty"` // A git ref. e.g.: branch, tag, or commit sha. @@ -84,162 +84,88 @@ func NewAnsibleGitRemoteWithDefaults() *AnsibleGitRemote { return &this } -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *AnsibleGitRemote) GetHeaders() []map[string]interface{} { - if o == nil || IsNil(o.Headers) { - var ret []map[string]interface{} - return ret - } - return o.Headers -} - -// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnsibleGitRemote) GetHeadersOk() ([]map[string]interface{}, bool) { - if o == nil || IsNil(o.Headers) { - return nil, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *AnsibleGitRemote) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given []map[string]interface{} and assigns it to the Headers field. -func (o *AnsibleGitRemote) SetHeaders(v []map[string]interface{}) { - o.Headers = v -} - -// GetSockReadTimeout returns the SockReadTimeout field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemote) GetSockReadTimeout() float64 { - if o == nil || IsNil(o.SockReadTimeout.Get()) { - var ret float64 - return ret - } - return *o.SockReadTimeout.Get() -} - -// GetSockReadTimeoutOk returns a tuple with the SockReadTimeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemote) GetSockReadTimeoutOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.SockReadTimeout.Get(), o.SockReadTimeout.IsSet() -} - -// HasSockReadTimeout returns a boolean if a field has been set. -func (o *AnsibleGitRemote) HasSockReadTimeout() bool { - if o != nil && o.SockReadTimeout.IsSet() { - return true - } - - return false -} - -// SetSockReadTimeout gets a reference to the given NullableFloat64 and assigns it to the SockReadTimeout field. -func (o *AnsibleGitRemote) SetSockReadTimeout(v float64) { - o.SockReadTimeout.Set(&v) -} -// SetSockReadTimeoutNil sets the value for SockReadTimeout to be an explicit nil -func (o *AnsibleGitRemote) SetSockReadTimeoutNil() { - o.SockReadTimeout.Set(nil) -} - -// UnsetSockReadTimeout ensures that no value is present for SockReadTimeout, not even an explicit nil -func (o *AnsibleGitRemote) UnsetSockReadTimeout() { - o.SockReadTimeout.Unset() -} - -// GetSockConnectTimeout returns the SockConnectTimeout field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemote) GetSockConnectTimeout() float64 { - if o == nil || IsNil(o.SockConnectTimeout.Get()) { - var ret float64 +// GetDownloadConcurrency returns the DownloadConcurrency field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemote) GetDownloadConcurrency() int64 { + if o == nil || IsNil(o.DownloadConcurrency.Get()) { + var ret int64 return ret } - return *o.SockConnectTimeout.Get() + return *o.DownloadConcurrency.Get() } -// GetSockConnectTimeoutOk returns a tuple with the SockConnectTimeout field value if set, nil otherwise +// GetDownloadConcurrencyOk returns a tuple with the DownloadConcurrency field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemote) GetSockConnectTimeoutOk() (*float64, bool) { +func (o *AnsibleGitRemote) GetDownloadConcurrencyOk() (*int64, bool) { if o == nil { return nil, false } - return o.SockConnectTimeout.Get(), o.SockConnectTimeout.IsSet() + return o.DownloadConcurrency.Get(), o.DownloadConcurrency.IsSet() } -// HasSockConnectTimeout returns a boolean if a field has been set. -func (o *AnsibleGitRemote) HasSockConnectTimeout() bool { - if o != nil && o.SockConnectTimeout.IsSet() { +// HasDownloadConcurrency returns a boolean if a field has been set. +func (o *AnsibleGitRemote) HasDownloadConcurrency() bool { + if o != nil && o.DownloadConcurrency.IsSet() { return true } return false } -// SetSockConnectTimeout gets a reference to the given NullableFloat64 and assigns it to the SockConnectTimeout field. -func (o *AnsibleGitRemote) SetSockConnectTimeout(v float64) { - o.SockConnectTimeout.Set(&v) +// SetDownloadConcurrency gets a reference to the given NullableInt64 and assigns it to the DownloadConcurrency field. +func (o *AnsibleGitRemote) SetDownloadConcurrency(v int64) { + o.DownloadConcurrency.Set(&v) } -// SetSockConnectTimeoutNil sets the value for SockConnectTimeout to be an explicit nil -func (o *AnsibleGitRemote) SetSockConnectTimeoutNil() { - o.SockConnectTimeout.Set(nil) +// SetDownloadConcurrencyNil sets the value for DownloadConcurrency to be an explicit nil +func (o *AnsibleGitRemote) SetDownloadConcurrencyNil() { + o.DownloadConcurrency.Set(nil) } -// UnsetSockConnectTimeout ensures that no value is present for SockConnectTimeout, not even an explicit nil -func (o *AnsibleGitRemote) UnsetSockConnectTimeout() { - o.SockConnectTimeout.Unset() +// UnsetDownloadConcurrency ensures that no value is present for DownloadConcurrency, not even an explicit nil +func (o *AnsibleGitRemote) UnsetDownloadConcurrency() { + o.DownloadConcurrency.Unset() } -// GetConnectTimeout returns the ConnectTimeout field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemote) GetConnectTimeout() float64 { - if o == nil || IsNil(o.ConnectTimeout.Get()) { - var ret float64 +// GetRateLimit returns the RateLimit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemote) GetRateLimit() int64 { + if o == nil || IsNil(o.RateLimit.Get()) { + var ret int64 return ret } - return *o.ConnectTimeout.Get() + return *o.RateLimit.Get() } -// GetConnectTimeoutOk returns a tuple with the ConnectTimeout field value if set, nil otherwise +// GetRateLimitOk returns a tuple with the RateLimit field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemote) GetConnectTimeoutOk() (*float64, bool) { +func (o *AnsibleGitRemote) GetRateLimitOk() (*int64, bool) { if o == nil { return nil, false } - return o.ConnectTimeout.Get(), o.ConnectTimeout.IsSet() + return o.RateLimit.Get(), o.RateLimit.IsSet() } -// HasConnectTimeout returns a boolean if a field has been set. -func (o *AnsibleGitRemote) HasConnectTimeout() bool { - if o != nil && o.ConnectTimeout.IsSet() { +// HasRateLimit returns a boolean if a field has been set. +func (o *AnsibleGitRemote) HasRateLimit() bool { + if o != nil && o.RateLimit.IsSet() { return true } return false } -// SetConnectTimeout gets a reference to the given NullableFloat64 and assigns it to the ConnectTimeout field. -func (o *AnsibleGitRemote) SetConnectTimeout(v float64) { - o.ConnectTimeout.Set(&v) +// SetRateLimit gets a reference to the given NullableInt64 and assigns it to the RateLimit field. +func (o *AnsibleGitRemote) SetRateLimit(v int64) { + o.RateLimit.Set(&v) } -// SetConnectTimeoutNil sets the value for ConnectTimeout to be an explicit nil -func (o *AnsibleGitRemote) SetConnectTimeoutNil() { - o.ConnectTimeout.Set(nil) +// SetRateLimitNil sets the value for RateLimit to be an explicit nil +func (o *AnsibleGitRemote) SetRateLimitNil() { + o.RateLimit.Set(nil) } -// UnsetConnectTimeout ensures that no value is present for ConnectTimeout, not even an explicit nil -func (o *AnsibleGitRemote) UnsetConnectTimeout() { - o.ConnectTimeout.Unset() +// UnsetRateLimit ensures that no value is present for RateLimit, not even an explicit nil +func (o *AnsibleGitRemote) UnsetRateLimit() { + o.RateLimit.Unset() } // GetName returns the Name field value @@ -308,130 +234,130 @@ func (o *AnsibleGitRemote) UnsetClientCert() { o.ClientCert.Unset() } -// GetProxyUrl returns the ProxyUrl field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemote) GetProxyUrl() string { - if o == nil || IsNil(o.ProxyUrl.Get()) { - var ret string +// GetMaxRetries returns the MaxRetries field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemote) GetMaxRetries() int64 { + if o == nil || IsNil(o.MaxRetries.Get()) { + var ret int64 return ret } - return *o.ProxyUrl.Get() + return *o.MaxRetries.Get() } -// GetProxyUrlOk returns a tuple with the ProxyUrl field value if set, nil otherwise +// GetMaxRetriesOk returns a tuple with the MaxRetries field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemote) GetProxyUrlOk() (*string, bool) { +func (o *AnsibleGitRemote) GetMaxRetriesOk() (*int64, bool) { if o == nil { return nil, false } - return o.ProxyUrl.Get(), o.ProxyUrl.IsSet() + return o.MaxRetries.Get(), o.MaxRetries.IsSet() } -// HasProxyUrl returns a boolean if a field has been set. -func (o *AnsibleGitRemote) HasProxyUrl() bool { - if o != nil && o.ProxyUrl.IsSet() { +// HasMaxRetries returns a boolean if a field has been set. +func (o *AnsibleGitRemote) HasMaxRetries() bool { + if o != nil && o.MaxRetries.IsSet() { return true } return false } -// SetProxyUrl gets a reference to the given NullableString and assigns it to the ProxyUrl field. -func (o *AnsibleGitRemote) SetProxyUrl(v string) { - o.ProxyUrl.Set(&v) +// SetMaxRetries gets a reference to the given NullableInt64 and assigns it to the MaxRetries field. +func (o *AnsibleGitRemote) SetMaxRetries(v int64) { + o.MaxRetries.Set(&v) } -// SetProxyUrlNil sets the value for ProxyUrl to be an explicit nil -func (o *AnsibleGitRemote) SetProxyUrlNil() { - o.ProxyUrl.Set(nil) +// SetMaxRetriesNil sets the value for MaxRetries to be an explicit nil +func (o *AnsibleGitRemote) SetMaxRetriesNil() { + o.MaxRetries.Set(nil) } -// UnsetProxyUrl ensures that no value is present for ProxyUrl, not even an explicit nil -func (o *AnsibleGitRemote) UnsetProxyUrl() { - o.ProxyUrl.Unset() +// UnsetMaxRetries ensures that no value is present for MaxRetries, not even an explicit nil +func (o *AnsibleGitRemote) UnsetMaxRetries() { + o.MaxRetries.Unset() } -// GetProxyUsername returns the ProxyUsername field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemote) GetProxyUsername() string { - if o == nil || IsNil(o.ProxyUsername.Get()) { - var ret string +// GetSockReadTimeout returns the SockReadTimeout field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemote) GetSockReadTimeout() float64 { + if o == nil || IsNil(o.SockReadTimeout.Get()) { + var ret float64 return ret } - return *o.ProxyUsername.Get() + return *o.SockReadTimeout.Get() } -// GetProxyUsernameOk returns a tuple with the ProxyUsername field value if set, nil otherwise +// GetSockReadTimeoutOk returns a tuple with the SockReadTimeout field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemote) GetProxyUsernameOk() (*string, bool) { +func (o *AnsibleGitRemote) GetSockReadTimeoutOk() (*float64, bool) { if o == nil { return nil, false } - return o.ProxyUsername.Get(), o.ProxyUsername.IsSet() + return o.SockReadTimeout.Get(), o.SockReadTimeout.IsSet() } -// HasProxyUsername returns a boolean if a field has been set. -func (o *AnsibleGitRemote) HasProxyUsername() bool { - if o != nil && o.ProxyUsername.IsSet() { +// HasSockReadTimeout returns a boolean if a field has been set. +func (o *AnsibleGitRemote) HasSockReadTimeout() bool { + if o != nil && o.SockReadTimeout.IsSet() { return true } return false } -// SetProxyUsername gets a reference to the given NullableString and assigns it to the ProxyUsername field. -func (o *AnsibleGitRemote) SetProxyUsername(v string) { - o.ProxyUsername.Set(&v) +// SetSockReadTimeout gets a reference to the given NullableFloat64 and assigns it to the SockReadTimeout field. +func (o *AnsibleGitRemote) SetSockReadTimeout(v float64) { + o.SockReadTimeout.Set(&v) } -// SetProxyUsernameNil sets the value for ProxyUsername to be an explicit nil -func (o *AnsibleGitRemote) SetProxyUsernameNil() { - o.ProxyUsername.Set(nil) +// SetSockReadTimeoutNil sets the value for SockReadTimeout to be an explicit nil +func (o *AnsibleGitRemote) SetSockReadTimeoutNil() { + o.SockReadTimeout.Set(nil) } -// UnsetProxyUsername ensures that no value is present for ProxyUsername, not even an explicit nil -func (o *AnsibleGitRemote) UnsetProxyUsername() { - o.ProxyUsername.Unset() +// UnsetSockReadTimeout ensures that no value is present for SockReadTimeout, not even an explicit nil +func (o *AnsibleGitRemote) UnsetSockReadTimeout() { + o.SockReadTimeout.Unset() } -// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemote) GetUsername() string { - if o == nil || IsNil(o.Username.Get()) { +// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemote) GetPassword() string { + if o == nil || IsNil(o.Password.Get()) { var ret string return ret } - return *o.Username.Get() + return *o.Password.Get() } -// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemote) GetUsernameOk() (*string, bool) { +func (o *AnsibleGitRemote) GetPasswordOk() (*string, bool) { if o == nil { return nil, false } - return o.Username.Get(), o.Username.IsSet() + return o.Password.Get(), o.Password.IsSet() } -// HasUsername returns a boolean if a field has been set. -func (o *AnsibleGitRemote) HasUsername() bool { - if o != nil && o.Username.IsSet() { +// HasPassword returns a boolean if a field has been set. +func (o *AnsibleGitRemote) HasPassword() bool { + if o != nil && o.Password.IsSet() { return true } return false } -// SetUsername gets a reference to the given NullableString and assigns it to the Username field. -func (o *AnsibleGitRemote) SetUsername(v string) { - o.Username.Set(&v) +// SetPassword gets a reference to the given NullableString and assigns it to the Password field. +func (o *AnsibleGitRemote) SetPassword(v string) { + o.Password.Set(&v) } -// SetUsernameNil sets the value for Username to be an explicit nil -func (o *AnsibleGitRemote) SetUsernameNil() { - o.Username.Set(nil) +// SetPasswordNil sets the value for Password to be an explicit nil +func (o *AnsibleGitRemote) SetPasswordNil() { + o.Password.Set(nil) } -// UnsetUsername ensures that no value is present for Username, not even an explicit nil -func (o *AnsibleGitRemote) UnsetUsername() { - o.Username.Unset() +// UnsetPassword ensures that no value is present for Password, not even an explicit nil +func (o *AnsibleGitRemote) UnsetPassword() { + o.Password.Unset() } // GetTotalTimeout returns the TotalTimeout field value if set, zero value otherwise (both if not set or set to explicit null). @@ -476,172 +402,162 @@ func (o *AnsibleGitRemote) UnsetTotalTimeout() { o.TotalTimeout.Unset() } -// GetMaxRetries returns the MaxRetries field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemote) GetMaxRetries() int64 { - if o == nil || IsNil(o.MaxRetries.Get()) { - var ret int64 +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemote) GetUsername() string { + if o == nil || IsNil(o.Username.Get()) { + var ret string return ret } - return *o.MaxRetries.Get() + return *o.Username.Get() } -// GetMaxRetriesOk returns a tuple with the MaxRetries field value if set, nil otherwise +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemote) GetMaxRetriesOk() (*int64, bool) { +func (o *AnsibleGitRemote) GetUsernameOk() (*string, bool) { if o == nil { return nil, false } - return o.MaxRetries.Get(), o.MaxRetries.IsSet() + return o.Username.Get(), o.Username.IsSet() } -// HasMaxRetries returns a boolean if a field has been set. -func (o *AnsibleGitRemote) HasMaxRetries() bool { - if o != nil && o.MaxRetries.IsSet() { +// HasUsername returns a boolean if a field has been set. +func (o *AnsibleGitRemote) HasUsername() bool { + if o != nil && o.Username.IsSet() { return true } return false } -// SetMaxRetries gets a reference to the given NullableInt64 and assigns it to the MaxRetries field. -func (o *AnsibleGitRemote) SetMaxRetries(v int64) { - o.MaxRetries.Set(&v) +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *AnsibleGitRemote) SetUsername(v string) { + o.Username.Set(&v) } -// SetMaxRetriesNil sets the value for MaxRetries to be an explicit nil -func (o *AnsibleGitRemote) SetMaxRetriesNil() { - o.MaxRetries.Set(nil) +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *AnsibleGitRemote) SetUsernameNil() { + o.Username.Set(nil) } -// UnsetMaxRetries ensures that no value is present for MaxRetries, not even an explicit nil -func (o *AnsibleGitRemote) UnsetMaxRetries() { - o.MaxRetries.Unset() +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *AnsibleGitRemote) UnsetUsername() { + o.Username.Unset() } -// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemote) GetPassword() string { - if o == nil || IsNil(o.Password.Get()) { +// GetProxyPassword returns the ProxyPassword field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemote) GetProxyPassword() string { + if o == nil || IsNil(o.ProxyPassword.Get()) { var ret string return ret } - return *o.Password.Get() + return *o.ProxyPassword.Get() } -// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// GetProxyPasswordOk returns a tuple with the ProxyPassword field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemote) GetPasswordOk() (*string, bool) { +func (o *AnsibleGitRemote) GetProxyPasswordOk() (*string, bool) { if o == nil { return nil, false } - return o.Password.Get(), o.Password.IsSet() + return o.ProxyPassword.Get(), o.ProxyPassword.IsSet() } -// HasPassword returns a boolean if a field has been set. -func (o *AnsibleGitRemote) HasPassword() bool { - if o != nil && o.Password.IsSet() { +// HasProxyPassword returns a boolean if a field has been set. +func (o *AnsibleGitRemote) HasProxyPassword() bool { + if o != nil && o.ProxyPassword.IsSet() { return true } return false } -// SetPassword gets a reference to the given NullableString and assigns it to the Password field. -func (o *AnsibleGitRemote) SetPassword(v string) { - o.Password.Set(&v) +// SetProxyPassword gets a reference to the given NullableString and assigns it to the ProxyPassword field. +func (o *AnsibleGitRemote) SetProxyPassword(v string) { + o.ProxyPassword.Set(&v) } -// SetPasswordNil sets the value for Password to be an explicit nil -func (o *AnsibleGitRemote) SetPasswordNil() { - o.Password.Set(nil) +// SetProxyPasswordNil sets the value for ProxyPassword to be an explicit nil +func (o *AnsibleGitRemote) SetProxyPasswordNil() { + o.ProxyPassword.Set(nil) } -// UnsetPassword ensures that no value is present for Password, not even an explicit nil -func (o *AnsibleGitRemote) UnsetPassword() { - o.Password.Unset() +// UnsetProxyPassword ensures that no value is present for ProxyPassword, not even an explicit nil +func (o *AnsibleGitRemote) UnsetProxyPassword() { + o.ProxyPassword.Unset() } -// GetDownloadConcurrency returns the DownloadConcurrency field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemote) GetDownloadConcurrency() int64 { - if o == nil || IsNil(o.DownloadConcurrency.Get()) { - var ret int64 +// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. +func (o *AnsibleGitRemote) GetPulpLabels() map[string]string { + if o == nil || IsNil(o.PulpLabels) { + var ret map[string]string return ret } - return *o.DownloadConcurrency.Get() + return *o.PulpLabels } -// GetDownloadConcurrencyOk returns a tuple with the DownloadConcurrency field value if set, nil otherwise +// GetPulpLabelsOk returns a tuple with the PulpLabels field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemote) GetDownloadConcurrencyOk() (*int64, bool) { - if o == nil { +func (o *AnsibleGitRemote) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { return nil, false } - return o.DownloadConcurrency.Get(), o.DownloadConcurrency.IsSet() + return o.PulpLabels, true } -// HasDownloadConcurrency returns a boolean if a field has been set. -func (o *AnsibleGitRemote) HasDownloadConcurrency() bool { - if o != nil && o.DownloadConcurrency.IsSet() { +// HasPulpLabels returns a boolean if a field has been set. +func (o *AnsibleGitRemote) HasPulpLabels() bool { + if o != nil && !IsNil(o.PulpLabels) { return true } return false } -// SetDownloadConcurrency gets a reference to the given NullableInt64 and assigns it to the DownloadConcurrency field. -func (o *AnsibleGitRemote) SetDownloadConcurrency(v int64) { - o.DownloadConcurrency.Set(&v) -} -// SetDownloadConcurrencyNil sets the value for DownloadConcurrency to be an explicit nil -func (o *AnsibleGitRemote) SetDownloadConcurrencyNil() { - o.DownloadConcurrency.Set(nil) -} - -// UnsetDownloadConcurrency ensures that no value is present for DownloadConcurrency, not even an explicit nil -func (o *AnsibleGitRemote) UnsetDownloadConcurrency() { - o.DownloadConcurrency.Unset() +// SetPulpLabels gets a reference to the given map[string]string and assigns it to the PulpLabels field. +func (o *AnsibleGitRemote) SetPulpLabels(v map[string]string) { + o.PulpLabels = &v } -// GetRateLimit returns the RateLimit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemote) GetRateLimit() int64 { - if o == nil || IsNil(o.RateLimit.Get()) { - var ret int64 +// GetProxyUrl returns the ProxyUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemote) GetProxyUrl() string { + if o == nil || IsNil(o.ProxyUrl.Get()) { + var ret string return ret } - return *o.RateLimit.Get() + return *o.ProxyUrl.Get() } -// GetRateLimitOk returns a tuple with the RateLimit field value if set, nil otherwise +// GetProxyUrlOk returns a tuple with the ProxyUrl field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemote) GetRateLimitOk() (*int64, bool) { +func (o *AnsibleGitRemote) GetProxyUrlOk() (*string, bool) { if o == nil { return nil, false } - return o.RateLimit.Get(), o.RateLimit.IsSet() + return o.ProxyUrl.Get(), o.ProxyUrl.IsSet() } -// HasRateLimit returns a boolean if a field has been set. -func (o *AnsibleGitRemote) HasRateLimit() bool { - if o != nil && o.RateLimit.IsSet() { +// HasProxyUrl returns a boolean if a field has been set. +func (o *AnsibleGitRemote) HasProxyUrl() bool { + if o != nil && o.ProxyUrl.IsSet() { return true } return false } -// SetRateLimit gets a reference to the given NullableInt64 and assigns it to the RateLimit field. -func (o *AnsibleGitRemote) SetRateLimit(v int64) { - o.RateLimit.Set(&v) +// SetProxyUrl gets a reference to the given NullableString and assigns it to the ProxyUrl field. +func (o *AnsibleGitRemote) SetProxyUrl(v string) { + o.ProxyUrl.Set(&v) } -// SetRateLimitNil sets the value for RateLimit to be an explicit nil -func (o *AnsibleGitRemote) SetRateLimitNil() { - o.RateLimit.Set(nil) +// SetProxyUrlNil sets the value for ProxyUrl to be an explicit nil +func (o *AnsibleGitRemote) SetProxyUrlNil() { + o.ProxyUrl.Set(nil) } - -// UnsetRateLimit ensures that no value is present for RateLimit, not even an explicit nil -func (o *AnsibleGitRemote) UnsetRateLimit() { - o.RateLimit.Unset() + +// UnsetProxyUrl ensures that no value is present for ProxyUrl, not even an explicit nil +func (o *AnsibleGitRemote) UnsetProxyUrl() { + o.ProxyUrl.Unset() } // GetClientKey returns the ClientKey field value if set, zero value otherwise (both if not set or set to explicit null). @@ -686,78 +602,88 @@ func (o *AnsibleGitRemote) UnsetClientKey() { o.ClientKey.Unset() } -// GetProxyPassword returns the ProxyPassword field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemote) GetProxyPassword() string { - if o == nil || IsNil(o.ProxyPassword.Get()) { - var ret string +// GetConnectTimeout returns the ConnectTimeout field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemote) GetConnectTimeout() float64 { + if o == nil || IsNil(o.ConnectTimeout.Get()) { + var ret float64 return ret } - return *o.ProxyPassword.Get() + return *o.ConnectTimeout.Get() } -// GetProxyPasswordOk returns a tuple with the ProxyPassword field value if set, nil otherwise +// GetConnectTimeoutOk returns a tuple with the ConnectTimeout field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemote) GetProxyPasswordOk() (*string, bool) { +func (o *AnsibleGitRemote) GetConnectTimeoutOk() (*float64, bool) { if o == nil { return nil, false } - return o.ProxyPassword.Get(), o.ProxyPassword.IsSet() + return o.ConnectTimeout.Get(), o.ConnectTimeout.IsSet() } -// HasProxyPassword returns a boolean if a field has been set. -func (o *AnsibleGitRemote) HasProxyPassword() bool { - if o != nil && o.ProxyPassword.IsSet() { +// HasConnectTimeout returns a boolean if a field has been set. +func (o *AnsibleGitRemote) HasConnectTimeout() bool { + if o != nil && o.ConnectTimeout.IsSet() { return true } return false } -// SetProxyPassword gets a reference to the given NullableString and assigns it to the ProxyPassword field. -func (o *AnsibleGitRemote) SetProxyPassword(v string) { - o.ProxyPassword.Set(&v) +// SetConnectTimeout gets a reference to the given NullableFloat64 and assigns it to the ConnectTimeout field. +func (o *AnsibleGitRemote) SetConnectTimeout(v float64) { + o.ConnectTimeout.Set(&v) } -// SetProxyPasswordNil sets the value for ProxyPassword to be an explicit nil -func (o *AnsibleGitRemote) SetProxyPasswordNil() { - o.ProxyPassword.Set(nil) +// SetConnectTimeoutNil sets the value for ConnectTimeout to be an explicit nil +func (o *AnsibleGitRemote) SetConnectTimeoutNil() { + o.ConnectTimeout.Set(nil) } -// UnsetProxyPassword ensures that no value is present for ProxyPassword, not even an explicit nil -func (o *AnsibleGitRemote) UnsetProxyPassword() { - o.ProxyPassword.Unset() +// UnsetConnectTimeout ensures that no value is present for ConnectTimeout, not even an explicit nil +func (o *AnsibleGitRemote) UnsetConnectTimeout() { + o.ConnectTimeout.Unset() } -// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. -func (o *AnsibleGitRemote) GetPulpLabels() map[string]string { - if o == nil || IsNil(o.PulpLabels) { - var ret map[string]string +// GetCaCert returns the CaCert field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemote) GetCaCert() string { + if o == nil || IsNil(o.CaCert.Get()) { + var ret string return ret } - return *o.PulpLabels + return *o.CaCert.Get() } -// GetPulpLabelsOk returns a tuple with the PulpLabels field value if set, nil otherwise +// GetCaCertOk returns a tuple with the CaCert field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnsibleGitRemote) GetPulpLabelsOk() (*map[string]string, bool) { - if o == nil || IsNil(o.PulpLabels) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AnsibleGitRemote) GetCaCertOk() (*string, bool) { + if o == nil { return nil, false } - return o.PulpLabels, true + return o.CaCert.Get(), o.CaCert.IsSet() } -// HasPulpLabels returns a boolean if a field has been set. -func (o *AnsibleGitRemote) HasPulpLabels() bool { - if o != nil && !IsNil(o.PulpLabels) { +// HasCaCert returns a boolean if a field has been set. +func (o *AnsibleGitRemote) HasCaCert() bool { + if o != nil && o.CaCert.IsSet() { return true } return false } -// SetPulpLabels gets a reference to the given map[string]string and assigns it to the PulpLabels field. -func (o *AnsibleGitRemote) SetPulpLabels(v map[string]string) { - o.PulpLabels = &v +// SetCaCert gets a reference to the given NullableString and assigns it to the CaCert field. +func (o *AnsibleGitRemote) SetCaCert(v string) { + o.CaCert.Set(&v) +} +// SetCaCertNil sets the value for CaCert to be an explicit nil +func (o *AnsibleGitRemote) SetCaCertNil() { + o.CaCert.Set(nil) +} + +// UnsetCaCert ensures that no value is present for CaCert, not even an explicit nil +func (o *AnsibleGitRemote) UnsetCaCert() { + o.CaCert.Unset() } // GetTlsValidation returns the TlsValidation field value if set, zero value otherwise. @@ -792,6 +718,48 @@ func (o *AnsibleGitRemote) SetTlsValidation(v bool) { o.TlsValidation = &v } +// GetSockConnectTimeout returns the SockConnectTimeout field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemote) GetSockConnectTimeout() float64 { + if o == nil || IsNil(o.SockConnectTimeout.Get()) { + var ret float64 + return ret + } + return *o.SockConnectTimeout.Get() +} + +// GetSockConnectTimeoutOk returns a tuple with the SockConnectTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AnsibleGitRemote) GetSockConnectTimeoutOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.SockConnectTimeout.Get(), o.SockConnectTimeout.IsSet() +} + +// HasSockConnectTimeout returns a boolean if a field has been set. +func (o *AnsibleGitRemote) HasSockConnectTimeout() bool { + if o != nil && o.SockConnectTimeout.IsSet() { + return true + } + + return false +} + +// SetSockConnectTimeout gets a reference to the given NullableFloat64 and assigns it to the SockConnectTimeout field. +func (o *AnsibleGitRemote) SetSockConnectTimeout(v float64) { + o.SockConnectTimeout.Set(&v) +} +// SetSockConnectTimeoutNil sets the value for SockConnectTimeout to be an explicit nil +func (o *AnsibleGitRemote) SetSockConnectTimeoutNil() { + o.SockConnectTimeout.Set(nil) +} + +// UnsetSockConnectTimeout ensures that no value is present for SockConnectTimeout, not even an explicit nil +func (o *AnsibleGitRemote) UnsetSockConnectTimeout() { + o.SockConnectTimeout.Unset() +} + // GetUrl returns the Url field value func (o *AnsibleGitRemote) GetUrl() string { if o == nil { @@ -816,46 +784,78 @@ func (o *AnsibleGitRemote) SetUrl(v string) { o.Url = v } -// GetCaCert returns the CaCert field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemote) GetCaCert() string { - if o == nil || IsNil(o.CaCert.Get()) { +// GetProxyUsername returns the ProxyUsername field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemote) GetProxyUsername() string { + if o == nil || IsNil(o.ProxyUsername.Get()) { var ret string return ret } - return *o.CaCert.Get() + return *o.ProxyUsername.Get() } -// GetCaCertOk returns a tuple with the CaCert field value if set, nil otherwise +// GetProxyUsernameOk returns a tuple with the ProxyUsername field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemote) GetCaCertOk() (*string, bool) { +func (o *AnsibleGitRemote) GetProxyUsernameOk() (*string, bool) { if o == nil { return nil, false } - return o.CaCert.Get(), o.CaCert.IsSet() + return o.ProxyUsername.Get(), o.ProxyUsername.IsSet() } -// HasCaCert returns a boolean if a field has been set. -func (o *AnsibleGitRemote) HasCaCert() bool { - if o != nil && o.CaCert.IsSet() { +// HasProxyUsername returns a boolean if a field has been set. +func (o *AnsibleGitRemote) HasProxyUsername() bool { + if o != nil && o.ProxyUsername.IsSet() { return true } return false } -// SetCaCert gets a reference to the given NullableString and assigns it to the CaCert field. -func (o *AnsibleGitRemote) SetCaCert(v string) { - o.CaCert.Set(&v) +// SetProxyUsername gets a reference to the given NullableString and assigns it to the ProxyUsername field. +func (o *AnsibleGitRemote) SetProxyUsername(v string) { + o.ProxyUsername.Set(&v) } -// SetCaCertNil sets the value for CaCert to be an explicit nil -func (o *AnsibleGitRemote) SetCaCertNil() { - o.CaCert.Set(nil) +// SetProxyUsernameNil sets the value for ProxyUsername to be an explicit nil +func (o *AnsibleGitRemote) SetProxyUsernameNil() { + o.ProxyUsername.Set(nil) } -// UnsetCaCert ensures that no value is present for CaCert, not even an explicit nil -func (o *AnsibleGitRemote) UnsetCaCert() { - o.CaCert.Unset() +// UnsetProxyUsername ensures that no value is present for ProxyUsername, not even an explicit nil +func (o *AnsibleGitRemote) UnsetProxyUsername() { + o.ProxyUsername.Unset() +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *AnsibleGitRemote) GetHeaders() []map[string]interface{} { + if o == nil || IsNil(o.Headers) { + var ret []map[string]interface{} + return ret + } + return o.Headers +} + +// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleGitRemote) GetHeadersOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Headers) { + return nil, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *AnsibleGitRemote) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given []map[string]interface{} and assigns it to the Headers field. +func (o *AnsibleGitRemote) SetHeaders(v []map[string]interface{}) { + o.Headers = v } // GetMetadataOnly returns the MetadataOnly field value if set, zero value otherwise. @@ -932,61 +932,61 @@ func (o AnsibleGitRemote) MarshalJSON() ([]byte, error) { func (o AnsibleGitRemote) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if o.SockReadTimeout.IsSet() { - toSerialize["sock_read_timeout"] = o.SockReadTimeout.Get() - } - if o.SockConnectTimeout.IsSet() { - toSerialize["sock_connect_timeout"] = o.SockConnectTimeout.Get() + if o.DownloadConcurrency.IsSet() { + toSerialize["download_concurrency"] = o.DownloadConcurrency.Get() } - if o.ConnectTimeout.IsSet() { - toSerialize["connect_timeout"] = o.ConnectTimeout.Get() + if o.RateLimit.IsSet() { + toSerialize["rate_limit"] = o.RateLimit.Get() } toSerialize["name"] = o.Name if o.ClientCert.IsSet() { toSerialize["client_cert"] = o.ClientCert.Get() } - if o.ProxyUrl.IsSet() { - toSerialize["proxy_url"] = o.ProxyUrl.Get() + if o.MaxRetries.IsSet() { + toSerialize["max_retries"] = o.MaxRetries.Get() } - if o.ProxyUsername.IsSet() { - toSerialize["proxy_username"] = o.ProxyUsername.Get() + if o.SockReadTimeout.IsSet() { + toSerialize["sock_read_timeout"] = o.SockReadTimeout.Get() } - if o.Username.IsSet() { - toSerialize["username"] = o.Username.Get() + if o.Password.IsSet() { + toSerialize["password"] = o.Password.Get() } if o.TotalTimeout.IsSet() { toSerialize["total_timeout"] = o.TotalTimeout.Get() } - if o.MaxRetries.IsSet() { - toSerialize["max_retries"] = o.MaxRetries.Get() + if o.Username.IsSet() { + toSerialize["username"] = o.Username.Get() } - if o.Password.IsSet() { - toSerialize["password"] = o.Password.Get() + if o.ProxyPassword.IsSet() { + toSerialize["proxy_password"] = o.ProxyPassword.Get() } - if o.DownloadConcurrency.IsSet() { - toSerialize["download_concurrency"] = o.DownloadConcurrency.Get() + if !IsNil(o.PulpLabels) { + toSerialize["pulp_labels"] = o.PulpLabels } - if o.RateLimit.IsSet() { - toSerialize["rate_limit"] = o.RateLimit.Get() + if o.ProxyUrl.IsSet() { + toSerialize["proxy_url"] = o.ProxyUrl.Get() } if o.ClientKey.IsSet() { toSerialize["client_key"] = o.ClientKey.Get() } - if o.ProxyPassword.IsSet() { - toSerialize["proxy_password"] = o.ProxyPassword.Get() + if o.ConnectTimeout.IsSet() { + toSerialize["connect_timeout"] = o.ConnectTimeout.Get() } - if !IsNil(o.PulpLabels) { - toSerialize["pulp_labels"] = o.PulpLabels + if o.CaCert.IsSet() { + toSerialize["ca_cert"] = o.CaCert.Get() } if !IsNil(o.TlsValidation) { toSerialize["tls_validation"] = o.TlsValidation } + if o.SockConnectTimeout.IsSet() { + toSerialize["sock_connect_timeout"] = o.SockConnectTimeout.Get() + } toSerialize["url"] = o.Url - if o.CaCert.IsSet() { - toSerialize["ca_cert"] = o.CaCert.Get() + if o.ProxyUsername.IsSet() { + toSerialize["proxy_username"] = o.ProxyUsername.Get() + } + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers } if !IsNil(o.MetadataOnly) { toSerialize["metadata_only"] = o.MetadataOnly diff --git a/release/model_ansible_git_remote_response.go b/release/model_ansible_git_remote_response.go index ac3767d2..677bb70d 100644 --- a/release/model_ansible_git_remote_response.go +++ b/release/model_ansible_git_remote_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -21,42 +21,42 @@ var _ MappedNullable = &AnsibleGitRemoteResponse{} // AnsibleGitRemoteResponse A serializer for Git Collection Remotes. type AnsibleGitRemoteResponse struct { - // Headers for aiohttp.Clientsession - Headers []map[string]interface{} `json:"headers,omitempty"` - // aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. - SockReadTimeout NullableFloat64 `json:"sock_read_timeout,omitempty"` - // aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. - SockConnectTimeout NullableFloat64 `json:"sock_connect_timeout,omitempty"` - // aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. - ConnectTimeout NullableFloat64 `json:"connect_timeout,omitempty"` - PulpHref *string `json:"pulp_href,omitempty"` - // List of hidden (write only) fields - HiddenFields []RemoteResponseHiddenFieldsInner `json:"hidden_fields,omitempty"` + // Total number of simultaneous connections. If not set then the default value will be used. + DownloadConcurrency NullableInt64 `json:"download_concurrency,omitempty"` + // Limits requests per second for each concurrent downloader + RateLimit NullableInt64 `json:"rate_limit,omitempty"` // A unique name for this remote. Name string `json:"name"` // A PEM encoded client certificate used for authentication. ClientCert NullableString `json:"client_cert,omitempty"` - // The proxy URL. Format: scheme://host:port - ProxyUrl NullableString `json:"proxy_url,omitempty"` - // aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. - TotalTimeout NullableFloat64 `json:"total_timeout,omitempty"` - // Timestamp of the most recent update of the remote. - PulpLastUpdated *time.Time `json:"pulp_last_updated,omitempty"` // Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. MaxRetries NullableInt64 `json:"max_retries,omitempty"` + // aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. + SockReadTimeout NullableFloat64 `json:"sock_read_timeout,omitempty"` + // Timestamp of the most recent update of the remote. + PulpLastUpdated *time.Time `json:"pulp_last_updated,omitempty"` + // aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. + TotalTimeout NullableFloat64 `json:"total_timeout,omitempty"` + PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // Timestamp of creation. PulpCreated *time.Time `json:"pulp_created,omitempty"` - // Total number of simultaneous connections. If not set then the default value will be used. - DownloadConcurrency NullableInt64 `json:"download_concurrency,omitempty"` - // Limits requests per second for each concurrent downloader - RateLimit NullableInt64 `json:"rate_limit,omitempty"` - PulpLabels *map[string]string `json:"pulp_labels,omitempty"` + // The proxy URL. Format: scheme://host:port + ProxyUrl NullableString `json:"proxy_url,omitempty"` + // aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. + ConnectTimeout NullableFloat64 `json:"connect_timeout,omitempty"` + // A PEM encoded CA certificate used to validate the server certificate presented by the remote server. + CaCert NullableString `json:"ca_cert,omitempty"` // If True, TLS peer validation must be performed. TlsValidation *bool `json:"tls_validation,omitempty"` + // aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. + SockConnectTimeout NullableFloat64 `json:"sock_connect_timeout,omitempty"` // The URL of an external content source. Url string `json:"url"` - // A PEM encoded CA certificate used to validate the server certificate presented by the remote server. - CaCert NullableString `json:"ca_cert,omitempty"` + // Headers for aiohttp.Clientsession + Headers []map[string]interface{} `json:"headers,omitempty"` + PulpHref *string `json:"pulp_href,omitempty"` + // List of hidden (write only) fields + HiddenFields []RemoteResponseHiddenFieldsInner `json:"hidden_fields,omitempty"` // If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL. MetadataOnly *bool `json:"metadata_only,omitempty"` // A git ref. e.g.: branch, tag, or commit sha. @@ -82,226 +82,88 @@ func NewAnsibleGitRemoteResponseWithDefaults() *AnsibleGitRemoteResponse { return &this } -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *AnsibleGitRemoteResponse) GetHeaders() []map[string]interface{} { - if o == nil || IsNil(o.Headers) { - var ret []map[string]interface{} - return ret - } - return o.Headers -} - -// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnsibleGitRemoteResponse) GetHeadersOk() ([]map[string]interface{}, bool) { - if o == nil || IsNil(o.Headers) { - return nil, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *AnsibleGitRemoteResponse) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given []map[string]interface{} and assigns it to the Headers field. -func (o *AnsibleGitRemoteResponse) SetHeaders(v []map[string]interface{}) { - o.Headers = v -} - -// GetSockReadTimeout returns the SockReadTimeout field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemoteResponse) GetSockReadTimeout() float64 { - if o == nil || IsNil(o.SockReadTimeout.Get()) { - var ret float64 - return ret - } - return *o.SockReadTimeout.Get() -} - -// GetSockReadTimeoutOk returns a tuple with the SockReadTimeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemoteResponse) GetSockReadTimeoutOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.SockReadTimeout.Get(), o.SockReadTimeout.IsSet() -} - -// HasSockReadTimeout returns a boolean if a field has been set. -func (o *AnsibleGitRemoteResponse) HasSockReadTimeout() bool { - if o != nil && o.SockReadTimeout.IsSet() { - return true - } - - return false -} - -// SetSockReadTimeout gets a reference to the given NullableFloat64 and assigns it to the SockReadTimeout field. -func (o *AnsibleGitRemoteResponse) SetSockReadTimeout(v float64) { - o.SockReadTimeout.Set(&v) -} -// SetSockReadTimeoutNil sets the value for SockReadTimeout to be an explicit nil -func (o *AnsibleGitRemoteResponse) SetSockReadTimeoutNil() { - o.SockReadTimeout.Set(nil) -} - -// UnsetSockReadTimeout ensures that no value is present for SockReadTimeout, not even an explicit nil -func (o *AnsibleGitRemoteResponse) UnsetSockReadTimeout() { - o.SockReadTimeout.Unset() -} - -// GetSockConnectTimeout returns the SockConnectTimeout field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemoteResponse) GetSockConnectTimeout() float64 { - if o == nil || IsNil(o.SockConnectTimeout.Get()) { - var ret float64 +// GetDownloadConcurrency returns the DownloadConcurrency field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemoteResponse) GetDownloadConcurrency() int64 { + if o == nil || IsNil(o.DownloadConcurrency.Get()) { + var ret int64 return ret } - return *o.SockConnectTimeout.Get() + return *o.DownloadConcurrency.Get() } -// GetSockConnectTimeoutOk returns a tuple with the SockConnectTimeout field value if set, nil otherwise +// GetDownloadConcurrencyOk returns a tuple with the DownloadConcurrency field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemoteResponse) GetSockConnectTimeoutOk() (*float64, bool) { +func (o *AnsibleGitRemoteResponse) GetDownloadConcurrencyOk() (*int64, bool) { if o == nil { return nil, false } - return o.SockConnectTimeout.Get(), o.SockConnectTimeout.IsSet() + return o.DownloadConcurrency.Get(), o.DownloadConcurrency.IsSet() } -// HasSockConnectTimeout returns a boolean if a field has been set. -func (o *AnsibleGitRemoteResponse) HasSockConnectTimeout() bool { - if o != nil && o.SockConnectTimeout.IsSet() { +// HasDownloadConcurrency returns a boolean if a field has been set. +func (o *AnsibleGitRemoteResponse) HasDownloadConcurrency() bool { + if o != nil && o.DownloadConcurrency.IsSet() { return true } return false } -// SetSockConnectTimeout gets a reference to the given NullableFloat64 and assigns it to the SockConnectTimeout field. -func (o *AnsibleGitRemoteResponse) SetSockConnectTimeout(v float64) { - o.SockConnectTimeout.Set(&v) +// SetDownloadConcurrency gets a reference to the given NullableInt64 and assigns it to the DownloadConcurrency field. +func (o *AnsibleGitRemoteResponse) SetDownloadConcurrency(v int64) { + o.DownloadConcurrency.Set(&v) } -// SetSockConnectTimeoutNil sets the value for SockConnectTimeout to be an explicit nil -func (o *AnsibleGitRemoteResponse) SetSockConnectTimeoutNil() { - o.SockConnectTimeout.Set(nil) +// SetDownloadConcurrencyNil sets the value for DownloadConcurrency to be an explicit nil +func (o *AnsibleGitRemoteResponse) SetDownloadConcurrencyNil() { + o.DownloadConcurrency.Set(nil) } -// UnsetSockConnectTimeout ensures that no value is present for SockConnectTimeout, not even an explicit nil -func (o *AnsibleGitRemoteResponse) UnsetSockConnectTimeout() { - o.SockConnectTimeout.Unset() +// UnsetDownloadConcurrency ensures that no value is present for DownloadConcurrency, not even an explicit nil +func (o *AnsibleGitRemoteResponse) UnsetDownloadConcurrency() { + o.DownloadConcurrency.Unset() } -// GetConnectTimeout returns the ConnectTimeout field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemoteResponse) GetConnectTimeout() float64 { - if o == nil || IsNil(o.ConnectTimeout.Get()) { - var ret float64 +// GetRateLimit returns the RateLimit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemoteResponse) GetRateLimit() int64 { + if o == nil || IsNil(o.RateLimit.Get()) { + var ret int64 return ret } - return *o.ConnectTimeout.Get() + return *o.RateLimit.Get() } -// GetConnectTimeoutOk returns a tuple with the ConnectTimeout field value if set, nil otherwise +// GetRateLimitOk returns a tuple with the RateLimit field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemoteResponse) GetConnectTimeoutOk() (*float64, bool) { +func (o *AnsibleGitRemoteResponse) GetRateLimitOk() (*int64, bool) { if o == nil { return nil, false } - return o.ConnectTimeout.Get(), o.ConnectTimeout.IsSet() -} - -// HasConnectTimeout returns a boolean if a field has been set. -func (o *AnsibleGitRemoteResponse) HasConnectTimeout() bool { - if o != nil && o.ConnectTimeout.IsSet() { - return true - } - - return false -} - -// SetConnectTimeout gets a reference to the given NullableFloat64 and assigns it to the ConnectTimeout field. -func (o *AnsibleGitRemoteResponse) SetConnectTimeout(v float64) { - o.ConnectTimeout.Set(&v) -} -// SetConnectTimeoutNil sets the value for ConnectTimeout to be an explicit nil -func (o *AnsibleGitRemoteResponse) SetConnectTimeoutNil() { - o.ConnectTimeout.Set(nil) -} - -// UnsetConnectTimeout ensures that no value is present for ConnectTimeout, not even an explicit nil -func (o *AnsibleGitRemoteResponse) UnsetConnectTimeout() { - o.ConnectTimeout.Unset() -} - -// GetPulpHref returns the PulpHref field value if set, zero value otherwise. -func (o *AnsibleGitRemoteResponse) GetPulpHref() string { - if o == nil || IsNil(o.PulpHref) { - var ret string - return ret - } - return *o.PulpHref -} - -// GetPulpHrefOk returns a tuple with the PulpHref field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnsibleGitRemoteResponse) GetPulpHrefOk() (*string, bool) { - if o == nil || IsNil(o.PulpHref) { - return nil, false - } - return o.PulpHref, true + return o.RateLimit.Get(), o.RateLimit.IsSet() } -// HasPulpHref returns a boolean if a field has been set. -func (o *AnsibleGitRemoteResponse) HasPulpHref() bool { - if o != nil && !IsNil(o.PulpHref) { +// HasRateLimit returns a boolean if a field has been set. +func (o *AnsibleGitRemoteResponse) HasRateLimit() bool { + if o != nil && o.RateLimit.IsSet() { return true } return false } -// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. -func (o *AnsibleGitRemoteResponse) SetPulpHref(v string) { - o.PulpHref = &v -} - -// GetHiddenFields returns the HiddenFields field value if set, zero value otherwise. -func (o *AnsibleGitRemoteResponse) GetHiddenFields() []RemoteResponseHiddenFieldsInner { - if o == nil || IsNil(o.HiddenFields) { - var ret []RemoteResponseHiddenFieldsInner - return ret - } - return o.HiddenFields -} - -// GetHiddenFieldsOk returns a tuple with the HiddenFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnsibleGitRemoteResponse) GetHiddenFieldsOk() ([]RemoteResponseHiddenFieldsInner, bool) { - if o == nil || IsNil(o.HiddenFields) { - return nil, false - } - return o.HiddenFields, true +// SetRateLimit gets a reference to the given NullableInt64 and assigns it to the RateLimit field. +func (o *AnsibleGitRemoteResponse) SetRateLimit(v int64) { + o.RateLimit.Set(&v) } - -// HasHiddenFields returns a boolean if a field has been set. -func (o *AnsibleGitRemoteResponse) HasHiddenFields() bool { - if o != nil && !IsNil(o.HiddenFields) { - return true - } - - return false +// SetRateLimitNil sets the value for RateLimit to be an explicit nil +func (o *AnsibleGitRemoteResponse) SetRateLimitNil() { + o.RateLimit.Set(nil) } -// SetHiddenFields gets a reference to the given []RemoteResponseHiddenFieldsInner and assigns it to the HiddenFields field. -func (o *AnsibleGitRemoteResponse) SetHiddenFields(v []RemoteResponseHiddenFieldsInner) { - o.HiddenFields = v +// UnsetRateLimit ensures that no value is present for RateLimit, not even an explicit nil +func (o *AnsibleGitRemoteResponse) UnsetRateLimit() { + o.RateLimit.Unset() } // GetName returns the Name field value @@ -370,88 +232,88 @@ func (o *AnsibleGitRemoteResponse) UnsetClientCert() { o.ClientCert.Unset() } -// GetProxyUrl returns the ProxyUrl field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemoteResponse) GetProxyUrl() string { - if o == nil || IsNil(o.ProxyUrl.Get()) { - var ret string +// GetMaxRetries returns the MaxRetries field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemoteResponse) GetMaxRetries() int64 { + if o == nil || IsNil(o.MaxRetries.Get()) { + var ret int64 return ret } - return *o.ProxyUrl.Get() + return *o.MaxRetries.Get() } -// GetProxyUrlOk returns a tuple with the ProxyUrl field value if set, nil otherwise +// GetMaxRetriesOk returns a tuple with the MaxRetries field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemoteResponse) GetProxyUrlOk() (*string, bool) { +func (o *AnsibleGitRemoteResponse) GetMaxRetriesOk() (*int64, bool) { if o == nil { return nil, false } - return o.ProxyUrl.Get(), o.ProxyUrl.IsSet() + return o.MaxRetries.Get(), o.MaxRetries.IsSet() } -// HasProxyUrl returns a boolean if a field has been set. -func (o *AnsibleGitRemoteResponse) HasProxyUrl() bool { - if o != nil && o.ProxyUrl.IsSet() { +// HasMaxRetries returns a boolean if a field has been set. +func (o *AnsibleGitRemoteResponse) HasMaxRetries() bool { + if o != nil && o.MaxRetries.IsSet() { return true } return false } -// SetProxyUrl gets a reference to the given NullableString and assigns it to the ProxyUrl field. -func (o *AnsibleGitRemoteResponse) SetProxyUrl(v string) { - o.ProxyUrl.Set(&v) +// SetMaxRetries gets a reference to the given NullableInt64 and assigns it to the MaxRetries field. +func (o *AnsibleGitRemoteResponse) SetMaxRetries(v int64) { + o.MaxRetries.Set(&v) } -// SetProxyUrlNil sets the value for ProxyUrl to be an explicit nil -func (o *AnsibleGitRemoteResponse) SetProxyUrlNil() { - o.ProxyUrl.Set(nil) +// SetMaxRetriesNil sets the value for MaxRetries to be an explicit nil +func (o *AnsibleGitRemoteResponse) SetMaxRetriesNil() { + o.MaxRetries.Set(nil) } -// UnsetProxyUrl ensures that no value is present for ProxyUrl, not even an explicit nil -func (o *AnsibleGitRemoteResponse) UnsetProxyUrl() { - o.ProxyUrl.Unset() +// UnsetMaxRetries ensures that no value is present for MaxRetries, not even an explicit nil +func (o *AnsibleGitRemoteResponse) UnsetMaxRetries() { + o.MaxRetries.Unset() } -// GetTotalTimeout returns the TotalTimeout field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemoteResponse) GetTotalTimeout() float64 { - if o == nil || IsNil(o.TotalTimeout.Get()) { +// GetSockReadTimeout returns the SockReadTimeout field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemoteResponse) GetSockReadTimeout() float64 { + if o == nil || IsNil(o.SockReadTimeout.Get()) { var ret float64 return ret } - return *o.TotalTimeout.Get() + return *o.SockReadTimeout.Get() } -// GetTotalTimeoutOk returns a tuple with the TotalTimeout field value if set, nil otherwise +// GetSockReadTimeoutOk returns a tuple with the SockReadTimeout field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemoteResponse) GetTotalTimeoutOk() (*float64, bool) { +func (o *AnsibleGitRemoteResponse) GetSockReadTimeoutOk() (*float64, bool) { if o == nil { return nil, false } - return o.TotalTimeout.Get(), o.TotalTimeout.IsSet() + return o.SockReadTimeout.Get(), o.SockReadTimeout.IsSet() } -// HasTotalTimeout returns a boolean if a field has been set. -func (o *AnsibleGitRemoteResponse) HasTotalTimeout() bool { - if o != nil && o.TotalTimeout.IsSet() { +// HasSockReadTimeout returns a boolean if a field has been set. +func (o *AnsibleGitRemoteResponse) HasSockReadTimeout() bool { + if o != nil && o.SockReadTimeout.IsSet() { return true } return false } -// SetTotalTimeout gets a reference to the given NullableFloat64 and assigns it to the TotalTimeout field. -func (o *AnsibleGitRemoteResponse) SetTotalTimeout(v float64) { - o.TotalTimeout.Set(&v) +// SetSockReadTimeout gets a reference to the given NullableFloat64 and assigns it to the SockReadTimeout field. +func (o *AnsibleGitRemoteResponse) SetSockReadTimeout(v float64) { + o.SockReadTimeout.Set(&v) } -// SetTotalTimeoutNil sets the value for TotalTimeout to be an explicit nil -func (o *AnsibleGitRemoteResponse) SetTotalTimeoutNil() { - o.TotalTimeout.Set(nil) +// SetSockReadTimeoutNil sets the value for SockReadTimeout to be an explicit nil +func (o *AnsibleGitRemoteResponse) SetSockReadTimeoutNil() { + o.SockReadTimeout.Set(nil) } -// UnsetTotalTimeout ensures that no value is present for TotalTimeout, not even an explicit nil -func (o *AnsibleGitRemoteResponse) UnsetTotalTimeout() { - o.TotalTimeout.Unset() +// UnsetSockReadTimeout ensures that no value is present for SockReadTimeout, not even an explicit nil +func (o *AnsibleGitRemoteResponse) UnsetSockReadTimeout() { + o.SockReadTimeout.Unset() } // GetPulpLastUpdated returns the PulpLastUpdated field value if set, zero value otherwise. @@ -486,46 +348,78 @@ func (o *AnsibleGitRemoteResponse) SetPulpLastUpdated(v time.Time) { o.PulpLastUpdated = &v } -// GetMaxRetries returns the MaxRetries field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemoteResponse) GetMaxRetries() int64 { - if o == nil || IsNil(o.MaxRetries.Get()) { - var ret int64 +// GetTotalTimeout returns the TotalTimeout field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemoteResponse) GetTotalTimeout() float64 { + if o == nil || IsNil(o.TotalTimeout.Get()) { + var ret float64 return ret } - return *o.MaxRetries.Get() + return *o.TotalTimeout.Get() } -// GetMaxRetriesOk returns a tuple with the MaxRetries field value if set, nil otherwise +// GetTotalTimeoutOk returns a tuple with the TotalTimeout field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemoteResponse) GetMaxRetriesOk() (*int64, bool) { +func (o *AnsibleGitRemoteResponse) GetTotalTimeoutOk() (*float64, bool) { if o == nil { return nil, false } - return o.MaxRetries.Get(), o.MaxRetries.IsSet() + return o.TotalTimeout.Get(), o.TotalTimeout.IsSet() } -// HasMaxRetries returns a boolean if a field has been set. -func (o *AnsibleGitRemoteResponse) HasMaxRetries() bool { - if o != nil && o.MaxRetries.IsSet() { +// HasTotalTimeout returns a boolean if a field has been set. +func (o *AnsibleGitRemoteResponse) HasTotalTimeout() bool { + if o != nil && o.TotalTimeout.IsSet() { return true } return false } -// SetMaxRetries gets a reference to the given NullableInt64 and assigns it to the MaxRetries field. -func (o *AnsibleGitRemoteResponse) SetMaxRetries(v int64) { - o.MaxRetries.Set(&v) +// SetTotalTimeout gets a reference to the given NullableFloat64 and assigns it to the TotalTimeout field. +func (o *AnsibleGitRemoteResponse) SetTotalTimeout(v float64) { + o.TotalTimeout.Set(&v) } -// SetMaxRetriesNil sets the value for MaxRetries to be an explicit nil -func (o *AnsibleGitRemoteResponse) SetMaxRetriesNil() { - o.MaxRetries.Set(nil) +// SetTotalTimeoutNil sets the value for TotalTimeout to be an explicit nil +func (o *AnsibleGitRemoteResponse) SetTotalTimeoutNil() { + o.TotalTimeout.Set(nil) } -// UnsetMaxRetries ensures that no value is present for MaxRetries, not even an explicit nil -func (o *AnsibleGitRemoteResponse) UnsetMaxRetries() { - o.MaxRetries.Unset() +// UnsetTotalTimeout ensures that no value is present for TotalTimeout, not even an explicit nil +func (o *AnsibleGitRemoteResponse) UnsetTotalTimeout() { + o.TotalTimeout.Unset() +} + +// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. +func (o *AnsibleGitRemoteResponse) GetPulpLabels() map[string]string { + if o == nil || IsNil(o.PulpLabels) { + var ret map[string]string + return ret + } + return *o.PulpLabels +} + +// GetPulpLabelsOk returns a tuple with the PulpLabels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleGitRemoteResponse) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { + return nil, false + } + return o.PulpLabels, true +} + +// HasPulpLabels returns a boolean if a field has been set. +func (o *AnsibleGitRemoteResponse) HasPulpLabels() bool { + if o != nil && !IsNil(o.PulpLabels) { + return true + } + + return false +} + +// SetPulpLabels gets a reference to the given map[string]string and assigns it to the PulpLabels field. +func (o *AnsibleGitRemoteResponse) SetPulpLabels(v map[string]string) { + o.PulpLabels = &v } // GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. @@ -560,120 +454,130 @@ func (o *AnsibleGitRemoteResponse) SetPulpCreated(v time.Time) { o.PulpCreated = &v } -// GetDownloadConcurrency returns the DownloadConcurrency field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemoteResponse) GetDownloadConcurrency() int64 { - if o == nil || IsNil(o.DownloadConcurrency.Get()) { - var ret int64 +// GetProxyUrl returns the ProxyUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemoteResponse) GetProxyUrl() string { + if o == nil || IsNil(o.ProxyUrl.Get()) { + var ret string return ret } - return *o.DownloadConcurrency.Get() + return *o.ProxyUrl.Get() } -// GetDownloadConcurrencyOk returns a tuple with the DownloadConcurrency field value if set, nil otherwise +// GetProxyUrlOk returns a tuple with the ProxyUrl field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemoteResponse) GetDownloadConcurrencyOk() (*int64, bool) { +func (o *AnsibleGitRemoteResponse) GetProxyUrlOk() (*string, bool) { if o == nil { return nil, false } - return o.DownloadConcurrency.Get(), o.DownloadConcurrency.IsSet() + return o.ProxyUrl.Get(), o.ProxyUrl.IsSet() } -// HasDownloadConcurrency returns a boolean if a field has been set. -func (o *AnsibleGitRemoteResponse) HasDownloadConcurrency() bool { - if o != nil && o.DownloadConcurrency.IsSet() { +// HasProxyUrl returns a boolean if a field has been set. +func (o *AnsibleGitRemoteResponse) HasProxyUrl() bool { + if o != nil && o.ProxyUrl.IsSet() { return true } return false } -// SetDownloadConcurrency gets a reference to the given NullableInt64 and assigns it to the DownloadConcurrency field. -func (o *AnsibleGitRemoteResponse) SetDownloadConcurrency(v int64) { - o.DownloadConcurrency.Set(&v) +// SetProxyUrl gets a reference to the given NullableString and assigns it to the ProxyUrl field. +func (o *AnsibleGitRemoteResponse) SetProxyUrl(v string) { + o.ProxyUrl.Set(&v) } -// SetDownloadConcurrencyNil sets the value for DownloadConcurrency to be an explicit nil -func (o *AnsibleGitRemoteResponse) SetDownloadConcurrencyNil() { - o.DownloadConcurrency.Set(nil) +// SetProxyUrlNil sets the value for ProxyUrl to be an explicit nil +func (o *AnsibleGitRemoteResponse) SetProxyUrlNil() { + o.ProxyUrl.Set(nil) } -// UnsetDownloadConcurrency ensures that no value is present for DownloadConcurrency, not even an explicit nil -func (o *AnsibleGitRemoteResponse) UnsetDownloadConcurrency() { - o.DownloadConcurrency.Unset() +// UnsetProxyUrl ensures that no value is present for ProxyUrl, not even an explicit nil +func (o *AnsibleGitRemoteResponse) UnsetProxyUrl() { + o.ProxyUrl.Unset() } -// GetRateLimit returns the RateLimit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemoteResponse) GetRateLimit() int64 { - if o == nil || IsNil(o.RateLimit.Get()) { - var ret int64 +// GetConnectTimeout returns the ConnectTimeout field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemoteResponse) GetConnectTimeout() float64 { + if o == nil || IsNil(o.ConnectTimeout.Get()) { + var ret float64 return ret } - return *o.RateLimit.Get() + return *o.ConnectTimeout.Get() } -// GetRateLimitOk returns a tuple with the RateLimit field value if set, nil otherwise +// GetConnectTimeoutOk returns a tuple with the ConnectTimeout field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemoteResponse) GetRateLimitOk() (*int64, bool) { +func (o *AnsibleGitRemoteResponse) GetConnectTimeoutOk() (*float64, bool) { if o == nil { return nil, false } - return o.RateLimit.Get(), o.RateLimit.IsSet() + return o.ConnectTimeout.Get(), o.ConnectTimeout.IsSet() } -// HasRateLimit returns a boolean if a field has been set. -func (o *AnsibleGitRemoteResponse) HasRateLimit() bool { - if o != nil && o.RateLimit.IsSet() { +// HasConnectTimeout returns a boolean if a field has been set. +func (o *AnsibleGitRemoteResponse) HasConnectTimeout() bool { + if o != nil && o.ConnectTimeout.IsSet() { return true } return false } -// SetRateLimit gets a reference to the given NullableInt64 and assigns it to the RateLimit field. -func (o *AnsibleGitRemoteResponse) SetRateLimit(v int64) { - o.RateLimit.Set(&v) +// SetConnectTimeout gets a reference to the given NullableFloat64 and assigns it to the ConnectTimeout field. +func (o *AnsibleGitRemoteResponse) SetConnectTimeout(v float64) { + o.ConnectTimeout.Set(&v) } -// SetRateLimitNil sets the value for RateLimit to be an explicit nil -func (o *AnsibleGitRemoteResponse) SetRateLimitNil() { - o.RateLimit.Set(nil) +// SetConnectTimeoutNil sets the value for ConnectTimeout to be an explicit nil +func (o *AnsibleGitRemoteResponse) SetConnectTimeoutNil() { + o.ConnectTimeout.Set(nil) } -// UnsetRateLimit ensures that no value is present for RateLimit, not even an explicit nil -func (o *AnsibleGitRemoteResponse) UnsetRateLimit() { - o.RateLimit.Unset() +// UnsetConnectTimeout ensures that no value is present for ConnectTimeout, not even an explicit nil +func (o *AnsibleGitRemoteResponse) UnsetConnectTimeout() { + o.ConnectTimeout.Unset() } -// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. -func (o *AnsibleGitRemoteResponse) GetPulpLabels() map[string]string { - if o == nil || IsNil(o.PulpLabels) { - var ret map[string]string +// GetCaCert returns the CaCert field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemoteResponse) GetCaCert() string { + if o == nil || IsNil(o.CaCert.Get()) { + var ret string return ret } - return *o.PulpLabels + return *o.CaCert.Get() } -// GetPulpLabelsOk returns a tuple with the PulpLabels field value if set, nil otherwise +// GetCaCertOk returns a tuple with the CaCert field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnsibleGitRemoteResponse) GetPulpLabelsOk() (*map[string]string, bool) { - if o == nil || IsNil(o.PulpLabels) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AnsibleGitRemoteResponse) GetCaCertOk() (*string, bool) { + if o == nil { return nil, false } - return o.PulpLabels, true + return o.CaCert.Get(), o.CaCert.IsSet() } -// HasPulpLabels returns a boolean if a field has been set. -func (o *AnsibleGitRemoteResponse) HasPulpLabels() bool { - if o != nil && !IsNil(o.PulpLabels) { +// HasCaCert returns a boolean if a field has been set. +func (o *AnsibleGitRemoteResponse) HasCaCert() bool { + if o != nil && o.CaCert.IsSet() { return true } return false } -// SetPulpLabels gets a reference to the given map[string]string and assigns it to the PulpLabels field. -func (o *AnsibleGitRemoteResponse) SetPulpLabels(v map[string]string) { - o.PulpLabels = &v +// SetCaCert gets a reference to the given NullableString and assigns it to the CaCert field. +func (o *AnsibleGitRemoteResponse) SetCaCert(v string) { + o.CaCert.Set(&v) +} +// SetCaCertNil sets the value for CaCert to be an explicit nil +func (o *AnsibleGitRemoteResponse) SetCaCertNil() { + o.CaCert.Set(nil) +} + +// UnsetCaCert ensures that no value is present for CaCert, not even an explicit nil +func (o *AnsibleGitRemoteResponse) UnsetCaCert() { + o.CaCert.Unset() } // GetTlsValidation returns the TlsValidation field value if set, zero value otherwise. @@ -708,6 +612,48 @@ func (o *AnsibleGitRemoteResponse) SetTlsValidation(v bool) { o.TlsValidation = &v } +// GetSockConnectTimeout returns the SockConnectTimeout field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AnsibleGitRemoteResponse) GetSockConnectTimeout() float64 { + if o == nil || IsNil(o.SockConnectTimeout.Get()) { + var ret float64 + return ret + } + return *o.SockConnectTimeout.Get() +} + +// GetSockConnectTimeoutOk returns a tuple with the SockConnectTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AnsibleGitRemoteResponse) GetSockConnectTimeoutOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.SockConnectTimeout.Get(), o.SockConnectTimeout.IsSet() +} + +// HasSockConnectTimeout returns a boolean if a field has been set. +func (o *AnsibleGitRemoteResponse) HasSockConnectTimeout() bool { + if o != nil && o.SockConnectTimeout.IsSet() { + return true + } + + return false +} + +// SetSockConnectTimeout gets a reference to the given NullableFloat64 and assigns it to the SockConnectTimeout field. +func (o *AnsibleGitRemoteResponse) SetSockConnectTimeout(v float64) { + o.SockConnectTimeout.Set(&v) +} +// SetSockConnectTimeoutNil sets the value for SockConnectTimeout to be an explicit nil +func (o *AnsibleGitRemoteResponse) SetSockConnectTimeoutNil() { + o.SockConnectTimeout.Set(nil) +} + +// UnsetSockConnectTimeout ensures that no value is present for SockConnectTimeout, not even an explicit nil +func (o *AnsibleGitRemoteResponse) UnsetSockConnectTimeout() { + o.SockConnectTimeout.Unset() +} + // GetUrl returns the Url field value func (o *AnsibleGitRemoteResponse) GetUrl() string { if o == nil { @@ -732,46 +678,100 @@ func (o *AnsibleGitRemoteResponse) SetUrl(v string) { o.Url = v } -// GetCaCert returns the CaCert field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AnsibleGitRemoteResponse) GetCaCert() string { - if o == nil || IsNil(o.CaCert.Get()) { +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *AnsibleGitRemoteResponse) GetHeaders() []map[string]interface{} { + if o == nil || IsNil(o.Headers) { + var ret []map[string]interface{} + return ret + } + return o.Headers +} + +// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleGitRemoteResponse) GetHeadersOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Headers) { + return nil, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *AnsibleGitRemoteResponse) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given []map[string]interface{} and assigns it to the Headers field. +func (o *AnsibleGitRemoteResponse) SetHeaders(v []map[string]interface{}) { + o.Headers = v +} + +// GetPulpHref returns the PulpHref field value if set, zero value otherwise. +func (o *AnsibleGitRemoteResponse) GetPulpHref() string { + if o == nil || IsNil(o.PulpHref) { var ret string return ret } - return *o.CaCert.Get() + return *o.PulpHref } -// GetCaCertOk returns a tuple with the CaCert field value if set, nil otherwise +// GetPulpHrefOk returns a tuple with the PulpHref field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AnsibleGitRemoteResponse) GetCaCertOk() (*string, bool) { - if o == nil { +func (o *AnsibleGitRemoteResponse) GetPulpHrefOk() (*string, bool) { + if o == nil || IsNil(o.PulpHref) { return nil, false } - return o.CaCert.Get(), o.CaCert.IsSet() + return o.PulpHref, true } -// HasCaCert returns a boolean if a field has been set. -func (o *AnsibleGitRemoteResponse) HasCaCert() bool { - if o != nil && o.CaCert.IsSet() { +// HasPulpHref returns a boolean if a field has been set. +func (o *AnsibleGitRemoteResponse) HasPulpHref() bool { + if o != nil && !IsNil(o.PulpHref) { return true } return false } -// SetCaCert gets a reference to the given NullableString and assigns it to the CaCert field. -func (o *AnsibleGitRemoteResponse) SetCaCert(v string) { - o.CaCert.Set(&v) +// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. +func (o *AnsibleGitRemoteResponse) SetPulpHref(v string) { + o.PulpHref = &v } -// SetCaCertNil sets the value for CaCert to be an explicit nil -func (o *AnsibleGitRemoteResponse) SetCaCertNil() { - o.CaCert.Set(nil) + +// GetHiddenFields returns the HiddenFields field value if set, zero value otherwise. +func (o *AnsibleGitRemoteResponse) GetHiddenFields() []RemoteResponseHiddenFieldsInner { + if o == nil || IsNil(o.HiddenFields) { + var ret []RemoteResponseHiddenFieldsInner + return ret + } + return o.HiddenFields } -// UnsetCaCert ensures that no value is present for CaCert, not even an explicit nil -func (o *AnsibleGitRemoteResponse) UnsetCaCert() { - o.CaCert.Unset() +// GetHiddenFieldsOk returns a tuple with the HiddenFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnsibleGitRemoteResponse) GetHiddenFieldsOk() ([]RemoteResponseHiddenFieldsInner, bool) { + if o == nil || IsNil(o.HiddenFields) { + return nil, false + } + return o.HiddenFields, true +} + +// HasHiddenFields returns a boolean if a field has been set. +func (o *AnsibleGitRemoteResponse) HasHiddenFields() bool { + if o != nil && !IsNil(o.HiddenFields) { + return true + } + + return false +} + +// SetHiddenFields gets a reference to the given []RemoteResponseHiddenFieldsInner and assigns it to the HiddenFields field. +func (o *AnsibleGitRemoteResponse) SetHiddenFields(v []RemoteResponseHiddenFieldsInner) { + o.HiddenFields = v } // GetMetadataOnly returns the MetadataOnly field value if set, zero value otherwise. @@ -848,51 +848,51 @@ func (o AnsibleGitRemoteResponse) MarshalJSON() ([]byte, error) { func (o AnsibleGitRemoteResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if o.SockReadTimeout.IsSet() { - toSerialize["sock_read_timeout"] = o.SockReadTimeout.Get() - } - if o.SockConnectTimeout.IsSet() { - toSerialize["sock_connect_timeout"] = o.SockConnectTimeout.Get() + if o.DownloadConcurrency.IsSet() { + toSerialize["download_concurrency"] = o.DownloadConcurrency.Get() } - if o.ConnectTimeout.IsSet() { - toSerialize["connect_timeout"] = o.ConnectTimeout.Get() + if o.RateLimit.IsSet() { + toSerialize["rate_limit"] = o.RateLimit.Get() } - // skip: pulp_href is readOnly - // skip: hidden_fields is readOnly toSerialize["name"] = o.Name if o.ClientCert.IsSet() { toSerialize["client_cert"] = o.ClientCert.Get() } - if o.ProxyUrl.IsSet() { - toSerialize["proxy_url"] = o.ProxyUrl.Get() + if o.MaxRetries.IsSet() { + toSerialize["max_retries"] = o.MaxRetries.Get() + } + if o.SockReadTimeout.IsSet() { + toSerialize["sock_read_timeout"] = o.SockReadTimeout.Get() } + // skip: pulp_last_updated is readOnly if o.TotalTimeout.IsSet() { toSerialize["total_timeout"] = o.TotalTimeout.Get() } - // skip: pulp_last_updated is readOnly - if o.MaxRetries.IsSet() { - toSerialize["max_retries"] = o.MaxRetries.Get() + if !IsNil(o.PulpLabels) { + toSerialize["pulp_labels"] = o.PulpLabels } // skip: pulp_created is readOnly - if o.DownloadConcurrency.IsSet() { - toSerialize["download_concurrency"] = o.DownloadConcurrency.Get() + if o.ProxyUrl.IsSet() { + toSerialize["proxy_url"] = o.ProxyUrl.Get() } - if o.RateLimit.IsSet() { - toSerialize["rate_limit"] = o.RateLimit.Get() + if o.ConnectTimeout.IsSet() { + toSerialize["connect_timeout"] = o.ConnectTimeout.Get() } - if !IsNil(o.PulpLabels) { - toSerialize["pulp_labels"] = o.PulpLabels + if o.CaCert.IsSet() { + toSerialize["ca_cert"] = o.CaCert.Get() } if !IsNil(o.TlsValidation) { toSerialize["tls_validation"] = o.TlsValidation } + if o.SockConnectTimeout.IsSet() { + toSerialize["sock_connect_timeout"] = o.SockConnectTimeout.Get() + } toSerialize["url"] = o.Url - if o.CaCert.IsSet() { - toSerialize["ca_cert"] = o.CaCert.Get() + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers } + // skip: pulp_href is readOnly + // skip: hidden_fields is readOnly if !IsNil(o.MetadataOnly) { toSerialize["metadata_only"] = o.MetadataOnly } diff --git a/release/model_ansible_repository_mark.go b/release/model_ansible_repository_mark.go new file mode 100644 index 00000000..bfa7f5d8 --- /dev/null +++ b/release/model_ansible_repository_mark.go @@ -0,0 +1,147 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" +) + +// checks if the AnsibleRepositoryMark type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnsibleRepositoryMark{} + +// AnsibleRepositoryMark A serializer for the mark action. +type AnsibleRepositoryMark struct { + // List of collection version hrefs to mark, use * to mark all content in repository + ContentUnits []interface{} `json:"content_units"` + // The string value of this mark. + Value string `json:"value"` +} + +// NewAnsibleRepositoryMark instantiates a new AnsibleRepositoryMark object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnsibleRepositoryMark(contentUnits []interface{}, value string) *AnsibleRepositoryMark { + this := AnsibleRepositoryMark{} + this.ContentUnits = contentUnits + this.Value = value + return &this +} + +// NewAnsibleRepositoryMarkWithDefaults instantiates a new AnsibleRepositoryMark object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnsibleRepositoryMarkWithDefaults() *AnsibleRepositoryMark { + this := AnsibleRepositoryMark{} + return &this +} + +// GetContentUnits returns the ContentUnits field value +func (o *AnsibleRepositoryMark) GetContentUnits() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.ContentUnits +} + +// GetContentUnitsOk returns a tuple with the ContentUnits field value +// and a boolean to check if the value has been set. +func (o *AnsibleRepositoryMark) GetContentUnitsOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.ContentUnits, true +} + +// SetContentUnits sets field value +func (o *AnsibleRepositoryMark) SetContentUnits(v []interface{}) { + o.ContentUnits = v +} + +// GetValue returns the Value field value +func (o *AnsibleRepositoryMark) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *AnsibleRepositoryMark) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *AnsibleRepositoryMark) SetValue(v string) { + o.Value = v +} + +func (o AnsibleRepositoryMark) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnsibleRepositoryMark) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["content_units"] = o.ContentUnits + toSerialize["value"] = o.Value + return toSerialize, nil +} + +type NullableAnsibleRepositoryMark struct { + value *AnsibleRepositoryMark + isSet bool +} + +func (v NullableAnsibleRepositoryMark) Get() *AnsibleRepositoryMark { + return v.value +} + +func (v *NullableAnsibleRepositoryMark) Set(val *AnsibleRepositoryMark) { + v.value = val + v.isSet = true +} + +func (v NullableAnsibleRepositoryMark) IsSet() bool { + return v.isSet +} + +func (v *NullableAnsibleRepositoryMark) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnsibleRepositoryMark(val *AnsibleRepositoryMark) *NullableAnsibleRepositoryMark { + return &NullableAnsibleRepositoryMark{value: val, isSet: true} +} + +func (v NullableAnsibleRepositoryMark) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnsibleRepositoryMark) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_ansible_repository_rebuild.go b/release/model_ansible_repository_rebuild.go index 6cb7384c..e0d93732 100644 --- a/release/model_ansible_repository_rebuild.go +++ b/release/model_ansible_repository_rebuild.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ansible_repository_signature.go b/release/model_ansible_repository_signature.go index 42fdc184..ff151e02 100644 --- a/release/model_ansible_repository_signature.go +++ b/release/model_ansible_repository_signature.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ansible_repository_sync_url.go b/release/model_ansible_repository_sync_url.go index 29f2e51c..832adaa0 100644 --- a/release/model_ansible_repository_sync_url.go +++ b/release/model_ansible_repository_sync_url.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ansible_role.go b/release/model_ansible_role.go index fa6cd140..b037f415 100644 --- a/release/model_ansible_role.go +++ b/release/model_ansible_role.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ansible_role_remote.go b/release/model_ansible_role_remote.go index 379147dc..11d84c43 100644 --- a/release/model_ansible_role_remote.go +++ b/release/model_ansible_role_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ansible_role_remote_response.go b/release/model_ansible_role_remote_response.go index 455e425e..ccf3c964 100644 --- a/release/model_ansible_role_remote_response.go +++ b/release/model_ansible_role_remote_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ansible_role_response.go b/release/model_ansible_role_response.go index 0e7930b0..337be6ce 100644 --- a/release/model_ansible_role_response.go +++ b/release/model_ansible_role_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -21,11 +21,11 @@ var _ MappedNullable = &AnsibleRoleResponse{} // AnsibleRoleResponse A serializer for Role versions. type AnsibleRoleResponse struct { - // Artifact file representing the physical content - Artifact string `json:"artifact"` + PulpHref *string `json:"pulp_href,omitempty"` // Timestamp of creation. PulpCreated *time.Time `json:"pulp_created,omitempty"` - PulpHref *string `json:"pulp_href,omitempty"` + // Artifact file representing the physical content + Artifact string `json:"artifact"` Version string `json:"version"` Name string `json:"name"` Namespace string `json:"namespace"` @@ -52,28 +52,36 @@ func NewAnsibleRoleResponseWithDefaults() *AnsibleRoleResponse { return &this } -// GetArtifact returns the Artifact field value -func (o *AnsibleRoleResponse) GetArtifact() string { - if o == nil { +// GetPulpHref returns the PulpHref field value if set, zero value otherwise. +func (o *AnsibleRoleResponse) GetPulpHref() string { + if o == nil || IsNil(o.PulpHref) { var ret string return ret } - - return o.Artifact + return *o.PulpHref } -// GetArtifactOk returns a tuple with the Artifact field value +// GetPulpHrefOk returns a tuple with the PulpHref field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnsibleRoleResponse) GetArtifactOk() (*string, bool) { - if o == nil { +func (o *AnsibleRoleResponse) GetPulpHrefOk() (*string, bool) { + if o == nil || IsNil(o.PulpHref) { return nil, false } - return &o.Artifact, true + return o.PulpHref, true } -// SetArtifact sets field value -func (o *AnsibleRoleResponse) SetArtifact(v string) { - o.Artifact = v +// HasPulpHref returns a boolean if a field has been set. +func (o *AnsibleRoleResponse) HasPulpHref() bool { + if o != nil && !IsNil(o.PulpHref) { + return true + } + + return false +} + +// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. +func (o *AnsibleRoleResponse) SetPulpHref(v string) { + o.PulpHref = &v } // GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. @@ -108,36 +116,28 @@ func (o *AnsibleRoleResponse) SetPulpCreated(v time.Time) { o.PulpCreated = &v } -// GetPulpHref returns the PulpHref field value if set, zero value otherwise. -func (o *AnsibleRoleResponse) GetPulpHref() string { - if o == nil || IsNil(o.PulpHref) { +// GetArtifact returns the Artifact field value +func (o *AnsibleRoleResponse) GetArtifact() string { + if o == nil { var ret string return ret } - return *o.PulpHref + + return o.Artifact } -// GetPulpHrefOk returns a tuple with the PulpHref field value if set, nil otherwise +// GetArtifactOk returns a tuple with the Artifact field value // and a boolean to check if the value has been set. -func (o *AnsibleRoleResponse) GetPulpHrefOk() (*string, bool) { - if o == nil || IsNil(o.PulpHref) { +func (o *AnsibleRoleResponse) GetArtifactOk() (*string, bool) { + if o == nil { return nil, false } - return o.PulpHref, true -} - -// HasPulpHref returns a boolean if a field has been set. -func (o *AnsibleRoleResponse) HasPulpHref() bool { - if o != nil && !IsNil(o.PulpHref) { - return true - } - - return false + return &o.Artifact, true } -// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. -func (o *AnsibleRoleResponse) SetPulpHref(v string) { - o.PulpHref = &v +// SetArtifact sets field value +func (o *AnsibleRoleResponse) SetArtifact(v string) { + o.Artifact = v } // GetVersion returns the Version field value @@ -222,9 +222,9 @@ func (o AnsibleRoleResponse) MarshalJSON() ([]byte, error) { func (o AnsibleRoleResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["artifact"] = o.Artifact - // skip: pulp_created is readOnly // skip: pulp_href is readOnly + // skip: pulp_created is readOnly + toSerialize["artifact"] = o.Artifact toSerialize["version"] = o.Version toSerialize["name"] = o.Name toSerialize["namespace"] = o.Namespace diff --git a/release/model_ansible_tag_response.go b/release/model_ansible_tag_response.go index 9259b69a..89a72ddd 100644 --- a/release/model_ansible_tag_response.go +++ b/release/model_ansible_tag_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_apt_repository_sync_url.go b/release/model_apt_repository_sync_url.go index f8392266..5ebc92f3 100644 --- a/release/model_apt_repository_sync_url.go +++ b/release/model_apt_repository_sync_url.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_artifact.go b/release/model_artifact.go new file mode 100644 index 00000000..b2bddb59 --- /dev/null +++ b/release/model_artifact.go @@ -0,0 +1,439 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the Artifact type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Artifact{} + +// Artifact Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly. +type Artifact struct { + // The stored file. + File *os.File `json:"file"` + // The size of the file in bytes. + Size *int64 `json:"size,omitempty"` + // The MD5 checksum of the file if available. + Md5 NullableString `json:"md5,omitempty"` + // The SHA-1 checksum of the file if available. + Sha1 NullableString `json:"sha1,omitempty"` + // The SHA-224 checksum of the file if available. + Sha224 NullableString `json:"sha224,omitempty"` + // The SHA-256 checksum of the file if available. + Sha256 NullableString `json:"sha256,omitempty"` + // The SHA-384 checksum of the file if available. + Sha384 NullableString `json:"sha384,omitempty"` + // The SHA-512 checksum of the file if available. + Sha512 NullableString `json:"sha512,omitempty"` +} + +// NewArtifact instantiates a new Artifact object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewArtifact(file *os.File) *Artifact { + this := Artifact{} + this.File = file + return &this +} + +// NewArtifactWithDefaults instantiates a new Artifact object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewArtifactWithDefaults() *Artifact { + this := Artifact{} + return &this +} + +// GetFile returns the File field value +func (o *Artifact) GetFile() *os.File { + if o == nil { + var ret *os.File + return ret + } + + return o.File +} + +// GetFileOk returns a tuple with the File field value +// and a boolean to check if the value has been set. +func (o *Artifact) GetFileOk() (**os.File, bool) { + if o == nil { + return nil, false + } + return &o.File, true +} + +// SetFile sets field value +func (o *Artifact) SetFile(v *os.File) { + o.File = v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *Artifact) GetSize() int64 { + if o == nil || IsNil(o.Size) { + var ret int64 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Artifact) GetSizeOk() (*int64, bool) { + if o == nil || IsNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *Artifact) HasSize() bool { + if o != nil && !IsNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given int64 and assigns it to the Size field. +func (o *Artifact) SetSize(v int64) { + o.Size = &v +} + +// GetMd5 returns the Md5 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Artifact) GetMd5() string { + if o == nil || IsNil(o.Md5.Get()) { + var ret string + return ret + } + return *o.Md5.Get() +} + +// GetMd5Ok returns a tuple with the Md5 field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Artifact) GetMd5Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.Md5.Get(), o.Md5.IsSet() +} + +// HasMd5 returns a boolean if a field has been set. +func (o *Artifact) HasMd5() bool { + if o != nil && o.Md5.IsSet() { + return true + } + + return false +} + +// SetMd5 gets a reference to the given NullableString and assigns it to the Md5 field. +func (o *Artifact) SetMd5(v string) { + o.Md5.Set(&v) +} +// SetMd5Nil sets the value for Md5 to be an explicit nil +func (o *Artifact) SetMd5Nil() { + o.Md5.Set(nil) +} + +// UnsetMd5 ensures that no value is present for Md5, not even an explicit nil +func (o *Artifact) UnsetMd5() { + o.Md5.Unset() +} + +// GetSha1 returns the Sha1 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Artifact) GetSha1() string { + if o == nil || IsNil(o.Sha1.Get()) { + var ret string + return ret + } + return *o.Sha1.Get() +} + +// GetSha1Ok returns a tuple with the Sha1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Artifact) GetSha1Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.Sha1.Get(), o.Sha1.IsSet() +} + +// HasSha1 returns a boolean if a field has been set. +func (o *Artifact) HasSha1() bool { + if o != nil && o.Sha1.IsSet() { + return true + } + + return false +} + +// SetSha1 gets a reference to the given NullableString and assigns it to the Sha1 field. +func (o *Artifact) SetSha1(v string) { + o.Sha1.Set(&v) +} +// SetSha1Nil sets the value for Sha1 to be an explicit nil +func (o *Artifact) SetSha1Nil() { + o.Sha1.Set(nil) +} + +// UnsetSha1 ensures that no value is present for Sha1, not even an explicit nil +func (o *Artifact) UnsetSha1() { + o.Sha1.Unset() +} + +// GetSha224 returns the Sha224 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Artifact) GetSha224() string { + if o == nil || IsNil(o.Sha224.Get()) { + var ret string + return ret + } + return *o.Sha224.Get() +} + +// GetSha224Ok returns a tuple with the Sha224 field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Artifact) GetSha224Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.Sha224.Get(), o.Sha224.IsSet() +} + +// HasSha224 returns a boolean if a field has been set. +func (o *Artifact) HasSha224() bool { + if o != nil && o.Sha224.IsSet() { + return true + } + + return false +} + +// SetSha224 gets a reference to the given NullableString and assigns it to the Sha224 field. +func (o *Artifact) SetSha224(v string) { + o.Sha224.Set(&v) +} +// SetSha224Nil sets the value for Sha224 to be an explicit nil +func (o *Artifact) SetSha224Nil() { + o.Sha224.Set(nil) +} + +// UnsetSha224 ensures that no value is present for Sha224, not even an explicit nil +func (o *Artifact) UnsetSha224() { + o.Sha224.Unset() +} + +// GetSha256 returns the Sha256 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Artifact) GetSha256() string { + if o == nil || IsNil(o.Sha256.Get()) { + var ret string + return ret + } + return *o.Sha256.Get() +} + +// GetSha256Ok returns a tuple with the Sha256 field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Artifact) GetSha256Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.Sha256.Get(), o.Sha256.IsSet() +} + +// HasSha256 returns a boolean if a field has been set. +func (o *Artifact) HasSha256() bool { + if o != nil && o.Sha256.IsSet() { + return true + } + + return false +} + +// SetSha256 gets a reference to the given NullableString and assigns it to the Sha256 field. +func (o *Artifact) SetSha256(v string) { + o.Sha256.Set(&v) +} +// SetSha256Nil sets the value for Sha256 to be an explicit nil +func (o *Artifact) SetSha256Nil() { + o.Sha256.Set(nil) +} + +// UnsetSha256 ensures that no value is present for Sha256, not even an explicit nil +func (o *Artifact) UnsetSha256() { + o.Sha256.Unset() +} + +// GetSha384 returns the Sha384 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Artifact) GetSha384() string { + if o == nil || IsNil(o.Sha384.Get()) { + var ret string + return ret + } + return *o.Sha384.Get() +} + +// GetSha384Ok returns a tuple with the Sha384 field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Artifact) GetSha384Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.Sha384.Get(), o.Sha384.IsSet() +} + +// HasSha384 returns a boolean if a field has been set. +func (o *Artifact) HasSha384() bool { + if o != nil && o.Sha384.IsSet() { + return true + } + + return false +} + +// SetSha384 gets a reference to the given NullableString and assigns it to the Sha384 field. +func (o *Artifact) SetSha384(v string) { + o.Sha384.Set(&v) +} +// SetSha384Nil sets the value for Sha384 to be an explicit nil +func (o *Artifact) SetSha384Nil() { + o.Sha384.Set(nil) +} + +// UnsetSha384 ensures that no value is present for Sha384, not even an explicit nil +func (o *Artifact) UnsetSha384() { + o.Sha384.Unset() +} + +// GetSha512 returns the Sha512 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Artifact) GetSha512() string { + if o == nil || IsNil(o.Sha512.Get()) { + var ret string + return ret + } + return *o.Sha512.Get() +} + +// GetSha512Ok returns a tuple with the Sha512 field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Artifact) GetSha512Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.Sha512.Get(), o.Sha512.IsSet() +} + +// HasSha512 returns a boolean if a field has been set. +func (o *Artifact) HasSha512() bool { + if o != nil && o.Sha512.IsSet() { + return true + } + + return false +} + +// SetSha512 gets a reference to the given NullableString and assigns it to the Sha512 field. +func (o *Artifact) SetSha512(v string) { + o.Sha512.Set(&v) +} +// SetSha512Nil sets the value for Sha512 to be an explicit nil +func (o *Artifact) SetSha512Nil() { + o.Sha512.Set(nil) +} + +// UnsetSha512 ensures that no value is present for Sha512, not even an explicit nil +func (o *Artifact) UnsetSha512() { + o.Sha512.Unset() +} + +func (o Artifact) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Artifact) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["file"] = o.File + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + if o.Md5.IsSet() { + toSerialize["md5"] = o.Md5.Get() + } + if o.Sha1.IsSet() { + toSerialize["sha1"] = o.Sha1.Get() + } + if o.Sha224.IsSet() { + toSerialize["sha224"] = o.Sha224.Get() + } + if o.Sha256.IsSet() { + toSerialize["sha256"] = o.Sha256.Get() + } + if o.Sha384.IsSet() { + toSerialize["sha384"] = o.Sha384.Get() + } + if o.Sha512.IsSet() { + toSerialize["sha512"] = o.Sha512.Get() + } + return toSerialize, nil +} + +type NullableArtifact struct { + value *Artifact + isSet bool +} + +func (v NullableArtifact) Get() *Artifact { + return v.value +} + +func (v *NullableArtifact) Set(val *Artifact) { + v.value = val + v.isSet = true +} + +func (v NullableArtifact) IsSet() bool { + return v.isSet +} + +func (v *NullableArtifact) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableArtifact(val *Artifact) *NullableArtifact { + return &NullableArtifact{value: val, isSet: true} +} + +func (v NullableArtifact) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableArtifact) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_artifact_distribution_response.go b/release/model_artifact_distribution_response.go index 190bb9b7..a29cd644 100644 --- a/release/model_artifact_distribution_response.go +++ b/release/model_artifact_distribution_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -21,18 +21,18 @@ var _ MappedNullable = &ArtifactDistributionResponse{} // ArtifactDistributionResponse A serializer for ArtifactDistribution. type ArtifactDistributionResponse struct { - // Timestamp of creation. - PulpCreated *time.Time `json:"pulp_created,omitempty"` PulpHref *string `json:"pulp_href,omitempty"` // A unique name. Ex, `rawhide` and `stable`. Name string `json:"name"` + PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // The URL for accessing the publication as defined by this distribution. BaseUrl *string `json:"base_url,omitempty"` - // The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") - BasePath string `json:"base_path"` - PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // An optional content-guard. ContentGuard NullableString `json:"content_guard,omitempty"` + // The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") + BasePath string `json:"base_path"` + // Timestamp of creation. + PulpCreated *time.Time `json:"pulp_created,omitempty"` } // NewArtifactDistributionResponse instantiates a new ArtifactDistributionResponse object @@ -54,38 +54,6 @@ func NewArtifactDistributionResponseWithDefaults() *ArtifactDistributionResponse return &this } -// GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time { - if o == nil || IsNil(o.PulpCreated) { - var ret time.Time - return ret - } - return *o.PulpCreated -} - -// GetPulpCreatedOk returns a tuple with the PulpCreated field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpCreated) { - return nil, false - } - return o.PulpCreated, true -} - -// HasPulpCreated returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpCreated() bool { - if o != nil && !IsNil(o.PulpCreated) { - return true - } - - return false -} - -// SetPulpCreated gets a reference to the given time.Time and assigns it to the PulpCreated field. -func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time) { - o.PulpCreated = &v -} - // GetPulpHref returns the PulpHref field value if set, zero value otherwise. func (o *ArtifactDistributionResponse) GetPulpHref() string { if o == nil || IsNil(o.PulpHref) { @@ -142,92 +110,68 @@ func (o *ArtifactDistributionResponse) SetName(v string) { o.Name = v } -// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetBaseUrl() string { - if o == nil || IsNil(o.BaseUrl) { - var ret string +// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string { + if o == nil || IsNil(o.PulpLabels) { + var ret map[string]string return ret } - return *o.BaseUrl + return *o.PulpLabels } -// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise +// GetPulpLabelsOk returns a tuple with the PulpLabels field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool) { - if o == nil || IsNil(o.BaseUrl) { +func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { return nil, false } - return o.BaseUrl, true + return o.PulpLabels, true } -// HasBaseUrl returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasBaseUrl() bool { - if o != nil && !IsNil(o.BaseUrl) { +// HasPulpLabels returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasPulpLabels() bool { + if o != nil && !IsNil(o.PulpLabels) { return true } return false } -// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. -func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { - o.BaseUrl = &v +// SetPulpLabels gets a reference to the given map[string]string and assigns it to the PulpLabels field. +func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string) { + o.PulpLabels = &v } -// GetBasePath returns the BasePath field value -func (o *ArtifactDistributionResponse) GetBasePath() string { - if o == nil { +// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetBaseUrl() string { + if o == nil || IsNil(o.BaseUrl) { var ret string return ret } - - return o.BasePath -} - -// GetBasePathOk returns a tuple with the BasePath field value -// and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.BasePath, true -} - -// SetBasePath sets field value -func (o *ArtifactDistributionResponse) SetBasePath(v string) { - o.BasePath = v -} - -// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. -func (o *ArtifactDistributionResponse) GetPulpLabels() map[string]string { - if o == nil || IsNil(o.PulpLabels) { - var ret map[string]string - return ret - } - return *o.PulpLabels + return *o.BaseUrl } -// GetPulpLabelsOk returns a tuple with the PulpLabels field value if set, nil otherwise +// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ArtifactDistributionResponse) GetPulpLabelsOk() (*map[string]string, bool) { - if o == nil || IsNil(o.PulpLabels) { +func (o *ArtifactDistributionResponse) GetBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseUrl) { return nil, false } - return o.PulpLabels, true + return o.BaseUrl, true } -// HasPulpLabels returns a boolean if a field has been set. -func (o *ArtifactDistributionResponse) HasPulpLabels() bool { - if o != nil && !IsNil(o.PulpLabels) { +// HasBaseUrl returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasBaseUrl() bool { + if o != nil && !IsNil(o.BaseUrl) { return true } return false } -// SetPulpLabels gets a reference to the given map[string]string and assigns it to the PulpLabels field. -func (o *ArtifactDistributionResponse) SetPulpLabels(v map[string]string) { - o.PulpLabels = &v +// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. +func (o *ArtifactDistributionResponse) SetBaseUrl(v string) { + o.BaseUrl = &v } // GetContentGuard returns the ContentGuard field value if set, zero value otherwise (both if not set or set to explicit null). @@ -272,6 +216,62 @@ func (o *ArtifactDistributionResponse) UnsetContentGuard() { o.ContentGuard.Unset() } +// GetBasePath returns the BasePath field value +func (o *ArtifactDistributionResponse) GetBasePath() string { + if o == nil { + var ret string + return ret + } + + return o.BasePath +} + +// GetBasePathOk returns a tuple with the BasePath field value +// and a boolean to check if the value has been set. +func (o *ArtifactDistributionResponse) GetBasePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BasePath, true +} + +// SetBasePath sets field value +func (o *ArtifactDistributionResponse) SetBasePath(v string) { + o.BasePath = v +} + +// GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. +func (o *ArtifactDistributionResponse) GetPulpCreated() time.Time { + if o == nil || IsNil(o.PulpCreated) { + var ret time.Time + return ret + } + return *o.PulpCreated +} + +// GetPulpCreatedOk returns a tuple with the PulpCreated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ArtifactDistributionResponse) GetPulpCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpCreated) { + return nil, false + } + return o.PulpCreated, true +} + +// HasPulpCreated returns a boolean if a field has been set. +func (o *ArtifactDistributionResponse) HasPulpCreated() bool { + if o != nil && !IsNil(o.PulpCreated) { + return true + } + + return false +} + +// SetPulpCreated gets a reference to the given time.Time and assigns it to the PulpCreated field. +func (o *ArtifactDistributionResponse) SetPulpCreated(v time.Time) { + o.PulpCreated = &v +} + func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -282,17 +282,17 @@ func (o ArtifactDistributionResponse) MarshalJSON() ([]byte, error) { func (o ArtifactDistributionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: pulp_created is readOnly // skip: pulp_href is readOnly toSerialize["name"] = o.Name - // skip: base_url is readOnly - toSerialize["base_path"] = o.BasePath if !IsNil(o.PulpLabels) { toSerialize["pulp_labels"] = o.PulpLabels } + // skip: base_url is readOnly if o.ContentGuard.IsSet() { toSerialize["content_guard"] = o.ContentGuard.Get() } + toSerialize["base_path"] = o.BasePath + // skip: pulp_created is readOnly return toSerialize, nil } diff --git a/release/model_artifact_ref_response.go b/release/model_artifact_ref_response.go index 181c70ba..49ef95e0 100644 --- a/release/model_artifact_ref_response.go +++ b/release/model_artifact_ref_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_artifact_response.go b/release/model_artifact_response.go index fc22cbed..2e249933 100644 --- a/release/model_artifact_response.go +++ b/release/model_artifact_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_async_operation_response.go b/release/model_async_operation_response.go index 024a9437..4b29ece5 100644 --- a/release/model_async_operation_response.go +++ b/release/model_async_operation_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_certguard_rhsm_cert_guard.go b/release/model_certguard_rhsm_cert_guard.go index 0af1b30b..462d164f 100644 --- a/release/model_certguard_rhsm_cert_guard.go +++ b/release/model_certguard_rhsm_cert_guard.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_certguard_rhsm_cert_guard_response.go b/release/model_certguard_rhsm_cert_guard_response.go index 3117fc3d..0de30e92 100644 --- a/release/model_certguard_rhsm_cert_guard_response.go +++ b/release/model_certguard_rhsm_cert_guard_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_certguard_x509_cert_guard.go b/release/model_certguard_x509_cert_guard.go index 67eec320..182fd9d8 100644 --- a/release/model_certguard_x509_cert_guard.go +++ b/release/model_certguard_x509_cert_guard.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_certguard_x509_cert_guard_response.go b/release/model_certguard_x509_cert_guard_response.go index 57266bdd..a55a46c4 100644 --- a/release/model_certguard_x509_cert_guard_response.go +++ b/release/model_certguard_x509_cert_guard_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_checksum_response.go b/release/model_checksum_response.go index dc0f6b5f..638e2ba2 100644 --- a/release/model_checksum_response.go +++ b/release/model_checksum_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_client_configuration_response.go b/release/model_client_configuration_response.go index 33197746..d50ad907 100644 --- a/release/model_client_configuration_response.go +++ b/release/model_client_configuration_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_collection_import_detail_response.go b/release/model_collection_import_detail_response.go index 1b4d319c..520e04fe 100644 --- a/release/model_collection_import_detail_response.go +++ b/release/model_collection_import_detail_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_collection_metadata_response.go b/release/model_collection_metadata_response.go index 5bd94b19..2b2b4d8f 100644 --- a/release/model_collection_metadata_response.go +++ b/release/model_collection_metadata_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_collection_namespace_response.go b/release/model_collection_namespace_response.go index 6adf0801..f05c38ea 100644 --- a/release/model_collection_namespace_response.go +++ b/release/model_collection_namespace_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -21,6 +21,7 @@ var _ MappedNullable = &CollectionNamespaceResponse{} // CollectionNamespaceResponse A serializer for a Collection Version namespace field. type CollectionNamespaceResponse struct { Name string `json:"name"` + MetadataSha256 *string `json:"metadata_sha256,omitempty"` } // NewCollectionNamespaceResponse instantiates a new CollectionNamespaceResponse object @@ -65,6 +66,38 @@ func (o *CollectionNamespaceResponse) SetName(v string) { o.Name = v } +// GetMetadataSha256 returns the MetadataSha256 field value if set, zero value otherwise. +func (o *CollectionNamespaceResponse) GetMetadataSha256() string { + if o == nil || IsNil(o.MetadataSha256) { + var ret string + return ret + } + return *o.MetadataSha256 +} + +// GetMetadataSha256Ok returns a tuple with the MetadataSha256 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionNamespaceResponse) GetMetadataSha256Ok() (*string, bool) { + if o == nil || IsNil(o.MetadataSha256) { + return nil, false + } + return o.MetadataSha256, true +} + +// HasMetadataSha256 returns a boolean if a field has been set. +func (o *CollectionNamespaceResponse) HasMetadataSha256() bool { + if o != nil && !IsNil(o.MetadataSha256) { + return true + } + + return false +} + +// SetMetadataSha256 gets a reference to the given string and assigns it to the MetadataSha256 field. +func (o *CollectionNamespaceResponse) SetMetadataSha256(v string) { + o.MetadataSha256 = &v +} + func (o CollectionNamespaceResponse) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -76,6 +109,7 @@ func (o CollectionNamespaceResponse) MarshalJSON() ([]byte, error) { func (o CollectionNamespaceResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + // skip: metadata_sha256 is readOnly return toSerialize, nil } diff --git a/release/model_collection_one_shot.go b/release/model_collection_one_shot.go new file mode 100644 index 00000000..53d6caa7 --- /dev/null +++ b/release/model_collection_one_shot.go @@ -0,0 +1,268 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the CollectionOneShot type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CollectionOneShot{} + +// CollectionOneShot A serializer for the Collection One Shot Upload API. +type CollectionOneShot struct { + // The Collection tarball. + File *os.File `json:"file"` + // An optional sha256 checksum of the uploaded file. + Sha256 *string `json:"sha256,omitempty"` + // The expected 'namespace' of the Collection to be verified against the metadata during import. + ExpectedNamespace *string `json:"expected_namespace,omitempty"` + // The expected 'name' of the Collection to be verified against the metadata during import. + ExpectedName *string `json:"expected_name,omitempty"` + // The expected version of the Collection to be verified against the metadata during import. + ExpectedVersion *string `json:"expected_version,omitempty"` +} + +// NewCollectionOneShot instantiates a new CollectionOneShot object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCollectionOneShot(file *os.File) *CollectionOneShot { + this := CollectionOneShot{} + this.File = file + return &this +} + +// NewCollectionOneShotWithDefaults instantiates a new CollectionOneShot object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCollectionOneShotWithDefaults() *CollectionOneShot { + this := CollectionOneShot{} + return &this +} + +// GetFile returns the File field value +func (o *CollectionOneShot) GetFile() *os.File { + if o == nil { + var ret *os.File + return ret + } + + return o.File +} + +// GetFileOk returns a tuple with the File field value +// and a boolean to check if the value has been set. +func (o *CollectionOneShot) GetFileOk() (**os.File, bool) { + if o == nil { + return nil, false + } + return &o.File, true +} + +// SetFile sets field value +func (o *CollectionOneShot) SetFile(v *os.File) { + o.File = v +} + +// GetSha256 returns the Sha256 field value if set, zero value otherwise. +func (o *CollectionOneShot) GetSha256() string { + if o == nil || IsNil(o.Sha256) { + var ret string + return ret + } + return *o.Sha256 +} + +// GetSha256Ok returns a tuple with the Sha256 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionOneShot) GetSha256Ok() (*string, bool) { + if o == nil || IsNil(o.Sha256) { + return nil, false + } + return o.Sha256, true +} + +// HasSha256 returns a boolean if a field has been set. +func (o *CollectionOneShot) HasSha256() bool { + if o != nil && !IsNil(o.Sha256) { + return true + } + + return false +} + +// SetSha256 gets a reference to the given string and assigns it to the Sha256 field. +func (o *CollectionOneShot) SetSha256(v string) { + o.Sha256 = &v +} + +// GetExpectedNamespace returns the ExpectedNamespace field value if set, zero value otherwise. +func (o *CollectionOneShot) GetExpectedNamespace() string { + if o == nil || IsNil(o.ExpectedNamespace) { + var ret string + return ret + } + return *o.ExpectedNamespace +} + +// GetExpectedNamespaceOk returns a tuple with the ExpectedNamespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionOneShot) GetExpectedNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.ExpectedNamespace) { + return nil, false + } + return o.ExpectedNamespace, true +} + +// HasExpectedNamespace returns a boolean if a field has been set. +func (o *CollectionOneShot) HasExpectedNamespace() bool { + if o != nil && !IsNil(o.ExpectedNamespace) { + return true + } + + return false +} + +// SetExpectedNamespace gets a reference to the given string and assigns it to the ExpectedNamespace field. +func (o *CollectionOneShot) SetExpectedNamespace(v string) { + o.ExpectedNamespace = &v +} + +// GetExpectedName returns the ExpectedName field value if set, zero value otherwise. +func (o *CollectionOneShot) GetExpectedName() string { + if o == nil || IsNil(o.ExpectedName) { + var ret string + return ret + } + return *o.ExpectedName +} + +// GetExpectedNameOk returns a tuple with the ExpectedName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionOneShot) GetExpectedNameOk() (*string, bool) { + if o == nil || IsNil(o.ExpectedName) { + return nil, false + } + return o.ExpectedName, true +} + +// HasExpectedName returns a boolean if a field has been set. +func (o *CollectionOneShot) HasExpectedName() bool { + if o != nil && !IsNil(o.ExpectedName) { + return true + } + + return false +} + +// SetExpectedName gets a reference to the given string and assigns it to the ExpectedName field. +func (o *CollectionOneShot) SetExpectedName(v string) { + o.ExpectedName = &v +} + +// GetExpectedVersion returns the ExpectedVersion field value if set, zero value otherwise. +func (o *CollectionOneShot) GetExpectedVersion() string { + if o == nil || IsNil(o.ExpectedVersion) { + var ret string + return ret + } + return *o.ExpectedVersion +} + +// GetExpectedVersionOk returns a tuple with the ExpectedVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionOneShot) GetExpectedVersionOk() (*string, bool) { + if o == nil || IsNil(o.ExpectedVersion) { + return nil, false + } + return o.ExpectedVersion, true +} + +// HasExpectedVersion returns a boolean if a field has been set. +func (o *CollectionOneShot) HasExpectedVersion() bool { + if o != nil && !IsNil(o.ExpectedVersion) { + return true + } + + return false +} + +// SetExpectedVersion gets a reference to the given string and assigns it to the ExpectedVersion field. +func (o *CollectionOneShot) SetExpectedVersion(v string) { + o.ExpectedVersion = &v +} + +func (o CollectionOneShot) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CollectionOneShot) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["file"] = o.File + if !IsNil(o.Sha256) { + toSerialize["sha256"] = o.Sha256 + } + if !IsNil(o.ExpectedNamespace) { + toSerialize["expected_namespace"] = o.ExpectedNamespace + } + if !IsNil(o.ExpectedName) { + toSerialize["expected_name"] = o.ExpectedName + } + if !IsNil(o.ExpectedVersion) { + toSerialize["expected_version"] = o.ExpectedVersion + } + return toSerialize, nil +} + +type NullableCollectionOneShot struct { + value *CollectionOneShot + isSet bool +} + +func (v NullableCollectionOneShot) Get() *CollectionOneShot { + return v.value +} + +func (v *NullableCollectionOneShot) Set(val *CollectionOneShot) { + v.value = val + v.isSet = true +} + +func (v NullableCollectionOneShot) IsSet() bool { + return v.isSet +} + +func (v *NullableCollectionOneShot) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCollectionOneShot(val *CollectionOneShot) *NullableCollectionOneShot { + return &NullableCollectionOneShot{value: val, isSet: true} +} + +func (v NullableCollectionOneShot) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCollectionOneShot) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_collection_ref_response.go b/release/model_collection_ref_response.go index 7fa9168a..6b4fa97f 100644 --- a/release/model_collection_ref_response.go +++ b/release/model_collection_ref_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_collection_response.go b/release/model_collection_response.go index 7c7396e2..978040f4 100644 --- a/release/model_collection_response.go +++ b/release/model_collection_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_collection_summary_response.go b/release/model_collection_summary_response.go new file mode 100644 index 00000000..6052f17b --- /dev/null +++ b/release/model_collection_summary_response.go @@ -0,0 +1,452 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "time" +) + +// checks if the CollectionSummaryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CollectionSummaryResponse{} + +// CollectionSummaryResponse Collection Version serializer without docs blob. +type CollectionSummaryResponse struct { + PulpHref *string `json:"pulp_href,omitempty"` + // The namespace of the collection. + Namespace *string `json:"namespace,omitempty"` + // The name of the collection. + Name *string `json:"name,omitempty"` + // The version of the collection. + Version *string `json:"version,omitempty"` + // The version of Ansible required to use the collection. Multiple versions can be separated with a comma. + RequiresAnsible NullableString `json:"requires_ansible,omitempty"` + // Timestamp of creation. + PulpCreated *time.Time `json:"pulp_created,omitempty"` + // A JSON field with data about the contents. + Contents map[string]interface{} `json:"contents,omitempty"` + // A dict declaring Collections that this collection requires to be installed for it to be usable. + Dependencies map[string]interface{} `json:"dependencies,omitempty"` + // A short summary description of the collection. + Description *string `json:"description,omitempty"` + Tags []AnsibleTagResponse `json:"tags,omitempty"` +} + +// NewCollectionSummaryResponse instantiates a new CollectionSummaryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCollectionSummaryResponse() *CollectionSummaryResponse { + this := CollectionSummaryResponse{} + return &this +} + +// NewCollectionSummaryResponseWithDefaults instantiates a new CollectionSummaryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCollectionSummaryResponseWithDefaults() *CollectionSummaryResponse { + this := CollectionSummaryResponse{} + return &this +} + +// GetPulpHref returns the PulpHref field value if set, zero value otherwise. +func (o *CollectionSummaryResponse) GetPulpHref() string { + if o == nil || IsNil(o.PulpHref) { + var ret string + return ret + } + return *o.PulpHref +} + +// GetPulpHrefOk returns a tuple with the PulpHref field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionSummaryResponse) GetPulpHrefOk() (*string, bool) { + if o == nil || IsNil(o.PulpHref) { + return nil, false + } + return o.PulpHref, true +} + +// HasPulpHref returns a boolean if a field has been set. +func (o *CollectionSummaryResponse) HasPulpHref() bool { + if o != nil && !IsNil(o.PulpHref) { + return true + } + + return false +} + +// SetPulpHref gets a reference to the given string and assigns it to the PulpHref field. +func (o *CollectionSummaryResponse) SetPulpHref(v string) { + o.PulpHref = &v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *CollectionSummaryResponse) GetNamespace() string { + if o == nil || IsNil(o.Namespace) { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionSummaryResponse) GetNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.Namespace) { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *CollectionSummaryResponse) HasNamespace() bool { + if o != nil && !IsNil(o.Namespace) { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *CollectionSummaryResponse) SetNamespace(v string) { + o.Namespace = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CollectionSummaryResponse) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionSummaryResponse) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CollectionSummaryResponse) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CollectionSummaryResponse) SetName(v string) { + o.Name = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *CollectionSummaryResponse) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionSummaryResponse) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *CollectionSummaryResponse) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *CollectionSummaryResponse) SetVersion(v string) { + o.Version = &v +} + +// GetRequiresAnsible returns the RequiresAnsible field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CollectionSummaryResponse) GetRequiresAnsible() string { + if o == nil || IsNil(o.RequiresAnsible.Get()) { + var ret string + return ret + } + return *o.RequiresAnsible.Get() +} + +// GetRequiresAnsibleOk returns a tuple with the RequiresAnsible field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CollectionSummaryResponse) GetRequiresAnsibleOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RequiresAnsible.Get(), o.RequiresAnsible.IsSet() +} + +// HasRequiresAnsible returns a boolean if a field has been set. +func (o *CollectionSummaryResponse) HasRequiresAnsible() bool { + if o != nil && o.RequiresAnsible.IsSet() { + return true + } + + return false +} + +// SetRequiresAnsible gets a reference to the given NullableString and assigns it to the RequiresAnsible field. +func (o *CollectionSummaryResponse) SetRequiresAnsible(v string) { + o.RequiresAnsible.Set(&v) +} +// SetRequiresAnsibleNil sets the value for RequiresAnsible to be an explicit nil +func (o *CollectionSummaryResponse) SetRequiresAnsibleNil() { + o.RequiresAnsible.Set(nil) +} + +// UnsetRequiresAnsible ensures that no value is present for RequiresAnsible, not even an explicit nil +func (o *CollectionSummaryResponse) UnsetRequiresAnsible() { + o.RequiresAnsible.Unset() +} + +// GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. +func (o *CollectionSummaryResponse) GetPulpCreated() time.Time { + if o == nil || IsNil(o.PulpCreated) { + var ret time.Time + return ret + } + return *o.PulpCreated +} + +// GetPulpCreatedOk returns a tuple with the PulpCreated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionSummaryResponse) GetPulpCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpCreated) { + return nil, false + } + return o.PulpCreated, true +} + +// HasPulpCreated returns a boolean if a field has been set. +func (o *CollectionSummaryResponse) HasPulpCreated() bool { + if o != nil && !IsNil(o.PulpCreated) { + return true + } + + return false +} + +// SetPulpCreated gets a reference to the given time.Time and assigns it to the PulpCreated field. +func (o *CollectionSummaryResponse) SetPulpCreated(v time.Time) { + o.PulpCreated = &v +} + +// GetContents returns the Contents field value if set, zero value otherwise. +func (o *CollectionSummaryResponse) GetContents() map[string]interface{} { + if o == nil || IsNil(o.Contents) { + var ret map[string]interface{} + return ret + } + return o.Contents +} + +// GetContentsOk returns a tuple with the Contents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionSummaryResponse) GetContentsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Contents) { + return map[string]interface{}{}, false + } + return o.Contents, true +} + +// HasContents returns a boolean if a field has been set. +func (o *CollectionSummaryResponse) HasContents() bool { + if o != nil && !IsNil(o.Contents) { + return true + } + + return false +} + +// SetContents gets a reference to the given map[string]interface{} and assigns it to the Contents field. +func (o *CollectionSummaryResponse) SetContents(v map[string]interface{}) { + o.Contents = v +} + +// GetDependencies returns the Dependencies field value if set, zero value otherwise. +func (o *CollectionSummaryResponse) GetDependencies() map[string]interface{} { + if o == nil || IsNil(o.Dependencies) { + var ret map[string]interface{} + return ret + } + return o.Dependencies +} + +// GetDependenciesOk returns a tuple with the Dependencies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionSummaryResponse) GetDependenciesOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Dependencies) { + return map[string]interface{}{}, false + } + return o.Dependencies, true +} + +// HasDependencies returns a boolean if a field has been set. +func (o *CollectionSummaryResponse) HasDependencies() bool { + if o != nil && !IsNil(o.Dependencies) { + return true + } + + return false +} + +// SetDependencies gets a reference to the given map[string]interface{} and assigns it to the Dependencies field. +func (o *CollectionSummaryResponse) SetDependencies(v map[string]interface{}) { + o.Dependencies = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CollectionSummaryResponse) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionSummaryResponse) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CollectionSummaryResponse) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CollectionSummaryResponse) SetDescription(v string) { + o.Description = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CollectionSummaryResponse) GetTags() []AnsibleTagResponse { + if o == nil || IsNil(o.Tags) { + var ret []AnsibleTagResponse + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionSummaryResponse) GetTagsOk() ([]AnsibleTagResponse, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CollectionSummaryResponse) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []AnsibleTagResponse and assigns it to the Tags field. +func (o *CollectionSummaryResponse) SetTags(v []AnsibleTagResponse) { + o.Tags = v +} + +func (o CollectionSummaryResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CollectionSummaryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + // skip: pulp_href is readOnly + // skip: namespace is readOnly + // skip: name is readOnly + // skip: version is readOnly + if o.RequiresAnsible.IsSet() { + toSerialize["requires_ansible"] = o.RequiresAnsible.Get() + } + // skip: pulp_created is readOnly + // skip: contents is readOnly + // skip: dependencies is readOnly + // skip: description is readOnly + // skip: tags is readOnly + return toSerialize, nil +} + +type NullableCollectionSummaryResponse struct { + value *CollectionSummaryResponse + isSet bool +} + +func (v NullableCollectionSummaryResponse) Get() *CollectionSummaryResponse { + return v.value +} + +func (v *NullableCollectionSummaryResponse) Set(val *CollectionSummaryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCollectionSummaryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCollectionSummaryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCollectionSummaryResponse(val *CollectionSummaryResponse) *NullableCollectionSummaryResponse { + return &NullableCollectionSummaryResponse{value: val, isSet: true} +} + +func (v NullableCollectionSummaryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCollectionSummaryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_collection_version_copy_move.go b/release/model_collection_version_copy_move.go new file mode 100644 index 00000000..c0f61a26 --- /dev/null +++ b/release/model_collection_version_copy_move.go @@ -0,0 +1,184 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" +) + +// checks if the CollectionVersionCopyMove type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CollectionVersionCopyMove{} + +// CollectionVersionCopyMove Copy or move collections from a source repository into one or more destinations. This will carry associated content like Signatures and Marks along. +type CollectionVersionCopyMove struct { + // A list of collection versions to move or copy. + CollectionVersions []string `json:"collection_versions"` + // List of repository HREFs to put content in. + DestinationRepositories []string `json:"destination_repositories"` + // HREF for a signing service. This will be used to sign the collection before moving putting it in any new repositories. + SigningService *string `json:"signing_service,omitempty"` +} + +// NewCollectionVersionCopyMove instantiates a new CollectionVersionCopyMove object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCollectionVersionCopyMove(collectionVersions []string, destinationRepositories []string) *CollectionVersionCopyMove { + this := CollectionVersionCopyMove{} + this.CollectionVersions = collectionVersions + this.DestinationRepositories = destinationRepositories + return &this +} + +// NewCollectionVersionCopyMoveWithDefaults instantiates a new CollectionVersionCopyMove object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCollectionVersionCopyMoveWithDefaults() *CollectionVersionCopyMove { + this := CollectionVersionCopyMove{} + return &this +} + +// GetCollectionVersions returns the CollectionVersions field value +func (o *CollectionVersionCopyMove) GetCollectionVersions() []string { + if o == nil { + var ret []string + return ret + } + + return o.CollectionVersions +} + +// GetCollectionVersionsOk returns a tuple with the CollectionVersions field value +// and a boolean to check if the value has been set. +func (o *CollectionVersionCopyMove) GetCollectionVersionsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.CollectionVersions, true +} + +// SetCollectionVersions sets field value +func (o *CollectionVersionCopyMove) SetCollectionVersions(v []string) { + o.CollectionVersions = v +} + +// GetDestinationRepositories returns the DestinationRepositories field value +func (o *CollectionVersionCopyMove) GetDestinationRepositories() []string { + if o == nil { + var ret []string + return ret + } + + return o.DestinationRepositories +} + +// GetDestinationRepositoriesOk returns a tuple with the DestinationRepositories field value +// and a boolean to check if the value has been set. +func (o *CollectionVersionCopyMove) GetDestinationRepositoriesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.DestinationRepositories, true +} + +// SetDestinationRepositories sets field value +func (o *CollectionVersionCopyMove) SetDestinationRepositories(v []string) { + o.DestinationRepositories = v +} + +// GetSigningService returns the SigningService field value if set, zero value otherwise. +func (o *CollectionVersionCopyMove) GetSigningService() string { + if o == nil || IsNil(o.SigningService) { + var ret string + return ret + } + return *o.SigningService +} + +// GetSigningServiceOk returns a tuple with the SigningService field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionVersionCopyMove) GetSigningServiceOk() (*string, bool) { + if o == nil || IsNil(o.SigningService) { + return nil, false + } + return o.SigningService, true +} + +// HasSigningService returns a boolean if a field has been set. +func (o *CollectionVersionCopyMove) HasSigningService() bool { + if o != nil && !IsNil(o.SigningService) { + return true + } + + return false +} + +// SetSigningService gets a reference to the given string and assigns it to the SigningService field. +func (o *CollectionVersionCopyMove) SetSigningService(v string) { + o.SigningService = &v +} + +func (o CollectionVersionCopyMove) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CollectionVersionCopyMove) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["collection_versions"] = o.CollectionVersions + toSerialize["destination_repositories"] = o.DestinationRepositories + if !IsNil(o.SigningService) { + toSerialize["signing_service"] = o.SigningService + } + return toSerialize, nil +} + +type NullableCollectionVersionCopyMove struct { + value *CollectionVersionCopyMove + isSet bool +} + +func (v NullableCollectionVersionCopyMove) Get() *CollectionVersionCopyMove { + return v.value +} + +func (v *NullableCollectionVersionCopyMove) Set(val *CollectionVersionCopyMove) { + v.value = val + v.isSet = true +} + +func (v NullableCollectionVersionCopyMove) IsSet() bool { + return v.isSet +} + +func (v *NullableCollectionVersionCopyMove) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCollectionVersionCopyMove(val *CollectionVersionCopyMove) *NullableCollectionVersionCopyMove { + return &NullableCollectionVersionCopyMove{value: val, isSet: true} +} + +func (v NullableCollectionVersionCopyMove) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCollectionVersionCopyMove) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_collection_version_docs_response.go b/release/model_collection_version_docs_response.go index 9c66cb6c..26e9c46e 100644 --- a/release/model_collection_version_docs_response.go +++ b/release/model_collection_version_docs_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_collection_version_list_response.go b/release/model_collection_version_list_response.go index 93d55907..6584ed38 100644 --- a/release/model_collection_version_list_response.go +++ b/release/model_collection_version_list_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -26,6 +26,7 @@ type CollectionVersionListResponse struct { CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` RequiresAnsible NullableString `json:"requires_ansible,omitempty"` + Marks []string `json:"marks,omitempty"` } // NewCollectionVersionListResponse instantiates a new CollectionVersionListResponse object @@ -201,6 +202,38 @@ func (o *CollectionVersionListResponse) UnsetRequiresAnsible() { o.RequiresAnsible.Unset() } +// GetMarks returns the Marks field value if set, zero value otherwise. +func (o *CollectionVersionListResponse) GetMarks() []string { + if o == nil || IsNil(o.Marks) { + var ret []string + return ret + } + return o.Marks +} + +// GetMarksOk returns a tuple with the Marks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionVersionListResponse) GetMarksOk() ([]string, bool) { + if o == nil || IsNil(o.Marks) { + return nil, false + } + return o.Marks, true +} + +// HasMarks returns a boolean if a field has been set. +func (o *CollectionVersionListResponse) HasMarks() bool { + if o != nil && !IsNil(o.Marks) { + return true + } + + return false +} + +// SetMarks gets a reference to the given []string and assigns it to the Marks field. +func (o *CollectionVersionListResponse) SetMarks(v []string) { + o.Marks = v +} + func (o CollectionVersionListResponse) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -218,6 +251,7 @@ func (o CollectionVersionListResponse) ToMap() (map[string]interface{}, error) { if o.RequiresAnsible.IsSet() { toSerialize["requires_ansible"] = o.RequiresAnsible.Get() } + // skip: marks is readOnly return toSerialize, nil } diff --git a/release/model_collection_version_response.go b/release/model_collection_version_response.go index dbe79297..83ef061f 100644 --- a/release/model_collection_version_response.go +++ b/release/model_collection_version_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -26,6 +26,7 @@ type CollectionVersionResponse struct { CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` RequiresAnsible NullableString `json:"requires_ansible,omitempty"` + Marks []string `json:"marks,omitempty"` Artifact *ArtifactRefResponse `json:"artifact,omitempty"` Collection *CollectionRefResponse `json:"collection,omitempty"` DownloadUrl *string `json:"download_url,omitempty"` @@ -214,6 +215,38 @@ func (o *CollectionVersionResponse) UnsetRequiresAnsible() { o.RequiresAnsible.Unset() } +// GetMarks returns the Marks field value if set, zero value otherwise. +func (o *CollectionVersionResponse) GetMarks() []string { + if o == nil || IsNil(o.Marks) { + var ret []string + return ret + } + return o.Marks +} + +// GetMarksOk returns a tuple with the Marks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionVersionResponse) GetMarksOk() ([]string, bool) { + if o == nil || IsNil(o.Marks) { + return nil, false + } + return o.Marks, true +} + +// HasMarks returns a boolean if a field has been set. +func (o *CollectionVersionResponse) HasMarks() bool { + if o != nil && !IsNil(o.Marks) { + return true + } + + return false +} + +// SetMarks gets a reference to the given []string and assigns it to the Marks field. +func (o *CollectionVersionResponse) SetMarks(v []string) { + o.Marks = v +} + // GetArtifact returns the Artifact field value if set, zero value otherwise. func (o *CollectionVersionResponse) GetArtifact() ArtifactRefResponse { if o == nil || IsNil(o.Artifact) { @@ -583,6 +616,7 @@ func (o CollectionVersionResponse) ToMap() (map[string]interface{}, error) { if o.RequiresAnsible.IsSet() { toSerialize["requires_ansible"] = o.RequiresAnsible.Get() } + // skip: marks is readOnly // skip: artifact is readOnly // skip: collection is readOnly // skip: download_url is readOnly diff --git a/release/model_collection_version_search_list.go b/release/model_collection_version_search_list.go new file mode 100644 index 00000000..385e31f7 --- /dev/null +++ b/release/model_collection_version_search_list.go @@ -0,0 +1,256 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" +) + +// checks if the CollectionVersionSearchList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CollectionVersionSearchList{} + +// CollectionVersionSearchList Cross-repo search results. +type CollectionVersionSearchList struct { + Repository Repository `json:"repository"` + // Collection Version serializer without docs blob. + CollectionVersion map[string]interface{} `json:"collection_version"` + NamespaceMetadata NullableAnsibleAnsibleNamespaceMetadata `json:"namespace_metadata"` + IsHighest bool `json:"is_highest"` + IsDeprecated bool `json:"is_deprecated"` + IsSigned bool `json:"is_signed"` +} + +// NewCollectionVersionSearchList instantiates a new CollectionVersionSearchList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCollectionVersionSearchList(repository Repository, collectionVersion map[string]interface{}, namespaceMetadata NullableAnsibleAnsibleNamespaceMetadata, isHighest bool, isDeprecated bool, isSigned bool) *CollectionVersionSearchList { + this := CollectionVersionSearchList{} + this.Repository = repository + this.CollectionVersion = collectionVersion + this.NamespaceMetadata = namespaceMetadata + this.IsHighest = isHighest + this.IsDeprecated = isDeprecated + this.IsSigned = isSigned + return &this +} + +// NewCollectionVersionSearchListWithDefaults instantiates a new CollectionVersionSearchList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCollectionVersionSearchListWithDefaults() *CollectionVersionSearchList { + this := CollectionVersionSearchList{} + return &this +} + +// GetRepository returns the Repository field value +func (o *CollectionVersionSearchList) GetRepository() Repository { + if o == nil { + var ret Repository + return ret + } + + return o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value +// and a boolean to check if the value has been set. +func (o *CollectionVersionSearchList) GetRepositoryOk() (*Repository, bool) { + if o == nil { + return nil, false + } + return &o.Repository, true +} + +// SetRepository sets field value +func (o *CollectionVersionSearchList) SetRepository(v Repository) { + o.Repository = v +} + +// GetCollectionVersion returns the CollectionVersion field value +func (o *CollectionVersionSearchList) GetCollectionVersion() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.CollectionVersion +} + +// GetCollectionVersionOk returns a tuple with the CollectionVersion field value +// and a boolean to check if the value has been set. +func (o *CollectionVersionSearchList) GetCollectionVersionOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.CollectionVersion, true +} + +// SetCollectionVersion sets field value +func (o *CollectionVersionSearchList) SetCollectionVersion(v map[string]interface{}) { + o.CollectionVersion = v +} + +// GetNamespaceMetadata returns the NamespaceMetadata field value +// If the value is explicit nil, the zero value for AnsibleAnsibleNamespaceMetadata will be returned +func (o *CollectionVersionSearchList) GetNamespaceMetadata() AnsibleAnsibleNamespaceMetadata { + if o == nil || o.NamespaceMetadata.Get() == nil { + var ret AnsibleAnsibleNamespaceMetadata + return ret + } + + return *o.NamespaceMetadata.Get() +} + +// GetNamespaceMetadataOk returns a tuple with the NamespaceMetadata field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CollectionVersionSearchList) GetNamespaceMetadataOk() (*AnsibleAnsibleNamespaceMetadata, bool) { + if o == nil { + return nil, false + } + return o.NamespaceMetadata.Get(), o.NamespaceMetadata.IsSet() +} + +// SetNamespaceMetadata sets field value +func (o *CollectionVersionSearchList) SetNamespaceMetadata(v AnsibleAnsibleNamespaceMetadata) { + o.NamespaceMetadata.Set(&v) +} + +// GetIsHighest returns the IsHighest field value +func (o *CollectionVersionSearchList) GetIsHighest() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsHighest +} + +// GetIsHighestOk returns a tuple with the IsHighest field value +// and a boolean to check if the value has been set. +func (o *CollectionVersionSearchList) GetIsHighestOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsHighest, true +} + +// SetIsHighest sets field value +func (o *CollectionVersionSearchList) SetIsHighest(v bool) { + o.IsHighest = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *CollectionVersionSearchList) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *CollectionVersionSearchList) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *CollectionVersionSearchList) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsSigned returns the IsSigned field value +func (o *CollectionVersionSearchList) GetIsSigned() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsSigned +} + +// GetIsSignedOk returns a tuple with the IsSigned field value +// and a boolean to check if the value has been set. +func (o *CollectionVersionSearchList) GetIsSignedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsSigned, true +} + +// SetIsSigned sets field value +func (o *CollectionVersionSearchList) SetIsSigned(v bool) { + o.IsSigned = v +} + +func (o CollectionVersionSearchList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CollectionVersionSearchList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["repository"] = o.Repository + toSerialize["collection_version"] = o.CollectionVersion + toSerialize["namespace_metadata"] = o.NamespaceMetadata.Get() + toSerialize["is_highest"] = o.IsHighest + toSerialize["is_deprecated"] = o.IsDeprecated + toSerialize["is_signed"] = o.IsSigned + return toSerialize, nil +} + +type NullableCollectionVersionSearchList struct { + value *CollectionVersionSearchList + isSet bool +} + +func (v NullableCollectionVersionSearchList) Get() *CollectionVersionSearchList { + return v.value +} + +func (v *NullableCollectionVersionSearchList) Set(val *CollectionVersionSearchList) { + v.value = val + v.isSet = true +} + +func (v NullableCollectionVersionSearchList) IsSet() bool { + return v.isSet +} + +func (v *NullableCollectionVersionSearchList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCollectionVersionSearchList(val *CollectionVersionSearchList) *NullableCollectionVersionSearchList { + return &NullableCollectionVersionSearchList{value: val, isSet: true} +} + +func (v NullableCollectionVersionSearchList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCollectionVersionSearchList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_collection_version_search_list_response.go b/release/model_collection_version_search_list_response.go new file mode 100644 index 00000000..0cec447f --- /dev/null +++ b/release/model_collection_version_search_list_response.go @@ -0,0 +1,289 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" +) + +// checks if the CollectionVersionSearchListResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CollectionVersionSearchListResponse{} + +// CollectionVersionSearchListResponse Cross-repo search results. +type CollectionVersionSearchListResponse struct { + Repository RepositoryResponse `json:"repository"` + CollectionVersion CollectionSummaryResponse `json:"collection_version"` + RepositoryVersion *string `json:"repository_version,omitempty"` + NamespaceMetadata NullableAnsibleAnsibleNamespaceMetadataResponse `json:"namespace_metadata"` + IsHighest bool `json:"is_highest"` + IsDeprecated bool `json:"is_deprecated"` + IsSigned bool `json:"is_signed"` +} + +// NewCollectionVersionSearchListResponse instantiates a new CollectionVersionSearchListResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCollectionVersionSearchListResponse(repository RepositoryResponse, collectionVersion CollectionSummaryResponse, namespaceMetadata NullableAnsibleAnsibleNamespaceMetadataResponse, isHighest bool, isDeprecated bool, isSigned bool) *CollectionVersionSearchListResponse { + this := CollectionVersionSearchListResponse{} + this.Repository = repository + this.CollectionVersion = collectionVersion + this.NamespaceMetadata = namespaceMetadata + this.IsHighest = isHighest + this.IsDeprecated = isDeprecated + this.IsSigned = isSigned + return &this +} + +// NewCollectionVersionSearchListResponseWithDefaults instantiates a new CollectionVersionSearchListResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCollectionVersionSearchListResponseWithDefaults() *CollectionVersionSearchListResponse { + this := CollectionVersionSearchListResponse{} + return &this +} + +// GetRepository returns the Repository field value +func (o *CollectionVersionSearchListResponse) GetRepository() RepositoryResponse { + if o == nil { + var ret RepositoryResponse + return ret + } + + return o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value +// and a boolean to check if the value has been set. +func (o *CollectionVersionSearchListResponse) GetRepositoryOk() (*RepositoryResponse, bool) { + if o == nil { + return nil, false + } + return &o.Repository, true +} + +// SetRepository sets field value +func (o *CollectionVersionSearchListResponse) SetRepository(v RepositoryResponse) { + o.Repository = v +} + +// GetCollectionVersion returns the CollectionVersion field value +func (o *CollectionVersionSearchListResponse) GetCollectionVersion() CollectionSummaryResponse { + if o == nil { + var ret CollectionSummaryResponse + return ret + } + + return o.CollectionVersion +} + +// GetCollectionVersionOk returns a tuple with the CollectionVersion field value +// and a boolean to check if the value has been set. +func (o *CollectionVersionSearchListResponse) GetCollectionVersionOk() (*CollectionSummaryResponse, bool) { + if o == nil { + return nil, false + } + return &o.CollectionVersion, true +} + +// SetCollectionVersion sets field value +func (o *CollectionVersionSearchListResponse) SetCollectionVersion(v CollectionSummaryResponse) { + o.CollectionVersion = v +} + +// GetRepositoryVersion returns the RepositoryVersion field value if set, zero value otherwise. +func (o *CollectionVersionSearchListResponse) GetRepositoryVersion() string { + if o == nil || IsNil(o.RepositoryVersion) { + var ret string + return ret + } + return *o.RepositoryVersion +} + +// GetRepositoryVersionOk returns a tuple with the RepositoryVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CollectionVersionSearchListResponse) GetRepositoryVersionOk() (*string, bool) { + if o == nil || IsNil(o.RepositoryVersion) { + return nil, false + } + return o.RepositoryVersion, true +} + +// HasRepositoryVersion returns a boolean if a field has been set. +func (o *CollectionVersionSearchListResponse) HasRepositoryVersion() bool { + if o != nil && !IsNil(o.RepositoryVersion) { + return true + } + + return false +} + +// SetRepositoryVersion gets a reference to the given string and assigns it to the RepositoryVersion field. +func (o *CollectionVersionSearchListResponse) SetRepositoryVersion(v string) { + o.RepositoryVersion = &v +} + +// GetNamespaceMetadata returns the NamespaceMetadata field value +// If the value is explicit nil, the zero value for AnsibleAnsibleNamespaceMetadataResponse will be returned +func (o *CollectionVersionSearchListResponse) GetNamespaceMetadata() AnsibleAnsibleNamespaceMetadataResponse { + if o == nil || o.NamespaceMetadata.Get() == nil { + var ret AnsibleAnsibleNamespaceMetadataResponse + return ret + } + + return *o.NamespaceMetadata.Get() +} + +// GetNamespaceMetadataOk returns a tuple with the NamespaceMetadata field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CollectionVersionSearchListResponse) GetNamespaceMetadataOk() (*AnsibleAnsibleNamespaceMetadataResponse, bool) { + if o == nil { + return nil, false + } + return o.NamespaceMetadata.Get(), o.NamespaceMetadata.IsSet() +} + +// SetNamespaceMetadata sets field value +func (o *CollectionVersionSearchListResponse) SetNamespaceMetadata(v AnsibleAnsibleNamespaceMetadataResponse) { + o.NamespaceMetadata.Set(&v) +} + +// GetIsHighest returns the IsHighest field value +func (o *CollectionVersionSearchListResponse) GetIsHighest() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsHighest +} + +// GetIsHighestOk returns a tuple with the IsHighest field value +// and a boolean to check if the value has been set. +func (o *CollectionVersionSearchListResponse) GetIsHighestOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsHighest, true +} + +// SetIsHighest sets field value +func (o *CollectionVersionSearchListResponse) SetIsHighest(v bool) { + o.IsHighest = v +} + +// GetIsDeprecated returns the IsDeprecated field value +func (o *CollectionVersionSearchListResponse) GetIsDeprecated() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsDeprecated +} + +// GetIsDeprecatedOk returns a tuple with the IsDeprecated field value +// and a boolean to check if the value has been set. +func (o *CollectionVersionSearchListResponse) GetIsDeprecatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsDeprecated, true +} + +// SetIsDeprecated sets field value +func (o *CollectionVersionSearchListResponse) SetIsDeprecated(v bool) { + o.IsDeprecated = v +} + +// GetIsSigned returns the IsSigned field value +func (o *CollectionVersionSearchListResponse) GetIsSigned() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsSigned +} + +// GetIsSignedOk returns a tuple with the IsSigned field value +// and a boolean to check if the value has been set. +func (o *CollectionVersionSearchListResponse) GetIsSignedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsSigned, true +} + +// SetIsSigned sets field value +func (o *CollectionVersionSearchListResponse) SetIsSigned(v bool) { + o.IsSigned = v +} + +func (o CollectionVersionSearchListResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CollectionVersionSearchListResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["repository"] = o.Repository + toSerialize["collection_version"] = o.CollectionVersion + // skip: repository_version is readOnly + toSerialize["namespace_metadata"] = o.NamespaceMetadata.Get() + toSerialize["is_highest"] = o.IsHighest + toSerialize["is_deprecated"] = o.IsDeprecated + toSerialize["is_signed"] = o.IsSigned + return toSerialize, nil +} + +type NullableCollectionVersionSearchListResponse struct { + value *CollectionVersionSearchListResponse + isSet bool +} + +func (v NullableCollectionVersionSearchListResponse) Get() *CollectionVersionSearchListResponse { + return v.value +} + +func (v *NullableCollectionVersionSearchListResponse) Set(val *CollectionVersionSearchListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCollectionVersionSearchListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCollectionVersionSearchListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCollectionVersionSearchListResponse(val *CollectionVersionSearchListResponse) *NullableCollectionVersionSearchListResponse { + return &NullableCollectionVersionSearchListResponse{value: val, isSet: true} +} + +func (v NullableCollectionVersionSearchListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCollectionVersionSearchListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_comps_xml.go b/release/model_comps_xml.go new file mode 100644 index 00000000..e8dfdd57 --- /dev/null +++ b/release/model_comps_xml.go @@ -0,0 +1,194 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the CompsXml type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CompsXml{} + +// CompsXml A serializer for comps.xml Upload API. +type CompsXml struct { + // Full path of a comps.xml file that may be parsed into comps.xml Content units. + File *os.File `json:"file"` + // URI of an RPM repository the comps.xml content units should be associated to. + Repository *string `json:"repository,omitempty"` + // If true, incoming comps.xml replaces existing comps-related ContentUnits in the specified repository. + Replace *bool `json:"replace,omitempty"` +} + +// NewCompsXml instantiates a new CompsXml object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCompsXml(file *os.File) *CompsXml { + this := CompsXml{} + this.File = file + return &this +} + +// NewCompsXmlWithDefaults instantiates a new CompsXml object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCompsXmlWithDefaults() *CompsXml { + this := CompsXml{} + return &this +} + +// GetFile returns the File field value +func (o *CompsXml) GetFile() *os.File { + if o == nil { + var ret *os.File + return ret + } + + return o.File +} + +// GetFileOk returns a tuple with the File field value +// and a boolean to check if the value has been set. +func (o *CompsXml) GetFileOk() (**os.File, bool) { + if o == nil { + return nil, false + } + return &o.File, true +} + +// SetFile sets field value +func (o *CompsXml) SetFile(v *os.File) { + o.File = v +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *CompsXml) GetRepository() string { + if o == nil || IsNil(o.Repository) { + var ret string + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CompsXml) GetRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.Repository) { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *CompsXml) HasRepository() bool { + if o != nil && !IsNil(o.Repository) { + return true + } + + return false +} + +// SetRepository gets a reference to the given string and assigns it to the Repository field. +func (o *CompsXml) SetRepository(v string) { + o.Repository = &v +} + +// GetReplace returns the Replace field value if set, zero value otherwise. +func (o *CompsXml) GetReplace() bool { + if o == nil || IsNil(o.Replace) { + var ret bool + return ret + } + return *o.Replace +} + +// GetReplaceOk returns a tuple with the Replace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CompsXml) GetReplaceOk() (*bool, bool) { + if o == nil || IsNil(o.Replace) { + return nil, false + } + return o.Replace, true +} + +// HasReplace returns a boolean if a field has been set. +func (o *CompsXml) HasReplace() bool { + if o != nil && !IsNil(o.Replace) { + return true + } + + return false +} + +// SetReplace gets a reference to the given bool and assigns it to the Replace field. +func (o *CompsXml) SetReplace(v bool) { + o.Replace = &v +} + +func (o CompsXml) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CompsXml) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["file"] = o.File + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + if !IsNil(o.Replace) { + toSerialize["replace"] = o.Replace + } + return toSerialize, nil +} + +type NullableCompsXml struct { + value *CompsXml + isSet bool +} + +func (v NullableCompsXml) Get() *CompsXml { + return v.value +} + +func (v *NullableCompsXml) Set(val *CompsXml) { + v.value = val + v.isSet = true +} + +func (v NullableCompsXml) IsSet() bool { + return v.isSet +} + +func (v *NullableCompsXml) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCompsXml(val *CompsXml) *NullableCompsXml { + return &NullableCompsXml{value: val, isSet: true} +} + +func (v NullableCompsXml) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCompsXml) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_container_blob_response.go b/release/model_container_blob_response.go index 84466d41..2ef8f821 100644 --- a/release/model_container_blob_response.go +++ b/release/model_container_blob_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_container_container_distribution.go b/release/model_container_container_distribution.go index 16e1c89d..b54525ff 100644 --- a/release/model_container_container_distribution.go +++ b/release/model_container_container_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -20,15 +20,15 @@ var _ MappedNullable = &ContainerContainerDistribution{} // ContainerContainerDistribution A serializer for ContainerDistribution. type ContainerContainerDistribution struct { + // The latest RepositoryVersion for this Repository will be served. + Repository NullableString `json:"repository,omitempty"` // A unique name. Ex, `rawhide` and `stable`. Name string `json:"name"` - // The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") - BasePath string `json:"base_path"` PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // An optional content-guard. If none is specified, a default one will be used. ContentGuard *string `json:"content_guard,omitempty"` - // The latest RepositoryVersion for this Repository will be served. - Repository NullableString `json:"repository,omitempty"` + // The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") + BasePath string `json:"base_path"` // RepositoryVersion to be served RepositoryVersion NullableString `json:"repository_version,omitempty"` // Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. @@ -56,52 +56,70 @@ func NewContainerContainerDistributionWithDefaults() *ContainerContainerDistribu return &this } -// GetName returns the Name field value -func (o *ContainerContainerDistribution) GetName() string { - if o == nil { +// GetRepository returns the Repository field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ContainerContainerDistribution) GetRepository() string { + if o == nil || IsNil(o.Repository.Get()) { var ret string return ret } - - return o.Name + return *o.Repository.Get() } -// GetNameOk returns a tuple with the Name field value +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ContainerContainerDistribution) GetNameOk() (*string, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContainerContainerDistribution) GetRepositoryOk() (*string, bool) { if o == nil { return nil, false } - return &o.Name, true + return o.Repository.Get(), o.Repository.IsSet() } -// SetName sets field value -func (o *ContainerContainerDistribution) SetName(v string) { - o.Name = v +// HasRepository returns a boolean if a field has been set. +func (o *ContainerContainerDistribution) HasRepository() bool { + if o != nil && o.Repository.IsSet() { + return true + } + + return false } -// GetBasePath returns the BasePath field value -func (o *ContainerContainerDistribution) GetBasePath() string { +// SetRepository gets a reference to the given NullableString and assigns it to the Repository field. +func (o *ContainerContainerDistribution) SetRepository(v string) { + o.Repository.Set(&v) +} +// SetRepositoryNil sets the value for Repository to be an explicit nil +func (o *ContainerContainerDistribution) SetRepositoryNil() { + o.Repository.Set(nil) +} + +// UnsetRepository ensures that no value is present for Repository, not even an explicit nil +func (o *ContainerContainerDistribution) UnsetRepository() { + o.Repository.Unset() +} + +// GetName returns the Name field value +func (o *ContainerContainerDistribution) GetName() string { if o == nil { var ret string return ret } - return o.BasePath + return o.Name } -// GetBasePathOk returns a tuple with the BasePath field value +// GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. -func (o *ContainerContainerDistribution) GetBasePathOk() (*string, bool) { +func (o *ContainerContainerDistribution) GetNameOk() (*string, bool) { if o == nil { return nil, false } - return &o.BasePath, true + return &o.Name, true } -// SetBasePath sets field value -func (o *ContainerContainerDistribution) SetBasePath(v string) { - o.BasePath = v +// SetName sets field value +func (o *ContainerContainerDistribution) SetName(v string) { + o.Name = v } // GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. @@ -168,46 +186,28 @@ func (o *ContainerContainerDistribution) SetContentGuard(v string) { o.ContentGuard = &v } -// GetRepository returns the Repository field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContainerContainerDistribution) GetRepository() string { - if o == nil || IsNil(o.Repository.Get()) { +// GetBasePath returns the BasePath field value +func (o *ContainerContainerDistribution) GetBasePath() string { + if o == nil { var ret string return ret } - return *o.Repository.Get() + + return o.BasePath } -// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// GetBasePathOk returns a tuple with the BasePath field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContainerContainerDistribution) GetRepositoryOk() (*string, bool) { +func (o *ContainerContainerDistribution) GetBasePathOk() (*string, bool) { if o == nil { return nil, false } - return o.Repository.Get(), o.Repository.IsSet() -} - -// HasRepository returns a boolean if a field has been set. -func (o *ContainerContainerDistribution) HasRepository() bool { - if o != nil && o.Repository.IsSet() { - return true - } - - return false -} - -// SetRepository gets a reference to the given NullableString and assigns it to the Repository field. -func (o *ContainerContainerDistribution) SetRepository(v string) { - o.Repository.Set(&v) -} -// SetRepositoryNil sets the value for Repository to be an explicit nil -func (o *ContainerContainerDistribution) SetRepositoryNil() { - o.Repository.Set(nil) + return &o.BasePath, true } -// UnsetRepository ensures that no value is present for Repository, not even an explicit nil -func (o *ContainerContainerDistribution) UnsetRepository() { - o.Repository.Unset() +// SetBasePath sets field value +func (o *ContainerContainerDistribution) SetBasePath(v string) { + o.BasePath = v } // GetRepositoryVersion returns the RepositoryVersion field value if set, zero value otherwise (both if not set or set to explicit null). @@ -336,17 +336,17 @@ func (o ContainerContainerDistribution) MarshalJSON() ([]byte, error) { func (o ContainerContainerDistribution) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Repository.IsSet() { + toSerialize["repository"] = o.Repository.Get() + } toSerialize["name"] = o.Name - toSerialize["base_path"] = o.BasePath if !IsNil(o.PulpLabels) { toSerialize["pulp_labels"] = o.PulpLabels } if !IsNil(o.ContentGuard) { toSerialize["content_guard"] = o.ContentGuard } - if o.Repository.IsSet() { - toSerialize["repository"] = o.Repository.Get() - } + toSerialize["base_path"] = o.BasePath if o.RepositoryVersion.IsSet() { toSerialize["repository_version"] = o.RepositoryVersion.Get() } diff --git a/release/model_container_container_distribution_response.go b/release/model_container_container_distribution_response.go index 61c0f7a0..29864a16 100644 --- a/release/model_container_container_distribution_response.go +++ b/release/model_container_container_distribution_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -21,18 +21,18 @@ var _ MappedNullable = &ContainerContainerDistributionResponse{} // ContainerContainerDistributionResponse A serializer for ContainerDistribution. type ContainerContainerDistributionResponse struct { - // Timestamp of creation. - PulpCreated *time.Time `json:"pulp_created,omitempty"` + // The latest RepositoryVersion for this Repository will be served. + Repository NullableString `json:"repository,omitempty"` PulpHref *string `json:"pulp_href,omitempty"` // A unique name. Ex, `rawhide` and `stable`. Name string `json:"name"` - // The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") - BasePath string `json:"base_path"` PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // An optional content-guard. If none is specified, a default one will be used. ContentGuard *string `json:"content_guard,omitempty"` - // The latest RepositoryVersion for this Repository will be served. - Repository NullableString `json:"repository,omitempty"` + // The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") + BasePath string `json:"base_path"` + // Timestamp of creation. + PulpCreated *time.Time `json:"pulp_created,omitempty"` // RepositoryVersion to be served RepositoryVersion NullableString `json:"repository_version,omitempty"` // The Registry hostname/name/ to use with docker pull command defined by this distribution. @@ -64,36 +64,46 @@ func NewContainerContainerDistributionResponseWithDefaults() *ContainerContainer return &this } -// GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. -func (o *ContainerContainerDistributionResponse) GetPulpCreated() time.Time { - if o == nil || IsNil(o.PulpCreated) { - var ret time.Time +// GetRepository returns the Repository field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ContainerContainerDistributionResponse) GetRepository() string { + if o == nil || IsNil(o.Repository.Get()) { + var ret string return ret } - return *o.PulpCreated + return *o.Repository.Get() } -// GetPulpCreatedOk returns a tuple with the PulpCreated field value if set, nil otherwise +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ContainerContainerDistributionResponse) GetPulpCreatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpCreated) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContainerContainerDistributionResponse) GetRepositoryOk() (*string, bool) { + if o == nil { return nil, false } - return o.PulpCreated, true + return o.Repository.Get(), o.Repository.IsSet() } -// HasPulpCreated returns a boolean if a field has been set. -func (o *ContainerContainerDistributionResponse) HasPulpCreated() bool { - if o != nil && !IsNil(o.PulpCreated) { +// HasRepository returns a boolean if a field has been set. +func (o *ContainerContainerDistributionResponse) HasRepository() bool { + if o != nil && o.Repository.IsSet() { return true } return false } -// SetPulpCreated gets a reference to the given time.Time and assigns it to the PulpCreated field. -func (o *ContainerContainerDistributionResponse) SetPulpCreated(v time.Time) { - o.PulpCreated = &v +// SetRepository gets a reference to the given NullableString and assigns it to the Repository field. +func (o *ContainerContainerDistributionResponse) SetRepository(v string) { + o.Repository.Set(&v) +} +// SetRepositoryNil sets the value for Repository to be an explicit nil +func (o *ContainerContainerDistributionResponse) SetRepositoryNil() { + o.Repository.Set(nil) +} + +// UnsetRepository ensures that no value is present for Repository, not even an explicit nil +func (o *ContainerContainerDistributionResponse) UnsetRepository() { + o.Repository.Unset() } // GetPulpHref returns the PulpHref field value if set, zero value otherwise. @@ -152,30 +162,6 @@ func (o *ContainerContainerDistributionResponse) SetName(v string) { o.Name = v } -// GetBasePath returns the BasePath field value -func (o *ContainerContainerDistributionResponse) GetBasePath() string { - if o == nil { - var ret string - return ret - } - - return o.BasePath -} - -// GetBasePathOk returns a tuple with the BasePath field value -// and a boolean to check if the value has been set. -func (o *ContainerContainerDistributionResponse) GetBasePathOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.BasePath, true -} - -// SetBasePath sets field value -func (o *ContainerContainerDistributionResponse) SetBasePath(v string) { - o.BasePath = v -} - // GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. func (o *ContainerContainerDistributionResponse) GetPulpLabels() map[string]string { if o == nil || IsNil(o.PulpLabels) { @@ -240,46 +226,60 @@ func (o *ContainerContainerDistributionResponse) SetContentGuard(v string) { o.ContentGuard = &v } -// GetRepository returns the Repository field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContainerContainerDistributionResponse) GetRepository() string { - if o == nil || IsNil(o.Repository.Get()) { +// GetBasePath returns the BasePath field value +func (o *ContainerContainerDistributionResponse) GetBasePath() string { + if o == nil { var ret string return ret } - return *o.Repository.Get() + + return o.BasePath } -// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// GetBasePathOk returns a tuple with the BasePath field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContainerContainerDistributionResponse) GetRepositoryOk() (*string, bool) { +func (o *ContainerContainerDistributionResponse) GetBasePathOk() (*string, bool) { if o == nil { return nil, false } - return o.Repository.Get(), o.Repository.IsSet() + return &o.BasePath, true } -// HasRepository returns a boolean if a field has been set. -func (o *ContainerContainerDistributionResponse) HasRepository() bool { - if o != nil && o.Repository.IsSet() { - return true - } +// SetBasePath sets field value +func (o *ContainerContainerDistributionResponse) SetBasePath(v string) { + o.BasePath = v +} - return false +// GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. +func (o *ContainerContainerDistributionResponse) GetPulpCreated() time.Time { + if o == nil || IsNil(o.PulpCreated) { + var ret time.Time + return ret + } + return *o.PulpCreated } -// SetRepository gets a reference to the given NullableString and assigns it to the Repository field. -func (o *ContainerContainerDistributionResponse) SetRepository(v string) { - o.Repository.Set(&v) +// GetPulpCreatedOk returns a tuple with the PulpCreated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContainerContainerDistributionResponse) GetPulpCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpCreated) { + return nil, false + } + return o.PulpCreated, true } -// SetRepositoryNil sets the value for Repository to be an explicit nil -func (o *ContainerContainerDistributionResponse) SetRepositoryNil() { - o.Repository.Set(nil) + +// HasPulpCreated returns a boolean if a field has been set. +func (o *ContainerContainerDistributionResponse) HasPulpCreated() bool { + if o != nil && !IsNil(o.PulpCreated) { + return true + } + + return false } -// UnsetRepository ensures that no value is present for Repository, not even an explicit nil -func (o *ContainerContainerDistributionResponse) UnsetRepository() { - o.Repository.Unset() +// SetPulpCreated gets a reference to the given time.Time and assigns it to the PulpCreated field. +func (o *ContainerContainerDistributionResponse) SetPulpCreated(v time.Time) { + o.PulpCreated = &v } // GetRepositoryVersion returns the RepositoryVersion field value if set, zero value otherwise (both if not set or set to explicit null). @@ -472,19 +472,19 @@ func (o ContainerContainerDistributionResponse) MarshalJSON() ([]byte, error) { func (o ContainerContainerDistributionResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: pulp_created is readOnly + if o.Repository.IsSet() { + toSerialize["repository"] = o.Repository.Get() + } // skip: pulp_href is readOnly toSerialize["name"] = o.Name - toSerialize["base_path"] = o.BasePath if !IsNil(o.PulpLabels) { toSerialize["pulp_labels"] = o.PulpLabels } if !IsNil(o.ContentGuard) { toSerialize["content_guard"] = o.ContentGuard } - if o.Repository.IsSet() { - toSerialize["repository"] = o.Repository.Get() - } + toSerialize["base_path"] = o.BasePath + // skip: pulp_created is readOnly if o.RepositoryVersion.IsSet() { toSerialize["repository_version"] = o.RepositoryVersion.Get() } diff --git a/release/model_container_container_namespace.go b/release/model_container_container_namespace.go index 438cec3c..17e586f0 100644 --- a/release/model_container_container_namespace.go +++ b/release/model_container_container_namespace.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_container_container_namespace_response.go b/release/model_container_container_namespace_response.go index b5cd95f4..f26ae3cc 100644 --- a/release/model_container_container_namespace_response.go +++ b/release/model_container_container_namespace_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_container_container_push_repository.go b/release/model_container_container_push_repository.go index 9a61da42..9f8914f9 100644 --- a/release/model_container_container_push_repository.go +++ b/release/model_container_container_push_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -20,15 +20,15 @@ var _ MappedNullable = &ContainerContainerPushRepository{} // ContainerContainerPushRepository Serializer for Container Push Repositories. type ContainerContainerPushRepository struct { - // An optional description. - Description NullableString `json:"description,omitempty"` - // Retain X versions of the repository. Default is null which retains all versions. - RetainRepoVersions NullableInt64 `json:"retain_repo_versions,omitempty"` // A unique name for this repository. Name string `json:"name"` PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // A reference to an associated signing service. ManifestSigningService NullableString `json:"manifest_signing_service,omitempty"` + // An optional description. + Description NullableString `json:"description,omitempty"` + // Retain X versions of the repository. Default is null which retains all versions. + RetainRepoVersions NullableInt64 `json:"retain_repo_versions,omitempty"` } // NewContainerContainerPushRepository instantiates a new ContainerContainerPushRepository object @@ -49,90 +49,6 @@ func NewContainerContainerPushRepositoryWithDefaults() *ContainerContainerPushRe return &this } -// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContainerContainerPushRepository) GetDescription() string { - if o == nil || IsNil(o.Description.Get()) { - var ret string - return ret - } - return *o.Description.Get() -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContainerContainerPushRepository) GetDescriptionOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Description.Get(), o.Description.IsSet() -} - -// HasDescription returns a boolean if a field has been set. -func (o *ContainerContainerPushRepository) HasDescription() bool { - if o != nil && o.Description.IsSet() { - return true - } - - return false -} - -// SetDescription gets a reference to the given NullableString and assigns it to the Description field. -func (o *ContainerContainerPushRepository) SetDescription(v string) { - o.Description.Set(&v) -} -// SetDescriptionNil sets the value for Description to be an explicit nil -func (o *ContainerContainerPushRepository) SetDescriptionNil() { - o.Description.Set(nil) -} - -// UnsetDescription ensures that no value is present for Description, not even an explicit nil -func (o *ContainerContainerPushRepository) UnsetDescription() { - o.Description.Unset() -} - -// GetRetainRepoVersions returns the RetainRepoVersions field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContainerContainerPushRepository) GetRetainRepoVersions() int64 { - if o == nil || IsNil(o.RetainRepoVersions.Get()) { - var ret int64 - return ret - } - return *o.RetainRepoVersions.Get() -} - -// GetRetainRepoVersionsOk returns a tuple with the RetainRepoVersions field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContainerContainerPushRepository) GetRetainRepoVersionsOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.RetainRepoVersions.Get(), o.RetainRepoVersions.IsSet() -} - -// HasRetainRepoVersions returns a boolean if a field has been set. -func (o *ContainerContainerPushRepository) HasRetainRepoVersions() bool { - if o != nil && o.RetainRepoVersions.IsSet() { - return true - } - - return false -} - -// SetRetainRepoVersions gets a reference to the given NullableInt64 and assigns it to the RetainRepoVersions field. -func (o *ContainerContainerPushRepository) SetRetainRepoVersions(v int64) { - o.RetainRepoVersions.Set(&v) -} -// SetRetainRepoVersionsNil sets the value for RetainRepoVersions to be an explicit nil -func (o *ContainerContainerPushRepository) SetRetainRepoVersionsNil() { - o.RetainRepoVersions.Set(nil) -} - -// UnsetRetainRepoVersions ensures that no value is present for RetainRepoVersions, not even an explicit nil -func (o *ContainerContainerPushRepository) UnsetRetainRepoVersions() { - o.RetainRepoVersions.Unset() -} - // GetName returns the Name field value func (o *ContainerContainerPushRepository) GetName() string { if o == nil { @@ -231,6 +147,90 @@ func (o *ContainerContainerPushRepository) UnsetManifestSigningService() { o.ManifestSigningService.Unset() } +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ContainerContainerPushRepository) GetDescription() string { + if o == nil || IsNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContainerContainerPushRepository) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *ContainerContainerPushRepository) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *ContainerContainerPushRepository) SetDescription(v string) { + o.Description.Set(&v) +} +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *ContainerContainerPushRepository) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *ContainerContainerPushRepository) UnsetDescription() { + o.Description.Unset() +} + +// GetRetainRepoVersions returns the RetainRepoVersions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ContainerContainerPushRepository) GetRetainRepoVersions() int64 { + if o == nil || IsNil(o.RetainRepoVersions.Get()) { + var ret int64 + return ret + } + return *o.RetainRepoVersions.Get() +} + +// GetRetainRepoVersionsOk returns a tuple with the RetainRepoVersions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContainerContainerPushRepository) GetRetainRepoVersionsOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.RetainRepoVersions.Get(), o.RetainRepoVersions.IsSet() +} + +// HasRetainRepoVersions returns a boolean if a field has been set. +func (o *ContainerContainerPushRepository) HasRetainRepoVersions() bool { + if o != nil && o.RetainRepoVersions.IsSet() { + return true + } + + return false +} + +// SetRetainRepoVersions gets a reference to the given NullableInt64 and assigns it to the RetainRepoVersions field. +func (o *ContainerContainerPushRepository) SetRetainRepoVersions(v int64) { + o.RetainRepoVersions.Set(&v) +} +// SetRetainRepoVersionsNil sets the value for RetainRepoVersions to be an explicit nil +func (o *ContainerContainerPushRepository) SetRetainRepoVersionsNil() { + o.RetainRepoVersions.Set(nil) +} + +// UnsetRetainRepoVersions ensures that no value is present for RetainRepoVersions, not even an explicit nil +func (o *ContainerContainerPushRepository) UnsetRetainRepoVersions() { + o.RetainRepoVersions.Unset() +} + func (o ContainerContainerPushRepository) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -241,12 +241,6 @@ func (o ContainerContainerPushRepository) MarshalJSON() ([]byte, error) { func (o ContainerContainerPushRepository) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Description.IsSet() { - toSerialize["description"] = o.Description.Get() - } - if o.RetainRepoVersions.IsSet() { - toSerialize["retain_repo_versions"] = o.RetainRepoVersions.Get() - } toSerialize["name"] = o.Name if !IsNil(o.PulpLabels) { toSerialize["pulp_labels"] = o.PulpLabels @@ -254,6 +248,12 @@ func (o ContainerContainerPushRepository) ToMap() (map[string]interface{}, error if o.ManifestSigningService.IsSet() { toSerialize["manifest_signing_service"] = o.ManifestSigningService.Get() } + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } + if o.RetainRepoVersions.IsSet() { + toSerialize["retain_repo_versions"] = o.RetainRepoVersions.Get() + } return toSerialize, nil } diff --git a/release/model_container_container_push_repository_response.go b/release/model_container_container_push_repository_response.go index b07c3f7d..2141153a 100644 --- a/release/model_container_container_push_repository_response.go +++ b/release/model_container_container_push_repository_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -21,20 +21,20 @@ var _ MappedNullable = &ContainerContainerPushRepositoryResponse{} // ContainerContainerPushRepositoryResponse Serializer for Container Push Repositories. type ContainerContainerPushRepositoryResponse struct { - // An optional description. - Description NullableString `json:"description,omitempty"` - LatestVersionHref *string `json:"latest_version_href,omitempty"` - // Timestamp of creation. - PulpCreated *time.Time `json:"pulp_created,omitempty"` PulpHref *string `json:"pulp_href,omitempty"` - // Retain X versions of the repository. Default is null which retains all versions. - RetainRepoVersions NullableInt64 `json:"retain_repo_versions,omitempty"` VersionsHref *string `json:"versions_href,omitempty"` // A unique name for this repository. Name string `json:"name"` PulpLabels *map[string]string `json:"pulp_labels,omitempty"` + LatestVersionHref *string `json:"latest_version_href,omitempty"` // A reference to an associated signing service. ManifestSigningService NullableString `json:"manifest_signing_service,omitempty"` + // An optional description. + Description NullableString `json:"description,omitempty"` + // Timestamp of creation. + PulpCreated *time.Time `json:"pulp_created,omitempty"` + // Retain X versions of the repository. Default is null which retains all versions. + RetainRepoVersions NullableInt64 `json:"retain_repo_versions,omitempty"` } // NewContainerContainerPushRepositoryResponse instantiates a new ContainerContainerPushRepositoryResponse object @@ -55,112 +55,6 @@ func NewContainerContainerPushRepositoryResponseWithDefaults() *ContainerContain return &this } -// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContainerContainerPushRepositoryResponse) GetDescription() string { - if o == nil || IsNil(o.Description.Get()) { - var ret string - return ret - } - return *o.Description.Get() -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContainerContainerPushRepositoryResponse) GetDescriptionOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Description.Get(), o.Description.IsSet() -} - -// HasDescription returns a boolean if a field has been set. -func (o *ContainerContainerPushRepositoryResponse) HasDescription() bool { - if o != nil && o.Description.IsSet() { - return true - } - - return false -} - -// SetDescription gets a reference to the given NullableString and assigns it to the Description field. -func (o *ContainerContainerPushRepositoryResponse) SetDescription(v string) { - o.Description.Set(&v) -} -// SetDescriptionNil sets the value for Description to be an explicit nil -func (o *ContainerContainerPushRepositoryResponse) SetDescriptionNil() { - o.Description.Set(nil) -} - -// UnsetDescription ensures that no value is present for Description, not even an explicit nil -func (o *ContainerContainerPushRepositoryResponse) UnsetDescription() { - o.Description.Unset() -} - -// GetLatestVersionHref returns the LatestVersionHref field value if set, zero value otherwise. -func (o *ContainerContainerPushRepositoryResponse) GetLatestVersionHref() string { - if o == nil || IsNil(o.LatestVersionHref) { - var ret string - return ret - } - return *o.LatestVersionHref -} - -// GetLatestVersionHrefOk returns a tuple with the LatestVersionHref field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ContainerContainerPushRepositoryResponse) GetLatestVersionHrefOk() (*string, bool) { - if o == nil || IsNil(o.LatestVersionHref) { - return nil, false - } - return o.LatestVersionHref, true -} - -// HasLatestVersionHref returns a boolean if a field has been set. -func (o *ContainerContainerPushRepositoryResponse) HasLatestVersionHref() bool { - if o != nil && !IsNil(o.LatestVersionHref) { - return true - } - - return false -} - -// SetLatestVersionHref gets a reference to the given string and assigns it to the LatestVersionHref field. -func (o *ContainerContainerPushRepositoryResponse) SetLatestVersionHref(v string) { - o.LatestVersionHref = &v -} - -// GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. -func (o *ContainerContainerPushRepositoryResponse) GetPulpCreated() time.Time { - if o == nil || IsNil(o.PulpCreated) { - var ret time.Time - return ret - } - return *o.PulpCreated -} - -// GetPulpCreatedOk returns a tuple with the PulpCreated field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ContainerContainerPushRepositoryResponse) GetPulpCreatedOk() (*time.Time, bool) { - if o == nil || IsNil(o.PulpCreated) { - return nil, false - } - return o.PulpCreated, true -} - -// HasPulpCreated returns a boolean if a field has been set. -func (o *ContainerContainerPushRepositoryResponse) HasPulpCreated() bool { - if o != nil && !IsNil(o.PulpCreated) { - return true - } - - return false -} - -// SetPulpCreated gets a reference to the given time.Time and assigns it to the PulpCreated field. -func (o *ContainerContainerPushRepositoryResponse) SetPulpCreated(v time.Time) { - o.PulpCreated = &v -} - // GetPulpHref returns the PulpHref field value if set, zero value otherwise. func (o *ContainerContainerPushRepositoryResponse) GetPulpHref() string { if o == nil || IsNil(o.PulpHref) { @@ -193,48 +87,6 @@ func (o *ContainerContainerPushRepositoryResponse) SetPulpHref(v string) { o.PulpHref = &v } -// GetRetainRepoVersions returns the RetainRepoVersions field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContainerContainerPushRepositoryResponse) GetRetainRepoVersions() int64 { - if o == nil || IsNil(o.RetainRepoVersions.Get()) { - var ret int64 - return ret - } - return *o.RetainRepoVersions.Get() -} - -// GetRetainRepoVersionsOk returns a tuple with the RetainRepoVersions field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContainerContainerPushRepositoryResponse) GetRetainRepoVersionsOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.RetainRepoVersions.Get(), o.RetainRepoVersions.IsSet() -} - -// HasRetainRepoVersions returns a boolean if a field has been set. -func (o *ContainerContainerPushRepositoryResponse) HasRetainRepoVersions() bool { - if o != nil && o.RetainRepoVersions.IsSet() { - return true - } - - return false -} - -// SetRetainRepoVersions gets a reference to the given NullableInt64 and assigns it to the RetainRepoVersions field. -func (o *ContainerContainerPushRepositoryResponse) SetRetainRepoVersions(v int64) { - o.RetainRepoVersions.Set(&v) -} -// SetRetainRepoVersionsNil sets the value for RetainRepoVersions to be an explicit nil -func (o *ContainerContainerPushRepositoryResponse) SetRetainRepoVersionsNil() { - o.RetainRepoVersions.Set(nil) -} - -// UnsetRetainRepoVersions ensures that no value is present for RetainRepoVersions, not even an explicit nil -func (o *ContainerContainerPushRepositoryResponse) UnsetRetainRepoVersions() { - o.RetainRepoVersions.Unset() -} - // GetVersionsHref returns the VersionsHref field value if set, zero value otherwise. func (o *ContainerContainerPushRepositoryResponse) GetVersionsHref() string { if o == nil || IsNil(o.VersionsHref) { @@ -323,6 +175,38 @@ func (o *ContainerContainerPushRepositoryResponse) SetPulpLabels(v map[string]st o.PulpLabels = &v } +// GetLatestVersionHref returns the LatestVersionHref field value if set, zero value otherwise. +func (o *ContainerContainerPushRepositoryResponse) GetLatestVersionHref() string { + if o == nil || IsNil(o.LatestVersionHref) { + var ret string + return ret + } + return *o.LatestVersionHref +} + +// GetLatestVersionHrefOk returns a tuple with the LatestVersionHref field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContainerContainerPushRepositoryResponse) GetLatestVersionHrefOk() (*string, bool) { + if o == nil || IsNil(o.LatestVersionHref) { + return nil, false + } + return o.LatestVersionHref, true +} + +// HasLatestVersionHref returns a boolean if a field has been set. +func (o *ContainerContainerPushRepositoryResponse) HasLatestVersionHref() bool { + if o != nil && !IsNil(o.LatestVersionHref) { + return true + } + + return false +} + +// SetLatestVersionHref gets a reference to the given string and assigns it to the LatestVersionHref field. +func (o *ContainerContainerPushRepositoryResponse) SetLatestVersionHref(v string) { + o.LatestVersionHref = &v +} + // GetManifestSigningService returns the ManifestSigningService field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ContainerContainerPushRepositoryResponse) GetManifestSigningService() string { if o == nil || IsNil(o.ManifestSigningService.Get()) { @@ -365,6 +249,122 @@ func (o *ContainerContainerPushRepositoryResponse) UnsetManifestSigningService() o.ManifestSigningService.Unset() } +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ContainerContainerPushRepositoryResponse) GetDescription() string { + if o == nil || IsNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContainerContainerPushRepositoryResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *ContainerContainerPushRepositoryResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *ContainerContainerPushRepositoryResponse) SetDescription(v string) { + o.Description.Set(&v) +} +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *ContainerContainerPushRepositoryResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *ContainerContainerPushRepositoryResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetPulpCreated returns the PulpCreated field value if set, zero value otherwise. +func (o *ContainerContainerPushRepositoryResponse) GetPulpCreated() time.Time { + if o == nil || IsNil(o.PulpCreated) { + var ret time.Time + return ret + } + return *o.PulpCreated +} + +// GetPulpCreatedOk returns a tuple with the PulpCreated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContainerContainerPushRepositoryResponse) GetPulpCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.PulpCreated) { + return nil, false + } + return o.PulpCreated, true +} + +// HasPulpCreated returns a boolean if a field has been set. +func (o *ContainerContainerPushRepositoryResponse) HasPulpCreated() bool { + if o != nil && !IsNil(o.PulpCreated) { + return true + } + + return false +} + +// SetPulpCreated gets a reference to the given time.Time and assigns it to the PulpCreated field. +func (o *ContainerContainerPushRepositoryResponse) SetPulpCreated(v time.Time) { + o.PulpCreated = &v +} + +// GetRetainRepoVersions returns the RetainRepoVersions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ContainerContainerPushRepositoryResponse) GetRetainRepoVersions() int64 { + if o == nil || IsNil(o.RetainRepoVersions.Get()) { + var ret int64 + return ret + } + return *o.RetainRepoVersions.Get() +} + +// GetRetainRepoVersionsOk returns a tuple with the RetainRepoVersions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContainerContainerPushRepositoryResponse) GetRetainRepoVersionsOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.RetainRepoVersions.Get(), o.RetainRepoVersions.IsSet() +} + +// HasRetainRepoVersions returns a boolean if a field has been set. +func (o *ContainerContainerPushRepositoryResponse) HasRetainRepoVersions() bool { + if o != nil && o.RetainRepoVersions.IsSet() { + return true + } + + return false +} + +// SetRetainRepoVersions gets a reference to the given NullableInt64 and assigns it to the RetainRepoVersions field. +func (o *ContainerContainerPushRepositoryResponse) SetRetainRepoVersions(v int64) { + o.RetainRepoVersions.Set(&v) +} +// SetRetainRepoVersionsNil sets the value for RetainRepoVersions to be an explicit nil +func (o *ContainerContainerPushRepositoryResponse) SetRetainRepoVersionsNil() { + o.RetainRepoVersions.Set(nil) +} + +// UnsetRetainRepoVersions ensures that no value is present for RetainRepoVersions, not even an explicit nil +func (o *ContainerContainerPushRepositoryResponse) UnsetRetainRepoVersions() { + o.RetainRepoVersions.Unset() +} + func (o ContainerContainerPushRepositoryResponse) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -375,23 +375,23 @@ func (o ContainerContainerPushRepositoryResponse) MarshalJSON() ([]byte, error) func (o ContainerContainerPushRepositoryResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Description.IsSet() { - toSerialize["description"] = o.Description.Get() - } - // skip: latest_version_href is readOnly - // skip: pulp_created is readOnly // skip: pulp_href is readOnly - if o.RetainRepoVersions.IsSet() { - toSerialize["retain_repo_versions"] = o.RetainRepoVersions.Get() - } // skip: versions_href is readOnly toSerialize["name"] = o.Name if !IsNil(o.PulpLabels) { toSerialize["pulp_labels"] = o.PulpLabels } + // skip: latest_version_href is readOnly if o.ManifestSigningService.IsSet() { toSerialize["manifest_signing_service"] = o.ManifestSigningService.Get() } + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } + // skip: pulp_created is readOnly + if o.RetainRepoVersions.IsSet() { + toSerialize["retain_repo_versions"] = o.RetainRepoVersions.Get() + } return toSerialize, nil } diff --git a/release/model_container_container_remote.go b/release/model_container_container_remote.go index 08d1f8be..8bb40a72 100644 --- a/release/model_container_container_remote.go +++ b/release/model_container_container_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_container_container_remote_response.go b/release/model_container_container_remote_response.go index 6e542b3c..900b720c 100644 --- a/release/model_container_container_remote_response.go +++ b/release/model_container_container_remote_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_container_container_repository.go b/release/model_container_container_repository.go index 1862e85d..eac31c5d 100644 --- a/release/model_container_container_repository.go +++ b/release/model_container_container_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_container_container_repository_response.go b/release/model_container_container_repository_response.go index 0143f892..9740fef4 100644 --- a/release/model_container_container_repository_response.go +++ b/release/model_container_container_repository_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_container_manifest_response.go b/release/model_container_manifest_response.go index 3bebb50d..40516fc7 100644 --- a/release/model_container_manifest_response.go +++ b/release/model_container_manifest_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_container_manifest_signature_response.go b/release/model_container_manifest_signature_response.go index 279525d5..851daf3c 100644 --- a/release/model_container_manifest_signature_response.go +++ b/release/model_container_manifest_signature_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_container_repository_sync_url.go b/release/model_container_repository_sync_url.go index 0c8ceb5a..b4b6acdd 100644 --- a/release/model_container_repository_sync_url.go +++ b/release/model_container_repository_sync_url.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_container_tag_response.go b/release/model_container_tag_response.go index 4f627396..78a5d4df 100644 --- a/release/model_container_tag_response.go +++ b/release/model_container_tag_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_content_app_status_response.go b/release/model_content_app_status_response.go index e3792204..9d2c9214 100644 --- a/release/model_content_app_status_response.go +++ b/release/model_content_app_status_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_content_guard_response.go b/release/model_content_guard_response.go index 77abac0d..c2f49a95 100644 --- a/release/model_content_guard_response.go +++ b/release/model_content_guard_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_content_redirect_content_guard.go b/release/model_content_redirect_content_guard.go index 52f91be7..22709053 100644 --- a/release/model_content_redirect_content_guard.go +++ b/release/model_content_redirect_content_guard.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_content_redirect_content_guard_response.go b/release/model_content_redirect_content_guard_response.go index f5603fbf..1277af58 100644 --- a/release/model_content_redirect_content_guard_response.go +++ b/release/model_content_redirect_content_guard_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_content_settings_response.go b/release/model_content_settings_response.go index 52cb0698..4fa2d487 100644 --- a/release/model_content_settings_response.go +++ b/release/model_content_settings_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_content_summary_response.go b/release/model_content_summary_response.go index a5e73b0c..def5bf4f 100644 --- a/release/model_content_summary_response.go +++ b/release/model_content_summary_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_copy.go b/release/model_copy.go index 5a0c6039..b0307cbf 100644 --- a/release/model_copy.go +++ b/release/model_copy.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_database_connection_response.go b/release/model_database_connection_response.go index 581f91c0..a54132db 100644 --- a/release/model_database_connection_response.go +++ b/release/model_database_connection_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_apt_distribution.go b/release/model_deb_apt_distribution.go index 0aba620d..4a8fff84 100644 --- a/release/model_deb_apt_distribution.go +++ b/release/model_deb_apt_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_apt_distribution_response.go b/release/model_deb_apt_distribution_response.go index 2ffb59ce..9922e4e2 100644 --- a/release/model_deb_apt_distribution_response.go +++ b/release/model_deb_apt_distribution_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_apt_publication.go b/release/model_deb_apt_publication.go index 887910a4..44d3627b 100644 --- a/release/model_deb_apt_publication.go +++ b/release/model_deb_apt_publication.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_apt_publication_response.go b/release/model_deb_apt_publication_response.go index 42e0e945..211ee998 100644 --- a/release/model_deb_apt_publication_response.go +++ b/release/model_deb_apt_publication_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_apt_remote.go b/release/model_deb_apt_remote.go index e16bc8c8..675d3442 100644 --- a/release/model_deb_apt_remote.go +++ b/release/model_deb_apt_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_apt_remote_response.go b/release/model_deb_apt_remote_response.go index 7337deb7..cfb6e1d6 100644 --- a/release/model_deb_apt_remote_response.go +++ b/release/model_deb_apt_remote_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_apt_repository.go b/release/model_deb_apt_repository.go index 7f8a4a8e..0d036770 100644 --- a/release/model_deb_apt_repository.go +++ b/release/model_deb_apt_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_apt_repository_response.go b/release/model_deb_apt_repository_response.go index c615d9f0..3ac26637 100644 --- a/release/model_deb_apt_repository_response.go +++ b/release/model_deb_apt_repository_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_base_package.go b/release/model_deb_base_package.go new file mode 100644 index 00000000..ba9bc7a1 --- /dev/null +++ b/release/model_deb_base_package.go @@ -0,0 +1,277 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the DebBasePackage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DebBasePackage{} + +// DebBasePackage A Serializer for InstallerPackage. +type DebBasePackage struct { + // Artifact file representing the physical content + Artifact *string `json:"artifact,omitempty"` + // Path where the artifact is located relative to distributions base_path + RelativePath *string `json:"relative_path,omitempty"` + // An uploaded file that may be turned into the artifact of the content unit. + File **os.File `json:"file,omitempty"` + // A URI of a repository the new content unit should be associated with. + Repository *string `json:"repository,omitempty"` + // An uncommitted upload that may be turned into the artifact of the content unit. + Upload *string `json:"upload,omitempty"` +} + +// NewDebBasePackage instantiates a new DebBasePackage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDebBasePackage() *DebBasePackage { + this := DebBasePackage{} + return &this +} + +// NewDebBasePackageWithDefaults instantiates a new DebBasePackage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDebBasePackageWithDefaults() *DebBasePackage { + this := DebBasePackage{} + return &this +} + +// GetArtifact returns the Artifact field value if set, zero value otherwise. +func (o *DebBasePackage) GetArtifact() string { + if o == nil || IsNil(o.Artifact) { + var ret string + return ret + } + return *o.Artifact +} + +// GetArtifactOk returns a tuple with the Artifact field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DebBasePackage) GetArtifactOk() (*string, bool) { + if o == nil || IsNil(o.Artifact) { + return nil, false + } + return o.Artifact, true +} + +// HasArtifact returns a boolean if a field has been set. +func (o *DebBasePackage) HasArtifact() bool { + if o != nil && !IsNil(o.Artifact) { + return true + } + + return false +} + +// SetArtifact gets a reference to the given string and assigns it to the Artifact field. +func (o *DebBasePackage) SetArtifact(v string) { + o.Artifact = &v +} + +// GetRelativePath returns the RelativePath field value if set, zero value otherwise. +func (o *DebBasePackage) GetRelativePath() string { + if o == nil || IsNil(o.RelativePath) { + var ret string + return ret + } + return *o.RelativePath +} + +// GetRelativePathOk returns a tuple with the RelativePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DebBasePackage) GetRelativePathOk() (*string, bool) { + if o == nil || IsNil(o.RelativePath) { + return nil, false + } + return o.RelativePath, true +} + +// HasRelativePath returns a boolean if a field has been set. +func (o *DebBasePackage) HasRelativePath() bool { + if o != nil && !IsNil(o.RelativePath) { + return true + } + + return false +} + +// SetRelativePath gets a reference to the given string and assigns it to the RelativePath field. +func (o *DebBasePackage) SetRelativePath(v string) { + o.RelativePath = &v +} + +// GetFile returns the File field value if set, zero value otherwise. +func (o *DebBasePackage) GetFile() *os.File { + if o == nil || IsNil(o.File) { + var ret *os.File + return ret + } + return *o.File +} + +// GetFileOk returns a tuple with the File field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DebBasePackage) GetFileOk() (**os.File, bool) { + if o == nil || IsNil(o.File) { + return nil, false + } + return o.File, true +} + +// HasFile returns a boolean if a field has been set. +func (o *DebBasePackage) HasFile() bool { + if o != nil && !IsNil(o.File) { + return true + } + + return false +} + +// SetFile gets a reference to the given *os.File and assigns it to the File field. +func (o *DebBasePackage) SetFile(v *os.File) { + o.File = &v +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *DebBasePackage) GetRepository() string { + if o == nil || IsNil(o.Repository) { + var ret string + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DebBasePackage) GetRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.Repository) { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *DebBasePackage) HasRepository() bool { + if o != nil && !IsNil(o.Repository) { + return true + } + + return false +} + +// SetRepository gets a reference to the given string and assigns it to the Repository field. +func (o *DebBasePackage) SetRepository(v string) { + o.Repository = &v +} + +// GetUpload returns the Upload field value if set, zero value otherwise. +func (o *DebBasePackage) GetUpload() string { + if o == nil || IsNil(o.Upload) { + var ret string + return ret + } + return *o.Upload +} + +// GetUploadOk returns a tuple with the Upload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DebBasePackage) GetUploadOk() (*string, bool) { + if o == nil || IsNil(o.Upload) { + return nil, false + } + return o.Upload, true +} + +// HasUpload returns a boolean if a field has been set. +func (o *DebBasePackage) HasUpload() bool { + if o != nil && !IsNil(o.Upload) { + return true + } + + return false +} + +// SetUpload gets a reference to the given string and assigns it to the Upload field. +func (o *DebBasePackage) SetUpload(v string) { + o.Upload = &v +} + +func (o DebBasePackage) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DebBasePackage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Artifact) { + toSerialize["artifact"] = o.Artifact + } + if !IsNil(o.RelativePath) { + toSerialize["relative_path"] = o.RelativePath + } + if !IsNil(o.File) { + toSerialize["file"] = o.File + } + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + if !IsNil(o.Upload) { + toSerialize["upload"] = o.Upload + } + return toSerialize, nil +} + +type NullableDebBasePackage struct { + value *DebBasePackage + isSet bool +} + +func (v NullableDebBasePackage) Get() *DebBasePackage { + return v.value +} + +func (v *NullableDebBasePackage) Set(val *DebBasePackage) { + v.value = val + v.isSet = true +} + +func (v NullableDebBasePackage) IsSet() bool { + return v.isSet +} + +func (v *NullableDebBasePackage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDebBasePackage(val *DebBasePackage) *NullableDebBasePackage { + return &NullableDebBasePackage{value: val, isSet: true} +} + +func (v NullableDebBasePackage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDebBasePackage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_deb_base_package_response.go b/release/model_deb_base_package_response.go index 529c1850..702b83e4 100644 --- a/release/model_deb_base_package_response.go +++ b/release/model_deb_base_package_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_generic_content.go b/release/model_deb_generic_content.go new file mode 100644 index 00000000..18ca4fb5 --- /dev/null +++ b/release/model_deb_generic_content.go @@ -0,0 +1,268 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the DebGenericContent type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DebGenericContent{} + +// DebGenericContent A serializer for GenericContent. +type DebGenericContent struct { + // Artifact file representing the physical content + Artifact *string `json:"artifact,omitempty"` + // Path where the artifact is located relative to distributions base_path + RelativePath string `json:"relative_path"` + // An uploaded file that may be turned into the artifact of the content unit. + File **os.File `json:"file,omitempty"` + // A URI of a repository the new content unit should be associated with. + Repository *string `json:"repository,omitempty"` + // An uncommitted upload that may be turned into the artifact of the content unit. + Upload *string `json:"upload,omitempty"` +} + +// NewDebGenericContent instantiates a new DebGenericContent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDebGenericContent(relativePath string) *DebGenericContent { + this := DebGenericContent{} + this.RelativePath = relativePath + return &this +} + +// NewDebGenericContentWithDefaults instantiates a new DebGenericContent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDebGenericContentWithDefaults() *DebGenericContent { + this := DebGenericContent{} + return &this +} + +// GetArtifact returns the Artifact field value if set, zero value otherwise. +func (o *DebGenericContent) GetArtifact() string { + if o == nil || IsNil(o.Artifact) { + var ret string + return ret + } + return *o.Artifact +} + +// GetArtifactOk returns a tuple with the Artifact field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DebGenericContent) GetArtifactOk() (*string, bool) { + if o == nil || IsNil(o.Artifact) { + return nil, false + } + return o.Artifact, true +} + +// HasArtifact returns a boolean if a field has been set. +func (o *DebGenericContent) HasArtifact() bool { + if o != nil && !IsNil(o.Artifact) { + return true + } + + return false +} + +// SetArtifact gets a reference to the given string and assigns it to the Artifact field. +func (o *DebGenericContent) SetArtifact(v string) { + o.Artifact = &v +} + +// GetRelativePath returns the RelativePath field value +func (o *DebGenericContent) GetRelativePath() string { + if o == nil { + var ret string + return ret + } + + return o.RelativePath +} + +// GetRelativePathOk returns a tuple with the RelativePath field value +// and a boolean to check if the value has been set. +func (o *DebGenericContent) GetRelativePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RelativePath, true +} + +// SetRelativePath sets field value +func (o *DebGenericContent) SetRelativePath(v string) { + o.RelativePath = v +} + +// GetFile returns the File field value if set, zero value otherwise. +func (o *DebGenericContent) GetFile() *os.File { + if o == nil || IsNil(o.File) { + var ret *os.File + return ret + } + return *o.File +} + +// GetFileOk returns a tuple with the File field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DebGenericContent) GetFileOk() (**os.File, bool) { + if o == nil || IsNil(o.File) { + return nil, false + } + return o.File, true +} + +// HasFile returns a boolean if a field has been set. +func (o *DebGenericContent) HasFile() bool { + if o != nil && !IsNil(o.File) { + return true + } + + return false +} + +// SetFile gets a reference to the given *os.File and assigns it to the File field. +func (o *DebGenericContent) SetFile(v *os.File) { + o.File = &v +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *DebGenericContent) GetRepository() string { + if o == nil || IsNil(o.Repository) { + var ret string + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DebGenericContent) GetRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.Repository) { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *DebGenericContent) HasRepository() bool { + if o != nil && !IsNil(o.Repository) { + return true + } + + return false +} + +// SetRepository gets a reference to the given string and assigns it to the Repository field. +func (o *DebGenericContent) SetRepository(v string) { + o.Repository = &v +} + +// GetUpload returns the Upload field value if set, zero value otherwise. +func (o *DebGenericContent) GetUpload() string { + if o == nil || IsNil(o.Upload) { + var ret string + return ret + } + return *o.Upload +} + +// GetUploadOk returns a tuple with the Upload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DebGenericContent) GetUploadOk() (*string, bool) { + if o == nil || IsNil(o.Upload) { + return nil, false + } + return o.Upload, true +} + +// HasUpload returns a boolean if a field has been set. +func (o *DebGenericContent) HasUpload() bool { + if o != nil && !IsNil(o.Upload) { + return true + } + + return false +} + +// SetUpload gets a reference to the given string and assigns it to the Upload field. +func (o *DebGenericContent) SetUpload(v string) { + o.Upload = &v +} + +func (o DebGenericContent) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DebGenericContent) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Artifact) { + toSerialize["artifact"] = o.Artifact + } + toSerialize["relative_path"] = o.RelativePath + if !IsNil(o.File) { + toSerialize["file"] = o.File + } + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + if !IsNil(o.Upload) { + toSerialize["upload"] = o.Upload + } + return toSerialize, nil +} + +type NullableDebGenericContent struct { + value *DebGenericContent + isSet bool +} + +func (v NullableDebGenericContent) Get() *DebGenericContent { + return v.value +} + +func (v *NullableDebGenericContent) Set(val *DebGenericContent) { + v.value = val + v.isSet = true +} + +func (v NullableDebGenericContent) IsSet() bool { + return v.isSet +} + +func (v *NullableDebGenericContent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDebGenericContent(val *DebGenericContent) *NullableDebGenericContent { + return &NullableDebGenericContent{value: val, isSet: true} +} + +func (v NullableDebGenericContent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDebGenericContent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_deb_generic_content_response.go b/release/model_deb_generic_content_response.go index 279698f6..b78b5943 100644 --- a/release/model_deb_generic_content_response.go +++ b/release/model_deb_generic_content_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_installer_file_index.go b/release/model_deb_installer_file_index.go index 49fc3a61..4f210473 100644 --- a/release/model_deb_installer_file_index.go +++ b/release/model_deb_installer_file_index.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_installer_file_index_response.go b/release/model_deb_installer_file_index_response.go index 87442dde..04ec87b0 100644 --- a/release/model_deb_installer_file_index_response.go +++ b/release/model_deb_installer_file_index_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_package_index.go b/release/model_deb_package_index.go index 993efde6..9ecf3625 100644 --- a/release/model_deb_package_index.go +++ b/release/model_deb_package_index.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_package_index_response.go b/release/model_deb_package_index_response.go index 0202435a..a7620444 100644 --- a/release/model_deb_package_index_response.go +++ b/release/model_deb_package_index_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_package_release_component.go b/release/model_deb_package_release_component.go index 77abd19b..4e4aa311 100644 --- a/release/model_deb_package_release_component.go +++ b/release/model_deb_package_release_component.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_package_release_component_response.go b/release/model_deb_package_release_component_response.go index ebfb8638..bcb34856 100644 --- a/release/model_deb_package_release_component_response.go +++ b/release/model_deb_package_release_component_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_release.go b/release/model_deb_release.go index 16ed1a6a..8a817544 100644 --- a/release/model_deb_release.go +++ b/release/model_deb_release.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_release_architecture.go b/release/model_deb_release_architecture.go index 3c71789e..35776f6c 100644 --- a/release/model_deb_release_architecture.go +++ b/release/model_deb_release_architecture.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_release_architecture_response.go b/release/model_deb_release_architecture_response.go index 636736d5..6dcb284d 100644 --- a/release/model_deb_release_architecture_response.go +++ b/release/model_deb_release_architecture_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_release_component.go b/release/model_deb_release_component.go index 96a5ee68..849161fc 100644 --- a/release/model_deb_release_component.go +++ b/release/model_deb_release_component.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_release_component_response.go b/release/model_deb_release_component_response.go index c4f8d007..69ff33be 100644 --- a/release/model_deb_release_component_response.go +++ b/release/model_deb_release_component_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_release_file.go b/release/model_deb_release_file.go index 9b372aa2..87ca9f8d 100644 --- a/release/model_deb_release_file.go +++ b/release/model_deb_release_file.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_release_file_response.go b/release/model_deb_release_file_response.go index c4e394b3..3d75a4df 100644 --- a/release/model_deb_release_file_response.go +++ b/release/model_deb_release_file_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_release_response.go b/release/model_deb_release_response.go index 556bc3b0..0f9b526e 100644 --- a/release/model_deb_release_response.go +++ b/release/model_deb_release_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_verbatim_publication.go b/release/model_deb_verbatim_publication.go index 00e9a5c1..31416288 100644 --- a/release/model_deb_verbatim_publication.go +++ b/release/model_deb_verbatim_publication.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_deb_verbatim_publication_response.go b/release/model_deb_verbatim_publication_response.go index 31ba971f..c09df292 100644 --- a/release/model_deb_verbatim_publication_response.go +++ b/release/model_deb_verbatim_publication_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_distribution_response.go b/release/model_distribution_response.go index 14d4eece..eecd529d 100644 --- a/release/model_distribution_response.go +++ b/release/model_distribution_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_domain.go b/release/model_domain.go index 5b895e35..69a43874 100644 --- a/release/model_domain.go +++ b/release/model_domain.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_domain_response.go b/release/model_domain_response.go index befe92ef..fbfbcf1e 100644 --- a/release/model_domain_response.go +++ b/release/model_domain_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_evaluation_response.go b/release/model_evaluation_response.go index 8cd1e7d4..8e9fd2d1 100644 --- a/release/model_evaluation_response.go +++ b/release/model_evaluation_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_exclude_platforms_enum.go b/release/model_exclude_platforms_enum.go index 17aa38ac..0adec234 100644 --- a/release/model_exclude_platforms_enum.go +++ b/release/model_exclude_platforms_enum.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_file_file_alternate_content_source.go b/release/model_file_file_alternate_content_source.go index 730277ee..d0344856 100644 --- a/release/model_file_file_alternate_content_source.go +++ b/release/model_file_file_alternate_content_source.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_file_file_alternate_content_source_response.go b/release/model_file_file_alternate_content_source_response.go index 6ea900a8..7f598575 100644 --- a/release/model_file_file_alternate_content_source_response.go +++ b/release/model_file_file_alternate_content_source_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_file_file_content.go b/release/model_file_file_content.go new file mode 100644 index 00000000..aa4428d1 --- /dev/null +++ b/release/model_file_file_content.go @@ -0,0 +1,268 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the FileFileContent type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FileFileContent{} + +// FileFileContent Serializer for File Content. +type FileFileContent struct { + // Artifact file representing the physical content + Artifact *string `json:"artifact,omitempty"` + // Path where the artifact is located relative to distributions base_path + RelativePath string `json:"relative_path"` + // An uploaded file that may be turned into the artifact of the content unit. + File **os.File `json:"file,omitempty"` + // A URI of a repository the new content unit should be associated with. + Repository *string `json:"repository,omitempty"` + // An uncommitted upload that may be turned into the artifact of the content unit. + Upload *string `json:"upload,omitempty"` +} + +// NewFileFileContent instantiates a new FileFileContent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFileFileContent(relativePath string) *FileFileContent { + this := FileFileContent{} + this.RelativePath = relativePath + return &this +} + +// NewFileFileContentWithDefaults instantiates a new FileFileContent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFileFileContentWithDefaults() *FileFileContent { + this := FileFileContent{} + return &this +} + +// GetArtifact returns the Artifact field value if set, zero value otherwise. +func (o *FileFileContent) GetArtifact() string { + if o == nil || IsNil(o.Artifact) { + var ret string + return ret + } + return *o.Artifact +} + +// GetArtifactOk returns a tuple with the Artifact field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FileFileContent) GetArtifactOk() (*string, bool) { + if o == nil || IsNil(o.Artifact) { + return nil, false + } + return o.Artifact, true +} + +// HasArtifact returns a boolean if a field has been set. +func (o *FileFileContent) HasArtifact() bool { + if o != nil && !IsNil(o.Artifact) { + return true + } + + return false +} + +// SetArtifact gets a reference to the given string and assigns it to the Artifact field. +func (o *FileFileContent) SetArtifact(v string) { + o.Artifact = &v +} + +// GetRelativePath returns the RelativePath field value +func (o *FileFileContent) GetRelativePath() string { + if o == nil { + var ret string + return ret + } + + return o.RelativePath +} + +// GetRelativePathOk returns a tuple with the RelativePath field value +// and a boolean to check if the value has been set. +func (o *FileFileContent) GetRelativePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RelativePath, true +} + +// SetRelativePath sets field value +func (o *FileFileContent) SetRelativePath(v string) { + o.RelativePath = v +} + +// GetFile returns the File field value if set, zero value otherwise. +func (o *FileFileContent) GetFile() *os.File { + if o == nil || IsNil(o.File) { + var ret *os.File + return ret + } + return *o.File +} + +// GetFileOk returns a tuple with the File field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FileFileContent) GetFileOk() (**os.File, bool) { + if o == nil || IsNil(o.File) { + return nil, false + } + return o.File, true +} + +// HasFile returns a boolean if a field has been set. +func (o *FileFileContent) HasFile() bool { + if o != nil && !IsNil(o.File) { + return true + } + + return false +} + +// SetFile gets a reference to the given *os.File and assigns it to the File field. +func (o *FileFileContent) SetFile(v *os.File) { + o.File = &v +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *FileFileContent) GetRepository() string { + if o == nil || IsNil(o.Repository) { + var ret string + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FileFileContent) GetRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.Repository) { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *FileFileContent) HasRepository() bool { + if o != nil && !IsNil(o.Repository) { + return true + } + + return false +} + +// SetRepository gets a reference to the given string and assigns it to the Repository field. +func (o *FileFileContent) SetRepository(v string) { + o.Repository = &v +} + +// GetUpload returns the Upload field value if set, zero value otherwise. +func (o *FileFileContent) GetUpload() string { + if o == nil || IsNil(o.Upload) { + var ret string + return ret + } + return *o.Upload +} + +// GetUploadOk returns a tuple with the Upload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FileFileContent) GetUploadOk() (*string, bool) { + if o == nil || IsNil(o.Upload) { + return nil, false + } + return o.Upload, true +} + +// HasUpload returns a boolean if a field has been set. +func (o *FileFileContent) HasUpload() bool { + if o != nil && !IsNil(o.Upload) { + return true + } + + return false +} + +// SetUpload gets a reference to the given string and assigns it to the Upload field. +func (o *FileFileContent) SetUpload(v string) { + o.Upload = &v +} + +func (o FileFileContent) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FileFileContent) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Artifact) { + toSerialize["artifact"] = o.Artifact + } + toSerialize["relative_path"] = o.RelativePath + if !IsNil(o.File) { + toSerialize["file"] = o.File + } + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + if !IsNil(o.Upload) { + toSerialize["upload"] = o.Upload + } + return toSerialize, nil +} + +type NullableFileFileContent struct { + value *FileFileContent + isSet bool +} + +func (v NullableFileFileContent) Get() *FileFileContent { + return v.value +} + +func (v *NullableFileFileContent) Set(val *FileFileContent) { + v.value = val + v.isSet = true +} + +func (v NullableFileFileContent) IsSet() bool { + return v.isSet +} + +func (v *NullableFileFileContent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFileFileContent(val *FileFileContent) *NullableFileFileContent { + return &NullableFileFileContent{value: val, isSet: true} +} + +func (v NullableFileFileContent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFileFileContent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_file_file_content_response.go b/release/model_file_file_content_response.go index 4f6d387f..9ce4abc3 100644 --- a/release/model_file_file_content_response.go +++ b/release/model_file_file_content_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_file_file_distribution.go b/release/model_file_file_distribution.go index 22123b5e..25c97c42 100644 --- a/release/model_file_file_distribution.go +++ b/release/model_file_file_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_file_file_distribution_response.go b/release/model_file_file_distribution_response.go index 8b6886e4..dd5d7d94 100644 --- a/release/model_file_file_distribution_response.go +++ b/release/model_file_file_distribution_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_file_file_publication.go b/release/model_file_file_publication.go index ab668b80..72c53e8c 100644 --- a/release/model_file_file_publication.go +++ b/release/model_file_file_publication.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_file_file_publication_response.go b/release/model_file_file_publication_response.go index aa6f48fe..36a4b17f 100644 --- a/release/model_file_file_publication_response.go +++ b/release/model_file_file_publication_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_file_file_remote.go b/release/model_file_file_remote.go index 46275186..26c9b849 100644 --- a/release/model_file_file_remote.go +++ b/release/model_file_file_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_file_file_remote_response.go b/release/model_file_file_remote_response.go index 375a18c7..7c377c49 100644 --- a/release/model_file_file_remote_response.go +++ b/release/model_file_file_remote_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_file_file_repository.go b/release/model_file_file_repository.go index 839fc3f9..1ab07c5f 100644 --- a/release/model_file_file_repository.go +++ b/release/model_file_file_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_file_file_repository_response.go b/release/model_file_file_repository_response.go index 8a360fe9..9718177d 100644 --- a/release/model_file_file_repository_response.go +++ b/release/model_file_file_repository_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_filesystem_export.go b/release/model_filesystem_export.go index 7033f795..072b4664 100644 --- a/release/model_filesystem_export.go +++ b/release/model_filesystem_export.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_filesystem_export_response.go b/release/model_filesystem_export_response.go index 6597370e..baee9f90 100644 --- a/release/model_filesystem_export_response.go +++ b/release/model_filesystem_export_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_filesystem_exporter.go b/release/model_filesystem_exporter.go index 05f93f25..57129d50 100644 --- a/release/model_filesystem_exporter.go +++ b/release/model_filesystem_exporter.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_filesystem_exporter_response.go b/release/model_filesystem_exporter_response.go index a631bf2b..daca698b 100644 --- a/release/model_filesystem_exporter_response.go +++ b/release/model_filesystem_exporter_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_galaxy_collection.go b/release/model_galaxy_collection.go index d19ce6c6..3e934989 100644 --- a/release/model_galaxy_collection.go +++ b/release/model_galaxy_collection.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_galaxy_collection_response.go b/release/model_galaxy_collection_response.go index 38bf73c2..800d9dd6 100644 --- a/release/model_galaxy_collection_response.go +++ b/release/model_galaxy_collection_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_galaxy_collection_version_response.go b/release/model_galaxy_collection_version_response.go index 1eb8446c..cf0b5e8b 100644 --- a/release/model_galaxy_collection_version_response.go +++ b/release/model_galaxy_collection_version_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_galaxy_role_response.go b/release/model_galaxy_role_response.go index 79016b56..97520261 100644 --- a/release/model_galaxy_role_response.go +++ b/release/model_galaxy_role_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_galaxy_role_version_response.go b/release/model_galaxy_role_version_response.go index 634cc5fe..db5bbd53 100644 --- a/release/model_galaxy_role_version_response.go +++ b/release/model_galaxy_role_version_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_group.go b/release/model_group.go index 3bee8350..00641ffa 100644 --- a/release/model_group.go +++ b/release/model_group.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_group_progress_report_response.go b/release/model_group_progress_report_response.go index 42b064fe..2e84cb26 100644 --- a/release/model_group_progress_report_response.go +++ b/release/model_group_progress_report_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_group_response.go b/release/model_group_response.go index d193b3c8..f923fddf 100644 --- a/release/model_group_response.go +++ b/release/model_group_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_group_role.go b/release/model_group_role.go index e87db02b..77d5f4a0 100644 --- a/release/model_group_role.go +++ b/release/model_group_role.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_group_role_response.go b/release/model_group_role_response.go index 14d31a3f..3acdc2d1 100644 --- a/release/model_group_role_response.go +++ b/release/model_group_role_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_group_user.go b/release/model_group_user.go index 07c1b844..86906ffb 100644 --- a/release/model_group_user.go +++ b/release/model_group_user.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_group_user_response.go b/release/model_group_user_response.go index b009df1c..e7c557e4 100644 --- a/release/model_group_user_response.go +++ b/release/model_group_user_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_image_response.go b/release/model_image_response.go index 6a43ff49..baea56c6 100644 --- a/release/model_image_response.go +++ b/release/model_image_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_import_response.go b/release/model_import_response.go index 3c115033..19d6c6d7 100644 --- a/release/model_import_response.go +++ b/release/model_import_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_manifest_copy.go b/release/model_manifest_copy.go index 49988a55..6b9ba9ca 100644 --- a/release/model_manifest_copy.go +++ b/release/model_manifest_copy.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_maven_maven_artifact.go b/release/model_maven_maven_artifact.go index 9fba5784..b847f3bc 100644 --- a/release/model_maven_maven_artifact.go +++ b/release/model_maven_maven_artifact.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_maven_maven_artifact_response.go b/release/model_maven_maven_artifact_response.go index c6068f67..113bdf7e 100644 --- a/release/model_maven_maven_artifact_response.go +++ b/release/model_maven_maven_artifact_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_maven_maven_distribution.go b/release/model_maven_maven_distribution.go index 2529f0c0..73529f3a 100644 --- a/release/model_maven_maven_distribution.go +++ b/release/model_maven_maven_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_maven_maven_distribution_response.go b/release/model_maven_maven_distribution_response.go index b3e0b4d3..2f77c7ed 100644 --- a/release/model_maven_maven_distribution_response.go +++ b/release/model_maven_maven_distribution_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_maven_maven_remote.go b/release/model_maven_maven_remote.go index 0c9008a9..f40a3735 100644 --- a/release/model_maven_maven_remote.go +++ b/release/model_maven_maven_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_maven_maven_remote_response.go b/release/model_maven_maven_remote_response.go index d665206e..04ac5936 100644 --- a/release/model_maven_maven_remote_response.go +++ b/release/model_maven_maven_remote_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_maven_maven_repository.go b/release/model_maven_maven_repository.go index 878445c6..e14b100d 100644 --- a/release/model_maven_maven_repository.go +++ b/release/model_maven_maven_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_maven_maven_repository_response.go b/release/model_maven_maven_repository_response.go index f6aa2d2c..0af7dc34 100644 --- a/release/model_maven_maven_repository_response.go +++ b/release/model_maven_maven_repository_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_media_types_enum.go b/release/model_media_types_enum.go index 2920e844..2502938c 100644 --- a/release/model_media_types_enum.go +++ b/release/model_media_types_enum.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_metadata_checksum_type_enum.go b/release/model_metadata_checksum_type_enum.go index 1d822a17..e6927bc4 100644 --- a/release/model_metadata_checksum_type_enum.go +++ b/release/model_metadata_checksum_type_enum.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_method_enum.go b/release/model_method_enum.go index 87bd5000..02543c44 100644 --- a/release/model_method_enum.go +++ b/release/model_method_enum.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_minimal_task_response.go b/release/model_minimal_task_response.go index 9e2a7d08..36a37d46 100644 --- a/release/model_minimal_task_response.go +++ b/release/model_minimal_task_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_multiple_artifact_content_response.go b/release/model_multiple_artifact_content_response.go index e68ee8f0..d1e9c790 100644 --- a/release/model_multiple_artifact_content_response.go +++ b/release/model_multiple_artifact_content_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_my_permissions_response.go b/release/model_my_permissions_response.go index 3cc60e47..db20dd6a 100644 --- a/release/model_my_permissions_response.go +++ b/release/model_my_permissions_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_namespace_link.go b/release/model_namespace_link.go new file mode 100644 index 00000000..40ccecc8 --- /dev/null +++ b/release/model_namespace_link.go @@ -0,0 +1,145 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" +) + +// checks if the NamespaceLink type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NamespaceLink{} + +// NamespaceLink Provides backwards compatible interface for links with the legacy GalaxyNG API. +type NamespaceLink struct { + Url string `json:"url"` + Name string `json:"name"` +} + +// NewNamespaceLink instantiates a new NamespaceLink object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNamespaceLink(url string, name string) *NamespaceLink { + this := NamespaceLink{} + this.Url = url + this.Name = name + return &this +} + +// NewNamespaceLinkWithDefaults instantiates a new NamespaceLink object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNamespaceLinkWithDefaults() *NamespaceLink { + this := NamespaceLink{} + return &this +} + +// GetUrl returns the Url field value +func (o *NamespaceLink) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *NamespaceLink) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NamespaceLink) SetUrl(v string) { + o.Url = v +} + +// GetName returns the Name field value +func (o *NamespaceLink) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NamespaceLink) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NamespaceLink) SetName(v string) { + o.Name = v +} + +func (o NamespaceLink) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NamespaceLink) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["url"] = o.Url + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableNamespaceLink struct { + value *NamespaceLink + isSet bool +} + +func (v NullableNamespaceLink) Get() *NamespaceLink { + return v.value +} + +func (v *NullableNamespaceLink) Set(val *NamespaceLink) { + v.value = val + v.isSet = true +} + +func (v NullableNamespaceLink) IsSet() bool { + return v.isSet +} + +func (v *NullableNamespaceLink) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNamespaceLink(val *NamespaceLink) *NullableNamespaceLink { + return &NullableNamespaceLink{value: val, isSet: true} +} + +func (v NullableNamespaceLink) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNamespaceLink) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_namespace_link_response.go b/release/model_namespace_link_response.go new file mode 100644 index 00000000..5be3ce62 --- /dev/null +++ b/release/model_namespace_link_response.go @@ -0,0 +1,145 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" +) + +// checks if the NamespaceLinkResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NamespaceLinkResponse{} + +// NamespaceLinkResponse Provides backwards compatible interface for links with the legacy GalaxyNG API. +type NamespaceLinkResponse struct { + Url string `json:"url"` + Name string `json:"name"` +} + +// NewNamespaceLinkResponse instantiates a new NamespaceLinkResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNamespaceLinkResponse(url string, name string) *NamespaceLinkResponse { + this := NamespaceLinkResponse{} + this.Url = url + this.Name = name + return &this +} + +// NewNamespaceLinkResponseWithDefaults instantiates a new NamespaceLinkResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNamespaceLinkResponseWithDefaults() *NamespaceLinkResponse { + this := NamespaceLinkResponse{} + return &this +} + +// GetUrl returns the Url field value +func (o *NamespaceLinkResponse) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *NamespaceLinkResponse) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NamespaceLinkResponse) SetUrl(v string) { + o.Url = v +} + +// GetName returns the Name field value +func (o *NamespaceLinkResponse) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NamespaceLinkResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NamespaceLinkResponse) SetName(v string) { + o.Name = v +} + +func (o NamespaceLinkResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NamespaceLinkResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["url"] = o.Url + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableNamespaceLinkResponse struct { + value *NamespaceLinkResponse + isSet bool +} + +func (v NullableNamespaceLinkResponse) Get() *NamespaceLinkResponse { + return v.value +} + +func (v *NullableNamespaceLinkResponse) Set(val *NamespaceLinkResponse) { + v.value = val + v.isSet = true +} + +func (v NullableNamespaceLinkResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableNamespaceLinkResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNamespaceLinkResponse(val *NamespaceLinkResponse) *NullableNamespaceLinkResponse { + return &NullableNamespaceLinkResponse{value: val, isSet: true} +} + +func (v NullableNamespaceLinkResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNamespaceLinkResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_nested_role.go b/release/model_nested_role.go index a1f9a12c..2dd2e1c8 100644 --- a/release/model_nested_role.go +++ b/release/model_nested_role.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_nested_role_response.go b/release/model_nested_role_response.go index cc11adcd..cda42c91 100644 --- a/release/model_nested_role_response.go +++ b/release/model_nested_role_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_object_roles_response.go b/release/model_object_roles_response.go index 42cb6c68..69c82770 100644 --- a/release/model_object_roles_response.go +++ b/release/model_object_roles_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_oci_build_image.go b/release/model_oci_build_image.go new file mode 100644 index 00000000..13b85a15 --- /dev/null +++ b/release/model_oci_build_image.go @@ -0,0 +1,244 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the OCIBuildImage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OCIBuildImage{} + +// OCIBuildImage Serializer for building an OCI container image from a Containerfile. The Containerfile can either be specified via an artifact url, or a new file can be uploaded. A repository must be specified, to which the container image content will be added. +type OCIBuildImage struct { + // Artifact representing the Containerfile that should be used to run podman-build. + ContainerfileArtifact *string `json:"containerfile_artifact,omitempty"` + // An uploaded Containerfile that should be used to run podman-build. + Containerfile **os.File `json:"containerfile,omitempty"` + // A tag name for the new image being built. + Tag *string `json:"tag,omitempty"` + // A JSON string where each key is an artifact href and the value is it's relative path (name) inside the /pulp_working_directory of the build container executing the Containerfile. + Artifacts map[string]interface{} `json:"artifacts,omitempty"` +} + +// NewOCIBuildImage instantiates a new OCIBuildImage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOCIBuildImage() *OCIBuildImage { + this := OCIBuildImage{} + var tag string = "latest" + this.Tag = &tag + return &this +} + +// NewOCIBuildImageWithDefaults instantiates a new OCIBuildImage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOCIBuildImageWithDefaults() *OCIBuildImage { + this := OCIBuildImage{} + var tag string = "latest" + this.Tag = &tag + return &this +} + +// GetContainerfileArtifact returns the ContainerfileArtifact field value if set, zero value otherwise. +func (o *OCIBuildImage) GetContainerfileArtifact() string { + if o == nil || IsNil(o.ContainerfileArtifact) { + var ret string + return ret + } + return *o.ContainerfileArtifact +} + +// GetContainerfileArtifactOk returns a tuple with the ContainerfileArtifact field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OCIBuildImage) GetContainerfileArtifactOk() (*string, bool) { + if o == nil || IsNil(o.ContainerfileArtifact) { + return nil, false + } + return o.ContainerfileArtifact, true +} + +// HasContainerfileArtifact returns a boolean if a field has been set. +func (o *OCIBuildImage) HasContainerfileArtifact() bool { + if o != nil && !IsNil(o.ContainerfileArtifact) { + return true + } + + return false +} + +// SetContainerfileArtifact gets a reference to the given string and assigns it to the ContainerfileArtifact field. +func (o *OCIBuildImage) SetContainerfileArtifact(v string) { + o.ContainerfileArtifact = &v +} + +// GetContainerfile returns the Containerfile field value if set, zero value otherwise. +func (o *OCIBuildImage) GetContainerfile() *os.File { + if o == nil || IsNil(o.Containerfile) { + var ret *os.File + return ret + } + return *o.Containerfile +} + +// GetContainerfileOk returns a tuple with the Containerfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OCIBuildImage) GetContainerfileOk() (**os.File, bool) { + if o == nil || IsNil(o.Containerfile) { + return nil, false + } + return o.Containerfile, true +} + +// HasContainerfile returns a boolean if a field has been set. +func (o *OCIBuildImage) HasContainerfile() bool { + if o != nil && !IsNil(o.Containerfile) { + return true + } + + return false +} + +// SetContainerfile gets a reference to the given *os.File and assigns it to the Containerfile field. +func (o *OCIBuildImage) SetContainerfile(v *os.File) { + o.Containerfile = &v +} + +// GetTag returns the Tag field value if set, zero value otherwise. +func (o *OCIBuildImage) GetTag() string { + if o == nil || IsNil(o.Tag) { + var ret string + return ret + } + return *o.Tag +} + +// GetTagOk returns a tuple with the Tag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OCIBuildImage) GetTagOk() (*string, bool) { + if o == nil || IsNil(o.Tag) { + return nil, false + } + return o.Tag, true +} + +// HasTag returns a boolean if a field has been set. +func (o *OCIBuildImage) HasTag() bool { + if o != nil && !IsNil(o.Tag) { + return true + } + + return false +} + +// SetTag gets a reference to the given string and assigns it to the Tag field. +func (o *OCIBuildImage) SetTag(v string) { + o.Tag = &v +} + +// GetArtifacts returns the Artifacts field value if set, zero value otherwise. +func (o *OCIBuildImage) GetArtifacts() map[string]interface{} { + if o == nil || IsNil(o.Artifacts) { + var ret map[string]interface{} + return ret + } + return o.Artifacts +} + +// GetArtifactsOk returns a tuple with the Artifacts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OCIBuildImage) GetArtifactsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Artifacts) { + return map[string]interface{}{}, false + } + return o.Artifacts, true +} + +// HasArtifacts returns a boolean if a field has been set. +func (o *OCIBuildImage) HasArtifacts() bool { + if o != nil && !IsNil(o.Artifacts) { + return true + } + + return false +} + +// SetArtifacts gets a reference to the given map[string]interface{} and assigns it to the Artifacts field. +func (o *OCIBuildImage) SetArtifacts(v map[string]interface{}) { + o.Artifacts = v +} + +func (o OCIBuildImage) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OCIBuildImage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ContainerfileArtifact) { + toSerialize["containerfile_artifact"] = o.ContainerfileArtifact + } + if !IsNil(o.Containerfile) { + toSerialize["containerfile"] = o.Containerfile + } + if !IsNil(o.Tag) { + toSerialize["tag"] = o.Tag + } + if !IsNil(o.Artifacts) { + toSerialize["artifacts"] = o.Artifacts + } + return toSerialize, nil +} + +type NullableOCIBuildImage struct { + value *OCIBuildImage + isSet bool +} + +func (v NullableOCIBuildImage) Get() *OCIBuildImage { + return v.value +} + +func (v *NullableOCIBuildImage) Set(val *OCIBuildImage) { + v.value = val + v.isSet = true +} + +func (v NullableOCIBuildImage) IsSet() bool { + return v.isSet +} + +func (v *NullableOCIBuildImage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOCIBuildImage(val *OCIBuildImage) *NullableOCIBuildImage { + return &NullableOCIBuildImage{value: val, isSet: true} +} + +func (v NullableOCIBuildImage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOCIBuildImage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_orphans_cleanup.go b/release/model_orphans_cleanup.go index 943f10f6..125622e3 100644 --- a/release/model_orphans_cleanup.go +++ b/release/model_orphans_cleanup.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ostree_import_all.go b/release/model_ostree_import_all.go index d4fc0a28..39c603a8 100644 --- a/release/model_ostree_import_all.go +++ b/release/model_ostree_import_all.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ostree_import_commits_to_ref.go b/release/model_ostree_import_commits_to_ref.go index 022893fc..dde0f027 100644 --- a/release/model_ostree_import_commits_to_ref.go +++ b/release/model_ostree_import_commits_to_ref.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ostree_ostree_commit_response.go b/release/model_ostree_ostree_commit_response.go index cb8d2c4a..1bfb60d8 100644 --- a/release/model_ostree_ostree_commit_response.go +++ b/release/model_ostree_ostree_commit_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ostree_ostree_config_response.go b/release/model_ostree_ostree_config_response.go index 3154fd29..540452ae 100644 --- a/release/model_ostree_ostree_config_response.go +++ b/release/model_ostree_ostree_config_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ostree_ostree_content_response.go b/release/model_ostree_ostree_content_response.go index 608a7ad5..2976a70a 100644 --- a/release/model_ostree_ostree_content_response.go +++ b/release/model_ostree_ostree_content_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ostree_ostree_distribution.go b/release/model_ostree_ostree_distribution.go index 0c70bc92..e41b5dd9 100644 --- a/release/model_ostree_ostree_distribution.go +++ b/release/model_ostree_ostree_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ostree_ostree_distribution_response.go b/release/model_ostree_ostree_distribution_response.go index 27e9b91b..3be47adb 100644 --- a/release/model_ostree_ostree_distribution_response.go +++ b/release/model_ostree_ostree_distribution_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ostree_ostree_object_response.go b/release/model_ostree_ostree_object_response.go index dfe652ad..b283ca49 100644 --- a/release/model_ostree_ostree_object_response.go +++ b/release/model_ostree_ostree_object_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ostree_ostree_ref_response.go b/release/model_ostree_ostree_ref_response.go index add5e6de..f382f78e 100644 --- a/release/model_ostree_ostree_ref_response.go +++ b/release/model_ostree_ostree_ref_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ostree_ostree_remote.go b/release/model_ostree_ostree_remote.go index 72e099d4..3aeb7ab8 100644 --- a/release/model_ostree_ostree_remote.go +++ b/release/model_ostree_ostree_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ostree_ostree_remote_response.go b/release/model_ostree_ostree_remote_response.go index 573e798e..81789500 100644 --- a/release/model_ostree_ostree_remote_response.go +++ b/release/model_ostree_ostree_remote_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ostree_ostree_repository.go b/release/model_ostree_ostree_repository.go index 228e999b..d4578131 100644 --- a/release/model_ostree_ostree_repository.go +++ b/release/model_ostree_ostree_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ostree_ostree_repository_response.go b/release/model_ostree_ostree_repository_response.go index 161a3b84..3f4325a2 100644 --- a/release/model_ostree_ostree_repository_response.go +++ b/release/model_ostree_ostree_repository_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_ostree_ostree_summary_response.go b/release/model_ostree_ostree_summary_response.go index 73dbbf9e..4ba8e46a 100644 --- a/release/model_ostree_ostree_summary_response.go +++ b/release/model_ostree_ostree_summary_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_package_checksum_type_enum.go b/release/model_package_checksum_type_enum.go index 8a97c243..bd5d113c 100644 --- a/release/model_package_checksum_type_enum.go +++ b/release/model_package_checksum_type_enum.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_package_metadata_response.go b/release/model_package_metadata_response.go index a38b5be6..d41fc3d5 100644 --- a/release/model_package_metadata_response.go +++ b/release/model_package_metadata_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_package_types_enum.go b/release/model_package_types_enum.go index 1503dda1..4db97c92 100644 --- a/release/model_package_types_enum.go +++ b/release/model_package_types_enum.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_package_upload.go b/release/model_package_upload.go new file mode 100644 index 00000000..2afa15a5 --- /dev/null +++ b/release/model_package_upload.go @@ -0,0 +1,189 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the PackageUpload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PackageUpload{} + +// PackageUpload A Serializer for Python packages being uploaded to the index. +type PackageUpload struct { + // A Python package release file to upload to the index. + Content *os.File `json:"content"` + // Defaults to `file_upload`, don't change it or request will fail! + Action *string `json:"action,omitempty"` + // SHA256 of package to validate upload integrity. + Sha256Digest string `json:"sha256_digest"` +} + +// NewPackageUpload instantiates a new PackageUpload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPackageUpload(content *os.File, sha256Digest string) *PackageUpload { + this := PackageUpload{} + this.Content = content + var action string = "file_upload" + this.Action = &action + this.Sha256Digest = sha256Digest + return &this +} + +// NewPackageUploadWithDefaults instantiates a new PackageUpload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackageUploadWithDefaults() *PackageUpload { + this := PackageUpload{} + var action string = "file_upload" + this.Action = &action + return &this +} + +// GetContent returns the Content field value +func (o *PackageUpload) GetContent() *os.File { + if o == nil { + var ret *os.File + return ret + } + + return o.Content +} + +// GetContentOk returns a tuple with the Content field value +// and a boolean to check if the value has been set. +func (o *PackageUpload) GetContentOk() (**os.File, bool) { + if o == nil { + return nil, false + } + return &o.Content, true +} + +// SetContent sets field value +func (o *PackageUpload) SetContent(v *os.File) { + o.Content = v +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *PackageUpload) GetAction() string { + if o == nil || IsNil(o.Action) { + var ret string + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageUpload) GetActionOk() (*string, bool) { + if o == nil || IsNil(o.Action) { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *PackageUpload) HasAction() bool { + if o != nil && !IsNil(o.Action) { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *PackageUpload) SetAction(v string) { + o.Action = &v +} + +// GetSha256Digest returns the Sha256Digest field value +func (o *PackageUpload) GetSha256Digest() string { + if o == nil { + var ret string + return ret + } + + return o.Sha256Digest +} + +// GetSha256DigestOk returns a tuple with the Sha256Digest field value +// and a boolean to check if the value has been set. +func (o *PackageUpload) GetSha256DigestOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Sha256Digest, true +} + +// SetSha256Digest sets field value +func (o *PackageUpload) SetSha256Digest(v string) { + o.Sha256Digest = v +} + +func (o PackageUpload) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PackageUpload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["content"] = o.Content + if !IsNil(o.Action) { + toSerialize["action"] = o.Action + } + toSerialize["sha256_digest"] = o.Sha256Digest + return toSerialize, nil +} + +type NullablePackageUpload struct { + value *PackageUpload + isSet bool +} + +func (v NullablePackageUpload) Get() *PackageUpload { + return v.value +} + +func (v *NullablePackageUpload) Set(val *PackageUpload) { + v.value = val + v.isSet = true +} + +func (v NullablePackageUpload) IsSet() bool { + return v.isSet +} + +func (v *NullablePackageUpload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackageUpload(val *PackageUpload) *NullablePackageUpload { + return &NullablePackageUpload{value: val, isSet: true} +} + +func (v NullablePackageUpload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackageUpload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_package_upload_task_response.go b/release/model_package_upload_task_response.go index 2be5c4cf..65182bee 100644 --- a/release/model_package_upload_task_response.go +++ b/release/model_package_upload_task_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_access_policy_response_list.go b/release/model_paginated_access_policy_response_list.go index ce1a4076..88554ef9 100644 --- a/release/model_paginated_access_policy_response_list.go +++ b/release/model_paginated_access_policy_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_artifact_distribution_response_list.go b/release/model_paginated_artifact_distribution_response_list.go index ee1df2aa..39e038e8 100644 --- a/release/model_paginated_artifact_distribution_response_list.go +++ b/release/model_paginated_artifact_distribution_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_artifact_response_list.go b/release/model_paginated_artifact_response_list.go index 1dd19a51..475706e4 100644 --- a/release/model_paginated_artifact_response_list.go +++ b/release/model_paginated_artifact_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_collection_response_list.go b/release/model_paginated_collection_response_list.go index 2d3efc33..151d8bb3 100644 --- a/release/model_paginated_collection_response_list.go +++ b/release/model_paginated_collection_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_collection_response_list_links.go b/release/model_paginated_collection_response_list_links.go index 04be7593..75ad817e 100644 --- a/release/model_paginated_collection_response_list_links.go +++ b/release/model_paginated_collection_response_list_links.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_collection_response_list_meta.go b/release/model_paginated_collection_response_list_meta.go index e5ac3309..896205a9 100644 --- a/release/model_paginated_collection_response_list_meta.go +++ b/release/model_paginated_collection_response_list_meta.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_collection_version_list_response_list.go b/release/model_paginated_collection_version_list_response_list.go index 9357f9b4..e47fd7d4 100644 --- a/release/model_paginated_collection_version_list_response_list.go +++ b/release/model_paginated_collection_version_list_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_collection_version_search_list_response_list.go b/release/model_paginated_collection_version_search_list_response_list.go new file mode 100644 index 00000000..71224933 --- /dev/null +++ b/release/model_paginated_collection_version_search_list_response_list.go @@ -0,0 +1,199 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" +) + +// checks if the PaginatedCollectionVersionSearchListResponseList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedCollectionVersionSearchListResponseList{} + +// PaginatedCollectionVersionSearchListResponseList struct for PaginatedCollectionVersionSearchListResponseList +type PaginatedCollectionVersionSearchListResponseList struct { + Meta *PaginatedCollectionResponseListMeta `json:"meta,omitempty"` + Links *PaginatedCollectionResponseListLinks `json:"links,omitempty"` + Data []CollectionVersionSearchListResponse `json:"data,omitempty"` +} + +// NewPaginatedCollectionVersionSearchListResponseList instantiates a new PaginatedCollectionVersionSearchListResponseList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedCollectionVersionSearchListResponseList() *PaginatedCollectionVersionSearchListResponseList { + this := PaginatedCollectionVersionSearchListResponseList{} + return &this +} + +// NewPaginatedCollectionVersionSearchListResponseListWithDefaults instantiates a new PaginatedCollectionVersionSearchListResponseList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedCollectionVersionSearchListResponseListWithDefaults() *PaginatedCollectionVersionSearchListResponseList { + this := PaginatedCollectionVersionSearchListResponseList{} + return &this +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *PaginatedCollectionVersionSearchListResponseList) GetMeta() PaginatedCollectionResponseListMeta { + if o == nil || IsNil(o.Meta) { + var ret PaginatedCollectionResponseListMeta + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedCollectionVersionSearchListResponseList) GetMetaOk() (*PaginatedCollectionResponseListMeta, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *PaginatedCollectionVersionSearchListResponseList) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given PaginatedCollectionResponseListMeta and assigns it to the Meta field. +func (o *PaginatedCollectionVersionSearchListResponseList) SetMeta(v PaginatedCollectionResponseListMeta) { + o.Meta = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PaginatedCollectionVersionSearchListResponseList) GetLinks() PaginatedCollectionResponseListLinks { + if o == nil || IsNil(o.Links) { + var ret PaginatedCollectionResponseListLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedCollectionVersionSearchListResponseList) GetLinksOk() (*PaginatedCollectionResponseListLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PaginatedCollectionVersionSearchListResponseList) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given PaginatedCollectionResponseListLinks and assigns it to the Links field. +func (o *PaginatedCollectionVersionSearchListResponseList) SetLinks(v PaginatedCollectionResponseListLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PaginatedCollectionVersionSearchListResponseList) GetData() []CollectionVersionSearchListResponse { + if o == nil || IsNil(o.Data) { + var ret []CollectionVersionSearchListResponse + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedCollectionVersionSearchListResponseList) GetDataOk() ([]CollectionVersionSearchListResponse, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PaginatedCollectionVersionSearchListResponseList) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []CollectionVersionSearchListResponse and assigns it to the Data field. +func (o *PaginatedCollectionVersionSearchListResponseList) SetData(v []CollectionVersionSearchListResponse) { + o.Data = v +} + +func (o PaginatedCollectionVersionSearchListResponseList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedCollectionVersionSearchListResponseList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePaginatedCollectionVersionSearchListResponseList struct { + value *PaginatedCollectionVersionSearchListResponseList + isSet bool +} + +func (v NullablePaginatedCollectionVersionSearchListResponseList) Get() *PaginatedCollectionVersionSearchListResponseList { + return v.value +} + +func (v *NullablePaginatedCollectionVersionSearchListResponseList) Set(val *PaginatedCollectionVersionSearchListResponseList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedCollectionVersionSearchListResponseList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedCollectionVersionSearchListResponseList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedCollectionVersionSearchListResponseList(val *PaginatedCollectionVersionSearchListResponseList) *NullablePaginatedCollectionVersionSearchListResponseList { + return &NullablePaginatedCollectionVersionSearchListResponseList{value: val, isSet: true} +} + +func (v NullablePaginatedCollectionVersionSearchListResponseList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedCollectionVersionSearchListResponseList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_paginated_content_guard_response_list.go b/release/model_paginated_content_guard_response_list.go index f683425a..aa7bda25 100644 --- a/release/model_paginated_content_guard_response_list.go +++ b/release/model_paginated_content_guard_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_content_redirect_content_guard_response_list.go b/release/model_paginated_content_redirect_content_guard_response_list.go index 1dacb8eb..7d34d634 100644 --- a/release/model_paginated_content_redirect_content_guard_response_list.go +++ b/release/model_paginated_content_redirect_content_guard_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_distribution_response_list.go b/release/model_paginated_distribution_response_list.go index 553a1246..7d052e41 100644 --- a/release/model_paginated_distribution_response_list.go +++ b/release/model_paginated_distribution_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_domain_response_list.go b/release/model_paginated_domain_response_list.go index da7902ae..de6cf584 100644 --- a/release/model_paginated_domain_response_list.go +++ b/release/model_paginated_domain_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_filesystem_export_response_list.go b/release/model_paginated_filesystem_export_response_list.go index 456dfe55..02700a12 100644 --- a/release/model_paginated_filesystem_export_response_list.go +++ b/release/model_paginated_filesystem_export_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_filesystem_exporter_response_list.go b/release/model_paginated_filesystem_exporter_response_list.go index cfb26ea9..a8117c0e 100644 --- a/release/model_paginated_filesystem_exporter_response_list.go +++ b/release/model_paginated_filesystem_exporter_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_galaxy_collection_response_list.go b/release/model_paginated_galaxy_collection_response_list.go index 67799f64..a3927fce 100644 --- a/release/model_paginated_galaxy_collection_response_list.go +++ b/release/model_paginated_galaxy_collection_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_galaxy_collection_version_response_list.go b/release/model_paginated_galaxy_collection_version_response_list.go index c5a6044c..f8141877 100644 --- a/release/model_paginated_galaxy_collection_version_response_list.go +++ b/release/model_paginated_galaxy_collection_version_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_galaxy_role_response_list.go b/release/model_paginated_galaxy_role_response_list.go index 676d503a..d9989557 100644 --- a/release/model_paginated_galaxy_role_response_list.go +++ b/release/model_paginated_galaxy_role_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_galaxy_role_version_response_list.go b/release/model_paginated_galaxy_role_version_response_list.go index 2e341386..559d8293 100644 --- a/release/model_paginated_galaxy_role_version_response_list.go +++ b/release/model_paginated_galaxy_role_version_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_group_response_list.go b/release/model_paginated_group_response_list.go index 34b54d5c..cf28d198 100644 --- a/release/model_paginated_group_response_list.go +++ b/release/model_paginated_group_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_group_role_response_list.go b/release/model_paginated_group_role_response_list.go index af0de68a..9419f13a 100644 --- a/release/model_paginated_group_role_response_list.go +++ b/release/model_paginated_group_role_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_group_user_response_list.go b/release/model_paginated_group_user_response_list.go index 3c473cbc..e27582ac 100644 --- a/release/model_paginated_group_user_response_list.go +++ b/release/model_paginated_group_user_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_import_response_list.go b/release/model_paginated_import_response_list.go index 101046f4..135296eb 100644 --- a/release/model_paginated_import_response_list.go +++ b/release/model_paginated_import_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_multiple_artifact_content_response_list.go b/release/model_paginated_multiple_artifact_content_response_list.go index 19ac5a2d..f2f22271 100644 --- a/release/model_paginated_multiple_artifact_content_response_list.go +++ b/release/model_paginated_multiple_artifact_content_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_publication_response_list.go b/release/model_paginated_publication_response_list.go index 513489df..cfc738e3 100644 --- a/release/model_paginated_publication_response_list.go +++ b/release/model_paginated_publication_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_pulp_export_response_list.go b/release/model_paginated_pulp_export_response_list.go index 3cc4689e..bb711c1c 100644 --- a/release/model_paginated_pulp_export_response_list.go +++ b/release/model_paginated_pulp_export_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_pulp_exporter_response_list.go b/release/model_paginated_pulp_exporter_response_list.go index 9e3494e8..6a4b1727 100644 --- a/release/model_paginated_pulp_exporter_response_list.go +++ b/release/model_paginated_pulp_exporter_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_pulp_importer_response_list.go b/release/model_paginated_pulp_importer_response_list.go index 54ab5329..a54ea040 100644 --- a/release/model_paginated_pulp_importer_response_list.go +++ b/release/model_paginated_pulp_importer_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_rbac_content_guard_response_list.go b/release/model_paginated_rbac_content_guard_response_list.go index bd248ef9..cf6e9481 100644 --- a/release/model_paginated_rbac_content_guard_response_list.go +++ b/release/model_paginated_rbac_content_guard_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_remote_response_list.go b/release/model_paginated_remote_response_list.go index 23b0e76d..2ec1b012 100644 --- a/release/model_paginated_remote_response_list.go +++ b/release/model_paginated_remote_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_repository_response_list.go b/release/model_paginated_repository_response_list.go index 4f88c978..fea047f9 100644 --- a/release/model_paginated_repository_response_list.go +++ b/release/model_paginated_repository_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_repository_version_response_list.go b/release/model_paginated_repository_version_response_list.go index 4a0d3fb1..b87397b2 100644 --- a/release/model_paginated_repository_version_response_list.go +++ b/release/model_paginated_repository_version_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_role_response_list.go b/release/model_paginated_role_response_list.go index 5c2f7d47..ea700930 100644 --- a/release/model_paginated_role_response_list.go +++ b/release/model_paginated_role_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_signing_service_response_list.go b/release/model_paginated_signing_service_response_list.go index d7076daa..7014d2cb 100644 --- a/release/model_paginated_signing_service_response_list.go +++ b/release/model_paginated_signing_service_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_tag_response_list.go b/release/model_paginated_tag_response_list.go index a17cc309..d6096181 100644 --- a/release/model_paginated_tag_response_list.go +++ b/release/model_paginated_tag_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_task_group_response_list.go b/release/model_paginated_task_group_response_list.go index 3913ef54..af44e2a3 100644 --- a/release/model_paginated_task_group_response_list.go +++ b/release/model_paginated_task_group_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_task_response_list.go b/release/model_paginated_task_response_list.go index 653d4b36..41f383c4 100644 --- a/release/model_paginated_task_response_list.go +++ b/release/model_paginated_task_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_task_schedule_response_list.go b/release/model_paginated_task_schedule_response_list.go index 9a3250b2..4354a6aa 100644 --- a/release/model_paginated_task_schedule_response_list.go +++ b/release/model_paginated_task_schedule_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_upload_response_list.go b/release/model_paginated_upload_response_list.go index fa80b8d8..c81e574e 100644 --- a/release/model_paginated_upload_response_list.go +++ b/release/model_paginated_upload_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_upstream_pulp_response_list.go b/release/model_paginated_upstream_pulp_response_list.go index 0c404143..f2b35f05 100644 --- a/release/model_paginated_upstream_pulp_response_list.go +++ b/release/model_paginated_upstream_pulp_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_user_response_list.go b/release/model_paginated_user_response_list.go index ea03ffb7..1b0ccb6c 100644 --- a/release/model_paginated_user_response_list.go +++ b/release/model_paginated_user_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_user_role_response_list.go b/release/model_paginated_user_role_response_list.go index 243734ee..ee2f2fd6 100644 --- a/release/model_paginated_user_role_response_list.go +++ b/release/model_paginated_user_role_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginated_worker_response_list.go b/release/model_paginated_worker_response_list.go index fcf0f3c6..72aeeb79 100644 --- a/release/model_paginated_worker_response_list.go +++ b/release/model_paginated_worker_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedansible_ansible_distribution_response_list.go b/release/model_paginatedansible_ansible_distribution_response_list.go index e0d56396..f5a8f0ed 100644 --- a/release/model_paginatedansible_ansible_distribution_response_list.go +++ b/release/model_paginatedansible_ansible_distribution_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedansible_ansible_namespace_metadata_response_list.go b/release/model_paginatedansible_ansible_namespace_metadata_response_list.go new file mode 100644 index 00000000..100915be --- /dev/null +++ b/release/model_paginatedansible_ansible_namespace_metadata_response_list.go @@ -0,0 +1,255 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" +) + +// checks if the PaginatedansibleAnsibleNamespaceMetadataResponseList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedansibleAnsibleNamespaceMetadataResponseList{} + +// PaginatedansibleAnsibleNamespaceMetadataResponseList struct for PaginatedansibleAnsibleNamespaceMetadataResponseList +type PaginatedansibleAnsibleNamespaceMetadataResponseList struct { + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []AnsibleAnsibleNamespaceMetadataResponse `json:"results,omitempty"` +} + +// NewPaginatedansibleAnsibleNamespaceMetadataResponseList instantiates a new PaginatedansibleAnsibleNamespaceMetadataResponseList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedansibleAnsibleNamespaceMetadataResponseList() *PaginatedansibleAnsibleNamespaceMetadataResponseList { + this := PaginatedansibleAnsibleNamespaceMetadataResponseList{} + return &this +} + +// NewPaginatedansibleAnsibleNamespaceMetadataResponseListWithDefaults instantiates a new PaginatedansibleAnsibleNamespaceMetadataResponseList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedansibleAnsibleNamespaceMetadataResponseListWithDefaults() *PaginatedansibleAnsibleNamespaceMetadataResponseList { + this := PaginatedansibleAnsibleNamespaceMetadataResponseList{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) SetCount(v int32) { + o.Count = &v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetResults() []AnsibleAnsibleNamespaceMetadataResponse { + if o == nil || IsNil(o.Results) { + var ret []AnsibleAnsibleNamespaceMetadataResponse + return ret + } + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) GetResultsOk() ([]AnsibleAnsibleNamespaceMetadataResponse, bool) { + if o == nil || IsNil(o.Results) { + return nil, false + } + return o.Results, true +} + +// HasResults returns a boolean if a field has been set. +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []AnsibleAnsibleNamespaceMetadataResponse and assigns it to the Results field. +func (o *PaginatedansibleAnsibleNamespaceMetadataResponseList) SetResults(v []AnsibleAnsibleNamespaceMetadataResponse) { + o.Results = v +} + +func (o PaginatedansibleAnsibleNamespaceMetadataResponseList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedansibleAnsibleNamespaceMetadataResponseList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + return toSerialize, nil +} + +type NullablePaginatedansibleAnsibleNamespaceMetadataResponseList struct { + value *PaginatedansibleAnsibleNamespaceMetadataResponseList + isSet bool +} + +func (v NullablePaginatedansibleAnsibleNamespaceMetadataResponseList) Get() *PaginatedansibleAnsibleNamespaceMetadataResponseList { + return v.value +} + +func (v *NullablePaginatedansibleAnsibleNamespaceMetadataResponseList) Set(val *PaginatedansibleAnsibleNamespaceMetadataResponseList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedansibleAnsibleNamespaceMetadataResponseList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedansibleAnsibleNamespaceMetadataResponseList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedansibleAnsibleNamespaceMetadataResponseList(val *PaginatedansibleAnsibleNamespaceMetadataResponseList) *NullablePaginatedansibleAnsibleNamespaceMetadataResponseList { + return &NullablePaginatedansibleAnsibleNamespaceMetadataResponseList{value: val, isSet: true} +} + +func (v NullablePaginatedansibleAnsibleNamespaceMetadataResponseList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedansibleAnsibleNamespaceMetadataResponseList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_paginatedansible_ansible_repository_response_list.go b/release/model_paginatedansible_ansible_repository_response_list.go index d9ce7f7d..db15145b 100644 --- a/release/model_paginatedansible_ansible_repository_response_list.go +++ b/release/model_paginatedansible_ansible_repository_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedansible_collection_remote_response_list.go b/release/model_paginatedansible_collection_remote_response_list.go index 33d8fe40..a0ccd1e0 100644 --- a/release/model_paginatedansible_collection_remote_response_list.go +++ b/release/model_paginatedansible_collection_remote_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedansible_collection_response_list.go b/release/model_paginatedansible_collection_response_list.go index 4ffee223..97adfcc0 100644 --- a/release/model_paginatedansible_collection_response_list.go +++ b/release/model_paginatedansible_collection_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedansible_collection_version_mark_response_list.go b/release/model_paginatedansible_collection_version_mark_response_list.go new file mode 100644 index 00000000..c0255a30 --- /dev/null +++ b/release/model_paginatedansible_collection_version_mark_response_list.go @@ -0,0 +1,255 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" +) + +// checks if the PaginatedansibleCollectionVersionMarkResponseList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedansibleCollectionVersionMarkResponseList{} + +// PaginatedansibleCollectionVersionMarkResponseList struct for PaginatedansibleCollectionVersionMarkResponseList +type PaginatedansibleCollectionVersionMarkResponseList struct { + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []AnsibleCollectionVersionMarkResponse `json:"results,omitempty"` +} + +// NewPaginatedansibleCollectionVersionMarkResponseList instantiates a new PaginatedansibleCollectionVersionMarkResponseList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedansibleCollectionVersionMarkResponseList() *PaginatedansibleCollectionVersionMarkResponseList { + this := PaginatedansibleCollectionVersionMarkResponseList{} + return &this +} + +// NewPaginatedansibleCollectionVersionMarkResponseListWithDefaults instantiates a new PaginatedansibleCollectionVersionMarkResponseList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedansibleCollectionVersionMarkResponseListWithDefaults() *PaginatedansibleCollectionVersionMarkResponseList { + this := PaginatedansibleCollectionVersionMarkResponseList{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *PaginatedansibleCollectionVersionMarkResponseList) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedansibleCollectionVersionMarkResponseList) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *PaginatedansibleCollectionVersionMarkResponseList) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *PaginatedansibleCollectionVersionMarkResponseList) SetCount(v int32) { + o.Count = &v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedansibleCollectionVersionMarkResponseList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedansibleCollectionVersionMarkResponseList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedansibleCollectionVersionMarkResponseList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedansibleCollectionVersionMarkResponseList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedansibleCollectionVersionMarkResponseList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedansibleCollectionVersionMarkResponseList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedansibleCollectionVersionMarkResponseList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedansibleCollectionVersionMarkResponseList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedansibleCollectionVersionMarkResponseList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedansibleCollectionVersionMarkResponseList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedansibleCollectionVersionMarkResponseList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedansibleCollectionVersionMarkResponseList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *PaginatedansibleCollectionVersionMarkResponseList) GetResults() []AnsibleCollectionVersionMarkResponse { + if o == nil || IsNil(o.Results) { + var ret []AnsibleCollectionVersionMarkResponse + return ret + } + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedansibleCollectionVersionMarkResponseList) GetResultsOk() ([]AnsibleCollectionVersionMarkResponse, bool) { + if o == nil || IsNil(o.Results) { + return nil, false + } + return o.Results, true +} + +// HasResults returns a boolean if a field has been set. +func (o *PaginatedansibleCollectionVersionMarkResponseList) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []AnsibleCollectionVersionMarkResponse and assigns it to the Results field. +func (o *PaginatedansibleCollectionVersionMarkResponseList) SetResults(v []AnsibleCollectionVersionMarkResponse) { + o.Results = v +} + +func (o PaginatedansibleCollectionVersionMarkResponseList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedansibleCollectionVersionMarkResponseList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + return toSerialize, nil +} + +type NullablePaginatedansibleCollectionVersionMarkResponseList struct { + value *PaginatedansibleCollectionVersionMarkResponseList + isSet bool +} + +func (v NullablePaginatedansibleCollectionVersionMarkResponseList) Get() *PaginatedansibleCollectionVersionMarkResponseList { + return v.value +} + +func (v *NullablePaginatedansibleCollectionVersionMarkResponseList) Set(val *PaginatedansibleCollectionVersionMarkResponseList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedansibleCollectionVersionMarkResponseList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedansibleCollectionVersionMarkResponseList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedansibleCollectionVersionMarkResponseList(val *PaginatedansibleCollectionVersionMarkResponseList) *NullablePaginatedansibleCollectionVersionMarkResponseList { + return &NullablePaginatedansibleCollectionVersionMarkResponseList{value: val, isSet: true} +} + +func (v NullablePaginatedansibleCollectionVersionMarkResponseList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedansibleCollectionVersionMarkResponseList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_paginatedansible_collection_version_response_list.go b/release/model_paginatedansible_collection_version_response_list.go index db3643de..23719ffd 100644 --- a/release/model_paginatedansible_collection_version_response_list.go +++ b/release/model_paginatedansible_collection_version_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedansible_collection_version_signature_response_list.go b/release/model_paginatedansible_collection_version_signature_response_list.go index 0027c0a7..40cbf17c 100644 --- a/release/model_paginatedansible_collection_version_signature_response_list.go +++ b/release/model_paginatedansible_collection_version_signature_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedansible_git_remote_response_list.go b/release/model_paginatedansible_git_remote_response_list.go index ac3f92c6..8e70695f 100644 --- a/release/model_paginatedansible_git_remote_response_list.go +++ b/release/model_paginatedansible_git_remote_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedansible_role_remote_response_list.go b/release/model_paginatedansible_role_remote_response_list.go index a173d47b..4f456dbe 100644 --- a/release/model_paginatedansible_role_remote_response_list.go +++ b/release/model_paginatedansible_role_remote_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedansible_role_response_list.go b/release/model_paginatedansible_role_response_list.go index 02a830a0..5a77d842 100644 --- a/release/model_paginatedansible_role_response_list.go +++ b/release/model_paginatedansible_role_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedcertguard_rhsm_cert_guard_response_list.go b/release/model_paginatedcertguard_rhsm_cert_guard_response_list.go index 264ab833..2701dbac 100644 --- a/release/model_paginatedcertguard_rhsm_cert_guard_response_list.go +++ b/release/model_paginatedcertguard_rhsm_cert_guard_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedcertguard_x509_cert_guard_response_list.go b/release/model_paginatedcertguard_x509_cert_guard_response_list.go index afb7ba6a..e38e9b82 100644 --- a/release/model_paginatedcertguard_x509_cert_guard_response_list.go +++ b/release/model_paginatedcertguard_x509_cert_guard_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedcontainer_blob_response_list.go b/release/model_paginatedcontainer_blob_response_list.go index 1191d7af..7e59fe14 100644 --- a/release/model_paginatedcontainer_blob_response_list.go +++ b/release/model_paginatedcontainer_blob_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedcontainer_container_distribution_response_list.go b/release/model_paginatedcontainer_container_distribution_response_list.go index ca8e1ee9..575bb321 100644 --- a/release/model_paginatedcontainer_container_distribution_response_list.go +++ b/release/model_paginatedcontainer_container_distribution_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedcontainer_container_namespace_response_list.go b/release/model_paginatedcontainer_container_namespace_response_list.go index 28b86b78..2375aaf6 100644 --- a/release/model_paginatedcontainer_container_namespace_response_list.go +++ b/release/model_paginatedcontainer_container_namespace_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedcontainer_container_push_repository_response_list.go b/release/model_paginatedcontainer_container_push_repository_response_list.go index 9c86f063..a799037b 100644 --- a/release/model_paginatedcontainer_container_push_repository_response_list.go +++ b/release/model_paginatedcontainer_container_push_repository_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedcontainer_container_remote_response_list.go b/release/model_paginatedcontainer_container_remote_response_list.go index 4087c714..ca45d755 100644 --- a/release/model_paginatedcontainer_container_remote_response_list.go +++ b/release/model_paginatedcontainer_container_remote_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedcontainer_container_repository_response_list.go b/release/model_paginatedcontainer_container_repository_response_list.go index 2dde769a..37d0a80f 100644 --- a/release/model_paginatedcontainer_container_repository_response_list.go +++ b/release/model_paginatedcontainer_container_repository_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedcontainer_manifest_response_list.go b/release/model_paginatedcontainer_manifest_response_list.go index d0f38eb7..32d884d1 100644 --- a/release/model_paginatedcontainer_manifest_response_list.go +++ b/release/model_paginatedcontainer_manifest_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedcontainer_manifest_signature_response_list.go b/release/model_paginatedcontainer_manifest_signature_response_list.go index 3d6d5619..b1603dfc 100644 --- a/release/model_paginatedcontainer_manifest_signature_response_list.go +++ b/release/model_paginatedcontainer_manifest_signature_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedcontainer_tag_response_list.go b/release/model_paginatedcontainer_tag_response_list.go index e97cfbca..621eaf0a 100644 --- a/release/model_paginatedcontainer_tag_response_list.go +++ b/release/model_paginatedcontainer_tag_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginateddeb_apt_distribution_response_list.go b/release/model_paginateddeb_apt_distribution_response_list.go index f5e90ae5..2a52f6d2 100644 --- a/release/model_paginateddeb_apt_distribution_response_list.go +++ b/release/model_paginateddeb_apt_distribution_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginateddeb_apt_publication_response_list.go b/release/model_paginateddeb_apt_publication_response_list.go index 742087fd..a861bea3 100644 --- a/release/model_paginateddeb_apt_publication_response_list.go +++ b/release/model_paginateddeb_apt_publication_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginateddeb_apt_remote_response_list.go b/release/model_paginateddeb_apt_remote_response_list.go index 735b71fa..232dbfee 100644 --- a/release/model_paginateddeb_apt_remote_response_list.go +++ b/release/model_paginateddeb_apt_remote_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginateddeb_apt_repository_response_list.go b/release/model_paginateddeb_apt_repository_response_list.go index e584704f..158c9e6e 100644 --- a/release/model_paginateddeb_apt_repository_response_list.go +++ b/release/model_paginateddeb_apt_repository_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginateddeb_base_package_response_list.go b/release/model_paginateddeb_base_package_response_list.go index 07f6095e..f3bd5d79 100644 --- a/release/model_paginateddeb_base_package_response_list.go +++ b/release/model_paginateddeb_base_package_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginateddeb_generic_content_response_list.go b/release/model_paginateddeb_generic_content_response_list.go index 61e3b14c..9a02b1b4 100644 --- a/release/model_paginateddeb_generic_content_response_list.go +++ b/release/model_paginateddeb_generic_content_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginateddeb_installer_file_index_response_list.go b/release/model_paginateddeb_installer_file_index_response_list.go index c006f4f7..24321a8b 100644 --- a/release/model_paginateddeb_installer_file_index_response_list.go +++ b/release/model_paginateddeb_installer_file_index_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginateddeb_package_index_response_list.go b/release/model_paginateddeb_package_index_response_list.go index 1a961af2..010c6b43 100644 --- a/release/model_paginateddeb_package_index_response_list.go +++ b/release/model_paginateddeb_package_index_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginateddeb_package_release_component_response_list.go b/release/model_paginateddeb_package_release_component_response_list.go index f3d730a6..7e356c68 100644 --- a/release/model_paginateddeb_package_release_component_response_list.go +++ b/release/model_paginateddeb_package_release_component_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginateddeb_release_architecture_response_list.go b/release/model_paginateddeb_release_architecture_response_list.go index 0b3cb4d4..3caee1b9 100644 --- a/release/model_paginateddeb_release_architecture_response_list.go +++ b/release/model_paginateddeb_release_architecture_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginateddeb_release_component_response_list.go b/release/model_paginateddeb_release_component_response_list.go index c7c60a68..38fac601 100644 --- a/release/model_paginateddeb_release_component_response_list.go +++ b/release/model_paginateddeb_release_component_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginateddeb_release_file_response_list.go b/release/model_paginateddeb_release_file_response_list.go index 42cc357f..2c31eaf4 100644 --- a/release/model_paginateddeb_release_file_response_list.go +++ b/release/model_paginateddeb_release_file_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginateddeb_release_response_list.go b/release/model_paginateddeb_release_response_list.go index fdaef83c..845b26e6 100644 --- a/release/model_paginateddeb_release_response_list.go +++ b/release/model_paginateddeb_release_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginateddeb_verbatim_publication_response_list.go b/release/model_paginateddeb_verbatim_publication_response_list.go index 906d4be9..9139f31f 100644 --- a/release/model_paginateddeb_verbatim_publication_response_list.go +++ b/release/model_paginateddeb_verbatim_publication_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedfile_file_alternate_content_source_response_list.go b/release/model_paginatedfile_file_alternate_content_source_response_list.go index c7a140f1..353c208b 100644 --- a/release/model_paginatedfile_file_alternate_content_source_response_list.go +++ b/release/model_paginatedfile_file_alternate_content_source_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedfile_file_content_response_list.go b/release/model_paginatedfile_file_content_response_list.go index b46bcd81..7dfe3bdd 100644 --- a/release/model_paginatedfile_file_content_response_list.go +++ b/release/model_paginatedfile_file_content_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedfile_file_distribution_response_list.go b/release/model_paginatedfile_file_distribution_response_list.go index 95098a2c..b498de0d 100644 --- a/release/model_paginatedfile_file_distribution_response_list.go +++ b/release/model_paginatedfile_file_distribution_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedfile_file_publication_response_list.go b/release/model_paginatedfile_file_publication_response_list.go index c971735e..8f3c212d 100644 --- a/release/model_paginatedfile_file_publication_response_list.go +++ b/release/model_paginatedfile_file_publication_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedfile_file_remote_response_list.go b/release/model_paginatedfile_file_remote_response_list.go index 4c63f5ac..988cfa93 100644 --- a/release/model_paginatedfile_file_remote_response_list.go +++ b/release/model_paginatedfile_file_remote_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedfile_file_repository_response_list.go b/release/model_paginatedfile_file_repository_response_list.go index 44eff8d3..330769f6 100644 --- a/release/model_paginatedfile_file_repository_response_list.go +++ b/release/model_paginatedfile_file_repository_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedmaven_maven_artifact_response_list.go b/release/model_paginatedmaven_maven_artifact_response_list.go index 7b93031c..ed592352 100644 --- a/release/model_paginatedmaven_maven_artifact_response_list.go +++ b/release/model_paginatedmaven_maven_artifact_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedmaven_maven_distribution_response_list.go b/release/model_paginatedmaven_maven_distribution_response_list.go index 701c91be..a63934db 100644 --- a/release/model_paginatedmaven_maven_distribution_response_list.go +++ b/release/model_paginatedmaven_maven_distribution_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedmaven_maven_remote_response_list.go b/release/model_paginatedmaven_maven_remote_response_list.go index 0f4da325..0f0872b5 100644 --- a/release/model_paginatedmaven_maven_remote_response_list.go +++ b/release/model_paginatedmaven_maven_remote_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedmaven_maven_repository_response_list.go b/release/model_paginatedmaven_maven_repository_response_list.go index fc562ee0..da7e3892 100644 --- a/release/model_paginatedmaven_maven_repository_response_list.go +++ b/release/model_paginatedmaven_maven_repository_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedostree_ostree_commit_response_list.go b/release/model_paginatedostree_ostree_commit_response_list.go index 5de4d81e..800c5528 100644 --- a/release/model_paginatedostree_ostree_commit_response_list.go +++ b/release/model_paginatedostree_ostree_commit_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedostree_ostree_config_response_list.go b/release/model_paginatedostree_ostree_config_response_list.go index 63cdf1b8..40433183 100644 --- a/release/model_paginatedostree_ostree_config_response_list.go +++ b/release/model_paginatedostree_ostree_config_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedostree_ostree_content_response_list.go b/release/model_paginatedostree_ostree_content_response_list.go index 58a3ed92..ed23739a 100644 --- a/release/model_paginatedostree_ostree_content_response_list.go +++ b/release/model_paginatedostree_ostree_content_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedostree_ostree_distribution_response_list.go b/release/model_paginatedostree_ostree_distribution_response_list.go index 4e17b1d9..0b305c4c 100644 --- a/release/model_paginatedostree_ostree_distribution_response_list.go +++ b/release/model_paginatedostree_ostree_distribution_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedostree_ostree_object_response_list.go b/release/model_paginatedostree_ostree_object_response_list.go index 40bd9ba7..c59814a0 100644 --- a/release/model_paginatedostree_ostree_object_response_list.go +++ b/release/model_paginatedostree_ostree_object_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedostree_ostree_ref_response_list.go b/release/model_paginatedostree_ostree_ref_response_list.go index 33b8feaa..85c38e28 100644 --- a/release/model_paginatedostree_ostree_ref_response_list.go +++ b/release/model_paginatedostree_ostree_ref_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedostree_ostree_remote_response_list.go b/release/model_paginatedostree_ostree_remote_response_list.go index 477fa208..b8c2ce3a 100644 --- a/release/model_paginatedostree_ostree_remote_response_list.go +++ b/release/model_paginatedostree_ostree_remote_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedostree_ostree_repository_response_list.go b/release/model_paginatedostree_ostree_repository_response_list.go index de475b87..66e53744 100644 --- a/release/model_paginatedostree_ostree_repository_response_list.go +++ b/release/model_paginatedostree_ostree_repository_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedostree_ostree_summary_response_list.go b/release/model_paginatedostree_ostree_summary_response_list.go index 856389e4..e225f0ae 100644 --- a/release/model_paginatedostree_ostree_summary_response_list.go +++ b/release/model_paginatedostree_ostree_summary_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedpython_python_distribution_response_list.go b/release/model_paginatedpython_python_distribution_response_list.go index abae7b73..c8e4bd2d 100644 --- a/release/model_paginatedpython_python_distribution_response_list.go +++ b/release/model_paginatedpython_python_distribution_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedpython_python_package_content_response_list.go b/release/model_paginatedpython_python_package_content_response_list.go index 479e5b78..fa02708d 100644 --- a/release/model_paginatedpython_python_package_content_response_list.go +++ b/release/model_paginatedpython_python_package_content_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedpython_python_publication_response_list.go b/release/model_paginatedpython_python_publication_response_list.go index 62c089e0..9a20f526 100644 --- a/release/model_paginatedpython_python_publication_response_list.go +++ b/release/model_paginatedpython_python_publication_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedpython_python_remote_response_list.go b/release/model_paginatedpython_python_remote_response_list.go index 4e2d987e..eed1490d 100644 --- a/release/model_paginatedpython_python_remote_response_list.go +++ b/release/model_paginatedpython_python_remote_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedpython_python_repository_response_list.go b/release/model_paginatedpython_python_repository_response_list.go index 972ad13e..5a050136 100644 --- a/release/model_paginatedpython_python_repository_response_list.go +++ b/release/model_paginatedpython_python_repository_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_distribution_tree_response_list.go b/release/model_paginatedrpm_distribution_tree_response_list.go index eac1b079..72b37a43 100644 --- a/release/model_paginatedrpm_distribution_tree_response_list.go +++ b/release/model_paginatedrpm_distribution_tree_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_modulemd_defaults_response_list.go b/release/model_paginatedrpm_modulemd_defaults_response_list.go index 0a813b11..a873f13d 100644 --- a/release/model_paginatedrpm_modulemd_defaults_response_list.go +++ b/release/model_paginatedrpm_modulemd_defaults_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_modulemd_obsolete_response_list.go b/release/model_paginatedrpm_modulemd_obsolete_response_list.go index ce964a34..5cc7b96e 100644 --- a/release/model_paginatedrpm_modulemd_obsolete_response_list.go +++ b/release/model_paginatedrpm_modulemd_obsolete_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_modulemd_response_list.go b/release/model_paginatedrpm_modulemd_response_list.go index 11ea1bc5..c78694ac 100644 --- a/release/model_paginatedrpm_modulemd_response_list.go +++ b/release/model_paginatedrpm_modulemd_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_package_category_response_list.go b/release/model_paginatedrpm_package_category_response_list.go index 91801839..6b0fa7ad 100644 --- a/release/model_paginatedrpm_package_category_response_list.go +++ b/release/model_paginatedrpm_package_category_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_package_environment_response_list.go b/release/model_paginatedrpm_package_environment_response_list.go index d2399a68..b5ce2004 100644 --- a/release/model_paginatedrpm_package_environment_response_list.go +++ b/release/model_paginatedrpm_package_environment_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_package_group_response_list.go b/release/model_paginatedrpm_package_group_response_list.go index 7daff5ee..35185b30 100644 --- a/release/model_paginatedrpm_package_group_response_list.go +++ b/release/model_paginatedrpm_package_group_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_package_langpacks_response_list.go b/release/model_paginatedrpm_package_langpacks_response_list.go index 918a54a0..9ed3b94f 100644 --- a/release/model_paginatedrpm_package_langpacks_response_list.go +++ b/release/model_paginatedrpm_package_langpacks_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_package_response_list.go b/release/model_paginatedrpm_package_response_list.go index e1d78d97..711ad8a2 100644 --- a/release/model_paginatedrpm_package_response_list.go +++ b/release/model_paginatedrpm_package_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_repo_metadata_file_response_list.go b/release/model_paginatedrpm_repo_metadata_file_response_list.go index 1a644c1b..ad913f6f 100644 --- a/release/model_paginatedrpm_repo_metadata_file_response_list.go +++ b/release/model_paginatedrpm_repo_metadata_file_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_rpm_alternate_content_source_response_list.go b/release/model_paginatedrpm_rpm_alternate_content_source_response_list.go index c9dd7041..11a1427e 100644 --- a/release/model_paginatedrpm_rpm_alternate_content_source_response_list.go +++ b/release/model_paginatedrpm_rpm_alternate_content_source_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_rpm_distribution_response_list.go b/release/model_paginatedrpm_rpm_distribution_response_list.go index 58a10ea6..9eca457b 100644 --- a/release/model_paginatedrpm_rpm_distribution_response_list.go +++ b/release/model_paginatedrpm_rpm_distribution_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_rpm_publication_response_list.go b/release/model_paginatedrpm_rpm_publication_response_list.go index 934ac971..fca6e634 100644 --- a/release/model_paginatedrpm_rpm_publication_response_list.go +++ b/release/model_paginatedrpm_rpm_publication_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_rpm_remote_response_list.go b/release/model_paginatedrpm_rpm_remote_response_list.go index 9a81c277..baf0f46c 100644 --- a/release/model_paginatedrpm_rpm_remote_response_list.go +++ b/release/model_paginatedrpm_rpm_remote_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_rpm_repository_response_list.go b/release/model_paginatedrpm_rpm_repository_response_list.go index b8deb498..6c2225b7 100644 --- a/release/model_paginatedrpm_rpm_repository_response_list.go +++ b/release/model_paginatedrpm_rpm_repository_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_uln_remote_response_list.go b/release/model_paginatedrpm_uln_remote_response_list.go index 9684cf91..138f695a 100644 --- a/release/model_paginatedrpm_uln_remote_response_list.go +++ b/release/model_paginatedrpm_uln_remote_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_paginatedrpm_update_record_response_list.go b/release/model_paginatedrpm_update_record_response_list.go index 418ab3ff..bdda6752 100644 --- a/release/model_paginatedrpm_update_record_response_list.go +++ b/release/model_paginatedrpm_update_record_response_list.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patched_access_policy.go b/release/model_patched_access_policy.go index 551323de..92058bbe 100644 --- a/release/model_patched_access_policy.go +++ b/release/model_patched_access_policy.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patched_content_redirect_content_guard.go b/release/model_patched_content_redirect_content_guard.go index 5d768bc1..04df3fbf 100644 --- a/release/model_patched_content_redirect_content_guard.go +++ b/release/model_patched_content_redirect_content_guard.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patched_domain.go b/release/model_patched_domain.go index 1b5aa430..7c6b8717 100644 --- a/release/model_patched_domain.go +++ b/release/model_patched_domain.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patched_filesystem_exporter.go b/release/model_patched_filesystem_exporter.go index 0b95bcef..5f1b7407 100644 --- a/release/model_patched_filesystem_exporter.go +++ b/release/model_patched_filesystem_exporter.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patched_group.go b/release/model_patched_group.go index 1a770367..cc66a949 100644 --- a/release/model_patched_group.go +++ b/release/model_patched_group.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patched_pulp_exporter.go b/release/model_patched_pulp_exporter.go index a876f968..9b34cd99 100644 --- a/release/model_patched_pulp_exporter.go +++ b/release/model_patched_pulp_exporter.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patched_pulp_importer.go b/release/model_patched_pulp_importer.go index 17f87b2c..85c4d086 100644 --- a/release/model_patched_pulp_importer.go +++ b/release/model_patched_pulp_importer.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patched_rbac_content_guard.go b/release/model_patched_rbac_content_guard.go index 5e205bef..621085ac 100644 --- a/release/model_patched_rbac_content_guard.go +++ b/release/model_patched_rbac_content_guard.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patched_role.go b/release/model_patched_role.go index d4c5b4c0..4cd01678 100644 --- a/release/model_patched_role.go +++ b/release/model_patched_role.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patched_task_cancel.go b/release/model_patched_task_cancel.go index 568ba766..e1c1e508 100644 --- a/release/model_patched_task_cancel.go +++ b/release/model_patched_task_cancel.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patched_upstream_pulp.go b/release/model_patched_upstream_pulp.go index 1e14c03e..a0d19ad8 100644 --- a/release/model_patched_upstream_pulp.go +++ b/release/model_patched_upstream_pulp.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patched_user.go b/release/model_patched_user.go index a1d6599f..285964ce 100644 --- a/release/model_patched_user.go +++ b/release/model_patched_user.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedansible_ansible_distribution.go b/release/model_patchedansible_ansible_distribution.go index 26407b0a..0fba2b7a 100644 --- a/release/model_patchedansible_ansible_distribution.go +++ b/release/model_patchedansible_ansible_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedansible_ansible_namespace_metadata.go b/release/model_patchedansible_ansible_namespace_metadata.go new file mode 100644 index 00000000..8561ffab --- /dev/null +++ b/release/model_patchedansible_ansible_namespace_metadata.go @@ -0,0 +1,351 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the PatchedansibleAnsibleNamespaceMetadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedansibleAnsibleNamespaceMetadata{} + +// PatchedansibleAnsibleNamespaceMetadata A serializer for Namespaces. +type PatchedansibleAnsibleNamespaceMetadata struct { + // Required named, only accepts lowercase, numbers and underscores. + Name *string `json:"name,omitempty"` + // Optional namespace company owner. + Company *string `json:"company,omitempty"` + // Optional namespace contact email. + Email *string `json:"email,omitempty"` + // Optional short description. + Description *string `json:"description,omitempty"` + // Optional resource page in markdown format. + Resources *string `json:"resources,omitempty"` + // Labeled related links. + Links []NamespaceLink `json:"links,omitempty"` + // Optional avatar image for Namespace + Avatar **os.File `json:"avatar,omitempty"` +} + +// NewPatchedansibleAnsibleNamespaceMetadata instantiates a new PatchedansibleAnsibleNamespaceMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedansibleAnsibleNamespaceMetadata() *PatchedansibleAnsibleNamespaceMetadata { + this := PatchedansibleAnsibleNamespaceMetadata{} + return &this +} + +// NewPatchedansibleAnsibleNamespaceMetadataWithDefaults instantiates a new PatchedansibleAnsibleNamespaceMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedansibleAnsibleNamespaceMetadataWithDefaults() *PatchedansibleAnsibleNamespaceMetadata { + this := PatchedansibleAnsibleNamespaceMetadata{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PatchedansibleAnsibleNamespaceMetadata) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedansibleAnsibleNamespaceMetadata) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PatchedansibleAnsibleNamespaceMetadata) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PatchedansibleAnsibleNamespaceMetadata) SetName(v string) { + o.Name = &v +} + +// GetCompany returns the Company field value if set, zero value otherwise. +func (o *PatchedansibleAnsibleNamespaceMetadata) GetCompany() string { + if o == nil || IsNil(o.Company) { + var ret string + return ret + } + return *o.Company +} + +// GetCompanyOk returns a tuple with the Company field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedansibleAnsibleNamespaceMetadata) GetCompanyOk() (*string, bool) { + if o == nil || IsNil(o.Company) { + return nil, false + } + return o.Company, true +} + +// HasCompany returns a boolean if a field has been set. +func (o *PatchedansibleAnsibleNamespaceMetadata) HasCompany() bool { + if o != nil && !IsNil(o.Company) { + return true + } + + return false +} + +// SetCompany gets a reference to the given string and assigns it to the Company field. +func (o *PatchedansibleAnsibleNamespaceMetadata) SetCompany(v string) { + o.Company = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *PatchedansibleAnsibleNamespaceMetadata) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedansibleAnsibleNamespaceMetadata) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *PatchedansibleAnsibleNamespaceMetadata) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *PatchedansibleAnsibleNamespaceMetadata) SetEmail(v string) { + o.Email = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedansibleAnsibleNamespaceMetadata) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedansibleAnsibleNamespaceMetadata) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PatchedansibleAnsibleNamespaceMetadata) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PatchedansibleAnsibleNamespaceMetadata) SetDescription(v string) { + o.Description = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *PatchedansibleAnsibleNamespaceMetadata) GetResources() string { + if o == nil || IsNil(o.Resources) { + var ret string + return ret + } + return *o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedansibleAnsibleNamespaceMetadata) GetResourcesOk() (*string, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *PatchedansibleAnsibleNamespaceMetadata) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given string and assigns it to the Resources field. +func (o *PatchedansibleAnsibleNamespaceMetadata) SetResources(v string) { + o.Resources = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PatchedansibleAnsibleNamespaceMetadata) GetLinks() []NamespaceLink { + if o == nil || IsNil(o.Links) { + var ret []NamespaceLink + return ret + } + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedansibleAnsibleNamespaceMetadata) GetLinksOk() ([]NamespaceLink, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PatchedansibleAnsibleNamespaceMetadata) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given []NamespaceLink and assigns it to the Links field. +func (o *PatchedansibleAnsibleNamespaceMetadata) SetLinks(v []NamespaceLink) { + o.Links = v +} + +// GetAvatar returns the Avatar field value if set, zero value otherwise. +func (o *PatchedansibleAnsibleNamespaceMetadata) GetAvatar() *os.File { + if o == nil || IsNil(o.Avatar) { + var ret *os.File + return ret + } + return *o.Avatar +} + +// GetAvatarOk returns a tuple with the Avatar field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedansibleAnsibleNamespaceMetadata) GetAvatarOk() (**os.File, bool) { + if o == nil || IsNil(o.Avatar) { + return nil, false + } + return o.Avatar, true +} + +// HasAvatar returns a boolean if a field has been set. +func (o *PatchedansibleAnsibleNamespaceMetadata) HasAvatar() bool { + if o != nil && !IsNil(o.Avatar) { + return true + } + + return false +} + +// SetAvatar gets a reference to the given *os.File and assigns it to the Avatar field. +func (o *PatchedansibleAnsibleNamespaceMetadata) SetAvatar(v *os.File) { + o.Avatar = &v +} + +func (o PatchedansibleAnsibleNamespaceMetadata) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedansibleAnsibleNamespaceMetadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Company) { + toSerialize["company"] = o.Company + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Avatar) { + toSerialize["avatar"] = o.Avatar + } + return toSerialize, nil +} + +type NullablePatchedansibleAnsibleNamespaceMetadata struct { + value *PatchedansibleAnsibleNamespaceMetadata + isSet bool +} + +func (v NullablePatchedansibleAnsibleNamespaceMetadata) Get() *PatchedansibleAnsibleNamespaceMetadata { + return v.value +} + +func (v *NullablePatchedansibleAnsibleNamespaceMetadata) Set(val *PatchedansibleAnsibleNamespaceMetadata) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedansibleAnsibleNamespaceMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedansibleAnsibleNamespaceMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedansibleAnsibleNamespaceMetadata(val *PatchedansibleAnsibleNamespaceMetadata) *NullablePatchedansibleAnsibleNamespaceMetadata { + return &NullablePatchedansibleAnsibleNamespaceMetadata{value: val, isSet: true} +} + +func (v NullablePatchedansibleAnsibleNamespaceMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedansibleAnsibleNamespaceMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_patchedansible_ansible_repository.go b/release/model_patchedansible_ansible_repository.go index 242632f2..69fd001d 100644 --- a/release/model_patchedansible_ansible_repository.go +++ b/release/model_patchedansible_ansible_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -34,6 +34,7 @@ type PatchedansibleAnsibleRepository struct { LastSyncedMetadataTime NullableTime `json:"last_synced_metadata_time,omitempty"` // Gpg public key to verify collection signatures against Gpgkey NullableString `json:"gpgkey,omitempty"` + Private *bool `json:"private,omitempty"` } // NewPatchedansibleAnsibleRepository instantiates a new PatchedansibleAnsibleRepository object @@ -327,6 +328,38 @@ func (o *PatchedansibleAnsibleRepository) UnsetGpgkey() { o.Gpgkey.Unset() } +// GetPrivate returns the Private field value if set, zero value otherwise. +func (o *PatchedansibleAnsibleRepository) GetPrivate() bool { + if o == nil || IsNil(o.Private) { + var ret bool + return ret + } + return *o.Private +} + +// GetPrivateOk returns a tuple with the Private field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedansibleAnsibleRepository) GetPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.Private) { + return nil, false + } + return o.Private, true +} + +// HasPrivate returns a boolean if a field has been set. +func (o *PatchedansibleAnsibleRepository) HasPrivate() bool { + if o != nil && !IsNil(o.Private) { + return true + } + + return false +} + +// SetPrivate gets a reference to the given bool and assigns it to the Private field. +func (o *PatchedansibleAnsibleRepository) SetPrivate(v bool) { + o.Private = &v +} + func (o PatchedansibleAnsibleRepository) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -358,6 +391,9 @@ func (o PatchedansibleAnsibleRepository) ToMap() (map[string]interface{}, error) if o.Gpgkey.IsSet() { toSerialize["gpgkey"] = o.Gpgkey.Get() } + if !IsNil(o.Private) { + toSerialize["private"] = o.Private + } return toSerialize, nil } diff --git a/release/model_patchedansible_collection_remote.go b/release/model_patchedansible_collection_remote.go index 6124ad4c..ded209bf 100644 --- a/release/model_patchedansible_collection_remote.go +++ b/release/model_patchedansible_collection_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedansible_git_remote.go b/release/model_patchedansible_git_remote.go index e56f4a6b..683982a6 100644 --- a/release/model_patchedansible_git_remote.go +++ b/release/model_patchedansible_git_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -20,45 +20,45 @@ var _ MappedNullable = &PatchedansibleGitRemote{} // PatchedansibleGitRemote A serializer for Git Collection Remotes. type PatchedansibleGitRemote struct { - // Headers for aiohttp.Clientsession - Headers []map[string]interface{} `json:"headers,omitempty"` - // aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. - SockReadTimeout NullableFloat64 `json:"sock_read_timeout,omitempty"` - // aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. - SockConnectTimeout NullableFloat64 `json:"sock_connect_timeout,omitempty"` - // aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. - ConnectTimeout NullableFloat64 `json:"connect_timeout,omitempty"` + // Total number of simultaneous connections. If not set then the default value will be used. + DownloadConcurrency NullableInt64 `json:"download_concurrency,omitempty"` + // Limits requests per second for each concurrent downloader + RateLimit NullableInt64 `json:"rate_limit,omitempty"` // A unique name for this remote. Name *string `json:"name,omitempty"` // A PEM encoded client certificate used for authentication. ClientCert NullableString `json:"client_cert,omitempty"` - // The proxy URL. Format: scheme://host:port - ProxyUrl NullableString `json:"proxy_url,omitempty"` - // The username to authenticte to the proxy. - ProxyUsername NullableString `json:"proxy_username,omitempty"` - // The username to be used for authentication when syncing. - Username NullableString `json:"username,omitempty"` - // aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. - TotalTimeout NullableFloat64 `json:"total_timeout,omitempty"` // Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. MaxRetries NullableInt64 `json:"max_retries,omitempty"` + // aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. + SockReadTimeout NullableFloat64 `json:"sock_read_timeout,omitempty"` // The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. Password NullableString `json:"password,omitempty"` - // Total number of simultaneous connections. If not set then the default value will be used. - DownloadConcurrency NullableInt64 `json:"download_concurrency,omitempty"` - // Limits requests per second for each concurrent downloader - RateLimit NullableInt64 `json:"rate_limit,omitempty"` - // A PEM encoded private key used for authentication. - ClientKey NullableString `json:"client_key,omitempty"` + // aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. + TotalTimeout NullableFloat64 `json:"total_timeout,omitempty"` + // The username to be used for authentication when syncing. + Username NullableString `json:"username,omitempty"` // The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. ProxyPassword NullableString `json:"proxy_password,omitempty"` PulpLabels *map[string]string `json:"pulp_labels,omitempty"` + // The proxy URL. Format: scheme://host:port + ProxyUrl NullableString `json:"proxy_url,omitempty"` + // A PEM encoded private key used for authentication. + ClientKey NullableString `json:"client_key,omitempty"` + // aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. + ConnectTimeout NullableFloat64 `json:"connect_timeout,omitempty"` + // A PEM encoded CA certificate used to validate the server certificate presented by the remote server. + CaCert NullableString `json:"ca_cert,omitempty"` // If True, TLS peer validation must be performed. TlsValidation *bool `json:"tls_validation,omitempty"` + // aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. + SockConnectTimeout NullableFloat64 `json:"sock_connect_timeout,omitempty"` // The URL of an external content source. Url *string `json:"url,omitempty"` - // A PEM encoded CA certificate used to validate the server certificate presented by the remote server. - CaCert NullableString `json:"ca_cert,omitempty"` + // The username to authenticte to the proxy. + ProxyUsername NullableString `json:"proxy_username,omitempty"` + // Headers for aiohttp.Clientsession + Headers []map[string]interface{} `json:"headers,omitempty"` // If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL. MetadataOnly *bool `json:"metadata_only,omitempty"` // A git ref. e.g.: branch, tag, or commit sha. @@ -82,162 +82,88 @@ func NewPatchedansibleGitRemoteWithDefaults() *PatchedansibleGitRemote { return &this } -// GetHeaders returns the Headers field value if set, zero value otherwise. -func (o *PatchedansibleGitRemote) GetHeaders() []map[string]interface{} { - if o == nil || IsNil(o.Headers) { - var ret []map[string]interface{} - return ret - } - return o.Headers -} - -// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedansibleGitRemote) GetHeadersOk() ([]map[string]interface{}, bool) { - if o == nil || IsNil(o.Headers) { - return nil, false - } - return o.Headers, true -} - -// HasHeaders returns a boolean if a field has been set. -func (o *PatchedansibleGitRemote) HasHeaders() bool { - if o != nil && !IsNil(o.Headers) { - return true - } - - return false -} - -// SetHeaders gets a reference to the given []map[string]interface{} and assigns it to the Headers field. -func (o *PatchedansibleGitRemote) SetHeaders(v []map[string]interface{}) { - o.Headers = v -} - -// GetSockReadTimeout returns the SockReadTimeout field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedansibleGitRemote) GetSockReadTimeout() float64 { - if o == nil || IsNil(o.SockReadTimeout.Get()) { - var ret float64 - return ret - } - return *o.SockReadTimeout.Get() -} - -// GetSockReadTimeoutOk returns a tuple with the SockReadTimeout field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedansibleGitRemote) GetSockReadTimeoutOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.SockReadTimeout.Get(), o.SockReadTimeout.IsSet() -} - -// HasSockReadTimeout returns a boolean if a field has been set. -func (o *PatchedansibleGitRemote) HasSockReadTimeout() bool { - if o != nil && o.SockReadTimeout.IsSet() { - return true - } - - return false -} - -// SetSockReadTimeout gets a reference to the given NullableFloat64 and assigns it to the SockReadTimeout field. -func (o *PatchedansibleGitRemote) SetSockReadTimeout(v float64) { - o.SockReadTimeout.Set(&v) -} -// SetSockReadTimeoutNil sets the value for SockReadTimeout to be an explicit nil -func (o *PatchedansibleGitRemote) SetSockReadTimeoutNil() { - o.SockReadTimeout.Set(nil) -} - -// UnsetSockReadTimeout ensures that no value is present for SockReadTimeout, not even an explicit nil -func (o *PatchedansibleGitRemote) UnsetSockReadTimeout() { - o.SockReadTimeout.Unset() -} - -// GetSockConnectTimeout returns the SockConnectTimeout field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedansibleGitRemote) GetSockConnectTimeout() float64 { - if o == nil || IsNil(o.SockConnectTimeout.Get()) { - var ret float64 +// GetDownloadConcurrency returns the DownloadConcurrency field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedansibleGitRemote) GetDownloadConcurrency() int64 { + if o == nil || IsNil(o.DownloadConcurrency.Get()) { + var ret int64 return ret } - return *o.SockConnectTimeout.Get() + return *o.DownloadConcurrency.Get() } -// GetSockConnectTimeoutOk returns a tuple with the SockConnectTimeout field value if set, nil otherwise +// GetDownloadConcurrencyOk returns a tuple with the DownloadConcurrency field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedansibleGitRemote) GetSockConnectTimeoutOk() (*float64, bool) { +func (o *PatchedansibleGitRemote) GetDownloadConcurrencyOk() (*int64, bool) { if o == nil { return nil, false } - return o.SockConnectTimeout.Get(), o.SockConnectTimeout.IsSet() + return o.DownloadConcurrency.Get(), o.DownloadConcurrency.IsSet() } -// HasSockConnectTimeout returns a boolean if a field has been set. -func (o *PatchedansibleGitRemote) HasSockConnectTimeout() bool { - if o != nil && o.SockConnectTimeout.IsSet() { +// HasDownloadConcurrency returns a boolean if a field has been set. +func (o *PatchedansibleGitRemote) HasDownloadConcurrency() bool { + if o != nil && o.DownloadConcurrency.IsSet() { return true } return false } -// SetSockConnectTimeout gets a reference to the given NullableFloat64 and assigns it to the SockConnectTimeout field. -func (o *PatchedansibleGitRemote) SetSockConnectTimeout(v float64) { - o.SockConnectTimeout.Set(&v) +// SetDownloadConcurrency gets a reference to the given NullableInt64 and assigns it to the DownloadConcurrency field. +func (o *PatchedansibleGitRemote) SetDownloadConcurrency(v int64) { + o.DownloadConcurrency.Set(&v) } -// SetSockConnectTimeoutNil sets the value for SockConnectTimeout to be an explicit nil -func (o *PatchedansibleGitRemote) SetSockConnectTimeoutNil() { - o.SockConnectTimeout.Set(nil) +// SetDownloadConcurrencyNil sets the value for DownloadConcurrency to be an explicit nil +func (o *PatchedansibleGitRemote) SetDownloadConcurrencyNil() { + o.DownloadConcurrency.Set(nil) } -// UnsetSockConnectTimeout ensures that no value is present for SockConnectTimeout, not even an explicit nil -func (o *PatchedansibleGitRemote) UnsetSockConnectTimeout() { - o.SockConnectTimeout.Unset() +// UnsetDownloadConcurrency ensures that no value is present for DownloadConcurrency, not even an explicit nil +func (o *PatchedansibleGitRemote) UnsetDownloadConcurrency() { + o.DownloadConcurrency.Unset() } -// GetConnectTimeout returns the ConnectTimeout field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedansibleGitRemote) GetConnectTimeout() float64 { - if o == nil || IsNil(o.ConnectTimeout.Get()) { - var ret float64 +// GetRateLimit returns the RateLimit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedansibleGitRemote) GetRateLimit() int64 { + if o == nil || IsNil(o.RateLimit.Get()) { + var ret int64 return ret } - return *o.ConnectTimeout.Get() + return *o.RateLimit.Get() } -// GetConnectTimeoutOk returns a tuple with the ConnectTimeout field value if set, nil otherwise +// GetRateLimitOk returns a tuple with the RateLimit field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedansibleGitRemote) GetConnectTimeoutOk() (*float64, bool) { +func (o *PatchedansibleGitRemote) GetRateLimitOk() (*int64, bool) { if o == nil { return nil, false } - return o.ConnectTimeout.Get(), o.ConnectTimeout.IsSet() + return o.RateLimit.Get(), o.RateLimit.IsSet() } -// HasConnectTimeout returns a boolean if a field has been set. -func (o *PatchedansibleGitRemote) HasConnectTimeout() bool { - if o != nil && o.ConnectTimeout.IsSet() { +// HasRateLimit returns a boolean if a field has been set. +func (o *PatchedansibleGitRemote) HasRateLimit() bool { + if o != nil && o.RateLimit.IsSet() { return true } return false } -// SetConnectTimeout gets a reference to the given NullableFloat64 and assigns it to the ConnectTimeout field. -func (o *PatchedansibleGitRemote) SetConnectTimeout(v float64) { - o.ConnectTimeout.Set(&v) +// SetRateLimit gets a reference to the given NullableInt64 and assigns it to the RateLimit field. +func (o *PatchedansibleGitRemote) SetRateLimit(v int64) { + o.RateLimit.Set(&v) } -// SetConnectTimeoutNil sets the value for ConnectTimeout to be an explicit nil -func (o *PatchedansibleGitRemote) SetConnectTimeoutNil() { - o.ConnectTimeout.Set(nil) +// SetRateLimitNil sets the value for RateLimit to be an explicit nil +func (o *PatchedansibleGitRemote) SetRateLimitNil() { + o.RateLimit.Set(nil) } -// UnsetConnectTimeout ensures that no value is present for ConnectTimeout, not even an explicit nil -func (o *PatchedansibleGitRemote) UnsetConnectTimeout() { - o.ConnectTimeout.Unset() +// UnsetRateLimit ensures that no value is present for RateLimit, not even an explicit nil +func (o *PatchedansibleGitRemote) UnsetRateLimit() { + o.RateLimit.Unset() } // GetName returns the Name field value if set, zero value otherwise. @@ -314,130 +240,130 @@ func (o *PatchedansibleGitRemote) UnsetClientCert() { o.ClientCert.Unset() } -// GetProxyUrl returns the ProxyUrl field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedansibleGitRemote) GetProxyUrl() string { - if o == nil || IsNil(o.ProxyUrl.Get()) { - var ret string +// GetMaxRetries returns the MaxRetries field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedansibleGitRemote) GetMaxRetries() int64 { + if o == nil || IsNil(o.MaxRetries.Get()) { + var ret int64 return ret } - return *o.ProxyUrl.Get() + return *o.MaxRetries.Get() } -// GetProxyUrlOk returns a tuple with the ProxyUrl field value if set, nil otherwise +// GetMaxRetriesOk returns a tuple with the MaxRetries field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedansibleGitRemote) GetProxyUrlOk() (*string, bool) { +func (o *PatchedansibleGitRemote) GetMaxRetriesOk() (*int64, bool) { if o == nil { return nil, false } - return o.ProxyUrl.Get(), o.ProxyUrl.IsSet() + return o.MaxRetries.Get(), o.MaxRetries.IsSet() } -// HasProxyUrl returns a boolean if a field has been set. -func (o *PatchedansibleGitRemote) HasProxyUrl() bool { - if o != nil && o.ProxyUrl.IsSet() { +// HasMaxRetries returns a boolean if a field has been set. +func (o *PatchedansibleGitRemote) HasMaxRetries() bool { + if o != nil && o.MaxRetries.IsSet() { return true } return false } -// SetProxyUrl gets a reference to the given NullableString and assigns it to the ProxyUrl field. -func (o *PatchedansibleGitRemote) SetProxyUrl(v string) { - o.ProxyUrl.Set(&v) +// SetMaxRetries gets a reference to the given NullableInt64 and assigns it to the MaxRetries field. +func (o *PatchedansibleGitRemote) SetMaxRetries(v int64) { + o.MaxRetries.Set(&v) } -// SetProxyUrlNil sets the value for ProxyUrl to be an explicit nil -func (o *PatchedansibleGitRemote) SetProxyUrlNil() { - o.ProxyUrl.Set(nil) +// SetMaxRetriesNil sets the value for MaxRetries to be an explicit nil +func (o *PatchedansibleGitRemote) SetMaxRetriesNil() { + o.MaxRetries.Set(nil) } -// UnsetProxyUrl ensures that no value is present for ProxyUrl, not even an explicit nil -func (o *PatchedansibleGitRemote) UnsetProxyUrl() { - o.ProxyUrl.Unset() +// UnsetMaxRetries ensures that no value is present for MaxRetries, not even an explicit nil +func (o *PatchedansibleGitRemote) UnsetMaxRetries() { + o.MaxRetries.Unset() } -// GetProxyUsername returns the ProxyUsername field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedansibleGitRemote) GetProxyUsername() string { - if o == nil || IsNil(o.ProxyUsername.Get()) { - var ret string +// GetSockReadTimeout returns the SockReadTimeout field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedansibleGitRemote) GetSockReadTimeout() float64 { + if o == nil || IsNil(o.SockReadTimeout.Get()) { + var ret float64 return ret } - return *o.ProxyUsername.Get() + return *o.SockReadTimeout.Get() } -// GetProxyUsernameOk returns a tuple with the ProxyUsername field value if set, nil otherwise +// GetSockReadTimeoutOk returns a tuple with the SockReadTimeout field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedansibleGitRemote) GetProxyUsernameOk() (*string, bool) { +func (o *PatchedansibleGitRemote) GetSockReadTimeoutOk() (*float64, bool) { if o == nil { return nil, false } - return o.ProxyUsername.Get(), o.ProxyUsername.IsSet() + return o.SockReadTimeout.Get(), o.SockReadTimeout.IsSet() } -// HasProxyUsername returns a boolean if a field has been set. -func (o *PatchedansibleGitRemote) HasProxyUsername() bool { - if o != nil && o.ProxyUsername.IsSet() { +// HasSockReadTimeout returns a boolean if a field has been set. +func (o *PatchedansibleGitRemote) HasSockReadTimeout() bool { + if o != nil && o.SockReadTimeout.IsSet() { return true } return false } -// SetProxyUsername gets a reference to the given NullableString and assigns it to the ProxyUsername field. -func (o *PatchedansibleGitRemote) SetProxyUsername(v string) { - o.ProxyUsername.Set(&v) +// SetSockReadTimeout gets a reference to the given NullableFloat64 and assigns it to the SockReadTimeout field. +func (o *PatchedansibleGitRemote) SetSockReadTimeout(v float64) { + o.SockReadTimeout.Set(&v) } -// SetProxyUsernameNil sets the value for ProxyUsername to be an explicit nil -func (o *PatchedansibleGitRemote) SetProxyUsernameNil() { - o.ProxyUsername.Set(nil) +// SetSockReadTimeoutNil sets the value for SockReadTimeout to be an explicit nil +func (o *PatchedansibleGitRemote) SetSockReadTimeoutNil() { + o.SockReadTimeout.Set(nil) } -// UnsetProxyUsername ensures that no value is present for ProxyUsername, not even an explicit nil -func (o *PatchedansibleGitRemote) UnsetProxyUsername() { - o.ProxyUsername.Unset() +// UnsetSockReadTimeout ensures that no value is present for SockReadTimeout, not even an explicit nil +func (o *PatchedansibleGitRemote) UnsetSockReadTimeout() { + o.SockReadTimeout.Unset() } -// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedansibleGitRemote) GetUsername() string { - if o == nil || IsNil(o.Username.Get()) { +// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedansibleGitRemote) GetPassword() string { + if o == nil || IsNil(o.Password.Get()) { var ret string return ret } - return *o.Username.Get() + return *o.Password.Get() } -// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedansibleGitRemote) GetUsernameOk() (*string, bool) { +func (o *PatchedansibleGitRemote) GetPasswordOk() (*string, bool) { if o == nil { return nil, false } - return o.Username.Get(), o.Username.IsSet() + return o.Password.Get(), o.Password.IsSet() } -// HasUsername returns a boolean if a field has been set. -func (o *PatchedansibleGitRemote) HasUsername() bool { - if o != nil && o.Username.IsSet() { +// HasPassword returns a boolean if a field has been set. +func (o *PatchedansibleGitRemote) HasPassword() bool { + if o != nil && o.Password.IsSet() { return true } return false } -// SetUsername gets a reference to the given NullableString and assigns it to the Username field. -func (o *PatchedansibleGitRemote) SetUsername(v string) { - o.Username.Set(&v) +// SetPassword gets a reference to the given NullableString and assigns it to the Password field. +func (o *PatchedansibleGitRemote) SetPassword(v string) { + o.Password.Set(&v) } -// SetUsernameNil sets the value for Username to be an explicit nil -func (o *PatchedansibleGitRemote) SetUsernameNil() { - o.Username.Set(nil) +// SetPasswordNil sets the value for Password to be an explicit nil +func (o *PatchedansibleGitRemote) SetPasswordNil() { + o.Password.Set(nil) } -// UnsetUsername ensures that no value is present for Username, not even an explicit nil -func (o *PatchedansibleGitRemote) UnsetUsername() { - o.Username.Unset() +// UnsetPassword ensures that no value is present for Password, not even an explicit nil +func (o *PatchedansibleGitRemote) UnsetPassword() { + o.Password.Unset() } // GetTotalTimeout returns the TotalTimeout field value if set, zero value otherwise (both if not set or set to explicit null). @@ -482,172 +408,162 @@ func (o *PatchedansibleGitRemote) UnsetTotalTimeout() { o.TotalTimeout.Unset() } -// GetMaxRetries returns the MaxRetries field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedansibleGitRemote) GetMaxRetries() int64 { - if o == nil || IsNil(o.MaxRetries.Get()) { - var ret int64 +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedansibleGitRemote) GetUsername() string { + if o == nil || IsNil(o.Username.Get()) { + var ret string return ret } - return *o.MaxRetries.Get() + return *o.Username.Get() } -// GetMaxRetriesOk returns a tuple with the MaxRetries field value if set, nil otherwise +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedansibleGitRemote) GetMaxRetriesOk() (*int64, bool) { +func (o *PatchedansibleGitRemote) GetUsernameOk() (*string, bool) { if o == nil { return nil, false } - return o.MaxRetries.Get(), o.MaxRetries.IsSet() + return o.Username.Get(), o.Username.IsSet() } -// HasMaxRetries returns a boolean if a field has been set. -func (o *PatchedansibleGitRemote) HasMaxRetries() bool { - if o != nil && o.MaxRetries.IsSet() { +// HasUsername returns a boolean if a field has been set. +func (o *PatchedansibleGitRemote) HasUsername() bool { + if o != nil && o.Username.IsSet() { return true } return false } -// SetMaxRetries gets a reference to the given NullableInt64 and assigns it to the MaxRetries field. -func (o *PatchedansibleGitRemote) SetMaxRetries(v int64) { - o.MaxRetries.Set(&v) +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *PatchedansibleGitRemote) SetUsername(v string) { + o.Username.Set(&v) } -// SetMaxRetriesNil sets the value for MaxRetries to be an explicit nil -func (o *PatchedansibleGitRemote) SetMaxRetriesNil() { - o.MaxRetries.Set(nil) +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *PatchedansibleGitRemote) SetUsernameNil() { + o.Username.Set(nil) } -// UnsetMaxRetries ensures that no value is present for MaxRetries, not even an explicit nil -func (o *PatchedansibleGitRemote) UnsetMaxRetries() { - o.MaxRetries.Unset() +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *PatchedansibleGitRemote) UnsetUsername() { + o.Username.Unset() } -// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedansibleGitRemote) GetPassword() string { - if o == nil || IsNil(o.Password.Get()) { +// GetProxyPassword returns the ProxyPassword field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedansibleGitRemote) GetProxyPassword() string { + if o == nil || IsNil(o.ProxyPassword.Get()) { var ret string return ret } - return *o.Password.Get() + return *o.ProxyPassword.Get() } -// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// GetProxyPasswordOk returns a tuple with the ProxyPassword field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedansibleGitRemote) GetPasswordOk() (*string, bool) { +func (o *PatchedansibleGitRemote) GetProxyPasswordOk() (*string, bool) { if o == nil { return nil, false } - return o.Password.Get(), o.Password.IsSet() + return o.ProxyPassword.Get(), o.ProxyPassword.IsSet() } -// HasPassword returns a boolean if a field has been set. -func (o *PatchedansibleGitRemote) HasPassword() bool { - if o != nil && o.Password.IsSet() { +// HasProxyPassword returns a boolean if a field has been set. +func (o *PatchedansibleGitRemote) HasProxyPassword() bool { + if o != nil && o.ProxyPassword.IsSet() { return true } return false } -// SetPassword gets a reference to the given NullableString and assigns it to the Password field. -func (o *PatchedansibleGitRemote) SetPassword(v string) { - o.Password.Set(&v) +// SetProxyPassword gets a reference to the given NullableString and assigns it to the ProxyPassword field. +func (o *PatchedansibleGitRemote) SetProxyPassword(v string) { + o.ProxyPassword.Set(&v) } -// SetPasswordNil sets the value for Password to be an explicit nil -func (o *PatchedansibleGitRemote) SetPasswordNil() { - o.Password.Set(nil) +// SetProxyPasswordNil sets the value for ProxyPassword to be an explicit nil +func (o *PatchedansibleGitRemote) SetProxyPasswordNil() { + o.ProxyPassword.Set(nil) } -// UnsetPassword ensures that no value is present for Password, not even an explicit nil -func (o *PatchedansibleGitRemote) UnsetPassword() { - o.Password.Unset() +// UnsetProxyPassword ensures that no value is present for ProxyPassword, not even an explicit nil +func (o *PatchedansibleGitRemote) UnsetProxyPassword() { + o.ProxyPassword.Unset() } -// GetDownloadConcurrency returns the DownloadConcurrency field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedansibleGitRemote) GetDownloadConcurrency() int64 { - if o == nil || IsNil(o.DownloadConcurrency.Get()) { - var ret int64 +// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. +func (o *PatchedansibleGitRemote) GetPulpLabels() map[string]string { + if o == nil || IsNil(o.PulpLabels) { + var ret map[string]string return ret } - return *o.DownloadConcurrency.Get() + return *o.PulpLabels } -// GetDownloadConcurrencyOk returns a tuple with the DownloadConcurrency field value if set, nil otherwise +// GetPulpLabelsOk returns a tuple with the PulpLabels field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedansibleGitRemote) GetDownloadConcurrencyOk() (*int64, bool) { - if o == nil { +func (o *PatchedansibleGitRemote) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { return nil, false } - return o.DownloadConcurrency.Get(), o.DownloadConcurrency.IsSet() + return o.PulpLabels, true } -// HasDownloadConcurrency returns a boolean if a field has been set. -func (o *PatchedansibleGitRemote) HasDownloadConcurrency() bool { - if o != nil && o.DownloadConcurrency.IsSet() { +// HasPulpLabels returns a boolean if a field has been set. +func (o *PatchedansibleGitRemote) HasPulpLabels() bool { + if o != nil && !IsNil(o.PulpLabels) { return true } return false } -// SetDownloadConcurrency gets a reference to the given NullableInt64 and assigns it to the DownloadConcurrency field. -func (o *PatchedansibleGitRemote) SetDownloadConcurrency(v int64) { - o.DownloadConcurrency.Set(&v) -} -// SetDownloadConcurrencyNil sets the value for DownloadConcurrency to be an explicit nil -func (o *PatchedansibleGitRemote) SetDownloadConcurrencyNil() { - o.DownloadConcurrency.Set(nil) -} - -// UnsetDownloadConcurrency ensures that no value is present for DownloadConcurrency, not even an explicit nil -func (o *PatchedansibleGitRemote) UnsetDownloadConcurrency() { - o.DownloadConcurrency.Unset() +// SetPulpLabels gets a reference to the given map[string]string and assigns it to the PulpLabels field. +func (o *PatchedansibleGitRemote) SetPulpLabels(v map[string]string) { + o.PulpLabels = &v } -// GetRateLimit returns the RateLimit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedansibleGitRemote) GetRateLimit() int64 { - if o == nil || IsNil(o.RateLimit.Get()) { - var ret int64 +// GetProxyUrl returns the ProxyUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedansibleGitRemote) GetProxyUrl() string { + if o == nil || IsNil(o.ProxyUrl.Get()) { + var ret string return ret } - return *o.RateLimit.Get() + return *o.ProxyUrl.Get() } -// GetRateLimitOk returns a tuple with the RateLimit field value if set, nil otherwise +// GetProxyUrlOk returns a tuple with the ProxyUrl field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedansibleGitRemote) GetRateLimitOk() (*int64, bool) { +func (o *PatchedansibleGitRemote) GetProxyUrlOk() (*string, bool) { if o == nil { return nil, false } - return o.RateLimit.Get(), o.RateLimit.IsSet() + return o.ProxyUrl.Get(), o.ProxyUrl.IsSet() } -// HasRateLimit returns a boolean if a field has been set. -func (o *PatchedansibleGitRemote) HasRateLimit() bool { - if o != nil && o.RateLimit.IsSet() { +// HasProxyUrl returns a boolean if a field has been set. +func (o *PatchedansibleGitRemote) HasProxyUrl() bool { + if o != nil && o.ProxyUrl.IsSet() { return true } return false } -// SetRateLimit gets a reference to the given NullableInt64 and assigns it to the RateLimit field. -func (o *PatchedansibleGitRemote) SetRateLimit(v int64) { - o.RateLimit.Set(&v) +// SetProxyUrl gets a reference to the given NullableString and assigns it to the ProxyUrl field. +func (o *PatchedansibleGitRemote) SetProxyUrl(v string) { + o.ProxyUrl.Set(&v) } -// SetRateLimitNil sets the value for RateLimit to be an explicit nil -func (o *PatchedansibleGitRemote) SetRateLimitNil() { - o.RateLimit.Set(nil) +// SetProxyUrlNil sets the value for ProxyUrl to be an explicit nil +func (o *PatchedansibleGitRemote) SetProxyUrlNil() { + o.ProxyUrl.Set(nil) } - -// UnsetRateLimit ensures that no value is present for RateLimit, not even an explicit nil -func (o *PatchedansibleGitRemote) UnsetRateLimit() { - o.RateLimit.Unset() + +// UnsetProxyUrl ensures that no value is present for ProxyUrl, not even an explicit nil +func (o *PatchedansibleGitRemote) UnsetProxyUrl() { + o.ProxyUrl.Unset() } // GetClientKey returns the ClientKey field value if set, zero value otherwise (both if not set or set to explicit null). @@ -692,78 +608,88 @@ func (o *PatchedansibleGitRemote) UnsetClientKey() { o.ClientKey.Unset() } -// GetProxyPassword returns the ProxyPassword field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedansibleGitRemote) GetProxyPassword() string { - if o == nil || IsNil(o.ProxyPassword.Get()) { - var ret string +// GetConnectTimeout returns the ConnectTimeout field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedansibleGitRemote) GetConnectTimeout() float64 { + if o == nil || IsNil(o.ConnectTimeout.Get()) { + var ret float64 return ret } - return *o.ProxyPassword.Get() + return *o.ConnectTimeout.Get() } -// GetProxyPasswordOk returns a tuple with the ProxyPassword field value if set, nil otherwise +// GetConnectTimeoutOk returns a tuple with the ConnectTimeout field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedansibleGitRemote) GetProxyPasswordOk() (*string, bool) { +func (o *PatchedansibleGitRemote) GetConnectTimeoutOk() (*float64, bool) { if o == nil { return nil, false } - return o.ProxyPassword.Get(), o.ProxyPassword.IsSet() + return o.ConnectTimeout.Get(), o.ConnectTimeout.IsSet() } -// HasProxyPassword returns a boolean if a field has been set. -func (o *PatchedansibleGitRemote) HasProxyPassword() bool { - if o != nil && o.ProxyPassword.IsSet() { +// HasConnectTimeout returns a boolean if a field has been set. +func (o *PatchedansibleGitRemote) HasConnectTimeout() bool { + if o != nil && o.ConnectTimeout.IsSet() { return true } return false } -// SetProxyPassword gets a reference to the given NullableString and assigns it to the ProxyPassword field. -func (o *PatchedansibleGitRemote) SetProxyPassword(v string) { - o.ProxyPassword.Set(&v) +// SetConnectTimeout gets a reference to the given NullableFloat64 and assigns it to the ConnectTimeout field. +func (o *PatchedansibleGitRemote) SetConnectTimeout(v float64) { + o.ConnectTimeout.Set(&v) } -// SetProxyPasswordNil sets the value for ProxyPassword to be an explicit nil -func (o *PatchedansibleGitRemote) SetProxyPasswordNil() { - o.ProxyPassword.Set(nil) +// SetConnectTimeoutNil sets the value for ConnectTimeout to be an explicit nil +func (o *PatchedansibleGitRemote) SetConnectTimeoutNil() { + o.ConnectTimeout.Set(nil) } -// UnsetProxyPassword ensures that no value is present for ProxyPassword, not even an explicit nil -func (o *PatchedansibleGitRemote) UnsetProxyPassword() { - o.ProxyPassword.Unset() +// UnsetConnectTimeout ensures that no value is present for ConnectTimeout, not even an explicit nil +func (o *PatchedansibleGitRemote) UnsetConnectTimeout() { + o.ConnectTimeout.Unset() } -// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. -func (o *PatchedansibleGitRemote) GetPulpLabels() map[string]string { - if o == nil || IsNil(o.PulpLabels) { - var ret map[string]string +// GetCaCert returns the CaCert field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedansibleGitRemote) GetCaCert() string { + if o == nil || IsNil(o.CaCert.Get()) { + var ret string return ret } - return *o.PulpLabels + return *o.CaCert.Get() } -// GetPulpLabelsOk returns a tuple with the PulpLabels field value if set, nil otherwise +// GetCaCertOk returns a tuple with the CaCert field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedansibleGitRemote) GetPulpLabelsOk() (*map[string]string, bool) { - if o == nil || IsNil(o.PulpLabels) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedansibleGitRemote) GetCaCertOk() (*string, bool) { + if o == nil { return nil, false } - return o.PulpLabels, true + return o.CaCert.Get(), o.CaCert.IsSet() } -// HasPulpLabels returns a boolean if a field has been set. -func (o *PatchedansibleGitRemote) HasPulpLabels() bool { - if o != nil && !IsNil(o.PulpLabels) { +// HasCaCert returns a boolean if a field has been set. +func (o *PatchedansibleGitRemote) HasCaCert() bool { + if o != nil && o.CaCert.IsSet() { return true } return false } -// SetPulpLabels gets a reference to the given map[string]string and assigns it to the PulpLabels field. -func (o *PatchedansibleGitRemote) SetPulpLabels(v map[string]string) { - o.PulpLabels = &v +// SetCaCert gets a reference to the given NullableString and assigns it to the CaCert field. +func (o *PatchedansibleGitRemote) SetCaCert(v string) { + o.CaCert.Set(&v) +} +// SetCaCertNil sets the value for CaCert to be an explicit nil +func (o *PatchedansibleGitRemote) SetCaCertNil() { + o.CaCert.Set(nil) +} + +// UnsetCaCert ensures that no value is present for CaCert, not even an explicit nil +func (o *PatchedansibleGitRemote) UnsetCaCert() { + o.CaCert.Unset() } // GetTlsValidation returns the TlsValidation field value if set, zero value otherwise. @@ -798,6 +724,48 @@ func (o *PatchedansibleGitRemote) SetTlsValidation(v bool) { o.TlsValidation = &v } +// GetSockConnectTimeout returns the SockConnectTimeout field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedansibleGitRemote) GetSockConnectTimeout() float64 { + if o == nil || IsNil(o.SockConnectTimeout.Get()) { + var ret float64 + return ret + } + return *o.SockConnectTimeout.Get() +} + +// GetSockConnectTimeoutOk returns a tuple with the SockConnectTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedansibleGitRemote) GetSockConnectTimeoutOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.SockConnectTimeout.Get(), o.SockConnectTimeout.IsSet() +} + +// HasSockConnectTimeout returns a boolean if a field has been set. +func (o *PatchedansibleGitRemote) HasSockConnectTimeout() bool { + if o != nil && o.SockConnectTimeout.IsSet() { + return true + } + + return false +} + +// SetSockConnectTimeout gets a reference to the given NullableFloat64 and assigns it to the SockConnectTimeout field. +func (o *PatchedansibleGitRemote) SetSockConnectTimeout(v float64) { + o.SockConnectTimeout.Set(&v) +} +// SetSockConnectTimeoutNil sets the value for SockConnectTimeout to be an explicit nil +func (o *PatchedansibleGitRemote) SetSockConnectTimeoutNil() { + o.SockConnectTimeout.Set(nil) +} + +// UnsetSockConnectTimeout ensures that no value is present for SockConnectTimeout, not even an explicit nil +func (o *PatchedansibleGitRemote) UnsetSockConnectTimeout() { + o.SockConnectTimeout.Unset() +} + // GetUrl returns the Url field value if set, zero value otherwise. func (o *PatchedansibleGitRemote) GetUrl() string { if o == nil || IsNil(o.Url) { @@ -830,46 +798,78 @@ func (o *PatchedansibleGitRemote) SetUrl(v string) { o.Url = &v } -// GetCaCert returns the CaCert field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedansibleGitRemote) GetCaCert() string { - if o == nil || IsNil(o.CaCert.Get()) { +// GetProxyUsername returns the ProxyUsername field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedansibleGitRemote) GetProxyUsername() string { + if o == nil || IsNil(o.ProxyUsername.Get()) { var ret string return ret } - return *o.CaCert.Get() + return *o.ProxyUsername.Get() } -// GetCaCertOk returns a tuple with the CaCert field value if set, nil otherwise +// GetProxyUsernameOk returns a tuple with the ProxyUsername field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedansibleGitRemote) GetCaCertOk() (*string, bool) { +func (o *PatchedansibleGitRemote) GetProxyUsernameOk() (*string, bool) { if o == nil { return nil, false } - return o.CaCert.Get(), o.CaCert.IsSet() + return o.ProxyUsername.Get(), o.ProxyUsername.IsSet() } -// HasCaCert returns a boolean if a field has been set. -func (o *PatchedansibleGitRemote) HasCaCert() bool { - if o != nil && o.CaCert.IsSet() { +// HasProxyUsername returns a boolean if a field has been set. +func (o *PatchedansibleGitRemote) HasProxyUsername() bool { + if o != nil && o.ProxyUsername.IsSet() { return true } return false } -// SetCaCert gets a reference to the given NullableString and assigns it to the CaCert field. -func (o *PatchedansibleGitRemote) SetCaCert(v string) { - o.CaCert.Set(&v) +// SetProxyUsername gets a reference to the given NullableString and assigns it to the ProxyUsername field. +func (o *PatchedansibleGitRemote) SetProxyUsername(v string) { + o.ProxyUsername.Set(&v) } -// SetCaCertNil sets the value for CaCert to be an explicit nil -func (o *PatchedansibleGitRemote) SetCaCertNil() { - o.CaCert.Set(nil) +// SetProxyUsernameNil sets the value for ProxyUsername to be an explicit nil +func (o *PatchedansibleGitRemote) SetProxyUsernameNil() { + o.ProxyUsername.Set(nil) } -// UnsetCaCert ensures that no value is present for CaCert, not even an explicit nil -func (o *PatchedansibleGitRemote) UnsetCaCert() { - o.CaCert.Unset() +// UnsetProxyUsername ensures that no value is present for ProxyUsername, not even an explicit nil +func (o *PatchedansibleGitRemote) UnsetProxyUsername() { + o.ProxyUsername.Unset() +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *PatchedansibleGitRemote) GetHeaders() []map[string]interface{} { + if o == nil || IsNil(o.Headers) { + var ret []map[string]interface{} + return ret + } + return o.Headers +} + +// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedansibleGitRemote) GetHeadersOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Headers) { + return nil, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *PatchedansibleGitRemote) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given []map[string]interface{} and assigns it to the Headers field. +func (o *PatchedansibleGitRemote) SetHeaders(v []map[string]interface{}) { + o.Headers = v } // GetMetadataOnly returns the MetadataOnly field value if set, zero value otherwise. @@ -946,17 +946,11 @@ func (o PatchedansibleGitRemote) MarshalJSON() ([]byte, error) { func (o PatchedansibleGitRemote) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Headers) { - toSerialize["headers"] = o.Headers - } - if o.SockReadTimeout.IsSet() { - toSerialize["sock_read_timeout"] = o.SockReadTimeout.Get() - } - if o.SockConnectTimeout.IsSet() { - toSerialize["sock_connect_timeout"] = o.SockConnectTimeout.Get() + if o.DownloadConcurrency.IsSet() { + toSerialize["download_concurrency"] = o.DownloadConcurrency.Get() } - if o.ConnectTimeout.IsSet() { - toSerialize["connect_timeout"] = o.ConnectTimeout.Get() + if o.RateLimit.IsSet() { + toSerialize["rate_limit"] = o.RateLimit.Get() } if !IsNil(o.Name) { toSerialize["name"] = o.Name @@ -964,47 +958,53 @@ func (o PatchedansibleGitRemote) ToMap() (map[string]interface{}, error) { if o.ClientCert.IsSet() { toSerialize["client_cert"] = o.ClientCert.Get() } - if o.ProxyUrl.IsSet() { - toSerialize["proxy_url"] = o.ProxyUrl.Get() + if o.MaxRetries.IsSet() { + toSerialize["max_retries"] = o.MaxRetries.Get() } - if o.ProxyUsername.IsSet() { - toSerialize["proxy_username"] = o.ProxyUsername.Get() + if o.SockReadTimeout.IsSet() { + toSerialize["sock_read_timeout"] = o.SockReadTimeout.Get() } - if o.Username.IsSet() { - toSerialize["username"] = o.Username.Get() + if o.Password.IsSet() { + toSerialize["password"] = o.Password.Get() } if o.TotalTimeout.IsSet() { toSerialize["total_timeout"] = o.TotalTimeout.Get() } - if o.MaxRetries.IsSet() { - toSerialize["max_retries"] = o.MaxRetries.Get() + if o.Username.IsSet() { + toSerialize["username"] = o.Username.Get() } - if o.Password.IsSet() { - toSerialize["password"] = o.Password.Get() + if o.ProxyPassword.IsSet() { + toSerialize["proxy_password"] = o.ProxyPassword.Get() } - if o.DownloadConcurrency.IsSet() { - toSerialize["download_concurrency"] = o.DownloadConcurrency.Get() + if !IsNil(o.PulpLabels) { + toSerialize["pulp_labels"] = o.PulpLabels } - if o.RateLimit.IsSet() { - toSerialize["rate_limit"] = o.RateLimit.Get() + if o.ProxyUrl.IsSet() { + toSerialize["proxy_url"] = o.ProxyUrl.Get() } if o.ClientKey.IsSet() { toSerialize["client_key"] = o.ClientKey.Get() } - if o.ProxyPassword.IsSet() { - toSerialize["proxy_password"] = o.ProxyPassword.Get() + if o.ConnectTimeout.IsSet() { + toSerialize["connect_timeout"] = o.ConnectTimeout.Get() } - if !IsNil(o.PulpLabels) { - toSerialize["pulp_labels"] = o.PulpLabels + if o.CaCert.IsSet() { + toSerialize["ca_cert"] = o.CaCert.Get() } if !IsNil(o.TlsValidation) { toSerialize["tls_validation"] = o.TlsValidation } + if o.SockConnectTimeout.IsSet() { + toSerialize["sock_connect_timeout"] = o.SockConnectTimeout.Get() + } if !IsNil(o.Url) { toSerialize["url"] = o.Url } - if o.CaCert.IsSet() { - toSerialize["ca_cert"] = o.CaCert.Get() + if o.ProxyUsername.IsSet() { + toSerialize["proxy_username"] = o.ProxyUsername.Get() + } + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers } if !IsNil(o.MetadataOnly) { toSerialize["metadata_only"] = o.MetadataOnly diff --git a/release/model_patchedansible_role_remote.go b/release/model_patchedansible_role_remote.go index 205524d0..a55d01fe 100644 --- a/release/model_patchedansible_role_remote.go +++ b/release/model_patchedansible_role_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedcertguard_rhsm_cert_guard.go b/release/model_patchedcertguard_rhsm_cert_guard.go index 01425a50..aa4466ca 100644 --- a/release/model_patchedcertguard_rhsm_cert_guard.go +++ b/release/model_patchedcertguard_rhsm_cert_guard.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedcertguard_x509_cert_guard.go b/release/model_patchedcertguard_x509_cert_guard.go index 935e5d9e..67421186 100644 --- a/release/model_patchedcertguard_x509_cert_guard.go +++ b/release/model_patchedcertguard_x509_cert_guard.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedcontainer_container_distribution.go b/release/model_patchedcontainer_container_distribution.go index 4558f5ee..e4ff8e13 100644 --- a/release/model_patchedcontainer_container_distribution.go +++ b/release/model_patchedcontainer_container_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -20,15 +20,15 @@ var _ MappedNullable = &PatchedcontainerContainerDistribution{} // PatchedcontainerContainerDistribution A serializer for ContainerDistribution. type PatchedcontainerContainerDistribution struct { + // The latest RepositoryVersion for this Repository will be served. + Repository NullableString `json:"repository,omitempty"` // A unique name. Ex, `rawhide` and `stable`. Name *string `json:"name,omitempty"` - // The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") - BasePath *string `json:"base_path,omitempty"` PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // An optional content-guard. If none is specified, a default one will be used. ContentGuard *string `json:"content_guard,omitempty"` - // The latest RepositoryVersion for this Repository will be served. - Repository NullableString `json:"repository,omitempty"` + // The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") + BasePath *string `json:"base_path,omitempty"` // RepositoryVersion to be served RepositoryVersion NullableString `json:"repository_version,omitempty"` // Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. @@ -54,68 +54,78 @@ func NewPatchedcontainerContainerDistributionWithDefaults() *PatchedcontainerCon return &this } -// GetName returns the Name field value if set, zero value otherwise. -func (o *PatchedcontainerContainerDistribution) GetName() string { - if o == nil || IsNil(o.Name) { +// GetRepository returns the Repository field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedcontainerContainerDistribution) GetRepository() string { + if o == nil || IsNil(o.Repository.Get()) { var ret string return ret } - return *o.Name + return *o.Repository.Get() } -// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedcontainerContainerDistribution) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedcontainerContainerDistribution) GetRepositoryOk() (*string, bool) { + if o == nil { return nil, false } - return o.Name, true + return o.Repository.Get(), o.Repository.IsSet() } -// HasName returns a boolean if a field has been set. -func (o *PatchedcontainerContainerDistribution) HasName() bool { - if o != nil && !IsNil(o.Name) { +// HasRepository returns a boolean if a field has been set. +func (o *PatchedcontainerContainerDistribution) HasRepository() bool { + if o != nil && o.Repository.IsSet() { return true } return false } -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *PatchedcontainerContainerDistribution) SetName(v string) { - o.Name = &v +// SetRepository gets a reference to the given NullableString and assigns it to the Repository field. +func (o *PatchedcontainerContainerDistribution) SetRepository(v string) { + o.Repository.Set(&v) +} +// SetRepositoryNil sets the value for Repository to be an explicit nil +func (o *PatchedcontainerContainerDistribution) SetRepositoryNil() { + o.Repository.Set(nil) } -// GetBasePath returns the BasePath field value if set, zero value otherwise. -func (o *PatchedcontainerContainerDistribution) GetBasePath() string { - if o == nil || IsNil(o.BasePath) { +// UnsetRepository ensures that no value is present for Repository, not even an explicit nil +func (o *PatchedcontainerContainerDistribution) UnsetRepository() { + o.Repository.Unset() +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PatchedcontainerContainerDistribution) GetName() string { + if o == nil || IsNil(o.Name) { var ret string return ret } - return *o.BasePath + return *o.Name } -// GetBasePathOk returns a tuple with the BasePath field value if set, nil otherwise +// GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedcontainerContainerDistribution) GetBasePathOk() (*string, bool) { - if o == nil || IsNil(o.BasePath) { +func (o *PatchedcontainerContainerDistribution) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return o.BasePath, true + return o.Name, true } -// HasBasePath returns a boolean if a field has been set. -func (o *PatchedcontainerContainerDistribution) HasBasePath() bool { - if o != nil && !IsNil(o.BasePath) { +// HasName returns a boolean if a field has been set. +func (o *PatchedcontainerContainerDistribution) HasName() bool { + if o != nil && !IsNil(o.Name) { return true } return false } -// SetBasePath gets a reference to the given string and assigns it to the BasePath field. -func (o *PatchedcontainerContainerDistribution) SetBasePath(v string) { - o.BasePath = &v +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PatchedcontainerContainerDistribution) SetName(v string) { + o.Name = &v } // GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. @@ -182,46 +192,36 @@ func (o *PatchedcontainerContainerDistribution) SetContentGuard(v string) { o.ContentGuard = &v } -// GetRepository returns the Repository field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedcontainerContainerDistribution) GetRepository() string { - if o == nil || IsNil(o.Repository.Get()) { +// GetBasePath returns the BasePath field value if set, zero value otherwise. +func (o *PatchedcontainerContainerDistribution) GetBasePath() string { + if o == nil || IsNil(o.BasePath) { var ret string return ret } - return *o.Repository.Get() + return *o.BasePath } -// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// GetBasePathOk returns a tuple with the BasePath field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedcontainerContainerDistribution) GetRepositoryOk() (*string, bool) { - if o == nil { +func (o *PatchedcontainerContainerDistribution) GetBasePathOk() (*string, bool) { + if o == nil || IsNil(o.BasePath) { return nil, false } - return o.Repository.Get(), o.Repository.IsSet() + return o.BasePath, true } -// HasRepository returns a boolean if a field has been set. -func (o *PatchedcontainerContainerDistribution) HasRepository() bool { - if o != nil && o.Repository.IsSet() { +// HasBasePath returns a boolean if a field has been set. +func (o *PatchedcontainerContainerDistribution) HasBasePath() bool { + if o != nil && !IsNil(o.BasePath) { return true } return false } -// SetRepository gets a reference to the given NullableString and assigns it to the Repository field. -func (o *PatchedcontainerContainerDistribution) SetRepository(v string) { - o.Repository.Set(&v) -} -// SetRepositoryNil sets the value for Repository to be an explicit nil -func (o *PatchedcontainerContainerDistribution) SetRepositoryNil() { - o.Repository.Set(nil) -} - -// UnsetRepository ensures that no value is present for Repository, not even an explicit nil -func (o *PatchedcontainerContainerDistribution) UnsetRepository() { - o.Repository.Unset() +// SetBasePath gets a reference to the given string and assigns it to the BasePath field. +func (o *PatchedcontainerContainerDistribution) SetBasePath(v string) { + o.BasePath = &v } // GetRepositoryVersion returns the RepositoryVersion field value if set, zero value otherwise (both if not set or set to explicit null). @@ -350,20 +350,20 @@ func (o PatchedcontainerContainerDistribution) MarshalJSON() ([]byte, error) { func (o PatchedcontainerContainerDistribution) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Repository.IsSet() { + toSerialize["repository"] = o.Repository.Get() + } if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !IsNil(o.BasePath) { - toSerialize["base_path"] = o.BasePath - } if !IsNil(o.PulpLabels) { toSerialize["pulp_labels"] = o.PulpLabels } if !IsNil(o.ContentGuard) { toSerialize["content_guard"] = o.ContentGuard } - if o.Repository.IsSet() { - toSerialize["repository"] = o.Repository.Get() + if !IsNil(o.BasePath) { + toSerialize["base_path"] = o.BasePath } if o.RepositoryVersion.IsSet() { toSerialize["repository_version"] = o.RepositoryVersion.Get() diff --git a/release/model_patchedcontainer_container_push_repository.go b/release/model_patchedcontainer_container_push_repository.go index 70468254..e73d09d2 100644 --- a/release/model_patchedcontainer_container_push_repository.go +++ b/release/model_patchedcontainer_container_push_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -20,15 +20,15 @@ var _ MappedNullable = &PatchedcontainerContainerPushRepository{} // PatchedcontainerContainerPushRepository Serializer for Container Push Repositories. type PatchedcontainerContainerPushRepository struct { - // An optional description. - Description NullableString `json:"description,omitempty"` - // Retain X versions of the repository. Default is null which retains all versions. - RetainRepoVersions NullableInt64 `json:"retain_repo_versions,omitempty"` // A unique name for this repository. Name *string `json:"name,omitempty"` PulpLabels *map[string]string `json:"pulp_labels,omitempty"` // A reference to an associated signing service. ManifestSigningService NullableString `json:"manifest_signing_service,omitempty"` + // An optional description. + Description NullableString `json:"description,omitempty"` + // Retain X versions of the repository. Default is null which retains all versions. + RetainRepoVersions NullableInt64 `json:"retain_repo_versions,omitempty"` } // NewPatchedcontainerContainerPushRepository instantiates a new PatchedcontainerContainerPushRepository object @@ -48,90 +48,6 @@ func NewPatchedcontainerContainerPushRepositoryWithDefaults() *PatchedcontainerC return &this } -// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedcontainerContainerPushRepository) GetDescription() string { - if o == nil || IsNil(o.Description.Get()) { - var ret string - return ret - } - return *o.Description.Get() -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedcontainerContainerPushRepository) GetDescriptionOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Description.Get(), o.Description.IsSet() -} - -// HasDescription returns a boolean if a field has been set. -func (o *PatchedcontainerContainerPushRepository) HasDescription() bool { - if o != nil && o.Description.IsSet() { - return true - } - - return false -} - -// SetDescription gets a reference to the given NullableString and assigns it to the Description field. -func (o *PatchedcontainerContainerPushRepository) SetDescription(v string) { - o.Description.Set(&v) -} -// SetDescriptionNil sets the value for Description to be an explicit nil -func (o *PatchedcontainerContainerPushRepository) SetDescriptionNil() { - o.Description.Set(nil) -} - -// UnsetDescription ensures that no value is present for Description, not even an explicit nil -func (o *PatchedcontainerContainerPushRepository) UnsetDescription() { - o.Description.Unset() -} - -// GetRetainRepoVersions returns the RetainRepoVersions field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedcontainerContainerPushRepository) GetRetainRepoVersions() int64 { - if o == nil || IsNil(o.RetainRepoVersions.Get()) { - var ret int64 - return ret - } - return *o.RetainRepoVersions.Get() -} - -// GetRetainRepoVersionsOk returns a tuple with the RetainRepoVersions field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedcontainerContainerPushRepository) GetRetainRepoVersionsOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.RetainRepoVersions.Get(), o.RetainRepoVersions.IsSet() -} - -// HasRetainRepoVersions returns a boolean if a field has been set. -func (o *PatchedcontainerContainerPushRepository) HasRetainRepoVersions() bool { - if o != nil && o.RetainRepoVersions.IsSet() { - return true - } - - return false -} - -// SetRetainRepoVersions gets a reference to the given NullableInt64 and assigns it to the RetainRepoVersions field. -func (o *PatchedcontainerContainerPushRepository) SetRetainRepoVersions(v int64) { - o.RetainRepoVersions.Set(&v) -} -// SetRetainRepoVersionsNil sets the value for RetainRepoVersions to be an explicit nil -func (o *PatchedcontainerContainerPushRepository) SetRetainRepoVersionsNil() { - o.RetainRepoVersions.Set(nil) -} - -// UnsetRetainRepoVersions ensures that no value is present for RetainRepoVersions, not even an explicit nil -func (o *PatchedcontainerContainerPushRepository) UnsetRetainRepoVersions() { - o.RetainRepoVersions.Unset() -} - // GetName returns the Name field value if set, zero value otherwise. func (o *PatchedcontainerContainerPushRepository) GetName() string { if o == nil || IsNil(o.Name) { @@ -238,6 +154,90 @@ func (o *PatchedcontainerContainerPushRepository) UnsetManifestSigningService() o.ManifestSigningService.Unset() } +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedcontainerContainerPushRepository) GetDescription() string { + if o == nil || IsNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedcontainerContainerPushRepository) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *PatchedcontainerContainerPushRepository) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *PatchedcontainerContainerPushRepository) SetDescription(v string) { + o.Description.Set(&v) +} +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *PatchedcontainerContainerPushRepository) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *PatchedcontainerContainerPushRepository) UnsetDescription() { + o.Description.Unset() +} + +// GetRetainRepoVersions returns the RetainRepoVersions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedcontainerContainerPushRepository) GetRetainRepoVersions() int64 { + if o == nil || IsNil(o.RetainRepoVersions.Get()) { + var ret int64 + return ret + } + return *o.RetainRepoVersions.Get() +} + +// GetRetainRepoVersionsOk returns a tuple with the RetainRepoVersions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedcontainerContainerPushRepository) GetRetainRepoVersionsOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.RetainRepoVersions.Get(), o.RetainRepoVersions.IsSet() +} + +// HasRetainRepoVersions returns a boolean if a field has been set. +func (o *PatchedcontainerContainerPushRepository) HasRetainRepoVersions() bool { + if o != nil && o.RetainRepoVersions.IsSet() { + return true + } + + return false +} + +// SetRetainRepoVersions gets a reference to the given NullableInt64 and assigns it to the RetainRepoVersions field. +func (o *PatchedcontainerContainerPushRepository) SetRetainRepoVersions(v int64) { + o.RetainRepoVersions.Set(&v) +} +// SetRetainRepoVersionsNil sets the value for RetainRepoVersions to be an explicit nil +func (o *PatchedcontainerContainerPushRepository) SetRetainRepoVersionsNil() { + o.RetainRepoVersions.Set(nil) +} + +// UnsetRetainRepoVersions ensures that no value is present for RetainRepoVersions, not even an explicit nil +func (o *PatchedcontainerContainerPushRepository) UnsetRetainRepoVersions() { + o.RetainRepoVersions.Unset() +} + func (o PatchedcontainerContainerPushRepository) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -248,12 +248,6 @@ func (o PatchedcontainerContainerPushRepository) MarshalJSON() ([]byte, error) { func (o PatchedcontainerContainerPushRepository) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Description.IsSet() { - toSerialize["description"] = o.Description.Get() - } - if o.RetainRepoVersions.IsSet() { - toSerialize["retain_repo_versions"] = o.RetainRepoVersions.Get() - } if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -263,6 +257,12 @@ func (o PatchedcontainerContainerPushRepository) ToMap() (map[string]interface{} if o.ManifestSigningService.IsSet() { toSerialize["manifest_signing_service"] = o.ManifestSigningService.Get() } + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } + if o.RetainRepoVersions.IsSet() { + toSerialize["retain_repo_versions"] = o.RetainRepoVersions.Get() + } return toSerialize, nil } diff --git a/release/model_patchedcontainer_container_remote.go b/release/model_patchedcontainer_container_remote.go index 836acec1..879b65b2 100644 --- a/release/model_patchedcontainer_container_remote.go +++ b/release/model_patchedcontainer_container_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedcontainer_container_repository.go b/release/model_patchedcontainer_container_repository.go index b4c99456..dc923bc7 100644 --- a/release/model_patchedcontainer_container_repository.go +++ b/release/model_patchedcontainer_container_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patcheddeb_apt_distribution.go b/release/model_patcheddeb_apt_distribution.go index 95e1316c..8b9c2109 100644 --- a/release/model_patcheddeb_apt_distribution.go +++ b/release/model_patcheddeb_apt_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patcheddeb_apt_remote.go b/release/model_patcheddeb_apt_remote.go index 0012b8f4..8d51684e 100644 --- a/release/model_patcheddeb_apt_remote.go +++ b/release/model_patcheddeb_apt_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patcheddeb_apt_repository.go b/release/model_patcheddeb_apt_repository.go index 8110ad67..43ccde50 100644 --- a/release/model_patcheddeb_apt_repository.go +++ b/release/model_patcheddeb_apt_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedfile_file_alternate_content_source.go b/release/model_patchedfile_file_alternate_content_source.go index 2921c921..74ab48cd 100644 --- a/release/model_patchedfile_file_alternate_content_source.go +++ b/release/model_patchedfile_file_alternate_content_source.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedfile_file_distribution.go b/release/model_patchedfile_file_distribution.go index 4637a3b8..9c3da5da 100644 --- a/release/model_patchedfile_file_distribution.go +++ b/release/model_patchedfile_file_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedfile_file_remote.go b/release/model_patchedfile_file_remote.go index efdb80c4..b26399e6 100644 --- a/release/model_patchedfile_file_remote.go +++ b/release/model_patchedfile_file_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedfile_file_repository.go b/release/model_patchedfile_file_repository.go index 76294988..adf593ab 100644 --- a/release/model_patchedfile_file_repository.go +++ b/release/model_patchedfile_file_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedmaven_maven_distribution.go b/release/model_patchedmaven_maven_distribution.go index fb7a2d91..8458c4ba 100644 --- a/release/model_patchedmaven_maven_distribution.go +++ b/release/model_patchedmaven_maven_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedmaven_maven_remote.go b/release/model_patchedmaven_maven_remote.go index 19038728..250e80a0 100644 --- a/release/model_patchedmaven_maven_remote.go +++ b/release/model_patchedmaven_maven_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedmaven_maven_repository.go b/release/model_patchedmaven_maven_repository.go index d1950113..b9ff88af 100644 --- a/release/model_patchedmaven_maven_repository.go +++ b/release/model_patchedmaven_maven_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedostree_ostree_distribution.go b/release/model_patchedostree_ostree_distribution.go index 10efcc62..dc79c131 100644 --- a/release/model_patchedostree_ostree_distribution.go +++ b/release/model_patchedostree_ostree_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedostree_ostree_remote.go b/release/model_patchedostree_ostree_remote.go index 865d6401..a7e1c51a 100644 --- a/release/model_patchedostree_ostree_remote.go +++ b/release/model_patchedostree_ostree_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedostree_ostree_repository.go b/release/model_patchedostree_ostree_repository.go index d0a4177d..8e717a5e 100644 --- a/release/model_patchedostree_ostree_repository.go +++ b/release/model_patchedostree_ostree_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedpython_python_distribution.go b/release/model_patchedpython_python_distribution.go index 76f7a775..34e010a0 100644 --- a/release/model_patchedpython_python_distribution.go +++ b/release/model_patchedpython_python_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedpython_python_remote.go b/release/model_patchedpython_python_remote.go index fc53c4b6..85a760bb 100644 --- a/release/model_patchedpython_python_remote.go +++ b/release/model_patchedpython_python_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedpython_python_repository.go b/release/model_patchedpython_python_repository.go index 99c4cb6e..8b0d4d41 100644 --- a/release/model_patchedpython_python_repository.go +++ b/release/model_patchedpython_python_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedrpm_rpm_alternate_content_source.go b/release/model_patchedrpm_rpm_alternate_content_source.go index f4765afb..b6ba8811 100644 --- a/release/model_patchedrpm_rpm_alternate_content_source.go +++ b/release/model_patchedrpm_rpm_alternate_content_source.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedrpm_rpm_distribution.go b/release/model_patchedrpm_rpm_distribution.go index d5ed3f1a..26549d81 100644 --- a/release/model_patchedrpm_rpm_distribution.go +++ b/release/model_patchedrpm_rpm_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedrpm_rpm_remote.go b/release/model_patchedrpm_rpm_remote.go index aae5f342..d7320f1d 100644 --- a/release/model_patchedrpm_rpm_remote.go +++ b/release/model_patchedrpm_rpm_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedrpm_rpm_repository.go b/release/model_patchedrpm_rpm_repository.go index 28eeb8bb..56e6b8a7 100644 --- a/release/model_patchedrpm_rpm_repository.go +++ b/release/model_patchedrpm_rpm_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_patchedrpm_uln_remote.go b/release/model_patchedrpm_uln_remote.go index f4111301..358ff329 100644 --- a/release/model_patchedrpm_uln_remote.go +++ b/release/model_patchedrpm_uln_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_policy462_enum.go b/release/model_policy462_enum.go index 250e7b3e..851cc0b1 100644 --- a/release/model_policy462_enum.go +++ b/release/model_policy462_enum.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_policy762_enum.go b/release/model_policy762_enum.go index d757b916..dc12ce52 100644 --- a/release/model_policy762_enum.go +++ b/release/model_policy762_enum.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_policy_db6_enum.go b/release/model_policy_db6_enum.go index c963d30f..f071e4ec 100644 --- a/release/model_policy_db6_enum.go +++ b/release/model_policy_db6_enum.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_progress_report_response.go b/release/model_progress_report_response.go index 10c71e28..dea361a6 100644 --- a/release/model_progress_report_response.go +++ b/release/model_progress_report_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_publication_response.go b/release/model_publication_response.go index 2ff65449..2f081bce 100644 --- a/release/model_publication_response.go +++ b/release/model_publication_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_pulp_export.go b/release/model_pulp_export.go index d0694714..334234c4 100644 --- a/release/model_pulp_export.go +++ b/release/model_pulp_export.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_pulp_export_response.go b/release/model_pulp_export_response.go index 19fb8618..e790c268 100644 --- a/release/model_pulp_export_response.go +++ b/release/model_pulp_export_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_pulp_exporter.go b/release/model_pulp_exporter.go index 325f0164..dbeb4686 100644 --- a/release/model_pulp_exporter.go +++ b/release/model_pulp_exporter.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_pulp_exporter_response.go b/release/model_pulp_exporter_response.go index ec8feb9e..56a332df 100644 --- a/release/model_pulp_exporter_response.go +++ b/release/model_pulp_exporter_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_pulp_import.go b/release/model_pulp_import.go index ca6bfaaa..79df2f3d 100644 --- a/release/model_pulp_import.go +++ b/release/model_pulp_import.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_pulp_import_check.go b/release/model_pulp_import_check.go index f4333a68..81ff185f 100644 --- a/release/model_pulp_import_check.go +++ b/release/model_pulp_import_check.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_pulp_import_check_response.go b/release/model_pulp_import_check_response.go index f353831f..df6742fd 100644 --- a/release/model_pulp_import_check_response.go +++ b/release/model_pulp_import_check_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_pulp_import_check_response_path.go b/release/model_pulp_import_check_response_path.go index 7bf17fdc..1f315a88 100644 --- a/release/model_pulp_import_check_response_path.go +++ b/release/model_pulp_import_check_response_path.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_pulp_import_check_response_repo_mapping.go b/release/model_pulp_import_check_response_repo_mapping.go index 4eb998e0..9a1caa16 100644 --- a/release/model_pulp_import_check_response_repo_mapping.go +++ b/release/model_pulp_import_check_response_repo_mapping.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_pulp_import_check_response_toc.go b/release/model_pulp_import_check_response_toc.go index 715a8cce..127d8d17 100644 --- a/release/model_pulp_import_check_response_toc.go +++ b/release/model_pulp_import_check_response_toc.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_pulp_importer.go b/release/model_pulp_importer.go index fdfe3923..c99203fb 100644 --- a/release/model_pulp_importer.go +++ b/release/model_pulp_importer.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_pulp_importer_response.go b/release/model_pulp_importer_response.go index 3bc4a3f6..20d85de7 100644 --- a/release/model_pulp_importer_response.go +++ b/release/model_pulp_importer_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_purge.go b/release/model_purge.go index 5b57434b..bd2219f5 100644 --- a/release/model_purge.go +++ b/release/model_purge.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_python_bander_remote.go b/release/model_python_bander_remote.go new file mode 100644 index 00000000..57afc378 --- /dev/null +++ b/release/model_python_bander_remote.go @@ -0,0 +1,188 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the PythonBanderRemote type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PythonBanderRemote{} + +// PythonBanderRemote A Serializer for the initial step of creating a Python Remote from a Bandersnatch config file +type PythonBanderRemote struct { + // A Bandersnatch config that may be used to construct a Python Remote. + Config *os.File `json:"config"` + // A unique name for this remote + Name string `json:"name"` + Policy *Policy762Enum `json:"policy,omitempty"` +} + +// NewPythonBanderRemote instantiates a new PythonBanderRemote object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPythonBanderRemote(config *os.File, name string) *PythonBanderRemote { + this := PythonBanderRemote{} + this.Config = config + this.Name = name + var policy Policy762Enum = POLICY762ENUM_ON_DEMAND + this.Policy = &policy + return &this +} + +// NewPythonBanderRemoteWithDefaults instantiates a new PythonBanderRemote object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPythonBanderRemoteWithDefaults() *PythonBanderRemote { + this := PythonBanderRemote{} + var policy Policy762Enum = POLICY762ENUM_ON_DEMAND + this.Policy = &policy + return &this +} + +// GetConfig returns the Config field value +func (o *PythonBanderRemote) GetConfig() *os.File { + if o == nil { + var ret *os.File + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *PythonBanderRemote) GetConfigOk() (**os.File, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *PythonBanderRemote) SetConfig(v *os.File) { + o.Config = v +} + +// GetName returns the Name field value +func (o *PythonBanderRemote) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *PythonBanderRemote) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *PythonBanderRemote) SetName(v string) { + o.Name = v +} + +// GetPolicy returns the Policy field value if set, zero value otherwise. +func (o *PythonBanderRemote) GetPolicy() Policy762Enum { + if o == nil || IsNil(o.Policy) { + var ret Policy762Enum + return ret + } + return *o.Policy +} + +// GetPolicyOk returns a tuple with the Policy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonBanderRemote) GetPolicyOk() (*Policy762Enum, bool) { + if o == nil || IsNil(o.Policy) { + return nil, false + } + return o.Policy, true +} + +// HasPolicy returns a boolean if a field has been set. +func (o *PythonBanderRemote) HasPolicy() bool { + if o != nil && !IsNil(o.Policy) { + return true + } + + return false +} + +// SetPolicy gets a reference to the given Policy762Enum and assigns it to the Policy field. +func (o *PythonBanderRemote) SetPolicy(v Policy762Enum) { + o.Policy = &v +} + +func (o PythonBanderRemote) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PythonBanderRemote) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["config"] = o.Config + toSerialize["name"] = o.Name + if !IsNil(o.Policy) { + toSerialize["policy"] = o.Policy + } + return toSerialize, nil +} + +type NullablePythonBanderRemote struct { + value *PythonBanderRemote + isSet bool +} + +func (v NullablePythonBanderRemote) Get() *PythonBanderRemote { + return v.value +} + +func (v *NullablePythonBanderRemote) Set(val *PythonBanderRemote) { + v.value = val + v.isSet = true +} + +func (v NullablePythonBanderRemote) IsSet() bool { + return v.isSet +} + +func (v *NullablePythonBanderRemote) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePythonBanderRemote(val *PythonBanderRemote) *NullablePythonBanderRemote { + return &NullablePythonBanderRemote{value: val, isSet: true} +} + +func (v NullablePythonBanderRemote) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePythonBanderRemote) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_python_python_distribution.go b/release/model_python_python_distribution.go index 5cbe30db..9c1b9c3f 100644 --- a/release/model_python_python_distribution.go +++ b/release/model_python_python_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_python_python_distribution_response.go b/release/model_python_python_distribution_response.go index 31bade66..30a9567e 100644 --- a/release/model_python_python_distribution_response.go +++ b/release/model_python_python_distribution_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_python_python_package_content.go b/release/model_python_python_package_content.go new file mode 100644 index 00000000..17873c06 --- /dev/null +++ b/release/model_python_python_package_content.go @@ -0,0 +1,1086 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the PythonPythonPackageContent type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PythonPythonPackageContent{} + +// PythonPythonPackageContent A Serializer for PythonPackageContent. +type PythonPythonPackageContent struct { + // Artifact file representing the physical content + Artifact *string `json:"artifact,omitempty"` + // Path where the artifact is located relative to distributions base_path + RelativePath string `json:"relative_path"` + // An uploaded file that may be turned into the artifact of the content unit. + File **os.File `json:"file,omitempty"` + // A URI of a repository the new content unit should be associated with. + Repository *string `json:"repository,omitempty"` + // An uncommitted upload that may be turned into the artifact of the content unit. + Upload *string `json:"upload,omitempty"` + // The SHA256 digest of this package. + Sha256 *string `json:"sha256,omitempty"` + // A one-line summary of what the package does. + Summary *string `json:"summary,omitempty"` + // A longer description of the package that can run to several paragraphs. + Description *string `json:"description,omitempty"` + // A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description. + DescriptionContentType *string `json:"description_content_type,omitempty"` + // Additional keywords to be used to assist searching for the package in a larger catalog. + Keywords *string `json:"keywords,omitempty"` + // The URL for the package's home page. + HomePage *string `json:"home_page,omitempty"` + // Legacy field denoting the URL from which this package can be downloaded. + DownloadUrl *string `json:"download_url,omitempty"` + // Text containing the author's name. Contact information can also be added, separated with newlines. + Author *string `json:"author,omitempty"` + // The author's e-mail address. + AuthorEmail *string `json:"author_email,omitempty"` + // The maintainer's name at a minimum; additional contact information may be provided. + Maintainer *string `json:"maintainer,omitempty"` + // The maintainer's e-mail address. + MaintainerEmail *string `json:"maintainer_email,omitempty"` + // Text indicating the license covering the distribution + License *string `json:"license,omitempty"` + // The Python version(s) that the distribution is guaranteed to be compatible with. + RequiresPython *string `json:"requires_python,omitempty"` + // A browsable URL for the project and a label for it, separated by a comma. + ProjectUrl *string `json:"project_url,omitempty"` + // A dictionary of labels and URLs for the project. + ProjectUrls map[string]interface{} `json:"project_urls,omitempty"` + // A comma-separated list of platform specifications, summarizing the operating systems supported by the package. + Platform *string `json:"platform,omitempty"` + // Field to specify the OS and CPU for which the binary package was compiled. + SupportedPlatform *string `json:"supported_platform,omitempty"` + // A JSON list containing names of some other distutils project required by this distribution. + RequiresDist map[string]interface{} `json:"requires_dist,omitempty"` + // A JSON list containing names of a Distutils project which is contained within this distribution. + ProvidesDist map[string]interface{} `json:"provides_dist,omitempty"` + // A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time. + ObsoletesDist map[string]interface{} `json:"obsoletes_dist,omitempty"` + // A JSON list containing some dependency in the system that the distribution is to be used. + RequiresExternal map[string]interface{} `json:"requires_external,omitempty"` + // A JSON list containing classification values for a Python package. + Classifiers map[string]interface{} `json:"classifiers,omitempty"` +} + +// NewPythonPythonPackageContent instantiates a new PythonPythonPackageContent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPythonPythonPackageContent(relativePath string) *PythonPythonPackageContent { + this := PythonPythonPackageContent{} + this.RelativePath = relativePath + var sha256 string = "" + this.Sha256 = &sha256 + return &this +} + +// NewPythonPythonPackageContentWithDefaults instantiates a new PythonPythonPackageContent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPythonPythonPackageContentWithDefaults() *PythonPythonPackageContent { + this := PythonPythonPackageContent{} + var sha256 string = "" + this.Sha256 = &sha256 + return &this +} + +// GetArtifact returns the Artifact field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetArtifact() string { + if o == nil || IsNil(o.Artifact) { + var ret string + return ret + } + return *o.Artifact +} + +// GetArtifactOk returns a tuple with the Artifact field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetArtifactOk() (*string, bool) { + if o == nil || IsNil(o.Artifact) { + return nil, false + } + return o.Artifact, true +} + +// HasArtifact returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasArtifact() bool { + if o != nil && !IsNil(o.Artifact) { + return true + } + + return false +} + +// SetArtifact gets a reference to the given string and assigns it to the Artifact field. +func (o *PythonPythonPackageContent) SetArtifact(v string) { + o.Artifact = &v +} + +// GetRelativePath returns the RelativePath field value +func (o *PythonPythonPackageContent) GetRelativePath() string { + if o == nil { + var ret string + return ret + } + + return o.RelativePath +} + +// GetRelativePathOk returns a tuple with the RelativePath field value +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetRelativePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RelativePath, true +} + +// SetRelativePath sets field value +func (o *PythonPythonPackageContent) SetRelativePath(v string) { + o.RelativePath = v +} + +// GetFile returns the File field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetFile() *os.File { + if o == nil || IsNil(o.File) { + var ret *os.File + return ret + } + return *o.File +} + +// GetFileOk returns a tuple with the File field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetFileOk() (**os.File, bool) { + if o == nil || IsNil(o.File) { + return nil, false + } + return o.File, true +} + +// HasFile returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasFile() bool { + if o != nil && !IsNil(o.File) { + return true + } + + return false +} + +// SetFile gets a reference to the given *os.File and assigns it to the File field. +func (o *PythonPythonPackageContent) SetFile(v *os.File) { + o.File = &v +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetRepository() string { + if o == nil || IsNil(o.Repository) { + var ret string + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.Repository) { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasRepository() bool { + if o != nil && !IsNil(o.Repository) { + return true + } + + return false +} + +// SetRepository gets a reference to the given string and assigns it to the Repository field. +func (o *PythonPythonPackageContent) SetRepository(v string) { + o.Repository = &v +} + +// GetUpload returns the Upload field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetUpload() string { + if o == nil || IsNil(o.Upload) { + var ret string + return ret + } + return *o.Upload +} + +// GetUploadOk returns a tuple with the Upload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetUploadOk() (*string, bool) { + if o == nil || IsNil(o.Upload) { + return nil, false + } + return o.Upload, true +} + +// HasUpload returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasUpload() bool { + if o != nil && !IsNil(o.Upload) { + return true + } + + return false +} + +// SetUpload gets a reference to the given string and assigns it to the Upload field. +func (o *PythonPythonPackageContent) SetUpload(v string) { + o.Upload = &v +} + +// GetSha256 returns the Sha256 field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetSha256() string { + if o == nil || IsNil(o.Sha256) { + var ret string + return ret + } + return *o.Sha256 +} + +// GetSha256Ok returns a tuple with the Sha256 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetSha256Ok() (*string, bool) { + if o == nil || IsNil(o.Sha256) { + return nil, false + } + return o.Sha256, true +} + +// HasSha256 returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasSha256() bool { + if o != nil && !IsNil(o.Sha256) { + return true + } + + return false +} + +// SetSha256 gets a reference to the given string and assigns it to the Sha256 field. +func (o *PythonPythonPackageContent) SetSha256(v string) { + o.Sha256 = &v +} + +// GetSummary returns the Summary field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetSummary() string { + if o == nil || IsNil(o.Summary) { + var ret string + return ret + } + return *o.Summary +} + +// GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetSummaryOk() (*string, bool) { + if o == nil || IsNil(o.Summary) { + return nil, false + } + return o.Summary, true +} + +// HasSummary returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasSummary() bool { + if o != nil && !IsNil(o.Summary) { + return true + } + + return false +} + +// SetSummary gets a reference to the given string and assigns it to the Summary field. +func (o *PythonPythonPackageContent) SetSummary(v string) { + o.Summary = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PythonPythonPackageContent) SetDescription(v string) { + o.Description = &v +} + +// GetDescriptionContentType returns the DescriptionContentType field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetDescriptionContentType() string { + if o == nil || IsNil(o.DescriptionContentType) { + var ret string + return ret + } + return *o.DescriptionContentType +} + +// GetDescriptionContentTypeOk returns a tuple with the DescriptionContentType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetDescriptionContentTypeOk() (*string, bool) { + if o == nil || IsNil(o.DescriptionContentType) { + return nil, false + } + return o.DescriptionContentType, true +} + +// HasDescriptionContentType returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasDescriptionContentType() bool { + if o != nil && !IsNil(o.DescriptionContentType) { + return true + } + + return false +} + +// SetDescriptionContentType gets a reference to the given string and assigns it to the DescriptionContentType field. +func (o *PythonPythonPackageContent) SetDescriptionContentType(v string) { + o.DescriptionContentType = &v +} + +// GetKeywords returns the Keywords field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetKeywords() string { + if o == nil || IsNil(o.Keywords) { + var ret string + return ret + } + return *o.Keywords +} + +// GetKeywordsOk returns a tuple with the Keywords field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetKeywordsOk() (*string, bool) { + if o == nil || IsNil(o.Keywords) { + return nil, false + } + return o.Keywords, true +} + +// HasKeywords returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasKeywords() bool { + if o != nil && !IsNil(o.Keywords) { + return true + } + + return false +} + +// SetKeywords gets a reference to the given string and assigns it to the Keywords field. +func (o *PythonPythonPackageContent) SetKeywords(v string) { + o.Keywords = &v +} + +// GetHomePage returns the HomePage field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetHomePage() string { + if o == nil || IsNil(o.HomePage) { + var ret string + return ret + } + return *o.HomePage +} + +// GetHomePageOk returns a tuple with the HomePage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetHomePageOk() (*string, bool) { + if o == nil || IsNil(o.HomePage) { + return nil, false + } + return o.HomePage, true +} + +// HasHomePage returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasHomePage() bool { + if o != nil && !IsNil(o.HomePage) { + return true + } + + return false +} + +// SetHomePage gets a reference to the given string and assigns it to the HomePage field. +func (o *PythonPythonPackageContent) SetHomePage(v string) { + o.HomePage = &v +} + +// GetDownloadUrl returns the DownloadUrl field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetDownloadUrl() string { + if o == nil || IsNil(o.DownloadUrl) { + var ret string + return ret + } + return *o.DownloadUrl +} + +// GetDownloadUrlOk returns a tuple with the DownloadUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetDownloadUrlOk() (*string, bool) { + if o == nil || IsNil(o.DownloadUrl) { + return nil, false + } + return o.DownloadUrl, true +} + +// HasDownloadUrl returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasDownloadUrl() bool { + if o != nil && !IsNil(o.DownloadUrl) { + return true + } + + return false +} + +// SetDownloadUrl gets a reference to the given string and assigns it to the DownloadUrl field. +func (o *PythonPythonPackageContent) SetDownloadUrl(v string) { + o.DownloadUrl = &v +} + +// GetAuthor returns the Author field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetAuthor() string { + if o == nil || IsNil(o.Author) { + var ret string + return ret + } + return *o.Author +} + +// GetAuthorOk returns a tuple with the Author field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetAuthorOk() (*string, bool) { + if o == nil || IsNil(o.Author) { + return nil, false + } + return o.Author, true +} + +// HasAuthor returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasAuthor() bool { + if o != nil && !IsNil(o.Author) { + return true + } + + return false +} + +// SetAuthor gets a reference to the given string and assigns it to the Author field. +func (o *PythonPythonPackageContent) SetAuthor(v string) { + o.Author = &v +} + +// GetAuthorEmail returns the AuthorEmail field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetAuthorEmail() string { + if o == nil || IsNil(o.AuthorEmail) { + var ret string + return ret + } + return *o.AuthorEmail +} + +// GetAuthorEmailOk returns a tuple with the AuthorEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetAuthorEmailOk() (*string, bool) { + if o == nil || IsNil(o.AuthorEmail) { + return nil, false + } + return o.AuthorEmail, true +} + +// HasAuthorEmail returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasAuthorEmail() bool { + if o != nil && !IsNil(o.AuthorEmail) { + return true + } + + return false +} + +// SetAuthorEmail gets a reference to the given string and assigns it to the AuthorEmail field. +func (o *PythonPythonPackageContent) SetAuthorEmail(v string) { + o.AuthorEmail = &v +} + +// GetMaintainer returns the Maintainer field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetMaintainer() string { + if o == nil || IsNil(o.Maintainer) { + var ret string + return ret + } + return *o.Maintainer +} + +// GetMaintainerOk returns a tuple with the Maintainer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetMaintainerOk() (*string, bool) { + if o == nil || IsNil(o.Maintainer) { + return nil, false + } + return o.Maintainer, true +} + +// HasMaintainer returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasMaintainer() bool { + if o != nil && !IsNil(o.Maintainer) { + return true + } + + return false +} + +// SetMaintainer gets a reference to the given string and assigns it to the Maintainer field. +func (o *PythonPythonPackageContent) SetMaintainer(v string) { + o.Maintainer = &v +} + +// GetMaintainerEmail returns the MaintainerEmail field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetMaintainerEmail() string { + if o == nil || IsNil(o.MaintainerEmail) { + var ret string + return ret + } + return *o.MaintainerEmail +} + +// GetMaintainerEmailOk returns a tuple with the MaintainerEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetMaintainerEmailOk() (*string, bool) { + if o == nil || IsNil(o.MaintainerEmail) { + return nil, false + } + return o.MaintainerEmail, true +} + +// HasMaintainerEmail returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasMaintainerEmail() bool { + if o != nil && !IsNil(o.MaintainerEmail) { + return true + } + + return false +} + +// SetMaintainerEmail gets a reference to the given string and assigns it to the MaintainerEmail field. +func (o *PythonPythonPackageContent) SetMaintainerEmail(v string) { + o.MaintainerEmail = &v +} + +// GetLicense returns the License field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetLicense() string { + if o == nil || IsNil(o.License) { + var ret string + return ret + } + return *o.License +} + +// GetLicenseOk returns a tuple with the License field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetLicenseOk() (*string, bool) { + if o == nil || IsNil(o.License) { + return nil, false + } + return o.License, true +} + +// HasLicense returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasLicense() bool { + if o != nil && !IsNil(o.License) { + return true + } + + return false +} + +// SetLicense gets a reference to the given string and assigns it to the License field. +func (o *PythonPythonPackageContent) SetLicense(v string) { + o.License = &v +} + +// GetRequiresPython returns the RequiresPython field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetRequiresPython() string { + if o == nil || IsNil(o.RequiresPython) { + var ret string + return ret + } + return *o.RequiresPython +} + +// GetRequiresPythonOk returns a tuple with the RequiresPython field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetRequiresPythonOk() (*string, bool) { + if o == nil || IsNil(o.RequiresPython) { + return nil, false + } + return o.RequiresPython, true +} + +// HasRequiresPython returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasRequiresPython() bool { + if o != nil && !IsNil(o.RequiresPython) { + return true + } + + return false +} + +// SetRequiresPython gets a reference to the given string and assigns it to the RequiresPython field. +func (o *PythonPythonPackageContent) SetRequiresPython(v string) { + o.RequiresPython = &v +} + +// GetProjectUrl returns the ProjectUrl field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetProjectUrl() string { + if o == nil || IsNil(o.ProjectUrl) { + var ret string + return ret + } + return *o.ProjectUrl +} + +// GetProjectUrlOk returns a tuple with the ProjectUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetProjectUrlOk() (*string, bool) { + if o == nil || IsNil(o.ProjectUrl) { + return nil, false + } + return o.ProjectUrl, true +} + +// HasProjectUrl returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasProjectUrl() bool { + if o != nil && !IsNil(o.ProjectUrl) { + return true + } + + return false +} + +// SetProjectUrl gets a reference to the given string and assigns it to the ProjectUrl field. +func (o *PythonPythonPackageContent) SetProjectUrl(v string) { + o.ProjectUrl = &v +} + +// GetProjectUrls returns the ProjectUrls field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetProjectUrls() map[string]interface{} { + if o == nil || IsNil(o.ProjectUrls) { + var ret map[string]interface{} + return ret + } + return o.ProjectUrls +} + +// GetProjectUrlsOk returns a tuple with the ProjectUrls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetProjectUrlsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ProjectUrls) { + return map[string]interface{}{}, false + } + return o.ProjectUrls, true +} + +// HasProjectUrls returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasProjectUrls() bool { + if o != nil && !IsNil(o.ProjectUrls) { + return true + } + + return false +} + +// SetProjectUrls gets a reference to the given map[string]interface{} and assigns it to the ProjectUrls field. +func (o *PythonPythonPackageContent) SetProjectUrls(v map[string]interface{}) { + o.ProjectUrls = v +} + +// GetPlatform returns the Platform field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetPlatform() string { + if o == nil || IsNil(o.Platform) { + var ret string + return ret + } + return *o.Platform +} + +// GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetPlatformOk() (*string, bool) { + if o == nil || IsNil(o.Platform) { + return nil, false + } + return o.Platform, true +} + +// HasPlatform returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasPlatform() bool { + if o != nil && !IsNil(o.Platform) { + return true + } + + return false +} + +// SetPlatform gets a reference to the given string and assigns it to the Platform field. +func (o *PythonPythonPackageContent) SetPlatform(v string) { + o.Platform = &v +} + +// GetSupportedPlatform returns the SupportedPlatform field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetSupportedPlatform() string { + if o == nil || IsNil(o.SupportedPlatform) { + var ret string + return ret + } + return *o.SupportedPlatform +} + +// GetSupportedPlatformOk returns a tuple with the SupportedPlatform field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetSupportedPlatformOk() (*string, bool) { + if o == nil || IsNil(o.SupportedPlatform) { + return nil, false + } + return o.SupportedPlatform, true +} + +// HasSupportedPlatform returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasSupportedPlatform() bool { + if o != nil && !IsNil(o.SupportedPlatform) { + return true + } + + return false +} + +// SetSupportedPlatform gets a reference to the given string and assigns it to the SupportedPlatform field. +func (o *PythonPythonPackageContent) SetSupportedPlatform(v string) { + o.SupportedPlatform = &v +} + +// GetRequiresDist returns the RequiresDist field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetRequiresDist() map[string]interface{} { + if o == nil || IsNil(o.RequiresDist) { + var ret map[string]interface{} + return ret + } + return o.RequiresDist +} + +// GetRequiresDistOk returns a tuple with the RequiresDist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetRequiresDistOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.RequiresDist) { + return map[string]interface{}{}, false + } + return o.RequiresDist, true +} + +// HasRequiresDist returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasRequiresDist() bool { + if o != nil && !IsNil(o.RequiresDist) { + return true + } + + return false +} + +// SetRequiresDist gets a reference to the given map[string]interface{} and assigns it to the RequiresDist field. +func (o *PythonPythonPackageContent) SetRequiresDist(v map[string]interface{}) { + o.RequiresDist = v +} + +// GetProvidesDist returns the ProvidesDist field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetProvidesDist() map[string]interface{} { + if o == nil || IsNil(o.ProvidesDist) { + var ret map[string]interface{} + return ret + } + return o.ProvidesDist +} + +// GetProvidesDistOk returns a tuple with the ProvidesDist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetProvidesDistOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ProvidesDist) { + return map[string]interface{}{}, false + } + return o.ProvidesDist, true +} + +// HasProvidesDist returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasProvidesDist() bool { + if o != nil && !IsNil(o.ProvidesDist) { + return true + } + + return false +} + +// SetProvidesDist gets a reference to the given map[string]interface{} and assigns it to the ProvidesDist field. +func (o *PythonPythonPackageContent) SetProvidesDist(v map[string]interface{}) { + o.ProvidesDist = v +} + +// GetObsoletesDist returns the ObsoletesDist field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetObsoletesDist() map[string]interface{} { + if o == nil || IsNil(o.ObsoletesDist) { + var ret map[string]interface{} + return ret + } + return o.ObsoletesDist +} + +// GetObsoletesDistOk returns a tuple with the ObsoletesDist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetObsoletesDistOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ObsoletesDist) { + return map[string]interface{}{}, false + } + return o.ObsoletesDist, true +} + +// HasObsoletesDist returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasObsoletesDist() bool { + if o != nil && !IsNil(o.ObsoletesDist) { + return true + } + + return false +} + +// SetObsoletesDist gets a reference to the given map[string]interface{} and assigns it to the ObsoletesDist field. +func (o *PythonPythonPackageContent) SetObsoletesDist(v map[string]interface{}) { + o.ObsoletesDist = v +} + +// GetRequiresExternal returns the RequiresExternal field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetRequiresExternal() map[string]interface{} { + if o == nil || IsNil(o.RequiresExternal) { + var ret map[string]interface{} + return ret + } + return o.RequiresExternal +} + +// GetRequiresExternalOk returns a tuple with the RequiresExternal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetRequiresExternalOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.RequiresExternal) { + return map[string]interface{}{}, false + } + return o.RequiresExternal, true +} + +// HasRequiresExternal returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasRequiresExternal() bool { + if o != nil && !IsNil(o.RequiresExternal) { + return true + } + + return false +} + +// SetRequiresExternal gets a reference to the given map[string]interface{} and assigns it to the RequiresExternal field. +func (o *PythonPythonPackageContent) SetRequiresExternal(v map[string]interface{}) { + o.RequiresExternal = v +} + +// GetClassifiers returns the Classifiers field value if set, zero value otherwise. +func (o *PythonPythonPackageContent) GetClassifiers() map[string]interface{} { + if o == nil || IsNil(o.Classifiers) { + var ret map[string]interface{} + return ret + } + return o.Classifiers +} + +// GetClassifiersOk returns a tuple with the Classifiers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPythonPackageContent) GetClassifiersOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Classifiers) { + return map[string]interface{}{}, false + } + return o.Classifiers, true +} + +// HasClassifiers returns a boolean if a field has been set. +func (o *PythonPythonPackageContent) HasClassifiers() bool { + if o != nil && !IsNil(o.Classifiers) { + return true + } + + return false +} + +// SetClassifiers gets a reference to the given map[string]interface{} and assigns it to the Classifiers field. +func (o *PythonPythonPackageContent) SetClassifiers(v map[string]interface{}) { + o.Classifiers = v +} + +func (o PythonPythonPackageContent) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PythonPythonPackageContent) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Artifact) { + toSerialize["artifact"] = o.Artifact + } + toSerialize["relative_path"] = o.RelativePath + if !IsNil(o.File) { + toSerialize["file"] = o.File + } + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + if !IsNil(o.Upload) { + toSerialize["upload"] = o.Upload + } + if !IsNil(o.Sha256) { + toSerialize["sha256"] = o.Sha256 + } + if !IsNil(o.Summary) { + toSerialize["summary"] = o.Summary + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DescriptionContentType) { + toSerialize["description_content_type"] = o.DescriptionContentType + } + if !IsNil(o.Keywords) { + toSerialize["keywords"] = o.Keywords + } + if !IsNil(o.HomePage) { + toSerialize["home_page"] = o.HomePage + } + if !IsNil(o.DownloadUrl) { + toSerialize["download_url"] = o.DownloadUrl + } + if !IsNil(o.Author) { + toSerialize["author"] = o.Author + } + if !IsNil(o.AuthorEmail) { + toSerialize["author_email"] = o.AuthorEmail + } + if !IsNil(o.Maintainer) { + toSerialize["maintainer"] = o.Maintainer + } + if !IsNil(o.MaintainerEmail) { + toSerialize["maintainer_email"] = o.MaintainerEmail + } + if !IsNil(o.License) { + toSerialize["license"] = o.License + } + if !IsNil(o.RequiresPython) { + toSerialize["requires_python"] = o.RequiresPython + } + if !IsNil(o.ProjectUrl) { + toSerialize["project_url"] = o.ProjectUrl + } + if !IsNil(o.ProjectUrls) { + toSerialize["project_urls"] = o.ProjectUrls + } + if !IsNil(o.Platform) { + toSerialize["platform"] = o.Platform + } + if !IsNil(o.SupportedPlatform) { + toSerialize["supported_platform"] = o.SupportedPlatform + } + if !IsNil(o.RequiresDist) { + toSerialize["requires_dist"] = o.RequiresDist + } + if !IsNil(o.ProvidesDist) { + toSerialize["provides_dist"] = o.ProvidesDist + } + if !IsNil(o.ObsoletesDist) { + toSerialize["obsoletes_dist"] = o.ObsoletesDist + } + if !IsNil(o.RequiresExternal) { + toSerialize["requires_external"] = o.RequiresExternal + } + if !IsNil(o.Classifiers) { + toSerialize["classifiers"] = o.Classifiers + } + return toSerialize, nil +} + +type NullablePythonPythonPackageContent struct { + value *PythonPythonPackageContent + isSet bool +} + +func (v NullablePythonPythonPackageContent) Get() *PythonPythonPackageContent { + return v.value +} + +func (v *NullablePythonPythonPackageContent) Set(val *PythonPythonPackageContent) { + v.value = val + v.isSet = true +} + +func (v NullablePythonPythonPackageContent) IsSet() bool { + return v.isSet +} + +func (v *NullablePythonPythonPackageContent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePythonPythonPackageContent(val *PythonPythonPackageContent) *NullablePythonPythonPackageContent { + return &NullablePythonPythonPackageContent{value: val, isSet: true} +} + +func (v NullablePythonPythonPackageContent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePythonPythonPackageContent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_python_python_package_content_response.go b/release/model_python_python_package_content_response.go index bf5397f0..49308146 100644 --- a/release/model_python_python_package_content_response.go +++ b/release/model_python_python_package_content_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_python_python_publication.go b/release/model_python_python_publication.go index 26ef48f3..cdbc5087 100644 --- a/release/model_python_python_publication.go +++ b/release/model_python_python_publication.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_python_python_publication_response.go b/release/model_python_python_publication_response.go index 8ed74449..ad955715 100644 --- a/release/model_python_python_publication_response.go +++ b/release/model_python_python_publication_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_python_python_remote.go b/release/model_python_python_remote.go index 6a1c1ca7..4c9d98a0 100644 --- a/release/model_python_python_remote.go +++ b/release/model_python_python_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_python_python_remote_response.go b/release/model_python_python_remote_response.go index a6c52652..794ccdb6 100644 --- a/release/model_python_python_remote_response.go +++ b/release/model_python_python_remote_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_python_python_repository.go b/release/model_python_python_repository.go index 89eff6df..d198977e 100644 --- a/release/model_python_python_repository.go +++ b/release/model_python_python_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_python_python_repository_response.go b/release/model_python_python_repository_response.go index 25c98c09..3e82cbdd 100644 --- a/release/model_python_python_repository_response.go +++ b/release/model_python_python_repository_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rbac_content_guard.go b/release/model_rbac_content_guard.go index 08f45017..4b2e63bc 100644 --- a/release/model_rbac_content_guard.go +++ b/release/model_rbac_content_guard.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rbac_content_guard_response.go b/release/model_rbac_content_guard_response.go index bb2908d4..e7160d51 100644 --- a/release/model_rbac_content_guard_response.go +++ b/release/model_rbac_content_guard_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_reclaim_space.go b/release/model_reclaim_space.go index 0378d91c..717c629b 100644 --- a/release/model_reclaim_space.go +++ b/release/model_reclaim_space.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_recursive_manage.go b/release/model_recursive_manage.go index 0b0205f0..a2a11aff 100644 --- a/release/model_recursive_manage.go +++ b/release/model_recursive_manage.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_redis_connection_response.go b/release/model_redis_connection_response.go index 251357ba..c7fa9329 100644 --- a/release/model_redis_connection_response.go +++ b/release/model_redis_connection_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_remote_response.go b/release/model_remote_response.go index a96c494c..34762d2f 100644 --- a/release/model_remote_response.go +++ b/release/model_remote_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_remote_response_hidden_fields_inner.go b/release/model_remote_response_hidden_fields_inner.go index 2524dbd5..a1e3fff2 100644 --- a/release/model_remote_response_hidden_fields_inner.go +++ b/release/model_remote_response_hidden_fields_inner.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_remove_image.go b/release/model_remove_image.go index 4ca91132..d722e5d4 100644 --- a/release/model_remove_image.go +++ b/release/model_remove_image.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_remove_signatures.go b/release/model_remove_signatures.go index be2c0eea..72f525c8 100644 --- a/release/model_remove_signatures.go +++ b/release/model_remove_signatures.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_remove_signatures_response.go b/release/model_remove_signatures_response.go index 020460da..48132cd0 100644 --- a/release/model_remove_signatures_response.go +++ b/release/model_remove_signatures_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_repair.go b/release/model_repair.go index 3435b43b..54e3abf3 100644 --- a/release/model_repair.go +++ b/release/model_repair.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_repo_metadata_response.go b/release/model_repo_metadata_response.go index fc9c98a2..74da476f 100644 --- a/release/model_repo_metadata_response.go +++ b/release/model_repo_metadata_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_repository.go b/release/model_repository.go new file mode 100644 index 00000000..55820fc8 --- /dev/null +++ b/release/model_repository.go @@ -0,0 +1,296 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" +) + +// checks if the Repository type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Repository{} + +// Repository Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly. +type Repository struct { + PulpLabels *map[string]string `json:"pulp_labels,omitempty"` + // A unique name for this repository. + Name string `json:"name"` + // An optional description. + Description NullableString `json:"description,omitempty"` + // Retain X versions of the repository. Default is null which retains all versions. + RetainRepoVersions NullableInt64 `json:"retain_repo_versions,omitempty"` + // An optional remote to use by default when syncing. + Remote NullableString `json:"remote,omitempty"` +} + +// NewRepository instantiates a new Repository object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRepository(name string) *Repository { + this := Repository{} + this.Name = name + return &this +} + +// NewRepositoryWithDefaults instantiates a new Repository object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRepositoryWithDefaults() *Repository { + this := Repository{} + return &this +} + +// GetPulpLabels returns the PulpLabels field value if set, zero value otherwise. +func (o *Repository) GetPulpLabels() map[string]string { + if o == nil || IsNil(o.PulpLabels) { + var ret map[string]string + return ret + } + return *o.PulpLabels +} + +// GetPulpLabelsOk returns a tuple with the PulpLabels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Repository) GetPulpLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.PulpLabels) { + return nil, false + } + return o.PulpLabels, true +} + +// HasPulpLabels returns a boolean if a field has been set. +func (o *Repository) HasPulpLabels() bool { + if o != nil && !IsNil(o.PulpLabels) { + return true + } + + return false +} + +// SetPulpLabels gets a reference to the given map[string]string and assigns it to the PulpLabels field. +func (o *Repository) SetPulpLabels(v map[string]string) { + o.PulpLabels = &v +} + +// GetName returns the Name field value +func (o *Repository) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Repository) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Repository) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Repository) GetDescription() string { + if o == nil || IsNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Repository) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *Repository) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *Repository) SetDescription(v string) { + o.Description.Set(&v) +} +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *Repository) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *Repository) UnsetDescription() { + o.Description.Unset() +} + +// GetRetainRepoVersions returns the RetainRepoVersions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Repository) GetRetainRepoVersions() int64 { + if o == nil || IsNil(o.RetainRepoVersions.Get()) { + var ret int64 + return ret + } + return *o.RetainRepoVersions.Get() +} + +// GetRetainRepoVersionsOk returns a tuple with the RetainRepoVersions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Repository) GetRetainRepoVersionsOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.RetainRepoVersions.Get(), o.RetainRepoVersions.IsSet() +} + +// HasRetainRepoVersions returns a boolean if a field has been set. +func (o *Repository) HasRetainRepoVersions() bool { + if o != nil && o.RetainRepoVersions.IsSet() { + return true + } + + return false +} + +// SetRetainRepoVersions gets a reference to the given NullableInt64 and assigns it to the RetainRepoVersions field. +func (o *Repository) SetRetainRepoVersions(v int64) { + o.RetainRepoVersions.Set(&v) +} +// SetRetainRepoVersionsNil sets the value for RetainRepoVersions to be an explicit nil +func (o *Repository) SetRetainRepoVersionsNil() { + o.RetainRepoVersions.Set(nil) +} + +// UnsetRetainRepoVersions ensures that no value is present for RetainRepoVersions, not even an explicit nil +func (o *Repository) UnsetRetainRepoVersions() { + o.RetainRepoVersions.Unset() +} + +// GetRemote returns the Remote field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Repository) GetRemote() string { + if o == nil || IsNil(o.Remote.Get()) { + var ret string + return ret + } + return *o.Remote.Get() +} + +// GetRemoteOk returns a tuple with the Remote field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Repository) GetRemoteOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Remote.Get(), o.Remote.IsSet() +} + +// HasRemote returns a boolean if a field has been set. +func (o *Repository) HasRemote() bool { + if o != nil && o.Remote.IsSet() { + return true + } + + return false +} + +// SetRemote gets a reference to the given NullableString and assigns it to the Remote field. +func (o *Repository) SetRemote(v string) { + o.Remote.Set(&v) +} +// SetRemoteNil sets the value for Remote to be an explicit nil +func (o *Repository) SetRemoteNil() { + o.Remote.Set(nil) +} + +// UnsetRemote ensures that no value is present for Remote, not even an explicit nil +func (o *Repository) UnsetRemote() { + o.Remote.Unset() +} + +func (o Repository) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Repository) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PulpLabels) { + toSerialize["pulp_labels"] = o.PulpLabels + } + toSerialize["name"] = o.Name + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } + if o.RetainRepoVersions.IsSet() { + toSerialize["retain_repo_versions"] = o.RetainRepoVersions.Get() + } + if o.Remote.IsSet() { + toSerialize["remote"] = o.Remote.Get() + } + return toSerialize, nil +} + +type NullableRepository struct { + value *Repository + isSet bool +} + +func (v NullableRepository) Get() *Repository { + return v.value +} + +func (v *NullableRepository) Set(val *Repository) { + v.value = val + v.isSet = true +} + +func (v NullableRepository) IsSet() bool { + return v.isSet +} + +func (v *NullableRepository) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRepository(val *Repository) *NullableRepository { + return &NullableRepository{value: val, isSet: true} +} + +func (v NullableRepository) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRepository) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_repository_add_cached_content.go b/release/model_repository_add_cached_content.go index 75b10dad..115d6d74 100644 --- a/release/model_repository_add_cached_content.go +++ b/release/model_repository_add_cached_content.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_repository_add_remove_content.go b/release/model_repository_add_remove_content.go index 0354d798..eb55bc19 100644 --- a/release/model_repository_add_remove_content.go +++ b/release/model_repository_add_remove_content.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_repository_response.go b/release/model_repository_response.go index 8dd2b67d..a0ab9475 100644 --- a/release/model_repository_response.go +++ b/release/model_repository_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_repository_sign.go b/release/model_repository_sign.go index fadae8ed..877d4b9b 100644 --- a/release/model_repository_sign.go +++ b/release/model_repository_sign.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_repository_sync_url.go b/release/model_repository_sync_url.go index 8c8715e9..d7fda7d9 100644 --- a/release/model_repository_sync_url.go +++ b/release/model_repository_sync_url.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_repository_version_response.go b/release/model_repository_version_response.go index 01e03969..a2e84590 100644 --- a/release/model_repository_version_response.go +++ b/release/model_repository_version_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_repository_version_response_content_summary.go b/release/model_repository_version_response_content_summary.go index 704ff28c..3e87d186 100644 --- a/release/model_repository_version_response_content_summary.go +++ b/release/model_repository_version_response_content_summary.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_role.go b/release/model_role.go index 3a397d79..4fcbd7aa 100644 --- a/release/model_role.go +++ b/release/model_role.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_role_response.go b/release/model_role_response.go index becdc43c..643521ad 100644 --- a/release/model_role_response.go +++ b/release/model_role_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_distribution_tree_response.go b/release/model_rpm_distribution_tree_response.go index 1c996082..10c6fa0f 100644 --- a/release/model_rpm_distribution_tree_response.go +++ b/release/model_rpm_distribution_tree_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_modulemd.go b/release/model_rpm_modulemd.go index bdc517f7..76db4830 100644 --- a/release/model_rpm_modulemd.go +++ b/release/model_rpm_modulemd.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_modulemd_defaults.go b/release/model_rpm_modulemd_defaults.go index 02f1ff86..46b7bdca 100644 --- a/release/model_rpm_modulemd_defaults.go +++ b/release/model_rpm_modulemd_defaults.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_modulemd_defaults_response.go b/release/model_rpm_modulemd_defaults_response.go index a5ec9177..8caf5d9a 100644 --- a/release/model_rpm_modulemd_defaults_response.go +++ b/release/model_rpm_modulemd_defaults_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_modulemd_obsolete.go b/release/model_rpm_modulemd_obsolete.go index 71a2ad4b..85e3144d 100644 --- a/release/model_rpm_modulemd_obsolete.go +++ b/release/model_rpm_modulemd_obsolete.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_modulemd_obsolete_response.go b/release/model_rpm_modulemd_obsolete_response.go index db5e3b78..eecbad27 100644 --- a/release/model_rpm_modulemd_obsolete_response.go +++ b/release/model_rpm_modulemd_obsolete_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_modulemd_response.go b/release/model_rpm_modulemd_response.go index 6a9b4f04..8704b731 100644 --- a/release/model_rpm_modulemd_response.go +++ b/release/model_rpm_modulemd_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_package.go b/release/model_rpm_package.go new file mode 100644 index 00000000..c7a943be --- /dev/null +++ b/release/model_rpm_package.go @@ -0,0 +1,277 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the RpmPackage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RpmPackage{} + +// RpmPackage A Serializer for Package. Add serializers for the new fields defined in Package and add those fields to the Meta class keeping fields from the parent class as well. Provide help_text. +type RpmPackage struct { + // Artifact file representing the physical content + Artifact *string `json:"artifact,omitempty"` + // Path where the artifact is located relative to distributions base_path + RelativePath *string `json:"relative_path,omitempty"` + // An uploaded file that may be turned into the artifact of the content unit. + File **os.File `json:"file,omitempty"` + // A URI of a repository the new content unit should be associated with. + Repository *string `json:"repository,omitempty"` + // An uncommitted upload that may be turned into the artifact of the content unit. + Upload *string `json:"upload,omitempty"` +} + +// NewRpmPackage instantiates a new RpmPackage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRpmPackage() *RpmPackage { + this := RpmPackage{} + return &this +} + +// NewRpmPackageWithDefaults instantiates a new RpmPackage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRpmPackageWithDefaults() *RpmPackage { + this := RpmPackage{} + return &this +} + +// GetArtifact returns the Artifact field value if set, zero value otherwise. +func (o *RpmPackage) GetArtifact() string { + if o == nil || IsNil(o.Artifact) { + var ret string + return ret + } + return *o.Artifact +} + +// GetArtifactOk returns a tuple with the Artifact field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RpmPackage) GetArtifactOk() (*string, bool) { + if o == nil || IsNil(o.Artifact) { + return nil, false + } + return o.Artifact, true +} + +// HasArtifact returns a boolean if a field has been set. +func (o *RpmPackage) HasArtifact() bool { + if o != nil && !IsNil(o.Artifact) { + return true + } + + return false +} + +// SetArtifact gets a reference to the given string and assigns it to the Artifact field. +func (o *RpmPackage) SetArtifact(v string) { + o.Artifact = &v +} + +// GetRelativePath returns the RelativePath field value if set, zero value otherwise. +func (o *RpmPackage) GetRelativePath() string { + if o == nil || IsNil(o.RelativePath) { + var ret string + return ret + } + return *o.RelativePath +} + +// GetRelativePathOk returns a tuple with the RelativePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RpmPackage) GetRelativePathOk() (*string, bool) { + if o == nil || IsNil(o.RelativePath) { + return nil, false + } + return o.RelativePath, true +} + +// HasRelativePath returns a boolean if a field has been set. +func (o *RpmPackage) HasRelativePath() bool { + if o != nil && !IsNil(o.RelativePath) { + return true + } + + return false +} + +// SetRelativePath gets a reference to the given string and assigns it to the RelativePath field. +func (o *RpmPackage) SetRelativePath(v string) { + o.RelativePath = &v +} + +// GetFile returns the File field value if set, zero value otherwise. +func (o *RpmPackage) GetFile() *os.File { + if o == nil || IsNil(o.File) { + var ret *os.File + return ret + } + return *o.File +} + +// GetFileOk returns a tuple with the File field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RpmPackage) GetFileOk() (**os.File, bool) { + if o == nil || IsNil(o.File) { + return nil, false + } + return o.File, true +} + +// HasFile returns a boolean if a field has been set. +func (o *RpmPackage) HasFile() bool { + if o != nil && !IsNil(o.File) { + return true + } + + return false +} + +// SetFile gets a reference to the given *os.File and assigns it to the File field. +func (o *RpmPackage) SetFile(v *os.File) { + o.File = &v +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *RpmPackage) GetRepository() string { + if o == nil || IsNil(o.Repository) { + var ret string + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RpmPackage) GetRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.Repository) { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *RpmPackage) HasRepository() bool { + if o != nil && !IsNil(o.Repository) { + return true + } + + return false +} + +// SetRepository gets a reference to the given string and assigns it to the Repository field. +func (o *RpmPackage) SetRepository(v string) { + o.Repository = &v +} + +// GetUpload returns the Upload field value if set, zero value otherwise. +func (o *RpmPackage) GetUpload() string { + if o == nil || IsNil(o.Upload) { + var ret string + return ret + } + return *o.Upload +} + +// GetUploadOk returns a tuple with the Upload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RpmPackage) GetUploadOk() (*string, bool) { + if o == nil || IsNil(o.Upload) { + return nil, false + } + return o.Upload, true +} + +// HasUpload returns a boolean if a field has been set. +func (o *RpmPackage) HasUpload() bool { + if o != nil && !IsNil(o.Upload) { + return true + } + + return false +} + +// SetUpload gets a reference to the given string and assigns it to the Upload field. +func (o *RpmPackage) SetUpload(v string) { + o.Upload = &v +} + +func (o RpmPackage) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RpmPackage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Artifact) { + toSerialize["artifact"] = o.Artifact + } + if !IsNil(o.RelativePath) { + toSerialize["relative_path"] = o.RelativePath + } + if !IsNil(o.File) { + toSerialize["file"] = o.File + } + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + if !IsNil(o.Upload) { + toSerialize["upload"] = o.Upload + } + return toSerialize, nil +} + +type NullableRpmPackage struct { + value *RpmPackage + isSet bool +} + +func (v NullableRpmPackage) Get() *RpmPackage { + return v.value +} + +func (v *NullableRpmPackage) Set(val *RpmPackage) { + v.value = val + v.isSet = true +} + +func (v NullableRpmPackage) IsSet() bool { + return v.isSet +} + +func (v *NullableRpmPackage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRpmPackage(val *RpmPackage) *NullableRpmPackage { + return &NullableRpmPackage{value: val, isSet: true} +} + +func (v NullableRpmPackage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRpmPackage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_rpm_package_category_response.go b/release/model_rpm_package_category_response.go index c6706fb9..c5181353 100644 --- a/release/model_rpm_package_category_response.go +++ b/release/model_rpm_package_category_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_package_environment_response.go b/release/model_rpm_package_environment_response.go index ce8b0cdd..5936c365 100644 --- a/release/model_rpm_package_environment_response.go +++ b/release/model_rpm_package_environment_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_package_group_response.go b/release/model_rpm_package_group_response.go index 83a4d356..222bb3e7 100644 --- a/release/model_rpm_package_group_response.go +++ b/release/model_rpm_package_group_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_package_langpacks_response.go b/release/model_rpm_package_langpacks_response.go index 2f0860b7..f813a1ed 100644 --- a/release/model_rpm_package_langpacks_response.go +++ b/release/model_rpm_package_langpacks_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_package_response.go b/release/model_rpm_package_response.go index 55e3cede..c83ead83 100644 --- a/release/model_rpm_package_response.go +++ b/release/model_rpm_package_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_repo_metadata_file_response.go b/release/model_rpm_repo_metadata_file_response.go index d7f3b920..819583bd 100644 --- a/release/model_rpm_repo_metadata_file_response.go +++ b/release/model_rpm_repo_metadata_file_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_repository_sync_url.go b/release/model_rpm_repository_sync_url.go index e0cc0702..109fd5e9 100644 --- a/release/model_rpm_repository_sync_url.go +++ b/release/model_rpm_repository_sync_url.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_rpm_alternate_content_source.go b/release/model_rpm_rpm_alternate_content_source.go index a1dd5d7d..0631dd1c 100644 --- a/release/model_rpm_rpm_alternate_content_source.go +++ b/release/model_rpm_rpm_alternate_content_source.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_rpm_alternate_content_source_response.go b/release/model_rpm_rpm_alternate_content_source_response.go index f9efc4e2..f5aacacc 100644 --- a/release/model_rpm_rpm_alternate_content_source_response.go +++ b/release/model_rpm_rpm_alternate_content_source_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_rpm_distribution.go b/release/model_rpm_rpm_distribution.go index e7d44ce7..1ad55195 100644 --- a/release/model_rpm_rpm_distribution.go +++ b/release/model_rpm_rpm_distribution.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_rpm_distribution_response.go b/release/model_rpm_rpm_distribution_response.go index d20ba3bd..bfaf7ed4 100644 --- a/release/model_rpm_rpm_distribution_response.go +++ b/release/model_rpm_rpm_distribution_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_rpm_publication.go b/release/model_rpm_rpm_publication.go index 62118e33..496f9c7b 100644 --- a/release/model_rpm_rpm_publication.go +++ b/release/model_rpm_rpm_publication.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_rpm_publication_response.go b/release/model_rpm_rpm_publication_response.go index dc0b4390..1afd6493 100644 --- a/release/model_rpm_rpm_publication_response.go +++ b/release/model_rpm_rpm_publication_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_rpm_remote.go b/release/model_rpm_rpm_remote.go index b1cc7374..5d7e8a64 100644 --- a/release/model_rpm_rpm_remote.go +++ b/release/model_rpm_rpm_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_rpm_remote_response.go b/release/model_rpm_rpm_remote_response.go index 02bf1827..7d00973e 100644 --- a/release/model_rpm_rpm_remote_response.go +++ b/release/model_rpm_rpm_remote_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_rpm_repository.go b/release/model_rpm_rpm_repository.go index b67ffa76..3315c1e5 100644 --- a/release/model_rpm_rpm_repository.go +++ b/release/model_rpm_rpm_repository.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_rpm_repository_response.go b/release/model_rpm_rpm_repository_response.go index d3410ba9..aa6adc97 100644 --- a/release/model_rpm_rpm_repository_response.go +++ b/release/model_rpm_rpm_repository_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_uln_remote.go b/release/model_rpm_uln_remote.go index aed7405c..fd620c6d 100644 --- a/release/model_rpm_uln_remote.go +++ b/release/model_rpm_uln_remote.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_uln_remote_response.go b/release/model_rpm_uln_remote_response.go index 47f0b471..1ae579aa 100644 --- a/release/model_rpm_uln_remote_response.go +++ b/release/model_rpm_uln_remote_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_update_collection.go b/release/model_rpm_update_collection.go index 714734a6..ecb25650 100644 --- a/release/model_rpm_update_collection.go +++ b/release/model_rpm_update_collection.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_update_collection_response.go b/release/model_rpm_update_collection_response.go index 2ec3e430..cd096ce7 100644 --- a/release/model_rpm_update_collection_response.go +++ b/release/model_rpm_update_collection_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_rpm_update_record.go b/release/model_rpm_update_record.go new file mode 100644 index 00000000..d6c5822b --- /dev/null +++ b/release/model_rpm_update_record.go @@ -0,0 +1,166 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the RpmUpdateRecord type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RpmUpdateRecord{} + +// RpmUpdateRecord A Serializer for UpdateRecord. +type RpmUpdateRecord struct { + // An uploaded file that may be turned into the artifact of the content unit. + File **os.File `json:"file,omitempty"` + // A URI of a repository the new content unit should be associated with. + Repository *string `json:"repository,omitempty"` +} + +// NewRpmUpdateRecord instantiates a new RpmUpdateRecord object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRpmUpdateRecord() *RpmUpdateRecord { + this := RpmUpdateRecord{} + return &this +} + +// NewRpmUpdateRecordWithDefaults instantiates a new RpmUpdateRecord object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRpmUpdateRecordWithDefaults() *RpmUpdateRecord { + this := RpmUpdateRecord{} + return &this +} + +// GetFile returns the File field value if set, zero value otherwise. +func (o *RpmUpdateRecord) GetFile() *os.File { + if o == nil || IsNil(o.File) { + var ret *os.File + return ret + } + return *o.File +} + +// GetFileOk returns a tuple with the File field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RpmUpdateRecord) GetFileOk() (**os.File, bool) { + if o == nil || IsNil(o.File) { + return nil, false + } + return o.File, true +} + +// HasFile returns a boolean if a field has been set. +func (o *RpmUpdateRecord) HasFile() bool { + if o != nil && !IsNil(o.File) { + return true + } + + return false +} + +// SetFile gets a reference to the given *os.File and assigns it to the File field. +func (o *RpmUpdateRecord) SetFile(v *os.File) { + o.File = &v +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *RpmUpdateRecord) GetRepository() string { + if o == nil || IsNil(o.Repository) { + var ret string + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RpmUpdateRecord) GetRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.Repository) { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *RpmUpdateRecord) HasRepository() bool { + if o != nil && !IsNil(o.Repository) { + return true + } + + return false +} + +// SetRepository gets a reference to the given string and assigns it to the Repository field. +func (o *RpmUpdateRecord) SetRepository(v string) { + o.Repository = &v +} + +func (o RpmUpdateRecord) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RpmUpdateRecord) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.File) { + toSerialize["file"] = o.File + } + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + return toSerialize, nil +} + +type NullableRpmUpdateRecord struct { + value *RpmUpdateRecord + isSet bool +} + +func (v NullableRpmUpdateRecord) Get() *RpmUpdateRecord { + return v.value +} + +func (v *NullableRpmUpdateRecord) Set(val *RpmUpdateRecord) { + v.value = val + v.isSet = true +} + +func (v NullableRpmUpdateRecord) IsSet() bool { + return v.isSet +} + +func (v *NullableRpmUpdateRecord) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRpmUpdateRecord(val *RpmUpdateRecord) *NullableRpmUpdateRecord { + return &NullableRpmUpdateRecord{value: val, isSet: true} +} + +func (v NullableRpmUpdateRecord) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRpmUpdateRecord) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_rpm_update_record_response.go b/release/model_rpm_update_record_response.go index 557809de..b2670df1 100644 --- a/release/model_rpm_update_record_response.go +++ b/release/model_rpm_update_record_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_signing_service_response.go b/release/model_signing_service_response.go index 3c3bbb39..3ddac4ab 100644 --- a/release/model_signing_service_response.go +++ b/release/model_signing_service_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_skip_types_enum.go b/release/model_skip_types_enum.go index 116ea024..0c96e1ae 100644 --- a/release/model_skip_types_enum.go +++ b/release/model_skip_types_enum.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_states_enum.go b/release/model_states_enum.go index 37bed946..6a020f7d 100644 --- a/release/model_states_enum.go +++ b/release/model_states_enum.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_status_response.go b/release/model_status_response.go index 90b99eee..13fc71a5 100644 --- a/release/model_status_response.go +++ b/release/model_status_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_status_response_content_settings.go b/release/model_status_response_content_settings.go index a2161bc4..bd227690 100644 --- a/release/model_status_response_content_settings.go +++ b/release/model_status_response_content_settings.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_status_response_database_connection.go b/release/model_status_response_database_connection.go index 7b28d51b..12212c18 100644 --- a/release/model_status_response_database_connection.go +++ b/release/model_status_response_database_connection.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_status_response_redis_connection.go b/release/model_status_response_redis_connection.go index c26efeed..51ee47ed 100644 --- a/release/model_status_response_redis_connection.go +++ b/release/model_status_response_redis_connection.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_status_response_storage.go b/release/model_status_response_storage.go index 1e316aca..09e90c71 100644 --- a/release/model_status_response_storage.go +++ b/release/model_status_response_storage.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_storage_class_enum.go b/release/model_storage_class_enum.go index 82fc31c7..2738e7d3 100644 --- a/release/model_storage_class_enum.go +++ b/release/model_storage_class_enum.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_storage_response.go b/release/model_storage_response.go index 775c669f..02e51981 100644 --- a/release/model_storage_response.go +++ b/release/model_storage_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_summary_response.go b/release/model_summary_response.go index 7981fbd8..29d11e0e 100644 --- a/release/model_summary_response.go +++ b/release/model_summary_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_sync_policy_enum.go b/release/model_sync_policy_enum.go index 13c7d92f..a1660ff5 100644 --- a/release/model_sync_policy_enum.go +++ b/release/model_sync_policy_enum.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_tag_copy.go b/release/model_tag_copy.go index a8eff799..72431bfd 100644 --- a/release/model_tag_copy.go +++ b/release/model_tag_copy.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_tag_image.go b/release/model_tag_image.go index d32f9514..f78a04d7 100644 --- a/release/model_tag_image.go +++ b/release/model_tag_image.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_tag_response.go b/release/model_tag_response.go index 949401ae..0b3b9f52 100644 --- a/release/model_tag_response.go +++ b/release/model_tag_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_task.go b/release/model_task.go new file mode 100644 index 00000000..1ed58061 --- /dev/null +++ b/release/model_task.go @@ -0,0 +1,147 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" +) + +// checks if the Task type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Task{} + +// Task Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly. +type Task struct { + // The name of task. + Name string `json:"name"` + // The logging correlation id associated with this task + LoggingCid string `json:"logging_cid"` +} + +// NewTask instantiates a new Task object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTask(name string, loggingCid string) *Task { + this := Task{} + this.Name = name + this.LoggingCid = loggingCid + return &this +} + +// NewTaskWithDefaults instantiates a new Task object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTaskWithDefaults() *Task { + this := Task{} + return &this +} + +// GetName returns the Name field value +func (o *Task) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Task) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Task) SetName(v string) { + o.Name = v +} + +// GetLoggingCid returns the LoggingCid field value +func (o *Task) GetLoggingCid() string { + if o == nil { + var ret string + return ret + } + + return o.LoggingCid +} + +// GetLoggingCidOk returns a tuple with the LoggingCid field value +// and a boolean to check if the value has been set. +func (o *Task) GetLoggingCidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LoggingCid, true +} + +// SetLoggingCid sets field value +func (o *Task) SetLoggingCid(v string) { + o.LoggingCid = v +} + +func (o Task) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Task) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["logging_cid"] = o.LoggingCid + return toSerialize, nil +} + +type NullableTask struct { + value *Task + isSet bool +} + +func (v NullableTask) Get() *Task { + return v.value +} + +func (v *NullableTask) Set(val *Task) { + v.value = val + v.isSet = true +} + +func (v NullableTask) IsSet() bool { + return v.isSet +} + +func (v *NullableTask) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTask(val *Task) *NullableTask { + return &NullableTask{value: val, isSet: true} +} + +func (v NullableTask) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTask) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_task_group_operation_response.go b/release/model_task_group_operation_response.go index 649f2787..1b2300c4 100644 --- a/release/model_task_group_operation_response.go +++ b/release/model_task_group_operation_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_task_group_response.go b/release/model_task_group_response.go index 4986ef0f..d725091f 100644 --- a/release/model_task_group_response.go +++ b/release/model_task_group_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_task_response.go b/release/model_task_response.go index da4096f9..a7152501 100644 --- a/release/model_task_response.go +++ b/release/model_task_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_task_schedule_response.go b/release/model_task_schedule_response.go index da78d4da..3fd86ff4 100644 --- a/release/model_task_schedule_response.go +++ b/release/model_task_schedule_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_un_tag_image.go b/release/model_un_tag_image.go index 0019926f..2ccd03bb 100644 --- a/release/model_un_tag_image.go +++ b/release/model_un_tag_image.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_unpaginated_collection_version_response.go b/release/model_unpaginated_collection_version_response.go index a39f314b..186a6341 100644 --- a/release/model_unpaginated_collection_version_response.go +++ b/release/model_unpaginated_collection_version_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" @@ -26,6 +26,7 @@ type UnpaginatedCollectionVersionResponse struct { CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` RequiresAnsible NullableString `json:"requires_ansible,omitempty"` + Marks []string `json:"marks,omitempty"` Artifact *ArtifactRefResponse `json:"artifact,omitempty"` Collection *CollectionRefResponse `json:"collection,omitempty"` DownloadUrl *string `json:"download_url,omitempty"` @@ -210,6 +211,38 @@ func (o *UnpaginatedCollectionVersionResponse) UnsetRequiresAnsible() { o.RequiresAnsible.Unset() } +// GetMarks returns the Marks field value if set, zero value otherwise. +func (o *UnpaginatedCollectionVersionResponse) GetMarks() []string { + if o == nil || IsNil(o.Marks) { + var ret []string + return ret + } + return o.Marks +} + +// GetMarksOk returns a tuple with the Marks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UnpaginatedCollectionVersionResponse) GetMarksOk() ([]string, bool) { + if o == nil || IsNil(o.Marks) { + return nil, false + } + return o.Marks, true +} + +// HasMarks returns a boolean if a field has been set. +func (o *UnpaginatedCollectionVersionResponse) HasMarks() bool { + if o != nil && !IsNil(o.Marks) { + return true + } + + return false +} + +// SetMarks gets a reference to the given []string and assigns it to the Marks field. +func (o *UnpaginatedCollectionVersionResponse) SetMarks(v []string) { + o.Marks = v +} + // GetArtifact returns the Artifact field value if set, zero value otherwise. func (o *UnpaginatedCollectionVersionResponse) GetArtifact() ArtifactRefResponse { if o == nil || IsNil(o.Artifact) { @@ -515,6 +548,7 @@ func (o UnpaginatedCollectionVersionResponse) ToMap() (map[string]interface{}, e if o.RequiresAnsible.IsSet() { toSerialize["requires_ansible"] = o.RequiresAnsible.Get() } + // skip: marks is readOnly // skip: artifact is readOnly // skip: collection is readOnly // skip: download_url is readOnly diff --git a/release/model_upload.go b/release/model_upload.go index 8d76c0d5..406d2294 100644 --- a/release/model_upload.go +++ b/release/model_upload.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_upload_chunk.go b/release/model_upload_chunk.go new file mode 100644 index 00000000..c1b44811 --- /dev/null +++ b/release/model_upload_chunk.go @@ -0,0 +1,167 @@ +/* +Pulp 3 API + +Fetch, Upload, Organize, and Distribute Software Packages + +API version: v3 +Contact: pulp-list@redhat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package zest + +import ( + "encoding/json" + "os" +) + +// checks if the UploadChunk type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UploadChunk{} + +// UploadChunk A mixin for validating unknown serializers' fields. +type UploadChunk struct { + // A chunk of the uploaded file. + File *os.File `json:"file"` + // The SHA-256 checksum of the chunk if available. + Sha256 NullableString `json:"sha256,omitempty"` +} + +// NewUploadChunk instantiates a new UploadChunk object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUploadChunk(file *os.File) *UploadChunk { + this := UploadChunk{} + this.File = file + return &this +} + +// NewUploadChunkWithDefaults instantiates a new UploadChunk object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUploadChunkWithDefaults() *UploadChunk { + this := UploadChunk{} + return &this +} + +// GetFile returns the File field value +func (o *UploadChunk) GetFile() *os.File { + if o == nil { + var ret *os.File + return ret + } + + return o.File +} + +// GetFileOk returns a tuple with the File field value +// and a boolean to check if the value has been set. +func (o *UploadChunk) GetFileOk() (**os.File, bool) { + if o == nil { + return nil, false + } + return &o.File, true +} + +// SetFile sets field value +func (o *UploadChunk) SetFile(v *os.File) { + o.File = v +} + +// GetSha256 returns the Sha256 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UploadChunk) GetSha256() string { + if o == nil || IsNil(o.Sha256.Get()) { + var ret string + return ret + } + return *o.Sha256.Get() +} + +// GetSha256Ok returns a tuple with the Sha256 field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UploadChunk) GetSha256Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.Sha256.Get(), o.Sha256.IsSet() +} + +// HasSha256 returns a boolean if a field has been set. +func (o *UploadChunk) HasSha256() bool { + if o != nil && o.Sha256.IsSet() { + return true + } + + return false +} + +// SetSha256 gets a reference to the given NullableString and assigns it to the Sha256 field. +func (o *UploadChunk) SetSha256(v string) { + o.Sha256.Set(&v) +} +// SetSha256Nil sets the value for Sha256 to be an explicit nil +func (o *UploadChunk) SetSha256Nil() { + o.Sha256.Set(nil) +} + +// UnsetSha256 ensures that no value is present for Sha256, not even an explicit nil +func (o *UploadChunk) UnsetSha256() { + o.Sha256.Unset() +} + +func (o UploadChunk) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UploadChunk) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["file"] = o.File + if o.Sha256.IsSet() { + toSerialize["sha256"] = o.Sha256.Get() + } + return toSerialize, nil +} + +type NullableUploadChunk struct { + value *UploadChunk + isSet bool +} + +func (v NullableUploadChunk) Get() *UploadChunk { + return v.value +} + +func (v *NullableUploadChunk) Set(val *UploadChunk) { + v.value = val + v.isSet = true +} + +func (v NullableUploadChunk) IsSet() bool { + return v.isSet +} + +func (v *NullableUploadChunk) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUploadChunk(val *UploadChunk) *NullableUploadChunk { + return &NullableUploadChunk{value: val, isSet: true} +} + +func (v NullableUploadChunk) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUploadChunk) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/release/model_upload_chunk_response.go b/release/model_upload_chunk_response.go index 34c4e9b1..3f6ce274 100644 --- a/release/model_upload_chunk_response.go +++ b/release/model_upload_chunk_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_upload_commit.go b/release/model_upload_commit.go index ed51d6e6..c1df5d7b 100644 --- a/release/model_upload_commit.go +++ b/release/model_upload_commit.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_upload_detail_response.go b/release/model_upload_detail_response.go index 4302bb9f..28a7882b 100644 --- a/release/model_upload_detail_response.go +++ b/release/model_upload_detail_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_upload_response.go b/release/model_upload_response.go index 8a67b7d7..f32183f7 100644 --- a/release/model_upload_response.go +++ b/release/model_upload_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_upstream_pulp.go b/release/model_upstream_pulp.go index 093e75ff..1bc48e4c 100644 --- a/release/model_upstream_pulp.go +++ b/release/model_upstream_pulp.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_upstream_pulp_response.go b/release/model_upstream_pulp_response.go index 86634099..878f4ec4 100644 --- a/release/model_upstream_pulp_response.go +++ b/release/model_upstream_pulp_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_user.go b/release/model_user.go index df1b5133..6ca8e968 100644 --- a/release/model_user.go +++ b/release/model_user.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_user_group.go b/release/model_user_group.go index 341cd1ad..6a458c0e 100644 --- a/release/model_user_group.go +++ b/release/model_user_group.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_user_group_response.go b/release/model_user_group_response.go index e9c373b8..5e8e0a5c 100644 --- a/release/model_user_group_response.go +++ b/release/model_user_group_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_user_response.go b/release/model_user_response.go index 91578a3a..396dca3d 100644 --- a/release/model_user_response.go +++ b/release/model_user_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_user_role.go b/release/model_user_role.go index 3888d4ad..cbd6b416 100644 --- a/release/model_user_role.go +++ b/release/model_user_role.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_user_role_response.go b/release/model_user_role_response.go index df53041a..55fa25c1 100644 --- a/release/model_user_role_response.go +++ b/release/model_user_role_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_variant_response.go b/release/model_variant_response.go index 69e4fed0..3e19fb29 100644 --- a/release/model_variant_response.go +++ b/release/model_variant_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_version_response.go b/release/model_version_response.go index db373c33..398bd60e 100644 --- a/release/model_version_response.go +++ b/release/model_version_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/model_worker_response.go b/release/model_worker_response.go index 44bc2a3a..eb674d44 100644 --- a/release/model_worker_response.go +++ b/release/model_worker_response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json" diff --git a/release/response.go b/release/response.go index 41b0cdc0..1d2a1ac8 100644 --- a/release/response.go +++ b/release/response.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "net/http" diff --git a/release/test/api_access_policies_test.go b/release/test/api_access_policies_test.go index ef98ab82..aed120e3 100644 --- a/release/test/api_access_policies_test.go +++ b/release/test/api_access_policies_test.go @@ -7,7 +7,7 @@ Testing AccessPoliciesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_AccessPoliciesApiService(t *testing.T) { +func Test_zest_AccessPoliciesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_acs_file_test.go b/release/test/api_acs_file_test.go index 29c89dbf..c5c6190b 100644 --- a/release/test/api_acs_file_test.go +++ b/release/test/api_acs_file_test.go @@ -7,7 +7,7 @@ Testing AcsFileApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_AcsFileApiService(t *testing.T) { +func Test_zest_AcsFileApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_acs_rpm_test.go b/release/test/api_acs_rpm_test.go index 117b5981..dd749c74 100644 --- a/release/test/api_acs_rpm_test.go +++ b/release/test/api_acs_rpm_test.go @@ -7,7 +7,7 @@ Testing AcsRpmApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_AcsRpmApiService(t *testing.T) { +func Test_zest_AcsRpmApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_ansible_collections_test.go b/release/test/api_ansible_collections_test.go index 5966c1c8..500eda82 100644 --- a/release/test/api_ansible_collections_test.go +++ b/release/test/api_ansible_collections_test.go @@ -7,7 +7,7 @@ Testing AnsibleCollectionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,11 +17,25 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_AnsibleCollectionsApiService(t *testing.T) { +func Test_zest_AnsibleCollectionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) + t.Run("Test AnsibleCollectionsApiService AnsibleCollectionsAddRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleCollectionHref string + + resp, httpRes, err := apiClient.AnsibleCollectionsApi.AnsibleCollectionsAddRole(context.Background(), ansibleCollectionHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test AnsibleCollectionsApiService AnsibleCollectionsList", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -34,6 +48,48 @@ func Test_zest/release/v3_AnsibleCollectionsApiService(t *testing.T) { }) + t.Run("Test AnsibleCollectionsApiService AnsibleCollectionsListRoles", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleCollectionHref string + + resp, httpRes, err := apiClient.AnsibleCollectionsApi.AnsibleCollectionsListRoles(context.Background(), ansibleCollectionHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AnsibleCollectionsApiService AnsibleCollectionsMyPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleCollectionHref string + + resp, httpRes, err := apiClient.AnsibleCollectionsApi.AnsibleCollectionsMyPermissions(context.Background(), ansibleCollectionHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AnsibleCollectionsApiService AnsibleCollectionsRemoveRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleCollectionHref string + + resp, httpRes, err := apiClient.AnsibleCollectionsApi.AnsibleCollectionsRemoveRole(context.Background(), ansibleCollectionHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test AnsibleCollectionsApiService UploadCollection", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/release/test/api_ansible_copy_test.go b/release/test/api_ansible_copy_test.go index 626aa3fc..4ac0dac0 100644 --- a/release/test/api_ansible_copy_test.go +++ b/release/test/api_ansible_copy_test.go @@ -7,7 +7,7 @@ Testing AnsibleCopyApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_AnsibleCopyApiService(t *testing.T) { +func Test_zest_AnsibleCopyApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_api_collections_test.go b/release/test/api_api_collections_test.go index afc4e8bc..7ff3af16 100644 --- a/release/test/api_api_collections_test.go +++ b/release/test/api_api_collections_test.go @@ -7,7 +7,7 @@ Testing ApiCollectionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ApiCollectionsApiService(t *testing.T) { +func Test_zest_ApiCollectionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_api_roles_test.go b/release/test/api_api_roles_test.go index 1fb22436..a178e221 100644 --- a/release/test/api_api_roles_test.go +++ b/release/test/api_api_roles_test.go @@ -7,7 +7,7 @@ Testing ApiRolesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ApiRolesApiService(t *testing.T) { +func Test_zest_ApiRolesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_artifacts_test.go b/release/test/api_artifacts_test.go index 39bab2f9..b1e91f30 100644 --- a/release/test/api_artifacts_test.go +++ b/release/test/api_artifacts_test.go @@ -7,7 +7,7 @@ Testing ArtifactsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ArtifactsApiService(t *testing.T) { +func Test_zest_ArtifactsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_collection_import_test.go b/release/test/api_collection_import_test.go index 77b7959b..9abb3cf5 100644 --- a/release/test/api_collection_import_test.go +++ b/release/test/api_collection_import_test.go @@ -7,7 +7,7 @@ Testing CollectionImportApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_CollectionImportApiService(t *testing.T) { +func Test_zest_CollectionImportApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_advisories_test.go b/release/test/api_content_advisories_test.go index 4b292191..b8810d08 100644 --- a/release/test/api_content_advisories_test.go +++ b/release/test/api_content_advisories_test.go @@ -7,7 +7,7 @@ Testing ContentAdvisoriesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentAdvisoriesApiService(t *testing.T) { +func Test_zest_ContentAdvisoriesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_artifact_test.go b/release/test/api_content_artifact_test.go index 1fc1d573..7331c2aa 100644 --- a/release/test/api_content_artifact_test.go +++ b/release/test/api_content_artifact_test.go @@ -7,7 +7,7 @@ Testing ContentArtifactApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentArtifactApiService(t *testing.T) { +func Test_zest_ContentArtifactApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_blobs_test.go b/release/test/api_content_blobs_test.go index 83109986..c30ff2ef 100644 --- a/release/test/api_content_blobs_test.go +++ b/release/test/api_content_blobs_test.go @@ -7,7 +7,7 @@ Testing ContentBlobsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentBlobsApiService(t *testing.T) { +func Test_zest_ContentBlobsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_collection_deprecations_test.go b/release/test/api_content_collection_deprecations_test.go index 8e0ee13a..6f9fbc4a 100644 --- a/release/test/api_content_collection_deprecations_test.go +++ b/release/test/api_content_collection_deprecations_test.go @@ -7,7 +7,7 @@ Testing ContentCollectionDeprecationsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentCollectionDeprecationsApiService(t *testing.T) { +func Test_zest_ContentCollectionDeprecationsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_collection_marks_test.go b/release/test/api_content_collection_marks_test.go new file mode 100644 index 00000000..b170b995 --- /dev/null +++ b/release/test/api_content_collection_marks_test.go @@ -0,0 +1,63 @@ +/* +Pulp 3 API + +Testing ContentCollectionMarksApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package zest + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/content-services/zest/release/v3" +) + +func Test_zest_ContentCollectionMarksApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ContentCollectionMarksApiService ContentAnsibleCollectionMarksCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ContentCollectionMarksApi.ContentAnsibleCollectionMarksCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ContentCollectionMarksApiService ContentAnsibleCollectionMarksList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ContentCollectionMarksApi.ContentAnsibleCollectionMarksList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ContentCollectionMarksApiService ContentAnsibleCollectionMarksRead", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleCollectionVersionMarkHref string + + resp, httpRes, err := apiClient.ContentCollectionMarksApi.ContentAnsibleCollectionMarksRead(context.Background(), ansibleCollectionVersionMarkHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/release/test/api_content_collection_signatures_test.go b/release/test/api_content_collection_signatures_test.go index 2f8a57d9..6d761d21 100644 --- a/release/test/api_content_collection_signatures_test.go +++ b/release/test/api_content_collection_signatures_test.go @@ -7,7 +7,7 @@ Testing ContentCollectionSignaturesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentCollectionSignaturesApiService(t *testing.T) { +func Test_zest_ContentCollectionSignaturesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_collection_versions_test.go b/release/test/api_content_collection_versions_test.go index 170f7552..0cfbfa6c 100644 --- a/release/test/api_content_collection_versions_test.go +++ b/release/test/api_content_collection_versions_test.go @@ -7,7 +7,7 @@ Testing ContentCollectionVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentCollectionVersionsApiService(t *testing.T) { +func Test_zest_ContentCollectionVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_commits_test.go b/release/test/api_content_commits_test.go index f05c63ae..a390fe6c 100644 --- a/release/test/api_content_commits_test.go +++ b/release/test/api_content_commits_test.go @@ -7,7 +7,7 @@ Testing ContentCommitsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentCommitsApiService(t *testing.T) { +func Test_zest_ContentCommitsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_configs_test.go b/release/test/api_content_configs_test.go index 2835dd8e..acb58111 100644 --- a/release/test/api_content_configs_test.go +++ b/release/test/api_content_configs_test.go @@ -7,7 +7,7 @@ Testing ContentConfigsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentConfigsApiService(t *testing.T) { +func Test_zest_ContentConfigsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_content_test.go b/release/test/api_content_content_test.go index e23b01d0..9c95d14d 100644 --- a/release/test/api_content_content_test.go +++ b/release/test/api_content_content_test.go @@ -7,7 +7,7 @@ Testing ContentContentApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentContentApiService(t *testing.T) { +func Test_zest_ContentContentApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_distribution_trees_test.go b/release/test/api_content_distribution_trees_test.go index cb164b99..c56f3b25 100644 --- a/release/test/api_content_distribution_trees_test.go +++ b/release/test/api_content_distribution_trees_test.go @@ -7,7 +7,7 @@ Testing ContentDistributionTreesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentDistributionTreesApiService(t *testing.T) { +func Test_zest_ContentDistributionTreesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_files_test.go b/release/test/api_content_files_test.go index 60e40df3..eb7fdfc2 100644 --- a/release/test/api_content_files_test.go +++ b/release/test/api_content_files_test.go @@ -7,7 +7,7 @@ Testing ContentFilesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentFilesApiService(t *testing.T) { +func Test_zest_ContentFilesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_generic_contents_test.go b/release/test/api_content_generic_contents_test.go index 6c75e1da..59b8ad0f 100644 --- a/release/test/api_content_generic_contents_test.go +++ b/release/test/api_content_generic_contents_test.go @@ -7,7 +7,7 @@ Testing ContentGenericContentsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentGenericContentsApiService(t *testing.T) { +func Test_zest_ContentGenericContentsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_installer_file_indices_test.go b/release/test/api_content_installer_file_indices_test.go index e3c0a0df..cf1d0868 100644 --- a/release/test/api_content_installer_file_indices_test.go +++ b/release/test/api_content_installer_file_indices_test.go @@ -7,7 +7,7 @@ Testing ContentInstallerFileIndicesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentInstallerFileIndicesApiService(t *testing.T) { +func Test_zest_ContentInstallerFileIndicesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_installer_packages_test.go b/release/test/api_content_installer_packages_test.go index 02f0c02e..0a0ce403 100644 --- a/release/test/api_content_installer_packages_test.go +++ b/release/test/api_content_installer_packages_test.go @@ -7,7 +7,7 @@ Testing ContentInstallerPackagesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentInstallerPackagesApiService(t *testing.T) { +func Test_zest_ContentInstallerPackagesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_manifests_test.go b/release/test/api_content_manifests_test.go index 3e40f484..81341f07 100644 --- a/release/test/api_content_manifests_test.go +++ b/release/test/api_content_manifests_test.go @@ -7,7 +7,7 @@ Testing ContentManifestsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentManifestsApiService(t *testing.T) { +func Test_zest_ContentManifestsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_modulemd_defaults_test.go b/release/test/api_content_modulemd_defaults_test.go index 93149d06..783e8de0 100644 --- a/release/test/api_content_modulemd_defaults_test.go +++ b/release/test/api_content_modulemd_defaults_test.go @@ -7,7 +7,7 @@ Testing ContentModulemdDefaultsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentModulemdDefaultsApiService(t *testing.T) { +func Test_zest_ContentModulemdDefaultsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_modulemd_obsoletes_test.go b/release/test/api_content_modulemd_obsoletes_test.go index 9206c66c..d85454c5 100644 --- a/release/test/api_content_modulemd_obsoletes_test.go +++ b/release/test/api_content_modulemd_obsoletes_test.go @@ -7,7 +7,7 @@ Testing ContentModulemdObsoletesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentModulemdObsoletesApiService(t *testing.T) { +func Test_zest_ContentModulemdObsoletesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_modulemds_test.go b/release/test/api_content_modulemds_test.go index 7d68d9ab..2a956782 100644 --- a/release/test/api_content_modulemds_test.go +++ b/release/test/api_content_modulemds_test.go @@ -7,7 +7,7 @@ Testing ContentModulemdsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentModulemdsApiService(t *testing.T) { +func Test_zest_ContentModulemdsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_namespaces_test.go b/release/test/api_content_namespaces_test.go new file mode 100644 index 00000000..b5ccc98a --- /dev/null +++ b/release/test/api_content_namespaces_test.go @@ -0,0 +1,64 @@ +/* +Pulp 3 API + +Testing ContentNamespacesApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package zest + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/content-services/zest/release/v3" +) + +func Test_zest_ContentNamespacesApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ContentNamespacesApiService ContentAnsibleNamespacesAvatar", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleAnsibleNamespaceMetadataHref string + + httpRes, err := apiClient.ContentNamespacesApi.ContentAnsibleNamespacesAvatar(context.Background(), ansibleAnsibleNamespaceMetadataHref).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ContentNamespacesApiService ContentAnsibleNamespacesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ContentNamespacesApi.ContentAnsibleNamespacesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ContentNamespacesApiService ContentAnsibleNamespacesRead", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleAnsibleNamespaceMetadataHref string + + resp, httpRes, err := apiClient.ContentNamespacesApi.ContentAnsibleNamespacesRead(context.Background(), ansibleAnsibleNamespaceMetadataHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/release/test/api_content_objects_test.go b/release/test/api_content_objects_test.go index f9ab8756..0b4f8e91 100644 --- a/release/test/api_content_objects_test.go +++ b/release/test/api_content_objects_test.go @@ -7,7 +7,7 @@ Testing ContentObjectsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentObjectsApiService(t *testing.T) { +func Test_zest_ContentObjectsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_package_indices_test.go b/release/test/api_content_package_indices_test.go index 74526607..f14d621c 100644 --- a/release/test/api_content_package_indices_test.go +++ b/release/test/api_content_package_indices_test.go @@ -7,7 +7,7 @@ Testing ContentPackageIndicesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentPackageIndicesApiService(t *testing.T) { +func Test_zest_ContentPackageIndicesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_package_release_components_test.go b/release/test/api_content_package_release_components_test.go index 1f032bea..9fb24a64 100644 --- a/release/test/api_content_package_release_components_test.go +++ b/release/test/api_content_package_release_components_test.go @@ -7,7 +7,7 @@ Testing ContentPackageReleaseComponentsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentPackageReleaseComponentsApiService(t *testing.T) { +func Test_zest_ContentPackageReleaseComponentsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_packagecategories_test.go b/release/test/api_content_packagecategories_test.go index 7e8d9967..81f981d1 100644 --- a/release/test/api_content_packagecategories_test.go +++ b/release/test/api_content_packagecategories_test.go @@ -7,7 +7,7 @@ Testing ContentPackagecategoriesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentPackagecategoriesApiService(t *testing.T) { +func Test_zest_ContentPackagecategoriesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_packageenvironments_test.go b/release/test/api_content_packageenvironments_test.go index 6e44ac6c..03ab82be 100644 --- a/release/test/api_content_packageenvironments_test.go +++ b/release/test/api_content_packageenvironments_test.go @@ -7,7 +7,7 @@ Testing ContentPackageenvironmentsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentPackageenvironmentsApiService(t *testing.T) { +func Test_zest_ContentPackageenvironmentsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_packagegroups_test.go b/release/test/api_content_packagegroups_test.go index 15cf5069..ac89e1e6 100644 --- a/release/test/api_content_packagegroups_test.go +++ b/release/test/api_content_packagegroups_test.go @@ -7,7 +7,7 @@ Testing ContentPackagegroupsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentPackagegroupsApiService(t *testing.T) { +func Test_zest_ContentPackagegroupsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_packagelangpacks_test.go b/release/test/api_content_packagelangpacks_test.go index d9efb930..43a976ed 100644 --- a/release/test/api_content_packagelangpacks_test.go +++ b/release/test/api_content_packagelangpacks_test.go @@ -7,7 +7,7 @@ Testing ContentPackagelangpacksApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentPackagelangpacksApiService(t *testing.T) { +func Test_zest_ContentPackagelangpacksApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_packages_test.go b/release/test/api_content_packages_test.go index 8deadee2..e2a7a2ee 100644 --- a/release/test/api_content_packages_test.go +++ b/release/test/api_content_packages_test.go @@ -7,7 +7,7 @@ Testing ContentPackagesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentPackagesApiService(t *testing.T) { +func Test_zest_ContentPackagesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_refs_test.go b/release/test/api_content_refs_test.go index 50078906..29412834 100644 --- a/release/test/api_content_refs_test.go +++ b/release/test/api_content_refs_test.go @@ -7,7 +7,7 @@ Testing ContentRefsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentRefsApiService(t *testing.T) { +func Test_zest_ContentRefsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_release_architectures_test.go b/release/test/api_content_release_architectures_test.go index d6b0c892..c8a84ef2 100644 --- a/release/test/api_content_release_architectures_test.go +++ b/release/test/api_content_release_architectures_test.go @@ -7,7 +7,7 @@ Testing ContentReleaseArchitecturesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentReleaseArchitecturesApiService(t *testing.T) { +func Test_zest_ContentReleaseArchitecturesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_release_components_test.go b/release/test/api_content_release_components_test.go index 0c6630eb..cd98f23e 100644 --- a/release/test/api_content_release_components_test.go +++ b/release/test/api_content_release_components_test.go @@ -7,7 +7,7 @@ Testing ContentReleaseComponentsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentReleaseComponentsApiService(t *testing.T) { +func Test_zest_ContentReleaseComponentsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_release_files_test.go b/release/test/api_content_release_files_test.go index 84489f03..4d462944 100644 --- a/release/test/api_content_release_files_test.go +++ b/release/test/api_content_release_files_test.go @@ -7,7 +7,7 @@ Testing ContentReleaseFilesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentReleaseFilesApiService(t *testing.T) { +func Test_zest_ContentReleaseFilesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_releases_test.go b/release/test/api_content_releases_test.go index 5bdb1e8c..999cd6d2 100644 --- a/release/test/api_content_releases_test.go +++ b/release/test/api_content_releases_test.go @@ -7,7 +7,7 @@ Testing ContentReleasesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentReleasesApiService(t *testing.T) { +func Test_zest_ContentReleasesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_repo_metadata_files_test.go b/release/test/api_content_repo_metadata_files_test.go index 8adfc93d..1cee636e 100644 --- a/release/test/api_content_repo_metadata_files_test.go +++ b/release/test/api_content_repo_metadata_files_test.go @@ -7,7 +7,7 @@ Testing ContentRepoMetadataFilesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentRepoMetadataFilesApiService(t *testing.T) { +func Test_zest_ContentRepoMetadataFilesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_roles_test.go b/release/test/api_content_roles_test.go index 2c601342..fb32fb3a 100644 --- a/release/test/api_content_roles_test.go +++ b/release/test/api_content_roles_test.go @@ -7,7 +7,7 @@ Testing ContentRolesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentRolesApiService(t *testing.T) { +func Test_zest_ContentRolesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_signatures_test.go b/release/test/api_content_signatures_test.go index 91766d25..a193c3d6 100644 --- a/release/test/api_content_signatures_test.go +++ b/release/test/api_content_signatures_test.go @@ -7,7 +7,7 @@ Testing ContentSignaturesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentSignaturesApiService(t *testing.T) { +func Test_zest_ContentSignaturesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_summaries_test.go b/release/test/api_content_summaries_test.go index 5bf97dac..e0979fb5 100644 --- a/release/test/api_content_summaries_test.go +++ b/release/test/api_content_summaries_test.go @@ -7,7 +7,7 @@ Testing ContentSummariesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentSummariesApiService(t *testing.T) { +func Test_zest_ContentSummariesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_tags_test.go b/release/test/api_content_tags_test.go index f4574118..18a64e1c 100644 --- a/release/test/api_content_tags_test.go +++ b/release/test/api_content_tags_test.go @@ -7,7 +7,7 @@ Testing ContentTagsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentTagsApiService(t *testing.T) { +func Test_zest_ContentTagsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_content_test.go b/release/test/api_content_test.go index 08a19120..f638512f 100644 --- a/release/test/api_content_test.go +++ b/release/test/api_content_test.go @@ -7,7 +7,7 @@ Testing ContentApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentApiService(t *testing.T) { +func Test_zest_ContentApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_contentguards_content_redirect_test.go b/release/test/api_contentguards_content_redirect_test.go index c5716592..49e91795 100644 --- a/release/test/api_contentguards_content_redirect_test.go +++ b/release/test/api_contentguards_content_redirect_test.go @@ -7,7 +7,7 @@ Testing ContentguardsContentRedirectApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentguardsContentRedirectApiService(t *testing.T) { +func Test_zest_ContentguardsContentRedirectApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_contentguards_rbac_test.go b/release/test/api_contentguards_rbac_test.go index 4be4e30f..faea00f0 100644 --- a/release/test/api_contentguards_rbac_test.go +++ b/release/test/api_contentguards_rbac_test.go @@ -7,7 +7,7 @@ Testing ContentguardsRbacApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentguardsRbacApiService(t *testing.T) { +func Test_zest_ContentguardsRbacApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_contentguards_rhsm_test.go b/release/test/api_contentguards_rhsm_test.go index 40fb494b..66368688 100644 --- a/release/test/api_contentguards_rhsm_test.go +++ b/release/test/api_contentguards_rhsm_test.go @@ -7,7 +7,7 @@ Testing ContentguardsRhsmApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentguardsRhsmApiService(t *testing.T) { +func Test_zest_ContentguardsRhsmApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_contentguards_test.go b/release/test/api_contentguards_test.go index 8a04a8b2..833f5c9b 100644 --- a/release/test/api_contentguards_test.go +++ b/release/test/api_contentguards_test.go @@ -7,7 +7,7 @@ Testing ContentguardsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentguardsApiService(t *testing.T) { +func Test_zest_ContentguardsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_contentguards_x509_test.go b/release/test/api_contentguards_x509_test.go index a94e11ee..e9ac7b24 100644 --- a/release/test/api_contentguards_x509_test.go +++ b/release/test/api_contentguards_x509_test.go @@ -7,7 +7,7 @@ Testing ContentguardsX509ApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ContentguardsX509ApiService(t *testing.T) { +func Test_zest_ContentguardsX509ApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_deb_copy_test.go b/release/test/api_deb_copy_test.go index 53f26ef5..19f9d8a3 100644 --- a/release/test/api_deb_copy_test.go +++ b/release/test/api_deb_copy_test.go @@ -7,7 +7,7 @@ Testing DebCopyApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_DebCopyApiService(t *testing.T) { +func Test_zest_DebCopyApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_distributions_ansible_test.go b/release/test/api_distributions_ansible_test.go index a6c5ecf1..36254402 100644 --- a/release/test/api_distributions_ansible_test.go +++ b/release/test/api_distributions_ansible_test.go @@ -7,7 +7,7 @@ Testing DistributionsAnsibleApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,11 +17,25 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_DistributionsAnsibleApiService(t *testing.T) { +func Test_zest_DistributionsAnsibleApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) + t.Run("Test DistributionsAnsibleApiService DistributionsAnsibleAnsibleAddRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleAnsibleDistributionHref string + + resp, httpRes, err := apiClient.DistributionsAnsibleApi.DistributionsAnsibleAnsibleAddRole(context.Background(), ansibleAnsibleDistributionHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test DistributionsAnsibleApiService DistributionsAnsibleAnsibleCreate", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -60,6 +74,34 @@ func Test_zest/release/v3_DistributionsAnsibleApiService(t *testing.T) { }) + t.Run("Test DistributionsAnsibleApiService DistributionsAnsibleAnsibleListRoles", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleAnsibleDistributionHref string + + resp, httpRes, err := apiClient.DistributionsAnsibleApi.DistributionsAnsibleAnsibleListRoles(context.Background(), ansibleAnsibleDistributionHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DistributionsAnsibleApiService DistributionsAnsibleAnsibleMyPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleAnsibleDistributionHref string + + resp, httpRes, err := apiClient.DistributionsAnsibleApi.DistributionsAnsibleAnsibleMyPermissions(context.Background(), ansibleAnsibleDistributionHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test DistributionsAnsibleApiService DistributionsAnsibleAnsiblePartialUpdate", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -88,6 +130,20 @@ func Test_zest/release/v3_DistributionsAnsibleApiService(t *testing.T) { }) + t.Run("Test DistributionsAnsibleApiService DistributionsAnsibleAnsibleRemoveRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleAnsibleDistributionHref string + + resp, httpRes, err := apiClient.DistributionsAnsibleApi.DistributionsAnsibleAnsibleRemoveRole(context.Background(), ansibleAnsibleDistributionHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test DistributionsAnsibleApiService DistributionsAnsibleAnsibleUpdate", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/release/test/api_distributions_apt_test.go b/release/test/api_distributions_apt_test.go index 7ba03f6c..a3588747 100644 --- a/release/test/api_distributions_apt_test.go +++ b/release/test/api_distributions_apt_test.go @@ -7,7 +7,7 @@ Testing DistributionsAptApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_DistributionsAptApiService(t *testing.T) { +func Test_zest_DistributionsAptApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_distributions_artifacts_test.go b/release/test/api_distributions_artifacts_test.go index a3074da8..753f2034 100644 --- a/release/test/api_distributions_artifacts_test.go +++ b/release/test/api_distributions_artifacts_test.go @@ -7,7 +7,7 @@ Testing DistributionsArtifactsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_DistributionsArtifactsApiService(t *testing.T) { +func Test_zest_DistributionsArtifactsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_distributions_container_test.go b/release/test/api_distributions_container_test.go index e2af356a..0bb5268c 100644 --- a/release/test/api_distributions_container_test.go +++ b/release/test/api_distributions_container_test.go @@ -7,7 +7,7 @@ Testing DistributionsContainerApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_DistributionsContainerApiService(t *testing.T) { +func Test_zest_DistributionsContainerApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_distributions_file_test.go b/release/test/api_distributions_file_test.go index f03bf9a1..79632082 100644 --- a/release/test/api_distributions_file_test.go +++ b/release/test/api_distributions_file_test.go @@ -7,7 +7,7 @@ Testing DistributionsFileApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_DistributionsFileApiService(t *testing.T) { +func Test_zest_DistributionsFileApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_distributions_maven_test.go b/release/test/api_distributions_maven_test.go index 1f2b72d8..ef80a1da 100644 --- a/release/test/api_distributions_maven_test.go +++ b/release/test/api_distributions_maven_test.go @@ -7,7 +7,7 @@ Testing DistributionsMavenApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_DistributionsMavenApiService(t *testing.T) { +func Test_zest_DistributionsMavenApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_distributions_ostree_test.go b/release/test/api_distributions_ostree_test.go index fff32eb7..28e1e822 100644 --- a/release/test/api_distributions_ostree_test.go +++ b/release/test/api_distributions_ostree_test.go @@ -7,7 +7,7 @@ Testing DistributionsOstreeApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_DistributionsOstreeApiService(t *testing.T) { +func Test_zest_DistributionsOstreeApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_distributions_pypi_test.go b/release/test/api_distributions_pypi_test.go index 22e50869..987e95da 100644 --- a/release/test/api_distributions_pypi_test.go +++ b/release/test/api_distributions_pypi_test.go @@ -7,7 +7,7 @@ Testing DistributionsPypiApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_DistributionsPypiApiService(t *testing.T) { +func Test_zest_DistributionsPypiApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_distributions_rpm_test.go b/release/test/api_distributions_rpm_test.go index 9253a397..41fcb845 100644 --- a/release/test/api_distributions_rpm_test.go +++ b/release/test/api_distributions_rpm_test.go @@ -7,7 +7,7 @@ Testing DistributionsRpmApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_DistributionsRpmApiService(t *testing.T) { +func Test_zest_DistributionsRpmApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_distributions_test.go b/release/test/api_distributions_test.go index e262f61a..3b33e7dd 100644 --- a/release/test/api_distributions_test.go +++ b/release/test/api_distributions_test.go @@ -7,7 +7,7 @@ Testing DistributionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_DistributionsApiService(t *testing.T) { +func Test_zest_DistributionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_docs_api_json_test.go b/release/test/api_docs_api_json_test.go index fc335cc5..ca08389f 100644 --- a/release/test/api_docs_api_json_test.go +++ b/release/test/api_docs_api_json_test.go @@ -7,7 +7,7 @@ Testing DocsApiJsonApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_DocsApiJsonApiService(t *testing.T) { +func Test_zest_DocsApiJsonApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_docs_api_yaml_test.go b/release/test/api_docs_api_yaml_test.go index 5f5dda2a..10c0d8df 100644 --- a/release/test/api_docs_api_yaml_test.go +++ b/release/test/api_docs_api_yaml_test.go @@ -7,7 +7,7 @@ Testing DocsApiYamlApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_DocsApiYamlApiService(t *testing.T) { +func Test_zest_DocsApiYamlApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_domains_test.go b/release/test/api_domains_test.go index cca8cdf8..f30c7e0c 100644 --- a/release/test/api_domains_test.go +++ b/release/test/api_domains_test.go @@ -7,7 +7,7 @@ Testing DomainsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_DomainsApiService(t *testing.T) { +func Test_zest_DomainsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_exporters_filesystem_exports_test.go b/release/test/api_exporters_filesystem_exports_test.go index 217530bc..a075c506 100644 --- a/release/test/api_exporters_filesystem_exports_test.go +++ b/release/test/api_exporters_filesystem_exports_test.go @@ -7,7 +7,7 @@ Testing ExportersFilesystemExportsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ExportersFilesystemExportsApiService(t *testing.T) { +func Test_zest_ExportersFilesystemExportsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_exporters_filesystem_test.go b/release/test/api_exporters_filesystem_test.go index 2a9f37a5..952bb11c 100644 --- a/release/test/api_exporters_filesystem_test.go +++ b/release/test/api_exporters_filesystem_test.go @@ -7,7 +7,7 @@ Testing ExportersFilesystemApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ExportersFilesystemApiService(t *testing.T) { +func Test_zest_ExportersFilesystemApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_exporters_pulp_exports_test.go b/release/test/api_exporters_pulp_exports_test.go index 14d490f2..4e5a9054 100644 --- a/release/test/api_exporters_pulp_exports_test.go +++ b/release/test/api_exporters_pulp_exports_test.go @@ -7,7 +7,7 @@ Testing ExportersPulpExportsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ExportersPulpExportsApiService(t *testing.T) { +func Test_zest_ExportersPulpExportsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_exporters_pulp_test.go b/release/test/api_exporters_pulp_test.go index 5950a7fd..875aa32e 100644 --- a/release/test/api_exporters_pulp_test.go +++ b/release/test/api_exporters_pulp_test.go @@ -7,7 +7,7 @@ Testing ExportersPulpApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ExportersPulpApiService(t *testing.T) { +func Test_zest_ExportersPulpApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_galaxy_detail_test.go b/release/test/api_galaxy_detail_test.go index 45a8e0f7..39d28097 100644 --- a/release/test/api_galaxy_detail_test.go +++ b/release/test/api_galaxy_detail_test.go @@ -7,7 +7,7 @@ Testing GalaxyDetailApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_GalaxyDetailApiService(t *testing.T) { +func Test_zest_GalaxyDetailApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_groups_roles_test.go b/release/test/api_groups_roles_test.go index ce560dea..485e4979 100644 --- a/release/test/api_groups_roles_test.go +++ b/release/test/api_groups_roles_test.go @@ -7,7 +7,7 @@ Testing GroupsRolesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_GroupsRolesApiService(t *testing.T) { +func Test_zest_GroupsRolesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_groups_test.go b/release/test/api_groups_test.go index 3f3f35a6..de47b109 100644 --- a/release/test/api_groups_test.go +++ b/release/test/api_groups_test.go @@ -7,7 +7,7 @@ Testing GroupsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_GroupsApiService(t *testing.T) { +func Test_zest_GroupsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_groups_users_test.go b/release/test/api_groups_users_test.go index 4ef3e468..3afd15d5 100644 --- a/release/test/api_groups_users_test.go +++ b/release/test/api_groups_users_test.go @@ -7,7 +7,7 @@ Testing GroupsUsersApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_GroupsUsersApiService(t *testing.T) { +func Test_zest_GroupsUsersApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_importers_pulp_import_check_test.go b/release/test/api_importers_pulp_import_check_test.go index f6ed407a..15aca059 100644 --- a/release/test/api_importers_pulp_import_check_test.go +++ b/release/test/api_importers_pulp_import_check_test.go @@ -7,7 +7,7 @@ Testing ImportersPulpImportCheckApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ImportersPulpImportCheckApiService(t *testing.T) { +func Test_zest_ImportersPulpImportCheckApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_importers_pulp_imports_test.go b/release/test/api_importers_pulp_imports_test.go index 4b7c93fb..de83ad56 100644 --- a/release/test/api_importers_pulp_imports_test.go +++ b/release/test/api_importers_pulp_imports_test.go @@ -7,7 +7,7 @@ Testing ImportersPulpImportsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ImportersPulpImportsApiService(t *testing.T) { +func Test_zest_ImportersPulpImportsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_importers_pulp_test.go b/release/test/api_importers_pulp_test.go index f0dff049..43f9f016 100644 --- a/release/test/api_importers_pulp_test.go +++ b/release/test/api_importers_pulp_test.go @@ -7,7 +7,7 @@ Testing ImportersPulpApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_ImportersPulpApiService(t *testing.T) { +func Test_zest_ImportersPulpApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_orphans_cleanup_test.go b/release/test/api_orphans_cleanup_test.go index 43844bc3..33f72119 100644 --- a/release/test/api_orphans_cleanup_test.go +++ b/release/test/api_orphans_cleanup_test.go @@ -7,7 +7,7 @@ Testing OrphansCleanupApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_OrphansCleanupApiService(t *testing.T) { +func Test_zest_OrphansCleanupApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_orphans_test.go b/release/test/api_orphans_test.go index 4ac6c21e..2eb4b71b 100644 --- a/release/test/api_orphans_test.go +++ b/release/test/api_orphans_test.go @@ -7,7 +7,7 @@ Testing OrphansApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_OrphansApiService(t *testing.T) { +func Test_zest_OrphansApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_publications_apt_test.go b/release/test/api_publications_apt_test.go index c9b002f4..0d7f42a4 100644 --- a/release/test/api_publications_apt_test.go +++ b/release/test/api_publications_apt_test.go @@ -7,7 +7,7 @@ Testing PublicationsAptApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PublicationsAptApiService(t *testing.T) { +func Test_zest_PublicationsAptApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_publications_file_test.go b/release/test/api_publications_file_test.go index 9c664b6a..c01c4fce 100644 --- a/release/test/api_publications_file_test.go +++ b/release/test/api_publications_file_test.go @@ -7,7 +7,7 @@ Testing PublicationsFileApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PublicationsFileApiService(t *testing.T) { +func Test_zest_PublicationsFileApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_publications_pypi_test.go b/release/test/api_publications_pypi_test.go index 32531d19..9917e508 100644 --- a/release/test/api_publications_pypi_test.go +++ b/release/test/api_publications_pypi_test.go @@ -7,7 +7,7 @@ Testing PublicationsPypiApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PublicationsPypiApiService(t *testing.T) { +func Test_zest_PublicationsPypiApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_publications_rpm_test.go b/release/test/api_publications_rpm_test.go index 1883917d..693632f9 100644 --- a/release/test/api_publications_rpm_test.go +++ b/release/test/api_publications_rpm_test.go @@ -7,7 +7,7 @@ Testing PublicationsRpmApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PublicationsRpmApiService(t *testing.T) { +func Test_zest_PublicationsRpmApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_publications_test.go b/release/test/api_publications_test.go index e3433c76..a41002e6 100644 --- a/release/test/api_publications_test.go +++ b/release/test/api_publications_test.go @@ -7,7 +7,7 @@ Testing PublicationsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PublicationsApiService(t *testing.T) { +func Test_zest_PublicationsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_publications_verbatim_test.go b/release/test/api_publications_verbatim_test.go index 368322e2..a7ca2945 100644 --- a/release/test/api_publications_verbatim_test.go +++ b/release/test/api_publications_verbatim_test.go @@ -7,7 +7,7 @@ Testing PublicationsVerbatimApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PublicationsVerbatimApiService(t *testing.T) { +func Test_zest_PublicationsVerbatimApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_test.go b/release/test/api_pulp_ansible_api_test.go index 7574abed..37412197 100644 --- a/release/test/api_pulp_ansible_api_test.go +++ b/release/test/api_pulp_ansible_api_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_v2_collections_versions_test.go b/release/test/api_pulp_ansible_api_v2_collections_versions_test.go index b619993f..b5bf4034 100644 --- a/release/test/api_pulp_ansible_api_v2_collections_versions_test.go +++ b/release/test/api_pulp_ansible_api_v2_collections_versions_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV2CollectionsVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV2CollectionsVersionsApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV2CollectionsVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_v3_artifacts_collections_test.go b/release/test/api_pulp_ansible_api_v3_artifacts_collections_test.go index a601876d..10018ece 100644 --- a/release/test/api_pulp_ansible_api_v3_artifacts_collections_test.go +++ b/release/test/api_pulp_ansible_api_v3_artifacts_collections_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV3ArtifactsCollectionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV3ArtifactsCollectionsApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV3ArtifactsCollectionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_v3_collection_versions_all_test.go b/release/test/api_pulp_ansible_api_v3_collection_versions_all_test.go index 96cc08b7..a78de777 100644 --- a/release/test/api_pulp_ansible_api_v3_collection_versions_all_test.go +++ b/release/test/api_pulp_ansible_api_v3_collection_versions_all_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV3CollectionVersionsAllApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV3CollectionVersionsAllApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV3CollectionVersionsAllApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_v3_collections_all_test.go b/release/test/api_pulp_ansible_api_v3_collections_all_test.go index ce6b03e6..347c64a4 100644 --- a/release/test/api_pulp_ansible_api_v3_collections_all_test.go +++ b/release/test/api_pulp_ansible_api_v3_collections_all_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV3CollectionsAllApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV3CollectionsAllApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV3CollectionsAllApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_v3_collections_test.go b/release/test/api_pulp_ansible_api_v3_collections_test.go index e658307c..85d3e7df 100644 --- a/release/test/api_pulp_ansible_api_v3_collections_test.go +++ b/release/test/api_pulp_ansible_api_v3_collections_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV3CollectionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV3CollectionsApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV3CollectionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_v3_collections_versions_docs_blob_test.go b/release/test/api_pulp_ansible_api_v3_collections_versions_docs_blob_test.go index 935857c4..c5b94e20 100644 --- a/release/test/api_pulp_ansible_api_v3_collections_versions_docs_blob_test.go +++ b/release/test/api_pulp_ansible_api_v3_collections_versions_docs_blob_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV3CollectionsVersionsDocsBlobApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV3CollectionsVersionsDocsBlobApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV3CollectionsVersionsDocsBlobApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_v3_collections_versions_test.go b/release/test/api_pulp_ansible_api_v3_collections_versions_test.go index c172c818..c4a8eaea 100644 --- a/release/test/api_pulp_ansible_api_v3_collections_versions_test.go +++ b/release/test/api_pulp_ansible_api_v3_collections_versions_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV3CollectionsVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV3CollectionsVersionsApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV3CollectionsVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_v3_namespaces_test.go b/release/test/api_pulp_ansible_api_v3_namespaces_test.go new file mode 100644 index 00000000..a1a91ae6 --- /dev/null +++ b/release/test/api_pulp_ansible_api_v3_namespaces_test.go @@ -0,0 +1,54 @@ +/* +Pulp 3 API + +Testing PulpAnsibleApiV3NamespacesApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package zest + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/content-services/zest/release/v3" +) + +func Test_zest_PulpAnsibleApiV3NamespacesApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test PulpAnsibleApiV3NamespacesApiService PulpAnsibleGalaxyApiV3NamespacesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var path string + + resp, httpRes, err := apiClient.PulpAnsibleApiV3NamespacesApi.PulpAnsibleGalaxyApiV3NamespacesList(context.Background(), path).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PulpAnsibleApiV3NamespacesApiService PulpAnsibleGalaxyApiV3NamespacesRead", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var name string + var path string + + resp, httpRes, err := apiClient.PulpAnsibleApiV3NamespacesApi.PulpAnsibleGalaxyApiV3NamespacesRead(context.Background(), name, path).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/release/test/api_pulp_ansible_api_v3_plugin_ansible_client_configuration_test.go b/release/test/api_pulp_ansible_api_v3_plugin_ansible_client_configuration_test.go index a71d1241..ca3a2d71 100644 --- a/release/test/api_pulp_ansible_api_v3_plugin_ansible_client_configuration_test.go +++ b/release/test/api_pulp_ansible_api_v3_plugin_ansible_client_configuration_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,18 +17,18 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGet", func(t *testing.T) { + t.Run("Test PulpAnsibleApiV3PluginAnsibleClientConfigurationApiService PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationRead", func(t *testing.T) { t.Skip("skip test") // remove to run test var path string - resp, httpRes, err := apiClient.PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationGet(context.Background(), path).Execute() + resp, httpRes, err := apiClient.PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyApiV3PluginAnsibleClientConfigurationRead(context.Background(), path).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_test.go b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_test.go index 255bdaf5..7ebca14a 100644 --- a/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_test.go +++ b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_test.go b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_test.go index c6091280..6c1718d4 100644 --- a/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_test.go +++ b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_test.go b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_test.go index 04d6dd3b..bf3d092e 100644 --- a/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_test.go +++ b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_test.go b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_test.go index b4128ef8..b3c5f373 100644 --- a/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_test.go +++ b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_test.go b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_test.go index 746bc371..19681adf 100644 --- a/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_test.go +++ b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApiS // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_test.go b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_test.go index 5dc5069f..5e4d9959 100644 --- a/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_test.go +++ b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_test.go b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_test.go index b00cf500..de999186 100644 --- a/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_test.go +++ b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_collections_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV3PluginAnsibleContentCollectionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV3PluginAnsibleContentCollectionsApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV3PluginAnsibleContentCollectionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_namespaces_test.go b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_namespaces_test.go new file mode 100644 index 00000000..8232f142 --- /dev/null +++ b/release/test/api_pulp_ansible_api_v3_plugin_ansible_content_namespaces_test.go @@ -0,0 +1,103 @@ +/* +Pulp 3 API + +Testing PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package zest + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/content-services/zest/release/v3" +) + +func Test_zest_PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var distroBasePath string + var path string + + resp, httpRes, err := apiClient.PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesCreate(context.Background(), distroBasePath, path).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var distroBasePath string + var name string + var path string + + resp, httpRes, err := apiClient.PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesDelete(context.Background(), distroBasePath, name, path).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var distroBasePath string + var path string + + resp, httpRes, err := apiClient.PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesList(context.Background(), distroBasePath, path).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var distroBasePath string + var name string + var path string + + resp, httpRes, err := apiClient.PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesPartialUpdate(context.Background(), distroBasePath, name, path).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PulpAnsibleApiV3PluginAnsibleContentNamespacesApiService PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesRead", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var distroBasePath string + var name string + var path string + + resp, httpRes, err := apiClient.PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyApiV3PluginAnsibleContentNamespacesRead(context.Background(), distroBasePath, name, path).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/release/test/api_pulp_ansible_api_v3_plugin_ansible_search_collection_versions_test.go b/release/test/api_pulp_ansible_api_v3_plugin_ansible_search_collection_versions_test.go new file mode 100644 index 00000000..26114a70 --- /dev/null +++ b/release/test/api_pulp_ansible_api_v3_plugin_ansible_search_collection_versions_test.go @@ -0,0 +1,53 @@ +/* +Pulp 3 API + +Testing PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package zest + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/content-services/zest/release/v3" +) + +func Test_zest_PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var path string + + resp, httpRes, err := apiClient.PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsList(context.Background(), path).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApiService PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuild", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var path string + + resp, httpRes, err := apiClient.PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyApiV3PluginAnsibleSearchCollectionVersionsRebuild(context.Background(), path).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/release/test/api_pulp_ansible_api_v3_test.go b/release/test/api_pulp_ansible_api_v3_test.go index f647e2fe..36885192 100644 --- a/release/test/api_pulp_ansible_api_v3_test.go +++ b/release/test/api_pulp_ansible_api_v3_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleApiV3ApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleApiV3ApiService(t *testing.T) { +func Test_zest_PulpAnsibleApiV3ApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_artifacts_collections_v3_test.go b/release/test/api_pulp_ansible_artifacts_collections_v3_test.go index 3bd13d44..7fac182f 100644 --- a/release/test/api_pulp_ansible_artifacts_collections_v3_test.go +++ b/release/test/api_pulp_ansible_artifacts_collections_v3_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleArtifactsCollectionsV3ApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleArtifactsCollectionsV3ApiService(t *testing.T) { +func Test_zest_PulpAnsibleArtifactsCollectionsV3ApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_default_api_test.go b/release/test/api_pulp_ansible_default_api_test.go index 771e5cfd..5c8db5f6 100644 --- a/release/test/api_pulp_ansible_default_api_test.go +++ b/release/test/api_pulp_ansible_default_api_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_default_api_v3_artifacts_collections_test.go b/release/test/api_pulp_ansible_default_api_v3_artifacts_collections_test.go index 284c1713..95a6c889 100644 --- a/release/test/api_pulp_ansible_default_api_v3_artifacts_collections_test.go +++ b/release/test/api_pulp_ansible_default_api_v3_artifacts_collections_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiV3ArtifactsCollectionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiV3ArtifactsCollectionsApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiV3ArtifactsCollectionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_default_api_v3_collection_versions_all_test.go b/release/test/api_pulp_ansible_default_api_v3_collection_versions_all_test.go index be0e8268..a5ad8edc 100644 --- a/release/test/api_pulp_ansible_default_api_v3_collection_versions_all_test.go +++ b/release/test/api_pulp_ansible_default_api_v3_collection_versions_all_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiV3CollectionVersionsAllApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiV3CollectionVersionsAllApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiV3CollectionVersionsAllApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_default_api_v3_collections_all_test.go b/release/test/api_pulp_ansible_default_api_v3_collections_all_test.go index 7c268103..a0bdd795 100644 --- a/release/test/api_pulp_ansible_default_api_v3_collections_all_test.go +++ b/release/test/api_pulp_ansible_default_api_v3_collections_all_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiV3CollectionsAllApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiV3CollectionsAllApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiV3CollectionsAllApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_default_api_v3_collections_test.go b/release/test/api_pulp_ansible_default_api_v3_collections_test.go index e388828d..ca6dd28b 100644 --- a/release/test/api_pulp_ansible_default_api_v3_collections_test.go +++ b/release/test/api_pulp_ansible_default_api_v3_collections_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiV3CollectionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiV3CollectionsApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiV3CollectionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_default_api_v3_collections_versions_docs_blob_test.go b/release/test/api_pulp_ansible_default_api_v3_collections_versions_docs_blob_test.go index 407bf722..a71ae6a0 100644 --- a/release/test/api_pulp_ansible_default_api_v3_collections_versions_docs_blob_test.go +++ b/release/test/api_pulp_ansible_default_api_v3_collections_versions_docs_blob_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_default_api_v3_collections_versions_test.go b/release/test/api_pulp_ansible_default_api_v3_collections_versions_test.go index f983b83b..eb44532c 100644 --- a/release/test/api_pulp_ansible_default_api_v3_collections_versions_test.go +++ b/release/test/api_pulp_ansible_default_api_v3_collections_versions_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiV3CollectionsVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiV3CollectionsVersionsApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiV3CollectionsVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_default_api_v3_namespaces_test.go b/release/test/api_pulp_ansible_default_api_v3_namespaces_test.go new file mode 100644 index 00000000..86e75429 --- /dev/null +++ b/release/test/api_pulp_ansible_default_api_v3_namespaces_test.go @@ -0,0 +1,51 @@ +/* +Pulp 3 API + +Testing PulpAnsibleDefaultApiV3NamespacesApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package zest + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/content-services/zest/release/v3" +) + +func Test_zest_PulpAnsibleDefaultApiV3NamespacesApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test PulpAnsibleDefaultApiV3NamespacesApiService PulpAnsibleGalaxyDefaultApiV3NamespacesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.PulpAnsibleDefaultApiV3NamespacesApi.PulpAnsibleGalaxyDefaultApiV3NamespacesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PulpAnsibleDefaultApiV3NamespacesApiService PulpAnsibleGalaxyDefaultApiV3NamespacesRead", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var name string + + resp, httpRes, err := apiClient.PulpAnsibleDefaultApiV3NamespacesApi.PulpAnsibleGalaxyDefaultApiV3NamespacesRead(context.Background(), name).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_client_configuration_test.go b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_client_configuration_test.go index 0550c52a..2553268e 100644 --- a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_client_configuration_test.go +++ b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_client_configuration_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,16 +17,16 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGet", func(t *testing.T) { + t.Run("Test PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApiService PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationRead", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationGet(context.Background()).Execute() + resp, httpRes, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleClientConfigurationRead(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_test.go b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_test.go index 517e534f..ac6862e1 100644 --- a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_test.go +++ b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApiS // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_test.go b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_test.go index e47339fa..1171b29f 100644 --- a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_test.go +++ b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApiServ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_test.go b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_test.go index 10c9c413..80c69b2e 100644 --- a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_test.go +++ b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApiServic // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_test.go b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_test.go index af92c947..1ba644ec 100644 --- a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_test.go +++ b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_test.go b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_test.go index e17ece16..05ef1902 100644 --- a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_test.go +++ b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsB // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_test.go b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_test.go index 845e4502..2ed2dd6c 100644 --- a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_test.go +++ b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApiSe // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_test.go b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_test.go index dc18e30a..06f40901 100644 --- a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_test.go +++ b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_collections_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_test.go b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_test.go new file mode 100644 index 00000000..0d77850d --- /dev/null +++ b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_test.go @@ -0,0 +1,98 @@ +/* +Pulp 3 API + +Testing PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package zest + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/content-services/zest/release/v3" +) + +func Test_zest_PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var distroBasePath string + + resp, httpRes, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesCreate(context.Background(), distroBasePath).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var distroBasePath string + var name string + + resp, httpRes, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesDelete(context.Background(), distroBasePath, name).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var distroBasePath string + + resp, httpRes, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesList(context.Background(), distroBasePath).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var distroBasePath string + var name string + + resp, httpRes, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesPartialUpdate(context.Background(), distroBasePath, name).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApiService PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesRead", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var distroBasePath string + var name string + + resp, httpRes, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleContentNamespacesRead(context.Background(), distroBasePath, name).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_test.go b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_test.go new file mode 100644 index 00000000..6ac9299a --- /dev/null +++ b/release/test/api_pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_test.go @@ -0,0 +1,49 @@ +/* +Pulp 3 API + +Testing PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package zest + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/content-services/zest/release/v3" +) + +func Test_zest_PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApiService PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuild", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.PulpAnsibleGalaxyDefaultApiV3PluginAnsibleSearchCollectionVersionsRebuild(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/release/test/api_pulp_ansible_default_api_v3_test.go b/release/test/api_pulp_ansible_default_api_v3_test.go index eb1d115f..e1e7529d 100644 --- a/release/test/api_pulp_ansible_default_api_v3_test.go +++ b/release/test/api_pulp_ansible_default_api_v3_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleDefaultApiV3ApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleDefaultApiV3ApiService(t *testing.T) { +func Test_zest_PulpAnsibleDefaultApiV3ApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_ansible_tags_test.go b/release/test/api_pulp_ansible_tags_test.go index e2be9e5f..a4363b18 100644 --- a/release/test/api_pulp_ansible_tags_test.go +++ b/release/test/api_pulp_ansible_tags_test.go @@ -7,7 +7,7 @@ Testing PulpAnsibleTagsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpAnsibleTagsApiService(t *testing.T) { +func Test_zest_PulpAnsibleTagsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_container_namespaces_test.go b/release/test/api_pulp_container_namespaces_test.go index 7a93564c..0308a313 100644 --- a/release/test/api_pulp_container_namespaces_test.go +++ b/release/test/api_pulp_container_namespaces_test.go @@ -7,7 +7,7 @@ Testing PulpContainerNamespacesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpContainerNamespacesApiService(t *testing.T) { +func Test_zest_PulpContainerNamespacesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pulp_maven_test.go b/release/test/api_pulp_maven_test.go index 783e6aa3..7c816931 100644 --- a/release/test/api_pulp_maven_test.go +++ b/release/test/api_pulp_maven_test.go @@ -7,7 +7,7 @@ Testing PulpMavenApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PulpMavenApiService(t *testing.T) { +func Test_zest_PulpMavenApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pypi_legacy_test.go b/release/test/api_pypi_legacy_test.go index 8843bba7..2a63c1fe 100644 --- a/release/test/api_pypi_legacy_test.go +++ b/release/test/api_pypi_legacy_test.go @@ -7,7 +7,7 @@ Testing PypiLegacyApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PypiLegacyApiService(t *testing.T) { +func Test_zest_PypiLegacyApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pypi_metadata_test.go b/release/test/api_pypi_metadata_test.go index 2b48a15e..8f65630e 100644 --- a/release/test/api_pypi_metadata_test.go +++ b/release/test/api_pypi_metadata_test.go @@ -7,7 +7,7 @@ Testing PypiMetadataApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PypiMetadataApiService(t *testing.T) { +func Test_zest_PypiMetadataApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pypi_simple_test.go b/release/test/api_pypi_simple_test.go index 356c8228..8d744bd0 100644 --- a/release/test/api_pypi_simple_test.go +++ b/release/test/api_pypi_simple_test.go @@ -7,7 +7,7 @@ Testing PypiSimpleApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PypiSimpleApiService(t *testing.T) { +func Test_zest_PypiSimpleApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_pypi_test.go b/release/test/api_pypi_test.go index 8b932f70..0e6d4b36 100644 --- a/release/test/api_pypi_test.go +++ b/release/test/api_pypi_test.go @@ -7,7 +7,7 @@ Testing PypiApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_PypiApiService(t *testing.T) { +func Test_zest_PypiApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_remotes_apt_test.go b/release/test/api_remotes_apt_test.go index 31b5bc42..aa39cd0d 100644 --- a/release/test/api_remotes_apt_test.go +++ b/release/test/api_remotes_apt_test.go @@ -7,7 +7,7 @@ Testing RemotesAptApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RemotesAptApiService(t *testing.T) { +func Test_zest_RemotesAptApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_remotes_collection_test.go b/release/test/api_remotes_collection_test.go index 4cbe7cb2..8352a3cc 100644 --- a/release/test/api_remotes_collection_test.go +++ b/release/test/api_remotes_collection_test.go @@ -7,7 +7,7 @@ Testing RemotesCollectionApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,11 +17,25 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RemotesCollectionApiService(t *testing.T) { +func Test_zest_RemotesCollectionApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) + t.Run("Test RemotesCollectionApiService RemotesAnsibleCollectionAddRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleCollectionRemoteHref string + + resp, httpRes, err := apiClient.RemotesCollectionApi.RemotesAnsibleCollectionAddRole(context.Background(), ansibleCollectionRemoteHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test RemotesCollectionApiService RemotesAnsibleCollectionCreate", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -60,6 +74,34 @@ func Test_zest/release/v3_RemotesCollectionApiService(t *testing.T) { }) + t.Run("Test RemotesCollectionApiService RemotesAnsibleCollectionListRoles", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleCollectionRemoteHref string + + resp, httpRes, err := apiClient.RemotesCollectionApi.RemotesAnsibleCollectionListRoles(context.Background(), ansibleCollectionRemoteHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RemotesCollectionApiService RemotesAnsibleCollectionMyPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleCollectionRemoteHref string + + resp, httpRes, err := apiClient.RemotesCollectionApi.RemotesAnsibleCollectionMyPermissions(context.Background(), ansibleCollectionRemoteHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test RemotesCollectionApiService RemotesAnsibleCollectionPartialUpdate", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -88,6 +130,20 @@ func Test_zest/release/v3_RemotesCollectionApiService(t *testing.T) { }) + t.Run("Test RemotesCollectionApiService RemotesAnsibleCollectionRemoveRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleCollectionRemoteHref string + + resp, httpRes, err := apiClient.RemotesCollectionApi.RemotesAnsibleCollectionRemoveRole(context.Background(), ansibleCollectionRemoteHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test RemotesCollectionApiService RemotesAnsibleCollectionUpdate", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/release/test/api_remotes_container_test.go b/release/test/api_remotes_container_test.go index d8120b82..36472584 100644 --- a/release/test/api_remotes_container_test.go +++ b/release/test/api_remotes_container_test.go @@ -7,7 +7,7 @@ Testing RemotesContainerApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RemotesContainerApiService(t *testing.T) { +func Test_zest_RemotesContainerApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_remotes_file_test.go b/release/test/api_remotes_file_test.go index 204e0694..df4af393 100644 --- a/release/test/api_remotes_file_test.go +++ b/release/test/api_remotes_file_test.go @@ -7,7 +7,7 @@ Testing RemotesFileApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RemotesFileApiService(t *testing.T) { +func Test_zest_RemotesFileApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_remotes_git_test.go b/release/test/api_remotes_git_test.go index 29ba69dd..ba9dc2a5 100644 --- a/release/test/api_remotes_git_test.go +++ b/release/test/api_remotes_git_test.go @@ -7,7 +7,7 @@ Testing RemotesGitApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,11 +17,25 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RemotesGitApiService(t *testing.T) { +func Test_zest_RemotesGitApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) + t.Run("Test RemotesGitApiService RemotesAnsibleGitAddRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleGitRemoteHref string + + resp, httpRes, err := apiClient.RemotesGitApi.RemotesAnsibleGitAddRole(context.Background(), ansibleGitRemoteHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test RemotesGitApiService RemotesAnsibleGitCreate", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -60,6 +74,34 @@ func Test_zest/release/v3_RemotesGitApiService(t *testing.T) { }) + t.Run("Test RemotesGitApiService RemotesAnsibleGitListRoles", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleGitRemoteHref string + + resp, httpRes, err := apiClient.RemotesGitApi.RemotesAnsibleGitListRoles(context.Background(), ansibleGitRemoteHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RemotesGitApiService RemotesAnsibleGitMyPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleGitRemoteHref string + + resp, httpRes, err := apiClient.RemotesGitApi.RemotesAnsibleGitMyPermissions(context.Background(), ansibleGitRemoteHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test RemotesGitApiService RemotesAnsibleGitPartialUpdate", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -88,6 +130,20 @@ func Test_zest/release/v3_RemotesGitApiService(t *testing.T) { }) + t.Run("Test RemotesGitApiService RemotesAnsibleGitRemoveRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleGitRemoteHref string + + resp, httpRes, err := apiClient.RemotesGitApi.RemotesAnsibleGitRemoveRole(context.Background(), ansibleGitRemoteHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test RemotesGitApiService RemotesAnsibleGitUpdate", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/release/test/api_remotes_maven_test.go b/release/test/api_remotes_maven_test.go index b2a30e41..97a6e7f5 100644 --- a/release/test/api_remotes_maven_test.go +++ b/release/test/api_remotes_maven_test.go @@ -7,7 +7,7 @@ Testing RemotesMavenApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RemotesMavenApiService(t *testing.T) { +func Test_zest_RemotesMavenApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_remotes_ostree_test.go b/release/test/api_remotes_ostree_test.go index 256fe241..355719f3 100644 --- a/release/test/api_remotes_ostree_test.go +++ b/release/test/api_remotes_ostree_test.go @@ -7,7 +7,7 @@ Testing RemotesOstreeApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RemotesOstreeApiService(t *testing.T) { +func Test_zest_RemotesOstreeApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_remotes_python_test.go b/release/test/api_remotes_python_test.go index 8eeffb96..757586b0 100644 --- a/release/test/api_remotes_python_test.go +++ b/release/test/api_remotes_python_test.go @@ -7,7 +7,7 @@ Testing RemotesPythonApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RemotesPythonApiService(t *testing.T) { +func Test_zest_RemotesPythonApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_remotes_role_test.go b/release/test/api_remotes_role_test.go index f87e7c7d..f8090ac9 100644 --- a/release/test/api_remotes_role_test.go +++ b/release/test/api_remotes_role_test.go @@ -7,7 +7,7 @@ Testing RemotesRoleApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,11 +17,25 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RemotesRoleApiService(t *testing.T) { +func Test_zest_RemotesRoleApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) + t.Run("Test RemotesRoleApiService RemotesAnsibleRoleAddRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleRoleRemoteHref string + + resp, httpRes, err := apiClient.RemotesRoleApi.RemotesAnsibleRoleAddRole(context.Background(), ansibleRoleRemoteHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test RemotesRoleApiService RemotesAnsibleRoleCreate", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -60,6 +74,34 @@ func Test_zest/release/v3_RemotesRoleApiService(t *testing.T) { }) + t.Run("Test RemotesRoleApiService RemotesAnsibleRoleListRoles", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleRoleRemoteHref string + + resp, httpRes, err := apiClient.RemotesRoleApi.RemotesAnsibleRoleListRoles(context.Background(), ansibleRoleRemoteHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RemotesRoleApiService RemotesAnsibleRoleMyPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleRoleRemoteHref string + + resp, httpRes, err := apiClient.RemotesRoleApi.RemotesAnsibleRoleMyPermissions(context.Background(), ansibleRoleRemoteHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test RemotesRoleApiService RemotesAnsibleRolePartialUpdate", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -88,6 +130,20 @@ func Test_zest/release/v3_RemotesRoleApiService(t *testing.T) { }) + t.Run("Test RemotesRoleApiService RemotesAnsibleRoleRemoveRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleRoleRemoteHref string + + resp, httpRes, err := apiClient.RemotesRoleApi.RemotesAnsibleRoleRemoveRole(context.Background(), ansibleRoleRemoteHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test RemotesRoleApiService RemotesAnsibleRoleUpdate", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/release/test/api_remotes_rpm_test.go b/release/test/api_remotes_rpm_test.go index 83bb7c21..3248725f 100644 --- a/release/test/api_remotes_rpm_test.go +++ b/release/test/api_remotes_rpm_test.go @@ -7,7 +7,7 @@ Testing RemotesRpmApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RemotesRpmApiService(t *testing.T) { +func Test_zest_RemotesRpmApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_remotes_test.go b/release/test/api_remotes_test.go index 97f9c6db..6dfa393b 100644 --- a/release/test/api_remotes_test.go +++ b/release/test/api_remotes_test.go @@ -7,7 +7,7 @@ Testing RemotesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RemotesApiService(t *testing.T) { +func Test_zest_RemotesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_remotes_uln_test.go b/release/test/api_remotes_uln_test.go index 324f01ea..2e7c8314 100644 --- a/release/test/api_remotes_uln_test.go +++ b/release/test/api_remotes_uln_test.go @@ -7,7 +7,7 @@ Testing RemotesUlnApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RemotesUlnApiService(t *testing.T) { +func Test_zest_RemotesUlnApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repair_test.go b/release/test/api_repair_test.go index a6e4e65e..35f001b0 100644 --- a/release/test/api_repair_test.go +++ b/release/test/api_repair_test.go @@ -7,7 +7,7 @@ Testing RepairApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepairApiService(t *testing.T) { +func Test_zest_RepairApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_ansible_test.go b/release/test/api_repositories_ansible_test.go index 5e38b61a..b960d6e2 100644 --- a/release/test/api_repositories_ansible_test.go +++ b/release/test/api_repositories_ansible_test.go @@ -7,7 +7,7 @@ Testing RepositoriesAnsibleApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,11 +17,39 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesAnsibleApiService(t *testing.T) { +func Test_zest_RepositoriesAnsibleApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) + t.Run("Test RepositoriesAnsibleApiService RepositoriesAnsibleAnsibleAddRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleAnsibleRepositoryHref string + + resp, httpRes, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleAddRole(context.Background(), ansibleAnsibleRepositoryHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RepositoriesAnsibleApiService RepositoriesAnsibleAnsibleCopyCollectionVersion", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleAnsibleRepositoryHref string + + resp, httpRes, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleCopyCollectionVersion(context.Background(), ansibleAnsibleRepositoryHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test RepositoriesAnsibleApiService RepositoriesAnsibleAnsibleCreate", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -60,6 +88,34 @@ func Test_zest/release/v3_RepositoriesAnsibleApiService(t *testing.T) { }) + t.Run("Test RepositoriesAnsibleApiService RepositoriesAnsibleAnsibleListRoles", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleAnsibleRepositoryHref string + + resp, httpRes, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleListRoles(context.Background(), ansibleAnsibleRepositoryHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RepositoriesAnsibleApiService RepositoriesAnsibleAnsibleMark", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleAnsibleRepositoryHref string + + resp, httpRes, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleMark(context.Background(), ansibleAnsibleRepositoryHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test RepositoriesAnsibleApiService RepositoriesAnsibleAnsibleModify", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -74,6 +130,34 @@ func Test_zest/release/v3_RepositoriesAnsibleApiService(t *testing.T) { }) + t.Run("Test RepositoriesAnsibleApiService RepositoriesAnsibleAnsibleMoveCollectionVersion", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleAnsibleRepositoryHref string + + resp, httpRes, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleMoveCollectionVersion(context.Background(), ansibleAnsibleRepositoryHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RepositoriesAnsibleApiService RepositoriesAnsibleAnsibleMyPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleAnsibleRepositoryHref string + + resp, httpRes, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleMyPermissions(context.Background(), ansibleAnsibleRepositoryHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test RepositoriesAnsibleApiService RepositoriesAnsibleAnsiblePartialUpdate", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -116,6 +200,20 @@ func Test_zest/release/v3_RepositoriesAnsibleApiService(t *testing.T) { }) + t.Run("Test RepositoriesAnsibleApiService RepositoriesAnsibleAnsibleRemoveRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleAnsibleRepositoryHref string + + resp, httpRes, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleRemoveRole(context.Background(), ansibleAnsibleRepositoryHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test RepositoriesAnsibleApiService RepositoriesAnsibleAnsibleSign", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -144,6 +242,20 @@ func Test_zest/release/v3_RepositoriesAnsibleApiService(t *testing.T) { }) + t.Run("Test RepositoriesAnsibleApiService RepositoriesAnsibleAnsibleUnmark", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ansibleAnsibleRepositoryHref string + + resp, httpRes, err := apiClient.RepositoriesAnsibleApi.RepositoriesAnsibleAnsibleUnmark(context.Background(), ansibleAnsibleRepositoryHref).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test RepositoriesAnsibleApiService RepositoriesAnsibleAnsibleUpdate", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/release/test/api_repositories_ansible_versions_test.go b/release/test/api_repositories_ansible_versions_test.go index d79cbb79..0725a4f8 100644 --- a/release/test/api_repositories_ansible_versions_test.go +++ b/release/test/api_repositories_ansible_versions_test.go @@ -7,7 +7,7 @@ Testing RepositoriesAnsibleVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesAnsibleVersionsApiService(t *testing.T) { +func Test_zest_RepositoriesAnsibleVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_apt_test.go b/release/test/api_repositories_apt_test.go index 0b76959e..f73bde78 100644 --- a/release/test/api_repositories_apt_test.go +++ b/release/test/api_repositories_apt_test.go @@ -7,7 +7,7 @@ Testing RepositoriesAptApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesAptApiService(t *testing.T) { +func Test_zest_RepositoriesAptApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_apt_versions_test.go b/release/test/api_repositories_apt_versions_test.go index e2cc70c1..d2e32f52 100644 --- a/release/test/api_repositories_apt_versions_test.go +++ b/release/test/api_repositories_apt_versions_test.go @@ -7,7 +7,7 @@ Testing RepositoriesAptVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesAptVersionsApiService(t *testing.T) { +func Test_zest_RepositoriesAptVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_container_push_test.go b/release/test/api_repositories_container_push_test.go index 1604b11b..06eeccb4 100644 --- a/release/test/api_repositories_container_push_test.go +++ b/release/test/api_repositories_container_push_test.go @@ -7,7 +7,7 @@ Testing RepositoriesContainerPushApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesContainerPushApiService(t *testing.T) { +func Test_zest_RepositoriesContainerPushApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_container_push_versions_test.go b/release/test/api_repositories_container_push_versions_test.go index 32010c0f..73ce60fd 100644 --- a/release/test/api_repositories_container_push_versions_test.go +++ b/release/test/api_repositories_container_push_versions_test.go @@ -7,7 +7,7 @@ Testing RepositoriesContainerPushVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesContainerPushVersionsApiService(t *testing.T) { +func Test_zest_RepositoriesContainerPushVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_container_test.go b/release/test/api_repositories_container_test.go index f9381a93..c0ec778c 100644 --- a/release/test/api_repositories_container_test.go +++ b/release/test/api_repositories_container_test.go @@ -7,7 +7,7 @@ Testing RepositoriesContainerApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesContainerApiService(t *testing.T) { +func Test_zest_RepositoriesContainerApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_container_versions_test.go b/release/test/api_repositories_container_versions_test.go index 250d5da4..67a778d4 100644 --- a/release/test/api_repositories_container_versions_test.go +++ b/release/test/api_repositories_container_versions_test.go @@ -7,7 +7,7 @@ Testing RepositoriesContainerVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesContainerVersionsApiService(t *testing.T) { +func Test_zest_RepositoriesContainerVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_file_test.go b/release/test/api_repositories_file_test.go index db66a872..50812642 100644 --- a/release/test/api_repositories_file_test.go +++ b/release/test/api_repositories_file_test.go @@ -7,7 +7,7 @@ Testing RepositoriesFileApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesFileApiService(t *testing.T) { +func Test_zest_RepositoriesFileApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_file_versions_test.go b/release/test/api_repositories_file_versions_test.go index 88006529..cf581d97 100644 --- a/release/test/api_repositories_file_versions_test.go +++ b/release/test/api_repositories_file_versions_test.go @@ -7,7 +7,7 @@ Testing RepositoriesFileVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesFileVersionsApiService(t *testing.T) { +func Test_zest_RepositoriesFileVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_maven_test.go b/release/test/api_repositories_maven_test.go index 1a1cea47..6350c36b 100644 --- a/release/test/api_repositories_maven_test.go +++ b/release/test/api_repositories_maven_test.go @@ -7,7 +7,7 @@ Testing RepositoriesMavenApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesMavenApiService(t *testing.T) { +func Test_zest_RepositoriesMavenApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_maven_versions_test.go b/release/test/api_repositories_maven_versions_test.go index c53a198f..70644a4c 100644 --- a/release/test/api_repositories_maven_versions_test.go +++ b/release/test/api_repositories_maven_versions_test.go @@ -7,7 +7,7 @@ Testing RepositoriesMavenVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesMavenVersionsApiService(t *testing.T) { +func Test_zest_RepositoriesMavenVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_ostree_test.go b/release/test/api_repositories_ostree_test.go index 1a4ec96c..2ec2c7ef 100644 --- a/release/test/api_repositories_ostree_test.go +++ b/release/test/api_repositories_ostree_test.go @@ -7,7 +7,7 @@ Testing RepositoriesOstreeApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesOstreeApiService(t *testing.T) { +func Test_zest_RepositoriesOstreeApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_ostree_versions_test.go b/release/test/api_repositories_ostree_versions_test.go index 4cd73870..dc5989e8 100644 --- a/release/test/api_repositories_ostree_versions_test.go +++ b/release/test/api_repositories_ostree_versions_test.go @@ -7,7 +7,7 @@ Testing RepositoriesOstreeVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesOstreeVersionsApiService(t *testing.T) { +func Test_zest_RepositoriesOstreeVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_python_test.go b/release/test/api_repositories_python_test.go index 284b3d0c..b0f1ae03 100644 --- a/release/test/api_repositories_python_test.go +++ b/release/test/api_repositories_python_test.go @@ -7,7 +7,7 @@ Testing RepositoriesPythonApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesPythonApiService(t *testing.T) { +func Test_zest_RepositoriesPythonApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_python_versions_test.go b/release/test/api_repositories_python_versions_test.go index 280c0c38..736481d7 100644 --- a/release/test/api_repositories_python_versions_test.go +++ b/release/test/api_repositories_python_versions_test.go @@ -7,7 +7,7 @@ Testing RepositoriesPythonVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesPythonVersionsApiService(t *testing.T) { +func Test_zest_RepositoriesPythonVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_reclaim_space_test.go b/release/test/api_repositories_reclaim_space_test.go index 6c2d32e8..fcc1d38e 100644 --- a/release/test/api_repositories_reclaim_space_test.go +++ b/release/test/api_repositories_reclaim_space_test.go @@ -7,7 +7,7 @@ Testing RepositoriesReclaimSpaceApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesReclaimSpaceApiService(t *testing.T) { +func Test_zest_RepositoriesReclaimSpaceApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_rpm_test.go b/release/test/api_repositories_rpm_test.go index 1a7a726b..a05d75d0 100644 --- a/release/test/api_repositories_rpm_test.go +++ b/release/test/api_repositories_rpm_test.go @@ -7,7 +7,7 @@ Testing RepositoriesRpmApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesRpmApiService(t *testing.T) { +func Test_zest_RepositoriesRpmApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_rpm_versions_test.go b/release/test/api_repositories_rpm_versions_test.go index f6499448..6fff6e35 100644 --- a/release/test/api_repositories_rpm_versions_test.go +++ b/release/test/api_repositories_rpm_versions_test.go @@ -7,7 +7,7 @@ Testing RepositoriesRpmVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesRpmVersionsApiService(t *testing.T) { +func Test_zest_RepositoriesRpmVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repositories_test.go b/release/test/api_repositories_test.go index a4414c98..7cb1ad25 100644 --- a/release/test/api_repositories_test.go +++ b/release/test/api_repositories_test.go @@ -7,7 +7,7 @@ Testing RepositoriesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoriesApiService(t *testing.T) { +func Test_zest_RepositoriesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_repository_versions_test.go b/release/test/api_repository_versions_test.go index 26575cc7..180d5352 100644 --- a/release/test/api_repository_versions_test.go +++ b/release/test/api_repository_versions_test.go @@ -7,7 +7,7 @@ Testing RepositoryVersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RepositoryVersionsApiService(t *testing.T) { +func Test_zest_RepositoryVersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_roles_test.go b/release/test/api_roles_test.go index d4d73238..2a7eb139 100644 --- a/release/test/api_roles_test.go +++ b/release/test/api_roles_test.go @@ -7,7 +7,7 @@ Testing RolesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RolesApiService(t *testing.T) { +func Test_zest_RolesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_rpm_comps_test.go b/release/test/api_rpm_comps_test.go index 011a2c16..2b6f79d8 100644 --- a/release/test/api_rpm_comps_test.go +++ b/release/test/api_rpm_comps_test.go @@ -7,7 +7,7 @@ Testing RpmCompsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RpmCompsApiService(t *testing.T) { +func Test_zest_RpmCompsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_rpm_copy_test.go b/release/test/api_rpm_copy_test.go index 636035c8..b14535a5 100644 --- a/release/test/api_rpm_copy_test.go +++ b/release/test/api_rpm_copy_test.go @@ -7,7 +7,7 @@ Testing RpmCopyApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_RpmCopyApiService(t *testing.T) { +func Test_zest_RpmCopyApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_signing_services_test.go b/release/test/api_signing_services_test.go index fc512513..73c28309 100644 --- a/release/test/api_signing_services_test.go +++ b/release/test/api_signing_services_test.go @@ -7,7 +7,7 @@ Testing SigningServicesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_SigningServicesApiService(t *testing.T) { +func Test_zest_SigningServicesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_status_test.go b/release/test/api_status_test.go index a29b64a0..580ab293 100644 --- a/release/test/api_status_test.go +++ b/release/test/api_status_test.go @@ -7,7 +7,7 @@ Testing StatusApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_StatusApiService(t *testing.T) { +func Test_zest_StatusApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_task_groups_test.go b/release/test/api_task_groups_test.go index 6e71758e..6575b54f 100644 --- a/release/test/api_task_groups_test.go +++ b/release/test/api_task_groups_test.go @@ -7,7 +7,7 @@ Testing TaskGroupsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_TaskGroupsApiService(t *testing.T) { +func Test_zest_TaskGroupsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_task_schedules_test.go b/release/test/api_task_schedules_test.go index fc5ca43f..a3d61820 100644 --- a/release/test/api_task_schedules_test.go +++ b/release/test/api_task_schedules_test.go @@ -7,7 +7,7 @@ Testing TaskSchedulesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_TaskSchedulesApiService(t *testing.T) { +func Test_zest_TaskSchedulesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_tasks_test.go b/release/test/api_tasks_test.go index 1674890f..bc89591a 100644 --- a/release/test/api_tasks_test.go +++ b/release/test/api_tasks_test.go @@ -7,7 +7,7 @@ Testing TasksApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_TasksApiService(t *testing.T) { +func Test_zest_TasksApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_token_test.go b/release/test/api_token_test.go index 2494e929..3498fe12 100644 --- a/release/test/api_token_test.go +++ b/release/test/api_token_test.go @@ -7,7 +7,7 @@ Testing TokenApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_TokenApiService(t *testing.T) { +func Test_zest_TokenApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_uploads_test.go b/release/test/api_uploads_test.go index 2b8311d8..feb4754b 100644 --- a/release/test/api_uploads_test.go +++ b/release/test/api_uploads_test.go @@ -7,7 +7,7 @@ Testing UploadsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_UploadsApiService(t *testing.T) { +func Test_zest_UploadsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_upstream_pulps_test.go b/release/test/api_upstream_pulps_test.go index 688aab71..5c0b8f76 100644 --- a/release/test/api_upstream_pulps_test.go +++ b/release/test/api_upstream_pulps_test.go @@ -7,7 +7,7 @@ Testing UpstreamPulpsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_UpstreamPulpsApiService(t *testing.T) { +func Test_zest_UpstreamPulpsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_users_roles_test.go b/release/test/api_users_roles_test.go index bf30ca4e..11cc91ec 100644 --- a/release/test/api_users_roles_test.go +++ b/release/test/api_users_roles_test.go @@ -7,7 +7,7 @@ Testing UsersRolesApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_UsersRolesApiService(t *testing.T) { +func Test_zest_UsersRolesApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_users_test.go b/release/test/api_users_test.go index 2c043e25..76eed94d 100644 --- a/release/test/api_users_test.go +++ b/release/test/api_users_test.go @@ -7,7 +7,7 @@ Testing UsersApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_UsersApiService(t *testing.T) { +func Test_zest_UsersApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/test/api_versions_test.go b/release/test/api_versions_test.go index 8c610950..210ed71c 100644 --- a/release/test/api_versions_test.go +++ b/release/test/api_versions_test.go @@ -7,7 +7,7 @@ Testing VersionsApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,18 +17,18 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_VersionsApiService(t *testing.T) { +func Test_zest_VersionsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test VersionsApiService CollectionVersionsGet", func(t *testing.T) { + t.Run("Test VersionsApiService ApiV1RolesVersionsList", func(t *testing.T) { t.Skip("skip test") // remove to run test - var ansibleCollectionVersionHref string + var ansibleRoleHref string - resp, httpRes, err := apiClient.VersionsApi.CollectionVersionsGet(context.Background(), ansibleCollectionVersionHref).Execute() + resp, httpRes, err := apiClient.VersionsApi.ApiV1RolesVersionsList(context.Background(), ansibleRoleHref).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -36,13 +36,13 @@ func Test_zest/release/v3_VersionsApiService(t *testing.T) { }) - t.Run("Test VersionsApiService VersionsGet", func(t *testing.T) { + t.Run("Test VersionsApiService ApiV2CollectionVersionsList", func(t *testing.T) { t.Skip("skip test") // remove to run test - var ansibleRoleHref string + var ansibleCollectionVersionHref string - resp, httpRes, err := apiClient.VersionsApi.VersionsGet(context.Background(), ansibleRoleHref).Execute() + resp, httpRes, err := apiClient.VersionsApi.ApiV2CollectionVersionsList(context.Background(), ansibleCollectionVersionHref).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/release/test/api_workers_test.go b/release/test/api_workers_test.go index 6fa4a1c9..29767237 100644 --- a/release/test/api_workers_test.go +++ b/release/test/api_workers_test.go @@ -7,7 +7,7 @@ Testing WorkersApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package zest/release/v3 +package zest import ( "context" @@ -17,7 +17,7 @@ import ( openapiclient "github.com/content-services/zest/release/v3" ) -func Test_zest/release/v3_WorkersApiService(t *testing.T) { +func Test_zest_WorkersApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/release/utils.go b/release/utils.go index 0fd7a056..37cc71e0 100644 --- a/release/utils.go +++ b/release/utils.go @@ -9,7 +9,7 @@ Contact: pulp-list@redhat.com // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package zest/release/v3 +package zest import ( "encoding/json"